canvasengine 2.0.0-beta.49 → 2.0.0-beta.50

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
1
  var CanvasEngine=(function(x,D){"use strict";var Fe,_e;var VA=typeof document<"u"?document.currentScript:null;function xo(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 ko(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 Mo=xo(D);var qA=function(A,t){return qA=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])},qA(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");qA(A,t);function e(){this.constructor=A}A.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function Ro(A,t,e,i){function n(s){return s instanceof e?s:new e(function(o){o(s)})}return new(e||(e=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(r){o(r)}}function h(u){try{c(i.throw(u))}catch(r){o(r)}}function c(u){u.done?s(u.value):n(u.value).then(a,h)}c((i=i.apply(A,t||[])).next())})}function On(A,t){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,n,s,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return h([c,u])}}function h(c){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=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 fe(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 Le(A,t){var e=typeof Symbol=="function"&&A[Symbol.iterator];if(!e)return A;var i=e.call(A),n,s=[],o;try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return s}function Ue(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 Be(A){return this instanceof Be?(this.v=A,this):new Be(A)}function Fo(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",o),n[Symbol.asyncIterator]=function(){return this},n;function o(g){return function(f){return Promise.resolve(f).then(g,r)}}function a(g,f){i[g]&&(n[g]=function(d){return new Promise(function(C,E){s.push([g,d,C,E])>1||h(g,d)})},f&&(n[g]=f(n[g])))}function h(g,f){try{c(i[g](f))}catch(d){l(s[0][3],d)}}function c(g){g.value instanceof Be?Promise.resolve(g.value.v).then(u,r):l(s[0][2],g)}function u(g){h("next",g)}function r(g){h("throw",g)}function l(g,f){g(f),s.shift(),s.length&&h(s[0][0],s[0][1])}}function _o(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 fe=="function"?fe(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(o){return new Promise(function(a,h){o=A[s](o),n(a,h,o.done,o.value)})}}function n(s,o,a,h){Promise.resolve(h).then(function(c){s({value:c,done:a})},o)}}typeof SuppressedError=="function"&&SuppressedError;function et(A){return typeof A=="function"}function Pn(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 XA=Pn(function(A){return function(e){A(this),this.message=e?e.length+` errors occurred during unsubscription:
2
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 hA=(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 o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=fe(o),h=a.next();!h.done;h=a.next()){var c=h.value;c.remove(this)}}catch(d){t={error:d}}finally{try{h&&!h.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var u=this.initialTeardown;if(et(u))try{u()}catch(d){s=d instanceof XA?d.errors:[d]}var r=this._finalizers;if(r){this._finalizers=null;try{for(var l=fe(r),g=l.next();!g.done;g=l.next()){var f=g.value;try{Yn(f)}catch(d){s=s??[],d instanceof XA?s=Ue(Ue([],Le(s)),Le(d.errors)):s.push(d)}}}catch(d){i={error:d}}finally{try{g&&!g.done&&(n=l.return)&&n.call(l)}finally{if(i)throw i.error}}}if(s)throw new XA(s)}},A.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Yn(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})(),Jn=hA.EMPTY;function Kn(A){return A instanceof hA||A&&"closed"in A&&et(A.remove)&&et(A.add)&&et(A.unsubscribe)}function Yn(A){et(A)?A():A.unsubscribe()}var No={Promise:void 0},Go={setTimeout:function(A,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,Ue([A,t],Le(e)))},clearTimeout:function(A){return clearTimeout(A)},delegate:void 0};function Wn(A){Go.setTimeout(function(){throw A})}function jn(){}function cA(A){A()}var zA=(function(A){ie(t,A);function t(e){var i=A.call(this)||this;return i.isStopped=!1,e?(i.destination=e,Kn(e)&&e.add(i)):i.destination=Uo,i}return t.create=function(e,i,n){return new Te(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})(hA),Ho=(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){gA(i)}},A.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){gA(i)}else gA(t)},A.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){gA(e)}},A})(),Te=(function(A){ie(t,A);function t(e,i,n){var s=A.call(this)||this,o;return et(e)||!e?o={next:e??void 0,error:i??void 0,complete:n??void 0}:o=e,s.destination=new Ho(o),s}return t})(zA);function gA(A){Wn(A)}function Lo(A){throw A}var Uo={closed:!0,next:jn,error:Lo,complete:jn},$A=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function ti(A){return A}function To(A){return A.length===0?ti:A.length===1?A[0]:function(e){return A.reduce(function(i,n){return n(i)},e)}}var Z=(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=Po(t)?t:new Te(t,e,i);return cA(function(){var o=n,a=o.operator,h=o.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=Vn(e),new e(function(n,s){var o=new Te({next:function(a){try{t(a)}catch(h){s(h),o.unsubscribe()}},error:s,complete:n});i.subscribe(o)})},A.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},A.prototype[$A]=function(){return this},A.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return To(t)(this)},A.prototype.toPromise=function(t){var e=this;return t=Vn(t),new t(function(i,n){var s;e.subscribe(function(o){return s=o},function(o){return n(o)},function(){return i(s)})})},A.create=function(t){return new A(t)},A})();function Vn(A){var t;return(t=A??No.Promise)!==null&&t!==void 0?t:Promise}function Oo(A){return A&&et(A.next)&&et(A.error)&&et(A.complete)}function Po(A){return A&&A instanceof zA||Oo(A)&&Kn(A)}function Jo(A){return et(A?.lift)}function de(A){return function(t){if(Jo(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 uA(A,t,e,i,n){return new Ko(A,t,e,i,n)}var Ko=(function(A){ie(t,A);function t(e,i,n,s,o,a){var h=A.call(this,e)||this;return h.onFinalize=o,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})(zA),Yo=Pn(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 qn(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new Yo},t.prototype.next=function(e){var i=this;cA(function(){var n,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=fe(i.currentObservers),a=o.next();!a.done;a=o.next()){var h=a.value;h.next(e)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var i=this;cA(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;cA(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,o=n.isStopped,a=n.observers;return s||o?Jn:(this.currentObservers=null,a.push(e),new hA(function(){i.currentObservers=null,ZA(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,n=i.hasError,s=i.thrownError,o=i.isStopped;n?e.error(s):o&&e.complete()},t.prototype.asObservable=function(){var e=new Z;return e.source=this,e},t.create=function(e,i){return new qn(e,i)},t})(Z),qn=(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:Jn},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),Xn={now:function(){return(Xn.delegate||Date).now()},delegate:void 0},Wo=(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=Xn);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,o=i._infiniteTimeWindow,a=i._timestampProvider,h=i._windowTime;n||(s.push(e),!o&&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,o=n._buffer,a=o.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,o=e._infiniteTimeWindow,a=(o?1:2)*i;if(i<1/0&&a<s.length&&s.splice(0,s.length-a),!o){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 jo(A){return A&&et(A.schedule)}function Zn(A){return A[A.length-1]}function Vo(A){return et(Zn(A))?A.pop():void 0}function qo(A){return jo(Zn(A))?A.pop():void 0}var zn=(function(A){return A&&typeof A.length=="number"&&typeof A!="function"});function $n(A){return et(A?.then)}function ts(A){return et(A[$A])}function es(A){return Symbol.asyncIterator&&et(A?.[Symbol.asyncIterator])}function As(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 Xo(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var is=Xo();function ns(A){return et(A?.[is])}function ss(A){return Fo(this,arguments,function(){var e,i,n,s;return On(this,function(o){switch(o.label){case 0:e=A.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,Be(e.read())];case 3:return i=o.sent(),n=i.value,s=i.done,s?[4,Be(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,Be(n)];case 6:return[4,o.sent()];case 7:return o.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 Z)return A;if(A!=null){if(ts(A))return Zo(A);if(zn(A))return zo(A);if($n(A))return $o(A);if(es(A))return os(A);if(ns(A))return ta(A);if(rs(A))return ea(A)}throw As(A)}function Zo(A){return new Z(function(t){var e=A[$A]();if(et(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function zo(A){return new Z(function(t){for(var e=0;e<A.length&&!t.closed;e++)t.next(A[e]);t.complete()})}function $o(A){return new Z(function(t){A.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,Wn)})}function ta(A){return new Z(function(t){var e,i;try{for(var n=fe(A),s=n.next();!s.done;s=n.next()){var o=s.value;if(t.next(o),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 os(A){return new Z(function(t){Aa(A,t).catch(function(e){return t.error(e)})})}function ea(A){return os(ss(A))}function Aa(A,t){var e,i,n,s;return Ro(this,void 0,void 0,function(){var o,a;return On(this,function(h){switch(h.label){case 0:h.trys.push([0,5,6,11]),e=_o(A),h.label=1;case 1:return[4,e.next()];case 2:if(i=h.sent(),!!i.done)return[3,4];if(o=i.value,t.next(o),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 as(A,t){return t===void 0&&(t=0),de(function(e,i){e.subscribe(uA(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 ls(A,t){return t===void 0&&(t=0),de(function(e,i){i.add(A.schedule(function(){return e.subscribe(i)},t))})}function ia(A,t){return Ee(A).pipe(ls(t),as(t))}function na(A,t){return Ee(A).pipe(ls(t),as(t))}function sa(A,t){return new Z(function(e){var i=0;return t.schedule(function(){i===A.length?e.complete():(e.next(A[i++]),e.closed||this.schedule())})})}function ra(A,t){return new Z(function(e){var i;return qt(e,t,function(){i=A[is](),qt(e,t,function(){var n,s,o;try{n=i.next(),s=n.value,o=n.done}catch(a){e.error(a);return}o?e.complete():e.next(s)},0,!0)}),function(){return et(i?.return)&&i.return()}})}function hs(A,t){if(!A)throw new Error("Iterable cannot be null");return new Z(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 oa(A,t){return hs(ss(A),t)}function aa(A,t){if(A!=null){if(ts(A))return ia(A,t);if(zn(A))return sa(A,t);if($n(A))return na(A,t);if(es(A))return hs(A,t);if(ns(A))return ra(A,t);if(rs(A))return oa(A,t)}throw As(A)}function IA(A,t){return t?aa(A,t):Ee(A)}function la(A){return!!A&&(A instanceof Z||et(A.lift)&&et(A.subscribe))}function ei(A,t){return de(function(e,i){var n=0;e.subscribe(uA(i,function(s){i.next(A.call(t,s,n++))}))})}var ha=Array.isArray;function ca(A,t){return ha(t)?A.apply(void 0,Ue([],Le(t))):A(t)}function ga(A){return ei(function(t){return ca(A,t)})}var ua=Array.isArray,Ia=Object.getPrototypeOf,fa=Object.prototype,Ba=Object.keys;function da(A){if(A.length===1){var t=A[0];if(ua(t))return{args:t,keys:null};if(Ea(t)){var e=Ba(t);return{args:e.map(function(i){return t[i]}),keys:e}}}return{args:A,keys:null}}function Ea(A){return A&&typeof A=="object"&&Ia(A)===fa}function Ca(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=qo(A),i=Vo(A),n=da(A),s=n.args,o=n.keys;if(s.length===0)return IA([],e);var a=new Z(Qa(s,e,o?function(h){return Ca(o,h)}:ti));return i?a.pipe(ga(i)):a}function Qa(A,t,e){return e===void 0&&(e=ti),function(i){cs(t,function(){for(var n=A.length,s=new Array(n),o=n,a=n,h=function(u){cs(t,function(){var r=IA(A[u],t),l=!1;r.subscribe(uA(i,function(g){s[u]=g,l||(l=!0,a--),a||i.next(e(s.slice()))},function(){--o||i.complete()}))},i)},c=0;c<n;c++)h(c)},i)}}function cs(A,t,e){A?qt(e,A,t):t()}function pa(A){return new Z(function(t){Ee(A()).subscribe(t)})}function Oe(A,t){return de(function(e,i){var n=0;e.subscribe(uA(i,function(s){return A.call(t,s,n++)&&i.next(s)}))})}function ya(A){return de(function(t,e){try{t.subscribe(e)}finally{e.add(A)}})}function gs(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,o=s===void 0?!0:s,a=A.resetOnRefCountZero,h=a===void 0?!0:a;return function(c){var u,r,l,g=0,f=!1,d=!1,C=function(){r?.unsubscribe(),r=void 0},E=function(){C(),u=l=void 0,f=d=!1},m=function(){var w=u;E(),w?.unsubscribe()};return de(function(w,b){g++,!d&&!f&&C();var M=l=l??e();b.add(function(){g--,g===0&&!d&&!f&&(r=Ai(m,h))}),M.subscribe(b),!u&&g>0&&(u=new Te({next:function(G){return M.next(G)},error:function(G){d=!0,C(),r=Ai(E,n,G),M.error(G)},complete:function(){f=!0,C(),r=Ai(E,o),M.complete()}}),Ee(w).subscribe(u))})(c)}}function Ai(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 Te({next:function(){n.unsubscribe(),A()}});return Ee(t.apply(void 0,Ue([],Le(e)))).subscribe(n)}}function ma(A,t,e){var i,n,s,o,a=!1;return A&&typeof A=="object"?(i=A.bufferSize,o=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):o=A??1/0,gs({connector:function(){return new Wo(o,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 Pe(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)||!Pe(i,n))return!1}else if(!us(i,n))return!1}else if(i!==n)return!1}return!0}function us(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)||!wa(A[n],t[n]))return!1;return!0}function wa(A,t){return A===t?!0:typeof A!=typeof t?!1:typeof A=="object"&&A!==null?Array.isArray(A)?Array.isArray(t)&&Pe(A,t):us(A,t):!1}function ii(A){return{}.toString.call(A)==="[object Function]"}function BA(A){return typeof A=="object"&&A!=null&&!Array.isArray(A)&&A.constructor===Object}function Is(A){return A instanceof Z}function ni(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 o=0;o<n-1;o++){let a=t[o],h=t[o+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 va(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 Da(A){console.log(A)}function si(A){console.error(A)}function re(A,t){typeof t=="number"?A.set(t):Array.isArray(t)?A.set(t[0],t[1]):BA(t)&&"value"in t?A.set(t.value.x,t.value.y):A.set(t.x,t.y)}function fs(A,t,e,i){const n=A-e,s=t-i;return Math.sqrt(n*n+s*s)}const ba=Object.freeze(Object.defineProperty({__proto__:null,arrayEquals:Pe,calculateDistance:fs,error:si,fps2ms:_t,get:va,isBrowser:Ce,isFunction:ii,isObject:BA,isObservable:Is,isPromise:Xt,log:Da,preciseNow:Ot,set:ni,setObservablePoint:re},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(o=>{this.boundKeys[o]={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 o of s)this.bindKey(o,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 ds={3:"break",8:"backspace",9:"tab",12:"clear",13:"enter",16:"shift",17:"ctrl",18:"alt",19:"pause/break",20:"caps lock",27:"escape",28:"conversion",29:"non-conversion",32:"space",33:"page up",34:"page down",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",41:"select",42:"print",43:"execute",44:"Print Screen",45:"insert",46:"delete",48:"n0",49:"n1",50:"n2",51:"n3",52:"n4",53:"n5",54:"n6",55:"n7",56:"n8",57:"n9",58:":",59:"semicolon (firefox), equals",60:"<",61:"equals (firefox)",63:"ß",64:"@",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",91:"Windows Key / Left ⌘ / Chromebook Search key",92:"right window key",93:"Windows Menu / Right ⌘",96:"numpad 0",97:"numpad 1",98:"numpad 2",99:"numpad 3",100:"numpad 4",101:"numpad 5",102:"numpad 6",103:"numpad 7",104:"numpad 8",105:"numpad 9",106:"multiply",107:"add",108:"numpad period (firefox)",109:"subtract",110:"decimal point",111:"divide",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",124:"f13",125:"f14",126:"f15",127:"f16",128:"f17",129:"f18",130:"f19",131:"f20",132:"f21",133:"f22",134:"f23",135:"f24",144:"num lock",145:"scroll lock",160:"^",161:"!",163:"#",164:"$",165:"ù",166:"page backward",167:"page forward",169:"closing paren (AZERTY)",170:"*",171:"~ + * key",173:"minus (firefox), mute/unmute",174:"decrease volume level",175:"increase volume level",176:"next",177:"previous",178:"stop",179:"play/pause",180:"e-mail",181:"mute/unmute (firefox)",182:"decrease volume level (firefox)",183:"increase volume level (firefox)",186:"semi-colon / ñ",187:"equal sign",188:"comma",189:"dash",190:"period",191:"forward slash / ç",192:"grave accent / ñ / æ",193:"?, / or °",194:"numpad period (chrome)",219:"open bracket",220:"back slash",221:"close bracket / å",222:"single quote / ø",223:"`",224:"left or right ⌘ key (firefox)",225:"altgr",226:"< /git >",230:"GNOME Compose Key",231:"ç",233:"XF86Forward",234:"XF86Back",240:"alphanumeric",242:"hiragana/katakana",243:"half-width/full-width",244:"kanji",255:"toggle touchpad"},Es=(A=>{const t={};for(let e in A){const i=A[e];t[i]=e}return t})(ds);class Cs 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:o,keyDown:a,throttle:h}=s.options;if(o||n==0){if(typeof h=="number"){const u=Date.now(),r=this.lastActionTimes[s.actionName]??0;if(u-r<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=Es[t],i=new Event("keydown");i.keyCode=e,this.onKeyChange(i,!0)}applyKeyUp(t){const e=Es[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=ds[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 vt={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}}},EA={LEFT:"left",RIGHT:"right",TOP:"top",BOTTOM:"bottom"},Sa={button_0:0,button_1:1,button_2:2,button_3:3,button_4:4,button_5:5,button_6:6,button_7:7,button_8:8,button_9:9,button_10:10,button_11:11,button_12:12,button_13:13,button_14:14,button_15:15,button_16:16,button_17:17},xa=.8,Qs=function(A){console.warn&&typeof console.warn=="function"?console.warn(A):console.log(A)},ka=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},Ma=function(A){return!!A&&!!A.type&&!!A.playEffect&&typeof A.playEffect=="function"||!1},Ra=function(){return!!window.navigator.getGamepads&&typeof window.navigator.getGamepads=="function"||!1},dt={loopStarted:!1,instances:{},buttonEvents:{joypad:[]},settings:{axisMovementThreshold:xa},remove:function(t){return delete this.instances[t]},on:function(t,e){switch(t){case z.CONNECT.ALIAS:return vt.subscribe(z.CONNECT.ALIAS,e);case z.DISCONNECT.ALIAS:return vt.subscribe(z.DISCONNECT.ALIAS,e);case z.BUTTON_PRESS.ALIAS:return vt.subscribe(z.BUTTON_PRESS.ALIAS,e);case z.BUTTON_RELEASE.ALIAS:return vt.subscribe(z.BUTTON_RELEASE.ALIAS,e);case z.AXIS_MOVEMENT.ALIAS:return vt.subscribe(z.AXIS_MOVEMENT.ALIAS,e)}},vibrate:function(t,e){var i=t.vibrationActuator,n=e||this.settings.vibration;if(Ma(i)){var s=i.type;return t.vibrationActuator.playEffect(s,n)}Qs("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 vt.publish(t,e)}},Fa=function(A){A.buttons.forEach(function(t,e){var i=dt.settings.customButtonMapping,n=i||Sa,s=ka(e,n),o=dt.buttonEvents;s&&s.length&&s.forEach(function(a){t.pressed?(o.joypad[A.index][a]||(o.joypad[A.index][a]={pressed:!0,hold:!1,released:!1}),o.joypad[A.index][a].button=t,o.joypad[A.index][a].index=e,o.joypad[A.index][a].gamepad=A):!t.pressed&&o.joypad[A.index][a]&&(o.joypad[A.index][a].released=!0,o.joypad[A.index][a].hold=!1)})})},_a=function(A){var t=function(o){return new CustomEvent(z.AXIS_MOVEMENT.ALIAS,{detail:o})},e=dt.settings.axisMovementThreshold,i=A.axes,n=i.length,s=n/2;i.forEach(function(o,a){if(Math.abs(o)>e){var h=null,c=null,u=o;h=a<s?Qe.LEFT.NAME:Qe.RIGHT.NAME,(a===Qe.LEFT.AXES.X||a===Qe.RIGHT.AXES.X)&&(c=o<0?EA.LEFT:EA.RIGHT),(a===Qe.LEFT.AXES.Y||a===Qe.RIGHT.AXES.Y)&&(c=o<0?EA.TOP:EA.BOTTOM);var r={gamepad:A,totalSticks:s,stickMoved:h,directionOfMovement:c,axisMovementValue:u,axis:a};return window.dispatchEvent(t(r))}})},Na=function(A,t){t[A].pressed?(ps(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&&(ps(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,Fa(n),_a(n))}),e.joypad.forEach(function(n){n&&Object.keys(n).forEach(function(s){Na(s,n)})}),this.id=t(this.start.bind(this))},stop:function(t){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame;return e(t)}},Ga=function(){window.addEventListener(z.CONNECT.NATIVE,function(A){if(vt.publish(z.CONNECT.ALIAS,A),!dt.loopStarted)return dt.loopStarted=!0,ri.start()}),window.addEventListener(z.DISCONNECT.NATIVE,function(A){if(vt.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 vt.publish(z.BUTTON_PRESS.ALIAS,A)}),window.addEventListener(z.BUTTON_RELEASE.ALIAS,function(A){return vt.publish(z.BUTTON_RELEASE.ALIAS,A)}),window.addEventListener(z.AXIS_MOVEMENT.ALIAS,function(A){return vt.publish(z.AXIS_MOVEMENT.ALIAS,A)})},ps=function(A,t,e){var i=function(h){return new CustomEvent(A,{detail:h})},n=t[e],s=n.index,o=n.gamepad,a={buttonName:e,button:t[e].button,index:s,gamepad:o};window.dispatchEvent(i(a))};Ga(),Ra()?window.joypad=dt:(window.joypad={},Qs("Your browser does not support the Gamepad API - https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API"));const oi={button_0:"action",button_1:"back",button_9:"back"},ai={top:"up",bottom:"down",left:"left",right:"right"};class ys extends dA{constructor(){super(...arguments),this.gamepadEnabled=!0,this.gamepadConfig={enabled:!0,buttonMapping:oi,axisMapping:ai,axisThreshold:.5,moveInterval:400},this.gamepadMoving=!1,this.gamepadDirections={},this.gamepadAxisDate=0,this.gamepadMoveInterval=null,this.joypad=null,this.connectCallbacks=[],this.disconnectCallbacks=[],this.currentPower=0}setupListeners(){this.initGamepad()}cleanup(){this.gamepadMoveInterval&&(clearInterval(this.gamepadMoveInterval),this.gamepadMoveInterval=null)}initGamepad(){if(typeof window>"u")return;const t=window.joypad;if(!t){this.gamepadConfig.gamepadConnected&&this.gamepadConfig.gamepadConnected.set(!1);return}this.joypad=t,this.joypad.on("connect",()=>this.handleGamepadConnect()),this.joypad.on("disconnect",()=>this.handleGamepadDisconnect()),this.joypad.on("button_press",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||oi)[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||ai;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 o=s[0],a=o.axes?.[0]||0,h=o.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||oi,axisMapping:t.axisMapping||ai,axisThreshold:t.axisThreshold||.5,moveInterval:t.moveInterval||400,onConnect:t.onConnect,onDisconnect:t.onDisconnect,gamepadConnected:t.gamepadConnected},this.gamepadConfig.onConnect&&this.onConnect(this.gamepadConfig.onConnect),this.gamepadConfig.onDisconnect&&this.onDisconnect(this.gamepadConfig.onDisconnect)}extractGamepadConfig(t){t.gamepad&&this.updateGamepadConfig(t.gamepad)}getGamepadConfig(){return this.gamepadConfig}async applyControl(t,e,i){if(!this._controlsOptions[t])return;const s=Object.keys(this.boundKeys);for(const o of s){const a=this.boundKeys[o];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 li={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 ms extends dA{constructor(){super(...arguments),this.joystickEnabled=!0,this.joystickConfig={enabled:!0,directionMapping:li,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||li,i=t.direction,n=e[i];if(!n){this.stopAllMovements();return}const s=Array.isArray(n)?n:[n],o=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 r=this.joystickDirections[u],l=a[u]||!1;r&&!l&&this.applyControl(u,!1).catch(()=>{})}this.joystickDirections={...a},this.joystickMoving=!0;const c=s.filter(u=>!o[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||li,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 o of s){const a=this.boundKeys[o];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 hi={};class Dt{}function bt(A,t){hi[A]=t}function ci(A,t){if(!hi[t])return null;const e=new hi[t];return e.onInit?.(A),e}var Ha=Object.defineProperty,$=(A,t)=>Ha(A,"name",{value:t,configurable:!0}),Je=(Fe=class extends se{_items=[];constructor(t=[]){super({type:"init",items:t}),this.createProxy(t)}createProxy(t){this._items=new Proxy(t,{get:$((e,i,n)=>{const s=e[i];return typeof s=="function"?(...o)=>{let a="update",h,c=!1,u=[],r=!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=o[0];const g=o[1],f=o.slice(2);u=f,g>0&&f.length===0?a="remove":g===0&&f.length>0?a="add":g===0&&f.length===0?r=!1:a="update",c=!0;break}const l=s.apply(e,o);return c&&r&&(i==="splice"?this.next({type:a,index:h,items:u}):this.next({type:a,index:h,items:o})),l}:Reflect.get(e,i,n)},"get"),set:$((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})}},$(Fe,"ArraySubject"),Fe),La=$(A=>"_items"in A,"isArraySubject"),Ke=(_e=class extends se{_obj;constructor(t={}){super({type:"init",value:t}),this.createProxy(t)}createProxy(t){this._obj=new Proxy(t,{get:$((e,i,n)=>Reflect.get(e,i,n),"get"),set:$((e,i,n,s)=>{const o=i,a=o in e?"update":"add";return e[o]=n,this.next({type:a,key:o,value:n}),!0},"set"),deleteProperty:$((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})}},$(_e,"ObjectSubject"),_e),Ua=$(A=>"_obj"in A,"isObjectSubject"),Ta=$(()=>{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=Ta(),gi=$(A=>{lt.currentDependencyTracker&&lt.currentDependencyTracker(A)},"trackDependency");function Y(A,t){let e;Array.isArray(A)?e=new Je(A):typeof A=="object"&&A!==null?e=new Ke(A):e=new se(A);const i=$(()=>e instanceof Je?e.items:e instanceof Ke?e.obj:e.value,"getValue"),n=$(function(){return gi(n),i()},"fn");return n.set=s=>{const o=i();let a=!0;t?.equal?a=!t.equal(o,s):a=o!==s,a&&(e instanceof Je?e.items=s:e instanceof Ke?e.obj=s:e.next(s))},n._isFrozen=!1,n.freeze=()=>{n._isFrozen=!0},n.unfreeze=()=>{n._isFrozen=!1,e instanceof Je?e.next({type:"init",items:e.items}):e instanceof Ke?e.next({type:"init",value:e.obj}):e.next(e.value)},n.mutate=s=>{const o=i();s(o)},n.update=s=>{const o=s(i());n.set(o)},n.observable=e.asObservable().pipe(Oe(()=>!n._isFrozen)),n._subject=e,n}$(Y,"signal");function _(A){return!!(A&&A.observable)}$(_,"isSignal");function pe(A){return _(A)&&!!A.dependencies}$(pe,"isComputed");function Et(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 o=[...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(o).pipe(Oe(()=>!i),ei(()=>A()),ya(()=>t?.())),h=$(function(){return gi(h),n},"fn");return h.observable=a,h.subscription=a.subscribe(c=>{n=c}),h.dependencies=e,lt.currentSubscriptionsTracker?.(h.subscription),i=!1,h}$(Et,"computed");function ws(A,t){const e=new Set;let i=!0,n,s,o,a,h,c,u=!1,r,l=0,g=null;if(typeof A=="function")s=A,h=t?.equal;else{const w=A;if(o=w.source,a=w.computation,h=w.equal,typeof o=="function"&&!_(o)){const b=o;s=$(()=>{const M=b();if(a.length>1){const G=a(M,c);return c={source:M,value:G},G}else{const G=a(M);return c={source:M,value:G},G}},"computeFunction")}else{const b=o;s=$(()=>{const M=b();if(a.length>1){const G=a(M,c);return c={source:M,value:G},G}else{const G=a(M);return c={source:M,value:G},G}},"computeFunction")}}const f=lt.currentDependencyTracker;lt.currentDependencyTracker=w=>{e.add(w)},o&&typeof o=="function"&&!_(o)||o&&_(o)&&e.add(o),n=s(),lt.currentDependencyTracker=f;const d=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(Oe(()=>!i),ei(()=>{const w=s();return h?h(n,w)||(n=w,u=!1):n!==w&&(n=w,u=!1),n})):E=d.asObservable().pipe(Oe(()=>!i));const m=$(function(){if(gi(m),u&&e.size>0){if(g!==l){const w=s();return u=!1,r=void 0,n=w,g=null,w}return r}return u?r:(e.size===0&&(n=s()),n)},"fn");return m.observable=new Z(w=>{const b=E.subscribe(G=>{e.size>0&&(l++,u=!1,g=null),n=G,w.next(G)});let M;return e.size===0&&(M=d.pipe(Oe(()=>!i)).subscribe(G=>{w.next(G)})),w.next(n),()=>{b.unsubscribe(),M&&M.unsubscribe()}}),m.subscription=m.observable.subscribe(()=>{}),m.dependencies=e,m._subject=d,m.set=w=>{u||(g=l,a&&o&&(c={source:ui(()=>{if(typeof o=="function"){const M=o;return _(M)?M():o()}return o()}),value:w})),u=!0,r=w,n=w,d.next(w)},lt.currentSubscriptionsTracker?.(m.subscription),i=!1,m}$(ws,"linkedSignal");function ui(A){const t=lt.currentDependencyTracker,e=lt.currentSubscriptionsTracker;lt.currentDependencyTracker=null,lt.currentSubscriptionsTracker=null;try{return A()}finally{lt.currentDependencyTracker=t,lt.currentSubscriptionsTracker=e}}$(ui,"untracked");function it(A){return A.isEffect=!0,Et(A)}$(it,"effect");function vs(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 Ds=function(){};const Ii=(A,t,e)=>Math.min(Math.max(e,A),t),fi=.001,Oa=.01,Pa=10,Ja=.05,Ka=1;function Ya({duration:A=800,bounce:t=.25,velocity:e=0,mass:i=1}){let n,s,o=1-t;o=Ii(Ja,Ka,o),A=Ii(Oa,Pa,A/1e3),o<1?(n=c=>{const u=c*o,r=u*A,l=u-e,g=Bi(c,o),f=Math.exp(-r);return fi-l/g*f},s=c=>{const r=c*o*A,l=r*e+e,g=Math.pow(o,2)*Math.pow(c,2)*A,f=Math.exp(-r),d=Bi(Math.pow(c,2),o);return(-n(c)+fi>0?-1:1)*((l-g)*f)/d}):(n=c=>{const u=Math.exp(-c*A),r=(c-e)*A+1;return-fi+u*r},s=c=>{const u=Math.exp(-c*A),r=(e-c)*(A*A);return u*r});const a=5/A,h=ja(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:o*2*Math.sqrt(i*c),duration:A}}}const Wa=12;function ja(A,t,e){let i=e;for(let n=1;n<Wa;n++)i=i-A(i)/t(i);return i}function Bi(A,t){return A*Math.sqrt(1-t*t)}const Va=["duration","bounce"],qa=["stiffness","damping","mass"];function bs(A,t){return t.some(e=>A[e]!==void 0)}function Xa(A){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},A);if(!bs(A,qa)&&bs(A,Va)){const e=Ya(A);t=Object.assign(Object.assign(Object.assign({},t),e),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function di(A){var{from:t=0,to:e=1,restSpeed:i=2,restDelta:n}=A,s=vs(A,["from","to","restSpeed","restDelta"]);const o={done:!1,value:t};let{stiffness:a,damping:h,mass:c,velocity:u,duration:r,isResolvedFromDuration:l}=Xa(s),g=Ss,f=Ss;function d(){const C=u?-(u/1e3):0,E=e-t,m=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)),m<1){const b=Bi(w,m);g=M=>{const G=Math.exp(-m*w*M);return e-G*((C+m*w*E)/b*Math.sin(b*M)+E*Math.cos(b*M))},f=M=>{const G=Math.exp(-m*w*M);return m*w*G*(Math.sin(b*M)*(C+m*w*E)/b+E*Math.cos(b*M))-G*(Math.cos(b*M)*(C+m*w*E)-b*E*Math.sin(b*M))}}else if(m===1)g=b=>e-Math.exp(-w*b)*(E+(C+w*E)*b);else{const b=w*Math.sqrt(m*m-1);g=M=>{const G=Math.exp(-m*w*M),O=Math.min(b*M,300);return e-G*((C+m*w*E)*Math.sinh(O)+b*E*Math.cosh(O))/b}}}return d(),{next:C=>{const E=g(C);if(l)o.done=C>=r;else{const m=f(C)*1e3,w=Math.abs(m)<=i,b=Math.abs(e-E)<=n;o.done=w&&b}return o.value=o.done?e:E,o},flipTarget:()=>{u=-u,[t,e]=[e,t],d()}}}di.needsInterpolation=(A,t)=>typeof A=="string"||typeof t=="string";const Ss=A=>0,xs=(A,t,e)=>{const i=t-A;return i===0?1:(e-A)/i},Ei=(A,t,e)=>-e*A+e*t+A,ks=(A,t)=>e=>Math.max(Math.min(e,t),A),Ye=A=>A%1?Number(A.toFixed(5)):A,CA=/(-)?([\d]*\.?[\d])+/g,Ci=/(#[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,Za=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function We(A){return typeof A=="string"}const QA={test:A=>typeof A=="number",parse:parseFloat,transform:A=>A},Ms=Object.assign(Object.assign({},QA),{transform:ks(0,1)});Object.assign(Object.assign({},QA),{default:1});const je=(A=>({test:t=>We(t)&&t.endsWith(A)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${A}`}))("%");Object.assign(Object.assign({},je),{parse:A=>je.parse(A)/100,transform:A=>je.transform(A*100)});const Qi=(A,t)=>e=>!!(We(e)&&Za.test(e)&&e.startsWith(A)||t&&Object.prototype.hasOwnProperty.call(e,t)),Rs=(A,t,e)=>i=>{if(!We(i))return i;const[n,s,o,a]=i.match(CA);return{[A]:parseFloat(n),[t]:parseFloat(s),[e]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},oe={test:Qi("hsl","hue"),parse:Rs("hue","saturation","lightness"),transform:({hue:A,saturation:t,lightness:e,alpha:i=1})=>"hsla("+Math.round(A)+", "+je.transform(Ye(t))+", "+je.transform(Ye(e))+", "+Ye(Ms.transform(i))+")"},za=ks(0,255),pi=Object.assign(Object.assign({},QA),{transform:A=>Math.round(za(A))}),Zt={test:Qi("rgb","red"),parse:Rs("red","green","blue"),transform:({red:A,green:t,blue:e,alpha:i=1})=>"rgba("+pi.transform(A)+", "+pi.transform(t)+", "+pi.transform(e)+", "+Ye(Ms.transform(i))+")"};function $a(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 yi={test:Qi("#"),parse:$a,transform:Zt.transform},pA={test:A=>Zt.test(A)||yi.test(A)||oe.test(A),parse:A=>Zt.test(A)?Zt.parse(A):oe.test(A)?oe.parse(A):yi.parse(A),transform:A=>We(A)?A:A.hasOwnProperty("red")?Zt.transform(A):oe.transform(A)},Fs="${c}",_s="${n}";function tl(A){var t,e,i,n;return isNaN(A)&&We(A)&&((e=(t=A.match(CA))===null||t===void 0?void 0:t.length)!==null&&e!==void 0?e:0)+((n=(i=A.match(Ci))===null||i===void 0?void 0:i.length)!==null&&n!==void 0?n:0)>0}function Ns(A){typeof A=="number"&&(A=`${A}`);const t=[];let e=0;const i=A.match(Ci);i&&(e=i.length,A=A.replace(Ci,Fs),t.push(...i.map(pA.parse)));const n=A.match(CA);return n&&(A=A.replace(CA,_s),t.push(...n.map(QA.parse))),{values:t,numColors:e,tokenised:A}}function Gs(A){return Ns(A).values}function Hs(A){const{values:t,numColors:e,tokenised:i}=Ns(A),n=t.length;return s=>{let o=i;for(let a=0;a<n;a++)o=o.replace(a<e?Fs:_s,a<e?pA.transform(s[a]):Ye(s[a]));return o}}const el=A=>typeof A=="number"?0:A;function Al(A){const t=Gs(A);return Hs(A)(t.map(el))}const Ls={test:tl,parse:Gs,createTransformer:Hs,getAnimatableNone:Al};function mi(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 Us({hue:A,saturation:t,lightness:e,alpha:i}){A/=360,t/=100,e/=100;let n=0,s=0,o=0;if(!t)n=s=o=e;else{const a=e<.5?e*(1+t):e+t-e*t,h=2*e-a;n=mi(h,a,A+.3333333333333333),s=mi(h,a,A),o=mi(h,a,A-.3333333333333333)}return{red:Math.round(n*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:i}}const il=(A,t,e)=>{const i=A*A,n=t*t;return Math.sqrt(Math.max(0,e*(n-i)+i))},nl=[yi,Zt,oe],Ts=A=>nl.find(t=>t.test(A)),Os=(A,t)=>{let e=Ts(A),i=Ts(t),n=e.parse(A),s=i.parse(t);e===oe&&(n=Us(n),e=Zt),i===oe&&(s=Us(s),i=Zt);const o=Object.assign({},n);return a=>{for(const h in o)h!=="alpha"&&(o[h]=il(n[h],s[h],a));return o.alpha=Ei(n.alpha,s.alpha,a),e.transform(o)}},sl=A=>typeof A=="number",rl=(A,t)=>e=>t(A(e)),Ps=(...A)=>A.reduce(rl);function Js(A,t){return sl(A)?e=>Ei(A,t,e):pA.test(A)?Os(A,t):Ws(A,t)}const Ks=(A,t)=>{const e=[...A],i=e.length,n=A.map((s,o)=>Js(s,t[o]));return s=>{for(let o=0;o<i;o++)e[o]=n[o](s);return e}},ol=(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]=Js(A[n],t[n]));return n=>{for(const s in i)e[s]=i[s](n);return e}};function Ys(A){const t=Ls.parse(A),e=t.length;let i=0,n=0,s=0;for(let o=0;o<e;o++)i||typeof t[o]=="number"?i++:t[o].hue!==void 0?s++:n++;return{parsed:t,numNumbers:i,numRGB:n,numHSL:s}}const Ws=(A,t)=>{const e=Ls.createTransformer(t),i=Ys(A),n=Ys(t);return i.numHSL===n.numHSL&&i.numRGB===n.numRGB&&i.numNumbers>=n.numNumbers?Ps(Ks(i.parsed,n.parsed),e):o=>`${o>0?t:A}`},al=(A,t)=>e=>Ei(A,t,e);function ll(A){if(typeof A=="number")return al;if(typeof A=="string")return pA.test(A)?Os:Ws;if(Array.isArray(A))return Ks;if(typeof A=="object")return ol}function hl(A,t,e){const i=[],n=e||ll(A[0]),s=A.length-1;for(let o=0;o<s;o++){let a=n(A[o],A[o+1]);if(t){const h=Array.isArray(t)?t[o]:t;a=Ps(h,a)}i.push(a)}return i}function cl([A,t],[e]){return i=>e(xs(A,t,i))}function gl(A,t){const e=A.length,i=e-1;return n=>{let s=0,o=!1;if(n<=A[0]?o=!0:n>=A[i]&&(s=i-1,o=!0),!o){let h=1;for(;h<e&&!(A[h]>n||h===i);h++);s=h-1}const a=xs(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;Ds(s===t.length),Ds(!i||!Array.isArray(i)||i.length===s-1),A[0]>A[s-1]&&(A=[].concat(A),t=[].concat(t),A.reverse(),t.reverse());const o=hl(t,i,n),a=s===2?cl(A,o):gl(A,o);return e?h=>a(Ii(A[0],A[s-1],h)):a}const yA=A=>t=>1-A(1-t),wi=A=>t=>t<=.5?A(2*t)/2:(2-A(2*(1-t)))/2,ul=A=>t=>Math.pow(t,A),Vs=A=>t=>t*t*((A+1)*t-A),Il=A=>{const t=Vs(A);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))},qs=1.525,fl=4/11,Bl=8/11,dl=9/10,El=A=>A,vi=ul(2),Cl=yA(vi),Xs=wi(vi),Zs=A=>1-Math.sin(Math.acos(A)),zs=yA(Zs),Ql=wi(zs),Di=Vs(qs),pl=yA(Di),yl=wi(Di),ml=Il(qs),wl=4356/361,vl=35442/1805,Dl=16061/1805,mA=A=>{if(A===1||A===0)return A;const t=A*A;return A<fl?7.5625*t:A<Bl?9.075*t-9.9*A+3.4:A<dl?wl*t-vl*A+Dl:10.8*A*A-20.52*A+10.72},bl=yA(mA),Sl=A=>A<.5?.5*(1-mA(1-A*2)):.5*mA(A*2-1)+.5;function xl(A,t){return A.map(()=>t||Xs).splice(0,A.length-1)}function kl(A){const t=A.length;return A.map((e,i)=>i!==0?i/(t-1):0)}function Ml(A,t){return A.map(e=>e*t)}function wA({from:A=0,to:t=1,ease:e,offset:i,duration:n=300}){const s={done:!1,value:A},o=Array.isArray(t)?t:[A,t],a=Ml(i&&i.length===o.length?i:kl(o),n);function h(){return js(a,o,{ease:Array.isArray(e)?e:xl(o,e)})}let c=h();return{next:u=>(s.value=c(u),s.done=u>=n,s),flipTarget:()=>{o.reverse(),c=h()}}}function Rl({velocity:A=0,from:t=0,power:e=.8,timeConstant:i=350,restDelta:n=.5,modifyTarget:s}){const o={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 r=-a*Math.exp(-u/i);return o.done=!(r>n||r<-n),o.value=o.done?c:c+r,o},flipTarget:()=>{}}}const $s={keyframes:wA,spring:di,decay:Rl};function Fl(A){if(Array.isArray(A.to))return wA;if($s[A.type])return $s[A.type];const t=new Set(Object.keys(A));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?wA:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?di:wA}const tr=1/60*1e3,_l=typeof performance<"u"?()=>performance.now():()=>Date.now(),er=typeof window<"u"?A=>window.requestAnimationFrame(A):A=>setTimeout(()=>A(_l()),tr);function Nl(A){let t=[],e=[],i=0,n=!1,s=!1;const o=new WeakSet,a={schedule:(h,c=!1,u=!1)=>{const r=u&&n,l=r?t:e;return c&&o.add(h),l.indexOf(h)===-1&&(l.push(h),r&&n&&(i=t.length)),h},cancel:h=>{const c=e.indexOf(h);c!==-1&&e.splice(c,1),o.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),o.has(u)&&(a.schedule(u),A())}n=!1,s&&(s=!1,a.process(h))}};return a}const Gl=40;let bi=!0,Ve=!1,Si=!1;const qe={delta:0,timestamp:0},Xe=["read","update","preRender","render","postRender"],vA=Xe.reduce((A,t)=>(A[t]=Nl(()=>Ve=!0),A),{}),Hl=Xe.reduce((A,t)=>{const e=vA[t];return A[t]=(i,n=!1,s=!1)=>(Ve||Tl(),e.schedule(i,n,s)),A},{}),Ll=Xe.reduce((A,t)=>(A[t]=vA[t].cancel,A),{});Xe.reduce((A,t)=>(A[t]=()=>vA[t].process(qe),A),{});const Ul=A=>vA[A].process(qe),Ar=A=>{Ve=!1,qe.delta=bi?tr:Math.max(Math.min(A-qe.timestamp,Gl),1),qe.timestamp=A,Si=!0,Xe.forEach(Ul),Si=!1,Ve&&(bi=!1,er(Ar))},Tl=()=>{Ve=!0,bi=!0,Si||er(Ar)};function ir(A,t,e=0){return A-t-e}function Ol(A,t,e=0,i=!0){return i?ir(t+-A,t,e):t-(A-t)+e}function Pl(A,t,e,i){return i?A>=t+e:A<=-e}const Jl=A=>{const t=({delta:e})=>A(e);return{start:()=>Hl.update(t,!0),stop:()=>Ll.update(t)}};function nr(A){var t,e,{from:i,autoplay:n=!0,driver:s=Jl,elapsed:o=0,repeat:a=0,repeatType:h="loop",repeatDelay:c=0,onPlay:u,onStop:r,onComplete:l,onRepeat:g,onUpdate:f}=A,d=vs(A,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:C}=d,E,m=0,w=d.duration,b,M=!1,G=!0,O;const K=Fl(d);!((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({},d),{from:i,to:C}));function T(){m++,h==="reverse"?(G=m%2===0,o=Ol(o,w,c,G)):(o=ir(o,w,c),h==="mirror"&&H.flipTarget()),M=!1,g&&g()}function W(){E.stop(),l&&l()}function At(tt){if(G||(tt=-tt),o+=tt,!M){const ut=H.next(Math.max(0,o));b=ut.value,O&&(b=O(b)),M=G?ut.done:o<=0}f?.(b),M&&(m===0&&(w??(w=o)),m<a?Pl(o,w,c,G)&&T():W())}function ot(){u?.(),E=s(At),E.start()}return n&&ot(),{stop:()=>{r?.(),E.stop()}}}const Kl=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],o=Math.abs(s-i);if(o===0)return s;if(o>n)return A[t-1];if(t===e-1)return s;n=o}}}};function Yl(){return globalThis.__CANVAS_ENGINE_TICK__}function ye(A){return A.animatedState!==void 0}function xi(A,t={}){const e={current:A,start:A,end:A},i=20;let n=null,s=!1;const o=Y(A),a=Y(e);it(()=>{const u=a();o.set(u.current)});function h(u,r={}){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 f={...t,...r},d=f.duration??i,C=f.ease??(b=>b);f.tick||Yl();const E=l.current,m=u,w=r.onComplete??t.onComplete;n=nr({from:E,to:m,duration:d,ease:C,onUpdate:b=>{if(s)return;const M=b;a.update(G=>({...G,current:M})),f.onUpdate?.(M),r.onUpdate?.(M)},onComplete:()=>{a.update(b=>({...b,current:m})),w?.()}})}const c=function(){return a().current};for(const u in o)c[u]=o[u];return c.animatedState=a,c.update=u=>{h(u(a().current))},c.set=async(u,r={})=>new Promise(l=>{const g=r.onComplete;h(u,{...r,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 Wl(A){for(const t of A)Array.isArray(t)?await Promise.all(t.map(e=>e())):await t()}const ki={},ft=A=>A&&typeof A=="object"&&"tag"in A&&"props"in A&&"componentInstance"in A,Mi=A=>typeof A=="string"||typeof A=="number"||typeof A=="boolean"||A===null||A===void 0,jl={Sprite:"DOMSprite"},Vl=new Set(["DOMContainer","DOMElement","DOMSprite"]),ql=new Set(["Canvas","Container","Graphics","Rect","Circle","Ellipse","Triangle","Svg","Mesh","Scene","ParticlesEmitter","Sprite","Video","Text","TilingSprite","Viewport","NineSliceSprite","Button","Joystick","FocusContainer"]),Xl=A=>{let t=A;for(;t;){if(t.tag==="DOMContainer"||t.tag==="DOMElement")return!0;t=t.parent}return!1},Zl=A=>{A.propSubscriptions?.forEach(t=>t.unsubscribe()),A.effectSubscriptions?.forEach(t=>t.unsubscribe()),A.effectUnmounts?.forEach(t=>t?.())},me=(A,t)=>{if(!Xl(A)||Vl.has(t.tag))return t;const e=jl[t.tag];if(e){Zl(t);const i=t.propObservables??t.props;return rt(e,i)}if(ql.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){ki[A]=t}let sr=!1;function Ri(){sr||(sr=!0)}async function Ze(A){return(await Promise.all(A.map(async e=>_(e)?e():Xt(e)?await e:e))).every(e=>e!==void 0)}function rr(A){return new Promise(async t=>{if(await Ze(A)){t();return}const i=A.filter(o=>_(o));if(i.length===0)return;const n=i.map(o=>o.observable),s=fA(n).subscribe(async()=>{await Ze(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 Fi(A,t){if(!A.propObservables)return;const e=i=>{if(_(i)&&ye(i)){const n=i;t?n.pause():n.resume()}else BA(i)&&!ft(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 rt(A,t){if(!ki[A])throw new Error(`Component ${A} is not registered`);const e=new ki[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=(r,l="")=>{const g=(f,d,C)=>{if(f==""){i.props[d]=C;return}ni(i.props,f+"."+d,C)};Object.entries(r).forEach(([f,d])=>{if(_(d)){const C=d;if("dependencies"in C&&C.dependencies.size==0){g(l,f,C()),f==="freeze"&&(i.isFrozen=C()===!0);return}if(f==="freeze"){i.isFrozen=C()===!0,Fi(i,i.isFrozen),i.propSubscriptions.push(C.observable.subscribe(E=>{const m=i.isFrozen;i.isFrozen=E===!0,m!==i.isFrozen&&Fi(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,f,E),i.directives[f]&&i.directives[f].onUpdate?.(E,i),f=="tick")return St(i),void 0;e.onUpdate?.(l==""?{[f]:E}:ni({},l+"."+f,E))}))}else f==="freeze"&&(i.isFrozen=d===!0,Fi(i,i.isFrozen)),BA(d)&&f!="context"&&!ft(d)?u(d,(l?l+".":"")+f):g(l,f,d)})};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 r=ci(i,u);r&&(i.directives[u]=r)}function s(u,r,l,g){const f=l.filter(E=>_(E));if(l.filter(E=>Xt(E)),f.length===0)return;const d=f.map(E=>E.observable),C=fA(d).subscribe(async()=>{if(await Ze(l)){C.unsubscribe();const m=r.propSubscriptions.indexOf(C);m>-1&&r.propSubscriptions.splice(m,1),o(u,r,g),h(r)}});r.propSubscriptions.push(C)}function o(u,r,l){r.componentInstance.onMount?.(r,l);for(let g in r.directives)r.directives[g].onMount?.(r);r.effectMounts.forEach(g=>{r.effectUnmounts.push(g(r))})}async function a(u,r,l){let g=u;for(;g?.tag==="fragment";)g=g.parent;if(r.props.context=g.props.context,r.parent=g,!r.propObservables?.freeze&&!r.props?.freeze&&St(g)&&(r.isFrozen=!0),r.props.dependencies&&Array.isArray(r.props.dependencies)){const f=r.props.dependencies;if(!await Ze(f)){s(g,r,f,l);return}}o(g,r,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 f=>{const d=f?.value??f;if(!d)throw new Error(`attach in ${u.tag} is undefined or null, add a component`);g&&ht(g),g=d,await c(u,d),l(void 0)}))}):u.props.children.push(u.props.attach)),!!u.props.children)for(let r of u.props.children)r&&await c(u,r)}async function c(u,r){if(Xt(r)&&(r=await r),r instanceof Z){const l=r.subscribe(g=>{if(g&&typeof g=="object"&&"elements"in g){const{elements:f,prev:d}=g,C=f.filter(E=>E!==null);if(d){C.forEach(async E=>{const m=u.props.children.indexOf(d.props.key);if(E instanceof Z)await c(u,E);else if(ft(E)){const w=me(u,E);a(u,w,m+1),h(w)}});return}C.forEach(async E=>{if(Array.isArray(E))E.forEach(async m=>{if(m instanceof Z)await c(u,m);else if(ft(m)){const w=me(u,m);a(u,w),h(w)}});else if(E instanceof Z)await c(u,E);else if(ft(E)){const m=me(u,E);a(u,m),h(m)}})}else if(ft(g)){const f=me(u,g);a(u,f),h(f)}else Array.isArray(g)&&g.forEach(async f=>{if(f instanceof Z)await c(u,f);else if(ft(f)){const d=me(u,f);a(u,d),h(d)}});n.next(void 0)});u.effectSubscriptions.push(l)}else if(ft(r)){const l=me(u,r);a(u,l),await h(l)}}return i}function zl(A,t){return pe(A)&&A.dependencies.size==0?A=Y(A()):_(A)||(A=Y(A)),pa(()=>{let e=[],i=new Map,n=!0;const s=a=>a?ft(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,o=a=>Array.isArray(a());return new Z(a=>{const h=o(A)?A.observable.subscribe(c=>{if(n){n=!1,e.forEach(l=>l.destroy()),e=[],i.clear();const r=A();r&&r.forEach((l,g)=>{const f=s(t(l,g));f&&(e.push(f),i.set(g,f))}),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 r=A();r&&r.forEach((l,g)=>{const f=s(t(l,g));f&&(e.push(f),i.set(g,f))})}else if(c.type==="add"&&c.index!==void 0){const r=c.items.map((l,g)=>{const f=s(t(l,c.index+g));return f&&i.set(c.index+g,f),f}).filter(l=>l!==null);e.splice(c.index,0,...r)}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 r=c.index,l=c.items[0];if(r>=e.length||e[r]===void 0||!i.has(r)){const g=s(t(l,r));g?(e.splice(r,0,g),i.set(r,g)):console.warn(`Element creation returned null for index ${r} during add-like update.`)}else{const g=e[r];ht(g);const f=s(t(l,r));f?(e[r]=f,i.set(r,f)):(e.splice(r,1),i.delete(r))}}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 r=A();r&&Object.entries(r).forEach(([l,g])=>{const f=s(t(g,l));f&&(e.push(f),i.set(l,f))}),a.next({elements:[...e]});return}if(c.type==="init"||c.type==="reset"){e.forEach(l=>ht(l)),e=[],i.clear();const r=A();r&&Object.entries(r).forEach(([l,g])=>{const f=s(t(g,l));f&&(e.push(f),i.set(l,f))})}else if(c.type==="add"&&c.key&&c.value!==void 0){const r=s(t(c.value,u));r&&(e.push(r),i.set(u,r))}else if(c.type==="remove"&&c.key){const r=e.findIndex(l=>i.get(u)===l);if(r!==-1){const[l]=e.splice(r,1);ht(l),i.delete(u)}}else if(c.type==="update"&&c.key&&c.value!==void 0){const r=e.findIndex(l=>i.get(u)===l);if(r!==-1){const l=e[r];ht(l);const g=s(t(c.value,u));g&&(e[r]=g,i.set(u,g))}}a.next({elements:[...e]})});return()=>{h.unsubscribe(),e.forEach(c=>ht(c))}})}).pipe(ma({bufferSize:1,refCount:!0}))}function $l(A,t,...e){let i=null,n=-1;const s=[];let o=null;const a=c=>_(c)?c:typeof c=="function"?Et(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"){o=c;break}const h=[{condition:a(A),elementFn:t},...s];return new Z(c=>{const u=[],r=()=>{let l=-1;for(let d=0;d<h.length;d++){const C=h[d].condition;if(C()){l=d;break}}const g=l===-1&&o,f=g?-2:l;if(f!==n)if(i&&(ht(i),i=null),n=f,g){let d=o();Xt(d)?IA(d).subscribe(C=>{i=C,c.next({type:"init",elements:[C]})}):(i=d,c.next({type:"init",elements:[i]}))}else if(l>=0){let d=h[l].elementFn();Xt(d)?IA(d).subscribe(C=>{i=C,c.next({type:"init",elements:[C]})}):(i=d,c.next({type:"init",elements:[i]}))}else c.next({elements:[]})};return h.forEach(({condition:l})=>{const g=l;u.push(g.observable.subscribe(()=>{r()}))}),r(),()=>{u.forEach(l=>l.unsubscribe()),i&&ht(i)}}).pipe(gs())}class or extends Dt{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 Cs,this.keyboardControls.setInputs(e),this.keyboardControls.start();const i=e.gamepad;i!==void 0&&i.enabled!==!1&&(this.gamepadControls=new ys,this.gamepadControls.setInputs(e),this.gamepadControls.start());const n=e.joystick;n!==void 0&&n.enabled!==!1&&(this.joystickControls=new ms,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(o=>{o?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}}bt("controls",or);class ar extends Dt{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 o=a=>{if(this._stop)return;e(o),n=Ot();const h=n-s;h>i&&(s=n-h%i,this.nextTick(a))};e(o)}else{const i=n=>{e(i),this.nextTick(n)};e(i)}return this}stop(){this._stop=!0}}bt("tick",ar);const Ct=(A,t={})=>{if(_(A))return A();const e={};for(let i in A){const n=A[i];e[i]=Mi(n)?Y(n):n}for(let i in t)i in e||(e[i]=Mi(t[i])?Y(t[i]):t[i]);return e},_i=A=>t=>{const e=_(A)?A():A,i={};for(const n in t){const s=t[n],o=e[n];let a;if(typeof s=="function")Ni(n,o,[s]),a=o;else if(Array.isArray(s))Ni(n,o,s),a=o;else if(s&&typeof s=="object"){if(s.required&&o===void 0)throw new Error(`Missing required prop: ${n}`);if(s.type){const h=Array.isArray(s.type)?s.type:[s.type];Ni(n,o,h)}if(s.validator&&!s.validator(o,e))throw new Error(`Invalid prop: custom validation failed for prop "${n}"`);o===void 0&&"default"in s?a=typeof s.default=="function"?s.default(e):s.default:a=o}i[n]=_(a)?a:Y(a)}return{...Ct(e),...i}};function Ni(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 lr extends Dt{onInit(t){}onMount(t){this.onUpdate(t.props.viewportFollow,t)}onUpdate(t,e){const i=e.props.context?.viewport;if(!i){if(t)throw si("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=Ct(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")}}bt("viewportFollow",lr);var ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function th(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var Gi={};var hr;function eh(){return hr||(hr=1,(function(A){(function(){var t=function(){this.init()};t.prototype={init:function(){var r=this||e;return r._counter=1e3,r._html5AudioPool=[],r.html5PoolSize=10,r._codecs={},r._howls=[],r._muted=!1,r._volume=1,r._canPlayEvent="canplaythrough",r._navigator=typeof window<"u"&&window.navigator?window.navigator:null,r.masterGain=null,r.noAudio=!1,r.usingWebAudio=!0,r.autoSuspend=!0,r.ctx=null,r.autoUnlock=!0,r._setup(),r},volume:function(r){var l=this||e;if(r=parseFloat(r),l.ctx||u(),typeof r<"u"&&r>=0&&r<=1){if(l._volume=r,l._muted)return l;l.usingWebAudio&&l.masterGain.gain.setValueAtTime(r,e.ctx.currentTime);for(var g=0;g<l._howls.length;g++)if(!l._howls[g]._webAudio)for(var f=l._howls[g]._getSoundIds(),d=0;d<f.length;d++){var C=l._howls[g]._soundById(f[d]);C&&C._node&&(C._node.volume=C._volume*r)}return l}return l._volume},mute:function(r){var l=this||e;l.ctx||u(),l._muted=r,l.usingWebAudio&&l.masterGain.gain.setValueAtTime(r?0:l._volume,e.ctx.currentTime);for(var g=0;g<l._howls.length;g++)if(!l._howls[g]._webAudio)for(var f=l._howls[g]._getSoundIds(),d=0;d<f.length;d++){var C=l._howls[g]._soundById(f[d]);C&&C._node&&(C._node.muted=r?!0:C._muted)}return l},stop:function(){for(var r=this||e,l=0;l<r._howls.length;l++)r._howls[l].stop();return r},unload:function(){for(var r=this||e,l=r._howls.length-1;l>=0;l--)r._howls[l].unload();return r.usingWebAudio&&r.ctx&&typeof r.ctx.close<"u"&&(r.ctx.close(),r.ctx=null,u()),r},codecs:function(r){return(this||e)._codecs[r.replace(/^x-/,"")]},_setup:function(){var r=this||e;if(r.state=r.ctx&&r.ctx.state||"suspended",r._autoSuspend(),!r.usingWebAudio)if(typeof Audio<"u")try{var l=new Audio;typeof l.oncanplaythrough>"u"&&(r._canPlayEvent="canplay")}catch{r.noAudio=!0}else r.noAudio=!0;try{var l=new Audio;l.muted&&(r.noAudio=!0)}catch{}return r.noAudio||r._setupCodecs(),r},_setupCodecs:function(){var r=this||e,l=null;try{l=typeof Audio<"u"?new Audio:null}catch{return r}if(!l||typeof l.canPlayType!="function")return r;var g=l.canPlayType("audio/mpeg;").replace(/^no$/,""),f=r._navigator?r._navigator.userAgent:"",d=f.match(/OPR\/(\d+)/g),C=d&&parseInt(d[0].split("/")[1],10)<33,E=f.indexOf("Safari")!==-1&&f.indexOf("Chrome")===-1,m=f.match(/Version\/(.*?) /),w=E&&m&&parseInt(m[1],10)<15;return r._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$/,"")},r},_unlockAudio:function(){var r=this||e;if(!(r._audioUnlocked||!r.ctx)){r._audioUnlocked=!1,r.autoUnlock=!1,!r._mobileUnloaded&&r.ctx.sampleRate!==44100&&(r._mobileUnloaded=!0,r.unload()),r._scratchBuffer=r.ctx.createBuffer(1,1,22050);var l=function(g){for(;r._html5AudioPool.length<r.html5PoolSize;)try{var f=new Audio;f._unlocked=!0,r._releaseHtml5Audio(f)}catch{r.noAudio=!0;break}for(var d=0;d<r._howls.length;d++)if(!r._howls[d]._webAudio)for(var C=r._howls[d]._getSoundIds(),E=0;E<C.length;E++){var m=r._howls[d]._soundById(C[E]);m&&m._node&&!m._node._unlocked&&(m._node._unlocked=!0,m._node.load())}r._autoResume();var w=r.ctx.createBufferSource();w.buffer=r._scratchBuffer,w.connect(r.ctx.destination),typeof w.start>"u"?w.noteOn(0):w.start(0),typeof r.ctx.resume=="function"&&r.ctx.resume(),w.onended=function(){w.disconnect(0),r._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<r._howls.length;b++)r._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),r}},_obtainHtml5Audio:function(){var r=this||e;if(r._html5AudioPool.length)return r._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(r){var l=this||e;return r._unlocked&&l._html5AudioPool.push(r),l},_autoSuspend:function(){var r=this;if(!(!r.autoSuspend||!r.ctx||typeof r.ctx.suspend>"u"||!e.usingWebAudio)){for(var l=0;l<r._howls.length;l++)if(r._howls[l]._webAudio){for(var g=0;g<r._howls[l]._sounds.length;g++)if(!r._howls[l]._sounds[g]._paused)return r}return r._suspendTimer&&clearTimeout(r._suspendTimer),r._suspendTimer=setTimeout(function(){if(r.autoSuspend){r._suspendTimer=null,r.state="suspending";var f=function(){r.state="suspended",r._resumeAfterSuspend&&(delete r._resumeAfterSuspend,r._autoResume())};r.ctx.suspend().then(f,f)}},3e4),r}},_autoResume:function(){var r=this;if(!(!r.ctx||typeof r.ctx.resume>"u"||!e.usingWebAudio))return r.state==="running"&&r.ctx.state!=="interrupted"&&r._suspendTimer?(clearTimeout(r._suspendTimer),r._suspendTimer=null):r.state==="suspended"||r.state==="running"&&r.ctx.state==="interrupted"?(r.ctx.resume().then(function(){r.state="running";for(var l=0;l<r._howls.length;l++)r._howls[l]._emit("resume")}),r._suspendTimer&&(clearTimeout(r._suspendTimer),r._suspendTimer=null)):r.state==="suspending"&&(r._resumeAfterSuspend=!0),r}};var e=new t,i=function(r){var l=this;if(!r.src||r.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}l.init(r)};i.prototype={init:function(r){var l=this;return e.ctx||u(),l._autoplay=r.autoplay||!1,l._format=typeof r.format!="string"?r.format:[r.format],l._html5=r.html5||!1,l._muted=r.mute||!1,l._loop=r.loop||!1,l._pool=r.pool||5,l._preload=typeof r.preload=="boolean"||r.preload==="metadata"?r.preload:!0,l._rate=r.rate||1,l._sprite=r.sprite||{},l._src=typeof r.src!="string"?r.src:[r.src],l._volume=r.volume!==void 0?r.volume:1,l._xhr={method:r.xhr&&r.xhr.method?r.xhr.method:"GET",headers:r.xhr&&r.xhr.headers?r.xhr.headers:null,withCredentials:r.xhr&&r.xhr.withCredentials?r.xhr.withCredentials:!1},l._duration=0,l._state="unloaded",l._sounds=[],l._endTimers={},l._queue=[],l._playLock=!1,l._onend=r.onend?[{fn:r.onend}]:[],l._onfade=r.onfade?[{fn:r.onfade}]:[],l._onload=r.onload?[{fn:r.onload}]:[],l._onloaderror=r.onloaderror?[{fn:r.onloaderror}]:[],l._onplayerror=r.onplayerror?[{fn:r.onplayerror}]:[],l._onpause=r.onpause?[{fn:r.onpause}]:[],l._onplay=r.onplay?[{fn:r.onplay}]:[],l._onstop=r.onstop?[{fn:r.onstop}]:[],l._onmute=r.onmute?[{fn:r.onmute}]:[],l._onvolume=r.onvolume?[{fn:r.onvolume}]:[],l._onrate=r.onrate?[{fn:r.onrate}]:[],l._onseek=r.onseek?[{fn:r.onseek}]:[],l._onunlock=r.onunlock?[{fn:r.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 r=this,l=null;if(e.noAudio){r._emit("loaderror",null,"No audio support.");return}typeof r._src=="string"&&(r._src=[r._src]);for(var g=0;g<r._src.length;g++){var f,d;if(r._format&&r._format[g])f=r._format[g];else{if(d=r._src[g],typeof d!="string"){r._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}f=/^data:audio\/([^;,]+);/i.exec(d),f||(f=/\.([^.]+)$/.exec(d.split("?",1)[0])),f&&(f=f[1].toLowerCase())}if(f||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),f&&e.codecs(f)){l=r._src[g];break}}if(!l){r._emit("loaderror",null,"No codec support for selected audio sources.");return}return r._src=l,r._state="loading",window.location.protocol==="https:"&&l.slice(0,5)==="http:"&&(r._html5=!0,r._webAudio=!1),new n(r),r._webAudio&&o(r),r},play:function(r,l){var g=this,f=null;if(typeof r=="number")f=r,r=null;else{if(typeof r=="string"&&g._state==="loaded"&&!g._sprite[r])return null;if(typeof r>"u"&&(r="__default",!g._playLock)){for(var d=0,C=0;C<g._sounds.length;C++)g._sounds[C]._paused&&!g._sounds[C]._ended&&(d++,f=g._sounds[C]._id);d===1?r=null:f=null}}var E=f?g._soundById(f):g._inactiveSound();if(!E)return null;if(f&&!r&&(r=E._sprite||"__default"),g._state!=="loaded"){E._sprite=r,E._ended=!1;var m=E._id;return g._queue.push({event:"play",action:function(){g.play(m)}}),m}if(f&&!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[r][0]/1e3),b=Math.max(0,(g._sprite[r][0]+g._sprite[r][1])/1e3-w),M=b*1e3/Math.abs(E._rate),G=g._sprite[r][0]/1e3,O=(g._sprite[r][0]+g._sprite[r][1])/1e3;E._sprite=r,E._ended=!1;var K=function(){E._paused=!1,E._seek=w,E._start=G,E._stop=O,E._loop=!!(E._loop||g._sprite[r][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}r!=="__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 ot=function(){g._state="loaded",W(),H.removeEventListener(e._canPlayEvent,ot,!1)};H.addEventListener(e._canPlayEvent,ot,!1),g._clearTimer(E._id)}}return E._id},pause:function(r){var l=this;if(l._state!=="loaded"||l._playLock)return l._queue.push({event:"pause",action:function(){l.pause(r)}}),l;for(var g=l._getSoundIds(r),f=0;f<g.length;f++){l._clearTimer(g[f]);var d=l._soundById(g[f]);if(d&&!d._paused&&(d._seek=l.seek(g[f]),d._rateSeek=0,d._paused=!0,l._stopFade(g[f]),d._node))if(l._webAudio){if(!d._node.bufferSource)continue;typeof d._node.bufferSource.stop>"u"?d._node.bufferSource.noteOff(0):d._node.bufferSource.stop(0),l._cleanBuffer(d._node)}else(!isNaN(d._node.duration)||d._node.duration===1/0)&&d._node.pause();arguments[1]||l._emit("pause",d?d._id:null)}return l},stop:function(r,l){var g=this;if(g._state!=="loaded"||g._playLock)return g._queue.push({event:"stop",action:function(){g.stop(r)}}),g;for(var f=g._getSoundIds(r),d=0;d<f.length;d++){g._clearTimer(f[d]);var C=g._soundById(f[d]);C&&(C._seek=C._start||0,C._rateSeek=0,C._paused=!0,C._ended=!0,g._stopFade(f[d]),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(r,l){var g=this;if(g._state!=="loaded"||g._playLock)return g._queue.push({event:"mute",action:function(){g.mute(r,l)}}),g;if(typeof l>"u")if(typeof r=="boolean")g._muted=r;else return g._muted;for(var f=g._getSoundIds(l),d=0;d<f.length;d++){var C=g._soundById(f[d]);C&&(C._muted=r,C._interval&&g._stopFade(C._id),g._webAudio&&C._node?C._node.gain.setValueAtTime(r?0:C._volume,e.ctx.currentTime):C._node&&(C._node.muted=e._muted?!0:r),g._emit("mute",C._id))}return g},volume:function(){var r=this,l=arguments,g,f;if(l.length===0)return r._volume;if(l.length===1||l.length===2&&typeof l[1]>"u"){var d=r._getSoundIds(),C=d.indexOf(l[0]);C>=0?f=parseInt(l[0],10):g=parseFloat(l[0])}else l.length>=2&&(g=parseFloat(l[0]),f=parseInt(l[1],10));var E;if(typeof g<"u"&&g>=0&&g<=1){if(r._state!=="loaded"||r._playLock)return r._queue.push({event:"volume",action:function(){r.volume.apply(r,l)}}),r;typeof f>"u"&&(r._volume=g),f=r._getSoundIds(f);for(var m=0;m<f.length;m++)E=r._soundById(f[m]),E&&(E._volume=g,l[2]||r._stopFade(f[m]),r._webAudio&&E._node&&!E._muted?E._node.gain.setValueAtTime(g,e.ctx.currentTime):E._node&&!E._muted&&(E._node.volume=g*e.volume()),r._emit("volume",E._id))}else return E=f?r._soundById(f):r._sounds[0],E?E._volume:0;return r},fade:function(r,l,g,f){var d=this;if(d._state!=="loaded"||d._playLock)return d._queue.push({event:"fade",action:function(){d.fade(r,l,g,f)}}),d;r=Math.min(Math.max(0,parseFloat(r)),1),l=Math.min(Math.max(0,parseFloat(l)),1),g=parseFloat(g),d.volume(r,f);for(var C=d._getSoundIds(f),E=0;E<C.length;E++){var m=d._soundById(C[E]);if(m){if(f||d._stopFade(C[E]),d._webAudio&&!m._muted){var w=e.ctx.currentTime,b=w+g/1e3;m._volume=r,m._node.gain.setValueAtTime(r,w),m._node.gain.linearRampToValueAtTime(l,b)}d._startFadeInterval(m,r,l,g,C[E],typeof f>"u")}}return d},_startFadeInterval:function(r,l,g,f,d,C){var E=this,m=l,w=g-l,b=Math.abs(w/.01),M=Math.max(4,b>0?f/b:f),G=Date.now();r._fadeTo=g,r._interval=setInterval(function(){var O=(Date.now()-G)/f;G=Date.now(),m+=w*O,m=Math.round(m*100)/100,w<0?m=Math.max(g,m):m=Math.min(g,m),E._webAudio?r._volume=m:E.volume(m,r._id,!0),C&&(E._volume=m),(g<l&&m<=g||g>l&&m>=g)&&(clearInterval(r._interval),r._interval=null,r._fadeTo=null,E.volume(g,r._id),E._emit("fade",r._id))},M)},_stopFade:function(r){var l=this,g=l._soundById(r);return g&&g._interval&&(l._webAudio&&g._node.gain.cancelScheduledValues(e.ctx.currentTime),clearInterval(g._interval),g._interval=null,l.volume(g._fadeTo,r),g._fadeTo=null,l._emit("fade",r)),l},loop:function(){var r=this,l=arguments,g,f,d;if(l.length===0)return r._loop;if(l.length===1)if(typeof l[0]=="boolean")g=l[0],r._loop=g;else return d=r._soundById(parseInt(l[0],10)),d?d._loop:!1;else l.length===2&&(g=l[0],f=parseInt(l[1],10));for(var C=r._getSoundIds(f),E=0;E<C.length;E++)d=r._soundById(C[E]),d&&(d._loop=g,r._webAudio&&d._node&&d._node.bufferSource&&(d._node.bufferSource.loop=g,g&&(d._node.bufferSource.loopStart=d._start||0,d._node.bufferSource.loopEnd=d._stop,r.playing(C[E])&&(r.pause(C[E],!0),r.play(C[E],!0)))));return r},rate:function(){var r=this,l=arguments,g,f;if(l.length===0)f=r._sounds[0]._id;else if(l.length===1){var d=r._getSoundIds(),C=d.indexOf(l[0]);C>=0?f=parseInt(l[0],10):g=parseFloat(l[0])}else l.length===2&&(g=parseFloat(l[0]),f=parseInt(l[1],10));var E;if(typeof g=="number"){if(r._state!=="loaded"||r._playLock)return r._queue.push({event:"rate",action:function(){r.rate.apply(r,l)}}),r;typeof f>"u"&&(r._rate=g),f=r._getSoundIds(f);for(var m=0;m<f.length;m++)if(E=r._soundById(f[m]),E){r.playing(f[m])&&(E._rateSeek=r.seek(f[m]),E._playStart=r._webAudio?e.ctx.currentTime:E._playStart),E._rate=g,r._webAudio&&E._node&&E._node.bufferSource?E._node.bufferSource.playbackRate.setValueAtTime(g,e.ctx.currentTime):E._node&&(E._node.playbackRate=g);var w=r.seek(f[m]),b=(r._sprite[E._sprite][0]+r._sprite[E._sprite][1])/1e3-w,M=b*1e3/Math.abs(E._rate);(r._endTimers[f[m]]||!E._paused)&&(r._clearTimer(f[m]),r._endTimers[f[m]]=setTimeout(r._ended.bind(r,E),M)),r._emit("rate",E._id)}}else return E=r._soundById(f),E?E._rate:r._rate;return r},seek:function(){var r=this,l=arguments,g,f;if(l.length===0)r._sounds.length&&(f=r._sounds[0]._id);else if(l.length===1){var d=r._getSoundIds(),C=d.indexOf(l[0]);C>=0?f=parseInt(l[0],10):r._sounds.length&&(f=r._sounds[0]._id,g=parseFloat(l[0]))}else l.length===2&&(g=parseFloat(l[0]),f=parseInt(l[1],10));if(typeof f>"u")return 0;if(typeof g=="number"&&(r._state!=="loaded"||r._playLock))return r._queue.push({event:"seek",action:function(){r.seek.apply(r,l)}}),r;var E=r._soundById(f);if(E)if(typeof g=="number"&&g>=0){var m=r.playing(f);m&&r.pause(f,!0),E._seek=g,E._ended=!1,r._clearTimer(f),!r._webAudio&&E._node&&!isNaN(E._node.duration)&&(E._node.currentTime=g);var w=function(){m&&r.play(f,!0),r._emit("seek",f)};if(m&&!r._webAudio){var b=function(){r._playLock?setTimeout(b,0):w()};setTimeout(b,0)}else w()}else if(r._webAudio){var M=r.playing(f)?e.ctx.currentTime-E._playStart:0,G=E._rateSeek?E._rateSeek-E._seek:0;return E._seek+(G+M*Math.abs(E._rate))}else return E._node.currentTime;return r},playing:function(r){var l=this;if(typeof r=="number"){var g=l._soundById(r);return g?!g._paused:!1}for(var f=0;f<l._sounds.length;f++)if(!l._sounds[f]._paused)return!0;return!1},duration:function(r){var l=this,g=l._duration,f=l._soundById(r);return f&&(g=l._sprite[f._sprite][1]/1e3),g},state:function(){return this._state},unload:function(){for(var r=this,l=r._sounds,g=0;g<l.length;g++)l[g]._paused||r.stop(l[g]._id),r._webAudio||(r._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,r._clearTimer(l[g]._id);var f=e._howls.indexOf(r);f>=0&&e._howls.splice(f,1);var d=!0;for(g=0;g<e._howls.length;g++)if(e._howls[g]._src===r._src||r._src.indexOf(e._howls[g]._src)>=0){d=!1;break}return s&&d&&delete s[r._src],e.noAudio=!1,r._state="unloaded",r._sounds=[],r=null,null},on:function(r,l,g,f){var d=this,C=d["_on"+r];return typeof l=="function"&&C.push(f?{id:g,fn:l,once:f}:{id:g,fn:l}),d},off:function(r,l,g){var f=this,d=f["_on"+r],C=0;if(typeof l=="number"&&(g=l,l=null),l||g)for(C=0;C<d.length;C++){var E=g===d[C].id;if(l===d[C].fn&&E||!l&&E){d.splice(C,1);break}}else if(r)f["_on"+r]=[];else{var m=Object.keys(f);for(C=0;C<m.length;C++)m[C].indexOf("_on")===0&&Array.isArray(f[m[C]])&&(f[m[C]]=[])}return f},once:function(r,l,g){var f=this;return f.on(r,l,g,1),f},_emit:function(r,l,g){for(var f=this,d=f["_on"+r],C=d.length-1;C>=0;C--)(!d[C].id||d[C].id===l||r==="load")&&(setTimeout((function(E){E.call(this,l,g)}).bind(f,d[C].fn),0),d[C].once&&f.off(r,d[C].fn,d[C].id));return f._loadQueue(r),f},_loadQueue:function(r){var l=this;if(l._queue.length>0){var g=l._queue[0];g.event===r&&(l._queue.shift(),l._loadQueue()),r||g.action()}return l},_ended:function(r){var l=this,g=r._sprite;if(!l._webAudio&&r._node&&!r._node.paused&&!r._node.ended&&r._node.currentTime<r._stop)return setTimeout(l._ended.bind(l,r),100),l;var f=!!(r._loop||l._sprite[g][2]);if(l._emit("end",r._id),!l._webAudio&&f&&l.stop(r._id,!0).play(r._id),l._webAudio&&f){l._emit("play",r._id),r._seek=r._start||0,r._rateSeek=0,r._playStart=e.ctx.currentTime;var d=(r._stop-r._start)*1e3/Math.abs(r._rate);l._endTimers[r._id]=setTimeout(l._ended.bind(l,r),d)}return l._webAudio&&!f&&(r._paused=!0,r._ended=!0,r._seek=r._start||0,r._rateSeek=0,l._clearTimer(r._id),l._cleanBuffer(r._node),e._autoSuspend()),!l._webAudio&&!f&&l.stop(r._id,!0),l},_clearTimer:function(r){var l=this;if(l._endTimers[r]){if(typeof l._endTimers[r]!="function")clearTimeout(l._endTimers[r]);else{var g=l._soundById(r);g&&g._node&&g._node.removeEventListener("ended",l._endTimers[r],!1)}delete l._endTimers[r]}return l},_soundById:function(r){for(var l=this,g=0;g<l._sounds.length;g++)if(r===l._sounds[g]._id)return l._sounds[g];return null},_inactiveSound:function(){var r=this;r._drain();for(var l=0;l<r._sounds.length;l++)if(r._sounds[l]._ended)return r._sounds[l].reset();return new n(r)},_drain:function(){var r=this,l=r._pool,g=0,f=0;if(!(r._sounds.length<l)){for(f=0;f<r._sounds.length;f++)r._sounds[f]._ended&&g++;for(f=r._sounds.length-1;f>=0;f--){if(g<=l)return;r._sounds[f]._ended&&(r._webAudio&&r._sounds[f]._node&&r._sounds[f]._node.disconnect(0),r._sounds.splice(f,1),g--)}}},_getSoundIds:function(r){var l=this;if(typeof r>"u"){for(var g=[],f=0;f<l._sounds.length;f++)g.push(l._sounds[f]._id);return g}else return[r]},_refreshBuffer:function(r){var l=this;return r._node.bufferSource=e.ctx.createBufferSource(),r._node.bufferSource.buffer=s[l._src],r._panner?r._node.bufferSource.connect(r._panner):r._node.bufferSource.connect(r._node),r._node.bufferSource.loop=r._loop,r._loop&&(r._node.bufferSource.loopStart=r._start||0,r._node.bufferSource.loopEnd=r._stop||0),r._node.bufferSource.playbackRate.setValueAtTime(r._rate,e.ctx.currentTime),l},_cleanBuffer:function(r){var l=this,g=e._navigator&&e._navigator.vendor.indexOf("Apple")>=0;if(!r.bufferSource)return l;if(e._scratchBuffer&&r.bufferSource&&(r.bufferSource.onended=null,r.bufferSource.disconnect(0),g))try{r.bufferSource.buffer=e._scratchBuffer}catch{}return r.bufferSource=null,l},_clearSound:function(r){var l=/MSIE |Trident\//.test(e._navigator&&e._navigator.userAgent);l||(r.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var n=function(r){this._parent=r,this.init()};n.prototype={init:function(){var r=this,l=r._parent;return r._muted=l._muted,r._loop=l._loop,r._volume=l._volume,r._rate=l._rate,r._seek=0,r._paused=!0,r._ended=!0,r._sprite="__default",r._id=++e._counter,l._sounds.push(r),r.create(),r},create:function(){var r=this,l=r._parent,g=e._muted||r._muted||r._parent._muted?0:r._volume;return l._webAudio?(r._node=typeof e.ctx.createGain>"u"?e.ctx.createGainNode():e.ctx.createGain(),r._node.gain.setValueAtTime(g,e.ctx.currentTime),r._node.paused=!0,r._node.connect(e.masterGain)):e.noAudio||(r._node=e._obtainHtml5Audio(),r._errorFn=r._errorListener.bind(r),r._node.addEventListener("error",r._errorFn,!1),r._loadFn=r._loadListener.bind(r),r._node.addEventListener(e._canPlayEvent,r._loadFn,!1),r._endFn=r._endListener.bind(r),r._node.addEventListener("ended",r._endFn,!1),r._node.src=l._src,r._node.preload=l._preload===!0?"auto":l._preload,r._node.volume=g*e.volume(),r._node.load()),r},reset:function(){var r=this,l=r._parent;return r._muted=l._muted,r._loop=l._loop,r._volume=l._volume,r._rate=l._rate,r._seek=0,r._rateSeek=0,r._paused=!0,r._ended=!0,r._sprite="__default",r._id=++e._counter,r},_errorListener:function(){var r=this;r._parent._emit("loaderror",r._id,r._node.error?r._node.error.code:0),r._node.removeEventListener("error",r._errorFn,!1)},_loadListener:function(){var r=this,l=r._parent;l._duration=Math.ceil(r._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()),r._node.removeEventListener(e._canPlayEvent,r._loadFn,!1)},_endListener:function(){var r=this,l=r._parent;l._duration===1/0&&(l._duration=Math.ceil(r._node.duration*10)/10,l._sprite.__default[1]===1/0&&(l._sprite.__default[1]=l._duration*1e3),l._ended(r)),r._node.removeEventListener("ended",r._endFn,!1)}};var s={},o=function(r){var l=r._src;if(s[l]){r._duration=s[l].duration,c(r);return}if(/^data:[^;]+;base64,/.test(l)){for(var g=atob(l.split(",")[1]),f=new Uint8Array(g.length),d=0;d<g.length;++d)f[d]=g.charCodeAt(d);h(f.buffer,r)}else{var C=new XMLHttpRequest;C.open(r._xhr.method,l,!0),C.withCredentials=r._xhr.withCredentials,C.responseType="arraybuffer",r._xhr.headers&&Object.keys(r._xhr.headers).forEach(function(E){C.setRequestHeader(E,r._xhr.headers[E])}),C.onload=function(){var E=(C.status+"")[0];if(E!=="0"&&E!=="2"&&E!=="3"){r._emit("loaderror",null,"Failed loading audio file with status: "+C.status+".");return}h(C.response,r)},C.onerror=function(){r._webAudio&&(r._html5=!0,r._webAudio=!1,r._sounds=[],delete s[l],r.load())},a(C)}},a=function(r){try{r.send()}catch{r.onerror()}},h=function(r,l){var g=function(){l._emit("loaderror",null,"Decoding audio data failed.")},f=function(d){d&&l._sounds.length>0?(s[l._src]=d,c(l,d)):g()};typeof Promise<"u"&&e.ctx.decodeAudioData.length===1?e.ctx.decodeAudioData(r).then(f).catch(g):e.ctx.decodeAudioData(r,f,g)},c=function(r,l){l&&!r._duration&&(r._duration=l.duration),Object.keys(r._sprite).length===0&&(r._sprite={__default:[0,r._duration*1e3]}),r._state!=="loaded"&&(r._state="loaded",r._emit("load"),r._loadQueue())},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 r=/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(r&&g&&g<9){var f=/safari/.test(e._navigator&&e._navigator.userAgent.toLowerCase());e._navigator&&!f&&(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,o,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,o=typeof o!="number"?c[4]:o,a=typeof a!="number"?c[5]:a,typeof e=="number")h._orientation=[e,i,n,s,o,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(o,Howler.ctx.currentTime,.1),h.ctx.listener.upZ.setTargetAtTime(a,Howler.ctx.currentTime,.1)):h.ctx.listener.setOrientation(e,i,n,s,o,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 o=n._getSoundIds(i),a=0;a<o.length;a++){var h=n._soundById(o[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 o=this;if(!o._webAudio)return o;if(o._state!=="loaded")return o._queue.push({event:"pos",action:function(){o.pos(e,i,n,s)}}),o;if(i=typeof i!="number"?0:i,n=typeof n!="number"?-.5:n,typeof s>"u")if(typeof e=="number")o._pos=[e,i,n];else return o._pos;for(var a=o._getSoundIds(s),h=0;h<a.length;h++){var c=o._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)),o._emit("pos",c._id);else return c._pos}return o},Howl.prototype.orientation=function(e,i,n,s){var o=this;if(!o._webAudio)return o;if(o._state!=="loaded")return o._queue.push({event:"orientation",action:function(){o.orientation(e,i,n,s)}}),o;if(i=typeof i!="number"?o._orientation[1]:i,n=typeof n!="number"?o._orientation[2]:n,typeof s>"u")if(typeof e=="number")o._orientation=[e,i,n];else return o._orientation;for(var a=o._getSoundIds(s),h=0;h<a.length;h++){var c=o._soundById(a[h]);if(c)if(typeof e=="number")c._orientation=[e,i,n],c._node&&(c._panner||(c._pos||(c._pos=o._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)),o._emit("orientation",c._id);else return c._orientation}return o},Howl.prototype.pannerAttr=function(){var e=this,i=arguments,n,s,o;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 o=e._soundById(parseInt(i[0],10)),o?o._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(o=e._soundById(a[h]),o){var c=o._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=o._panner;u||(o._pos||(o._pos=e._pos||[0,0,-.5]),t(o,"spatial"),u=o._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)}})()})(Gi)),Gi}var we=eh();const Ah=ko({__proto__:null,default:th(we)},[we]),cr=["load","loaderror","playerror","play","end","pause","stop","mute","volume","rate","seek","fade","unlock"];let gr=class extends Dt{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:o,loop:a,volume:h,spatial:c}=n,u=Array.isArray(s)?s:[s];for(const r of u){if(!r)continue;const l=new we.Howl({src:r,autoplay:o,loop:a,volume:h});for(let g of cr){if(!n[g])continue;const f=n[g];this.eventsFn.push(f),l.on(g,f)}this.sounds.push(l)}if(c&&this.sounds.length>0){const{soundListenerPosition:r}=e.context;if(!r)throw new si("SoundListenerPosition directive is required for spatial sound in component parent");const{x:l,y:g}=r;this.tickSubscription=it(()=>{i();const{x:f,y:d}=t.componentInstance,C=fs(f,d,l(),g()),E=Math.max(this.maxVolume-C/this.maxDistance,0);this.sounds.forEach(m=>m.volume(E))}).subscription}this.onUpdate(n)}onUpdate(t){const e=t.value??t,{volume:i,loop:n,mute:s,seek:o,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),o!==void 0&&u.seek(o),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 cr){const i=this.eventsFn.find(n=>n===this.eventsFn[e]);i&&t.off(e,i)}}),this.sounds=[],this.eventsFn=[],this.tickSubscription?.unsubscribe()}};class ih extends Dt{onMount(t){t.props.context.soundListenerPosition=t.propObservables?.soundListenerPosition}onInit(t){}onUpdate(t){}onDestroy(){}}bt("sound",gr),bt("soundListenerPosition",ih);const nh=(A,t,e)=>{A.props.context={...A.props.context??{},[t]:e}};class ur extends Dt{constructor(){super(...arguments),this.elementRef=null}onInit(t){this.elementRef=t}onMount(t){nh(t,"drop",t)}onUpdate(){}onDestroy(){this.elementRef=null}}class Ir extends Dt{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,o=t.componentInstance,a=this.dragProps;if(Object.keys(a).length===0){this.onDestroy();return}if(!o||(this.stageRef=e.componentInstance,!this.stageRef))return;this.viewport=n,o.eventMode="static",this.stageRef.eventMode="static";const c=it(()=>{this.stageRef&&(this.stageRef.hitArea=new D.Rectangle(0,0,i().width,i().height))});o.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=Ct(t?.value??t,{snap:0,viewport:{},direction:"all",keyToPress:[]});return e.viewport=Ct(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,o=Kl(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=o(h),e.position.y=o(c)):(this.axis.x&&(e.position.x=h),this.axis.y&&(e.position.y=c)),this.lastPointerPosition.copyFrom(t.global);const{x:u,y:r}=s,l=(g,f)=>{pe(g)?g.dependencies.forEach(d=>{d.set(f)}):_(g)&&g.set(f)};u!==void 0&&l(u,e.position.x),r!==void 0&&l(r,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,o=this.viewport.screenWidth,a=0,h=this.viewport.screenHeight,c=this.elementRef.componentInstance,u=t.x-s,r=o-t.x,l=t.y-a,g=h-t.y;let f=0,d=0;if(u<i?f=-(n*(1-u/i)):r<i&&(f=n*(1-r/i)),l<i?d=-(n*(1-l/i)):g<i&&(d=n*(1-g/i)),f!==0||d!==0){const C=this.viewport.center;this.viewport.moveCenter(this.viewport.center.x+f,this.viewport.center.y+d),this.axis.x&&C.x!==this.viewport.center.x&&(c.position.x+=f),this.axis.y&&C.y!==this.viewport.center.y&&(c.position.y+=d)}}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}}bt("drag",Ir),bt("drop",ur);class fr extends Dt{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(()=>{nr({from:0,to:1,duration:500,onUpdate:o=>{n.scale.x=o,n.scale.y=o}})},5e3)}onUpdate(t){}onDestroy(){}}bt("transition",fr);function $e(A){return A?.start&&A?.listen}function sh(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(!$e(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 o=t(n?.seed.config);o&&typeof o.then=="function"?o.then(a=>s.resolve(a)).catch(()=>s.resolve(void 0)):s.resolve(o)}catch{s.resolve(void 0)}}}}).subscription}class Br extends Dt{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||!$e(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 Ct(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),o=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:o,direction:a,randomSeed:Math.random()*1e3},this.progressSignal?await this.progressSignal.set(0,{duration:0}):this.progressSignal=xi(0,{duration:s,ease:l=>l});const u=a!=="y",r=a!=="x";this.positionEffect=it(()=>{if(!e||!this.progressSignal||!this.currentShakeConfig)return;const l=this.progressSignal(),g=this.currentShakeConfig,f=1-l,d=l*g.frequency,C=Math.sin(d*Math.PI*2),E=Math.sin(g.randomSeed+l*10)*.25+1,m=u?C*g.intensity*f*E:0,w=r?C*g.intensity*f*E:0;e.position.x=this.originalPosition.x+m,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}}bt("shake",Br);class dr extends Dt{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||!$e(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 Ct(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),o=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:o,flashAlpha:a,flashTint:h};if(this.currentFlashConfig=u,this.progressSignal||(this.progressSignal=xi(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,f=l*g.cycles%1,d=f<.5?f*2:1-(f-.5)*2,C=this.originalAlpha+(g.flashAlpha-this.originalAlpha)*d;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),f=this.progressSignal(),d=this.currentFlashConfig,C=f*d.cycles%1,E=C<.5?C*2:1-(C-.5)*2,m=this.originalTint>>16&255,w=this.originalTint>>8&255,b=this.originalTint&255,M=d.flashTint>>16&255,G=d.flashTint>>8&255,O=d.flashTint&255,K=Math.round(m+(M-m)*E),H=Math.round(w+(G-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}}bt("flash",dr);function Qt(A){return A&&typeof A=="string"?A.endsWith("%"):!1}const Er=["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 Er)if(e[i]&&!this.overrideProps.includes(i)){this.eventMode="static";const n=e[i],s=(...o)=>{if(!(this.#i&&St(this.#i)))return n(...o)};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"||Qt(e.width)||Qt(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 o=a=>{a.computedLayout&&(this.#A={width:a.computedLayout.width,height:a.computedLayout.height}),this.onLayoutComputed(a)};this.on("layout",o),this.#e.set("layout",o),this.onAfterMount&&await this.onAfterMount()}}onUpdate(e){if(this.fullProps={...this.fullProps,...e},this.destroyed||!this.#t||!this.parent)return;e.x!==void 0&&this.setX(e.x),e.y!==void 0&&this.setY(e.y),e.scale!==void 0&&re(this.scale,e.scale),e.anchor!==void 0&&!this.isCustomAnchor&&re(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&&re(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&&re(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&&ft(e.maskOf)&&(e.maskOf.componentInstance.mask=this),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 Qt(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 Qt(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 rh{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 oh=async(A={})=>{let{cursorStyles:t,width:e,height:i,class:n}=Ct(A);A.width||(e=Y(800)),A.height||(i=Y(600));const s=Y({width:0,height:0});A.isRoot=!0;const o=new rh,a={...A,context:{canvasSize:s,app:Y(null),globalLoader:o},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=rt("Canvas",a);return h.render=(c,u)=>{if(!u)return;const r=u.renderer,l=r.view.canvas;globalThis.__PIXI_STAGE__=h.componentInstance,globalThis.__PIXI_RENDERER__=r,A.tickStart!==!1&&h.directives.tick.start(),it(()=>{h.propObservables.tick(),r.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",(f,d)=>{s.set({width:f,height:d}),u.stage.layout&&(u.stage.layout={width:f,height:d})}),A.tickStart!==!1&&h.directives.tick.start(),u.ticker.add(()=>{h.propObservables.tick()}),t&&it(()=>{r.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 Hi extends xt(D.Container){constructor(){super(...arguments),this.isCustomAnchor=!0}onUpdate(t){t.anchor&&(re(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=Qt(i.width),o=Qt(i.height);(s||o)&&this.on("layout",a=>{const h=a.computedLayout;s&&h.width!==void 0&&this.displayWidth.set(h.width),o&&h.height!==void 0&&this.displayHeight.set(h.height)})}}st("Container",Hi);const tA=A=>(st("Container",Hi),rt("Container",A));class ah 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),o=_(n?.height)?n.height:Y(i.height||0),a=_(n?.anchor)?n.anchor:Y(i.anchor||[0,0]);this._width=s,this._height=o;const h=Qt(s()),c=Qt(o());i.draw&&(this.clearEffect=it(()=>{const u=s(),r=o(),l=a();typeof u=="string"||typeof r=="string"||(this.clear(),i.draw?.(this,u,r,l),this.subjectInit.next(this))})),this.on("layout",u=>{const r=u.computedLayout;h&&_(s)&&s()!==r.width&&s.set(r.width),c&&_(o)&&o()!==r.height&&o.set(r.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",ah);function ae(A){return rt("Graphics",A)}const Li=(A,t,e)=>{const i=new D.ObservablePoint({_onUpdate:()=>{}},0,0);re(i,A);const n=i.x,s=i.y;return{x:-n*t,y:-s*e}};function Cr(A){const{color:t,borderRadius:e,border:i}=Ct(A,{borderRadius:null,border:null});return ae({draw:(n,s,o,a)=>{const{x:h,y:c}=Li(a,s,o);e()?n.roundRect(h,c,s,o,e()):n.rect(h,c,s,o),i&&n.stroke(i),n.fill(t())},...A})}function Ui(A){const{color:t,border:e,radius:i}=Ct(A,{border:null,radius:null});return ae({draw:(n,s,o,a)=>{const{x:h,y:c}=Li(a,s,o);s==o||o==0?n.circle(h,c,i()||s):n.ellipse(h,c,s,o),e()&&n.stroke(e()),n.fill(t())},...A})}function Qr(A){return Ui(A)}function lh(A){const{color:t,border:e}=Ct(A,{border:null,color:"#000"});return ae({draw:(i,n,s,o)=>{const{x:a,y:h}=Li(o,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 hh(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 ch 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",ch);const gh=A=>rt("Mesh",A);x.currentSubscriptionsTracker=null,x.mountTracker=null;function Ti(A){x.mountTracker?.(A)}function uh(A){Ti(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 bA(A,t={},e){const i=new Set,n=new Set;x.currentSubscriptionsTracker=o=>{i.add(o)},x.mountTracker=o=>{n.add(o)},e[0]instanceof Array&&(e=e[0]);let s;return Array.isArray(A)?A.length===1?s=A[0]:s=bA(tA,{},A):"tag"in A||A instanceof Z?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(o=>{o.props.isRoot&&n.forEach(a=>a(o))}),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)?bA(A,t,e):new Z(n=>{rr(t.dependencies).then(()=>{const s=bA(A,t,e);n.next(s)})}):bA(A,t,e)}function Ih(A){return gt(tA)}class Oi{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 o=i[s];this.segments.push({p1:n,p2:o,l:0}),n=o}}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:o}=i;t.x=s.x+n*(o.x-s.x),t.y=s.y+n*(o.y-s.y)}}Oi.type="polygonalChain",Oi.editorConfig=null;class Pi{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}}Pi.type="rect",Pi.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:mr(i):this.ease=null}static createList(t){if("list"in t){const i=t.list;let n;const{value:s,time:o}=i[0],a=n=new Nt(typeof s=="string"?xA(s):s,o,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"?xA(c):c,u),n=n.next}return a.isStepped=!!t.isStepped,a}const e=new Nt(typeof t.start=="string"?xA(t.start):t.start,0);return t.end!==t.start&&(e.next=new Nt(typeof t.end=="string"?xA(t.end):t.end,1)),e}}let eA=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 SA(A,t,e){return A<<16|t<<8|e}function pr(A){return Math.sqrt(A.x*A.x+A.y*A.y)}function fh(A){const t=1/pr(A);A.x*=t,A.y*=t}function yr(A,t){A.x*=t,A.y*=t}function xA(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 mr(A){const t=A.length,e=1/t;return function(i){const n=t*i|0,s=(i-n*e)*t,o=A[n]||A[t-1];return o.s+s*(2*(1-s)*(o.cp-o.s)+s*(o.e-o.s))}}function Bh(A){return A||"normal"}class kA{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}}kA.type="torus",kA.editorConfig=null;var X;(function(A){A[A.Spawn=0]="Spawn",A[A.Normal=2]="Normal",A[A.Late=5]="Late"})(X||(X={}));class Ji{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 o=pr(i);o>this.maxSpeed&&yr(i,this.maxSpeed/o)}t.x+=(n+i.x)/2*e,t.y+=(s+i.y)/2*e,this.rotate&&(t.rotation=Math.atan2(i.y,i.x))}}Ji.type="moveAcceleration",Ji.editorConfig=null;function dh(A){return this.ease&&(A=this.ease(A)),(this.first.next.value-this.first.value)*A+this.first.value}function Eh(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 SA(i,n,s)}function Ch(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 Qh(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,o=(n.g-i.g)*A+i.g,a=(n.b-i.b)*A+i.b;return SA(s,o,a)}function ph(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 yh(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 SA(e.r,e.g,e.b)}class AA{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?Eh:dh:t.isStepped?this.interpolate=this.isColor?yh:ph:this.interpolate=this.isColor?Qh:Ch,this.ease=this.first.ease}}class Ki{constructor(t){this.order=X.Normal,this.list=new AA(!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)}}Ki.type="alpha",Ki.editorConfig=null;class Yi{constructor(t){this.order=X.Normal,this.value=t.alpha}initParticles(t){let e=t;for(;e;)e.alpha=this.value,e=e.next}}Yi.type="alphaStatic",Yi.editorConfig=null;function wr(A){const t=[];for(let e=0;e<A.length;++e){let i=A[e];if(typeof i=="string")t.push(eA(i));else if(i instanceof D.Texture)t.push(i);else{let n=i.count||1;for(typeof i.texture=="string"?i=eA(i.texture):i=i.texture;n>0;--n)t.push(i)}}return t}class Wi{constructor(t){this.order=X.Normal,this.anims=[];for(let e=0;e<t.anims.length;++e){const i=t.anims[e],n=wr(i.textures),s=i.framerate<0?-1:i.framerate>0?i.framerate:60,o={textures:n,duration:s>0?n.length/s:0,framerate:s,loop:s>0?!!i.loop:!1};this.anims.push(o)}}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}}Wi.type="animatedRandom",Wi.editorConfig=null;class ji{constructor(t){this.order=X.Normal;const e=t.anim,i=wr(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 Vi{constructor(t){this.order=X.Normal,this.value=t.blendMode}initParticles(t){let e=t;for(;e;)e.blendMode=Bh(this.value),e=e.next}}Vi.type="blendMode",Vi.editorConfig=null;class qi{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}}}qi.type="spawnBurst",qi.editorConfig=null;class Xi{constructor(t){this.order=X.Normal,this.list=new AA(!0),this.list.reset(Nt.createList(t.color))}initParticles(t){let e=t;const i=this.list.first.value,n=SA(i.r,i.g,i.b);for(;e;)e.tint=n,e=e.next}updateParticle(t){t.tint=this.list.interpolate(t.agePercent)}}Xi.type="color",Xi.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 zi{constructor(t){this.order=X.Normal,this.index=0,this.textures=t.textures.map(e=>typeof e=="string"?eA(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}}zi.type="textureOrdered",zi.editorConfig=null;const ve=new D.Point,vr=["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"],mh=new RegExp(["[01234567890\\.\\*\\-\\+\\/\\(\\)x ,]"].concat(vr).join("|"),"g");function wh(A){const t=A.match(mh);for(let e=t.length-1;e>=0;--e)vr.indexOf(t[e])>=0&&(t[e]=`Math.${t[e]}`);return A=t.join(""),new Function("x",`return ${A};`)}class $i{constructor(t){if(this.order=X.Late,t.path)if(typeof t.path=="function")this.path=t.path;else try{this.path=wh(t.path)}catch{this.path=null}else this.path=e=>e;this.list=new AA(!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,ve.x=t.config.movement,ve.y=this.path(ve.x),Pt(t.config.initRotation,ve),t.position.x=t.config.initPosition.x+ve.x,t.position.y=t.config.initPosition.y+ve.y}}$i.type="movePath",$i.editorConfig=null;class tn{constructor(){this.order=X.Spawn}initParticles(t){}}tn.type="spawnPoint",tn.editorConfig=null;class en{constructor(t){this.order=X.Normal,this.textures=t.textures.map(e=>typeof e=="string"?eA(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}}}en.type="textureRandom",en.editorConfig=null;class An{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}}An.type="rotation",An.editorConfig=null;class nn{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}}nn.type="rotationStatic",nn.editorConfig=null;class sn{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}}sn.type="noRotation",sn.editorConfig=null;class rn{constructor(t){this.order=X.Normal,this.list=new AA(!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 on{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}}}on.type="scaleStatic",on.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(Oi),kt.registerShape(Pi),kt.registerShape(kA),kt.registerShape(kA,"circle");class an{constructor(t){this.order=X.Normal,this.texture=typeof t.texture=="string"?eA(t.texture):t.texture}initParticles(t){let e=t;for(;e;)e.texture=this.texture,e=e.next}}an.type="textureSingle",an.editorConfig=null;class ln{constructor(t){this.order=X.Late,this.list=new AA(!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;fh(n),yr(n,i),t.x+=n.x*e,t.y+=n.y*e}}ln.type="moveSpeed",ln.editorConfig=null;class hn{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}}hn.type="moveSpeedStatic",hn.editorConfig=null;class cn 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 gn=D.Ticker.shared,le=Symbol("Position particle per emitter position");class j{static registerBehavior(t){j.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:mr(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=j.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 j.knownBehaviors[t]&&this.initBehaviors.find(e=>e instanceof j.knownBehaviors[t])||null}fillPool(t){for(;t>0;--t){const e=new cn(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?gn.remove(this.update,this):!this._autoUpdate&&t&&gn.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=gn.elapsedMS*.001),!this._parent)return;for(let o=this._activeParticlesFirst,a;o;o=a)if(a=o.next,o.age+=t,o.age>o.maxLife||o.age<0)this.recycle(o);else{let h=o.age*o.oneOverLife;this.customEase&&(this.customEase.length===4?h=this.customEase(h,0,1,1):h=this.customEase(h)),o.agePercent=h;for(let c=0;c<this.updateBehaviors.length;++c)if(this.updateBehaviors[c].updateParticle(o,t)){this.recycle(o);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 o,a;if(this._prevPosIsValid&&this._posChanged){const u=1+this._spawnTimer/t;o=(n-e)*u+e,a=(s-i)*u+i}else o=n,a=s;let h=null,c=null;for(let u=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount),r=0;r<u;++r){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 cn(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 r=this.initBehaviors[u];if(r===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+=o,l.position.y+=a,l.age+=-this._spawnTimer;let f=l.age*l.oneOverLife;this.customEase&&(this.customEase.length===4?f=this.customEase(f,0,1,1):f=this.customEase(f)),l.agePercent=f}else r.initParticles(h)}for(let u=h,r;u;u=r){r=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 o=this._completeCallback;this._completeCallback=null,o()}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),o=0;o<s;++o){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 cn(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 o=this.initBehaviors[s];if(o===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 o.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}}j.knownBehaviors={},j.registerBehavior(Ji),j.registerBehavior(Ki),j.registerBehavior(Yi),j.registerBehavior(Wi),j.registerBehavior(ji),j.registerBehavior(Vi),j.registerBehavior(qi),j.registerBehavior(Xi),j.registerBehavior(Zi),j.registerBehavior(zi),j.registerBehavior($i),j.registerBehavior(tn),j.registerBehavior(en),j.registerBehavior(An),j.registerBehavior(nn),j.registerBehavior(sn),j.registerBehavior(rn),j.registerBehavior(on),j.registerBehavior(kt),j.registerBehavior(an),j.registerBehavior(ln),j.registerBehavior(hn);class vh extends Hi{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 j(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",vh);function Dh(A){return rt("ParticlesEmitter",A)}const Dr=console.log;class br extends xt(D.Sprite){constructor(){super(...arguments),this.currentAnimation=null,this.time=0,this.frameIndex=0,this.animations=new Map,this.subscriptionSheet=[],this.sheetParams={},this.sheetCurrentAnimation="stand",this.app=null,this.globalLoader=null,this.trackedAssetIds=new Set,this.currentAnimationContainer=null}get renderer(){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:o,offset:a}=t;if(!o||typeof o!="string"||o.trim()==="")return console.warn("Invalid image path provided to createTextures:",o),[];let h=null;this.globalLoader&&(h=this.globalLoader.registerAsset(o),this.trackedAssetIds.add(h));const c=await D.Assets.load(o,d=>{this.globalLoader&&h&&this.globalLoader.updateProgress(h,d)});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,r=t.spriteHeight,l=[],g=a&&a.x||0,f=a&&a.y||0;for(let d=0;d<n;d++){l[d]=[];for(let C=0;C<s;C++){const E=C*u+g,m=d*r+f;if(m>i)throw Dr(`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 Dr(`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[d].push(new D.Texture({source:c.source,frame:new D.Rectangle(E,m,u,r)}))}}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((d,C)=>({...d,[C]:this.spritesheet[C]}),{}),...t[e]},{rectWidth:o,width:a=0,framesWidth:h=1,rectHeight:c,height:u=0,framesHeight:r=1,image:l}=s;let g=a,f=u;if(l&&(!g||g<=0||!f||f<=0)){const d=await this.detectImageDimensions(l);(!g||g<=0)&&(g=d.width,s.width=g),(!f||f<=0)&&(f=d.height,s.height=f)}s.spriteWidth=o||g/h,s.spriteHeight=c||f/r,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??{},o=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)}),o){const h=o instanceof Promise?await o:o;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=Et(()=>{const{x:h,y:c}=i??{};if(!h||!c)return!1;const u=h,r=c,l=ye(u)&&u.animatedState().current!==u.animatedState().end,g=ye(r)&&r.animatedState().current!==r.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 o=null;this.globalLoader&&(o=this.globalLoader.registerAsset(s),this.trackedAssetIds.add(o));const a=this.fullProps.loader?.onProgress,h=await D.Assets.load(s,c=>{if(this.globalLoader&&o&&this.globalLoader.updateProgress(o,c),a&&a(c),c==1){this.globalLoader&&o&&this.globalLoader.completeAsset(o);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&&(this.hitbox=t.hitbox.value??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&&(ft(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:o,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,o,a,h)}))}}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)&&Pe(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 o=n.animations;o=ii(o)?o(...s):o,this.currentAnimationContainer=new D.Container;for(let h of o){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 we.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:o}=this.currentAnimation;let a=s[this.frameIndex];const h=s[this.frameIndex+1];for(let c of this.currentAnimationContainer.children){let u=function(C,E){const w=r(E||C);w!==void 0&&(i[C]=w)};if(!a||a.frameY==null||a.frameX==null)continue;this.texture=n[a.frameY][a.frameX];const r=C=>a[C]??o[C]??this.spritesheet[C],l=C=>{const E=r(C);E&&this[C].set(...E)};this.applyTransform&&(a={...a,...this.applyTransform(a,o,this.spritesheet)});const g=r("spriteRealSize"),f=typeof g=="number"?g:g?.height;typeof g=="number"||g?.width;const d=()=>{if(f&&this.hitbox){const{spriteWidth:C,spriteHeight:E}=o,m=(C-this.hitbox.w)/2/C,w=(E-f)/2,b=(E-this.hitbox.h-w)/E;this.anchor.set(m,b)}};a.sound,d(),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++}}st("Sprite",br);const un=A=>(st("Sprite",br),rt("Sprite",A));function bh(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=_i(A),{play:n,loop:s,muted:o}=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&&o()&&(a.muted=o())}),Ti(()=>()=>{for(let a in t)t[a]&&e().removeEventListener(a,t[a])}),gt(un,{...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=r=>{A[c](r)};t[c]=u,h.addEventListener(c,u)}}}})}class Sh 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&&$e(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 we.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",Sh);function Sr(A){return rt("Text",A)}class xh 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",xh);function kh(A){return rt("TilingSprite",A)}var Mh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rh(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var xr={exports:{}};(function(A,t){(function(){var e,i;i=function(n){return A.exports=n},e={linear:function(n,s,o,a){return o*n/a+s},easeInQuad:function(n,s,o,a){return o*(n/=a)*n+s},easeOutQuad:function(n,s,o,a){return-o*(n/=a)*(n-2)+s},easeInOutQuad:function(n,s,o,a){return(n/=a/2)<1?o/2*n*n+s:-o/2*(--n*(n-2)-1)+s},easeInCubic:function(n,s,o,a){return o*(n/=a)*n*n+s},easeOutCubic:function(n,s,o,a){return o*((n=n/a-1)*n*n+1)+s},easeInOutCubic:function(n,s,o,a){return(n/=a/2)<1?o/2*n*n*n+s:o/2*((n-=2)*n*n+2)+s},easeInQuart:function(n,s,o,a){return o*(n/=a)*n*n*n+s},easeOutQuart:function(n,s,o,a){return-o*((n=n/a-1)*n*n*n-1)+s},easeInOutQuart:function(n,s,o,a){return(n/=a/2)<1?o/2*n*n*n*n+s:-o/2*((n-=2)*n*n*n-2)+s},easeInQuint:function(n,s,o,a){return o*(n/=a)*n*n*n*n+s},easeOutQuint:function(n,s,o,a){return o*((n=n/a-1)*n*n*n*n+1)+s},easeInOutQuint:function(n,s,o,a){return(n/=a/2)<1?o/2*n*n*n*n*n+s:o/2*((n-=2)*n*n*n*n+2)+s},easeInSine:function(n,s,o,a){return-o*Math.cos(n/a*(Math.PI/2))+o+s},easeOutSine:function(n,s,o,a){return o*Math.sin(n/a*(Math.PI/2))+s},easeInOutSine:function(n,s,o,a){return-o/2*(Math.cos(Math.PI*n/a)-1)+s},easeInExpo:function(n,s,o,a){return n===0?s:o*Math.pow(2,10*(n/a-1))+s},easeOutExpo:function(n,s,o,a){return n===a?s+o:o*(-Math.pow(2,-10*n/a)+1)+s},easeInOutExpo:function(n,s,o,a){return(n/=a/2)<1?o/2*Math.pow(2,10*(n-1))+s:o/2*(-Math.pow(2,-10*--n)+2)+s},easeInCirc:function(n,s,o,a){return-o*(Math.sqrt(1-(n/=a)*n)-1)+s},easeOutCirc:function(n,s,o,a){return o*Math.sqrt(1-(n=n/a-1)*n)+s},easeInOutCirc:function(n,s,o,a){return(n/=a/2)<1?-o/2*(Math.sqrt(1-n*n)-1)+s:o/2*(Math.sqrt(1-(n-=2)*n)+1)+s},easeInElastic:function(n,s,o,a){var h,c,u;return u=1.70158,c=0,h=o,n===0||(n/=a),c||(c=a*.3),h<Math.abs(o)?(h=o,u=c/4):u=c/(2*Math.PI)*Math.asin(o/h),-(h*Math.pow(2,10*(n-=1))*Math.sin((n*a-u)*(2*Math.PI)/c))+s},easeOutElastic:function(n,s,o,a){var h,c,u;return u=1.70158,c=0,h=o,n===0||(n/=a),c||(c=a*.3),h<Math.abs(o)?(h=o,u=c/4):u=c/(2*Math.PI)*Math.asin(o/h),h*Math.pow(2,-10*n)*Math.sin((n*a-u)*(2*Math.PI)/c)+o+s},easeInOutElastic:function(n,s,o,a){var h,c,u;return u=1.70158,c=0,h=o,n===0||(n/=a/2),c||(c=a*.44999999999999996),h<Math.abs(o)?(h=o,u=c/4):u=c/(2*Math.PI)*Math.asin(o/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+o+s},easeInBack:function(n,s,o,a,h){return h===void 0&&(h=1.70158),o*(n/=a)*n*((h+1)*n-h)+s},easeOutBack:function(n,s,o,a,h){return h===void 0&&(h=1.70158),o*((n=n/a-1)*n*((h+1)*n+h)+1)+s},easeInOutBack:function(n,s,o,a,h){return h===void 0&&(h=1.70158),(n/=a/2)<1?o/2*(n*n*(((h*=1.525)+1)*n-h))+s:o/2*((n-=2)*n*(((h*=1.525)+1)*n+h)+2)+s},easeInBounce:function(n,s,o,a){var h;return h=e.easeOutBounce(a-n,0,o,a),o-h+s},easeOutBounce:function(n,s,o,a){return(n/=a)<.36363636363636365?o*(7.5625*n*n)+s:n<.7272727272727273?o*(7.5625*(n-=.5454545454545454)*n+.75)+s:n<.9090909090909091?o*(7.5625*(n-=.8181818181818182)*n+.9375)+s:o*(7.5625*(n-=.9545454545454546)*n+.984375)+s},easeInOutBounce:function(n,s,o,a){var h;return n<a/2?(h=e.easeInBounce(n*2,0,o,a),h*.5+s):(h=e.easeOutBounce(n*2-a,0,o,a),h*.5+o*.5+s)}},i(e)}).call(Mh)})(xr);var Fh=xr.exports;const kr=Rh(Fh);function MA(A,t){if(A){if(typeof A=="function")return A;if(typeof A=="string")return kr[A]}else return kr[t]}class _h{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 iA=["drag","pinch","wheel","follow","mouse-edges","decelerate","animate","bounce","snap-zoom","clamp-zoom","snap","clamp"];class Nh{constructor(t){this.viewport=t,this.list=[],this.plugins={}}add(t,e,i=iA.length){const n=this.plugins[t];n&&n.destroy(),this.plugins[t]=e;const s=iA.indexOf(t);s!==-1&&iA.splice(s,1),iA.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 iA)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 pt{constructor(t){this.parent=t,this.paused=!1}destroy(){}down(t){return!1}move(t){return!1}up(t){return!1}wheel(t){return!1}update(t){}resize(){}reset(){}pause(){this.paused=!0}resume(){this.paused=!1}}const Gh={removeOnInterrupt:!1,ease:"linear",time:1e3};class Hh extends pt{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({},Gh,e),this.options.ease=MA(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,o=this.deltaX,a=this.deltaY,h=new D.Point(this.parent.x,this.parent.y);this.parent.moveCenter(n+o*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 Lh={sides:"all",friction:.5,time:150,ease:"easeInOutSine",underflow:"center",bounceBox:null};class Uh extends pt{constructor(t,e={}){super(t),this.options=Object.assign({},Lh,e),this.ease=MA(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)||{},o=this.parent.plugins.get("pinch",!0)||{};if(n=n||{},!(s!=null&&s.active)&&!(o!=null&&o.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 Th={left:!1,right:!1,top:!1,bottom:!1,direction:null,underflow:"center"};class Oh extends pt{constructor(t,e={}){super(t),this.options=Object.assign({},Th,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 Ph={minWidth:null,minHeight:null,maxWidth:null,maxHeight:null,minScale:null,maxScale:null};class Jh extends pt{constructor(t,e={}){super(t),this.options=Object.assign({},Ph,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 Kh={friction:.98,bounce:.8,minSpeed:.01},zt=16;class Yh extends pt{constructor(t,e={}){super(t),this.options=Object.assign({},Kh,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,o=Math.log(s);this.parent.x+=this.x*zt/o*(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,o=Math.log(s);this.parent.y+=this.y*zt/o*(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 Wh={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 jh extends pt{constructor(t,e={}){super(t),this.windowEventHandlers=[],this.options=Object.assign({},Wh,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 o=s.x-this.last.x,a=s.y-this.last.y;if(this.moved||this.xDirection&&this.parent.input.checkThreshold(o)||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,o]=this.options.wheelSwapAxes?n.reverse():n;return this.xDirection&&(this.parent.x+=s*i*this.options.wheelScroll*this.reverse),this.yDirection&&(this.parent.y+=o*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 Vh={speed:0,acceleration:null,radius:null};class qh extends pt{constructor(t,e,i={}){super(t),this.target=e,this.options=Object.assign({},Vh,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,o=n-e.y;if(s||o)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(o,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,r=Math.sin(a)*this.velocity.y,l=Math.abs(u)>Math.abs(s)?i:e.x+u,g=Math.abs(r)>Math.abs(o)?n:e.y+r;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,r=Math.abs(c)>Math.abs(o)?n:e.y+c;this.parent.moveCenter(u,r),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}else this.parent.moveCenter(i,n),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}}const Xh={radius:null,distance:null,top:null,bottom:null,left:null,right:null,speed:8,reverse:!1,noDecelerate:!1,linear:!1,allowButtons:!1};class Zh extends pt{constructor(t,e={}){super(t),this.options=Object.assign({},Xh,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 zh={noDrag:!1,percent:1,center:null,factor:1,axis:"all"},$h=new D.Point;class tc extends pt{constructor(t,e={}){super(t),this.active=!1,this.pinching=!1,this.moved=!1,this.options=Object.assign({},zh,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,$h),n=this.parent.input.touches;if(n.length>=2){const s=n[0],o=n[1],a=s.last&&o.last?Math.sqrt(Math.pow(o.last.x-s.last.x,2)+Math.pow(o.last.y-s.last.y,2)):null;if(s.id===t.pointerId?s.last={x:e,y:i,data:t}:o.id===t.pointerId&&(o.last={x:e,y:i,data:t}),a){let h;const c=new D.Point(s.last.x+(o.last.x-s.last.x)/2,s.last.y+(o.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(o.last.x-s.last.x,2)+Math.pow(o.last.y-s.last.y,2));u=u===0?u=1e-10:u;const r=(1-a/u)*this.options.percent*(this.isAxisX()?this.parent.scale.x:this.parent.scale.y);this.isAxisX()&&(this.parent.scale.x+=r),this.isAxisY()&&(this.parent.scale.y+=r),this.parent.emit("zoomed",{viewport:this.parent,type:"pinch",center: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 ec={topLeft:!1,friction:.8,time:1e3,ease:"easeInOutSine",interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1};class Ac extends pt{constructor(t,e,i,n={}){super(t),this.options=Object.assign({},ec,n),this.ease=MA(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 o=this.startX,a=this.startY,h=this.deltaX,c=this.deltaY;if(e.time>this.options.time)i=!0,n=o+h,s=a+c;else{const u=this.ease(e.time,0,1,this.options.time);n=o+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 ic={width:0,height:0,time:1e3,ease:"easeInOutSine",center:null,interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1,noMove:!1};class nc extends pt{constructor(t,e={}){super(t),this.options=Object.assign({},ic,e),this.ease=MA(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,o=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/o,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 sc={percent:.1,smooth:!1,interrupt:!0,reverse:!1,center:null,lineHeight:20,axis:"all",keyToPress:null,trackpadPinch:!1,wheelZoom:!0};class rc extends pt{constructor(t,e={}){super(t),this.options=Object.assign({},sc,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 o=s.toLocal(t);this.parent.x+=o.x-i.x,this.parent.y+=o.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 o=this.parent.plugins.get("clamp-zoom",!0);if(o&&o.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 o=this.parent.plugins.get("clamp-zoom",!0);if(o&&o.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 oc={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 ac extends D.Container{constructor(t){super(),this._disableOnContextMenu=e=>e.preventDefault(),this.options={...oc,...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 _h(this),this.plugins=new Nh(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 o=this.plugins.get("clamp-zoom",!0);return!n&&o&&o.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 o=this.plugins.get("clamp-zoom",!0);return!n&&o&&o.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 nc(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 jh(this,t)),this}clamp(t){return this.plugins.add("clamp",new Oh(this,t)),this}decelerate(t){return this.plugins.add("decelerate",new Yh(this,t)),this}bounce(t){return this.plugins.add("bounce",new Uh(this,t)),this}pinch(t){return this.plugins.add("pinch",new tc(this,t)),this}snap(t,e,i){return this.plugins.add("snap",new Ac(this,t,e,i)),this}follow(t,e){return this.plugins.add("follow",new qh(this,t,e)),this}wheel(t){return this.plugins.add("wheel",new rc(this,t)),this}animate(t){return this.plugins.add("animate",new Hh(this,t)),this}clampZoom(t){return this.plugins.add("clamp-zoom",new Jh(this,t)),this}mouseEdges(t){return this.plugins.add("mouse-edges",new Zh(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 o=!1;t<this.left?(this.left=t,o=!0):t+i>this.right&&(this.right=t+i,o=!0),e<this.top?(this.top=e,o=!0):e+n>this.bottom&&(this.bottom=e+n,o=!0),o&&this.emit("moved",{viewport:this,type:"ensureVisible"})}}const lc=["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 hc extends xt(D.Container){constructor(){super(),this.overrideProps=["wheel"];const t={noTicker:!0,events:{domElement:{addEventListener:()=>{}}}};this.viewport=new ac(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 lc)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:o}=i.context;it(()=>{i.screenWidth===void 0&&(this.viewport.screenWidth=o().width),i.screenHeight===void 0&&(this.viewport.screenHeight=o().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.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",hc);function cc(A){return rt("Viewport",A)}class gc 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",gc);function uc(A){return rt("NineSliceSprite",A)}const Mr=["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 Rr{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(o=>{n.textContent=o==null?"":String(o)});this.childTextSubscriptions.push(s)}return}if(Is(t)){t.subscribe(n=>{n&&typeof n=="object"&&"elements"in n?(n.elements||[]).forEach(o=>this.appendChildElement(o)):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 Mr)if(t.attrs?.[e]){const i=n=>{if(e==="submit"&&this.element.tagName.toLowerCase()==="form"){n.preventDefault();const s=new FormData(this.element),o={};s.forEach((a,h)=>{o[h]?Array.isArray(o[h])?o[h].push(a):o[h]=[o[h],a]:o[h]=a}),t.attrs[e]?.(n,o)}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 o=s.target;this.valueSignal.set(o.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,o]of Object.entries(n))o!=null&&(this.element.style[s]=o)}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 Mr.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",Rr);const Fr=A=>rt("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!Qt(t)&&!Qt(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(Qt(t))if(i){const s=this.getPercentRatio(t);if(s!==null){const o=n?.width!==void 0?n.width:this.getWidth();this.element.style.width=`${o*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(Qt(e))if(i){const s=this.getPercentRatio(e);if(s!==null){const o=n?.height!==void 0?n.height:this.getHeight();this.element.style.height=`${o*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(ft(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 rt(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"};e?(i.attrs={...t.attrs},i.attrs.class?typeof i.attrs.class=="string"?i.attrs.class=`${e} ${i.attrs.class}`:Array.isArray(i.attrs.class)?i.attrs.class=[e,...i.attrs.class]:typeof i.attrs.class=="object"&&(i.attrs.class={[e]:!0,...i.attrs.class}):i.attrs.class=e):t.attrs&&(i.attrs=t.attrs);const n=this.routeDomChildren(t.children);t.children=n;const s=gt(Fr,i,n);this.element=s.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 Ic=A=>rt("DOMContainer",A),fc=["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 Bc extends Rr{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.elementType="div",this.isAnimating=!1}onInit(t){const e=t;this.elementType=e.element??"div";const i=this.mergeEventAttrs({...e,element:this.elementType});this.tickSignal=i.context?.tick,this.applyProps(i),super.onInit(i),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.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 o={...i.reduce((f,d)=>({...f,[d]:t[d]}),{}),...e[n],spriteWidth:0,spriteHeight:0};o.image=e[n].image??t.image;const{rectWidth:a,rectHeight:h,framesWidth:c=1,framesHeight:u=1,image:r}=o;let l=o.width||0,g=o.height||0;if(r&&(!l||l<=0||!g||g<=0)){const f=await this.detectImageDimensions(r);(!l||l<=0)&&(l=f.width),(!g||g<=0)&&(g=f.height)}!l||!g||!c||!u||(o.width=l,o.height=g,o.spriteWidth=a||l/c,o.spriteHeight=h||g/u,this.sheetAnimations.set(n,{frames:[],name:n,animations:e[n].animations,params:[],data:o}))}}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&&Pe(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 o=n.animations;o=ii(o)?o(...s):o,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,r=a.offset?.y??0;for(const l of o)for(const g of l){const f=g.frameX??0,d=g.frameY??0;n.frames.push({...g,x:f*h+u,y:d*c+r,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 fc){const n=t[i];n&&!e?.[i]&&(e||(e={}),e[i]=n)}return 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)}}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(o=>{this.sheetParams={...this.sheetParams,[n]:o},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.getCurrentSheetFrame();if(t){this.applyFrame(t);return}const e=this.getFrames();if(e.length===0){this.elementType==="img"&&this.image?this.element.src=this.image:this.image&&(this.element.style.backgroundImage=`url("${this.image}")`);return}const i=this.normalizeIndex(this.frameIndex,e.length);i!==this.frameIndex&&!this.loop&&(this.frameIndex=i);const n=e[i];this.applyFrame(n)}applyFrame(t){if(!this.element)return;this.element.style.width=`${t.width}px`,this.element.style.height=`${t.height}px`;const e=t.x??0,i=t.y??0;if(this.elementType==="img"){const n=this.element;this.image&&(n.src=this.image),n.style.objectFit="none",n.style.objectPosition=`-${e}px -${i}px`;return}this.image&&(this.element.style.backgroundImage=`url("${this.image}")`),this.element.style.backgroundRepeat="no-repeat",this.element.style.backgroundPosition=`-${e}px -${i}px`}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",Bc);const dc=A=>rt("DOMSprite",A);var _r=(A=>(A.Normal="normal",A.Hover="hover",A.Pressed="pressed",A.Disabled="disabled",A))(_r||{});function Ec(A){const t=Y("normal"),e=Y(!1),i=Y(!1),n=_i(A),{text:s,disabled:o,width:a,height:h,style:c,shape:u,controlName:r}=n({text:{type:String,default:""},disabled:{type:Boolean,default:!1},width:{type:Number,default:120},height:{type:Number,default:40},style:{type:Object,default:()=>({})},shape:{type:String,default:"rect"},controlName:{type:String,default:void 0}}),l=()=>A.controls?_(A.controls)?A.controls():A.controls:null;it(()=>{const C=o(),E=e(),m=i();C?t.set("disabled"):E?t.set("pressed"):m?t.set("hover"):t.set("normal")});const g={pointerenter:C=>{o()||(i.set(!0),A.hoverEnter?.(C))},pointerleave:C=>{i.set(!1),e.set(!1),A.hoverLeave?.(C)},pointerdown:async C=>{if(!o()){e.set(!0),A.pressDown?.(C);const E=l(),m=r();E&&m&&E.applyControl&&await E.applyControl(m,!0)}},pointerup:async C=>{if(!o()&&e()){e.set(!1),A.pressUp?.(C);const E=l(),m=r();E&&m&&E.applyControl&&await E.applyControl(m,!1)}},pointertap:async C=>{if(!o()){A.click?.(C);const E=l(),m=r();E&&m&&E.applyControl&&await E.applyControl(m)}}},f=()=>{if(A.background)return A.background;const C=u(),E=Et(()=>{const w=c().backgroundColor||{normal:"#007bff",hover:"#0056b3",pressed:"#004085",disabled:"#6c757d"},b=t();return w[b]||w.normal});if(C==="circle"){const m=Et(()=>Math.min(a(),h())/2);return gt(Ui,{radius:m,x:Et(()=>a()/2),y:Et(()=>h()/2),color:E})}else return C==="ellipse"?gt(Qr,{width:a,height:h,color:E}):gt(Cr,{width:a,height:h,color:E})},d=()=>A.children&&A.children.length>0?A.children:[gt(Sr,{text:s,x:Et(()=>a()/2),y:Et(()=>h()/2),anchor:{x:.5,y:.5},style:Et(()=>{const E=c().text||{};return{fontSize:E.fontSize||16,fontFamily:E.fontFamily||"Arial",fill:E.color||"#ffffff"}})()})];return gt(tA,{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},[f(),...d()])}function Cc(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 o=!1,a=null,h=0;const c=Y(0),u=Y(0),r=Y(s);function l(b){const M=b.x-0,G=b.y-0;return Math.min(1,Math.sqrt(M*M+G*G)/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 f(b){const M=b.currentTarget||b.target;a=b.getLocalPosition(M),o=!0,r.set(1),t.onStart?.();const G=e();G&&(G.handleJoystickStart?G.handleJoystickStart():G.joystick&&G.joystick.handleJoystickStart&&G.joystick.handleJoystickStart())}function d(){if(!o)return;c.set(0),u.set(0),o=!1,r.set(s),t.onEnd?.();const b=e();b&&(b.handleJoystickEnd?b.handleJoystickEnd():b.joystick&&b.joystick.handleJoystickEnd&&b.joystick.handleJoystickEnd())}function C(b){if(o==!1)return;const M=b.currentTarget||b.target;let G=b.getLocalPosition(M),O=G.x-(a?.x??0),K=G.y-(a?.y??0),H=new Mo.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),ot=Math.atan(At);T=ot*180/Math.PI;let tt=0,ut=0;O*O+K*K>=i*i?(tt=i*Math.cos(ot),ut=i*Math.sin(ot)):(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 It={angle:T,direction:W,power:h};t.onChange?.(It);const Jt=e();Jt&&(Jt.handleJoystickChange?Jt.handleJoystickChange(It):Jt.joystick&&Jt.joystick.handleJoystickChange&&Jt.joystick.handleJoystickChange(It))}let E,m;t.outer?m=gt(un,{image:t.outer,anchor:{x:.5,y:.5},scale:t.outerScale}):m=gt(ae,{draw:b=>{b.circle(0,0,i).fill(t.outerColor)},alpha:.5});const w={scale:t.innerScale,x:c,y:u,alpha:r};return t.inner?E=t.inner:E=gt(ae,{draw:b=>{b.circle(0,0,n*2.5).fill(t.innerColor)},...w}),gt(tA,{...A,pointerdown:f,pointerup:d,pointerupoutside:d,pointermove:C},m,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 o=null;if(n===null)o=e==="next"?s[0]:s[s.length-1];else{const a=s.indexOf(n);e==="next"?a<s.length-1?o=s[a+1]:o=s[0]:a>0?o=s[a-1]:o=s[s.length-1]}if(o!==null){const a=i.tabindex;_(a)&&typeof a.set=="function"?a.set(o):this.setIndex(t,o)}}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 o=n.componentInstance;if(o&&o.element&&typeof o.element.focus=="function"){const a=o.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 o=s.focusables.get(e);if(!o)return;const a=i||s.viewport;if(!a)return;const h=this.getElementBounds(o);a.getVisibleBounds();const c=n.padding||0,u=n.center!==!1,r=n.smooth||!1,l=n.duration||300;if(this.isElementVisible(o,a)){if(u){const g=h.x+h.width/2,f=h.y+h.height/2;r?this.animateScroll(t,a,g,f,l):a.moveCenter(g,f)}return}if(u){const g=h.x+h.width/2,f=h.y+h.height/2;r?this.animateScroll(t,a,g,f,l):a.moveCenter(g,f)}else{const g=h.x-c,f=h.y-c,d=h.width+c*2,C=h.height+c*2;if(r){const E=h.x+h.width/2,m=h.y+h.height/2;this.animateScroll(t,a,E,m,l)}else a.fit(g,f,d,C,c)}}animateScroll(t,e,i,n,s){const o=e.center,a=o.x,h=o.y,c={startTime:Date.now(),startX:a,startY:h,targetX:i,targetY:n,duration:s};this.scrollAnimations.set(t,c);const u=()=>{const r=this.scrollAnimations.get(t);if(!r)return;const l=Date.now()-r.startTime,g=Math.min(l/r.duration,1),f=1-Math.pow(1-g,3),d=r.startX+(r.targetX-r.startX)*f,C=r.startY+(r.targetY-r.startY)*f;e.moveCenter(d,C),g<1?requestAnimationFrame(u):this.scrollAnimations.delete(t)};requestAnimationFrame(u)}};ue.instance=null;let RA=ue;const yt=RA.getInstance();class Qc extends Dt{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=ci(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}}bt("focusNavigation",Qc);class pc{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;yt.registerContainer(this.containerId,{focusables:new Map,currentIndex:e,focusedElement:i,onFocusChange:t.onFocusChange,autoScroll:t.autoScroll,viewport:n})}async onMount(t){if(yt.updateContainer(this.containerId,{element:t}),t.props.controls){const e=ci(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)}yt.setTabindex(this.containerId,t.propObservables?.tabindex),setTimeout(()=>{this.registerChildren(t)},0)}onUpdate(t){const e=t.viewport||t.context?.viewport;yt.updateContainer(this.containerId,{viewport:e,autoScroll:t.autoScroll,onFocusChange:t.onFocusChange})}async onDestroy(t,e){for(const i of this.registeredFocusables)yt.unregisterFocusable(this.containerId,i);this.registeredFocusables.clear(),yt.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(o=>{if(o&&typeof o=="object"&&"elements"in o){const a=o.elements||[];Array.isArray(a)&&e(a)}else Array.isArray(o)?e(o):o&&i(o)});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 o=n.props.attrs.tabindex;s=_(o)?o():o}else if(n.props?.tabindex!==void 0){const o=n.props.tabindex;s=_(o)?o():o}if(s!==void 0&&s>=0&&(this.registeredFocusables.has(s)||(yt.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 o=(_(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(o)}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 o=s.elements||[];Array.isArray(o)&&e(o)}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",pc);const Nr=A=>rt("Navigation",A),yc=Nr,mc=async(A,t,e)=>{const{components:i,autoRegister:n,enableLayout:s,...o}=e??{};s!==!1&&await Promise.resolve().then(()=>Bg),i?(n!==!1&&Ri(),Object.entries(i).forEach(([u,r])=>{st(u,r)})):Ri();const a=new D.Application;await a.init({resizeTo:A,autoStart:!1,antialias:!0,...o});const h=await gt(t);if(h.tag!="Canvas")throw new Error("Canvas is required");h.render(A,a);const{backgroundColor:c}=Ct(h.props,{backgroundColor:"black"});return a.renderer.background.color=c(),{canvasElement:h,app:a}};function wc(A){return yt.getCurrentIndexSignal(A)}function vc(A){return yt.getFocusedElementSignal(A)}function Dc(A,t){const e=yt.getCurrentIndexSignal(A),i=yt.getFocusedElementSignal(A);if(!e||!i)return console.warn(`FocusContainer with id "${A}" not found`),()=>{};const n=it(()=>{const s=e(),o=i();t(s,o)});return()=>{n.subscription?.unsubscribe()}}const bc={linear:El,easeIn:vi,easeInOut:Xs,easeOut:Cl,circIn:Zs,circInOut:Ql,circOut:zs,backIn:Di,backInOut:yl,backOut:pl,anticipate:ml,bounceIn:bl,bounceInOut:Sl,bounceOut:mA};class Sc{constructor(t,e,i,n,s,o,a=0){this.x0=t,this.y0=e,this.x1=i,this.y1=n,this.x2=s,this.y2=o,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:o,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,r=Math.sqrt((n-e)*(n-e)+(s-i)*(s-i)),l=Math.sqrt((o-e)*(o-e)+(a-i)*(a-i)),g=Math.atan2(s-i,n-e),f=r/c,d=l/c;u.rotate(-g),u.scale(f,d),t&&u.translate(t.x,t.y),this.transform=u}return{texture:this.texture,matrix:this.transform}}}function xc(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 kc(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 o=((A-e.min)%n+n)%n;return e.min+o}function Mc(A,t,e="wrap"){const i=n=>{const s=A(),o=xc(t);if(!o)return;const a=kc(n,s,o,e);a!==s&&A.set(a)};return{next:n=>i(A()+n),set:n=>i(n)}}var Rc=(()=>{var A=VA&&VA.tagName.toUpperCase()==="SCRIPT"&&VA.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(I,B){i=I,n=B});var s=Object.assign({},e),o="";typeof document<"u"&&document.currentScript&&(o=document.currentScript.src),A&&(o=A),o.indexOf("blob:")!==0?o=o.substr(0,o.replace(/[?#].*/,"").lastIndexOf("/")+1):o="";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,r=!1;function l(I,B,Q){Q=B+Q;for(var p="";!(B>=Q);){var y=I[B++];if(!y)break;if(y&128){var v=I[B++]&63;if((y&224)==192)p+=String.fromCharCode((y&31)<<6|v);else{var S=I[B++]&63;y=(y&240)==224?(y&15)<<12|v<<6|S:(y&7)<<18|v<<12|S<<6|I[B++]&63,65536>y?p+=String.fromCharCode(y):(y-=65536,p+=String.fromCharCode(55296|y>>10,56320|y&1023))}}else p+=String.fromCharCode(y)}return p}var g,f,d,C,E,m,w,b,M;function G(){var I=u.buffer;g=I,e.HEAP8=f=new Int8Array(I),e.HEAP16=C=new Int16Array(I),e.HEAP32=m=new Int32Array(I),e.HEAPU8=d=new Uint8Array(I),e.HEAPU16=E=new Uint16Array(I),e.HEAPU32=w=new Uint32Array(I),e.HEAPF32=b=new Float32Array(I),e.HEAPF64=M=new Float64Array(I)}var O,K=[],H=[],T=[];function W(){var I=e.preRun.shift();K.unshift(I)}var At=0,ot=null;function tt(I){throw e.onAbort&&e.onAbort(I),I="Aborted("+I+")",h(I),r=!0,I=new WebAssembly.RuntimeError(I+". Build with -sASSERTIONS for more info."),n(I),I}function ut(I){return I.startsWith("data:application/octet-stream;base64,")}var It;if(It="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/ArUBHgFhAWEAHwFhAWIAAwFhAWMACQFhAWQAFgFhAWUAEQFhAWYAIAFhAWcAAAFhAWgAIQFhAWkAAwFhAW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IgNBAWsgAToAACACQQNJDQAgACABOgACIAAgAToAASADQQNrIAE6AAAgA0ECayABOgAAIAJBB0kNACAAIAE6AAMgA0EEayABOgAAIAJBCUkNACAAQQAgAGtBA3EiBGoiAyABQf8BcUGBgoQIbCIBNgIAIAMgAiAEa0F8cSIEaiICQQRrIAE2AgAgBEEJSQ0AIAMgATYCCCADIAE2AgQgAkEIayABNgIAIAJBDGsgATYCACAEQRlJDQAgAyABNgIYIAMgATYCFCADIAE2AhAgAyABNgIMIAJBEGsgATYCACACQRRrIAE2AgAgAkEYayABNgIAIAJBHGsgATYCACAEIANBBHFBGHIiBGsiAkEgSQ0AIAGtQoGAgIAQfiEFIAMgBGohAQNAIAEgBTcDGCABIAU3AxAgASAFNwMIIAEgBTcDACABQSBqIQEgAkEgayICQR9LDQALCyAAC4AEAQN/IAJBgARPBEAgACABIAIQFyAADwsgACACaiEDAkAgACABc0EDcUUEQAJAIABBA3FFBEAgACECDAELIAJFBEAgACECDAELIAAhAgNAIAIgAS0AADoAACABQQFqIQEgAkEBaiICQQNxRQ0BIAIgA0kNAAsLAkAgA0F8cSIEQcAASQ0AIAIgBEFAaiIFSw0AA0AgAiABKAIANgIAIAIgASgCBDYCBCACIAEoAgg2AgggAiABKAIMNgIMIAIgASgCEDYCECACIAEoAhQ2AhQgAiABKAIYNgIYIAIgASgCHDYCHCACIAEoAiA2AiAgAiABKAIkNgIkIAIgASgCKDYCKCACIAEoAiw2AiwgAiABKAIwNgIwIAIgASgCNDYCNCACIAEoAjg2AjggAiABKAI8NgI8IAFBQGshASACQUBrIgIgBU0NAAsLIAIgBE8NAQNAIAIgASgCADYCACABQQRqIQEgAkEEaiICIARJDQALDAELIANBBEkEQCAAIQIMAQsgACADQQRrIgRLBEAgACECDAELIAAhAgNAIAIgAS0AADoAACACIAEtAAE6AAEgAiABLQACOgACIAIgAS0AAzoAAyABQQRqIQEgAkEEaiICIARNDQALCyACIANJBEADQCACIAEtAAA6AAAgAUEBaiEBIAJBAWoiA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IAYoAhAhAwsgBiADQQFqNgIQIAYoAgwgA0EDdkH8////AXFqIgAgACgCAEF+IAN3cTYCACABLwAAIQMLIANBB3EgC0EEdHJBCHIhAwsgASADOwAAIAhBEGokAAuPAQIBfwF9IwBBEGsiAyQAIANBCGogAEHoAGogAEHUAEHWACABQf4BcUECRhtqLwEAIgEgAC8BWCABQQdxGxAfQwAAwH8hBAJAAkACQCADLQAMQQFrDgIAAQILIAMqAgghBAwBCyADKgIIIAKUQwrXIzyUIQQLIANBEGokACAEQwAAAACXQwAAAAAgBCAEWxsL2AICBH8BfSMAQSBrIgMkAAJAIAAoAgwiAQRAIAAgACoClAMgACoCmAMgAREnACIFIAVbDQEgA0GqHjYCACAAQQVB2CUgAxAsECQACyADQRBqIAAQMgJAIAMoAhAiAiADKAIUIgFyRQ0AAkADQCABIAIoAuwDIAIoAugDIgJrQQJ1SQRAIAIgAUECdGooAgAiASgC3AMNAyABLwAVIAEtABdBEHRyIgJBgOAAcUGAwABHBEAgAkEIdkEPcSICBH8gAgUgAC0AFUEEdgtBBUYEQCAALQAUQQhxDQQLIAEtAABBAnENAyAEIAEgBBshBAsgA0EQahAuIAMoAhQiASADKAIQIgJyDQEMAwsLEAIACyABIQQLIAMoAhgiAQRAA0AgASgCACECIAEQIyACIgENAAsLIARFBEAgACoCmAMhBQwBCyAEEE4gBCoCoAOSIQULIANBIGokACAFC6EDAQh/AkAgACgC6AMiBSAAKALsAyIHRwRAA0AgACAFKAIAIgIoAuQDRwRAAkAgACgC9AMoAgAiAQRAIAIgACAGIAERBgAiAQ0BC0GIBBAeIgEgAigCEDYCECABIAIpAgg3AgggASACKQIANwIAIAFBFGogAkEUakHoABArGiABQgA3AoABIAFB/ABqIgNBADsBACABQgA3AogBIAFCADcCkAEgAyACQfwAahCgASABQZgBaiACQZgBakHQAhArGiABQQA2AvADIAFCADcC6AMgAigC7AMiAyACKALoAyIERwRAIAMgBGsiBEEASA0FIAEgBBAeIgM2AuwDIAEgAzYC6AMgASADIAR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oiAS8BABAfAkACQCADKgIIIgcgAioCACIGXARAIAcgB1sEQCACLQAEIQIMAgsgBiAGXCEECyACLQAEIQIgBEUNACADLQAMIAJB/wFxRg0BCyAFIAEgBiACEDkDQCAALQAAIgFBBHENASAAIAFBBHI6AAAgACgCECIBBEAgACABEQAACyAAQYCAgP4HNgKcASAAKALkAyIADQALCyADQRBqJAALDwAgASAAKAIAaiACOQMACw0AIAEgACgCAGorAwALCwAgAARAIAAQIwsLxwECBH8CfSMAQRBrIgIkACACQQhqIABB/ABqIgQgAEEeaiIFLwEAEB9BASEDAkACQCACKgIIIgcgASoCACIGXARAIAcgB1sEQCABLQAEIQEMAgsgBiAGXCEDCyABLQAEIQEgA0UNACACLQAMIAFB/wFxRg0BCyAEIAUgBiABEDkDQCAALQAAIgFBBHENASAAIAFBBHI6AAAgACgCECIBBEAgACABEQAACyAAQYCAgP4HNgKcASAAKALkAyIADQALCyACQRBqJAALlgMCA34CfyAAvSICQjSIp0H/D3EiBEH/D0YEQCAARAAAAAAAAPA/oiIAIACjDwsgAkIBhiIBQoCAgICAgIDw/wBYBEAgAEQAAAAAAAAAAKIgACABQoCAgICAgIDw/wBRGw8LAn4gBEUEQEEAIQQgAkIMhiIBQgBZBEADQCAEQQFrIQQgAUIBhiIBQgBZDQALCyACQQEgBGuthgwBCyACQv////////8Hg0KAgICAgICACIQLIQEgBEH/B0oEQANAAkAgAUKAgICAgICACH0iA0IAUw0AIAMiAUIAUg0AIABEAAAAAAAAAACiDwsgAUIBhiEBIARBAWsiBEH/B0oNAAtB/wchBAsCQCABQoCAgICAgIAIfSIDQgBTDQAgAyIBQgBSDQAgAEQAAAAAAAAAAKIPCyABQv////////8HWARAA0AgBEEBayEEIAFCgICAgICAgARUIQUgAUIBhiEBIAUNAAsLIAJCgICAgICAgICAf4MgAUKAgICAgICACH0gBK1CNIaEIAFBASAEa62IIARBAEobhL8LiwEBA38DQCAAQQR0IgFB5DJqIAFB4DJqIgI2AgAgAUHoMmogAjYCACAA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gs4ApwDCyAJQRBqJAALcAIBfwF9IwBBEGsiBCQAIARBCGogACABQQJ0QewlaigCACACEDZDAADAfyEFAkACQAJAIAQtAAxBAWsOAgABAgsgBCoCCCEFDAELIAQqAgggA5RDCtcjPJQhBQsgBEEQaiQAIAVDAAAAACAFIAVbGwscACAAIAFBCCACpyACQiCIpyADpyADQiCIpxAVCwUAEFgACzkAIABFBEBBAA8LAn8gAUGAf3FBgL8DRiABQf8ATXJFBEBB/DtBGTYCAEF/DAELIAAgAToAAEEBCwvEAgACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCABQQlrDhIACgsMCgsCAwQFDAsMDAoLBwgJCyACIAIoAgAiAUEEajYCACAAIAEoAgA2AgAPCwALIAIgAigCACIBQQRqNgIAIAAgATIBADcDAA8LIAIgAigCACIBQQRqNgIAIAAgATMBADcDAA8LIAIgAigCACIBQQRqNgIAIAAgATAAADcDAA8LIAIgAigCACIBQQRqNgIAIAAgATEAADcDAA8LAAsgAiACKAIAQQdqQXhxIgFBCGo2AgAgACABKwMAOQMADwsgACACIAMRAQALDwsgAiACKAIAIgFBBGo2AgAgACABNAIANwMADwsgAiACKAIAIgFBBGo2AgAgACABNQIANwMADwsgAiACKAIAQQdqQXhxIgFBCGo2AgAgACABKQMANwMAC84BAgN/An0jAEEQayIDJABBASEEIANBCGogAEH8AGoiBSAAIAFBAXRqQegAaiIBLwEAEB8CQAJAIAMqAggiByACKgIAIgZcBEAgByAHWwRAIAItAAQhAgwCCyAGIAZcIQQLIAItAAQhAiAERQ0AIAMtAAwgAkH/AXFGDQELIAUgASAGIAIQOQNAIAAtAAAiAUEEcQ0BIAAgAUEEcjoAACAAKAIQIgEEQCAAIAERAAALIABBgICA/gc2ApwBIAAoAuQDIgANAAsLIANBEGokAAtdAQR/IAAoAgAhAgNAIAIsAAAiAxBXBEBBfyEEIAAgAkEBaiICNgIAIAFBzJmz5gBNBH9BfyADQTBrIgMgAUEKbCIEaiADIARB/////wdzShsFIAQLIQEMAQsLI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EoAgAoAgQRAAALIAAoAgQhASAAQQA2AgQgAQRAIAEgASgCACgCBBEAAAsgBkEgaiQAIAAQIwsLtQEBAX8jAEEQayICJAACfyABBEAgASgCACEBQYgEEB4gARBcIAENARogAkH3GTYCACACEHIQJAALQZQ7LQAARQRAQfg6QQM2AgBBiDtCgICAgICAgMA/NwIAQYA7QgA3AgBBlDtBAToAAEH8OkH8Oi0AAEH+AXE6AABB9DpBADYCAEGQO0EANgIAC0GIBBAeQfQ6EFwLIQEgAEIANwIEIAAgATYCACABIAA2AgQgAkEQaiQAIAALGwEBfyAABEAgACgCACIBBEAgARAjCyAAECMLC0kBAn9BBBAeIQFBIBAeIgBBADYCHCAAQoCAgICAgIDAPzcCFCAAQgA3AgwgAEEAOgAIIABBAzYCBCAAQQA2AgAgASAANgIAIAELIAAgAkEFR0EAIAIbRQRAQbgwIAMgBBBJDwsgAyAEEHALIgEBfiABIAKtIAOtQiCGhCAEIAARFQAiBUIgiKckASAFpwuoAQEFfyAAKAJUIgMoAgAhBSADKAIEIgQgACgCFCAAKAIcIgdrIgYgBCAGSRsiBgRAIAUgByAGECsaIAMgAygCACAGaiIFNgIAIAMgAygCBCAGayIENgIECyAEIAIgAiAESxsiBARAIAUgASAEECsaIAMgAygCACAEaiIFNgIAIAMgAygCBCAEazYCBAsgBUEAOgAAIAAgACgCLCIBNgIcIAAgATYCFCACCwQAQgALBABBAAuKBQIGfgJ/IAEgASgCAEEHakF4cSIBQRBqNgIAIAAhCSABKQMAIQMgASkDCCEGIwBBIGsiCCQAAkAgBkL///////////8AgyIEQoCAgICAgMCAPH0gBEKAgICAgIDA/8MAfVQEQCAGQgSGIANCPIiEIQQgA0L//////////w+DIgNCgYCAgICAgIAIWgRAIARCgYCAgICAgIDAAHwhAgwCCyAEQoCAgICAgICAQH0hAiADQoCAgICAgICACFINASACIARCAYN8IQIMAQsgA1AgBEKAgICAgIDA//8AVCAEQoCAgICAgMD//wBRG0UEQCAGQgSGIANCPIiEQv////////8Dg0KAgICAgICA/P8AhCECDAELQoCAgICAgID4/wAhAiAEQv///////7//wwBWDQBCACECIARCMIinIgBBkfcASQ0AIAMhAiAGQv///////z+DQoCAgICAgMAAhCIFIQcCQCAAQYH3AGsiAUHAAHEEQCACIAFBQGqthiEHQgAhAgwBCyABRQ0AIAcgAa0iBIYgAkHAACABa62IhCEHIAIgBIYhAgsgCCACNwMQIAggBzcDGAJAQYH4ACAAayIAQcAAcQRAIAUgAEFAaq2IIQNCACEFDAELIABFDQAgBUHAACAAa62GIAMgAK0iAoiEIQMgBSACiCEFCyAIIAM3AwAgCCAFNwMIIAgpAwhCBIYgCCkDACIDQjyIhCECIAgpAxAgCCkDGIRCAFKtIANC//////////8Pg4QiA0KBgICAgICAgAhaBEAgAkIBfCECDAELIANCgICAgICAgIAIUg0AIAJCAYMgAnwhAgsgCEEgaiQAIAkgAiAGQoCAgICAgICAgH+DhL85AwALmRgDEn8BfAN+IwBBsARrIgwkACAMQQA2AiwCQCABvSIZQgBTBEBBASERQZkJIRMgAZoiAb0hGQwBCyAEQYAQcQRAQQEhEUGcCSETDAELQZ8JQZoJIARBAXEiERshEyARRSEVCwJAIBlCgICAgICAgPj/AINCgICAgICAgPj/AFEEQCAAQSAgAiARQQNqIgMgBEH//3txECkgACATIBEQJiAAQe0VQdweIAVBIHEiBRtB4RpB4B4gBRsgASABYhtBAxAmIABBICACIAMgBEGAwABzECkgAyACIAIgA0gbIQoMAQsgDEEQaiESAkACfwJAIAEgDEEsahCMASIBIAGgIgFEAAAAAAAAAABiBEAgDCAMKAIsIgZBAWs2AiwgBUEgciIOQeEARw0BDAMLIAVBIHIiDkHhAEYNAiAMKAIsIQlBBiADIANBAEgbDAELIAwgBkEdayIJNgIsIAFEAAAAAAAAsEGiIQFBBiADIANBAEgbCyELIAxBMGpBoAJBACAJQQBOG2oiDSEHA0AgBwJ/IAFEAAAAAAAA8EFjIAFEAAAAAAAAAABmcQRAIAGrDAELQQALIgM2AgAgB0EEaiEHIAEgA7ihRA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QAIAALNwEBfyABIAAoAgQiA0EBdWohASAAKAIAIQAgASACIANBAXEEfyABKAIAIABqKAIABSAACxEEAAs5AQF/IAEgACgCBCIEQQF1aiEBIAAoAgAhACABIAIgAyAEQQFxBH8gASgCACAAaigCAAUgAAsRCAALCQAgASAAEQIACwUAQcM7Cw8AIAEgACgCAGogAjYCAAsNACABIAAoAgBqKAIACxgBAX9BEBAeIgBCADcDCCAAQQA2AgAgAAsYAQF/QRAQHiIAQgA3AwAgAEIANwMIIAALDABBMBAeQQBBMBAqCzcBAX8gASAAKAIEIgNBAXVqIQEgACgCACEAIAEgAiADQQFxBH8gASgCACAAaigCAAUgAAsRHgALBQBBvjsLIQAgACABKAIAIAEgASwAC0EASBtBuzsgAigCABAQNgIACyoBAX9BDBAeIgFBADoABCABIAAoAgA2AgggAEEANgIAIAFB2Cc2AgAgAQsFAEG7OwsFAEG4OwshACAAIAEoAgAgASABLAALQQBIG0GkOyACKAIAEBA2AgAL2AEBBH8jAEEgayIDJAAgASgCACIEQfD///8HSQRAAkACQCAEQQtPBEAgBEEPckEBaiIFEB4hBiADIAVBgICAgHhyNgIQIAMgBjYCCCADIAQ2AgwgBCAGaiEFDAELIAMgBDoAEyADQQhqIgYgBGohBSAERQ0BCyAGIAFBBGogBBArGgsgBUEAOgAAIAMgAjYCACADQRhqIANBCGogAyAAEQMAIAMoAhgQHSADKAIYIgAQBiADKAIAEAYgAywAE0EASARAIAMoAggQIwsgA0EgaiQAIAAPCxACAAsqAQF/QQwQHiIBQQA6AAQgASAAKAIANgIIIABBADYCACABQeAmNgIAIAELBQBBpDsLaQECfyMAQRBrIgYkACABIAAoAgQiB0EBdWohASAAKAIAIQAgBiABIAIgAyAEIAUgB0EBcQR/IAEoAgAgAGooAgAFIAALERAAQRAQHiIAIAYpAwg3AwggACAGKQMANwMAIAZBEGokACAACwUAQaA7Cx0AIAAoAgAiACAALQAAQfcBcUEIQQAgARtyOgAAC6oBAgJ/AX0jAEEQayICJAAgACgCACEAIAF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AAECAiCiAHIAUvAHoQICILWw0BIAogClsNACALIAtcDQELIAFBFGogBUEUakHoABArGiABQfwAaiAFQfwAahCgAQNAIAEtAAAiAEEEcQ0BIAEgAEEEcjoAACABKAIQIgAEQCABIAARAAALIAFBgICA/gc2ApwBIAEoAuQDIgENAAsLIAJBEGokAAvGAwEEfyMAQaAEayICJAAgACgCBCEBIABBADYCBCABBEAgASABKAIAKAIEEQAACyAAKAIIIQEgAEEANgIIIAEEQCABIAEoAgAoAgQRAAALAkAgACgCACIAKALoAyAAKALsA0YEQCAAKALkAw0BIAAgAkEYaiAAKAL0AxBcIgEpAgA3AgAgACABKAIQNgIQIAAgASkCCDcCCCAAQRRqIAFBFGpB6AAQKxogACABKQKMATcCjAEgACABKQKEATcChAEgACABKQJ8NwJ8IAEoApQBIQQgAUEANgKUASAAKAKUASEDIAAgBDYClAEgAwRAIAMQWwsgAEGYAWogAUGYAWpB0AIQKxogACgC6AMiAwRAIAAgAzYC7AMgAxAjCyAAIAEoAugDNgLoAyAAIAEoAuwDNgLsAyAAIAEoAvADNgLwAyABQQA2AvADIAFCADcC6AMgACABKQL8AzcC/AMgACABKQL0AzcC9AMgACABKAKEBDYChAQgASgClAEhACABQQA2ApQBIAAEQCAAEFsLIAJBoARqJAAPCyACQfAcNgIQIABBBUHYJSACQRBqECwQJAALIAJB5hE2AgAgAEEFQdglIAIQLBAkAAsLAEEMEB4gABCiAQsLAEEMEB5BABCiAQsNACAAKAIALQAIQQFxCwoAIAAoAgAoAhQLGQAgAUH/AXEEQBACAAsgACgCACgCEEEBcQsYACAAKAIAIgAgAC0ACEH+AXEgAXI6AAgLJgAgASAAKAIAIgAoAhRHBEAgACABNgIUIAAgACgCDEEBajYCDAsLkgEBAn8jAEEQayICJAAgACgCACEAIAFDAAAAAGAEQCABIAAqAhhcBEAgACABOAIYIAAgACgCDEEBajYCDAsgAkEQaiQADwsgAkGIFDYCACMAQRBrIgMkACADIAI2AgwCQCAARQRAQbgwQdglIAIQSRoMAQ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AGgAAABoaGgBBgi4LDhoAAAAaGhoAAAAAAAAJAEGzLgsBFABBvy4LFRcAAAAAFwAAAAAJFAAAAAAAFAAAFABB7S4LARYAQfkuCycVAAAAABUAAAAACRYAAAAAABYAABYAADAxMjM0NTY3ODlBQkNERUYAQcQvCwHSAEHsLwsI//////////8AQbAwCwkQIgEAAAAAAAUAQcQwCwHNAEHcMAsKzgAAAM8AAAD8HQBB9DALAQIAQYQxCwj//////////wBByDELAQUAQdQxCwHQAEHsMQsOzgAAANEAAAAIHgAAAAQAQYQyCwEBAEGUMgsF/////woAQdgyCwHT",!ut(It)){var Jt=It;It=e.locateFile?e.locateFile(Jt,o):o+Jt}function Tt(){var I=It;try{if(I==It&&c)return new Uint8Array(c);if(ut(I))try{var B=Hg(I.slice(37)),Q=new Uint8Array(B.length);for(I=0;I<B.length;++I)Q[I]=B.charCodeAt(I);var p=Q}catch{throw Error("Converting base64 string to bytes failed.")}else p=void 0;var y=p;if(y)return y;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(It,{credentials:"same-origin"}).then(function(I){if(!I.ok)throw"failed to load wasm binary file at '"+It+"'";return I.arrayBuffer()}).catch(function(){return Tt()})}function vn(I){for(;0<I.length;)I.shift()(e)}function co(I){if(I===void 0)return"_unknown";I=I.replace(/[^a-zA-Z0-9_]/g,"$");var B=I.charCodeAt(0);return 48<=B&&57>=B?"_"+I:I}function Dn(I,B){return I=co(I),function(){return B.apply(this,arguments)}}var Mt=[{},{value:void 0},{value:null},{value:!0},{value:!1}],bn=[];function HA(I){var B=Error,Q=Dn(I,function(p){this.name=I,this.message=p,p=Error(p).stack,p!==void 0&&(this.stack=this.toString()+`
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 hA=(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 o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=fe(o),h=a.next();!h.done;h=a.next()){var c=h.value;c.remove(this)}}catch(d){t={error:d}}finally{try{h&&!h.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var u=this.initialTeardown;if(et(u))try{u()}catch(d){s=d instanceof XA?d.errors:[d]}var r=this._finalizers;if(r){this._finalizers=null;try{for(var l=fe(r),g=l.next();!g.done;g=l.next()){var f=g.value;try{Yn(f)}catch(d){s=s??[],d instanceof XA?s=Ue(Ue([],Le(s)),Le(d.errors)):s.push(d)}}}catch(d){i={error:d}}finally{try{g&&!g.done&&(n=l.return)&&n.call(l)}finally{if(i)throw i.error}}}if(s)throw new XA(s)}},A.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Yn(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})(),Jn=hA.EMPTY;function Kn(A){return A instanceof hA||A&&"closed"in A&&et(A.remove)&&et(A.add)&&et(A.unsubscribe)}function Yn(A){et(A)?A():A.unsubscribe()}var No={Promise:void 0},Go={setTimeout:function(A,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,Ue([A,t],Le(e)))},clearTimeout:function(A){return clearTimeout(A)},delegate:void 0};function Wn(A){Go.setTimeout(function(){throw A})}function jn(){}function cA(A){A()}var zA=(function(A){ie(t,A);function t(e){var i=A.call(this)||this;return i.isStopped=!1,e?(i.destination=e,Kn(e)&&e.add(i)):i.destination=Uo,i}return t.create=function(e,i,n){return new Te(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})(hA),Ho=(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){gA(i)}},A.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){gA(i)}else gA(t)},A.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){gA(e)}},A})(),Te=(function(A){ie(t,A);function t(e,i,n){var s=A.call(this)||this,o;return et(e)||!e?o={next:e??void 0,error:i??void 0,complete:n??void 0}:o=e,s.destination=new Ho(o),s}return t})(zA);function gA(A){Wn(A)}function Lo(A){throw A}var Uo={closed:!0,next:jn,error:Lo,complete:jn},$A=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function ti(A){return A}function To(A){return A.length===0?ti:A.length===1?A[0]:function(e){return A.reduce(function(i,n){return n(i)},e)}}var Z=(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=Po(t)?t:new Te(t,e,i);return cA(function(){var o=n,a=o.operator,h=o.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=Vn(e),new e(function(n,s){var o=new Te({next:function(a){try{t(a)}catch(h){s(h),o.unsubscribe()}},error:s,complete:n});i.subscribe(o)})},A.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},A.prototype[$A]=function(){return this},A.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return To(t)(this)},A.prototype.toPromise=function(t){var e=this;return t=Vn(t),new t(function(i,n){var s;e.subscribe(function(o){return s=o},function(o){return n(o)},function(){return i(s)})})},A.create=function(t){return new A(t)},A})();function Vn(A){var t;return(t=A??No.Promise)!==null&&t!==void 0?t:Promise}function Oo(A){return A&&et(A.next)&&et(A.error)&&et(A.complete)}function Po(A){return A&&A instanceof zA||Oo(A)&&Kn(A)}function Jo(A){return et(A?.lift)}function de(A){return function(t){if(Jo(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 uA(A,t,e,i,n){return new Ko(A,t,e,i,n)}var Ko=(function(A){ie(t,A);function t(e,i,n,s,o,a){var h=A.call(this,e)||this;return h.onFinalize=o,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})(zA),Yo=Pn(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 qn(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new Yo},t.prototype.next=function(e){var i=this;cA(function(){var n,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=fe(i.currentObservers),a=o.next();!a.done;a=o.next()){var h=a.value;h.next(e)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var i=this;cA(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;cA(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,o=n.isStopped,a=n.observers;return s||o?Jn:(this.currentObservers=null,a.push(e),new hA(function(){i.currentObservers=null,ZA(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,n=i.hasError,s=i.thrownError,o=i.isStopped;n?e.error(s):o&&e.complete()},t.prototype.asObservable=function(){var e=new Z;return e.source=this,e},t.create=function(e,i){return new qn(e,i)},t})(Z),qn=(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:Jn},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),Xn={now:function(){return(Xn.delegate||Date).now()},delegate:void 0},Wo=(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=Xn);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,o=i._infiniteTimeWindow,a=i._timestampProvider,h=i._windowTime;n||(s.push(e),!o&&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,o=n._buffer,a=o.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,o=e._infiniteTimeWindow,a=(o?1:2)*i;if(i<1/0&&a<s.length&&s.splice(0,s.length-a),!o){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 jo(A){return A&&et(A.schedule)}function Zn(A){return A[A.length-1]}function Vo(A){return et(Zn(A))?A.pop():void 0}function qo(A){return jo(Zn(A))?A.pop():void 0}var zn=(function(A){return A&&typeof A.length=="number"&&typeof A!="function"});function $n(A){return et(A?.then)}function ts(A){return et(A[$A])}function es(A){return Symbol.asyncIterator&&et(A?.[Symbol.asyncIterator])}function As(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 Xo(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var is=Xo();function ns(A){return et(A?.[is])}function ss(A){return Fo(this,arguments,function(){var e,i,n,s;return On(this,function(o){switch(o.label){case 0:e=A.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,Be(e.read())];case 3:return i=o.sent(),n=i.value,s=i.done,s?[4,Be(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,Be(n)];case 6:return[4,o.sent()];case 7:return o.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 Z)return A;if(A!=null){if(ts(A))return Zo(A);if(zn(A))return zo(A);if($n(A))return $o(A);if(es(A))return os(A);if(ns(A))return ta(A);if(rs(A))return ea(A)}throw As(A)}function Zo(A){return new Z(function(t){var e=A[$A]();if(et(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function zo(A){return new Z(function(t){for(var e=0;e<A.length&&!t.closed;e++)t.next(A[e]);t.complete()})}function $o(A){return new Z(function(t){A.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,Wn)})}function ta(A){return new Z(function(t){var e,i;try{for(var n=fe(A),s=n.next();!s.done;s=n.next()){var o=s.value;if(t.next(o),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 os(A){return new Z(function(t){Aa(A,t).catch(function(e){return t.error(e)})})}function ea(A){return os(ss(A))}function Aa(A,t){var e,i,n,s;return Ro(this,void 0,void 0,function(){var o,a;return On(this,function(h){switch(h.label){case 0:h.trys.push([0,5,6,11]),e=_o(A),h.label=1;case 1:return[4,e.next()];case 2:if(i=h.sent(),!!i.done)return[3,4];if(o=i.value,t.next(o),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 as(A,t){return t===void 0&&(t=0),de(function(e,i){e.subscribe(uA(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 ls(A,t){return t===void 0&&(t=0),de(function(e,i){i.add(A.schedule(function(){return e.subscribe(i)},t))})}function ia(A,t){return Ee(A).pipe(ls(t),as(t))}function na(A,t){return Ee(A).pipe(ls(t),as(t))}function sa(A,t){return new Z(function(e){var i=0;return t.schedule(function(){i===A.length?e.complete():(e.next(A[i++]),e.closed||this.schedule())})})}function ra(A,t){return new Z(function(e){var i;return qt(e,t,function(){i=A[is](),qt(e,t,function(){var n,s,o;try{n=i.next(),s=n.value,o=n.done}catch(a){e.error(a);return}o?e.complete():e.next(s)},0,!0)}),function(){return et(i?.return)&&i.return()}})}function hs(A,t){if(!A)throw new Error("Iterable cannot be null");return new Z(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 oa(A,t){return hs(ss(A),t)}function aa(A,t){if(A!=null){if(ts(A))return ia(A,t);if(zn(A))return sa(A,t);if($n(A))return na(A,t);if(es(A))return hs(A,t);if(ns(A))return ra(A,t);if(rs(A))return oa(A,t)}throw As(A)}function IA(A,t){return t?aa(A,t):Ee(A)}function la(A){return!!A&&(A instanceof Z||et(A.lift)&&et(A.subscribe))}function ei(A,t){return de(function(e,i){var n=0;e.subscribe(uA(i,function(s){i.next(A.call(t,s,n++))}))})}var ha=Array.isArray;function ca(A,t){return ha(t)?A.apply(void 0,Ue([],Le(t))):A(t)}function ga(A){return ei(function(t){return ca(A,t)})}var ua=Array.isArray,Ia=Object.getPrototypeOf,fa=Object.prototype,Ba=Object.keys;function da(A){if(A.length===1){var t=A[0];if(ua(t))return{args:t,keys:null};if(Ea(t)){var e=Ba(t);return{args:e.map(function(i){return t[i]}),keys:e}}}return{args:A,keys:null}}function Ea(A){return A&&typeof A=="object"&&Ia(A)===fa}function Ca(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=qo(A),i=Vo(A),n=da(A),s=n.args,o=n.keys;if(s.length===0)return IA([],e);var a=new Z(Qa(s,e,o?function(h){return Ca(o,h)}:ti));return i?a.pipe(ga(i)):a}function Qa(A,t,e){return e===void 0&&(e=ti),function(i){cs(t,function(){for(var n=A.length,s=new Array(n),o=n,a=n,h=function(u){cs(t,function(){var r=IA(A[u],t),l=!1;r.subscribe(uA(i,function(g){s[u]=g,l||(l=!0,a--),a||i.next(e(s.slice()))},function(){--o||i.complete()}))},i)},c=0;c<n;c++)h(c)},i)}}function cs(A,t,e){A?qt(e,A,t):t()}function pa(A){return new Z(function(t){Ee(A()).subscribe(t)})}function Oe(A,t){return de(function(e,i){var n=0;e.subscribe(uA(i,function(s){return A.call(t,s,n++)&&i.next(s)}))})}function ya(A){return de(function(t,e){try{t.subscribe(e)}finally{e.add(A)}})}function gs(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,o=s===void 0?!0:s,a=A.resetOnRefCountZero,h=a===void 0?!0:a;return function(c){var u,r,l,g=0,f=!1,d=!1,C=function(){r?.unsubscribe(),r=void 0},E=function(){C(),u=l=void 0,f=d=!1},m=function(){var w=u;E(),w?.unsubscribe()};return de(function(w,b){g++,!d&&!f&&C();var M=l=l??e();b.add(function(){g--,g===0&&!d&&!f&&(r=Ai(m,h))}),M.subscribe(b),!u&&g>0&&(u=new Te({next:function(G){return M.next(G)},error:function(G){d=!0,C(),r=Ai(E,n,G),M.error(G)},complete:function(){f=!0,C(),r=Ai(E,o),M.complete()}}),Ee(w).subscribe(u))})(c)}}function Ai(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 Te({next:function(){n.unsubscribe(),A()}});return Ee(t.apply(void 0,Ue([],Le(e)))).subscribe(n)}}function ma(A,t,e){var i,n,s,o,a=!1;return A&&typeof A=="object"?(i=A.bufferSize,o=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):o=A??1/0,gs({connector:function(){return new Wo(o,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 Pe(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)||!Pe(i,n))return!1}else if(!us(i,n))return!1}else if(i!==n)return!1}return!0}function us(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)||!wa(A[n],t[n]))return!1;return!0}function wa(A,t){return A===t?!0:typeof A!=typeof t?!1:typeof A=="object"&&A!==null?Array.isArray(A)?Array.isArray(t)&&Pe(A,t):us(A,t):!1}function ii(A){return{}.toString.call(A)==="[object Function]"}function BA(A){return typeof A=="object"&&A!=null&&!Array.isArray(A)&&A.constructor===Object}function Is(A){return A instanceof Z}function ni(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 o=0;o<n-1;o++){let a=t[o],h=t[o+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 va(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 Da(A){console.log(A)}function si(A){console.error(A)}function re(A,t){typeof t=="number"?A.set(t):Array.isArray(t)?A.set(t[0],t[1]):BA(t)&&"value"in t?A.set(t.value.x,t.value.y):A.set(t.x,t.y)}function fs(A,t,e,i){const n=A-e,s=t-i;return Math.sqrt(n*n+s*s)}const ba=Object.freeze(Object.defineProperty({__proto__:null,arrayEquals:Pe,calculateDistance:fs,error:si,fps2ms:_t,get:va,isBrowser:Ce,isFunction:ii,isObject:BA,isObservable:Is,isPromise:Xt,log:Da,preciseNow:Ot,set:ni,setObservablePoint:re},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(o=>{this.boundKeys[o]={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 o of s)this.bindKey(o,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 ds={3:"break",8:"backspace",9:"tab",12:"clear",13:"enter",16:"shift",17:"ctrl",18:"alt",19:"pause/break",20:"caps lock",27:"escape",28:"conversion",29:"non-conversion",32:"space",33:"page up",34:"page down",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",41:"select",42:"print",43:"execute",44:"Print Screen",45:"insert",46:"delete",48:"n0",49:"n1",50:"n2",51:"n3",52:"n4",53:"n5",54:"n6",55:"n7",56:"n8",57:"n9",58:":",59:"semicolon (firefox), equals",60:"<",61:"equals (firefox)",63:"ß",64:"@",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",91:"Windows Key / Left ⌘ / Chromebook Search key",92:"right window key",93:"Windows Menu / Right ⌘",96:"numpad 0",97:"numpad 1",98:"numpad 2",99:"numpad 3",100:"numpad 4",101:"numpad 5",102:"numpad 6",103:"numpad 7",104:"numpad 8",105:"numpad 9",106:"multiply",107:"add",108:"numpad period (firefox)",109:"subtract",110:"decimal point",111:"divide",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",124:"f13",125:"f14",126:"f15",127:"f16",128:"f17",129:"f18",130:"f19",131:"f20",132:"f21",133:"f22",134:"f23",135:"f24",144:"num lock",145:"scroll lock",160:"^",161:"!",163:"#",164:"$",165:"ù",166:"page backward",167:"page forward",169:"closing paren (AZERTY)",170:"*",171:"~ + * key",173:"minus (firefox), mute/unmute",174:"decrease volume level",175:"increase volume level",176:"next",177:"previous",178:"stop",179:"play/pause",180:"e-mail",181:"mute/unmute (firefox)",182:"decrease volume level (firefox)",183:"increase volume level (firefox)",186:"semi-colon / ñ",187:"equal sign",188:"comma",189:"dash",190:"period",191:"forward slash / ç",192:"grave accent / ñ / æ",193:"?, / or °",194:"numpad period (chrome)",219:"open bracket",220:"back slash",221:"close bracket / å",222:"single quote / ø",223:"`",224:"left or right ⌘ key (firefox)",225:"altgr",226:"< /git >",230:"GNOME Compose Key",231:"ç",233:"XF86Forward",234:"XF86Back",240:"alphanumeric",242:"hiragana/katakana",243:"half-width/full-width",244:"kanji",255:"toggle touchpad"},Es=(A=>{const t={};for(let e in A){const i=A[e];t[i]=e}return t})(ds);class Cs 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:o,keyDown:a,throttle:h}=s.options;if(o||n==0){if(typeof h=="number"){const u=Date.now(),r=this.lastActionTimes[s.actionName]??0;if(u-r<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=Es[t],i=new Event("keydown");i.keyCode=e,this.onKeyChange(i,!0)}applyKeyUp(t){const e=Es[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=ds[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 vt={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}}},EA={LEFT:"left",RIGHT:"right",TOP:"top",BOTTOM:"bottom"},Sa={button_0:0,button_1:1,button_2:2,button_3:3,button_4:4,button_5:5,button_6:6,button_7:7,button_8:8,button_9:9,button_10:10,button_11:11,button_12:12,button_13:13,button_14:14,button_15:15,button_16:16,button_17:17},xa=.8,Qs=function(A){console.warn&&typeof console.warn=="function"?console.warn(A):console.log(A)},ka=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},Ma=function(A){return!!A&&!!A.type&&!!A.playEffect&&typeof A.playEffect=="function"||!1},Ra=function(){return!!window.navigator.getGamepads&&typeof window.navigator.getGamepads=="function"||!1},dt={loopStarted:!1,instances:{},buttonEvents:{joypad:[]},settings:{axisMovementThreshold:xa},remove:function(t){return delete this.instances[t]},on:function(t,e){switch(t){case z.CONNECT.ALIAS:return vt.subscribe(z.CONNECT.ALIAS,e);case z.DISCONNECT.ALIAS:return vt.subscribe(z.DISCONNECT.ALIAS,e);case z.BUTTON_PRESS.ALIAS:return vt.subscribe(z.BUTTON_PRESS.ALIAS,e);case z.BUTTON_RELEASE.ALIAS:return vt.subscribe(z.BUTTON_RELEASE.ALIAS,e);case z.AXIS_MOVEMENT.ALIAS:return vt.subscribe(z.AXIS_MOVEMENT.ALIAS,e)}},vibrate:function(t,e){var i=t.vibrationActuator,n=e||this.settings.vibration;if(Ma(i)){var s=i.type;return t.vibrationActuator.playEffect(s,n)}Qs("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 vt.publish(t,e)}},Fa=function(A){A.buttons.forEach(function(t,e){var i=dt.settings.customButtonMapping,n=i||Sa,s=ka(e,n),o=dt.buttonEvents;s&&s.length&&s.forEach(function(a){t.pressed?(o.joypad[A.index][a]||(o.joypad[A.index][a]={pressed:!0,hold:!1,released:!1}),o.joypad[A.index][a].button=t,o.joypad[A.index][a].index=e,o.joypad[A.index][a].gamepad=A):!t.pressed&&o.joypad[A.index][a]&&(o.joypad[A.index][a].released=!0,o.joypad[A.index][a].hold=!1)})})},_a=function(A){var t=function(o){return new CustomEvent(z.AXIS_MOVEMENT.ALIAS,{detail:o})},e=dt.settings.axisMovementThreshold,i=A.axes,n=i.length,s=n/2;i.forEach(function(o,a){if(Math.abs(o)>e){var h=null,c=null,u=o;h=a<s?Qe.LEFT.NAME:Qe.RIGHT.NAME,(a===Qe.LEFT.AXES.X||a===Qe.RIGHT.AXES.X)&&(c=o<0?EA.LEFT:EA.RIGHT),(a===Qe.LEFT.AXES.Y||a===Qe.RIGHT.AXES.Y)&&(c=o<0?EA.TOP:EA.BOTTOM);var r={gamepad:A,totalSticks:s,stickMoved:h,directionOfMovement:c,axisMovementValue:u,axis:a};return window.dispatchEvent(t(r))}})},Na=function(A,t){t[A].pressed?(ps(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&&(ps(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,Fa(n),_a(n))}),e.joypad.forEach(function(n){n&&Object.keys(n).forEach(function(s){Na(s,n)})}),this.id=t(this.start.bind(this))},stop:function(t){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame;return e(t)}},Ga=function(){window.addEventListener(z.CONNECT.NATIVE,function(A){if(vt.publish(z.CONNECT.ALIAS,A),!dt.loopStarted)return dt.loopStarted=!0,ri.start()}),window.addEventListener(z.DISCONNECT.NATIVE,function(A){if(vt.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 vt.publish(z.BUTTON_PRESS.ALIAS,A)}),window.addEventListener(z.BUTTON_RELEASE.ALIAS,function(A){return vt.publish(z.BUTTON_RELEASE.ALIAS,A)}),window.addEventListener(z.AXIS_MOVEMENT.ALIAS,function(A){return vt.publish(z.AXIS_MOVEMENT.ALIAS,A)})},ps=function(A,t,e){var i=function(h){return new CustomEvent(A,{detail:h})},n=t[e],s=n.index,o=n.gamepad,a={buttonName:e,button:t[e].button,index:s,gamepad:o};window.dispatchEvent(i(a))};Ga(),Ra()?window.joypad=dt:(window.joypad={},Qs("Your browser does not support the Gamepad API - https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API"));const oi={button_0:"action",button_1:"back",button_9:"back"},ai={top:"up",bottom:"down",left:"left",right:"right"};class ys extends dA{constructor(){super(...arguments),this.gamepadEnabled=!0,this.gamepadConfig={enabled:!0,buttonMapping:oi,axisMapping:ai,axisThreshold:.5,moveInterval:400},this.gamepadMoving=!1,this.gamepadDirections={},this.gamepadAxisDate=0,this.gamepadMoveInterval=null,this.joypad=null,this.connectCallbacks=[],this.disconnectCallbacks=[],this.currentPower=0}setupListeners(){this.initGamepad()}cleanup(){this.gamepadMoveInterval&&(clearInterval(this.gamepadMoveInterval),this.gamepadMoveInterval=null)}initGamepad(){if(typeof window>"u")return;const t=window.joypad;if(!t){this.gamepadConfig.gamepadConnected&&this.gamepadConfig.gamepadConnected.set(!1);return}this.joypad=t,this.joypad.on("connect",()=>this.handleGamepadConnect()),this.joypad.on("disconnect",()=>this.handleGamepadDisconnect()),this.joypad.on("button_press",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||oi)[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||ai;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 o=s[0],a=o.axes?.[0]||0,h=o.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||oi,axisMapping:t.axisMapping||ai,axisThreshold:t.axisThreshold||.5,moveInterval:t.moveInterval||400,onConnect:t.onConnect,onDisconnect:t.onDisconnect,gamepadConnected:t.gamepadConnected},this.gamepadConfig.onConnect&&this.onConnect(this.gamepadConfig.onConnect),this.gamepadConfig.onDisconnect&&this.onDisconnect(this.gamepadConfig.onDisconnect)}extractGamepadConfig(t){t.gamepad&&this.updateGamepadConfig(t.gamepad)}getGamepadConfig(){return this.gamepadConfig}async applyControl(t,e,i){if(!this._controlsOptions[t])return;const s=Object.keys(this.boundKeys);for(const o of s){const a=this.boundKeys[o];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 li={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 ms extends dA{constructor(){super(...arguments),this.joystickEnabled=!0,this.joystickConfig={enabled:!0,directionMapping:li,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||li,i=t.direction,n=e[i];if(!n){this.stopAllMovements();return}const s=Array.isArray(n)?n:[n],o=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 r=this.joystickDirections[u],l=a[u]||!1;r&&!l&&this.applyControl(u,!1).catch(()=>{})}this.joystickDirections={...a},this.joystickMoving=!0;const c=s.filter(u=>!o[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||li,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 o of s){const a=this.boundKeys[o];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 hi={};class Dt{}function bt(A,t){hi[A]=t}function ci(A,t){if(!hi[t])return null;const e=new hi[t];return e.onInit?.(A),e}var Ha=Object.defineProperty,$=(A,t)=>Ha(A,"name",{value:t,configurable:!0}),Je=(Fe=class extends se{_items=[];constructor(t=[]){super({type:"init",items:t}),this.createProxy(t)}createProxy(t){this._items=new Proxy(t,{get:$((e,i,n)=>{const s=e[i];return typeof s=="function"?(...o)=>{let a="update",h,c=!1,u=[],r=!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=o[0];const g=o[1],f=o.slice(2);u=f,g>0&&f.length===0?a="remove":g===0&&f.length>0?a="add":g===0&&f.length===0?r=!1:a="update",c=!0;break}const l=s.apply(e,o);return c&&r&&(i==="splice"?this.next({type:a,index:h,items:u}):this.next({type:a,index:h,items:o})),l}:Reflect.get(e,i,n)},"get"),set:$((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})}},$(Fe,"ArraySubject"),Fe),La=$(A=>"_items"in A,"isArraySubject"),Ke=(_e=class extends se{_obj;constructor(t={}){super({type:"init",value:t}),this.createProxy(t)}createProxy(t){this._obj=new Proxy(t,{get:$((e,i,n)=>Reflect.get(e,i,n),"get"),set:$((e,i,n,s)=>{const o=i,a=o in e?"update":"add";return e[o]=n,this.next({type:a,key:o,value:n}),!0},"set"),deleteProperty:$((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})}},$(_e,"ObjectSubject"),_e),Ua=$(A=>"_obj"in A,"isObjectSubject"),Ta=$(()=>{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=Ta(),gi=$(A=>{lt.currentDependencyTracker&&lt.currentDependencyTracker(A)},"trackDependency");function Y(A,t){let e;Array.isArray(A)?e=new Je(A):typeof A=="object"&&A!==null?e=new Ke(A):e=new se(A);const i=$(()=>e instanceof Je?e.items:e instanceof Ke?e.obj:e.value,"getValue"),n=$(function(){return gi(n),i()},"fn");return n.set=s=>{const o=i();let a=!0;t?.equal?a=!t.equal(o,s):a=o!==s,a&&(e instanceof Je?e.items=s:e instanceof Ke?e.obj=s:e.next(s))},n._isFrozen=!1,n.freeze=()=>{n._isFrozen=!0},n.unfreeze=()=>{n._isFrozen=!1,e instanceof Je?e.next({type:"init",items:e.items}):e instanceof Ke?e.next({type:"init",value:e.obj}):e.next(e.value)},n.mutate=s=>{const o=i();s(o)},n.update=s=>{const o=s(i());n.set(o)},n.observable=e.asObservable().pipe(Oe(()=>!n._isFrozen)),n._subject=e,n}$(Y,"signal");function _(A){return!!(A&&A.observable)}$(_,"isSignal");function pe(A){return _(A)&&!!A.dependencies}$(pe,"isComputed");function Et(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 o=[...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(o).pipe(Oe(()=>!i),ei(()=>A()),ya(()=>t?.())),h=$(function(){return gi(h),n},"fn");return h.observable=a,h.subscription=a.subscribe(c=>{n=c}),h.dependencies=e,lt.currentSubscriptionsTracker?.(h.subscription),i=!1,h}$(Et,"computed");function ws(A,t){const e=new Set;let i=!0,n,s,o,a,h,c,u=!1,r,l=0,g=null;if(typeof A=="function")s=A,h=t?.equal;else{const w=A;if(o=w.source,a=w.computation,h=w.equal,typeof o=="function"&&!_(o)){const b=o;s=$(()=>{const M=b();if(a.length>1){const G=a(M,c);return c={source:M,value:G},G}else{const G=a(M);return c={source:M,value:G},G}},"computeFunction")}else{const b=o;s=$(()=>{const M=b();if(a.length>1){const G=a(M,c);return c={source:M,value:G},G}else{const G=a(M);return c={source:M,value:G},G}},"computeFunction")}}const f=lt.currentDependencyTracker;lt.currentDependencyTracker=w=>{e.add(w)},o&&typeof o=="function"&&!_(o)||o&&_(o)&&e.add(o),n=s(),lt.currentDependencyTracker=f;const d=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(Oe(()=>!i),ei(()=>{const w=s();return h?h(n,w)||(n=w,u=!1):n!==w&&(n=w,u=!1),n})):E=d.asObservable().pipe(Oe(()=>!i));const m=$(function(){if(gi(m),u&&e.size>0){if(g!==l){const w=s();return u=!1,r=void 0,n=w,g=null,w}return r}return u?r:(e.size===0&&(n=s()),n)},"fn");return m.observable=new Z(w=>{const b=E.subscribe(G=>{e.size>0&&(l++,u=!1,g=null),n=G,w.next(G)});let M;return e.size===0&&(M=d.pipe(Oe(()=>!i)).subscribe(G=>{w.next(G)})),w.next(n),()=>{b.unsubscribe(),M&&M.unsubscribe()}}),m.subscription=m.observable.subscribe(()=>{}),m.dependencies=e,m._subject=d,m.set=w=>{u||(g=l,a&&o&&(c={source:ui(()=>{if(typeof o=="function"){const M=o;return _(M)?M():o()}return o()}),value:w})),u=!0,r=w,n=w,d.next(w)},lt.currentSubscriptionsTracker?.(m.subscription),i=!1,m}$(ws,"linkedSignal");function ui(A){const t=lt.currentDependencyTracker,e=lt.currentSubscriptionsTracker;lt.currentDependencyTracker=null,lt.currentSubscriptionsTracker=null;try{return A()}finally{lt.currentDependencyTracker=t,lt.currentSubscriptionsTracker=e}}$(ui,"untracked");function it(A){return A.isEffect=!0,Et(A)}$(it,"effect");function vs(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 Ds=function(){};const Ii=(A,t,e)=>Math.min(Math.max(e,A),t),fi=.001,Oa=.01,Pa=10,Ja=.05,Ka=1;function Ya({duration:A=800,bounce:t=.25,velocity:e=0,mass:i=1}){let n,s,o=1-t;o=Ii(Ja,Ka,o),A=Ii(Oa,Pa,A/1e3),o<1?(n=c=>{const u=c*o,r=u*A,l=u-e,g=Bi(c,o),f=Math.exp(-r);return fi-l/g*f},s=c=>{const r=c*o*A,l=r*e+e,g=Math.pow(o,2)*Math.pow(c,2)*A,f=Math.exp(-r),d=Bi(Math.pow(c,2),o);return(-n(c)+fi>0?-1:1)*((l-g)*f)/d}):(n=c=>{const u=Math.exp(-c*A),r=(c-e)*A+1;return-fi+u*r},s=c=>{const u=Math.exp(-c*A),r=(e-c)*(A*A);return u*r});const a=5/A,h=ja(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:o*2*Math.sqrt(i*c),duration:A}}}const Wa=12;function ja(A,t,e){let i=e;for(let n=1;n<Wa;n++)i=i-A(i)/t(i);return i}function Bi(A,t){return A*Math.sqrt(1-t*t)}const Va=["duration","bounce"],qa=["stiffness","damping","mass"];function bs(A,t){return t.some(e=>A[e]!==void 0)}function Xa(A){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},A);if(!bs(A,qa)&&bs(A,Va)){const e=Ya(A);t=Object.assign(Object.assign(Object.assign({},t),e),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function di(A){var{from:t=0,to:e=1,restSpeed:i=2,restDelta:n}=A,s=vs(A,["from","to","restSpeed","restDelta"]);const o={done:!1,value:t};let{stiffness:a,damping:h,mass:c,velocity:u,duration:r,isResolvedFromDuration:l}=Xa(s),g=Ss,f=Ss;function d(){const C=u?-(u/1e3):0,E=e-t,m=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)),m<1){const b=Bi(w,m);g=M=>{const G=Math.exp(-m*w*M);return e-G*((C+m*w*E)/b*Math.sin(b*M)+E*Math.cos(b*M))},f=M=>{const G=Math.exp(-m*w*M);return m*w*G*(Math.sin(b*M)*(C+m*w*E)/b+E*Math.cos(b*M))-G*(Math.cos(b*M)*(C+m*w*E)-b*E*Math.sin(b*M))}}else if(m===1)g=b=>e-Math.exp(-w*b)*(E+(C+w*E)*b);else{const b=w*Math.sqrt(m*m-1);g=M=>{const G=Math.exp(-m*w*M),O=Math.min(b*M,300);return e-G*((C+m*w*E)*Math.sinh(O)+b*E*Math.cosh(O))/b}}}return d(),{next:C=>{const E=g(C);if(l)o.done=C>=r;else{const m=f(C)*1e3,w=Math.abs(m)<=i,b=Math.abs(e-E)<=n;o.done=w&&b}return o.value=o.done?e:E,o},flipTarget:()=>{u=-u,[t,e]=[e,t],d()}}}di.needsInterpolation=(A,t)=>typeof A=="string"||typeof t=="string";const Ss=A=>0,xs=(A,t,e)=>{const i=t-A;return i===0?1:(e-A)/i},Ei=(A,t,e)=>-e*A+e*t+A,ks=(A,t)=>e=>Math.max(Math.min(e,t),A),Ye=A=>A%1?Number(A.toFixed(5)):A,CA=/(-)?([\d]*\.?[\d])+/g,Ci=/(#[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,Za=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function We(A){return typeof A=="string"}const QA={test:A=>typeof A=="number",parse:parseFloat,transform:A=>A},Ms=Object.assign(Object.assign({},QA),{transform:ks(0,1)});Object.assign(Object.assign({},QA),{default:1});const je=(A=>({test:t=>We(t)&&t.endsWith(A)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${A}`}))("%");Object.assign(Object.assign({},je),{parse:A=>je.parse(A)/100,transform:A=>je.transform(A*100)});const Qi=(A,t)=>e=>!!(We(e)&&Za.test(e)&&e.startsWith(A)||t&&Object.prototype.hasOwnProperty.call(e,t)),Rs=(A,t,e)=>i=>{if(!We(i))return i;const[n,s,o,a]=i.match(CA);return{[A]:parseFloat(n),[t]:parseFloat(s),[e]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},oe={test:Qi("hsl","hue"),parse:Rs("hue","saturation","lightness"),transform:({hue:A,saturation:t,lightness:e,alpha:i=1})=>"hsla("+Math.round(A)+", "+je.transform(Ye(t))+", "+je.transform(Ye(e))+", "+Ye(Ms.transform(i))+")"},za=ks(0,255),pi=Object.assign(Object.assign({},QA),{transform:A=>Math.round(za(A))}),Zt={test:Qi("rgb","red"),parse:Rs("red","green","blue"),transform:({red:A,green:t,blue:e,alpha:i=1})=>"rgba("+pi.transform(A)+", "+pi.transform(t)+", "+pi.transform(e)+", "+Ye(Ms.transform(i))+")"};function $a(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 yi={test:Qi("#"),parse:$a,transform:Zt.transform},pA={test:A=>Zt.test(A)||yi.test(A)||oe.test(A),parse:A=>Zt.test(A)?Zt.parse(A):oe.test(A)?oe.parse(A):yi.parse(A),transform:A=>We(A)?A:A.hasOwnProperty("red")?Zt.transform(A):oe.transform(A)},Fs="${c}",_s="${n}";function tl(A){var t,e,i,n;return isNaN(A)&&We(A)&&((e=(t=A.match(CA))===null||t===void 0?void 0:t.length)!==null&&e!==void 0?e:0)+((n=(i=A.match(Ci))===null||i===void 0?void 0:i.length)!==null&&n!==void 0?n:0)>0}function Ns(A){typeof A=="number"&&(A=`${A}`);const t=[];let e=0;const i=A.match(Ci);i&&(e=i.length,A=A.replace(Ci,Fs),t.push(...i.map(pA.parse)));const n=A.match(CA);return n&&(A=A.replace(CA,_s),t.push(...n.map(QA.parse))),{values:t,numColors:e,tokenised:A}}function Gs(A){return Ns(A).values}function Hs(A){const{values:t,numColors:e,tokenised:i}=Ns(A),n=t.length;return s=>{let o=i;for(let a=0;a<n;a++)o=o.replace(a<e?Fs:_s,a<e?pA.transform(s[a]):Ye(s[a]));return o}}const el=A=>typeof A=="number"?0:A;function Al(A){const t=Gs(A);return Hs(A)(t.map(el))}const Ls={test:tl,parse:Gs,createTransformer:Hs,getAnimatableNone:Al};function mi(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 Us({hue:A,saturation:t,lightness:e,alpha:i}){A/=360,t/=100,e/=100;let n=0,s=0,o=0;if(!t)n=s=o=e;else{const a=e<.5?e*(1+t):e+t-e*t,h=2*e-a;n=mi(h,a,A+.3333333333333333),s=mi(h,a,A),o=mi(h,a,A-.3333333333333333)}return{red:Math.round(n*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:i}}const il=(A,t,e)=>{const i=A*A,n=t*t;return Math.sqrt(Math.max(0,e*(n-i)+i))},nl=[yi,Zt,oe],Ts=A=>nl.find(t=>t.test(A)),Os=(A,t)=>{let e=Ts(A),i=Ts(t),n=e.parse(A),s=i.parse(t);e===oe&&(n=Us(n),e=Zt),i===oe&&(s=Us(s),i=Zt);const o=Object.assign({},n);return a=>{for(const h in o)h!=="alpha"&&(o[h]=il(n[h],s[h],a));return o.alpha=Ei(n.alpha,s.alpha,a),e.transform(o)}},sl=A=>typeof A=="number",rl=(A,t)=>e=>t(A(e)),Ps=(...A)=>A.reduce(rl);function Js(A,t){return sl(A)?e=>Ei(A,t,e):pA.test(A)?Os(A,t):Ws(A,t)}const Ks=(A,t)=>{const e=[...A],i=e.length,n=A.map((s,o)=>Js(s,t[o]));return s=>{for(let o=0;o<i;o++)e[o]=n[o](s);return e}},ol=(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]=Js(A[n],t[n]));return n=>{for(const s in i)e[s]=i[s](n);return e}};function Ys(A){const t=Ls.parse(A),e=t.length;let i=0,n=0,s=0;for(let o=0;o<e;o++)i||typeof t[o]=="number"?i++:t[o].hue!==void 0?s++:n++;return{parsed:t,numNumbers:i,numRGB:n,numHSL:s}}const Ws=(A,t)=>{const e=Ls.createTransformer(t),i=Ys(A),n=Ys(t);return i.numHSL===n.numHSL&&i.numRGB===n.numRGB&&i.numNumbers>=n.numNumbers?Ps(Ks(i.parsed,n.parsed),e):o=>`${o>0?t:A}`},al=(A,t)=>e=>Ei(A,t,e);function ll(A){if(typeof A=="number")return al;if(typeof A=="string")return pA.test(A)?Os:Ws;if(Array.isArray(A))return Ks;if(typeof A=="object")return ol}function hl(A,t,e){const i=[],n=e||ll(A[0]),s=A.length-1;for(let o=0;o<s;o++){let a=n(A[o],A[o+1]);if(t){const h=Array.isArray(t)?t[o]:t;a=Ps(h,a)}i.push(a)}return i}function cl([A,t],[e]){return i=>e(xs(A,t,i))}function gl(A,t){const e=A.length,i=e-1;return n=>{let s=0,o=!1;if(n<=A[0]?o=!0:n>=A[i]&&(s=i-1,o=!0),!o){let h=1;for(;h<e&&!(A[h]>n||h===i);h++);s=h-1}const a=xs(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;Ds(s===t.length),Ds(!i||!Array.isArray(i)||i.length===s-1),A[0]>A[s-1]&&(A=[].concat(A),t=[].concat(t),A.reverse(),t.reverse());const o=hl(t,i,n),a=s===2?cl(A,o):gl(A,o);return e?h=>a(Ii(A[0],A[s-1],h)):a}const yA=A=>t=>1-A(1-t),wi=A=>t=>t<=.5?A(2*t)/2:(2-A(2*(1-t)))/2,ul=A=>t=>Math.pow(t,A),Vs=A=>t=>t*t*((A+1)*t-A),Il=A=>{const t=Vs(A);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))},qs=1.525,fl=4/11,Bl=8/11,dl=9/10,El=A=>A,vi=ul(2),Cl=yA(vi),Xs=wi(vi),Zs=A=>1-Math.sin(Math.acos(A)),zs=yA(Zs),Ql=wi(zs),Di=Vs(qs),pl=yA(Di),yl=wi(Di),ml=Il(qs),wl=4356/361,vl=35442/1805,Dl=16061/1805,mA=A=>{if(A===1||A===0)return A;const t=A*A;return A<fl?7.5625*t:A<Bl?9.075*t-9.9*A+3.4:A<dl?wl*t-vl*A+Dl:10.8*A*A-20.52*A+10.72},bl=yA(mA),Sl=A=>A<.5?.5*(1-mA(1-A*2)):.5*mA(A*2-1)+.5;function xl(A,t){return A.map(()=>t||Xs).splice(0,A.length-1)}function kl(A){const t=A.length;return A.map((e,i)=>i!==0?i/(t-1):0)}function Ml(A,t){return A.map(e=>e*t)}function wA({from:A=0,to:t=1,ease:e,offset:i,duration:n=300}){const s={done:!1,value:A},o=Array.isArray(t)?t:[A,t],a=Ml(i&&i.length===o.length?i:kl(o),n);function h(){return js(a,o,{ease:Array.isArray(e)?e:xl(o,e)})}let c=h();return{next:u=>(s.value=c(u),s.done=u>=n,s),flipTarget:()=>{o.reverse(),c=h()}}}function Rl({velocity:A=0,from:t=0,power:e=.8,timeConstant:i=350,restDelta:n=.5,modifyTarget:s}){const o={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 r=-a*Math.exp(-u/i);return o.done=!(r>n||r<-n),o.value=o.done?c:c+r,o},flipTarget:()=>{}}}const $s={keyframes:wA,spring:di,decay:Rl};function Fl(A){if(Array.isArray(A.to))return wA;if($s[A.type])return $s[A.type];const t=new Set(Object.keys(A));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?wA:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?di:wA}const tr=1/60*1e3,_l=typeof performance<"u"?()=>performance.now():()=>Date.now(),er=typeof window<"u"?A=>window.requestAnimationFrame(A):A=>setTimeout(()=>A(_l()),tr);function Nl(A){let t=[],e=[],i=0,n=!1,s=!1;const o=new WeakSet,a={schedule:(h,c=!1,u=!1)=>{const r=u&&n,l=r?t:e;return c&&o.add(h),l.indexOf(h)===-1&&(l.push(h),r&&n&&(i=t.length)),h},cancel:h=>{const c=e.indexOf(h);c!==-1&&e.splice(c,1),o.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),o.has(u)&&(a.schedule(u),A())}n=!1,s&&(s=!1,a.process(h))}};return a}const Gl=40;let bi=!0,Ve=!1,Si=!1;const qe={delta:0,timestamp:0},Xe=["read","update","preRender","render","postRender"],vA=Xe.reduce((A,t)=>(A[t]=Nl(()=>Ve=!0),A),{}),Hl=Xe.reduce((A,t)=>{const e=vA[t];return A[t]=(i,n=!1,s=!1)=>(Ve||Tl(),e.schedule(i,n,s)),A},{}),Ll=Xe.reduce((A,t)=>(A[t]=vA[t].cancel,A),{});Xe.reduce((A,t)=>(A[t]=()=>vA[t].process(qe),A),{});const Ul=A=>vA[A].process(qe),Ar=A=>{Ve=!1,qe.delta=bi?tr:Math.max(Math.min(A-qe.timestamp,Gl),1),qe.timestamp=A,Si=!0,Xe.forEach(Ul),Si=!1,Ve&&(bi=!1,er(Ar))},Tl=()=>{Ve=!0,bi=!0,Si||er(Ar)};function ir(A,t,e=0){return A-t-e}function Ol(A,t,e=0,i=!0){return i?ir(t+-A,t,e):t-(A-t)+e}function Pl(A,t,e,i){return i?A>=t+e:A<=-e}const Jl=A=>{const t=({delta:e})=>A(e);return{start:()=>Hl.update(t,!0),stop:()=>Ll.update(t)}};function nr(A){var t,e,{from:i,autoplay:n=!0,driver:s=Jl,elapsed:o=0,repeat:a=0,repeatType:h="loop",repeatDelay:c=0,onPlay:u,onStop:r,onComplete:l,onRepeat:g,onUpdate:f}=A,d=vs(A,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:C}=d,E,m=0,w=d.duration,b,M=!1,G=!0,O;const K=Fl(d);!((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({},d),{from:i,to:C}));function T(){m++,h==="reverse"?(G=m%2===0,o=Ol(o,w,c,G)):(o=ir(o,w,c),h==="mirror"&&H.flipTarget()),M=!1,g&&g()}function W(){E.stop(),l&&l()}function At(tt){if(G||(tt=-tt),o+=tt,!M){const ut=H.next(Math.max(0,o));b=ut.value,O&&(b=O(b)),M=G?ut.done:o<=0}f?.(b),M&&(m===0&&(w??(w=o)),m<a?Pl(o,w,c,G)&&T():W())}function ot(){u?.(),E=s(At),E.start()}return n&&ot(),{stop:()=>{r?.(),E.stop()}}}const Kl=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],o=Math.abs(s-i);if(o===0)return s;if(o>n)return A[t-1];if(t===e-1)return s;n=o}}}};function Yl(){return globalThis.__CANVAS_ENGINE_TICK__}function ye(A){return A.animatedState!==void 0}function xi(A,t={}){const e={current:A,start:A,end:A},i=20;let n=null,s=!1;const o=Y(A),a=Y(e);it(()=>{const u=a();o.set(u.current)});function h(u,r={}){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 f={...t,...r},d=f.duration??i,C=f.ease??(b=>b);f.tick||Yl();const E=l.current,m=u,w=r.onComplete??t.onComplete;n=nr({from:E,to:m,duration:d,ease:C,onUpdate:b=>{if(s)return;const M=b;a.update(G=>({...G,current:M})),f.onUpdate?.(M),r.onUpdate?.(M)},onComplete:()=>{a.update(b=>({...b,current:m})),w?.()}})}const c=function(){return a().current};for(const u in o)c[u]=o[u];return c.animatedState=a,c.update=u=>{h(u(a().current))},c.set=async(u,r={})=>new Promise(l=>{const g=r.onComplete;h(u,{...r,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 Wl(A){for(const t of A)Array.isArray(t)?await Promise.all(t.map(e=>e())):await t()}const ki={},ft=A=>A&&typeof A=="object"&&"tag"in A&&"props"in A&&"componentInstance"in A,Mi=A=>typeof A=="string"||typeof A=="number"||typeof A=="boolean"||A===null||A===void 0,jl={Sprite:"DOMSprite"},Vl=new Set(["DOMContainer","DOMElement","DOMSprite"]),ql=new Set(["Canvas","Container","Graphics","Rect","Circle","Ellipse","Triangle","Svg","Mesh","Scene","ParticlesEmitter","Sprite","Video","Text","TilingSprite","Viewport","NineSliceSprite","Button","Joystick","FocusContainer"]),Xl=A=>{let t=A;for(;t;){if(t.tag==="DOMContainer"||t.tag==="DOMElement")return!0;t=t.parent}return!1},Zl=A=>{A.propSubscriptions?.forEach(t=>t.unsubscribe()),A.effectSubscriptions?.forEach(t=>t.unsubscribe()),A.effectUnmounts?.forEach(t=>t?.())},me=(A,t)=>{if(!Xl(A)||Vl.has(t.tag))return t;const e=jl[t.tag];if(e){Zl(t);const i=t.propObservables??t.props;return rt(e,i)}if(ql.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){ki[A]=t}let sr=!1;function Ri(){sr||(sr=!0)}async function Ze(A){return(await Promise.all(A.map(async e=>_(e)?e():Xt(e)?await e:e))).every(e=>e!==void 0)}function rr(A){return new Promise(async t=>{if(await Ze(A)){t();return}const i=A.filter(o=>_(o));if(i.length===0)return;const n=i.map(o=>o.observable),s=fA(n).subscribe(async()=>{await Ze(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 Fi(A,t){if(!A.propObservables)return;const e=i=>{if(_(i)&&ye(i)){const n=i;t?n.pause():n.resume()}else BA(i)&&!ft(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 rt(A,t){if(!ki[A])throw new Error(`Component ${A} is not registered`);const e=new ki[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=(r,l="")=>{const g=(f,d,C)=>{if(f==""){i.props[d]=C;return}ni(i.props,f+"."+d,C)};Object.entries(r).forEach(([f,d])=>{if(_(d)){const C=d;if("dependencies"in C&&C.dependencies.size==0){g(l,f,C()),f==="freeze"&&(i.isFrozen=C()===!0);return}if(f==="freeze"){i.isFrozen=C()===!0,Fi(i,i.isFrozen),i.propSubscriptions.push(C.observable.subscribe(E=>{const m=i.isFrozen;i.isFrozen=E===!0,m!==i.isFrozen&&Fi(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,f,E),i.directives[f]&&i.directives[f].onUpdate?.(E,i),f=="tick")return St(i),void 0;e.onUpdate?.(l==""?{[f]:E}:ni({},l+"."+f,E))}))}else f==="freeze"&&(i.isFrozen=d===!0,Fi(i,i.isFrozen)),BA(d)&&f!="context"&&!ft(d)?u(d,(l?l+".":"")+f):g(l,f,d)})};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 r=ci(i,u);r&&(i.directives[u]=r)}function s(u,r,l,g){const f=l.filter(E=>_(E));if(l.filter(E=>Xt(E)),f.length===0)return;const d=f.map(E=>E.observable),C=fA(d).subscribe(async()=>{if(await Ze(l)){C.unsubscribe();const m=r.propSubscriptions.indexOf(C);m>-1&&r.propSubscriptions.splice(m,1),o(u,r,g),h(r)}});r.propSubscriptions.push(C)}function o(u,r,l){r.componentInstance.onMount?.(r,l);for(let g in r.directives)r.directives[g].onMount?.(r);r.effectMounts.forEach(g=>{r.effectUnmounts.push(g(r))})}async function a(u,r,l){let g=u;for(;g?.tag==="fragment";)g=g.parent;if(r.props.context=g.props.context,r.parent=g,!r.propObservables?.freeze&&!r.props?.freeze&&St(g)&&(r.isFrozen=!0),r.props.dependencies&&Array.isArray(r.props.dependencies)){const f=r.props.dependencies;if(!await Ze(f)){s(g,r,f,l);return}}o(g,r,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 f=>{const d=f?.value??f;if(!d)throw new Error(`attach in ${u.tag} is undefined or null, add a component`);g&&ht(g),g=d,await c(u,d),l(void 0)}))}):u.props.children.push(u.props.attach)),!!u.props.children)for(let r of u.props.children)r&&await c(u,r)}async function c(u,r){if(Xt(r)&&(r=await r),r instanceof Z){const l=r.subscribe(g=>{if(g&&typeof g=="object"&&"elements"in g){const{elements:f,prev:d}=g,C=f.filter(E=>E!==null);if(d){C.forEach(async E=>{const m=u.props.children.indexOf(d.props.key);if(E instanceof Z)await c(u,E);else if(ft(E)){const w=me(u,E);a(u,w,m+1),h(w)}});return}C.forEach(async E=>{if(Array.isArray(E))E.forEach(async m=>{if(m instanceof Z)await c(u,m);else if(ft(m)){const w=me(u,m);a(u,w),h(w)}});else if(E instanceof Z)await c(u,E);else if(ft(E)){const m=me(u,E);a(u,m),h(m)}})}else if(ft(g)){const f=me(u,g);a(u,f),h(f)}else Array.isArray(g)&&g.forEach(async f=>{if(f instanceof Z)await c(u,f);else if(ft(f)){const d=me(u,f);a(u,d),h(d)}});n.next(void 0)});u.effectSubscriptions.push(l)}else if(ft(r)){const l=me(u,r);a(u,l),await h(l)}}return i}function zl(A,t){return pe(A)&&A.dependencies.size==0?A=Y(A()):_(A)||(A=Y(A)),pa(()=>{let e=[],i=new Map,n=!0;const s=a=>a?ft(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,o=a=>Array.isArray(a());return new Z(a=>{const h=o(A)?A.observable.subscribe(c=>{if(n){n=!1,e.forEach(l=>l.destroy()),e=[],i.clear();const r=A();r&&r.forEach((l,g)=>{const f=s(t(l,g));f&&(e.push(f),i.set(g,f))}),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 r=A();r&&r.forEach((l,g)=>{const f=s(t(l,g));f&&(e.push(f),i.set(g,f))})}else if(c.type==="add"&&c.index!==void 0){const r=c.items.map((l,g)=>{const f=s(t(l,c.index+g));return f&&i.set(c.index+g,f),f}).filter(l=>l!==null);e.splice(c.index,0,...r)}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 r=c.index,l=c.items[0];if(r>=e.length||e[r]===void 0||!i.has(r)){const g=s(t(l,r));g?(e.splice(r,0,g),i.set(r,g)):console.warn(`Element creation returned null for index ${r} during add-like update.`)}else{const g=e[r];ht(g);const f=s(t(l,r));f?(e[r]=f,i.set(r,f)):(e.splice(r,1),i.delete(r))}}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 r=A();r&&Object.entries(r).forEach(([l,g])=>{const f=s(t(g,l));f&&(e.push(f),i.set(l,f))}),a.next({elements:[...e]});return}if(c.type==="init"||c.type==="reset"){e.forEach(l=>ht(l)),e=[],i.clear();const r=A();r&&Object.entries(r).forEach(([l,g])=>{const f=s(t(g,l));f&&(e.push(f),i.set(l,f))})}else if(c.type==="add"&&c.key&&c.value!==void 0){const r=s(t(c.value,u));r&&(e.push(r),i.set(u,r))}else if(c.type==="remove"&&c.key){const r=e.findIndex(l=>i.get(u)===l);if(r!==-1){const[l]=e.splice(r,1);ht(l),i.delete(u)}}else if(c.type==="update"&&c.key&&c.value!==void 0){const r=e.findIndex(l=>i.get(u)===l);if(r!==-1){const l=e[r];ht(l);const g=s(t(c.value,u));g&&(e[r]=g,i.set(u,g))}}a.next({elements:[...e]})});return()=>{h.unsubscribe(),e.forEach(c=>ht(c))}})}).pipe(ma({bufferSize:1,refCount:!0}))}function $l(A,t,...e){let i=null,n=-1;const s=[];let o=null;const a=c=>_(c)?c:typeof c=="function"?Et(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"){o=c;break}const h=[{condition:a(A),elementFn:t},...s];return new Z(c=>{const u=[],r=()=>{let l=-1;for(let d=0;d<h.length;d++){const C=h[d].condition;if(C()){l=d;break}}const g=l===-1&&o,f=g?-2:l;if(f!==n)if(i&&(ht(i),i=null),n=f,g){let d=o();Xt(d)?IA(d).subscribe(C=>{i=C,c.next({type:"init",elements:[C]})}):(i=d,c.next({type:"init",elements:[i]}))}else if(l>=0){let d=h[l].elementFn();Xt(d)?IA(d).subscribe(C=>{i=C,c.next({type:"init",elements:[C]})}):(i=d,c.next({type:"init",elements:[i]}))}else c.next({elements:[]})};return h.forEach(({condition:l})=>{const g=l;u.push(g.observable.subscribe(()=>{r()}))}),r(),()=>{u.forEach(l=>l.unsubscribe()),i&&ht(i)}}).pipe(gs())}class or extends Dt{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 Cs,this.keyboardControls.setInputs(e),this.keyboardControls.start();const i=e.gamepad;i!==void 0&&i.enabled!==!1&&(this.gamepadControls=new ys,this.gamepadControls.setInputs(e),this.gamepadControls.start());const n=e.joystick;n!==void 0&&n.enabled!==!1&&(this.joystickControls=new ms,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(o=>{o?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}}bt("controls",or);class ar extends Dt{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 o=a=>{if(this._stop)return;e(o),n=Ot();const h=n-s;h>i&&(s=n-h%i,this.nextTick(a))};e(o)}else{const i=n=>{e(i),this.nextTick(n)};e(i)}return this}stop(){this._stop=!0}}bt("tick",ar);const Ct=(A,t={})=>{if(_(A))return A();const e={};for(let i in A){const n=A[i];e[i]=Mi(n)?Y(n):n}for(let i in t)i in e||(e[i]=Mi(t[i])?Y(t[i]):t[i]);return e},_i=A=>t=>{const e=_(A)?A():A,i={};for(const n in t){const s=t[n],o=e[n];let a;if(typeof s=="function")Ni(n,o,[s]),a=o;else if(Array.isArray(s))Ni(n,o,s),a=o;else if(s&&typeof s=="object"){if(s.required&&o===void 0)throw new Error(`Missing required prop: ${n}`);if(s.type){const h=Array.isArray(s.type)?s.type:[s.type];Ni(n,o,h)}if(s.validator&&!s.validator(o,e))throw new Error(`Invalid prop: custom validation failed for prop "${n}"`);o===void 0&&"default"in s?a=typeof s.default=="function"?s.default(e):s.default:a=o}i[n]=_(a)?a:Y(a)}return{...Ct(e),...i}};function Ni(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 lr extends Dt{onInit(t){}onMount(t){this.onUpdate(t.props.viewportFollow,t)}onUpdate(t,e){const i=e.props.context?.viewport;if(!i){if(t)throw si("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=Ct(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")}}bt("viewportFollow",lr);var ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function th(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var Gi={};var hr;function eh(){return hr||(hr=1,(function(A){(function(){var t=function(){this.init()};t.prototype={init:function(){var r=this||e;return r._counter=1e3,r._html5AudioPool=[],r.html5PoolSize=10,r._codecs={},r._howls=[],r._muted=!1,r._volume=1,r._canPlayEvent="canplaythrough",r._navigator=typeof window<"u"&&window.navigator?window.navigator:null,r.masterGain=null,r.noAudio=!1,r.usingWebAudio=!0,r.autoSuspend=!0,r.ctx=null,r.autoUnlock=!0,r._setup(),r},volume:function(r){var l=this||e;if(r=parseFloat(r),l.ctx||u(),typeof r<"u"&&r>=0&&r<=1){if(l._volume=r,l._muted)return l;l.usingWebAudio&&l.masterGain.gain.setValueAtTime(r,e.ctx.currentTime);for(var g=0;g<l._howls.length;g++)if(!l._howls[g]._webAudio)for(var f=l._howls[g]._getSoundIds(),d=0;d<f.length;d++){var C=l._howls[g]._soundById(f[d]);C&&C._node&&(C._node.volume=C._volume*r)}return l}return l._volume},mute:function(r){var l=this||e;l.ctx||u(),l._muted=r,l.usingWebAudio&&l.masterGain.gain.setValueAtTime(r?0:l._volume,e.ctx.currentTime);for(var g=0;g<l._howls.length;g++)if(!l._howls[g]._webAudio)for(var f=l._howls[g]._getSoundIds(),d=0;d<f.length;d++){var C=l._howls[g]._soundById(f[d]);C&&C._node&&(C._node.muted=r?!0:C._muted)}return l},stop:function(){for(var r=this||e,l=0;l<r._howls.length;l++)r._howls[l].stop();return r},unload:function(){for(var r=this||e,l=r._howls.length-1;l>=0;l--)r._howls[l].unload();return r.usingWebAudio&&r.ctx&&typeof r.ctx.close<"u"&&(r.ctx.close(),r.ctx=null,u()),r},codecs:function(r){return(this||e)._codecs[r.replace(/^x-/,"")]},_setup:function(){var r=this||e;if(r.state=r.ctx&&r.ctx.state||"suspended",r._autoSuspend(),!r.usingWebAudio)if(typeof Audio<"u")try{var l=new Audio;typeof l.oncanplaythrough>"u"&&(r._canPlayEvent="canplay")}catch{r.noAudio=!0}else r.noAudio=!0;try{var l=new Audio;l.muted&&(r.noAudio=!0)}catch{}return r.noAudio||r._setupCodecs(),r},_setupCodecs:function(){var r=this||e,l=null;try{l=typeof Audio<"u"?new Audio:null}catch{return r}if(!l||typeof l.canPlayType!="function")return r;var g=l.canPlayType("audio/mpeg;").replace(/^no$/,""),f=r._navigator?r._navigator.userAgent:"",d=f.match(/OPR\/(\d+)/g),C=d&&parseInt(d[0].split("/")[1],10)<33,E=f.indexOf("Safari")!==-1&&f.indexOf("Chrome")===-1,m=f.match(/Version\/(.*?) /),w=E&&m&&parseInt(m[1],10)<15;return r._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$/,"")},r},_unlockAudio:function(){var r=this||e;if(!(r._audioUnlocked||!r.ctx)){r._audioUnlocked=!1,r.autoUnlock=!1,!r._mobileUnloaded&&r.ctx.sampleRate!==44100&&(r._mobileUnloaded=!0,r.unload()),r._scratchBuffer=r.ctx.createBuffer(1,1,22050);var l=function(g){for(;r._html5AudioPool.length<r.html5PoolSize;)try{var f=new Audio;f._unlocked=!0,r._releaseHtml5Audio(f)}catch{r.noAudio=!0;break}for(var d=0;d<r._howls.length;d++)if(!r._howls[d]._webAudio)for(var C=r._howls[d]._getSoundIds(),E=0;E<C.length;E++){var m=r._howls[d]._soundById(C[E]);m&&m._node&&!m._node._unlocked&&(m._node._unlocked=!0,m._node.load())}r._autoResume();var w=r.ctx.createBufferSource();w.buffer=r._scratchBuffer,w.connect(r.ctx.destination),typeof w.start>"u"?w.noteOn(0):w.start(0),typeof r.ctx.resume=="function"&&r.ctx.resume(),w.onended=function(){w.disconnect(0),r._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<r._howls.length;b++)r._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),r}},_obtainHtml5Audio:function(){var r=this||e;if(r._html5AudioPool.length)return r._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(r){var l=this||e;return r._unlocked&&l._html5AudioPool.push(r),l},_autoSuspend:function(){var r=this;if(!(!r.autoSuspend||!r.ctx||typeof r.ctx.suspend>"u"||!e.usingWebAudio)){for(var l=0;l<r._howls.length;l++)if(r._howls[l]._webAudio){for(var g=0;g<r._howls[l]._sounds.length;g++)if(!r._howls[l]._sounds[g]._paused)return r}return r._suspendTimer&&clearTimeout(r._suspendTimer),r._suspendTimer=setTimeout(function(){if(r.autoSuspend){r._suspendTimer=null,r.state="suspending";var f=function(){r.state="suspended",r._resumeAfterSuspend&&(delete r._resumeAfterSuspend,r._autoResume())};r.ctx.suspend().then(f,f)}},3e4),r}},_autoResume:function(){var r=this;if(!(!r.ctx||typeof r.ctx.resume>"u"||!e.usingWebAudio))return r.state==="running"&&r.ctx.state!=="interrupted"&&r._suspendTimer?(clearTimeout(r._suspendTimer),r._suspendTimer=null):r.state==="suspended"||r.state==="running"&&r.ctx.state==="interrupted"?(r.ctx.resume().then(function(){r.state="running";for(var l=0;l<r._howls.length;l++)r._howls[l]._emit("resume")}),r._suspendTimer&&(clearTimeout(r._suspendTimer),r._suspendTimer=null)):r.state==="suspending"&&(r._resumeAfterSuspend=!0),r}};var e=new t,i=function(r){var l=this;if(!r.src||r.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}l.init(r)};i.prototype={init:function(r){var l=this;return e.ctx||u(),l._autoplay=r.autoplay||!1,l._format=typeof r.format!="string"?r.format:[r.format],l._html5=r.html5||!1,l._muted=r.mute||!1,l._loop=r.loop||!1,l._pool=r.pool||5,l._preload=typeof r.preload=="boolean"||r.preload==="metadata"?r.preload:!0,l._rate=r.rate||1,l._sprite=r.sprite||{},l._src=typeof r.src!="string"?r.src:[r.src],l._volume=r.volume!==void 0?r.volume:1,l._xhr={method:r.xhr&&r.xhr.method?r.xhr.method:"GET",headers:r.xhr&&r.xhr.headers?r.xhr.headers:null,withCredentials:r.xhr&&r.xhr.withCredentials?r.xhr.withCredentials:!1},l._duration=0,l._state="unloaded",l._sounds=[],l._endTimers={},l._queue=[],l._playLock=!1,l._onend=r.onend?[{fn:r.onend}]:[],l._onfade=r.onfade?[{fn:r.onfade}]:[],l._onload=r.onload?[{fn:r.onload}]:[],l._onloaderror=r.onloaderror?[{fn:r.onloaderror}]:[],l._onplayerror=r.onplayerror?[{fn:r.onplayerror}]:[],l._onpause=r.onpause?[{fn:r.onpause}]:[],l._onplay=r.onplay?[{fn:r.onplay}]:[],l._onstop=r.onstop?[{fn:r.onstop}]:[],l._onmute=r.onmute?[{fn:r.onmute}]:[],l._onvolume=r.onvolume?[{fn:r.onvolume}]:[],l._onrate=r.onrate?[{fn:r.onrate}]:[],l._onseek=r.onseek?[{fn:r.onseek}]:[],l._onunlock=r.onunlock?[{fn:r.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 r=this,l=null;if(e.noAudio){r._emit("loaderror",null,"No audio support.");return}typeof r._src=="string"&&(r._src=[r._src]);for(var g=0;g<r._src.length;g++){var f,d;if(r._format&&r._format[g])f=r._format[g];else{if(d=r._src[g],typeof d!="string"){r._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}f=/^data:audio\/([^;,]+);/i.exec(d),f||(f=/\.([^.]+)$/.exec(d.split("?",1)[0])),f&&(f=f[1].toLowerCase())}if(f||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),f&&e.codecs(f)){l=r._src[g];break}}if(!l){r._emit("loaderror",null,"No codec support for selected audio sources.");return}return r._src=l,r._state="loading",window.location.protocol==="https:"&&l.slice(0,5)==="http:"&&(r._html5=!0,r._webAudio=!1),new n(r),r._webAudio&&o(r),r},play:function(r,l){var g=this,f=null;if(typeof r=="number")f=r,r=null;else{if(typeof r=="string"&&g._state==="loaded"&&!g._sprite[r])return null;if(typeof r>"u"&&(r="__default",!g._playLock)){for(var d=0,C=0;C<g._sounds.length;C++)g._sounds[C]._paused&&!g._sounds[C]._ended&&(d++,f=g._sounds[C]._id);d===1?r=null:f=null}}var E=f?g._soundById(f):g._inactiveSound();if(!E)return null;if(f&&!r&&(r=E._sprite||"__default"),g._state!=="loaded"){E._sprite=r,E._ended=!1;var m=E._id;return g._queue.push({event:"play",action:function(){g.play(m)}}),m}if(f&&!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[r][0]/1e3),b=Math.max(0,(g._sprite[r][0]+g._sprite[r][1])/1e3-w),M=b*1e3/Math.abs(E._rate),G=g._sprite[r][0]/1e3,O=(g._sprite[r][0]+g._sprite[r][1])/1e3;E._sprite=r,E._ended=!1;var K=function(){E._paused=!1,E._seek=w,E._start=G,E._stop=O,E._loop=!!(E._loop||g._sprite[r][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}r!=="__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 ot=function(){g._state="loaded",W(),H.removeEventListener(e._canPlayEvent,ot,!1)};H.addEventListener(e._canPlayEvent,ot,!1),g._clearTimer(E._id)}}return E._id},pause:function(r){var l=this;if(l._state!=="loaded"||l._playLock)return l._queue.push({event:"pause",action:function(){l.pause(r)}}),l;for(var g=l._getSoundIds(r),f=0;f<g.length;f++){l._clearTimer(g[f]);var d=l._soundById(g[f]);if(d&&!d._paused&&(d._seek=l.seek(g[f]),d._rateSeek=0,d._paused=!0,l._stopFade(g[f]),d._node))if(l._webAudio){if(!d._node.bufferSource)continue;typeof d._node.bufferSource.stop>"u"?d._node.bufferSource.noteOff(0):d._node.bufferSource.stop(0),l._cleanBuffer(d._node)}else(!isNaN(d._node.duration)||d._node.duration===1/0)&&d._node.pause();arguments[1]||l._emit("pause",d?d._id:null)}return l},stop:function(r,l){var g=this;if(g._state!=="loaded"||g._playLock)return g._queue.push({event:"stop",action:function(){g.stop(r)}}),g;for(var f=g._getSoundIds(r),d=0;d<f.length;d++){g._clearTimer(f[d]);var C=g._soundById(f[d]);C&&(C._seek=C._start||0,C._rateSeek=0,C._paused=!0,C._ended=!0,g._stopFade(f[d]),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(r,l){var g=this;if(g._state!=="loaded"||g._playLock)return g._queue.push({event:"mute",action:function(){g.mute(r,l)}}),g;if(typeof l>"u")if(typeof r=="boolean")g._muted=r;else return g._muted;for(var f=g._getSoundIds(l),d=0;d<f.length;d++){var C=g._soundById(f[d]);C&&(C._muted=r,C._interval&&g._stopFade(C._id),g._webAudio&&C._node?C._node.gain.setValueAtTime(r?0:C._volume,e.ctx.currentTime):C._node&&(C._node.muted=e._muted?!0:r),g._emit("mute",C._id))}return g},volume:function(){var r=this,l=arguments,g,f;if(l.length===0)return r._volume;if(l.length===1||l.length===2&&typeof l[1]>"u"){var d=r._getSoundIds(),C=d.indexOf(l[0]);C>=0?f=parseInt(l[0],10):g=parseFloat(l[0])}else l.length>=2&&(g=parseFloat(l[0]),f=parseInt(l[1],10));var E;if(typeof g<"u"&&g>=0&&g<=1){if(r._state!=="loaded"||r._playLock)return r._queue.push({event:"volume",action:function(){r.volume.apply(r,l)}}),r;typeof f>"u"&&(r._volume=g),f=r._getSoundIds(f);for(var m=0;m<f.length;m++)E=r._soundById(f[m]),E&&(E._volume=g,l[2]||r._stopFade(f[m]),r._webAudio&&E._node&&!E._muted?E._node.gain.setValueAtTime(g,e.ctx.currentTime):E._node&&!E._muted&&(E._node.volume=g*e.volume()),r._emit("volume",E._id))}else return E=f?r._soundById(f):r._sounds[0],E?E._volume:0;return r},fade:function(r,l,g,f){var d=this;if(d._state!=="loaded"||d._playLock)return d._queue.push({event:"fade",action:function(){d.fade(r,l,g,f)}}),d;r=Math.min(Math.max(0,parseFloat(r)),1),l=Math.min(Math.max(0,parseFloat(l)),1),g=parseFloat(g),d.volume(r,f);for(var C=d._getSoundIds(f),E=0;E<C.length;E++){var m=d._soundById(C[E]);if(m){if(f||d._stopFade(C[E]),d._webAudio&&!m._muted){var w=e.ctx.currentTime,b=w+g/1e3;m._volume=r,m._node.gain.setValueAtTime(r,w),m._node.gain.linearRampToValueAtTime(l,b)}d._startFadeInterval(m,r,l,g,C[E],typeof f>"u")}}return d},_startFadeInterval:function(r,l,g,f,d,C){var E=this,m=l,w=g-l,b=Math.abs(w/.01),M=Math.max(4,b>0?f/b:f),G=Date.now();r._fadeTo=g,r._interval=setInterval(function(){var O=(Date.now()-G)/f;G=Date.now(),m+=w*O,m=Math.round(m*100)/100,w<0?m=Math.max(g,m):m=Math.min(g,m),E._webAudio?r._volume=m:E.volume(m,r._id,!0),C&&(E._volume=m),(g<l&&m<=g||g>l&&m>=g)&&(clearInterval(r._interval),r._interval=null,r._fadeTo=null,E.volume(g,r._id),E._emit("fade",r._id))},M)},_stopFade:function(r){var l=this,g=l._soundById(r);return g&&g._interval&&(l._webAudio&&g._node.gain.cancelScheduledValues(e.ctx.currentTime),clearInterval(g._interval),g._interval=null,l.volume(g._fadeTo,r),g._fadeTo=null,l._emit("fade",r)),l},loop:function(){var r=this,l=arguments,g,f,d;if(l.length===0)return r._loop;if(l.length===1)if(typeof l[0]=="boolean")g=l[0],r._loop=g;else return d=r._soundById(parseInt(l[0],10)),d?d._loop:!1;else l.length===2&&(g=l[0],f=parseInt(l[1],10));for(var C=r._getSoundIds(f),E=0;E<C.length;E++)d=r._soundById(C[E]),d&&(d._loop=g,r._webAudio&&d._node&&d._node.bufferSource&&(d._node.bufferSource.loop=g,g&&(d._node.bufferSource.loopStart=d._start||0,d._node.bufferSource.loopEnd=d._stop,r.playing(C[E])&&(r.pause(C[E],!0),r.play(C[E],!0)))));return r},rate:function(){var r=this,l=arguments,g,f;if(l.length===0)f=r._sounds[0]._id;else if(l.length===1){var d=r._getSoundIds(),C=d.indexOf(l[0]);C>=0?f=parseInt(l[0],10):g=parseFloat(l[0])}else l.length===2&&(g=parseFloat(l[0]),f=parseInt(l[1],10));var E;if(typeof g=="number"){if(r._state!=="loaded"||r._playLock)return r._queue.push({event:"rate",action:function(){r.rate.apply(r,l)}}),r;typeof f>"u"&&(r._rate=g),f=r._getSoundIds(f);for(var m=0;m<f.length;m++)if(E=r._soundById(f[m]),E){r.playing(f[m])&&(E._rateSeek=r.seek(f[m]),E._playStart=r._webAudio?e.ctx.currentTime:E._playStart),E._rate=g,r._webAudio&&E._node&&E._node.bufferSource?E._node.bufferSource.playbackRate.setValueAtTime(g,e.ctx.currentTime):E._node&&(E._node.playbackRate=g);var w=r.seek(f[m]),b=(r._sprite[E._sprite][0]+r._sprite[E._sprite][1])/1e3-w,M=b*1e3/Math.abs(E._rate);(r._endTimers[f[m]]||!E._paused)&&(r._clearTimer(f[m]),r._endTimers[f[m]]=setTimeout(r._ended.bind(r,E),M)),r._emit("rate",E._id)}}else return E=r._soundById(f),E?E._rate:r._rate;return r},seek:function(){var r=this,l=arguments,g,f;if(l.length===0)r._sounds.length&&(f=r._sounds[0]._id);else if(l.length===1){var d=r._getSoundIds(),C=d.indexOf(l[0]);C>=0?f=parseInt(l[0],10):r._sounds.length&&(f=r._sounds[0]._id,g=parseFloat(l[0]))}else l.length===2&&(g=parseFloat(l[0]),f=parseInt(l[1],10));if(typeof f>"u")return 0;if(typeof g=="number"&&(r._state!=="loaded"||r._playLock))return r._queue.push({event:"seek",action:function(){r.seek.apply(r,l)}}),r;var E=r._soundById(f);if(E)if(typeof g=="number"&&g>=0){var m=r.playing(f);m&&r.pause(f,!0),E._seek=g,E._ended=!1,r._clearTimer(f),!r._webAudio&&E._node&&!isNaN(E._node.duration)&&(E._node.currentTime=g);var w=function(){m&&r.play(f,!0),r._emit("seek",f)};if(m&&!r._webAudio){var b=function(){r._playLock?setTimeout(b,0):w()};setTimeout(b,0)}else w()}else if(r._webAudio){var M=r.playing(f)?e.ctx.currentTime-E._playStart:0,G=E._rateSeek?E._rateSeek-E._seek:0;return E._seek+(G+M*Math.abs(E._rate))}else return E._node.currentTime;return r},playing:function(r){var l=this;if(typeof r=="number"){var g=l._soundById(r);return g?!g._paused:!1}for(var f=0;f<l._sounds.length;f++)if(!l._sounds[f]._paused)return!0;return!1},duration:function(r){var l=this,g=l._duration,f=l._soundById(r);return f&&(g=l._sprite[f._sprite][1]/1e3),g},state:function(){return this._state},unload:function(){for(var r=this,l=r._sounds,g=0;g<l.length;g++)l[g]._paused||r.stop(l[g]._id),r._webAudio||(r._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,r._clearTimer(l[g]._id);var f=e._howls.indexOf(r);f>=0&&e._howls.splice(f,1);var d=!0;for(g=0;g<e._howls.length;g++)if(e._howls[g]._src===r._src||r._src.indexOf(e._howls[g]._src)>=0){d=!1;break}return s&&d&&delete s[r._src],e.noAudio=!1,r._state="unloaded",r._sounds=[],r=null,null},on:function(r,l,g,f){var d=this,C=d["_on"+r];return typeof l=="function"&&C.push(f?{id:g,fn:l,once:f}:{id:g,fn:l}),d},off:function(r,l,g){var f=this,d=f["_on"+r],C=0;if(typeof l=="number"&&(g=l,l=null),l||g)for(C=0;C<d.length;C++){var E=g===d[C].id;if(l===d[C].fn&&E||!l&&E){d.splice(C,1);break}}else if(r)f["_on"+r]=[];else{var m=Object.keys(f);for(C=0;C<m.length;C++)m[C].indexOf("_on")===0&&Array.isArray(f[m[C]])&&(f[m[C]]=[])}return f},once:function(r,l,g){var f=this;return f.on(r,l,g,1),f},_emit:function(r,l,g){for(var f=this,d=f["_on"+r],C=d.length-1;C>=0;C--)(!d[C].id||d[C].id===l||r==="load")&&(setTimeout((function(E){E.call(this,l,g)}).bind(f,d[C].fn),0),d[C].once&&f.off(r,d[C].fn,d[C].id));return f._loadQueue(r),f},_loadQueue:function(r){var l=this;if(l._queue.length>0){var g=l._queue[0];g.event===r&&(l._queue.shift(),l._loadQueue()),r||g.action()}return l},_ended:function(r){var l=this,g=r._sprite;if(!l._webAudio&&r._node&&!r._node.paused&&!r._node.ended&&r._node.currentTime<r._stop)return setTimeout(l._ended.bind(l,r),100),l;var f=!!(r._loop||l._sprite[g][2]);if(l._emit("end",r._id),!l._webAudio&&f&&l.stop(r._id,!0).play(r._id),l._webAudio&&f){l._emit("play",r._id),r._seek=r._start||0,r._rateSeek=0,r._playStart=e.ctx.currentTime;var d=(r._stop-r._start)*1e3/Math.abs(r._rate);l._endTimers[r._id]=setTimeout(l._ended.bind(l,r),d)}return l._webAudio&&!f&&(r._paused=!0,r._ended=!0,r._seek=r._start||0,r._rateSeek=0,l._clearTimer(r._id),l._cleanBuffer(r._node),e._autoSuspend()),!l._webAudio&&!f&&l.stop(r._id,!0),l},_clearTimer:function(r){var l=this;if(l._endTimers[r]){if(typeof l._endTimers[r]!="function")clearTimeout(l._endTimers[r]);else{var g=l._soundById(r);g&&g._node&&g._node.removeEventListener("ended",l._endTimers[r],!1)}delete l._endTimers[r]}return l},_soundById:function(r){for(var l=this,g=0;g<l._sounds.length;g++)if(r===l._sounds[g]._id)return l._sounds[g];return null},_inactiveSound:function(){var r=this;r._drain();for(var l=0;l<r._sounds.length;l++)if(r._sounds[l]._ended)return r._sounds[l].reset();return new n(r)},_drain:function(){var r=this,l=r._pool,g=0,f=0;if(!(r._sounds.length<l)){for(f=0;f<r._sounds.length;f++)r._sounds[f]._ended&&g++;for(f=r._sounds.length-1;f>=0;f--){if(g<=l)return;r._sounds[f]._ended&&(r._webAudio&&r._sounds[f]._node&&r._sounds[f]._node.disconnect(0),r._sounds.splice(f,1),g--)}}},_getSoundIds:function(r){var l=this;if(typeof r>"u"){for(var g=[],f=0;f<l._sounds.length;f++)g.push(l._sounds[f]._id);return g}else return[r]},_refreshBuffer:function(r){var l=this;return r._node.bufferSource=e.ctx.createBufferSource(),r._node.bufferSource.buffer=s[l._src],r._panner?r._node.bufferSource.connect(r._panner):r._node.bufferSource.connect(r._node),r._node.bufferSource.loop=r._loop,r._loop&&(r._node.bufferSource.loopStart=r._start||0,r._node.bufferSource.loopEnd=r._stop||0),r._node.bufferSource.playbackRate.setValueAtTime(r._rate,e.ctx.currentTime),l},_cleanBuffer:function(r){var l=this,g=e._navigator&&e._navigator.vendor.indexOf("Apple")>=0;if(!r.bufferSource)return l;if(e._scratchBuffer&&r.bufferSource&&(r.bufferSource.onended=null,r.bufferSource.disconnect(0),g))try{r.bufferSource.buffer=e._scratchBuffer}catch{}return r.bufferSource=null,l},_clearSound:function(r){var l=/MSIE |Trident\//.test(e._navigator&&e._navigator.userAgent);l||(r.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var n=function(r){this._parent=r,this.init()};n.prototype={init:function(){var r=this,l=r._parent;return r._muted=l._muted,r._loop=l._loop,r._volume=l._volume,r._rate=l._rate,r._seek=0,r._paused=!0,r._ended=!0,r._sprite="__default",r._id=++e._counter,l._sounds.push(r),r.create(),r},create:function(){var r=this,l=r._parent,g=e._muted||r._muted||r._parent._muted?0:r._volume;return l._webAudio?(r._node=typeof e.ctx.createGain>"u"?e.ctx.createGainNode():e.ctx.createGain(),r._node.gain.setValueAtTime(g,e.ctx.currentTime),r._node.paused=!0,r._node.connect(e.masterGain)):e.noAudio||(r._node=e._obtainHtml5Audio(),r._errorFn=r._errorListener.bind(r),r._node.addEventListener("error",r._errorFn,!1),r._loadFn=r._loadListener.bind(r),r._node.addEventListener(e._canPlayEvent,r._loadFn,!1),r._endFn=r._endListener.bind(r),r._node.addEventListener("ended",r._endFn,!1),r._node.src=l._src,r._node.preload=l._preload===!0?"auto":l._preload,r._node.volume=g*e.volume(),r._node.load()),r},reset:function(){var r=this,l=r._parent;return r._muted=l._muted,r._loop=l._loop,r._volume=l._volume,r._rate=l._rate,r._seek=0,r._rateSeek=0,r._paused=!0,r._ended=!0,r._sprite="__default",r._id=++e._counter,r},_errorListener:function(){var r=this;r._parent._emit("loaderror",r._id,r._node.error?r._node.error.code:0),r._node.removeEventListener("error",r._errorFn,!1)},_loadListener:function(){var r=this,l=r._parent;l._duration=Math.ceil(r._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()),r._node.removeEventListener(e._canPlayEvent,r._loadFn,!1)},_endListener:function(){var r=this,l=r._parent;l._duration===1/0&&(l._duration=Math.ceil(r._node.duration*10)/10,l._sprite.__default[1]===1/0&&(l._sprite.__default[1]=l._duration*1e3),l._ended(r)),r._node.removeEventListener("ended",r._endFn,!1)}};var s={},o=function(r){var l=r._src;if(s[l]){r._duration=s[l].duration,c(r);return}if(/^data:[^;]+;base64,/.test(l)){for(var g=atob(l.split(",")[1]),f=new Uint8Array(g.length),d=0;d<g.length;++d)f[d]=g.charCodeAt(d);h(f.buffer,r)}else{var C=new XMLHttpRequest;C.open(r._xhr.method,l,!0),C.withCredentials=r._xhr.withCredentials,C.responseType="arraybuffer",r._xhr.headers&&Object.keys(r._xhr.headers).forEach(function(E){C.setRequestHeader(E,r._xhr.headers[E])}),C.onload=function(){var E=(C.status+"")[0];if(E!=="0"&&E!=="2"&&E!=="3"){r._emit("loaderror",null,"Failed loading audio file with status: "+C.status+".");return}h(C.response,r)},C.onerror=function(){r._webAudio&&(r._html5=!0,r._webAudio=!1,r._sounds=[],delete s[l],r.load())},a(C)}},a=function(r){try{r.send()}catch{r.onerror()}},h=function(r,l){var g=function(){l._emit("loaderror",null,"Decoding audio data failed.")},f=function(d){d&&l._sounds.length>0?(s[l._src]=d,c(l,d)):g()};typeof Promise<"u"&&e.ctx.decodeAudioData.length===1?e.ctx.decodeAudioData(r).then(f).catch(g):e.ctx.decodeAudioData(r,f,g)},c=function(r,l){l&&!r._duration&&(r._duration=l.duration),Object.keys(r._sprite).length===0&&(r._sprite={__default:[0,r._duration*1e3]}),r._state!=="loaded"&&(r._state="loaded",r._emit("load"),r._loadQueue())},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 r=/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(r&&g&&g<9){var f=/safari/.test(e._navigator&&e._navigator.userAgent.toLowerCase());e._navigator&&!f&&(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,o,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,o=typeof o!="number"?c[4]:o,a=typeof a!="number"?c[5]:a,typeof e=="number")h._orientation=[e,i,n,s,o,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(o,Howler.ctx.currentTime,.1),h.ctx.listener.upZ.setTargetAtTime(a,Howler.ctx.currentTime,.1)):h.ctx.listener.setOrientation(e,i,n,s,o,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 o=n._getSoundIds(i),a=0;a<o.length;a++){var h=n._soundById(o[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 o=this;if(!o._webAudio)return o;if(o._state!=="loaded")return o._queue.push({event:"pos",action:function(){o.pos(e,i,n,s)}}),o;if(i=typeof i!="number"?0:i,n=typeof n!="number"?-.5:n,typeof s>"u")if(typeof e=="number")o._pos=[e,i,n];else return o._pos;for(var a=o._getSoundIds(s),h=0;h<a.length;h++){var c=o._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)),o._emit("pos",c._id);else return c._pos}return o},Howl.prototype.orientation=function(e,i,n,s){var o=this;if(!o._webAudio)return o;if(o._state!=="loaded")return o._queue.push({event:"orientation",action:function(){o.orientation(e,i,n,s)}}),o;if(i=typeof i!="number"?o._orientation[1]:i,n=typeof n!="number"?o._orientation[2]:n,typeof s>"u")if(typeof e=="number")o._orientation=[e,i,n];else return o._orientation;for(var a=o._getSoundIds(s),h=0;h<a.length;h++){var c=o._soundById(a[h]);if(c)if(typeof e=="number")c._orientation=[e,i,n],c._node&&(c._panner||(c._pos||(c._pos=o._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)),o._emit("orientation",c._id);else return c._orientation}return o},Howl.prototype.pannerAttr=function(){var e=this,i=arguments,n,s,o;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 o=e._soundById(parseInt(i[0],10)),o?o._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(o=e._soundById(a[h]),o){var c=o._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=o._panner;u||(o._pos||(o._pos=e._pos||[0,0,-.5]),t(o,"spatial"),u=o._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)}})()})(Gi)),Gi}var we=eh();const Ah=ko({__proto__:null,default:th(we)},[we]),cr=["load","loaderror","playerror","play","end","pause","stop","mute","volume","rate","seek","fade","unlock"];let gr=class extends Dt{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:o,loop:a,volume:h,spatial:c}=n,u=Array.isArray(s)?s:[s];for(const r of u){if(!r)continue;const l=new we.Howl({src:r,autoplay:o,loop:a,volume:h});for(let g of cr){if(!n[g])continue;const f=n[g];this.eventsFn.push(f),l.on(g,f)}this.sounds.push(l)}if(c&&this.sounds.length>0){const{soundListenerPosition:r}=e.context;if(!r)throw new si("SoundListenerPosition directive is required for spatial sound in component parent");const{x:l,y:g}=r;this.tickSubscription=it(()=>{i();const{x:f,y:d}=t.componentInstance,C=fs(f,d,l(),g()),E=Math.max(this.maxVolume-C/this.maxDistance,0);this.sounds.forEach(m=>m.volume(E))}).subscription}this.onUpdate(n)}onUpdate(t){const e=t.value??t,{volume:i,loop:n,mute:s,seek:o,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),o!==void 0&&u.seek(o),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 cr){const i=this.eventsFn.find(n=>n===this.eventsFn[e]);i&&t.off(e,i)}}),this.sounds=[],this.eventsFn=[],this.tickSubscription?.unsubscribe()}};class ih extends Dt{onMount(t){t.props.context.soundListenerPosition=t.propObservables?.soundListenerPosition}onInit(t){}onUpdate(t){}onDestroy(){}}bt("sound",gr),bt("soundListenerPosition",ih);const nh=(A,t,e)=>{A.props.context={...A.props.context??{},[t]:e}};class ur extends Dt{constructor(){super(...arguments),this.elementRef=null}onInit(t){this.elementRef=t}onMount(t){nh(t,"drop",t)}onUpdate(){}onDestroy(){this.elementRef=null}}class Ir extends Dt{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,o=t.componentInstance,a=this.dragProps;if(Object.keys(a).length===0){this.onDestroy();return}if(!o||(this.stageRef=e.componentInstance,!this.stageRef))return;this.viewport=n,o.eventMode="static",this.stageRef.eventMode="static";const c=it(()=>{this.stageRef&&(this.stageRef.hitArea=new D.Rectangle(0,0,i().width,i().height))});o.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=Ct(t?.value??t,{snap:0,viewport:{},direction:"all",keyToPress:[]});return e.viewport=Ct(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,o=Kl(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=o(h),e.position.y=o(c)):(this.axis.x&&(e.position.x=h),this.axis.y&&(e.position.y=c)),this.lastPointerPosition.copyFrom(t.global);const{x:u,y:r}=s,l=(g,f)=>{pe(g)?g.dependencies.forEach(d=>{d.set(f)}):_(g)&&g.set(f)};u!==void 0&&l(u,e.position.x),r!==void 0&&l(r,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,o=this.viewport.screenWidth,a=0,h=this.viewport.screenHeight,c=this.elementRef.componentInstance,u=t.x-s,r=o-t.x,l=t.y-a,g=h-t.y;let f=0,d=0;if(u<i?f=-(n*(1-u/i)):r<i&&(f=n*(1-r/i)),l<i?d=-(n*(1-l/i)):g<i&&(d=n*(1-g/i)),f!==0||d!==0){const C=this.viewport.center;this.viewport.moveCenter(this.viewport.center.x+f,this.viewport.center.y+d),this.axis.x&&C.x!==this.viewport.center.x&&(c.position.x+=f),this.axis.y&&C.y!==this.viewport.center.y&&(c.position.y+=d)}}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}}bt("drag",Ir),bt("drop",ur);class fr extends Dt{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(()=>{nr({from:0,to:1,duration:500,onUpdate:o=>{n.scale.x=o,n.scale.y=o}})},5e3)}onUpdate(t){}onDestroy(){}}bt("transition",fr);function $e(A){return A?.start&&A?.listen}function sh(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(!$e(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 o=t(n?.seed.config);o&&typeof o.then=="function"?o.then(a=>s.resolve(a)).catch(()=>s.resolve(void 0)):s.resolve(o)}catch{s.resolve(void 0)}}}}).subscription}class Br extends Dt{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||!$e(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 Ct(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),o=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:o,direction:a,randomSeed:Math.random()*1e3},this.progressSignal?await this.progressSignal.set(0,{duration:0}):this.progressSignal=xi(0,{duration:s,ease:l=>l});const u=a!=="y",r=a!=="x";this.positionEffect=it(()=>{if(!e||!this.progressSignal||!this.currentShakeConfig)return;const l=this.progressSignal(),g=this.currentShakeConfig,f=1-l,d=l*g.frequency,C=Math.sin(d*Math.PI*2),E=Math.sin(g.randomSeed+l*10)*.25+1,m=u?C*g.intensity*f*E:0,w=r?C*g.intensity*f*E:0;e.position.x=this.originalPosition.x+m,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}}bt("shake",Br);class dr extends Dt{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||!$e(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 Ct(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),o=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:o,flashAlpha:a,flashTint:h};if(this.currentFlashConfig=u,this.progressSignal||(this.progressSignal=xi(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,f=l*g.cycles%1,d=f<.5?f*2:1-(f-.5)*2,C=this.originalAlpha+(g.flashAlpha-this.originalAlpha)*d;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),f=this.progressSignal(),d=this.currentFlashConfig,C=f*d.cycles%1,E=C<.5?C*2:1-(C-.5)*2,m=this.originalTint>>16&255,w=this.originalTint>>8&255,b=this.originalTint&255,M=d.flashTint>>16&255,G=d.flashTint>>8&255,O=d.flashTint&255,K=Math.round(m+(M-m)*E),H=Math.round(w+(G-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}}bt("flash",dr);function Qt(A){return A&&typeof A=="string"?A.endsWith("%"):!1}const Er=["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 Er)if(e[i]&&!this.overrideProps.includes(i)){this.eventMode="static";const n=e[i],s=(...o)=>{if(!(this.#i&&St(this.#i)))return n(...o)};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"||Qt(e.width)||Qt(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 o=a=>{a.computedLayout&&(this.#A={width:a.computedLayout.width,height:a.computedLayout.height}),this.onLayoutComputed(a)};this.on("layout",o),this.#e.set("layout",o),this.onAfterMount&&await this.onAfterMount()}}onUpdate(e){if(this.fullProps={...this.fullProps,...e},this.destroyed||!this.#t||!this.parent)return;e.x!==void 0&&this.setX(e.x),e.y!==void 0&&this.setY(e.y),e.scale!==void 0&&re(this.scale,e.scale),e.anchor!==void 0&&!this.isCustomAnchor&&re(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&&re(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&&re(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&&ft(e.maskOf)&&(e.maskOf.componentInstance.mask=this),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 Qt(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 Qt(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 rh{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 oh=async(A={})=>{let{cursorStyles:t,width:e,height:i,class:n}=Ct(A);A.width||(e=Y(800)),A.height||(i=Y(600));const s=Y({width:0,height:0});A.isRoot=!0;const o=new rh,a={...A,context:{canvasSize:s,app:Y(null),globalLoader:o},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=rt("Canvas",a);return h.render=(c,u)=>{if(!u)return;const r=u.renderer,l=r.view.canvas;globalThis.__PIXI_STAGE__=h.componentInstance,globalThis.__PIXI_RENDERER__=r,A.tickStart!==!1&&h.directives.tick.start(),it(()=>{h.propObservables.tick(),r.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",(f,d)=>{s.set({width:f,height:d}),u.stage.layout&&(u.stage.layout={width:f,height:d})}),A.tickStart!==!1&&h.directives.tick.start(),u.ticker.add(()=>{h.propObservables.tick()}),t&&it(()=>{r.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 Hi extends xt(D.Container){constructor(){super(...arguments),this.isCustomAnchor=!0}onUpdate(t){t.anchor&&(re(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=Qt(i.width),o=Qt(i.height);(s||o)&&this.on("layout",a=>{const h=a.computedLayout;s&&h.width!==void 0&&this.displayWidth.set(h.width),o&&h.height!==void 0&&this.displayHeight.set(h.height)})}}st("Container",Hi);const tA=A=>(st("Container",Hi),rt("Container",A));class ah 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),o=_(n?.height)?n.height:Y(i.height||0),a=_(n?.anchor)?n.anchor:Y(i.anchor||[0,0]);this._width=s,this._height=o;const h=Qt(s()),c=Qt(o());i.draw&&(this.clearEffect=it(()=>{const u=s(),r=o(),l=a();typeof u=="string"||typeof r=="string"||(this.clear(),i.draw?.(this,u,r,l),this.subjectInit.next(this))})),this.on("layout",u=>{const r=u.computedLayout;h&&_(s)&&s()!==r.width&&s.set(r.width),c&&_(o)&&o()!==r.height&&o.set(r.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",ah);function ae(A){return rt("Graphics",A)}const Li=(A,t,e)=>{const i=new D.ObservablePoint({_onUpdate:()=>{}},0,0);re(i,A);const n=i.x,s=i.y;return{x:-n*t,y:-s*e}};function Cr(A){const{color:t,borderRadius:e,border:i}=Ct(A,{borderRadius:null,border:null});return ae({draw:(n,s,o,a)=>{const{x:h,y:c}=Li(a,s,o);e()?n.roundRect(h,c,s,o,e()):n.rect(h,c,s,o),i&&n.stroke(i),n.fill(t())},...A})}function Ui(A){const{color:t,border:e,radius:i}=Ct(A,{border:null,radius:null});return ae({draw:(n,s,o,a)=>{const{x:h,y:c}=Li(a,s,o);s==o||o==0?n.circle(h,c,i()||s):n.ellipse(h,c,s,o),e()&&n.stroke(e()),n.fill(t())},...A})}function Qr(A){return Ui(A)}function lh(A){const{color:t,border:e}=Ct(A,{border:null,color:"#000"});return ae({draw:(i,n,s,o)=>{const{x:a,y:h}=Li(o,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 hh(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 ch 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",ch);const gh=A=>rt("Mesh",A);x.currentSubscriptionsTracker=null,x.mountTracker=null;function Ti(A){x.mountTracker?.(A)}function uh(A){Ti(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 bA(A,t={},e){const i=new Set,n=new Set;x.currentSubscriptionsTracker=o=>{i.add(o)},x.mountTracker=o=>{n.add(o)},e[0]instanceof Array&&(e=e[0]);let s;return Array.isArray(A)?A.length===1?s=A[0]:s=bA(tA,{},A):"tag"in A||A instanceof Z?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(o=>{o.props.isRoot&&n.forEach(a=>a(o))}),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)?bA(A,t,e):new Z(n=>{rr(t.dependencies).then(()=>{const s=bA(A,t,e);n.next(s)})}):bA(A,t,e)}function Ih(A){return gt(tA)}class Oi{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 o=i[s];this.segments.push({p1:n,p2:o,l:0}),n=o}}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:o}=i;t.x=s.x+n*(o.x-s.x),t.y=s.y+n*(o.y-s.y)}}Oi.type="polygonalChain",Oi.editorConfig=null;class Pi{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}}Pi.type="rect",Pi.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:mr(i):this.ease=null}static createList(t){if("list"in t){const i=t.list;let n;const{value:s,time:o}=i[0],a=n=new Nt(typeof s=="string"?xA(s):s,o,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"?xA(c):c,u),n=n.next}return a.isStepped=!!t.isStepped,a}const e=new Nt(typeof t.start=="string"?xA(t.start):t.start,0);return t.end!==t.start&&(e.next=new Nt(typeof t.end=="string"?xA(t.end):t.end,1)),e}}let eA=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 SA(A,t,e){return A<<16|t<<8|e}function pr(A){return Math.sqrt(A.x*A.x+A.y*A.y)}function fh(A){const t=1/pr(A);A.x*=t,A.y*=t}function yr(A,t){A.x*=t,A.y*=t}function xA(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 mr(A){const t=A.length,e=1/t;return function(i){const n=t*i|0,s=(i-n*e)*t,o=A[n]||A[t-1];return o.s+s*(2*(1-s)*(o.cp-o.s)+s*(o.e-o.s))}}function Bh(A){return A||"normal"}class kA{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}}kA.type="torus",kA.editorConfig=null;var X;(function(A){A[A.Spawn=0]="Spawn",A[A.Normal=2]="Normal",A[A.Late=5]="Late"})(X||(X={}));class Ji{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 o=pr(i);o>this.maxSpeed&&yr(i,this.maxSpeed/o)}t.x+=(n+i.x)/2*e,t.y+=(s+i.y)/2*e,this.rotate&&(t.rotation=Math.atan2(i.y,i.x))}}Ji.type="moveAcceleration",Ji.editorConfig=null;function dh(A){return this.ease&&(A=this.ease(A)),(this.first.next.value-this.first.value)*A+this.first.value}function Eh(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 SA(i,n,s)}function Ch(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 Qh(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,o=(n.g-i.g)*A+i.g,a=(n.b-i.b)*A+i.b;return SA(s,o,a)}function ph(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 yh(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 SA(e.r,e.g,e.b)}class AA{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?Eh:dh:t.isStepped?this.interpolate=this.isColor?yh:ph:this.interpolate=this.isColor?Qh:Ch,this.ease=this.first.ease}}class Ki{constructor(t){this.order=X.Normal,this.list=new AA(!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)}}Ki.type="alpha",Ki.editorConfig=null;class Yi{constructor(t){this.order=X.Normal,this.value=t.alpha}initParticles(t){let e=t;for(;e;)e.alpha=this.value,e=e.next}}Yi.type="alphaStatic",Yi.editorConfig=null;function wr(A){const t=[];for(let e=0;e<A.length;++e){let i=A[e];if(typeof i=="string")t.push(eA(i));else if(i instanceof D.Texture)t.push(i);else{let n=i.count||1;for(typeof i.texture=="string"?i=eA(i.texture):i=i.texture;n>0;--n)t.push(i)}}return t}class Wi{constructor(t){this.order=X.Normal,this.anims=[];for(let e=0;e<t.anims.length;++e){const i=t.anims[e],n=wr(i.textures),s=i.framerate<0?-1:i.framerate>0?i.framerate:60,o={textures:n,duration:s>0?n.length/s:0,framerate:s,loop:s>0?!!i.loop:!1};this.anims.push(o)}}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}}Wi.type="animatedRandom",Wi.editorConfig=null;class ji{constructor(t){this.order=X.Normal;const e=t.anim,i=wr(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 Vi{constructor(t){this.order=X.Normal,this.value=t.blendMode}initParticles(t){let e=t;for(;e;)e.blendMode=Bh(this.value),e=e.next}}Vi.type="blendMode",Vi.editorConfig=null;class qi{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}}}qi.type="spawnBurst",qi.editorConfig=null;class Xi{constructor(t){this.order=X.Normal,this.list=new AA(!0),this.list.reset(Nt.createList(t.color))}initParticles(t){let e=t;const i=this.list.first.value,n=SA(i.r,i.g,i.b);for(;e;)e.tint=n,e=e.next}updateParticle(t){t.tint=this.list.interpolate(t.agePercent)}}Xi.type="color",Xi.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 zi{constructor(t){this.order=X.Normal,this.index=0,this.textures=t.textures.map(e=>typeof e=="string"?eA(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}}zi.type="textureOrdered",zi.editorConfig=null;const ve=new D.Point,vr=["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"],mh=new RegExp(["[01234567890\\.\\*\\-\\+\\/\\(\\)x ,]"].concat(vr).join("|"),"g");function wh(A){const t=A.match(mh);for(let e=t.length-1;e>=0;--e)vr.indexOf(t[e])>=0&&(t[e]=`Math.${t[e]}`);return A=t.join(""),new Function("x",`return ${A};`)}class $i{constructor(t){if(this.order=X.Late,t.path)if(typeof t.path=="function")this.path=t.path;else try{this.path=wh(t.path)}catch{this.path=null}else this.path=e=>e;this.list=new AA(!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,ve.x=t.config.movement,ve.y=this.path(ve.x),Pt(t.config.initRotation,ve),t.position.x=t.config.initPosition.x+ve.x,t.position.y=t.config.initPosition.y+ve.y}}$i.type="movePath",$i.editorConfig=null;class tn{constructor(){this.order=X.Spawn}initParticles(t){}}tn.type="spawnPoint",tn.editorConfig=null;class en{constructor(t){this.order=X.Normal,this.textures=t.textures.map(e=>typeof e=="string"?eA(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}}}en.type="textureRandom",en.editorConfig=null;class An{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}}An.type="rotation",An.editorConfig=null;class nn{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}}nn.type="rotationStatic",nn.editorConfig=null;class sn{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}}sn.type="noRotation",sn.editorConfig=null;class rn{constructor(t){this.order=X.Normal,this.list=new AA(!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 on{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}}}on.type="scaleStatic",on.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(Oi),kt.registerShape(Pi),kt.registerShape(kA),kt.registerShape(kA,"circle");class an{constructor(t){this.order=X.Normal,this.texture=typeof t.texture=="string"?eA(t.texture):t.texture}initParticles(t){let e=t;for(;e;)e.texture=this.texture,e=e.next}}an.type="textureSingle",an.editorConfig=null;class ln{constructor(t){this.order=X.Late,this.list=new AA(!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;fh(n),yr(n,i),t.x+=n.x*e,t.y+=n.y*e}}ln.type="moveSpeed",ln.editorConfig=null;class hn{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}}hn.type="moveSpeedStatic",hn.editorConfig=null;class cn 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 gn=D.Ticker.shared,le=Symbol("Position particle per emitter position");class j{static registerBehavior(t){j.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:mr(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=j.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 j.knownBehaviors[t]&&this.initBehaviors.find(e=>e instanceof j.knownBehaviors[t])||null}fillPool(t){for(;t>0;--t){const e=new cn(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?gn.remove(this.update,this):!this._autoUpdate&&t&&gn.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=gn.elapsedMS*.001),!this._parent)return;for(let o=this._activeParticlesFirst,a;o;o=a)if(a=o.next,o.age+=t,o.age>o.maxLife||o.age<0)this.recycle(o);else{let h=o.age*o.oneOverLife;this.customEase&&(this.customEase.length===4?h=this.customEase(h,0,1,1):h=this.customEase(h)),o.agePercent=h;for(let c=0;c<this.updateBehaviors.length;++c)if(this.updateBehaviors[c].updateParticle(o,t)){this.recycle(o);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 o,a;if(this._prevPosIsValid&&this._posChanged){const u=1+this._spawnTimer/t;o=(n-e)*u+e,a=(s-i)*u+i}else o=n,a=s;let h=null,c=null;for(let u=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount),r=0;r<u;++r){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 cn(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 r=this.initBehaviors[u];if(r===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+=o,l.position.y+=a,l.age+=-this._spawnTimer;let f=l.age*l.oneOverLife;this.customEase&&(this.customEase.length===4?f=this.customEase(f,0,1,1):f=this.customEase(f)),l.agePercent=f}else r.initParticles(h)}for(let u=h,r;u;u=r){r=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 o=this._completeCallback;this._completeCallback=null,o()}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),o=0;o<s;++o){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 cn(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 o=this.initBehaviors[s];if(o===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 o.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}}j.knownBehaviors={},j.registerBehavior(Ji),j.registerBehavior(Ki),j.registerBehavior(Yi),j.registerBehavior(Wi),j.registerBehavior(ji),j.registerBehavior(Vi),j.registerBehavior(qi),j.registerBehavior(Xi),j.registerBehavior(Zi),j.registerBehavior(zi),j.registerBehavior($i),j.registerBehavior(tn),j.registerBehavior(en),j.registerBehavior(An),j.registerBehavior(nn),j.registerBehavior(sn),j.registerBehavior(rn),j.registerBehavior(on),j.registerBehavior(kt),j.registerBehavior(an),j.registerBehavior(ln),j.registerBehavior(hn);class vh extends Hi{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 j(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",vh);function Dh(A){return rt("ParticlesEmitter",A)}const Dr=console.log;class br extends xt(D.Sprite){constructor(){super(...arguments),this.currentAnimation=null,this.time=0,this.frameIndex=0,this.animations=new Map,this.subscriptionSheet=[],this.sheetParams={},this.sheetCurrentAnimation="stand",this.app=null,this.globalLoader=null,this.trackedAssetIds=new Set,this.currentAnimationContainer=null}get renderer(){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:o,offset:a}=t;if(!o||typeof o!="string"||o.trim()==="")return console.warn("Invalid image path provided to createTextures:",o),[];let h=null;this.globalLoader&&(h=this.globalLoader.registerAsset(o),this.trackedAssetIds.add(h));const c=await D.Assets.load(o,d=>{this.globalLoader&&h&&this.globalLoader.updateProgress(h,d)});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,r=t.spriteHeight,l=[],g=a&&a.x||0,f=a&&a.y||0;for(let d=0;d<n;d++){l[d]=[];for(let C=0;C<s;C++){const E=C*u+g,m=d*r+f;if(m>i)throw Dr(`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 Dr(`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[d].push(new D.Texture({source:c.source,frame:new D.Rectangle(E,m,u,r)}))}}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((d,C)=>({...d,[C]:this.spritesheet[C]}),{}),...t[e]},{rectWidth:o,width:a=0,framesWidth:h=1,rectHeight:c,height:u=0,framesHeight:r=1,image:l}=s;let g=a,f=u;if(l&&(!g||g<=0||!f||f<=0)){const d=await this.detectImageDimensions(l);(!g||g<=0)&&(g=d.width,s.width=g),(!f||f<=0)&&(f=d.height,s.height=f)}s.spriteWidth=o||g/h,s.spriteHeight=c||f/r,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??{},o=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)}),o){const h=o instanceof Promise?await o:o;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=Et(()=>{const{x:h,y:c}=i??{};if(!h||!c)return!1;const u=h,r=c,l=ye(u)&&u.animatedState().current!==u.animatedState().end,g=ye(r)&&r.animatedState().current!==r.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 o=null;this.globalLoader&&(o=this.globalLoader.registerAsset(s),this.trackedAssetIds.add(o));const a=this.fullProps.loader?.onProgress,h=await D.Assets.load(s,c=>{if(this.globalLoader&&o&&this.globalLoader.updateProgress(o,c),a&&a(c),c==1){this.globalLoader&&o&&this.globalLoader.completeAsset(o);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&&(this.hitbox=t.hitbox.value??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&&(ft(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:o,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,o,a,h)}))}}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)&&Pe(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 o=n.animations;o=ii(o)?o(...s):o,this.currentAnimationContainer=new D.Container;for(let h of o){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 we.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:o}=this.currentAnimation;let a=s[this.frameIndex];const h=s[this.frameIndex+1];for(let c of this.currentAnimationContainer.children){let u=function(C,E){const w=r(E||C);w!==void 0&&(i[C]=w)};if(!a||a.frameY==null||a.frameX==null)continue;this.texture=n[a.frameY][a.frameX];const r=C=>a[C]??o[C]??this.spritesheet[C],l=C=>{const E=r(C);E&&this[C].set(...E)};this.applyTransform&&(a={...a,...this.applyTransform(a,o,this.spritesheet)});const g=r("spriteRealSize"),f=typeof g=="number"?g:g?.height;typeof g=="number"||g?.width;const d=()=>{if(f&&this.hitbox){const{spriteWidth:C,spriteHeight:E}=o,m=(C-this.hitbox.w)/2/C,w=(E-f)/2,b=(E-this.hitbox.h-w)/E;this.anchor.set(m,b)}};a.sound,d(),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++}}st("Sprite",br);const un=A=>(st("Sprite",br),rt("Sprite",A));function bh(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=_i(A),{play:n,loop:s,muted:o}=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&&o()&&(a.muted=o())}),Ti(()=>()=>{for(let a in t)t[a]&&e().removeEventListener(a,t[a])}),gt(un,{...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=r=>{A[c](r)};t[c]=u,h.addEventListener(c,u)}}}})}class Sh 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&&$e(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 we.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",Sh);function Sr(A){return rt("Text",A)}class xh 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",xh);function kh(A){return rt("TilingSprite",A)}var Mh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rh(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var xr={exports:{}};(function(A,t){(function(){var e,i;i=function(n){return A.exports=n},e={linear:function(n,s,o,a){return o*n/a+s},easeInQuad:function(n,s,o,a){return o*(n/=a)*n+s},easeOutQuad:function(n,s,o,a){return-o*(n/=a)*(n-2)+s},easeInOutQuad:function(n,s,o,a){return(n/=a/2)<1?o/2*n*n+s:-o/2*(--n*(n-2)-1)+s},easeInCubic:function(n,s,o,a){return o*(n/=a)*n*n+s},easeOutCubic:function(n,s,o,a){return o*((n=n/a-1)*n*n+1)+s},easeInOutCubic:function(n,s,o,a){return(n/=a/2)<1?o/2*n*n*n+s:o/2*((n-=2)*n*n+2)+s},easeInQuart:function(n,s,o,a){return o*(n/=a)*n*n*n+s},easeOutQuart:function(n,s,o,a){return-o*((n=n/a-1)*n*n*n-1)+s},easeInOutQuart:function(n,s,o,a){return(n/=a/2)<1?o/2*n*n*n*n+s:-o/2*((n-=2)*n*n*n-2)+s},easeInQuint:function(n,s,o,a){return o*(n/=a)*n*n*n*n+s},easeOutQuint:function(n,s,o,a){return o*((n=n/a-1)*n*n*n*n+1)+s},easeInOutQuint:function(n,s,o,a){return(n/=a/2)<1?o/2*n*n*n*n*n+s:o/2*((n-=2)*n*n*n*n+2)+s},easeInSine:function(n,s,o,a){return-o*Math.cos(n/a*(Math.PI/2))+o+s},easeOutSine:function(n,s,o,a){return o*Math.sin(n/a*(Math.PI/2))+s},easeInOutSine:function(n,s,o,a){return-o/2*(Math.cos(Math.PI*n/a)-1)+s},easeInExpo:function(n,s,o,a){return n===0?s:o*Math.pow(2,10*(n/a-1))+s},easeOutExpo:function(n,s,o,a){return n===a?s+o:o*(-Math.pow(2,-10*n/a)+1)+s},easeInOutExpo:function(n,s,o,a){return(n/=a/2)<1?o/2*Math.pow(2,10*(n-1))+s:o/2*(-Math.pow(2,-10*--n)+2)+s},easeInCirc:function(n,s,o,a){return-o*(Math.sqrt(1-(n/=a)*n)-1)+s},easeOutCirc:function(n,s,o,a){return o*Math.sqrt(1-(n=n/a-1)*n)+s},easeInOutCirc:function(n,s,o,a){return(n/=a/2)<1?-o/2*(Math.sqrt(1-n*n)-1)+s:o/2*(Math.sqrt(1-(n-=2)*n)+1)+s},easeInElastic:function(n,s,o,a){var h,c,u;return u=1.70158,c=0,h=o,n===0||(n/=a),c||(c=a*.3),h<Math.abs(o)?(h=o,u=c/4):u=c/(2*Math.PI)*Math.asin(o/h),-(h*Math.pow(2,10*(n-=1))*Math.sin((n*a-u)*(2*Math.PI)/c))+s},easeOutElastic:function(n,s,o,a){var h,c,u;return u=1.70158,c=0,h=o,n===0||(n/=a),c||(c=a*.3),h<Math.abs(o)?(h=o,u=c/4):u=c/(2*Math.PI)*Math.asin(o/h),h*Math.pow(2,-10*n)*Math.sin((n*a-u)*(2*Math.PI)/c)+o+s},easeInOutElastic:function(n,s,o,a){var h,c,u;return u=1.70158,c=0,h=o,n===0||(n/=a/2),c||(c=a*.44999999999999996),h<Math.abs(o)?(h=o,u=c/4):u=c/(2*Math.PI)*Math.asin(o/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+o+s},easeInBack:function(n,s,o,a,h){return h===void 0&&(h=1.70158),o*(n/=a)*n*((h+1)*n-h)+s},easeOutBack:function(n,s,o,a,h){return h===void 0&&(h=1.70158),o*((n=n/a-1)*n*((h+1)*n+h)+1)+s},easeInOutBack:function(n,s,o,a,h){return h===void 0&&(h=1.70158),(n/=a/2)<1?o/2*(n*n*(((h*=1.525)+1)*n-h))+s:o/2*((n-=2)*n*(((h*=1.525)+1)*n+h)+2)+s},easeInBounce:function(n,s,o,a){var h;return h=e.easeOutBounce(a-n,0,o,a),o-h+s},easeOutBounce:function(n,s,o,a){return(n/=a)<.36363636363636365?o*(7.5625*n*n)+s:n<.7272727272727273?o*(7.5625*(n-=.5454545454545454)*n+.75)+s:n<.9090909090909091?o*(7.5625*(n-=.8181818181818182)*n+.9375)+s:o*(7.5625*(n-=.9545454545454546)*n+.984375)+s},easeInOutBounce:function(n,s,o,a){var h;return n<a/2?(h=e.easeInBounce(n*2,0,o,a),h*.5+s):(h=e.easeOutBounce(n*2-a,0,o,a),h*.5+o*.5+s)}},i(e)}).call(Mh)})(xr);var Fh=xr.exports;const kr=Rh(Fh);function MA(A,t){if(A){if(typeof A=="function")return A;if(typeof A=="string")return kr[A]}else return kr[t]}class _h{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 iA=["drag","pinch","wheel","follow","mouse-edges","decelerate","animate","bounce","snap-zoom","clamp-zoom","snap","clamp"];class Nh{constructor(t){this.viewport=t,this.list=[],this.plugins={}}add(t,e,i=iA.length){const n=this.plugins[t];n&&n.destroy(),this.plugins[t]=e;const s=iA.indexOf(t);s!==-1&&iA.splice(s,1),iA.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 iA)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 pt{constructor(t){this.parent=t,this.paused=!1}destroy(){}down(t){return!1}move(t){return!1}up(t){return!1}wheel(t){return!1}update(t){}resize(){}reset(){}pause(){this.paused=!0}resume(){this.paused=!1}}const Gh={removeOnInterrupt:!1,ease:"linear",time:1e3};class Hh extends pt{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({},Gh,e),this.options.ease=MA(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,o=this.deltaX,a=this.deltaY,h=new D.Point(this.parent.x,this.parent.y);this.parent.moveCenter(n+o*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 Lh={sides:"all",friction:.5,time:150,ease:"easeInOutSine",underflow:"center",bounceBox:null};class Uh extends pt{constructor(t,e={}){super(t),this.options=Object.assign({},Lh,e),this.ease=MA(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)||{},o=this.parent.plugins.get("pinch",!0)||{};if(n=n||{},!(s!=null&&s.active)&&!(o!=null&&o.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 Th={left:!1,right:!1,top:!1,bottom:!1,direction:null,underflow:"center"};class Oh extends pt{constructor(t,e={}){super(t),this.options=Object.assign({},Th,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 Ph={minWidth:null,minHeight:null,maxWidth:null,maxHeight:null,minScale:null,maxScale:null};class Jh extends pt{constructor(t,e={}){super(t),this.options=Object.assign({},Ph,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 Kh={friction:.98,bounce:.8,minSpeed:.01},zt=16;class Yh extends pt{constructor(t,e={}){super(t),this.options=Object.assign({},Kh,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,o=Math.log(s);this.parent.x+=this.x*zt/o*(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,o=Math.log(s);this.parent.y+=this.y*zt/o*(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 Wh={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 jh extends pt{constructor(t,e={}){super(t),this.windowEventHandlers=[],this.options=Object.assign({},Wh,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 o=s.x-this.last.x,a=s.y-this.last.y;if(this.moved||this.xDirection&&this.parent.input.checkThreshold(o)||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,o]=this.options.wheelSwapAxes?n.reverse():n;return this.xDirection&&(this.parent.x+=s*i*this.options.wheelScroll*this.reverse),this.yDirection&&(this.parent.y+=o*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 Vh={speed:0,acceleration:null,radius:null};class qh extends pt{constructor(t,e,i={}){super(t),this.target=e,this.options=Object.assign({},Vh,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,o=n-e.y;if(s||o)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(o,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,r=Math.sin(a)*this.velocity.y,l=Math.abs(u)>Math.abs(s)?i:e.x+u,g=Math.abs(r)>Math.abs(o)?n:e.y+r;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,r=Math.abs(c)>Math.abs(o)?n:e.y+c;this.parent.moveCenter(u,r),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}else this.parent.moveCenter(i,n),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}}const Xh={radius:null,distance:null,top:null,bottom:null,left:null,right:null,speed:8,reverse:!1,noDecelerate:!1,linear:!1,allowButtons:!1};class Zh extends pt{constructor(t,e={}){super(t),this.options=Object.assign({},Xh,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 zh={noDrag:!1,percent:1,center:null,factor:1,axis:"all"},$h=new D.Point;class tc extends pt{constructor(t,e={}){super(t),this.active=!1,this.pinching=!1,this.moved=!1,this.options=Object.assign({},zh,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,$h),n=this.parent.input.touches;if(n.length>=2){const s=n[0],o=n[1],a=s.last&&o.last?Math.sqrt(Math.pow(o.last.x-s.last.x,2)+Math.pow(o.last.y-s.last.y,2)):null;if(s.id===t.pointerId?s.last={x:e,y:i,data:t}:o.id===t.pointerId&&(o.last={x:e,y:i,data:t}),a){let h;const c=new D.Point(s.last.x+(o.last.x-s.last.x)/2,s.last.y+(o.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(o.last.x-s.last.x,2)+Math.pow(o.last.y-s.last.y,2));u=u===0?u=1e-10:u;const r=(1-a/u)*this.options.percent*(this.isAxisX()?this.parent.scale.x:this.parent.scale.y);this.isAxisX()&&(this.parent.scale.x+=r),this.isAxisY()&&(this.parent.scale.y+=r),this.parent.emit("zoomed",{viewport:this.parent,type:"pinch",center: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 ec={topLeft:!1,friction:.8,time:1e3,ease:"easeInOutSine",interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1};class Ac extends pt{constructor(t,e,i,n={}){super(t),this.options=Object.assign({},ec,n),this.ease=MA(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 o=this.startX,a=this.startY,h=this.deltaX,c=this.deltaY;if(e.time>this.options.time)i=!0,n=o+h,s=a+c;else{const u=this.ease(e.time,0,1,this.options.time);n=o+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 ic={width:0,height:0,time:1e3,ease:"easeInOutSine",center:null,interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1,noMove:!1};class nc extends pt{constructor(t,e={}){super(t),this.options=Object.assign({},ic,e),this.ease=MA(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,o=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/o,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 sc={percent:.1,smooth:!1,interrupt:!0,reverse:!1,center:null,lineHeight:20,axis:"all",keyToPress:null,trackpadPinch:!1,wheelZoom:!0};class rc extends pt{constructor(t,e={}){super(t),this.options=Object.assign({},sc,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 o=s.toLocal(t);this.parent.x+=o.x-i.x,this.parent.y+=o.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 o=this.parent.plugins.get("clamp-zoom",!0);if(o&&o.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 o=this.parent.plugins.get("clamp-zoom",!0);if(o&&o.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 oc={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 ac extends D.Container{constructor(t){super(),this._disableOnContextMenu=e=>e.preventDefault(),this.options={...oc,...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 _h(this),this.plugins=new Nh(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 o=this.plugins.get("clamp-zoom",!0);return!n&&o&&o.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 o=this.plugins.get("clamp-zoom",!0);return!n&&o&&o.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 nc(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 jh(this,t)),this}clamp(t){return this.plugins.add("clamp",new Oh(this,t)),this}decelerate(t){return this.plugins.add("decelerate",new Yh(this,t)),this}bounce(t){return this.plugins.add("bounce",new Uh(this,t)),this}pinch(t){return this.plugins.add("pinch",new tc(this,t)),this}snap(t,e,i){return this.plugins.add("snap",new Ac(this,t,e,i)),this}follow(t,e){return this.plugins.add("follow",new qh(this,t,e)),this}wheel(t){return this.plugins.add("wheel",new rc(this,t)),this}animate(t){return this.plugins.add("animate",new Hh(this,t)),this}clampZoom(t){return this.plugins.add("clamp-zoom",new Jh(this,t)),this}mouseEdges(t){return this.plugins.add("mouse-edges",new Zh(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 o=!1;t<this.left?(this.left=t,o=!0):t+i>this.right&&(this.right=t+i,o=!0),e<this.top?(this.top=e,o=!0):e+n>this.bottom&&(this.bottom=e+n,o=!0),o&&this.emit("moved",{viewport:this,type:"ensureVisible"})}}const lc=["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 hc extends xt(D.Container){constructor(){super(),this.overrideProps=["wheel"];const t={noTicker:!0,events:{domElement:{addEventListener:()=>{}}}};this.viewport=new ac(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 lc)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:o}=i.context;it(()=>{i.screenWidth===void 0&&(this.viewport.screenWidth=o().width),i.screenHeight===void 0&&(this.viewport.screenHeight=o().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.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",hc);function cc(A){return rt("Viewport",A)}class gc 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",gc);function uc(A){return rt("NineSliceSprite",A)}const Mr=["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 Rr{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(o=>{n.textContent=o==null?"":String(o)});this.childTextSubscriptions.push(s)}return}if(Is(t)){t.subscribe(n=>{n&&typeof n=="object"&&"elements"in n?(n.elements||[]).forEach(o=>this.appendChildElement(o)):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 Mr)if(t.attrs?.[e]){const i=n=>{if(e==="submit"&&this.element.tagName.toLowerCase()==="form"){n.preventDefault();const s=new FormData(this.element),o={};s.forEach((a,h)=>{o[h]?Array.isArray(o[h])?o[h].push(a):o[h]=[o[h],a]:o[h]=a}),t.attrs[e]?.(n,o)}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 o=s.target;this.valueSignal.set(o.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,o]of Object.entries(n))o!=null&&(this.element.style[s]=o)}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 Mr.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",Rr);const Fr=A=>rt("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!Qt(t)&&!Qt(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(Qt(t))if(i){const s=this.getPercentRatio(t);if(s!==null){const o=n?.width!==void 0?n.width:this.getWidth();this.element.style.width=`${o*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(Qt(e))if(i){const s=this.getPercentRatio(e);if(s!==null){const o=n?.height!==void 0?n.height:this.getHeight();this.element.style.height=`${o*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(ft(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 rt(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 o=this.routeDomChildren(t.children);t.children=o;const a=gt(Fr,i,o);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 Ic=A=>rt("DOMContainer",A),fc=["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 Bc extends Rr{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 o=this.mergeEventAttrs({...e,element:this.wrapperElementType});this.tickSignal=o.context?.tick,this.applyProps(o),super.onInit(o),this.syncRenderElement(),this.applyDisplayProps(o),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 o={...i.reduce((f,d)=>({...f,[d]:t[d]}),{}),...e[n],spriteWidth:0,spriteHeight:0};o.image=e[n].image??t.image;const{rectWidth:a,rectHeight:h,framesWidth:c=1,framesHeight:u=1,image:r}=o;let l=o.width||0,g=o.height||0;if(r&&(!l||l<=0||!g||g<=0)){const f=await this.detectImageDimensions(r);(!l||l<=0)&&(l=f.width),(!g||g<=0)&&(g=f.height)}!l||!g||!c||!u||(o.width=l,o.height=g,o.spriteWidth=a||l/c,o.spriteHeight=h||g/u,this.sheetAnimations.set(n,{frames:[],name:n,animations:e[n].animations,params:[],data:o}))}}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&&Pe(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 o=n.animations;o=ii(o)?o(...s):o,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,r=a.offset?.y??0;for(const l of o)for(const g of l){const f=g.frameX??0,d=g.frameY??0;n.frames.push({...g,x:f*h+u,y:d*c+r,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 fc){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,o=this.resolveValue(t.y)??0;this.resolveValue(t.roundPixels)&&(s=Math.round(s),o=Math.round(o));const h=this.resolvePoint(t.scale)??{x:1,y:1},c=this.resolvePoint(t.skew),u=this.resolveValue(t.angle),r=this.resolveValue(t.rotation),l=u!==void 0?u:r!==void 0?r*180/Math.PI:0,g=[`translate3d(${s}px, ${o}px, 0)`];if(l!==0&&g.push(`rotate(${l}deg)`),c){const f=c.x*180/Math.PI,d=c.y*180/Math.PI;(f!==0||d!==0)&&g.push(`skew(${f}deg, ${d}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(o=>{this.sheetParams={...this.sheetParams,[n]:o},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",Bc);const dc=A=>rt("DOMSprite",A);var _r=(A=>(A.Normal="normal",A.Hover="hover",A.Pressed="pressed",A.Disabled="disabled",A))(_r||{});function Ec(A){const t=Y("normal"),e=Y(!1),i=Y(!1),n=_i(A),{text:s,disabled:o,width:a,height:h,style:c,shape:u,controlName:r}=n({text:{type:String,default:""},disabled:{type:Boolean,default:!1},width:{type:Number,default:120},height:{type:Number,default:40},style:{type:Object,default:()=>({})},shape:{type:String,default:"rect"},controlName:{type:String,default:void 0}}),l=()=>A.controls?_(A.controls)?A.controls():A.controls:null;it(()=>{const C=o(),E=e(),m=i();C?t.set("disabled"):E?t.set("pressed"):m?t.set("hover"):t.set("normal")});const g={pointerenter:C=>{o()||(i.set(!0),A.hoverEnter?.(C))},pointerleave:C=>{i.set(!1),e.set(!1),A.hoverLeave?.(C)},pointerdown:async C=>{if(!o()){e.set(!0),A.pressDown?.(C);const E=l(),m=r();E&&m&&E.applyControl&&await E.applyControl(m,!0)}},pointerup:async C=>{if(!o()&&e()){e.set(!1),A.pressUp?.(C);const E=l(),m=r();E&&m&&E.applyControl&&await E.applyControl(m,!1)}},pointertap:async C=>{if(!o()){A.click?.(C);const E=l(),m=r();E&&m&&E.applyControl&&await E.applyControl(m)}}},f=()=>{if(A.background)return A.background;const C=u(),E=Et(()=>{const w=c().backgroundColor||{normal:"#007bff",hover:"#0056b3",pressed:"#004085",disabled:"#6c757d"},b=t();return w[b]||w.normal});if(C==="circle"){const m=Et(()=>Math.min(a(),h())/2);return gt(Ui,{radius:m,x:Et(()=>a()/2),y:Et(()=>h()/2),color:E})}else return C==="ellipse"?gt(Qr,{width:a,height:h,color:E}):gt(Cr,{width:a,height:h,color:E})},d=()=>A.children&&A.children.length>0?A.children:[gt(Sr,{text:s,x:Et(()=>a()/2),y:Et(()=>h()/2),anchor:{x:.5,y:.5},style:Et(()=>{const E=c().text||{};return{fontSize:E.fontSize||16,fontFamily:E.fontFamily||"Arial",fill:E.color||"#ffffff"}})()})];return gt(tA,{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},[f(),...d()])}function Cc(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 o=!1,a=null,h=0;const c=Y(0),u=Y(0),r=Y(s);function l(b){const M=b.x-0,G=b.y-0;return Math.min(1,Math.sqrt(M*M+G*G)/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 f(b){const M=b.currentTarget||b.target;a=b.getLocalPosition(M),o=!0,r.set(1),t.onStart?.();const G=e();G&&(G.handleJoystickStart?G.handleJoystickStart():G.joystick&&G.joystick.handleJoystickStart&&G.joystick.handleJoystickStart())}function d(){if(!o)return;c.set(0),u.set(0),o=!1,r.set(s),t.onEnd?.();const b=e();b&&(b.handleJoystickEnd?b.handleJoystickEnd():b.joystick&&b.joystick.handleJoystickEnd&&b.joystick.handleJoystickEnd())}function C(b){if(o==!1)return;const M=b.currentTarget||b.target;let G=b.getLocalPosition(M),O=G.x-(a?.x??0),K=G.y-(a?.y??0),H=new Mo.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),ot=Math.atan(At);T=ot*180/Math.PI;let tt=0,ut=0;O*O+K*K>=i*i?(tt=i*Math.cos(ot),ut=i*Math.sin(ot)):(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 It={angle:T,direction:W,power:h};t.onChange?.(It);const Jt=e();Jt&&(Jt.handleJoystickChange?Jt.handleJoystickChange(It):Jt.joystick&&Jt.joystick.handleJoystickChange&&Jt.joystick.handleJoystickChange(It))}let E,m;t.outer?m=gt(un,{image:t.outer,anchor:{x:.5,y:.5},scale:t.outerScale}):m=gt(ae,{draw:b=>{b.circle(0,0,i).fill(t.outerColor)},alpha:.5});const w={scale:t.innerScale,x:c,y:u,alpha:r};return t.inner?E=t.inner:E=gt(ae,{draw:b=>{b.circle(0,0,n*2.5).fill(t.innerColor)},...w}),gt(tA,{...A,pointerdown:f,pointerup:d,pointerupoutside:d,pointermove:C},m,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 o=null;if(n===null)o=e==="next"?s[0]:s[s.length-1];else{const a=s.indexOf(n);e==="next"?a<s.length-1?o=s[a+1]:o=s[0]:a>0?o=s[a-1]:o=s[s.length-1]}if(o!==null){const a=i.tabindex;_(a)&&typeof a.set=="function"?a.set(o):this.setIndex(t,o)}}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 o=n.componentInstance;if(o&&o.element&&typeof o.element.focus=="function"){const a=o.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 o=s.focusables.get(e);if(!o)return;const a=i||s.viewport;if(!a)return;const h=this.getElementBounds(o);a.getVisibleBounds();const c=n.padding||0,u=n.center!==!1,r=n.smooth||!1,l=n.duration||300;if(this.isElementVisible(o,a)){if(u){const g=h.x+h.width/2,f=h.y+h.height/2;r?this.animateScroll(t,a,g,f,l):a.moveCenter(g,f)}return}if(u){const g=h.x+h.width/2,f=h.y+h.height/2;r?this.animateScroll(t,a,g,f,l):a.moveCenter(g,f)}else{const g=h.x-c,f=h.y-c,d=h.width+c*2,C=h.height+c*2;if(r){const E=h.x+h.width/2,m=h.y+h.height/2;this.animateScroll(t,a,E,m,l)}else a.fit(g,f,d,C,c)}}animateScroll(t,e,i,n,s){const o=e.center,a=o.x,h=o.y,c={startTime:Date.now(),startX:a,startY:h,targetX:i,targetY:n,duration:s};this.scrollAnimations.set(t,c);const u=()=>{const r=this.scrollAnimations.get(t);if(!r)return;const l=Date.now()-r.startTime,g=Math.min(l/r.duration,1),f=1-Math.pow(1-g,3),d=r.startX+(r.targetX-r.startX)*f,C=r.startY+(r.targetY-r.startY)*f;e.moveCenter(d,C),g<1?requestAnimationFrame(u):this.scrollAnimations.delete(t)};requestAnimationFrame(u)}};ue.instance=null;let RA=ue;const yt=RA.getInstance();class Qc extends Dt{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=ci(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}}bt("focusNavigation",Qc);class pc{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;yt.registerContainer(this.containerId,{focusables:new Map,currentIndex:e,focusedElement:i,onFocusChange:t.onFocusChange,autoScroll:t.autoScroll,viewport:n})}async onMount(t){if(yt.updateContainer(this.containerId,{element:t}),t.props.controls){const e=ci(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)}yt.setTabindex(this.containerId,t.propObservables?.tabindex),setTimeout(()=>{this.registerChildren(t)},0)}onUpdate(t){const e=t.viewport||t.context?.viewport;yt.updateContainer(this.containerId,{viewport:e,autoScroll:t.autoScroll,onFocusChange:t.onFocusChange})}async onDestroy(t,e){for(const i of this.registeredFocusables)yt.unregisterFocusable(this.containerId,i);this.registeredFocusables.clear(),yt.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(o=>{if(o&&typeof o=="object"&&"elements"in o){const a=o.elements||[];Array.isArray(a)&&e(a)}else Array.isArray(o)?e(o):o&&i(o)});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 o=n.props.attrs.tabindex;s=_(o)?o():o}else if(n.props?.tabindex!==void 0){const o=n.props.tabindex;s=_(o)?o():o}if(s!==void 0&&s>=0&&(this.registeredFocusables.has(s)||(yt.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 o=(_(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(o)}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 o=s.elements||[];Array.isArray(o)&&e(o)}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",pc);const Nr=A=>rt("Navigation",A),yc=Nr,mc=async(A,t,e)=>{const{components:i,autoRegister:n,enableLayout:s,...o}=e??{};s!==!1&&await Promise.resolve().then(()=>Bg),i?(n!==!1&&Ri(),Object.entries(i).forEach(([u,r])=>{st(u,r)})):Ri();const a=new D.Application;await a.init({resizeTo:A,autoStart:!1,antialias:!0,...o});const h=await gt(t);if(h.tag!="Canvas")throw new Error("Canvas is required");h.render(A,a);const{backgroundColor:c}=Ct(h.props,{backgroundColor:"black"});return a.renderer.background.color=c(),{canvasElement:h,app:a}};function wc(A){return yt.getCurrentIndexSignal(A)}function vc(A){return yt.getFocusedElementSignal(A)}function Dc(A,t){const e=yt.getCurrentIndexSignal(A),i=yt.getFocusedElementSignal(A);if(!e||!i)return console.warn(`FocusContainer with id "${A}" not found`),()=>{};const n=it(()=>{const s=e(),o=i();t(s,o)});return()=>{n.subscription?.unsubscribe()}}const bc={linear:El,easeIn:vi,easeInOut:Xs,easeOut:Cl,circIn:Zs,circInOut:Ql,circOut:zs,backIn:Di,backInOut:yl,backOut:pl,anticipate:ml,bounceIn:bl,bounceInOut:Sl,bounceOut:mA};class Sc{constructor(t,e,i,n,s,o,a=0){this.x0=t,this.y0=e,this.x1=i,this.y1=n,this.x2=s,this.y2=o,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:o,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,r=Math.sqrt((n-e)*(n-e)+(s-i)*(s-i)),l=Math.sqrt((o-e)*(o-e)+(a-i)*(a-i)),g=Math.atan2(s-i,n-e),f=r/c,d=l/c;u.rotate(-g),u.scale(f,d),t&&u.translate(t.x,t.y),this.transform=u}return{texture:this.texture,matrix:this.transform}}}function xc(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 kc(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 o=((A-e.min)%n+n)%n;return e.min+o}function Mc(A,t,e="wrap"){const i=n=>{const s=A(),o=xc(t);if(!o)return;const a=kc(n,s,o,e);a!==s&&A.set(a)};return{next:n=>i(A()+n),set:n=>i(n)}}var Rc=(()=>{var A=VA&&VA.tagName.toUpperCase()==="SCRIPT"&&VA.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(I,B){i=I,n=B});var s=Object.assign({},e),o="";typeof document<"u"&&document.currentScript&&(o=document.currentScript.src),A&&(o=A),o.indexOf("blob:")!==0?o=o.substr(0,o.replace(/[?#].*/,"").lastIndexOf("/")+1):o="";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,r=!1;function l(I,B,Q){Q=B+Q;for(var p="";!(B>=Q);){var y=I[B++];if(!y)break;if(y&128){var v=I[B++]&63;if((y&224)==192)p+=String.fromCharCode((y&31)<<6|v);else{var S=I[B++]&63;y=(y&240)==224?(y&15)<<12|v<<6|S:(y&7)<<18|v<<12|S<<6|I[B++]&63,65536>y?p+=String.fromCharCode(y):(y-=65536,p+=String.fromCharCode(55296|y>>10,56320|y&1023))}}else p+=String.fromCharCode(y)}return p}var g,f,d,C,E,m,w,b,M;function G(){var I=u.buffer;g=I,e.HEAP8=f=new Int8Array(I),e.HEAP16=C=new Int16Array(I),e.HEAP32=m=new Int32Array(I),e.HEAPU8=d=new Uint8Array(I),e.HEAPU16=E=new Uint16Array(I),e.HEAPU32=w=new Uint32Array(I),e.HEAPF32=b=new Float32Array(I),e.HEAPF64=M=new Float64Array(I)}var O,K=[],H=[],T=[];function W(){var I=e.preRun.shift();K.unshift(I)}var At=0,ot=null;function tt(I){throw e.onAbort&&e.onAbort(I),I="Aborted("+I+")",h(I),r=!0,I=new WebAssembly.RuntimeError(I+". Build with -sASSERTIONS for more info."),n(I),I}function ut(I){return I.startsWith("data:application/octet-stream;base64,")}var It;if(It="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/ArUBHgFhAWEAHwFhAWIAAwFhAWMACQFhAWQAFgFhAWUAEQFhAWYAIAFhAWcAAAFhAWgAIQFhAWkAAwFhAWoAAAFhAWsAFwFhAWwACgFhAW0ABQFhAW4AAwFhAW8AAQFhAXAAFwFhAXEABgFhAXIAAAFhAXMAIgFhAXQACgFhAXUADQFhAXYAFgFhAXcAAgFhAXgAAwFhAXkAGAFhAXoAAgFhAUEAAQFhAUIAEQFhAUMAAQFhAUQAAAOiAqACAgMSBwcACRkDAAoRBgYKEwAPDxMBBiMTCgcHGgMUASQFJRQHAwMKCgMmAQYYDxobFAAKBw8KBwMDAgkCAAAFGwACBwIHBgIDAQMIDAABKAkHBQURACkZASoAAAIrLAIALQcHBy4HLwkF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fSMAQSBrIgMkAAJAIAAoAgwiAQRAIAAgACoClAMgACoCmAMgAREnACIFIAVbDQEgA0GqHjYCACAAQQVB2CUgAxAsECQACyADQRBqIAAQMgJAIAMoAhAiAiADKAIUIgFyRQ0AAkADQCABIAIoAuwDIAIoAugDIgJrQQJ1SQRAIAIgAUECdGooAgAiASgC3AMNAyABLwAVIAEtABdBEHRyIgJBgOAAcUGAwABHBEAgAkEIdkEPcSICBH8gAgUgAC0AFUEEdgtBBUYEQCAALQAUQQhxDQQLIAEtAABBAnENAyAEIAEgBBshBAsgA0EQahAuIAMoAhQiASADKAIQIgJyDQEMAwsLEAIACyABIQQLIAMoAhgiAQRAA0AgASgCACECIAEQIyACIgENAAsLIARFBEAgACoCmAMhBQwBCyAEEE4gBCoCoAOSIQULIANBIGokACAFC6EDAQh/AkAgACgC6AMiBSAAKALsAyIHRwRAA0AgACAFKAIAIgIoAuQDRwRAAkAgACgC9AMoAgAiAQRAIAIgACAGIAERBgAiAQ0BC0GIBBAeIgEgAigCEDYCECABIAIpAgg3AgggASACKQIANwIAIAFBFGogAkEUakHoABArGiABQgA3AoABIAFB/ABqIgNBADsBACABQgA3AogBIAFCADcCkAEgAyACQfwAahCgASABQZgBaiACQZgBakHQAhArGiABQQA2AvADIAFCADcC6AMgAigC7AMiAyACKALoAyIERwRAIAMgBGsiBEEASA0FIAEgBBAeIgM2AuwDIAEgAzYC6AMgASADIARqNgLwAyACKALoAyIEIAIoAuwDIghHBEADQCADIAQoAgA2AgAgA0EEaiEDIARBBGoiBCAIRw0ACwsgASADNgLsAwsgASACKQL0AzcC9AMgASACKAKEBDYChAQgASACKQL8AzcC/AMgAUEANgLkAwsgBSABNgIAIAEgADYC5AMLIAZBAWohBiAFQQRqIgUgB0cNAAsLDwsQAgALUAACQAJAAkACQAJAIAIOBAQAAQIDCyAAIAEgAUEwahBDDwsgACABIAFBMGogAxBEDwsgACABIAFBMGoQQg8LECQACyAAIAEgAUEwaiADEEULcAIBfwF9IwBBEGs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sgACgCACIBBEAgACABNgIEIAEQIwsgABAjC4EEAQN/IwBBEGsiAyQAIABCADcCBCAAQcEgOwAVIABCADcCDCAAQoCAgICAgIACNwIYIAAgAC0AF0HgAXE6ABcgACAALQAAQeABcUEFcjoAACAAIAAtABRBgAFxOgAUIABBIGpBAEHOABAqGiAAQgA3AXIgAEGEgBA2AW4gAEEANgF6IABCADcCgAEgAEIANwKIASAAQgA3ApABIABCADcCoAEgAEKAgICAgICA4P8ANwKYASAAQQA6AKgBIABBrAFqQQBBxAEQKhogAEHwAmohBCAAQbABaiECA0AgAkKAgID8i4CAwL9/NwIQIAJCgYCAgBA3AgggAkKAgID8i4CAwL9/NwIAIAJBGGoiAiAERw0ACyAAQoCAgPyLgIDAv383AvACIABCgICA/IuAgMC/fzcCgAMgAEKBgICAEDcC+AIgAEKAgID+h4CA4P8ANwKUAyAAQoCAgP6HgIDg/wA3AowDIABBiANqIgIgAi0AAEH4AXE6AAAgAEGcA2pBAEHYABAqGiAAQQA6AIQEIABBgICA/gc2AoAEIABBADoA/AMgAEGAgID+BzYC+AMgACABNgL0AyABBEAgAS0ACEEBcQRAIAAgAC0AFEHzAXFBCHI6ABQgACAALwAVQfD/A3FBBHI7ABULIANBEGokACAADwsgA0GiGjYCACADEHIQJAALMwAgACABQQJ0QfwlaigCAEECdGoqApQDIABBFGoiACABQQEgAhAiIAAgAUEBIAIQIZKSC44DAQp/IwBB0AJrIgEkACAAKALoAyIDIAAoAuwDIgVHBEAgAUGMAmohBiABQeABaiEHIAFBIGohCCABQRxqIQkgAUEQaiEEA0AgAygCACICLQAXQRB0QYCAMHFBgIAgRgRAIAFBCGpBAEHEAhAqGiABQYCAgP4HNgIMIARBADoACCAEQgA3AgAgCUEAQcQBECoaIAghAANAIABCgICA/IuAgMC/fzcCECAAQoGAgIAQNwIIIABCgICA/IuAgMC/fzcCACAAQRhqIgAgB0cNAAsgAUKAgID8i4CAwL9/NwPwASABQoGAgIAQNwPoASABQoCAgPyLgIDAv383A+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JAAkACQCABQQlrDhIACgsMCgsCAwQFDAsMDAoLBwgJCyACIAIoAgAiAUEEajYCACAAIAEoAgA2AgAPCwALIAIgAigCACIBQQRqNgIAIAAgATIBADcDAA8LIAIgAigCACIBQQRqNgIAIAAgATMBADcDAA8LIAIgAigCACIBQQRqNgIAIAAgATAAADcDAA8LIAIgAigCACIBQQRqNgIAIAAgATEAADcDAA8LAAsgAiACKAIAQQdqQXhxIgFBCGo2AgAgACABKwMAOQMADwsgACACIAMRAQALDwsgAiACKAIAIgFBBGo2AgAgACABNAIANwMADwsgAiACKAIAIgFBBGo2AgAgACABNQIANwMADwsgAiACKAIAQQdqQXhxIgFBCGo2AgAgACABKQMANwMAC84BAgN/An0jAEEQayIDJABBASEEIANBCGogAEH8AGoiBSAAIAFBAXRqQegAaiIBLwEAEB8CQAJAIAMqAggiByACKgIAIgZcBEAgByAHWwRAIAItAAQhAgwCCyAGIAZcIQQLIAItAAQhAiAERQ0AIAMtAAwgAkH/AXFGDQELIAUgASAGIAIQOQNAIAAtAAAiAUEEcQ0BIAAgAUEEcjoAACAAKAIQIgEEQCAAIAERAAALIABBgICA/gc2ApwBIAAoAuQDIgANAAsLIANBEGokAAtdAQR/IAAoAgAhAgNAIAIsAAAiAxBXBEBBfyEEIAAgAkEBaiICNgIAIAFBzJmz5gBNBH9BfyADQTBrIgMgAUEKbCIEaiADIARB/////wdzShsFIAQLIQEMAQsLIAELrhQCEn8BfiMAQdAAayIIJAAgCCABNgJMIAhBN2ohFyAIQThqIRQCQAJAAkACQANAIAEhDSAHIA5B/////wdzSg0BIAcgDmohDgJAAkACQCANIgctAAAiCQRAA0ACQAJAIAlB/wFxIgFFBEAgByEBDAELIAFBJUcNASAHIQkDQCAJLQABQSVHBEAgCSEBDAILIAdBAWohByAJLQACIQogCUECaiIBIQkgCkElRg0ACwsgByANayIHIA5B/////wdzIhhKDQcgAARAIAAgDSAHECYLIAcNBiAIIAE2AkwgAUEBaiEHQX8hEgJAIAEsAAEiChBXRQ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fyAABEAgACgCACIBBEAgARAjCyAAECMLC0kBAn9BBBAeIQFBIBAeIgBBADYCHCAAQoCAgICAgIDAPzcCFCAAQgA3AgwgAEEAOgAIIABBAzYCBCAAQQA2AgAgASAANgIAIAELIAAgAkEFR0EAIAIbRQRAQbgwIAMgBBBJDwsgAyAEEHALIgEBfiABIAKtIAOtQiCGhCAEIAARFQAiBUIgiKckASAFpwuoAQEFfyAAKAJUIgMoAgAhBSADKAIEIgQgACgCFCAAKAIcIgdrIgYgBCAGSRsiBgRAIAUgByAGECsaIAMgAygCACAGaiIFNgIAIAMgAygCBCAGayIENgIECyAEIAIgAiAESxsiBARAIAUgASAEECsaIAMgAygCACAEaiIFNgIAIAMgAygCBCAEazYCBAsgBUEAOgAAIAAgACgCLCIBNgIcIAAgATYCFCACCwQAQgALBABBAAuKBQIGfgJ/IAEgASgCAEEHakF4cSIBQRBqNgIAIAAhCSABKQMAIQMgASkDCCEGIwBBIGsiCCQAAkAgBkL///////////8AgyIEQoCAgICAgMCAPH0gBEKAgICAgIDA/8MAfVQEQCAGQgSGIANCPIiEIQQgA0L//////////w+DIgNCgYCAgICAgIAIWgRAIARCgYCAgICAgIDAAHwhAgwCCyAEQoCAgICAgICAQH0hAiADQoCAgICAgICACFINASACIARCAYN8IQIMAQsgA1AgBEKAgICAgIDA//8AVCAEQoCAgICAgMD//wBRG0UEQCAGQgSGIANCPIiEQv////////8Dg0KAgICAgICA/P8AhCECDAELQoCAgICAgID4/wAhAiAEQv///////7//wwBWDQBCACECIARCMIinIgBBkfcASQ0AIAMhAiAGQv///////z+DQoCAgICAgMAAhCIFIQcCQCAAQYH3AGsiAUHAAHEEQCACIAFBQGqthiEHQgAhAgwBCyABRQ0AIAcgAa0iBIYgAkHAACABa62IhCEHIAIgBIYhAgsgCCACNwMQIAggBzcDGAJAQYH4ACAAayIAQcAAcQRAIAUgAEFAaq2IIQNCACEFDAELIABFDQAgBUHAACAAa62GIAMgAK0iAoiEIQMgBSACiCEFCyAIIAM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PBBYyAIRAAAAAAAAAAAZnEEQCAIqwwBC0EACyEBIAYoAgwhAyAAIAEpAwA3AwAgACABKQMINwMIIAMQESAGQTBqJAALCQAgABCQARAjCwwAIAAoAghB6BwQZgsJACAAEJIBECMLVQECfyMAQTBrIgIkACABIAAoAgQiA0EBdWohASAAKAIAIQAgAiABIANBAXEEfyABKAIAIABqKAIABSAACxEBAEEwEB4gAkEwECshACACQTBqJAAgAAs7AQF/IAEgACgCBCIFQQF1aiEBIAAoAgAhACABIAIgAyAEIAVBAXEEfyABKAIAIABqKAIABSAACxEdAAs3AQF/IAEgACgCBCIDQQF1aiEBIAAoAgAhACABIAIgA0EBcQR/IAEoAgAgAGooAgAFIAALERIACzcBAX8gASAAKAIEIgNBAXVqIQEgACgCACEAIAEgAiADQQFxBH8gASgCACAAaigCAAUgAAsRDAALNQEBfyABIAAoAgQiAkEBdWohASAAKAIAIQAgASACQQFxBH8gASgCACAAaigCAAUgAAsRCwALYQECfyMAQRBrIgIkACABIAAoAgQiA0EBdWohASAAKAIAIQAgAiABIANBAXEEfyABKAIAIABqKAIABSAACxEBAEEQEB4iACACKQMINwMIIAAgAikDADcDACACQRBqJAAgAAtjAQJ/IwBBEGsiAyQAIAEgACgCBCIEQQF1aiEBIAAoAgAhACADIAEgAiAEQQFxBH8gASgCACAAaigCAAUgAAsRAwBBEBAeIgAgAykDCDcDCCAAIAMpAwA3AwAgA0EQaiQAIAALNwEBfyABIAAoAgQiA0EBdWohASAAKAIAIQAgASACIANBAXEEfyABKAIAIABqKAIABSAACxEEAAs5AQF/IAEgACgCBCIEQQF1aiEBIAAoAgAhACABIAIgAyAEQQFxBH8gASgCACAAaigCAAUgAAsRCAALCQAgASAAEQIACwUAQcM7Cw8AIAEgACgCAGogAjYCAAsNACABIAAoAgBqKAIACxgBAX9BEBAeIgBCADcDCCAAQQA2AgAgAAsYAQF/QRAQHiIAQgA3AwAgAEIANwMIIAALDABBMBAeQQBBMBAqCzcBAX8gASAAKAIEIgNBAXVqIQEgACgCACEAIAEgAiADQQFxBH8gASgCACAAaigCAAUgAAsRHgALBQBBvjsLIQAgACABKAIAIAEgASwAC0EASBtBuzsgAigCABAQNgIACyoBAX9BDBAeIgFBADoABCABIAAoAgA2AgggAEEANgIAIAFB2Cc2AgAgAQsFAEG7OwsFAEG4OwshACAAIAEoAgAgASABLAALQQBIG0GkOyACKAIAEBA2AgAL2AEBBH8jAEEgayIDJAAgASgCACIEQfD///8HSQRAAkACQCAEQQtPBEAgBEEPckEBaiIFEB4hBiADIAVBgICAgHhyNgIQIAMgBjYCCCADIAQ2AgwgBCAGaiEFDAELIAMgBDoAEyADQQhqIgYgBGohBSAERQ0BCyAGIAFBBGogBBArGgsgBUEAOgAAIAMgAjYCACADQRhqIANBCGogAyAAEQMAIAMoAhgQHSADKAIYIgAQBiADKAIAEAYgAywAE0EASARAIAMoAggQIwsgA0EgaiQAIAAPCxACAAsqAQF/QQwQHiIBQQA6AAQgASAAKAIANgIIIABBADYCACABQeAmNgIAIAELBQBBpDsLaQECfyMAQRBrIgYkACABIAAoAgQiB0EBdWohASAAKAIAIQAgBiABIAIgAyAEIAUgB0EBcQR/IAEoAgAgAGooAgAFIAALERAAQRAQHiIAIAYpAwg3AwggACAGKQMANwMAIAZBEGokACAACwUAQaA7Cx0AIAAoAgAiACAALQAAQfcBcUEIQQAgARtyOgAAC6oBAgJ/AX0jAEEQayICJAAgACgCACEAIAFB/wFxIgNBBkkEQAJ/AkACQAJAIANBBGsOAgABAgsgAEHUA2ogAC0AiANBA3FBAkYNAhogAEHMA2oMAgsgAEHMA2ogAC0AiANBA3FBAkYNARogAEHUA2oMAQsgACABQf8BcUECdGpBzANqCyoCACEEIAJBEGokACAEuw8LIAJB7hA2AgAgAEEFQdglIAIQLBAkAAuqAQICfwF9IwBBEGsiAiQAIAAoAgAhACABQf8BcSIDQQZJBEACfwJAAkACQCADQQRrDgIAAQILIABBxANqIAAtAIgDQQNxQQJGDQIaIABBvANqDAILIABBvANqIAAtAIgD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AQgBUEBQQAgCkEIakEAQfA6KAIAED0EQCAAIAAtAIgDQQNxIAQgBRB2IABEAAAAAAAAAABEAAAAAAAAAAAQcwsgCkFAayQACw0AIAAoAgAtAABBAXELFQAgACgCACIAIAAtAABB/gFxOgAACxAAIAAoAgAtAABBBHFBAnYLegECfyMAQRBrIgEkACAAKAIAIgAoAggEQANAIAAtAAAiAkEEcUUEQCAAIAJBBHI6AAAgACgCECICBEAgACACEQAACyAAQYCAgP4HNgKcASAAKALkAyIADQELCyABQRBqJAAPCyABQYAINgIAIABBBUHYJSABECwQJAALLgEBfyAAKAIIIQEgAEEANgIIIAEEQCABIAEoAgAoAgQRAAALIAAoAgBBADYCEAsXACAAKAIEKAIIIgAgACgCACgCCBEAAAsuAQF/IAAoAgghAiAAIAE2AgggAgRAIAIgAigCACgCBBEAAAsgACgCAEEFNgIQCz4BAX8gACgCBCEBIABBADYCBCABBEAgASABKAIAKAIEEQAACyAAKAIAIgBBADYCCCAAIAAtAABB7wFxOgAAC0kBAX8jAEEQayIGJAAgBiABKAIEKAIEIgEgAiADIAQgBSABKAIAKAIIERAAIAAgBisDALY4AgAgACAGKwMItjgCBCAGQRBqJAALcwECfyMAQRBrIgIkACAAKAIEIQMgACABNgIEIAMEQCADIAMoAgAoAgQRAAALIAAoAgAiACgC6AMgACgC7ANHBEAgAkH5IzYCACAAQQVB2CUgAhAsECQACyAAQQQ2AgggACAALQAAQRByOgAAIAJBEGokAAs8AQF/AkAgACgCACIAKALsAyAAKALoAyIAa0ECdSABTQ0AIAAgAUECdGooAgAiAEUNACAAKAIEIQILIAILGQAgACgCACgC5AMiAEUEQEEADwsgACgCBAsXACAAKAIAIgAoAuwDIAAoAugDa0ECdQuOAwEDfyMAQdACayICJAACQCAAKAIAIgAoAuwDIAAoAugDRg0AIAEoAgAiAygC5AMhASAAIAMQb0UNACAAIAFGBEAgAkEIakEAQcQCECoaIAJBADoAGCACQgA3AxAgAkGAgID+BzYCDCACQRxqQQBBxAEQKhogAkHg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QdgyCwHT",!ut(It)){var Jt=It;It=e.locateFile?e.locateFile(Jt,o):o+Jt}function Tt(){var I=It;try{if(I==It&&c)return new Uint8Array(c);if(ut(I))try{var B=Hg(I.slice(37)),Q=new Uint8Array(B.length);for(I=0;I<B.length;++I)Q[I]=B.charCodeAt(I);var p=Q}catch{throw Error("Converting base64 string to bytes failed.")}else p=void 0;var y=p;if(y)return y;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(It,{credentials:"same-origin"}).then(function(I){if(!I.ok)throw"failed to load wasm binary file at '"+It+"'";return I.arrayBuffer()}).catch(function(){return Tt()})}function vn(I){for(;0<I.length;)I.shift()(e)}function co(I){if(I===void 0)return"_unknown";I=I.replace(/[^a-zA-Z0-9_]/g,"$");var B=I.charCodeAt(0);return 48<=B&&57>=B?"_"+I:I}function Dn(I,B){return I=co(I),function(){return B.apply(this,arguments)}}var Mt=[{},{value:void 0},{value:null},{value:!0},{value:!1}],bn=[];function HA(I){var B=Error,Q=Dn(I,function(p){this.name=I,this.message=p,p=Error(p).stack,p!==void 0&&(this.stack=this.toString()+`
4
4
  `+p.replace(/^Error(:[^\n]*)?\n/,""))});return Q.prototype=Object.create(B.prototype),Q.prototype.constructor=Q,Q.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},Q}var Ne=void 0;function P(I){throw new Ne(I)}var sA=I=>(I||P("Cannot use deleted val. handle = "+I),Mt[I].value),LA=I=>{switch(I){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var B=bn.length?bn.pop():Mt.length;return Mt[B]={ga:1,value:I},B}},go=void 0,uo=void 0;function at(I){for(var B="";d[I];)B+=uo[d[I++]];return B}var rA=[];function Sn(){for(;rA.length;){var I=rA.pop();I.M.$=!1,I.delete()}}var oA=void 0,Kt={};function xn(I,B){for(B===void 0&&P("ptr should not be undefined");I.R;)B=I.ba(B),I=I.R;return B}var Ie={};function Io(I){I=vo(I);var B=at(I);return jt(I),B}function fo(I,B){var Q=Ie[I];return Q===void 0&&P(B+" has unknown type "+Io(I)),Q}function UA(){}var kn=!1;function Bo(I){--I.count.value,I.count.value===0&&(I.T?I.U.W(I.T):I.P.N.W(I.O))}function Eo(I,B,Q){return B===Q?I:Q.R===void 0?null:(I=Eo(I,B,Q.R),I===null?null:Q.na(I))}var Co={};function dg(I,B){return B=xn(I,B),Kt[B]}var Qo=void 0;function TA(I){throw new Qo(I)}function OA(I,B){return B.P&&B.O||TA("makeClassHandle requires ptr and ptrType"),!!B.U!=!!B.T&&TA("Both smartPtrType and smartPtr must be specified"),B.count={value:1},Ge(Object.create(I,{M:{value:B}}))}function Ge(I){return typeof FinalizationRegistry>"u"?(Ge=B=>B,I):(kn=new FinalizationRegistry(B=>{Bo(B.M)}),Ge=B=>{var Q=B.M;return Q.T&&kn.register(B,{M:Q},B),B},UA=B=>{kn.unregister(B)},Ge(I))}var PA={};function Mn(I){for(;I.length;){var B=I.pop();I.pop()(B)}}function aA(I){return this.fromWireType(m[I>>2])}var He={},JA={};function ee(I,B,Q){function p(k){k=Q(k),k.length!==I.length&&TA("Mismatched type converter count");for(var F=0;F<I.length;++F)Yt(I[F],k[F])}I.forEach(function(k){JA[k]=B});var y=Array(B.length),v=[],S=0;B.forEach((k,F)=>{Ie.hasOwnProperty(k)?y[F]=Ie[k]:(v.push(k),He.hasOwnProperty(k)||(He[k]=[]),He[k].push(()=>{y[F]=Ie[k],++S,S===v.length&&p(y)}))}),v.length===0&&p(y)}function Rn(I){switch(I){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+I)}}function Yt(I,B,Q={}){if(!("argPackAdvance"in B))throw new TypeError("registerType registeredInstance requires argPackAdvance");var p=B.name;if(I||P('type "'+p+'" must have a positive integer typeid pointer'),Ie.hasOwnProperty(I)){if(Q.ua)return;P("Cannot register type '"+p+"' twice")}Ie[I]=B,delete JA[I],He.hasOwnProperty(I)&&(B=He[I],delete He[I],B.forEach(y=>y()))}function Fn(I){P(I.M.P.N.name+" instance already deleted")}function Ae(){}function _n(I,B,Q){if(I[B].S===void 0){var p=I[B];I[B]=function(){return I[B].S.hasOwnProperty(arguments.length)||P("Function '"+Q+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+I[B].S+")!"),I[B].S[arguments.length].apply(this,arguments)},I[B].S=[],I[B].S[p.Z]=p}}function Eg(I,B){e.hasOwnProperty(I)?(P("Cannot register public name '"+I+"' twice"),_n(e,I,I),e.hasOwnProperty(void 0)&&P("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),e[I].S[void 0]=B):e[I]=B}function Cg(I,B,Q,p,y,v,S,k){this.name=I,this.constructor=B,this.X=Q,this.W=p,this.R=y,this.pa=v,this.ba=S,this.na=k,this.ja=[]}function Nn(I,B,Q){for(;B!==Q;)B.ba||P("Expected null or instance of "+Q.name+", got an instance of "+B.name),I=B.ba(I),B=B.R;return I}function Qg(I,B){return B===null?(this.ea&&P("null is not a valid "+this.name),0):(B.M||P('Cannot pass "'+Un(B)+'" as a '+this.name),B.M.O||P("Cannot pass deleted object as a pointer of type "+this.name),Nn(B.M.O,B.M.P.N,this.N))}function pg(I,B){if(B===null){if(this.ea&&P("null is not a valid "+this.name),this.da){var Q=this.fa();return I!==null&&I.push(this.W,Q),Q}return 0}if(B.M||P('Cannot pass "'+Un(B)+'" as a '+this.name),B.M.O||P("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&B.M.P.ca&&P("Cannot convert argument of type "+(B.M.U?B.M.U.name:B.M.P.name)+" to parameter type "+this.name),Q=Nn(B.M.O,B.M.P.N,this.N),this.da)switch(B.M.T===void 0&&P("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:B.M.U===this?Q=B.M.T:P("Cannot convert argument of type "+(B.M.U?B.M.U.name:B.M.P.name)+" to parameter type "+this.name);break;case 1:Q=B.M.T;break;case 2:if(B.M.U===this)Q=B.M.T;else{var p=B.clone();Q=this.xa(Q,LA(function(){p.delete()})),I!==null&&I.push(this.W,Q)}break;default:P("Unsupporting sharing policy")}return Q}function yg(I,B){return B===null?(this.ea&&P("null is not a valid "+this.name),0):(B.M||P('Cannot pass "'+Un(B)+'" as a '+this.name),B.M.O||P("Cannot pass deleted object as a pointer of type "+this.name),B.M.P.ca&&P("Cannot convert argument of type "+B.M.P.name+" to parameter type "+this.name),Nn(B.M.O,B.M.P.N,this.N))}function Wt(I,B,Q,p){this.name=I,this.N=B,this.ea=Q,this.ca=p,this.da=!1,this.W=this.xa=this.fa=this.ka=this.Ba=this.wa=void 0,B.R!==void 0?this.toWireType=pg:(this.toWireType=p?Qg:yg,this.V=null)}function mg(I,B){e.hasOwnProperty(I)||TA("Replacing nonexistant public symbol"),e[I]=B,e[I].Z=void 0}function wg(I,B){var Q=[];return function(){if(Q.length=0,Object.assign(Q,arguments),I.includes("j")){var p=e["dynCall_"+I];p=Q&&Q.length?p.apply(null,[B].concat(Q)):p.call(null,B)}else p=O.get(B).apply(null,Q);return p}}function Rt(I,B){I=at(I);var Q=I.includes("j")?wg(I,B):O.get(B);return typeof Q!="function"&&P("unknown function pointer with signature "+I+": "+B),Q}var po=void 0;function KA(I,B){function Q(v){y[v]||Ie[v]||(JA[v]?JA[v].forEach(Q):(p.push(v),y[v]=!0))}var p=[],y={};throw B.forEach(Q),new po(I+": "+p.map(Io).join([", "]))}function Gn(I,B,Q,p,y){var v=B.length;2>v&&P("argTypes array size mismatch! Must at least get return value and 'this' types!");var S=B[1]!==null&&Q!==null,k=!1;for(Q=1;Q<B.length;++Q)if(B[Q]!==null&&B[Q].V===void 0){k=!0;break}var F=B[0].name!=="void",R=v-2,N=Array(R),L=[],J=[];return function(){if(arguments.length!==R&&P("function "+I+" called with "+arguments.length+" arguments, expected "+R+" args!"),J.length=0,L.length=S?2:1,L[0]=y,S){var nt=B[1].toWireType(J,this);L[1]=nt}for(var V=0;V<R;++V)N[V]=B[V+2].toWireType(J,arguments[V]),L.push(N[V]);if(V=p.apply(null,L),k)Mn(J);else for(var Bt=S?1:2;Bt<B.length;Bt++){var Ft=Bt===1?nt:N[Bt-2];B[Bt].V!==null&&B[Bt].V(Ft)}return nt=F?B[0].fromWireType(V):void 0,nt}}function Hn(I,B){for(var Q=[],p=0;p<I;p++)Q.push(w[B+4*p>>2]);return Q}function Ln(I){4<I&&--Mt[I].ga===0&&(Mt[I]=void 0,bn.push(I))}function Un(I){if(I===null)return"null";var B=typeof I;return B==="object"||B==="array"||B==="function"?I.toString():""+I}function vg(I,B){switch(B){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: "+I)}}function Dg(I,B,Q){switch(B){case 0:return Q?function(p){return f[p]}:function(p){return d[p]};case 1:return Q?function(p){return C[p>>1]}:function(p){return E[p>>1]};case 2:return Q?function(p){return m[p>>2]}:function(p){return w[p>>2]};default:throw new TypeError("Unknown integer type: "+I)}}function bg(I,B){for(var Q="",p=0;!(p>=B/2);++p){var y=C[I+2*p>>1];if(y==0)break;Q+=String.fromCharCode(y)}return Q}function Sg(I,B,Q){if(Q===void 0&&(Q=2147483647),2>Q)return 0;Q-=2;var p=B;Q=Q<2*I.length?Q/2:I.length;for(var y=0;y<Q;++y)C[B>>1]=I.charCodeAt(y),B+=2;return C[B>>1]=0,B-p}function xg(I){return 2*I.length}function kg(I,B){for(var Q=0,p="";!(Q>=B/4);){var y=m[I+4*Q>>2];if(y==0)break;++Q,65536<=y?(y-=65536,p+=String.fromCharCode(55296|y>>10,56320|y&1023)):p+=String.fromCharCode(y)}return p}function Mg(I,B,Q){if(Q===void 0&&(Q=2147483647),4>Q)return 0;var p=B;Q=p+Q-4;for(var y=0;y<I.length;++y){var v=I.charCodeAt(y);if(55296<=v&&57343>=v){var S=I.charCodeAt(++y);v=65536+((v&1023)<<10)|S&1023}if(m[B>>2]=v,B+=4,B+4>Q)break}return m[B>>2]=0,B-p}function Rg(I){for(var B=0,Q=0;Q<I.length;++Q){var p=I.charCodeAt(Q);55296<=p&&57343>=p&&++Q,B+=4}return B}var Fg={};function yo(I){var B=Fg[I];return B===void 0?at(I):B}var YA=[];function _g(I){var B=YA.length;return YA.push(I),B}function Ng(I,B){for(var Q=Array(I),p=0;p<I;++p)Q[p]=fo(w[B+4*p>>2],"parameter "+p);return Q}var mo=[],Gg=[null,[],[]];Ne=e.BindingError=HA("BindingError"),e.count_emval_handles=function(){for(var I=0,B=5;B<Mt.length;++B)Mt[B]!==void 0&&++I;return I},e.get_first_emval=function(){for(var I=5;I<Mt.length;++I)if(Mt[I]!==void 0)return Mt[I];return null},go=e.PureVirtualError=HA("PureVirtualError");for(var wo=Array(256),WA=0;256>WA;++WA)wo[WA]=String.fromCharCode(WA);uo=wo,e.getInheritedInstanceCount=function(){return Object.keys(Kt).length},e.getLiveInheritedInstances=function(){var I=[],B;for(B in Kt)Kt.hasOwnProperty(B)&&I.push(Kt[B]);return I},e.flushPendingDeletes=Sn,e.setDelayFunction=function(I){oA=I,rA.length&&oA&&oA(Sn)},Qo=e.InternalError=HA("InternalError"),Ae.prototype.isAliasOf=function(I){if(!(this instanceof Ae&&I instanceof Ae))return!1;var B=this.M.P.N,Q=this.M.O,p=I.M.P.N;for(I=I.M.O;B.R;)Q=B.ba(Q),B=B.R;for(;p.R;)I=p.ba(I),p=p.R;return B===p&&Q===I},Ae.prototype.clone=function(){if(this.M.O||Fn(this),this.M.aa)return this.M.count.value+=1,this;var I=Ge,B=Object,Q=B.create,p=Object.getPrototypeOf(this),y=this.M;return I=I(Q.call(B,p,{M:{value:{count:y.count,$:y.$,aa:y.aa,O:y.O,P:y.P,T:y.T,U:y.U}}})),I.M.count.value+=1,I.M.$=!1,I},Ae.prototype.delete=function(){this.M.O||Fn(this),this.M.$&&!this.M.aa&&P("Object already scheduled for deletion"),UA(this),Bo(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||Fn(this),this.M.$&&!this.M.aa&&P("Object already scheduled for deletion"),rA.push(this),rA.length===1&&oA&&oA(Sn),this.M.$=!0,this},Wt.prototype.qa=function(I){return this.ka&&(I=this.ka(I)),I},Wt.prototype.ha=function(I){this.W&&this.W(I)},Wt.prototype.argPackAdvance=8,Wt.prototype.readValueFromPointer=aA,Wt.prototype.deleteObject=function(I){I!==null&&I.delete()},Wt.prototype.fromWireType=function(I){function B(){return this.da?OA(this.N.X,{P:this.wa,O:Q,U:this,T:I}):OA(this.N.X,{P:this,O:I})}var Q=this.qa(I);if(!Q)return this.ha(I),null;var p=dg(this.N,Q);if(p!==void 0)return p.M.count.value===0?(p.M.O=Q,p.M.T=I,p.clone()):(p=p.clone(),this.ha(I),p);if(p=this.N.pa(Q),p=Co[p],!p)return B.call(this);p=this.ca?p.la:p.pointerType;var y=Eo(Q,this.N,p.N);return y===null?B.call(this):this.da?OA(p.N.X,{P:p,O:y,U:this,T:I}):OA(p.N.X,{P:p,O:y})},po=e.UnboundTypeError=HA("UnboundTypeError");var Hg=typeof atob=="function"?atob:function(I){var B="",Q=0;I=I.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(I.charAt(Q++)),y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(I.charAt(Q++)),v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(I.charAt(Q++)),S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(I.charAt(Q++));p=p<<2|y>>4,y=(y&15)<<4|v>>2;var k=(v&3)<<6|S;B+=String.fromCharCode(p),v!==64&&(B+=String.fromCharCode(y)),S!==64&&(B+=String.fromCharCode(k))}while(Q<I.length);return B},Lg={l:function(I,B,Q,p){tt("Assertion failed: "+(I?l(d,I):"")+", at: "+[B?B?l(d,B):"":"unknown filename",Q,p?p?l(d,p):"":"unknown function"])},q:function(I,B,Q){I=at(I),B=fo(B,"wrapper"),Q=sA(Q);var p=[].slice,y=B.N,v=y.X,S=y.R.X,k=y.R.constructor;I=Dn(I,function(){y.R.ja.forEach((function(R){if(this[R]===S[R])throw new go("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)));UA(R);var N=R.M;R.notifyOnDestruction(),N.aa=!0,Object.defineProperties(this,{M:{value:N}}),Ge(this),R=N.O,R=xn(y,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"),UA(this);var R=this.M.O;R=xn(y,R),Kt.hasOwnProperty(R)?delete Kt[R]:P("Tried to unregister unregistered instance: "+R)},I.prototype=Object.create(v);for(var F in Q)I.prototype[F]=Q[F];return LA(I)},j:function(I){var B=PA[I];delete PA[I];var Q=B.fa,p=B.W,y=B.ia,v=y.map(S=>S.ta).concat(y.map(S=>S.za));ee([I],v,S=>{var k={};return y.forEach((F,R)=>{var N=S[R],L=F.ra,J=F.sa,nt=S[R+y.length],V=F.ya,Bt=F.Aa;k[F.oa]={read:Ft=>N.fromWireType(L(J,Ft)),write:(Ft,lA)=>{var Vt=[];V(Bt,Ft,nt.toWireType(Vt,lA)),Mn(Vt)}}}),[{name:B.name,fromWireType:function(F){var R={},N;for(N in k)R[N]=k[N].read(F);return p(F),R},toWireType:function(F,R){for(var N in k)if(!(N in R))throw new TypeError('Missing field: "'+N+'"');var L=Q();for(N in k)k[N].write(L,R[N]);return F!==null&&F.push(p,L),L},argPackAdvance:8,readValueFromPointer:aA,V:p}]})},v:function(){},B:function(I,B,Q,p,y){var v=Rn(Q);B=at(B),Yt(I,{name:B,fromWireType:function(S){return!!S},toWireType:function(S,k){return k?p:y},argPackAdvance:8,readValueFromPointer:function(S){if(Q===1)var k=f;else if(Q===2)k=C;else if(Q===4)k=m;else throw new TypeError("Unknown boolean type size: "+B);return this.fromWireType(k[S>>v])},V:null})},f:function(I,B,Q,p,y,v,S,k,F,R,N,L,J){N=at(N),v=Rt(y,v),k&&(k=Rt(S,k)),R&&(R=Rt(F,R)),J=Rt(L,J);var nt=co(N);Eg(nt,function(){KA("Cannot construct "+N+" due to unbound types",[p])}),ee([I,B,Q],p?[p]:[],function(V){if(V=V[0],p)var Bt=V.N,Ft=Bt.X;else Ft=Ae.prototype;V=Dn(nt,function(){if(Object.getPrototypeOf(this)!==lA)throw new Ne("Use 'new' to construct "+N);if(Vt.Y===void 0)throw new Ne(N+" has no accessible constructor");var So=Vt.Y[arguments.length];if(So===void 0)throw new Ne("Tried to invoke ctor of "+N+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Vt.Y).toString()+") parameters instead!");return So.apply(this,arguments)});var lA=Object.create(Ft,{constructor:{value:V}});V.prototype=lA;var Vt=new Cg(N,V,lA,J,Bt,v,k,R);Bt=new Wt(N,Vt,!0,!1),Ft=new Wt(N+"*",Vt,!1,!1);var bo=new Wt(N+" const*",Vt,!1,!0);return Co[I]={pointerType:Ft,la:bo},mg(nt,V),[Bt,Ft,bo]})},d:function(I,B,Q,p,y,v,S){var k=Hn(Q,p);B=at(B),v=Rt(y,v),ee([],[I],function(F){function R(){KA("Cannot call "+N+" due to unbound types",k)}F=F[0];var N=F.name+"."+B;B.startsWith("@@")&&(B=Symbol[B.substring(2)]);var L=F.N.constructor;return L[B]===void 0?(R.Z=Q-1,L[B]=R):(_n(L,B,N),L[B].S[Q-1]=R),ee([],k,function(J){return J=Gn(N,[J[0],null].concat(J.slice(1)),null,v,S),L[B].S===void 0?(J.Z=Q-1,L[B]=J):L[B].S[Q-1]=J,[]}),[]})},p:function(I,B,Q,p,y,v){0<B||tt();var S=Hn(B,Q);y=Rt(p,y),ee([],[I],function(k){k=k[0];var F="constructor "+k.name;if(k.N.Y===void 0&&(k.N.Y=[]),k.N.Y[B-1]!==void 0)throw new Ne("Cannot register multiple constructors with identical number of parameters ("+(B-1)+") for class '"+k.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return k.N.Y[B-1]=()=>{KA("Cannot construct "+k.name+" due to unbound types",S)},ee([],S,function(R){return R.splice(1,0,null),k.N.Y[B-1]=Gn(F,R,null,y,v),[]}),[]})},a:function(I,B,Q,p,y,v,S,k){var F=Hn(Q,p);B=at(B),v=Rt(y,v),ee([],[I],function(R){function N(){KA("Cannot call "+L+" due to unbound types",F)}R=R[0];var L=R.name+"."+B;B.startsWith("@@")&&(B=Symbol[B.substring(2)]),k&&R.N.ja.push(B);var J=R.N.X,nt=J[B];return nt===void 0||nt.S===void 0&&nt.className!==R.name&&nt.Z===Q-2?(N.Z=Q-2,N.className=R.name,J[B]=N):(_n(J,B,L),J[B].S[Q-2]=N),ee([],F,function(V){return V=Gn(L,V,R,v,S),J[B].S===void 0?(V.Z=Q-2,J[B]=V):J[B].S[Q-2]=V,[]}),[]})},A:function(I,B){B=at(B),Yt(I,{name:B,fromWireType:function(Q){var p=sA(Q);return Ln(Q),p},toWireType:function(Q,p){return LA(p)},argPackAdvance:8,readValueFromPointer:aA,V:null})},n:function(I,B,Q){Q=Rn(Q),B=at(B),Yt(I,{name:B,fromWireType:function(p){return p},toWireType:function(p,y){return y},argPackAdvance:8,readValueFromPointer:vg(B,Q),V:null})},e:function(I,B,Q,p,y){B=at(B),y===-1&&(y=4294967295),y=Rn(Q);var v=k=>k;if(p===0){var S=32-8*Q;v=k=>k<<S>>>S}Q=B.includes("unsigned")?function(k,F){return F>>>0}:function(k,F){return F},Yt(I,{name:B,fromWireType:v,toWireType:Q,argPackAdvance:8,readValueFromPointer:Dg(B,y,p!==0),V:null})},b:function(I,B,Q){function p(v){v>>=2;var S=w;return new y(g,S[v+1],S[v])}var y=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][B];Q=at(Q),Yt(I,{name:Q,fromWireType:p,argPackAdvance:8,readValueFromPointer:p},{ua:!0})},o:function(I,B){B=at(B);var Q=B==="std::string";Yt(I,{name:B,fromWireType:function(p){var y=w[p>>2],v=p+4;if(Q)for(var S=v,k=0;k<=y;++k){var F=v+k;if(k==y||d[F]==0){if(S=S?l(d,S,F-S):"",R===void 0)var R=S;else R+="\0",R+=S;S=F+1}}else{for(R=Array(y),k=0;k<y;++k)R[k]=String.fromCharCode(d[v+k]);R=R.join("")}return jt(p),R},toWireType:function(p,y){y instanceof ArrayBuffer&&(y=new Uint8Array(y));var v,S=typeof y=="string";if(S||y instanceof Uint8Array||y instanceof Uint8ClampedArray||y instanceof Int8Array||P("Cannot pass non-string to std::string"),Q&&S){var k=0;for(v=0;v<y.length;++v){var F=y.charCodeAt(v);127>=F?k++:2047>=F?k+=2:55296<=F&&57343>=F?(k+=4,++v):k+=3}v=k}else v=y.length;if(k=Tn(4+v+1),F=k+4,w[k>>2]=v,Q&&S){if(S=F,F=v+1,v=d,0<F){F=S+F-1;for(var R=0;R<y.length;++R){var N=y.charCodeAt(R);if(55296<=N&&57343>=N){var L=y.charCodeAt(++R);N=65536+((N&1023)<<10)|L&1023}if(127>=N){if(S>=F)break;v[S++]=N}else{if(2047>=N){if(S+1>=F)break;v[S++]=192|N>>6}else{if(65535>=N){if(S+2>=F)break;v[S++]=224|N>>12}else{if(S+3>=F)break;v[S++]=240|N>>18,v[S++]=128|N>>12&63}v[S++]=128|N>>6&63}v[S++]=128|N&63}}v[S]=0}}else if(S)for(S=0;S<v;++S)R=y.charCodeAt(S),255<R&&(jt(F),P("String has UTF-16 code units that do not fit in 8 bits")),d[F+S]=R;else for(S=0;S<v;++S)d[F+S]=y[S];return p!==null&&p.push(jt,k),k},argPackAdvance:8,readValueFromPointer:aA,V:function(p){jt(p)}})},i:function(I,B,Q){if(Q=at(Q),B===2)var p=bg,y=Sg,v=xg,S=()=>E,k=1;else B===4&&(p=kg,y=Mg,v=Rg,S=()=>w,k=2);Yt(I,{name:Q,fromWireType:function(F){for(var R=w[F>>2],N=S(),L,J=F+4,nt=0;nt<=R;++nt){var V=F+4+nt*B;(nt==R||N[V>>k]==0)&&(J=p(J,V-J),L===void 0?L=J:(L+="\0",L+=J),J=V+B)}return jt(F),L},toWireType:function(F,R){typeof R!="string"&&P("Cannot pass non-string to C++ string type "+Q);var N=v(R),L=Tn(4+N+B);return w[L>>2]=N>>k,y(R,L+4,N+B),F!==null&&F.push(jt,L),L},argPackAdvance:8,readValueFromPointer:aA,V:function(F){jt(F)}})},k:function(I,B,Q,p,y,v){PA[I]={name:at(B),fa:Rt(Q,p),W:Rt(y,v),ia:[]}},h:function(I,B,Q,p,y,v,S,k,F,R){PA[I].ia.push({oa:at(B),ta:Q,ra:Rt(p,y),sa:v,za:S,ya:Rt(k,F),Aa:R})},C:function(I,B){B=at(B),Yt(I,{va:!0,name:B,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},s:function(I,B,Q,p,y){I=YA[I],B=sA(B),Q=yo(Q);var v=[];return w[p>>2]=LA(v),I(B,Q,v,y)},t:function(I,B,Q,p){I=YA[I],B=sA(B),Q=yo(Q),I(B,Q,null,p)},g:Ln,m:function(I,B){var Q=Ng(I,B),p=Q[0];B=p.name+"_$"+Q.slice(1).map(function(S){return S.name}).join("_")+"$";var y=mo[B];if(y!==void 0)return y;var v=Array(I-1);return y=_g((S,k,F,R)=>{for(var N=0,L=0;L<I-1;++L)v[L]=Q[L+1].readValueFromPointer(R+N),N+=Q[L+1].argPackAdvance;for(S=S[k].apply(S,v),L=0;L<I-1;++L)Q[L+1].ma&&Q[L+1].ma(v[L]);if(!p.va)return p.toWireType(F,S)}),mo[B]=y},D:function(I){4<I&&(Mt[I].ga+=1)},r:function(I){var B=sA(I);Mn(B),Ln(I)},c:function(){tt("")},x:function(I,B,Q){d.copyWithin(I,B,B+Q)},w:function(I){var B=d.length;if(I>>>=0,2147483648<I)return!1;for(var Q=1;4>=Q;Q*=2){var p=B*(1+.2/Q);p=Math.min(p,I+100663296);var y=Math;p=Math.max(I,p),y=y.min.call(y,2147483648,p+(65536-p%65536)%65536);t:{try{u.grow(y-g.byteLength+65535>>>16),G();var v=1;break t}catch{}v=void 0}if(v)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(I,B,Q,p){for(var y=0,v=0;v<Q;v++){var S=w[B>>2],k=w[B+4>>2];B+=8;for(var F=0;F<k;F++){var R=d[S+F],N=Gg[I];R===0||R===10?((I===1?a:h)(l(N,0)),N.length=0):N.push(R)}y+=k}return w[p>>2]=y,0}};(function(){function I(y){e.asm=y.exports,u=e.asm.E,G(),O=e.asm.J,H.unshift(e.asm.F),At--,e.monitorRunDependencies&&e.monitorRunDependencies(At),At==0&&ot&&(y=ot,ot=null,y())}function B(y){I(y.instance)}function Q(y){return ct().then(function(v){return WebAssembly.instantiate(v,p)}).then(function(v){return v}).then(y,function(v){h("failed to asynchronously prepare wasm: "+v),tt(v)})}var p={a:Lg};if(At++,e.monitorRunDependencies&&e.monitorRunDependencies(At),e.instantiateWasm)try{return e.instantiateWasm(p,I)}catch(y){h("Module.instantiateWasm callback failed with error: "+y),n(y)}return(function(){return c||typeof WebAssembly.instantiateStreaming!="function"||ut(It)||typeof fetch!="function"?Q(B):fetch(It,{credentials:"same-origin"}).then(function(y){return WebAssembly.instantiateStreaming(y,p).then(B,function(v){return h("wasm streaming compile failed: "+v),h("falling back to ArrayBuffer instantiation"),Q(B)})})})().catch(n),{}})(),e.___wasm_call_ctors=function(){return(e.___wasm_call_ctors=e.asm.F).apply(null,arguments)};var vo=e.___getTypeName=function(){return(vo=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 Tn=e._malloc=function(){return(Tn=e._malloc=e.asm.I).apply(null,arguments)},jt=e._free=function(){return(jt=e._free=e.asm.K).apply(null,arguments)};e.dynCall_jiji=function(){return(e.dynCall_jiji=e.asm.L).apply(null,arguments)};var jA;ot=function I(){jA||Do(),jA||(ot=I)};function Do(){function I(){if(!jA&&(jA=!0,e.calledRun=!0,!r)){if(vn(H),i(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;){var B=e.postRun.shift();T.unshift(B)}vn(T)}}if(!(0<At)){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)W();vn(K),0<At||(e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),I()},1)):I())}}if(e.preInit)for(typeof e.preInit=="function"&&(e.preInit=[e.preInit]);0<e.preInit.length;)e.preInit.pop()();return Do(),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})({}),FA=(function(A){return A[A.BorderBox=0]="BorderBox",A[A.ContentBox=1]="ContentBox",A})({}),Gr=(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})({}),De=(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})({}),be=(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})({}),Fc=(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})({}),Se=(function(A){return A[A.Column=0]="Column",A[A.Row=1]="Row",A[A.All=2]="All",A})({}),mt=(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})({}),xe=(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})({}),fn=(function(A){return A[A.Undefined=0]="Undefined",A[A.Exactly=1]="Exactly",A[A.AtMost=2]="AtMost",A})({}),Hr=(function(A){return A[A.Default=0]="Default",A[A.Text=1]="Text",A})({}),ke=(function(A){return A[A.Visible=0]="Visible",A[A.Hidden=1]="Hidden",A[A.Scroll=2]="Scroll",A})({}),Me=(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})({}),Re=(function(A){return A[A.NoWrap=0]="NoWrap",A[A.Wrap=1]="Wrap",A[A.WrapReverse=2]="WrapReverse",A})({});const _c={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:FA.BorderBox,BOX_SIZING_CONTENT_BOX:FA.ContentBox,DIMENSION_WIDTH:Gr.Width,DIMENSION_HEIGHT:Gr.Height,DIRECTION_INHERIT:he.Inherit,DIRECTION_LTR:he.LTR,DIRECTION_RTL:he.RTL,DISPLAY_FLEX:De.Flex,DISPLAY_NONE:De.None,DISPLAY_CONTENTS:De.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:be.None,ERRATA_STRETCH_FLEX_BASIS:be.StretchFlexBasis,ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING:be.AbsolutePositionWithoutInsetsExcludesPadding,ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE:be.AbsolutePercentAgainstInnerSize,ERRATA_ALL:be.All,ERRATA_CLASSIC:be.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:Fc.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:Se.Column,GUTTER_ROW:Se.Row,GUTTER_ALL:Se.All,JUSTIFY_FLEX_START:mt.FlexStart,JUSTIFY_CENTER:mt.Center,JUSTIFY_FLEX_END:mt.FlexEnd,JUSTIFY_SPACE_BETWEEN:mt.SpaceBetween,JUSTIFY_SPACE_AROUND:mt.SpaceAround,JUSTIFY_SPACE_EVENLY:mt.SpaceEvenly,LOG_LEVEL_ERROR:xe.Error,LOG_LEVEL_WARN:xe.Warn,LOG_LEVEL_INFO:xe.Info,LOG_LEVEL_DEBUG:xe.Debug,LOG_LEVEL_VERBOSE:xe.Verbose,LOG_LEVEL_FATAL:xe.Fatal,MEASURE_MODE_UNDEFINED:fn.Undefined,MEASURE_MODE_EXACTLY:fn.Exactly,MEASURE_MODE_AT_MOST:fn.AtMost,NODE_TYPE_DEFAULT:Hr.Default,NODE_TYPE_TEXT:Hr.Text,OVERFLOW_VISIBLE:ke.Visible,OVERFLOW_HIDDEN:ke.Hidden,OVERFLOW_SCROLL:ke.Scroll,POSITION_TYPE_STATIC:Me.Static,POSITION_TYPE_RELATIVE:Me.Relative,POSITION_TYPE_ABSOLUTE:Me.Absolute,UNIT_UNDEFINED:Lt.Undefined,UNIT_POINT:Lt.Point,UNIT_PERCENT:Lt.Percent,UNIT_AUTO:Lt.Auto,WRAP_NO_WRAP:Re.NoWrap,WRAP_WRAP:Re.Wrap,WRAP_WRAP_REVERSE:Re.WrapReverse};function Nc(A){function t(n,s,o){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 o.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(o){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 r,l;if(u==="auto")r=Lt.Auto,l=void 0;else if(typeof u=="object")r=u.unit,l=u.valueOf();else if(r=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[r])throw new Error(`Failed to execute "${n}": Unsupported unit '${u}'`);return l!==void 0?s[r].call(this,...h,l):s[r].call(this,...h)})}function e(n){return A.MeasureCallback.implement({measure:function(){const{width:s,height:o}=n(...arguments);return{width:s??NaN,height:o??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,o=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,o,a)}),{Config:A.Config,Node:A.Node,..._c}}async function Gc(){return Nc(await Rc())}let Lr;function Bn(){return Lr}function Ur(A){Lr=A}let Tr;function Or(A){Tr=A}function Pr(){return Tr}function nA(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 _A(A,t,e){return(t[A]-e[A])/2}function Jr(A,t,e,i,n){const s=t==="percentage"?i[e]-n[e]:1;return nA(A)*s}function Kr(A,t,e){const[i,n]=A,s=$t(i),o=$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=_A("height",t,e):a.x=_A("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"||o!=="keyword"?"width":"height",c=h==="width"?"x":"y";a[c]=Jr(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=_A("height",t,e):a.x=_A("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]=Jr(n,o,c,t,e)}}return a}function NA(A,t,e,i){const n=A==="right"||A==="bottom",s=e==="percentage"?t*i:t;return n?-s:s}function Hc(A,t,e){const[i,n,s,o]=A,a=$t(i),h=$t(n),c=$t(s),u=$t(o);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 r=Kr([i,s],t,e),l={...r},g=nA(n),f=nA(o);return i==="left"||i==="right"?l.x=r.x+NA(i,g,h,e.width):(i==="top"||i==="bottom")&&(l.y=r.y+NA(i,g,h,e.height)),s==="left"||s==="right"?l.x=r.x+NA(s,f,u,e.width):(s==="top"||s==="bottom")&&(l.y=r.y+NA(s,f,u,e.height)),l}function Lc(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 o=$t(i)==="percentage"?t.width-e.width:1;n.x=nA(i)*o,n.y=(t.height-e.height)/2}}return n}function dn(A,t,e){if(!A)return{x:0,y:0};const i=typeof A=="string"?A.split(" "):[A];switch(i.length){case 1:return Lc(i,t,e);case 2:return Kr(i,t,e);case 4:return Hc(i,t,e);default:throw new Error("Invalid objectPosition value: must have 1, 2, or 4 values")}}const En={width:0,height:0};function Cn(A){const t=A.target.getLocalBounds(),e=A.target.scale;return En.width=Math.abs(t.width*e.x),En.height=Math.abs(t.height*e.y),En}function Qn(A,t,e=.49){return Math.abs(A-t)<e}function Uc(A,t=0,e={}){let i,n;const s=e.maxWait?e.maxWait:t;let o,a,h,c=0;const u=!!e.leading,r="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 f(T){const W=i,At=n;return i=n=void 0,c=T,o=A.apply(At,W),o}function d(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=d(b,t),u?f(T):o}function m(T){const W=T-(h||0),At=T-c,ot=t-W;return r?Math.min(ot,s-At):ot}function w(T){const W=T-(h||0),At=T-c;return h===void 0||W>=t||W<0||r&&At>=s}function b(){const T=Date.now();if(w(T))return M(T);a=d(b,m(T))}function M(T){return a=void 0,l&&i?f(T):(i=n=void 0,o)}function G(){a!==void 0&&C(a),c=0,i=h=n=a=void 0}function O(){return a===void 0?o: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(r)return a=d(b,t),f(h)}return a===void 0&&(a=d(b,t)),o}return H.cancel=G,H.flush=O,H.pending=K,H}function Tc(A,t,e={}){const i=e.leading??!0,n=e.trailing??!0;if(typeof A!="function")throw new TypeError("Expected a function");return Uc(A,t,{leading:i,trailing:n,maxWait:t})}var Oc=Object.defineProperty,Pc=(A,t,e)=>t in A?Oc(A,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):A[t]=e,ce=(A,t,e)=>Pc(A,typeof t!="symbol"?t+"":t,e);class pn{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){Ur(await Gc()),Or(Bn().Config.create());const{layout:e}=t??{},{autoUpdate:i,enableDebug:n,throttle:s,debugModificationCount:o}=e??{};n&&this.enableDebug(!0),i!==void 0&&(this.autoUpdate=i),this._throttle=s??this._throttle,this._throttledUpdateSize=Tc(a=>this._updateSize(a),this._throttle,{leading:!0,trailing:!0}),this._modificationCount=o??this._modificationCount}async enableDebug(t=!this._debugEnabled){if(this._debugEnabled=t,!this._debugRenderer){const e=await Promise.resolve().then(()=>fg);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=Cn(e);if(i.width==="intrinsic"){const s=e.yoga.getWidth().value;Qn(s,n.width)||(e.yoga.setWidth(n.width),e.invalidateRoot())}if(i.height==="intrinsic"){const s=e.yoga.getHeight().value;Qn(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 o=t._layout;if(t.visible){if(o){const a=o.yoga,h=o.style,c=(e=t.parent)==null?void 0:e.isOverflowContainer;if(!((i=t.parent)!=null&&i._layout)&&!c&&o._isDirty&&(o._isDirty=!1,a.calculateLayout(h.width,h.height,a.getDirection()??he.LTR)),a.hasNewLayout()||o._forceUpdate){a.markLayoutSeen(),o._forceUpdate=!1,o._computedLayout=a.getComputedLayout();const r=dn(h.transformOrigin,o._computedLayout,{width:0,height:0});o._computedPixiLayout={...t.computeLayoutData(o._computedLayout),originX:r.x,originY:r.y},t.emit("layout",o),(n=t.onLayout)==null||n.call(t,o),t._onUpdate()}this._debugEnabled&&(o._styles.custom.debug||o._modificationCount>this._modificationCount&&o._styles.custom.debugHeat!==!1)&&((s=this._debugRenderer)==null||s.render(o))}for(let a=0;a<t.children.length;a++)this.updateLayout(t.children[a])}}destroy(){!this._debugEnabled&&this._debugRenderer&&this._debugRenderer.destroy()}}ce(pn,"extension",{type:[D.ExtensionType.WebGLSystem,D.ExtensionType.WebGPUSystem],name:"layout"});const Yr={"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},Wr={"flex-start":q.FlexStart,"flex-end":q.FlexEnd,center:q.Center,stretch:q.Stretch,baseline:q.Baseline},jr={auto:q.Auto,"flex-start":q.FlexStart,"flex-end":q.FlexEnd,center:q.Center,stretch:q.Stretch,baseline:q.Baseline},Vr={"border-box":FA.BorderBox,"content-box":FA.ContentBox},qr={ltr:he.LTR,rtl:he.RTL},Xr={none:De.None,flex:De.Flex,contents:De.Contents},Zr={row:Ht.Row,column:Ht.Column,"row-reverse":Ht.RowReverse,"column-reverse":Ht.ColumnReverse},zr={wrap:Re.Wrap,nowrap:Re.NoWrap,"wrap-reverse":Re.WrapReverse},$r={"flex-start":mt.FlexStart,"flex-end":mt.FlexEnd,center:mt.Center,"space-between":mt.SpaceBetween,"space-around":mt.SpaceAround,"space-evenly":mt.SpaceEvenly},to={visible:ke.Visible,hidden:ke.Hidden,scroll:ke.Scroll},eo={absolute:Me.Absolute,relative:Me.Relative,static:Me.Static},Jc={alignContent:(A,t)=>A.setAlignContent(Kc(t)),alignItems:(A,t)=>A.setAlignItems(Yc(t)),alignSelf:(A,t)=>A.setAlignSelf(Wc(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(jc(t)),direction:(A,t)=>A.setDirection(Vc(t)),display:(A,t)=>A.setDisplay(qc(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(Xc(t)),rowGap:(A,t)=>A.setGap(Se.Row,t),gap:(A,t)=>A.setGap(Se.All,t),columnGap:(A,t)=>A.setGap(Se.Column,t),flexGrow:(A,t)=>A.setFlexGrow(t),flexShrink:(A,t)=>A.setFlexShrink(t),flexWrap:(A,t)=>A.setFlexWrap(Zc(t)),height:(A,t)=>A.setHeight(t),justifyContent:(A,t)=>A.setJustifyContent(zc(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($c(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(tg(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 Kc(A){if(A in Yr)return Yr[A];throw new Error(`"${A}" is not a valid value for alignContent`)}function Yc(A){if(A in Wr)return Wr[A];throw new Error(`"${A}" is not a valid value for alignItems`)}function Wc(A){if(A in jr)return jr[A];throw new Error(`"${A}" is not a valid value for alignSelf`)}function jc(A){if(A in Vr)return Vr[A];throw new Error(`"${A}" is not a valid value for boxSizing`)}function Vc(A){if(A in qr)return qr[A];throw new Error(`"${A}" is not a valid value for direction`)}function qc(A){if(A in Xr)return Xr[A];throw new Error(`"${A}" is not a valid value for display`)}function Xc(A){if(A in Zr)return Zr[A];throw new Error(`"${A}" is not a valid value for flexDirection`)}function Zc(A){if(A in zr)return zr[A];throw new Error(`"${A}" is not a valid value for flexWrap`)}function zc(A){if(A in $r)return $r[A];throw new Error(`"${A}" is not a valid value for justifyContent`)}function $c(A){if(A in to)return to[A];throw new Error(`"${A}" is not a valid value for overflow`)}function tg(A){if(A in eo)return eo[A];throw new Error(`"${A}" is not a valid value for position`)}function Ao(A,t={}){for(const[e,i]of Object.entries(t))try{const n=Jc[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 io(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},o=i.width==="intrinsic",a=i.height==="intrinsic";if(o||a){const{width:h,height:c}=Cn(A);o&&(s.width=h),a&&(s.height=c)}return{custom:i,yoga:s}}function no(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 o=eg(A,t,n);return o===-1?!1:(o===i.yoga.getChildCount(),i.yoga.insertChild(A.yoga,o),!0)}function eg(A,t,e){const i=A.target;let n=0;if(e){for(const s of t.children){if(s===e){for(const o of e.children)if(!(!o.layout||!o.visible)){if(o===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 so(A){const t=A.yoga.getParent();t&&t.removeChild(A.yoga)}var Ag=Object.defineProperty,ig=(A,t,e)=>t in A?Ag(A,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):A[t]=e,wt=(A,t,e)=>ig(A,typeof t!="symbol"?t+"":t,e);class ge{constructor({target:t}){wt(this,"yoga"),wt(this,"target"),wt(this,"destroyed",!1),wt(this,"_isDirty",!1),wt(this,"_computedPixiLayout",{x:0,y:0,offsetX:0,offsetY:0,scaleX:1,scaleY:1,originX:0,originY:0}),wt(this,"_computedLayout",{left:0,right:0,top:0,bottom:0,width:0,height:0}),wt(this,"_styles",{custom:{},yoga:{}}),wt(this,"_modificationCount",0),wt(this,"_forceUpdate",!1),wt(this,"hasParent",!1),wt(this,"_trackedStyleKeys",["borderRadius","borderColor","backgroundColor","objectFit","objectPosition","transformOrigin","isLeaf"]),this.target=t,this.yoga=Bn().Node.create(Pr()),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=io(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,o=this._trackedStyleKeys.some(a=>e.custom[a]!==this._styles.custom[a]);this._styles=e,o&&(this._forceUpdate=!0),s&&(Ao(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||no(this,t)!==!1&&(this.hasParent=!0,this.invalidateRoot())}_onChildRemoved(t){this.hasParent&&(this.hasParent=!1,this.invalidateRoot(t),so(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)}}wt(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 ro(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 oo(A,t,e,i){const n=A.getLocalBounds(),s=A.layout.style.objectFit||e;let{offsetScaleX:o,offsetScaleY:a}=ro(s,t,n);const h={width:n.width*o,height:n.height*a};let{x:c,y:u}=dn(A.layout.style.objectPosition,t,h);i?(c+=n.width*o*i._x,u+=n.height*a*i._y):(c-=n.minX*o,u-=n.minY*a);const r=A.layout.style.applySizeDirectly;return(r===!0||r==null&&(A instanceof D.TilingSprite||A instanceof D.NineSliceSprite))&&(A.width=n.width*o,A.height=n.height*a,o=1,a=1),{x:t.left,y:t.top,offsetX:c,offsetY:u,scaleX:o,scaleY:a}}const yn=Object.getOwnPropertyDescriptor(D.Container.prototype,"visible"),ng={_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",yn));return}if(!this._layout){this._layout=new ge({target:this}),Object.defineProperty(D.Container.prototype,"visible",{...yn,set(t){yn.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:o,scaleY:a,originX:h,originY:c}=t._computedPixiLayout,u=this.localTransform,{rotation:r,skew:l,scale:g,position:f}=this,d=r+l._y,C=r-l._x,E=Math.cos(d)*g._x,m=Math.sin(d)*g._x,w=-Math.sin(C)*g._y,b=Math.cos(C)*g._y,M=f._x+e-h*E-c*w,G=f._y+i-h*m-c*b;u.a=E*o,u.b=m*o,u.c=w*a,u.d=b*a,u.tx=M+(n*E+s*w)+h,u.ty=G+(n*m+s*b)+c},computeLayoutData(A){const t=this._layout,{isLeaf:e}=t._styles.custom;return e?oo(this,A,"fill"):{x:A.left,y:A.top,offsetX:0,offsetY:0,scaleX:1,scaleY:1}}};D.extensions.mixin(D.Container,ng);const ao=new D.Point(0,0),sg={computeLayoutData(A){const t=this._style;ao.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}=ro(i,A,e);t.wordWrap&&(t.wordWrapWidth=A.width/Math.min(1,Math.max(n,s))),e=this.getLocalBounds();const o={width:e.width*n,height:e.height*s};let{x:a,y:h}=dn(this.layout.style.objectPosition,A,o);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(ao),{x:A.left,y:A.top,offsetX:a,offsetY:h,scaleX:n,scaleY:s}}};D.extensions.mixin(D.AbstractText,sg);const mn=Object.getOwnPropertyDescriptor(D.AbstractText.prototype,"text");Object.defineProperty(D.AbstractText.prototype,"text",{...mn,set(A){var t;const e=mn.get.call(this);mn.set.call(this,A),e!==A&&((t=this.layout)==null||t.forceUpdate())}});const rg={computeLayoutData(A){return oo(this,A,"fill",this._anchor)}};D.extensions.mixin(D.ViewContainer,rg);var Ut=(A=>(A.Margin="margin",A.Padding="padding",A.Border="border",A.Flex="flex",A.Content="content",A))(Ut||{});function wn(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 og(A,t){const{width:e,height:i}=A.computedLayout,n=wn(A,"margin"),s=wn(A,"border"),o=wn(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=o.left+s.left,c.inner.y=o.top+s.top,c.inner.width=e-o.left-o.right-s.left-s.right,c.inner.height=i-o.top-o.bottom-s.top-s.bottom,ag(A,t)}function ag(A,t){var e;const i=t.get("flex"),n=t.get("padding");i.outer.copyFrom(n.inner);const s=new D.Bounds,o=A.yoga.getChildCount();for(let h=0;h<o;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 lg=Object.defineProperty,hg=(A,t,e)=>t in A?lg(A,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):A[t]=e,lo=(A,t,e)=>hg(A,typeof t!="symbol"?t+"":t,e);function cg(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 gg extends D.Container{constructor(){super(),lo(this,"graphics"),lo(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:r,width:l,height:g}=h.outer;c.rect(u,r,l,Math.max(g,1)),c.fill({color:h.color,alpha:i})}});const{invalidationCount:s,draw:o}=n;if(s>0&&o){const h=Math.min(s/20,1),c=t[Ut.Margin],l=cg([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:o,y:a,width:h,height:c}=e,{x:u,y:r,width:l,height:g}=i;t.rect(o,a,h,c),t.fill({color:n,alpha:s}),t.rect(u,r,l,g),t.cut()}}var ug=Object.defineProperty,Ig=(A,t,e)=>t in A?ug(A,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):A[t]=e,GA=(A,t,e)=>Ig(A,typeof t!="symbol"?t+"":t,e);class ho{constructor(){GA(this,"holder",new D.Container),GA(this,"regions",new Map),GA(this,"colors",{[Ut.Margin]:"#B68655",[Ut.Padding]:"#BAC57F",[Ut.Border]:"#E7C583",[Ut.Content]:"#89B1BE",[Ut.Flex]:"#6E28D9"}),GA(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){og(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(),o=D.BigPool.get(gg,{...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(o,0)}destroy(){this.reset(),this.holder.destroy(),this.regions.clear()}}const fg=Object.freeze(Object.defineProperty({__proto__:null,DebugRenderer:ho},Symbol.toStringTag,{value:"Module"}));D.extensions.add(pn);const Bg=Object.freeze(Object.defineProperty({__proto__:null,DebugRenderer:ho,Layout:ge,LayoutSystem:pn,applyStyle:Ao,formatStyles:io,getNumberFromStyle:nA,getPixiSize:Cn,getTypeFromStyle:$t,getYoga:Bn,getYogaConfig:Pr,nearlyEqual:Qn,onChildAdded:no,onChildRemoved:so,setYoga:Ur,setYogaConfig:Or},Symbol.toStringTag,{value:"Module"}));return x.ArraySubject=Je,x.Button=Ec,x.ButtonState=_r,x.Canvas=oh,x.Circle=Ui,x.Container=tA,x.ControlsBase=dA,x.ControlsDirective=or,x.DOMContainer=Ic,x.DOMElement=Fr,x.DOMSprite=dc,x.DisplayObject=xt,x.Drag=Ir,x.Drop=ur,x.EVENTS=Er,x.Easing=bc,x.Ellipse=Qr,x.Flash=dr,x.FocusContainer=Nr,x.FocusManager=RA,x.GamepadControls=ys,x.Graphics=ae,x.Howl=Ah,x.Howler=we.Howler,x.Input=Bs,x.Joystick=Cc,x.JoystickControls=ms,x.KeyboardControls=Cs,x.Mesh=gh,x.Navigation=yc,x.NineSliceSprite=uc,x.ObjectSubject=Ke,x.ParticlesEmitter=Dh,x.RadialGradient=Sc,x.Rect=Cr,x.Scene=Ih,x.Scheduler=ar,x.Shake=Br,x.Sound=gr,x.Sprite=un,x.Svg=hh,x.Text=Sr,x.TilingSprite=kh,x.Transition=fr,x.Triangle=lh,x.Utils=ba,x.Video=bh,x.Viewport=cc,x.ViewportFollow=lr,x.animatedSequence=Wl,x.animatedSignal=xi,x.bootstrapCanvas=mc,x.checkDependencies=Ze,x.computed=Et,x.cond=$l,x.createComponent=rt,x.createTabindexNavigator=Mc,x.effect=it,x.focusManager=yt,x.h=gt,x.isAnimatedSignal=ye,x.isArraySubject=La,x.isComputed=pe,x.isElement=ft,x.isElementFrozen=St,x.isObjectSubject=Ua,x.isObservable=la,x.isPrimitive=Mi,x.isSignal=_,x.isTrigger=$e,x.linkedSignal=ws,x.loop=zl,x.mount=Ti,x.on=DA,x.registerAllComponents=Ri,x.registerComponent=st,x.signal=Y,x.tick=uh,x.trigger=sh,x.untracked=ui,x.useDefineProps=_i,x.useFocusChange=Dc,x.useFocusIndex=wc,x.useFocusedElement=vc,x.useProps=Ct,x.waitForDependencies=rr,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}),x})({},PIXI);
5
5
  //# sourceMappingURL=index.global.js.map