PageSourceSearch

https://hellooo.cards/_next/static/chunks/780-b784295ee7cfa46d.js

js hellooo.cards collected 2026-10-02 01:19:17 UTC 276,778 bytes, 229 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[780],{5464:function(t){"use strict";function e(t,e,u){u=u||2;var d,p,g,y,x,_,v,b=e&&e.length,w=b?e[0]*u:t.length,A=i(t,0,w,u,!0),S=[];if(!A||A.next===A.prev)return S;if(b&&(A=function(t,e,n,h){var l,u,d,p,m,g=[];for(l=0,u=e.length;l<u;l++)d=e[l]*h,p=l<u-1?e[l+1]*h:t.length,(m=i(t,d,p,h,!1))===m.next&&(m.steiner=!0),g.push(function(t){var e=t,i=t;do(e.x<i.x||e.x===i.x&&e.y<i.y)&&(i=e),e=e.next;while(e!==t);return i}(m));for(g.sort(s),l=0;l<g.length;l++)n=function(t,e){var i=function(t,e){var i,r,s,n=e,h=t.x,l=t.y,u=-1/0;do{if(l<=n.y&&l>=n.next.y&&n.next.y!==n.y){var d=n.x+(l-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(d<=h&&d>u&&(u=d,s=n.x<n.next.x?n:n.next,d===h))return s}n=n.next}while(n!==e);if(!s)return null;var f,p=s,m=s.x,g=s.y,y=1/0;n=s;do h>=n.x&&n.x>=m&&h!==n.x&&a(l<g?h:u,l,m,g,l<g?u:h,l,n.x,n.y)&&(f=Math.abs(l-n.y)/(h-n.x),c(n,t)&&(f<y||f===y&&(n.x>s.x||n.x===s.x&&(i=s,r=n,0>o(i.prev,i,r.prev)&&0>o(r.next,i,i.next))))&&(s=n,y=f)),n=n.next;while(n!==p);return s}(t,e);if(!i)return e;var s=f(i,t);return r(s,s.next),r(i,i.next)}(g[l],n);return n}(t,e,A,u)),t.length>80*u){d=g=t[0],p=y=t[1];for(var C=u;C<w;C+=u)x=t[C],_=t[C+1],x<d&&(d=x),_<p&&(p=_),x>g&&(g=x),_>y&&(y=_);v=0!==(v=Math.max(g-d,y-p))?32767/v:0}return function t(e,i,s,u,d,p,g){if(e){!g&&p&&function(t,e,i,r){var s=t;do 0===s.z&&(s.z=n(s.x,s.y,e,i,r)),s.prevZ=s.prev,s.nextZ=s.next,s=s.next;while(s!==t);s.prevZ.nextZ=null,s.prevZ=null,function(t){var e,i,r,s,n,a,o,h,l=1;do{for(i=t,t=null,n=null,a=0;i;){for(a++,r=i,o=0,e=0;e<l&&(o++,r=r.nextZ);e++);for(h=l;o>0||h>0&&r;)0!==o&&(0===h||!r||i.z<=r.z)?(s=i,i=i.nextZ,o--):(s=r,r=r.nextZ,h--),n?n.nextZ=s:t=s,s.prevZ=n,n=s;i=r}n.nextZ=null,l*=2}while(a>1)}(s)}(e,u,d,p);for(var y,x,_=e;e.prev!==e.next;){if(y=e.prev,x=e.next,p?function(t,e,i,r){var s=t.prev,h=t.next;if(o(s,t,h)>=0)return!1;for(var l=s.x,u=t.x,d=h.x,c=s.y,f=t.y,p=h.y,m=l<u?l<d?l:d:u<d?u:d,g=c<f?c<p?c:p:f<p?f:p,y=l>u?l>d?l:d:u>d?u:d,x=c>f?c>p?c:p:f>p?f:p,_=n(m,g,e,i,r),v=n(y,x,e,i,r),b=t.prevZ,w=t.nextZ;b&&b.z>=_&&w&&w.z<=v;){if(b.x>=m&&b.x<=y&&b.y>=g&&b.y<=x&&b!==s&&b!==h&&a(l,c,u,f,d,p,b.x,b.y)&&o(b.prev,b,b.next)>=0||(b=b.prevZ,w.x>=m&&w.x<=y&&w.y>=g&&w.y<=x&&w!==s&&w!==h&&a(l,c,u,f,d,p,w.x,w.y)&&o(w.prev,w,w.next)>=0))return!1;w=w.nextZ}for(;b&&b.z>=_;){if(b.x>=m&&b.x<=y&&b.y>=g&&b.y<=x&&b!==s&&b!==h&&a(l,c,u,f,d,p,b.x,b.y)&&o(b.prev,b,b.next)>=0)return!1;b=b.prevZ}for(;w&&w.z<=v;){if(w.x>=m&&w.x<=y&&w.y>=g&&w.y<=x&&w!==s&&w!==h&&a(l,c,u,f,d,p,w.x,w.y)&&o(w.prev,w,w.next)>=0)return!1;w=w.nextZ}return!0}(e,u,d,p):function(t){var e=t.prev,i=t.next;if(o(e,t,i)>=0)return!1;for(var r=e.x,s=t.x,n=i.x,h=e.y,l=t.y,u=i.y,d=r<s?r<n?r:n:s<n?s:n,c=h<l?h<u?h:u:l<u?l:u,f=r>s?r>n?r:n:s>n?s:n,p=h>l?h>u?h:u:l>u?l:u,m=i.next;m!==e;){if(m.x>=d&&m.x<=f&&m.y>=c&&m.y<=p&&a(r,h,s,l,n,u,m.x,m.y)&&o(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}(e)){i.push(y.i/s|0),i.push(e.i/s|0),i.push(x.i/s|0),m(e),e=x.next,_=x.next;continue}if((e=x)===_){g?1===g?t(e=function(t,e,i){var s=t;do{var n=s.prev,a=s.next.next;!h(n,a)&&l(n,s,s.next,a)&&c(n,a)&&c(a,n)&&(e.push(n.i/i|0),e.push(s.i/i|0),e.push(a.i/i|0),m(s),m(s.next),s=t=a),s=s.next}while(s!==t);return r(s)}(r(e),i,s),i,s,u,d,p,2):2===g&&function(e,i,s,n,a,u){var d=e;do{for(var p,m,g=d.next.next;g!==d.prev;){if(d.i!==g.i&&(p=d,m=g,p.next.i!==m.i&&p.prev.i!==m.i&&!function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&l(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}(p,m)&&(c(p,m)&&c(m,p)&&function(t,e){var i=t,r=!1,s=(t.x+e.x)/2,n=(t.y+e.y)/2;do i.y>n!=i.next.y>n&&i.next.y!==i.y&&s<(i.next.x-i.x)*(n-i.y)/(i.next.y-i.y)+i.x&&(r=!r),i=i.next;while(i!==t);return r}(p,m)&&(o(p.prev,p,m.prev)||o(p,m.prev,m))||h(p,m)&&o(p.prev,p,p.next)>0&&o(m.prev,m,m.next)>0))){var y=f(d,g);d=r(d,d.next),y=r(y,y.next),t(d,i,s,n,a,u,0),t(y,i,s,n,a,u,0);return}g=g.next}d=d.next}while(d!==e)}(e,i,s,u,d,p):t(r(e),i,s,u,d,p,1);break}}}}(A,S,u,d,p,v,0),S}function i(t,e,i,r,s){var n,a;if(s===y(t,e,i,r)>0)for(n=e;n<i;n+=r)a=p(n,t[n],t[n+1],a);else for(n=i-r;n>=e;n-=r)a=p(n,t[n],t[n+1],a);return a&&h(a,a.next)&&(m(a),a=a.next),a}function r(t,e){if(!t)return t;e||(e=t);var i,r=t;do if(i=!1,!r.steiner&&(h(r,r.next)||0===o(r.prev,r,r.next))){if(m(r),(r=e=r.prev)===r.next)break;
1i=!0}else r=r.next;while(i||r!==e);return e}function s(t,e){return t.x-e.x}function n(t,e,i,r,s){return(t=((t=((t=((t=((t=(t-i)*s|0)|t<<8)&16711935)|t<<4)&252645135)|t<<2)&858993459)|t<<1)&1431655765)|(e=((e=((e=((e=((e=(e-r)*s|0)|e<<8)&16711935)|e<<4)&252645135)|e<<2)&858993459)|e<<1)&1431655765)<<1}function a(t,e,i,r,s,n,a,o){return(s-a)*(e-o)>=(t-a)*(n-o)&&(t-a)*(r-o)>=(i-a)*(e-o)&&(i-a)*(n-o)>=(s-a)*(r-o)}function o(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function h(t,e){return t.x===e.x&&t.y===e.y}function l(t,e,i,r){var s=d(o(t,e,i)),n=d(o(t,e,r)),a=d(o(i,r,t)),h=d(o(i,r,e));return!!(s!==n&&a!==h||0===s&&u(t,i,e)||0===n&&u(t,r,e)||0===a&&u(i,t,r)||0===h&&u(i,e,r))}function u(t,e,i){return e.x<=Math.max(t.x,i.x)&&e.x>=Math.min(t.x,i.x)&&e.y<=Math.max(t.y,i.y)&&e.y>=Math.min(t.y,i.y)}function d(t){return t>0?1:t<0?-1:0}function c(t,e){return 0>o(t.prev,t,t.next)?o(t,e,t.next)>=0&&o(t,t.prev,e)>=0:0>o(t,e,t.prev)||0>o(t,t.next,e)}function f(t,e){var i=new g(t.i,t.x,t.y),r=new g(e.i,e.x,e.y),s=t.next,n=e.prev;return t.next=e,e.prev=t,i.next=s,s.prev=i,r.next=i,i.prev=r,n.next=r,r.prev=n,r}function p(t,e,i,r){var s=new g(t,e,i);return r?(s.next=r.next,s.prev=r,r.next.prev=s,r.next=s):(s.prev=s,s.next=s),s}function m(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function g(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function y(t,e,i,r){for(var s=0,n=e,a=i-r;n<i;n+=r)s+=(t[a]-t[n])*(t[n+1]+t[a+1]),a=n;return s}t.exports=e,t.exports.default=e,e.deviation=function(t,e,i,r){var s=e&&e.length,n=s?e[0]*i:t.length,a=Math.abs(y(t,0,n,i));if(s)for(var o=0,h=e.length;o<h;o++){var l=e[o]*i,u=o<h-1?e[o+1]*i:t.length;a-=Math.abs(y(t,l,u,i))}var d=0;for(o=0;o<r.length;o+=3){var c=r[o]*i,f=r[o+1]*i,p=r[o+2]*i;d+=Math.abs((t[c]-t[p])*(t[f+1]-t[c+1])-(t[c]-t[f])*(t[p+1]-t[c+1]))}return 0===a&&0===d?0:Math.abs((d-a)/a)},e.flatten=function(t){for(var e=t[0][0].length,i={vertices:[],holes:[],dimensions:e},r=0,s=0;s<t.length;s++){for(var n=0;n<t[s].length;n++)for(var a=0;a<e;a++)i.vertices.push(t[s][n][a]);s>0&&(r+=t[s-1].length,i.holes.push(r))}return i}},7836:function(t){"use strict";var e=Object.prototype.hasOwnProperty,i="~";function r(){}function s(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function n(t,e,r,n,a){if("function"!=typeof r)throw TypeError("The listener must be a function");var o=new s(r,n||t,a),h=i?i+e:e;return t._events[h]?t._events[h].fn?t._events[h]=[t._events[h],o]:t._events[h].push(o):(t._events[h]=o,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function o(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(i=!1)),o.prototype.eventNames=function(){var t,r,s=[];if(0===this._eventsCount)return s;for(r in t=this._events)e.call(t,r)&&s.push(i?r.slice(1):r);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(t)):s},o.prototype.listeners=function(t){var e=i?i+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var s=0,n=r.length,a=Array(n);s<n;s++)a[s]=r[s].fn;return a},o.prototype.listenerCount=function(t){var e=i?i+t:t,r=this._events[e];return r?r.fn?1:r.length:0},o.prototype.emit=function(t,e,r,s,n,a){var o=i?i+t:t;if(!this._events[o])return!1;var h,l,u=this._events[o],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(t,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,e),!0;case 3:return u.fn.call(u.context,e,r),!0;case 4:return u.fn.call(u.context,e,r,s),!0;case 5:return u.fn.call(u.context,e,r,s,n),!0;case 6:return u.fn.call(u.context,e,r,s,n,a),!0}for(l=1,h=Array(d-1);l<d;l++)h[l-1]=arguments[l];u.fn.apply(u.context,h)}else{var c,f=u.length;for(l=0;l<f;l++)switch(u[l].once&&this.removeListener(t,u[l].fn,void 0,!0),d){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,e);break;case 3:u[l].fn.call(u[l].context,e,r);break;case 4:u[l].fn.call(u[l].context,e,r,s);break;default:if(!h)for(c=1,h=Array(d-1);c<d;c++)h[c-1]=arguments[c];u[l].fn.apply(u[l].context,h)}}return!0}
1,o.prototype.on=function(t,e,i){return n(this,t,e,i,!1)},o.prototype.once=function(t,e,i){return n(this,t,e,i,!0)},o.prototype.removeListener=function(t,e,r,s){var n=i?i+t:t;if(!this._events[n])return this;if(!e)return a(this,n),this;var o=this._events[n];if(o.fn)o.fn!==e||s&&!o.once||r&&o.context!==r||a(this,n);else{for(var h=0,l=[],u=o.length;h<u;h++)(o[h].fn!==e||s&&!o[h].once||r&&o[h].context!==r)&&l.push(o[h]);l.length?this._events[n]=1===l.length?l[0]:l:a(this,n)}return this},o.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&a(this,e)):(this._events=new r,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=i,o.EventEmitter=o,t.exports=o},9582:function(t,e,i){"use strict";i.d(e,{ZP:function(){return tS}});var r,s,n,a,o,h,l,u,d,c,f,p=i(9244),m={},g=180/Math.PI,y=Math.PI/180,x=Math.atan2,_=/([A-Z])/g,v=/(left|right|width|margin|padding|x)/i,b=/[\s,\(]\S/,w={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},A=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},S=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},C=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},M=function(t,e){var i=e.s+e.c*t;e.set(e.t,e.p,~~(i+(i<0?-.5:.5))+e.u,e)},P=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},T=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},k=function(t,e,i){return t.style[e]=i},E=function(t,e,i){return t.style.setProperty(e,i)},I=function(t,e,i){return t._gsap[e]=i},B=function(t,e,i){return t._gsap.scaleX=t._gsap.scaleY=i},R=function(t,e,i,r,s){var n=t._gsap;n.scaleX=n.scaleY=i,n.renderTransform(s,n)},F=function(t,e,i,r,s){var n=t._gsap;n[e]=i,n.renderTransform(s,n)},O="transform",L=O+"Origin",z=function t(e,i){var r=this,s=this.target,n=s.style,a=s._gsap;if(e in m&&n){if(this.tfm=this.tfm||{},"transform"===e)return w.transform.split(",").forEach(function(e){return t.call(r,e,i)});if(~(e=w[e]||e).indexOf(",")?e.split(",").forEach(function(t){return r.tfm[t]=te(s,t)}):this.tfm[e]=a.x?a[e]:te(s,e),e===L&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(O)>=0)return;a.svg&&(this.svgo=s.getAttribute("data-svg-origin"),this.props.push(L,i,"")),e=O}(n||i)&&this.props.push(e,i,n[e])},D=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},U=function(){var t,e,i=this.props,r=this.target,s=r.style,n=r._gsap;for(t=0;t<i.length;t+=3)i[t+1]?r[i[t]]=i[t+2]:i[t+2]?s[i[t]]=i[t+2]:s.removeProperty("--"===i[t].substr(0,2)?i[t]:i[t].replace(_,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)n[e]=this.tfm[e];n.svg&&(n.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),(t=c())&&t.isStart||s[O]||(D(s),n.zOrigin&&s[L]&&(s[L]+=" "+n.zOrigin+"px",n.zOrigin=0,n.renderTransform()),n.uncache=1)}},G=function(t,e){var i={target:t,props:[],revert:U,save:z};return t._gsap||p.p8.core.getCache(t),e&&e.split(",").forEach(function(t){return i.save(t)}),i},W=function(t,e){var i=o.createElementNS?o.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):o.createElement(t);return i&&i.style?i:o.createElement(t)},N=function t(e,i,r){var s=getComputedStyle(e);return s[i]||s.getPropertyValue(i.replace(_,"-$1").toLowerCase())||s.getPropertyValue(i)||!r&&t(e,$(i)||i,1)||""},Y="O,Moz,ms,Ms,Webkit".split(","),$=function(t,e,i){var r=(e||u).style,s=5;if(t in r&&!i)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);s--&&!(Y[s]+t in r););return s<0?null:(3===s?"ms":s>=0?Y[s]:"")+t},V=function(){"undefined"!=typeof window&&window.document&&(h=(o=window.document).documentElement,u=W("div")||{style:{}},W("div"),L=(O=$(O))+"Origin",u.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",f=!!$("perspective"),c=p.p8.core.reverting,l=1)},X=function t(e){var i,r=W("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=this.parentNode,n=this.nextSibling,a=this.style.cssText;if(h.appendChild(r),r.appendChild(this),this.style.display="block",e)try{i=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(i=this._gsapBBox());return s&&(n?s.insertBefore(this,n):s.appendChild(this)),h.removeChild(r),this.style.cssText=a,i},H=function(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},j=function(t){var e;try{e=t.getBBox()}catch(i){e=X.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===X||(e=X.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+H(t,["x","cx","x1"])||0,y:+H(t,["y","cy","y1"])||0,width:0,height:0}},q=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&j(t))},Z=function(t,e){if(e){var i,r=t.style;e in m&&e!==L&&(e=O),r.removeProperty?(("ms"===(i=e.substr(0,2))||"webkit"===e.substr(0,6))&&(e="-"+e),r.removeProperty("--"===i?e:e.replace(_,"-$1").toLowerCase())):r.removeAttribute(e)}}
1,K=function(t,e,i,r,s,n){var a=new p.Fo(t._pt,e,i,0,1,n?T:P);return t._pt=a,a.b=r,a.e=s,t._props.push(i),a},Q={deg:1,rad:1,turn:1},J={grid:1,flex:1},tt=function t(e,i,r,s){var n,a,h,l,d=parseFloat(r)||0,c=(r+"").trim().substr((d+"").length)||"px",f=u.style,g=v.test(i),y="svg"===e.tagName.toLowerCase(),x=(y?"client":"offset")+(g?"Width":"Height"),_="px"===s,b="%"===s;if(s===c||!d||Q[s]||Q[c])return d;if("px"===c||_||(d=t(e,i,r,"px")),l=e.getCTM&&q(e),(b||"%"===c)&&(m[i]||~i.indexOf("adius")))return n=l?e.getBBox()[g?"width":"height"]:e[x],(0,p.Pr)(b?d/n*100:d/100*n);if(f[g?"width":"height"]=100+(_?c:s),a=~i.indexOf("adius")||"em"===s&&e.appendChild&&!y?e:e.parentNode,l&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==o&&a.appendChild||(a=o.body),(h=a._gsap)&&b&&h.width&&g&&h.time===p.xr.time&&!h.uncache)return(0,p.Pr)(d/h.width*100);if(b&&("height"===i||"width"===i)){var w=e.style[i];e.style[i]=100+s,n=e[x],w?e.style[i]=w:Z(e,i)}else(b||"%"===c)&&!J[N(a,"display")]&&(f.position=N(e,"position")),a===e&&(f.position="static"),a.appendChild(u),n=u[x],a.removeChild(u),f.position="absolute";return g&&b&&((h=(0,p.DY)(a)).time=p.xr.time,h.width=a[x]),(0,p.Pr)(_?n*d/100:n&&d?100/n*d:0)},te=function(t,e,i,r){var s;return l||V(),e in w&&"transform"!==e&&~(e=w[e]).indexOf(",")&&(e=e.split(",")[0]),m[e]&&"transform"!==e?(s=tf(t,r),s="transformOrigin"!==e?s[e]:s.svg?s.origin:tp(N(t,L))+" "+s.zOrigin+"px"):(!(s=t.style[e])||"auto"===s||r||~(s+"").indexOf("calc("))&&(s=ta[e]&&ta[e](t,e,i)||N(t,e)||(0,p.Ok)(t,e)||("opacity"===e?1:0)),i&&!~(s+"").trim().indexOf(" ")?tt(t,e,s,i)+i:s},ti=function(t,e,i,r){if(!i||"none"===i){var s=$(e,t,1),n=s&&N(t,s,1);n&&n!==i?(e=s,i=n):"borderColor"===e&&(i=N(t,"borderTopColor"))}var a,o,h,l,u,d,c,f,m,g,y,x=new p.Fo(this._pt,t.style,e,0,1,p.Ks),_=0,v=0;if(x.b=i,x.e=r,i+="","auto"==(r+="")&&(d=t.style[e],t.style[e]=r,r=N(t,e)||r,d?t.style[e]=d:Z(t,e)),a=[i,r],(0,p.kr)(a),i=a[0],r=a[1],h=i.match(p.d4)||[],(r.match(p.d4)||[]).length){for(;o=p.d4.exec(r);)c=o[0],m=r.substring(_,o.index),u?u=(u+1)%5:("rgba("===m.substr(-5)||"hsla("===m.substr(-5))&&(u=1),c!==(d=h[v++]||"")&&(l=parseFloat(d)||0,y=d.substr((l+"").length),"="===c.charAt(1)&&(c=(0,p.cy)(l,c)+y),f=parseFloat(c),g=c.substr((f+"").length),_=p.d4.lastIndex-g.length,g||(g=g||p.Fc.units[e]||y,_!==r.length||(r+=g,x.e+=g)),y!==g&&(l=tt(t,e,d,g)||0),x._pt={_next:x._pt,p:m||1===v?m:",",s:l,c:f-l,m:u&&u<4||"zIndex"===e?Math.round:0});x.c=_<r.length?r.substring(_,r.length):""}else x.r="display"===e&&"none"===r?T:P;return p.bQ.test(r)&&(x.e=0),this._pt=x,x},tr={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},ts=function(t){var e=t.split(" "),i=e[0],r=e[1]||"50%";return("top"===i||"bottom"===i||"left"===r||"right"===r)&&(t=i,i=r,r=t),e[0]=tr[i]||i,e[1]=tr[r]||r,e.join(" ")},tn=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var i,r,s,n=e.t,a=n.style,o=e.u,h=n._gsap;if("all"===o||!0===o)a.cssText="",r=1;else for(s=(o=o.split(",")).length;--s>-1;)m[i=o[s]]&&(r=1,i="transformOrigin"===i?L:O),Z(n,i);r&&(Z(n,O),h&&(h.svg&&n.removeAttribute("transform"),tf(n,1),h.uncache=1,D(a)))}},ta={clearProps:function(t,e,i,r,s){if("isFromStart"!==s.data){var n=t._pt=new p.Fo(t._pt,e,i,0,0,tn);return n.u=r,n.pr=-10,n.tween=s,t._props.push(i),1}}},to=[1,0,0,1,0,0],th={},tl=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},tu=function(t){var e=N(t,O);return tl(e)?to:e.substr(7).match(p.SI).map(p.Pr)},td=function(t,e){var i,r,s,n,a=t._gsap||(0,p.DY)(t),o=t.style,l=tu(t);return a.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(s=t.transform.baseVal.consolidate().matrix).a,s.b,s.c,s.d,s.e,s.f]).join(",")?to:l:(l!==to||t.offsetParent||t===h||a.svg||(s=o.display,o.display="block",(i=t.parentNode)&&t.offsetParent||(n=1,r=t.nextElementSibling,h.appendChild(t)),l=tu(t),s?o.display=s:Z(t,"display"),n&&(r?i.insertBefore(t,r):i?i.appendChild(t):h.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},tc=function(t,e,i,r,s,n){var a,o,h,l,u=t._gsap,d=s||td(t,!0),c=u.xOrigin||0,f=u.yOrigin||0,p=u.xOffset||0,m=u.yOffset||0,g=d[0],y=d[1],x=d[2],_=d[3],v=d[4],b=d[5],w=e.split(" "),A=parseFloat(w[0])||0,S=parseFloat(w[1])||0;i?d!==to&&(o=g*_-y*x)&&(h=_/o*A+-x/o*S+(x*b-_*v)/o,l=-y/o*A+g/o*S-(g*b-y*v)/o,A=h,S=l):(A=(a=j(t)).x+(~w[0].indexOf("%")?A/100*a.width:A),S=a.y+(~(w[1]||w[0]).indexOf("%")?S/100*a.height:S)),r||!1!==r&&u.smooth?(v=A-c,b=S-f,u.xOffset=p+(v*g+b*x)-v,u.yOffset=m+(v*y+b*_)-b):u.xOffset=u.yOffset=0,u.xOrigin=A,u.yOrigin=S,u.smooth=!!r,u.origin=e,u.originIsAbsolute=!!i,t.style[L]="0px 0px",n&&
1(K(n,u,"xOrigin",c,A),K(n,u,"yOrigin",f,S),K(n,u,"xOffset",p,u.xOffset),K(n,u,"yOffset",m,u.yOffset)),t.setAttribute("data-svg-origin",A+" "+S)},tf=function(t,e){var i=t._gsap||new p.l1(t);if("x"in i&&!e&&!i.uncache)return i;var r,s,n,a,o,h,l,u,d,c,m,_,v,b,w,A,S,C,M,P,T,k,E,I,B,R,F,z,D,U,G,W,Y=t.style,$=i.scaleX<0,V=getComputedStyle(t),X=N(t,L)||"0";return r=s=n=h=l=u=d=c=m=0,a=o=1,i.svg=!!(t.getCTM&&q(t)),V.translate&&(("none"!==V.translate||"none"!==V.scale||"none"!==V.rotate)&&(Y[O]=("none"!==V.translate?"translate3d("+(V.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==V.rotate?"rotate("+V.rotate+") ":"")+("none"!==V.scale?"scale("+V.scale.split(" ").join(",")+") ":"")+("none"!==V[O]?V[O]:"")),Y.scale=Y.rotate=Y.translate="none"),b=td(t,i.svg),i.svg&&(i.uncache?(B=t.getBBox(),X=i.xOrigin-B.x+"px "+(i.yOrigin-B.y)+"px",I=""):I=!e&&t.getAttribute("data-svg-origin"),tc(t,I||X,!!I||i.originIsAbsolute,!1!==i.smooth,b)),_=i.xOrigin||0,v=i.yOrigin||0,b!==to&&(C=b[0],M=b[1],P=b[2],T=b[3],r=k=b[4],s=E=b[5],6===b.length?(a=Math.sqrt(C*C+M*M),o=Math.sqrt(T*T+P*P),h=C||M?x(M,C)*g:0,(d=P||T?x(P,T)*g+h:0)&&(o*=Math.abs(Math.cos(d*y))),i.svg&&(r-=_-(_*C+v*P),s-=v-(_*M+v*T))):(W=b[6],U=b[7],F=b[8],z=b[9],D=b[10],G=b[11],r=b[12],s=b[13],n=b[14],l=(w=x(W,D))*g,w&&(I=k*(A=Math.cos(-w))+F*(S=Math.sin(-w)),B=E*A+z*S,R=W*A+D*S,F=-(k*S)+F*A,z=-(E*S)+z*A,D=-(W*S)+D*A,G=-(U*S)+G*A,k=I,E=B,W=R),u=(w=x(-P,D))*g,w&&(I=C*(A=Math.cos(-w))-F*(S=Math.sin(-w)),B=M*A-z*S,R=P*A-D*S,G=T*S+G*A,C=I,M=B,P=R),h=(w=x(M,C))*g,w&&(I=C*(A=Math.cos(w))+M*(S=Math.sin(w)),B=k*A+E*S,M=M*A-C*S,E=E*A-k*S,C=I,k=B),l&&Math.abs(l)+Math.abs(h)>359.9&&(l=h=0,u=180-u),a=(0,p.Pr)(Math.sqrt(C*C+M*M+P*P)),o=(0,p.Pr)(Math.sqrt(E*E+W*W)),d=Math.abs(w=x(k,E))>2e-4?w*g:0,m=G?1/(G<0?-G:G):0),i.svg&&(I=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!tl(N(t,O)),I&&t.setAttribute("transform",I))),Math.abs(d)>90&&270>Math.abs(d)&&($?(a*=-1,d+=h<=0?180:-180,h+=h<=0?180:-180):(o*=-1,d+=d<=0?180:-180)),e=e||i.uncache,i.x=r-((i.xPercent=r&&(!e&&i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+"px",i.y=s-((i.yPercent=s&&(!e&&i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-s)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+"px",i.z=n+"px",i.scaleX=(0,p.Pr)(a),i.scaleY=(0,p.Pr)(o),i.rotation=(0,p.Pr)(h)+"deg",i.rotationX=(0,p.Pr)(l)+"deg",i.rotationY=(0,p.Pr)(u)+"deg",i.skewX=d+"deg",i.skewY=c+"deg",i.transformPerspective=m+"px",(i.zOrigin=parseFloat(X.split(" ")[2])||!e&&i.zOrigin||0)&&(Y[L]=tp(X)),i.xOffset=i.yOffset=0,i.force3D=p.Fc.force3D,i.renderTransform=i.svg?t_:f?tx:tg,i.uncache=0,i},tp=function(t){return(t=t.split(" "))[0]+" "+t[1]},tm=function(t,e,i){var r=(0,p.Wy)(e);return(0,p.Pr)(parseFloat(e)+parseFloat(tt(t,"x",i+"px",r)))+r},tg=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,tx(t,e)},ty="0deg",tx=function(t,e){var i=e||this,r=i.xPercent,s=i.yPercent,n=i.x,a=i.y,o=i.z,h=i.rotation,l=i.rotationY,u=i.rotationX,d=i.skewX,c=i.skewY,f=i.scaleX,p=i.scaleY,m=i.transformPerspective,g=i.force3D,x=i.target,_=i.zOrigin,v="",b="auto"===g&&t&&1!==t||!0===g;if(_&&(u!==ty||l!==ty)){var w,A=parseFloat(l)*y,S=Math.sin(A),C=Math.cos(A);n=tm(x,n,-(S*(w=Math.cos(A=parseFloat(u)*y))*_)),a=tm(x,a,-(-Math.sin(A)*_)),o=tm(x,o,-(C*w*_)+_)}"0px"!==m&&(v+="perspective("+m+") "),(r||s)&&(v+="translate("+r+"%, "+s+"%) "),(b||"0px"!==n||"0px"!==a||"0px"!==o)&&(v+="0px"!==o||b?"translate3d("+n+", "+a+", "+o+") ":"translate("+n+", "+a+") "),h!==ty&&(v+="rotate("+h+") "),l!==ty&&(v+="rotateY("+l+") "),u!==ty&&(v+="rotateX("+u+") "),(d!==ty||c!==ty)&&(v+="skew("+d+", "+c+") "),(1!==f||1!==p)&&(v+="scale("+f+", "+p+") "),x.style[O]=v||"translate(0, 0)"},t_=function(t,e){var i,r,s,n,a,o=e||this,h=o.xPercent,l=o.yPercent,u=o.x,d=o.y,c=o.rotation,f=o.skewX,m=o.skewY,g=o.scaleX,x=o.scaleY,_=o.target,v=o.xOrigin,b=o.yOrigin,w=o.xOffset,A=o.yOffset,S=o.forceCSS,C=parseFloat(u),M=parseFloat(d);c=parseFloat(c),f=parseFloat(f),(m=parseFloat(m))&&(f+=m=parseFloat(m),c+=m),c||f?(c*=y,f*=y,i=Math.cos(c)*g,r=Math.sin(c)*g,s=-(Math.sin(c-f)*x),n=Math.cos(c-f)*x,f&&(m*=y,s*=a=Math.sqrt(1+(a=Math.tan(f-m))*a),n*=a,m&&(i*=a=Math.sqrt(1+(a=Math.tan(m))*a),r*=a)),i=(0,p.Pr)(i),r=(0,p.Pr)(r),s=(0,p.Pr)(s),n=(0,p.Pr)(n)):(i=g,n=x,r=s=0),(C&&!~(u+"").indexOf("px")||M&&!~(d+"").indexOf("px"))&&(C=tt(_,"x",u,"px"),M=tt(_,"y",d,"px")),(v||b||w||A)&&(C=(0,p.Pr)(C+v-(v*i+b*s)+w),M=(0,p.Pr)(M+b-(v*r+b*n)+A)),(h||l)&&(a=_.getBBox(),C=(0,p.Pr)(C+h/100*a.width),M=(0,p.Pr)(M+l/100*a.height)),a="matrix("+i+","+r+","+s+","+n+","+C+","+M+")",_.setAttribute("transform",a),S&&(_.style[O]=a)}
1,tv=function(t,e,i,r,s){var n,a,o=(0,p.r9)(s),h=parseFloat(s)*(o&&~s.indexOf("rad")?g:1)-r,l=r+h+"deg";return o&&("short"===(n=s.split("_")[1])&&(h%=360)!=h%180&&(h+=h<0?360:-360),"cw"===n&&h<0?h=(h+36e9)%360-360*~~(h/360):"ccw"===n&&h>0&&(h=(h-36e9)%360-360*~~(h/360))),t._pt=a=new p.Fo(t._pt,e,i,r,h,S),a.e=l,a.u="deg",t._props.push(i),a},tb=function(t,e){for(var i in e)t[i]=e[i];return t},tw=function(t,e,i){var r,s,n,a,o,h,l,u=tb({},i._gsap),d=i.style;for(s in u.svg?(n=i.getAttribute("transform"),i.setAttribute("transform",""),d[O]=e,r=tf(i,1),Z(i,O),i.setAttribute("transform",n)):(n=getComputedStyle(i)[O],d[O]=e,r=tf(i,1),d[O]=n),m)(n=u[s])!==(a=r[s])&&0>"perspective,force3D,transformOrigin,svgOrigin".indexOf(s)&&(o=(0,p.Wy)(n)!==(l=(0,p.Wy)(a))?tt(i,s,n,l):parseFloat(n),h=parseFloat(a),t._pt=new p.Fo(t._pt,r,s,o,h-o,A),t._pt.u=l||0,t._props.push(s));tb(r,u)};(0,p.fS)("padding,margin,Width,Radius",function(t,e){var i="Right",r="Bottom",s="Left",n=(e<3?["Top",i,r,s]:["Top"+s,"Top"+i,r+i,r+s]).map(function(i){return e<2?t+i:"border"+i+t});ta[e>1?"border"+t:t]=function(t,e,i,r,s){var a,o;if(arguments.length<4)return 5===(o=(a=n.map(function(e){return te(t,e,i)})).join(" ")).split(a[0]).length?a[0]:o;a=(r+"").split(" "),o={},n.forEach(function(t,e){return o[t]=a[e]=a[e]||a[(e-1)/2|0]}),t.init(e,o,s)}});var tA={name:"css",register:V,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,i,r,s){var n,a,o,h,u,d,c,f,g,y,x,_,v,S,P,T,k=this._props,E=t.style,I=i.vars.startAt;for(c in l||V(),this.styles=this.styles||G(t),T=this.styles.props,this.tween=i,e)if("autoRound"!==c&&(a=e[c],!(p.$i[c]&&(0,p.if)(c,e,i,r,t,s)))){if(u=typeof a,d=ta[c],"function"===u&&(u=typeof(a=a.call(i,r,t,s))),"string"===u&&~a.indexOf("random(")&&(a=(0,p.UI)(a)),d)d(this,t,c,a,i)&&(P=1);else if("--"===c.substr(0,2))n=(getComputedStyle(t).getPropertyValue(c)+"").trim(),a+="",p.GN.lastIndex=0,p.GN.test(n)||(f=(0,p.Wy)(n),g=(0,p.Wy)(a)),g?f!==g&&(n=tt(t,c,n,g)+g):f&&(a+=f),this.add(E,"setProperty",n,a,r,s,0,0,c),k.push(c),T.push(c,0,E[c]);else if("undefined"!==u){if(I&&c in I?(n="function"==typeof I[c]?I[c].call(i,r,t,s):I[c],(0,p.r9)(n)&&~n.indexOf("random(")&&(n=(0,p.UI)(n)),(0,p.Wy)(n+"")||"auto"===n||(n+=p.Fc.units[c]||(0,p.Wy)(te(t,c))||""),"="===(n+"").charAt(1)&&(n=te(t,c))):n=te(t,c),h=parseFloat(n),(y="string"===u&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),c in w&&("autoAlpha"===c&&(1===h&&"hidden"===te(t,"visibility")&&o&&(h=0),T.push("visibility",0,E.visibility),K(this,E,"visibility",h?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==c&&"transform"!==c&&~(c=w[c]).indexOf(",")&&(c=c.split(",")[0])),x=c in m){if(this.styles.save(c),_||((v=t._gsap).renderTransform&&!e.parseTransform||tf(t,e.parseTransform),S=!1!==e.smoothOrigin&&v.smooth,(_=this._pt=new p.Fo(this._pt,E,O,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===c)this._pt=new p.Fo(this._pt,v,"scaleY",v.scaleY,(y?(0,p.cy)(v.scaleY,y+o):o)-v.scaleY||0,A),this._pt.u=0,k.push("scaleY",c),c+="X";else if("transformOrigin"===c){T.push(L,0,E[L]),a=ts(a),v.svg?tc(t,a,0,S,0,this):((g=parseFloat(a.split(" ")[2])||0)!==v.zOrigin&&K(this,v,"zOrigin",v.zOrigin,g),K(this,E,c,tp(n),tp(a)));continue}else if("svgOrigin"===c){tc(t,a,1,S,0,this);continue}else if(c in th){tv(this,v,c,h,y?(0,p.cy)(h,y+a):a);continue}else if("smoothOrigin"===c){K(this,v,"smooth",v.smooth,a);continue}else if("force3D"===c){v[c]=a;continue}else if("transform"===c){tw(this,a,t);continue}}else c in E||(c=$(c)||c);if(x||(o||0===o)&&(h||0===h)&&!b.test(a)&&c in E)f=(n+"").substr((h+"").length),o||(o=0),g=(0,p.Wy)(a)||(c in p.Fc.units?p.Fc.units[c]:f),f!==g&&(h=tt(t,c,n,g)),this._pt=new p.Fo(this._pt,x?v:E,c,h,(y?(0,p.cy)(h,y+o):o)-h,x||"px"!==g&&"zIndex"!==c||!1===e.autoRound?A:M),this._pt.u=g||0,f!==g&&"%"!==g&&(this._pt.b=n,this._pt.r=C);else if(c in E)ti.call(this,t,c,n,y?y+a:a);else if(c in t)this.add(t,c,n||t[c],y?y+a:a,r,s);else if("parseTransform"!==c){(0,p.lC)(c,a);continue}x||(c in E?T.push(c,0,E[c]):T.push(c,1,n||t[c])),k.push(c)}}P&&(0,p.JV)(this)},render:function(t,e){if(e.tween._time||!c())for(var i=e._pt;i;)i.r(t,i.d),i=i._next;else e.styles.revert()}
1,get:te,aliases:w,getSetter:function(t,e,i){var r=w[e];return r&&0>r.indexOf(",")&&(e=r),e in m&&e!==L&&(t._gsap.x||te(t,"x"))?i&&d===i?"scale"===e?B:I:(d=i||{},"scale"===e?R:F):t.style&&!(0,p.m2)(t.style[e])?k:~e.indexOf("-")?E:(0,p.S5)(t,e)},core:{_removeProperty:Z,_getMatrix:td}};p.p8.utils.checkPrefix=$,p.p8.core.getStyleSaver=G,r="x,y,z,scale,scaleX,scaleY,xPercent,yPercent",s="rotation,rotationX,rotationY,skewX,skewY",n="0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",a=(0,p.fS)(r+","+s+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){m[t]=1}),(0,p.fS)(s,function(t){p.Fc.units[t]="deg",th[t]=1}),w[a[13]]=r+","+s,(0,p.fS)(n,function(t){var e=t.split(":");w[e[1]]=a[e[0]]}),(0,p.fS)("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){p.Fc.units[t]="px"}),p.p8.registerPlugin(tA);var tS=p.p8.registerPlugin(tA)||p.p8;tS.core.Tween},6731:function(t){!function(){"use strict";var e={864:function(t){var e,i="object"==typeof Reflect?Reflect:null,r=i&&"function"==typeof i.apply?i.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)};e=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var s=Number.isNaN||function(t){return t!=t};function n(){n.init.call(this)}t.exports=n,t.exports.once=function(t,e){return new Promise(function(i,r){var s;function n(i){t.removeListener(e,a),r(i)}function a(){"function"==typeof t.removeListener&&t.removeListener("error",n),i([].slice.call(arguments))}m(t,e,a,{once:!0}),"error"!==e&&(s={once:!0},"function"==typeof t.on&&m(t,"error",n,s))})},n.EventEmitter=n,n.prototype._events=void 0,n.prototype._eventsCount=0,n.prototype._maxListeners=void 0;var a=10;function o(t){if("function"!=typeof t)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function h(t){return void 0===t._maxListeners?n.defaultMaxListeners:t._maxListeners}function l(t,e,i,r){if(o(i),void 0===(n=t._events)?(n=t._events=Object.create(null),t._eventsCount=0):(void 0!==n.newListener&&(t.emit("newListener",e,i.listener?i.listener:i),n=t._events),a=n[e]),void 0===a)a=n[e]=i,++t._eventsCount;else if("function"==typeof a?a=n[e]=r?[i,a]:[a,i]:r?a.unshift(i):a.push(i),(s=h(t))>0&&a.length>s&&!a.warned){a.warned=!0;var s,n,a,l=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=a.length,console&&console.warn&&console.warn(l)}return t}function u(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(t,e,i){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},s=u.bind(r);return s.listener=i,r.wrapFn=s,s}function c(t,e,i){var r=t._events;if(void 0===r)return[];var s=r[e];return void 0===s?[]:"function"==typeof s?i?[s.listener||s]:[s]:i?function(t){for(var e=Array(t.length),i=0;i<e.length;++i)e[i]=t[i].listener||t[i];return e}(s):p(s,s.length)}function f(t){var e=this._events;if(void 0!==e){var i=e[t];if("function"==typeof i)return 1;if(void 0!==i)return i.length}return 0}function p(t,e){for(var i=Array(e),r=0;r<e;++r)i[r]=t[r];return i}function m(t,e,i,r){if("function"==typeof t.on)r.once?t.once(e,i):t.on(e,i);else if("function"==typeof t.addEventListener)t.addEventListener(e,function s(n){r.once&&t.removeEventListener(e,s),i(n)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}Object.defineProperty(n,"defaultMaxListeners",{enumerable:!0,get:function(){return a}
1,set:function(t){if("number"!=typeof t||t<0||s(t))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");a=t}}),n.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},n.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||s(t))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},n.prototype.getMaxListeners=function(){return h(this)},n.prototype.emit=function(t){for(var e=[],i=1;i<arguments.length;i++)e.push(arguments[i]);var s="error"===t,n=this._events;if(void 0!==n)s=s&&void 0===n.error;else if(!s)return!1;if(s){if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var a,o=Error("Unhandled error."+(a?" ("+a.message+")":""));throw o.context=a,o}var h=n[t];if(void 0===h)return!1;if("function"==typeof h)r(h,this,e);else for(var l=h.length,u=p(h,l),i=0;i<l;++i)r(u[i],this,e);return!0},n.prototype.addListener=function(t,e){return l(this,t,e,!1)},n.prototype.on=n.prototype.addListener,n.prototype.prependListener=function(t,e){return l(this,t,e,!0)},n.prototype.once=function(t,e){return o(e),this.on(t,d(this,t,e)),this},n.prototype.prependOnceListener=function(t,e){return o(e),this.prependListener(t,d(this,t,e)),this},n.prototype.removeListener=function(t,e){var i,r,s,n,a;if(o(e),void 0===(r=this._events)||void 0===(i=r[t]))return this;if(i===e||i.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,i.listener||e));else if("function"!=typeof i){for(s=-1,n=i.length-1;n>=0;n--)if(i[n]===e||i[n].listener===e){a=i[n].listener,s=n;break}if(s<0)return this;0===s?i.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(i,s),1===i.length&&(r[t]=i[0]),void 0!==r.removeListener&&this.emit("removeListener",t,a||e)}return this},n.prototype.off=n.prototype.removeListener,n.prototype.removeAllListeners=function(t){var e,i,r;if(void 0===(i=this._events))return this;if(void 0===i.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete i[t]),this;if(0==arguments.length){var s,n=Object.keys(i);for(r=0;r<n.length;++r)"removeListener"!==(s=n[r])&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=i[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},n.prototype.listeners=function(t){return c(this,t,!0)},n.prototype.rawListeners=function(t){return c(this,t,!1)},n.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):f.call(t,e)},n.prototype.listenerCount=f,n.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}}},i={};function r(t){var s=i[t];if(void 0!==s)return s.exports;var n=i[t]={exports:{}},a=!0;try{e[t](n,n.exports,r),a=!1}finally{a&&delete i[t]}return n.exports}r.ab="//";var s=r(864);t.exports=s}()},2219:function(t){t.exports=function(t){var s=[];return t.replace(i,function(t,i,n){var a,o=i.toLowerCase();for(n=(a=n.match(r))?a.map(Number):[],"m"==o&&n.length>2&&(s.push([i].concat(n.splice(0,2))),o="l",i="m"==i?"l":"L");;){if(n.length==e[o])return n.unshift(i),s.push(n);if(n.length<e[o])throw Error("malformed path data");s.push([i].concat(n.splice(0,e[o])))}}),s};var e={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=/([astvzqmhlc])([^astvzqmhlc]*)/ig,r=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig},6393:function(t,e,i){"use strict";var r=i(7836);e.Z=r},6075:function(t,e,i){"use strict";i.d(e,{C:function(){return a}});var r=i(5788),s=i(9638);class n{constructor(){this._parsers=[],this._cache=new Map,this._cacheMap=new Map}reset(){this._cacheMap.clear(),this._cache.clear()}has(t){return this._cache.has(t)}get(t){let e=this._cache.get(t);return e||(0,r.Z)(`[Assets] Asset id ${t} was not found in the Cache`),e}set(t,e){let i;let n=(0,s.S)(t);for(let t=0;t<this.parsers.length;t++){let r=this.parsers[t];if(r.test(e)){i=r.getCacheableAssets(n,e);break}}let a=new Map(Object.entries(i||{}));
1i||n.forEach(t=>{a.set(t,e)});let o=[...a.keys()],h={cacheKeys:o,keys:n};n.forEach(t=>{this._cacheMap.set(t,h)}),o.forEach(t=>{let s=i?i[t]:e;this._cache.has(t)&&this._cache.get(t)!==s&&(0,r.Z)("[Cache] already has key:",t),this._cache.set(t,a.get(t))})}remove(t){if(!this._cacheMap.has(t)){(0,r.Z)(`[Assets] Asset id ${t} was not found in the Cache`);return}let e=this._cacheMap.get(t);e.cacheKeys.forEach(t=>{this._cache.delete(t)}),e.keys.forEach(t=>{this._cacheMap.delete(t)})}get parsers(){return this._parsers}}let a=new n},496:function(t,e,i){"use strict";i.d(e,{Q:function(){return s}});var r,s=((r=s||{})[r.Low=0]="Low",r[r.Normal=1]="Normal",r[r.High=2]="High",r)},9232:function(t,e,i){"use strict";i.d(e,{H:function(){return o}});var r=i(5788),s=i(9459),n=i(9638),a=i(185);class o{constructor(){this._defaultBundleIdentifierOptions={connector:"-",createBundleAssetId:(t,e)=>`${t}${this._bundleIdConnector}${e}`,extractAssetIdFromBundle:(t,e)=>e.replace(`${t}${this._bundleIdConnector}`,"")},this._bundleIdConnector=this._defaultBundleIdentifierOptions.connector,this._createBundleAssetId=this._defaultBundleIdentifierOptions.createBundleAssetId,this._extractAssetIdFromBundle=this._defaultBundleIdentifierOptions.extractAssetIdFromBundle,this._assetMap={},this._preferredOrder=[],this._parsers=[],this._resolverHash={},this._bundles={}}setBundleIdentifier(t){if(this._bundleIdConnector=t.connector??this._bundleIdConnector,this._createBundleAssetId=t.createBundleAssetId??this._createBundleAssetId,this._extractAssetIdFromBundle=t.extractAssetIdFromBundle??this._extractAssetIdFromBundle,"bar"!==this._extractAssetIdFromBundle("foo",this._createBundleAssetId("foo","bar")))throw Error("[Resolver] GenerateBundleAssetId are not working correctly")}prefer(...t){t.forEach(t=>{this._preferredOrder.push(t),t.priority||(t.priority=Object.keys(t.params))}),this._resolverHash={}}set basePath(t){this._basePath=t}get basePath(){return this._basePath}set rootPath(t){this._rootPath=t}get rootPath(){return this._rootPath}get parsers(){return this._parsers}reset(){this.setBundleIdentifier(this._defaultBundleIdentifierOptions),this._assetMap={},this._preferredOrder=[],this._resolverHash={},this._rootPath=null,this._basePath=null,this._manifest=null,this._bundles={},this._defaultSearchParams=null}setDefaultSearchParams(t){"string"==typeof t?this._defaultSearchParams=t:this._defaultSearchParams=Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}getAlias(t){let{alias:e,src:i}=t;return(0,n.S)(e||i,t=>"string"==typeof t?t:Array.isArray(t)?t.map(t=>t?.src??t):t?.src?t.src:t,!0)}addManifest(t){this._manifest&&(0,r.Z)("[Resolver] Manifest already exists, this will be overwritten"),this._manifest=t,t.bundles.forEach(t=>{this.addBundle(t.name,t.assets)})}addBundle(t,e){let i=[],r=e;Array.isArray(e)||(r=Object.entries(e).map(([t,e])=>"string"==typeof e||Array.isArray(e)?{alias:t,src:e}:{alias:t,...e})),r.forEach(e=>{let r;let s=e.src,n=e.alias;if("string"==typeof n){let e=this._createBundleAssetId(t,n);i.push(e),r=[n,e]}else{let e=n.map(e=>this._createBundleAssetId(t,e));i.push(...e),r=[...n,...e]}this.add({...e,alias:r,src:s})}),this._bundles[t]=i}add(t){let e;let i=[];Array.isArray(t)?i.push(...t):i.push(t),e=t=>{this.hasKey(t)&&(0,r.Z)(`[Resolver] already has key: ${t} overwriting`)},(0,n.S)(i).forEach(t=>{let{src:i}=t,{data:r,format:s,loadParser:a}=t,o=(0,n.S)(i).map(t=>"string"==typeof t?function(t){let e=t.match(/\{(.*?)\}/g),i=[];if(e){let r=[];e.forEach(t=>{let e=t.substring(1,t.length-1).split(",");r.push(e)}),function t(e,i,r,s,n){let a=i[r];for(let o=0;o<a.length;o++){let h=a[o];r<i.length-1?t(e.replace(s[r],h),i,r+1,s,n):n.push(e.replace(s[r],h))}}(t,r,0,e,i)}else i.push(t);return i}(t):Array.isArray(t)?t:[t]),h=this.getAlias(t);Array.isArray(h)?h.forEach(e):e(h);let l=[];o.forEach(t=>{t.forEach(t=>{let e={};if("object"!=typeof t){e.src=t;for(let i=0;i<this._parsers.length;i++){let r=this._parsers[i];if(r.test(t)){e=r.parse(t);break}}}else r=t.data??r,s=t.format??s,a=t.loadParser??a,e={...e,...t};if(!h)throw Error(`[Resolver] alias is undefined for this asset: ${e.src}`);
1e=this._buildResolvedAsset(e,{aliases:h,data:r,format:s,loadParser:a}),l.push(e)})}),h.forEach(t=>{this._assetMap[t]=l})})}resolveBundle(t){let e=(0,a.X)(t);t=(0,n.S)(t);let i={};return t.forEach(t=>{let e=this._bundles[t];if(e){let r=this.resolve(e),s={};for(let e in r){let i=r[e];s[this._extractAssetIdFromBundle(t,e)]=i}i[t]=s}}),e?i[t[0]]:i}resolveUrl(t){let e=this.resolve(t);if("string"!=typeof t){let t={};for(let i in e)t[i]=e[i].src;return t}return e.src}resolve(t){let e=(0,a.X)(t);t=(0,n.S)(t);let i={};return t.forEach(t=>{if(!this._resolverHash[t]){if(this._assetMap[t]){let e=this._assetMap[t],i=this._getPreferredOrder(e);i?.priority.forEach(t=>{i.params[t].forEach(i=>{let r=e.filter(e=>!!e[t]&&e[t]===i);r.length&&(e=r)})}),this._resolverHash[t]=e[0]}else this._resolverHash[t]=this._buildResolvedAsset({alias:[t],src:t},{})}i[t]=this._resolverHash[t]}),e?i[t[0]]:i}hasKey(t){return!!this._assetMap[t]}hasBundle(t){return!!this._bundles[t]}_getPreferredOrder(t){for(let e=0;e<t.length;e++){let e=t[0],i=this._preferredOrder.find(t=>t.params.format.includes(e.format));if(i)return i}return this._preferredOrder[0]}_appendDefaultSearchParams(t){if(!this._defaultSearchParams)return t;let e=/\?/.test(t)?"&":"?";return`${t}${e}${this._defaultSearchParams}`}
1_buildResolvedAsset(t,e){let{aliases:i,data:r,loadParser:n,format:a}=e;return(this._basePath||this._rootPath)&&(t.src=s.E.toAbsolute(t.src,this._basePath,this._rootPath)),t.alias=i??t.alias??[t.src],t.src=this._appendDefaultSearchParams(t.src),t.data={...r||{},...t.data},t.loadParser=n??t.loadParser,t.format=a??t.format??t.src.split(".").pop().split("?").shift().split("#").shift(),t}}o.RETINA_PREFIX=/@([0-9\.]+)x/},9638:function(t,e,i){"use strict";i.d(e,{S:function(){return r}});let r=(t,e,i=!1)=>(Array.isArray(t)||(t=[t]),e)?t.map(t=>"string"==typeof t||i?e(t):t):t},9003:function(t,e,i){"use strict";i.d(e,{u:function(){return r}});let r=(t,e)=>{let i=e.split("?")[1];return i&&(t+=`?${i}`),t}},185:function(t,e,i){"use strict";i.d(e,{X:function(){return r}});let r=t=>!Array.isArray(t)},6910:function(t,e,i){"use strict";i.d(e,{I:function(){return I}});var r={grad:.9,turn:360,rad:360/(2*Math.PI)},s=function(t){return"string"==typeof t?t.length>0:"number"==typeof t},n=function(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=Math.pow(10,e)),Math.round(i*t)/i+0},a=function(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=1),t>i?i:t>e?t:e},o=function(t){return(t=isFinite(t)?t%360:0)>0?t:t+360},h=function(t){return{r:a(t.r,0,255),g:a(t.g,0,255),b:a(t.b,0,255),a:a(t.a)}},l=function(t){return{r:n(t.r),g:n(t.g),b:n(t.b),a:n(t.a,3)}},u=/^#([0-9a-f]{3,8})$/i,d=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},c=function(t){var e=t.r,i=t.g,r=t.b,s=t.a,n=Math.max(e,i,r),a=n-Math.min(e,i,r),o=a?n===e?(i-r)/a:n===i?2+(r-e)/a:4+(e-i)/a:0;return{h:60*(o<0?o+6:o),s:n?a/n*100:0,v:n/255*100,a:s}},f=function(t){var e=t.h,i=t.s,r=t.v,s=t.a;e=e/360*6,i/=100,r/=100;var n=Math.floor(e),a=r*(1-i),o=r*(1-(e-n)*i),h=r*(1-(1-e+n)*i),l=n%6;return{r:255*[r,o,a,a,h,r][l],g:255*[h,r,r,o,a,a][l],b:255*[a,a,h,r,r,o][l],a:s}},p=function(t){return{h:o(t.h),s:a(t.s,0,100),l:a(t.l,0,100),a:a(t.a)}},m=function(t){return{h:n(t.h),s:n(t.s),l:n(t.l),a:n(t.a,3)}},g=function(t){var e,i;return f((e=t.s,{h:t.h,s:(e*=((i=t.l)<50?i:100-i)/100)>0?2*e/(i+e)*100:0,v:i+e,a:t.a}))},y=function(t){var e,i,r,s;return{h:(e=c(t)).h,s:(s=(200-(i=e.s))*(r=e.v)/100)>0&&s<200?i*r/100/(s<=100?s:200-s)*100:0,l:s/2,a:e.a}},x=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,w={string:[[function(t){var e=u.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:4===t.length?n(parseInt(t[3]+t[3],16)/255,2):1}:6===t.length||8===t.length?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:8===t.length?n(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=v.exec(t)||b.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:h({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:void 0===e[7]?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e,i,s=x.exec(t)||_.exec(t);return s?g(p({h:(e=s[1],void 0===(i=s[2])&&(i="deg"),Number(e)*(r[i]||1)),s:Number(s[3]),l:Number(s[4]),a:void 0===s[5]?1:Number(s[5])/(s[6]?100:1)})):null},"hsl"]],object:[[function(t){var e=t.r,i=t.g,r=t.b,n=t.a;return s(e)&&s(i)&&s(r)?h({r:Number(e),g:Number(i),b:Number(r),a:Number(void 0===n?1:n)}):null},"rgb"],[function(t){var e=t.h,i=t.s,r=t.l,n=t.a;return s(e)&&s(i)&&s(r)?g(p({h:Number(e),s:Number(i),l:Number(r),a:Number(void 0===n?1:n)})):null},"hsl"],[function(t){var e,i=t.h,r=t.s,n=t.v,h=t.a;return s(i)&&s(r)&&s(n)?f({h:o((e={h:Number(i),s:Number(r),v:Number(n),a:Number(void 0===h?1:h)}).h),s:a(e.s,0,100),v:a(e.v,0,100),a:a(e.a)}):null},"hsv"]]},A=function(t,e){for(var i=0;i<e.length;i++){var r=e[i][0](t);if(r)return[r,e[i][1]]}return[null,void 0]},S=function(t,e){var i=y(t);return{h:i.h,s:a(i.s+100*e,0,100),l:i.l,a:i.a}},C=function(t){return(299*t.r+587*t.g+114*t.b)/1e3/255},M=function(t,e){var i=y(t);return{h:i.h,s:i.s,l:a(i.l+100*e,0,100),a:i.a}},P=function(){function t(t){this.parsed=("string"==typeof t?A(t.trim(),w.string):"object"==typeof t&&null!==t?A(t,w.object):[null,void 0])[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return t.prototype.isValid=function(){return null!==this.parsed},t.prototype.brightness=function(){return n(C(this.rgba),2)},t.prototype.isDark=function(){return .5>C(this.rgba)},t.prototype.isLight=function(){return C(this.rgba)>=.5},t.prototype.toHex=function(){var t,e,i,r,s,a;return e=(t=l(this.rgba)).r,i=t.g,r=t.b,a=(s=t.a)<1?d(n(255*s)):"","#"+d(e)+d(i)+d(r)+a},t.prototype.toRgb=function(){return l(this.rgba)},t.prototype.toRgbString=function(){var t,e,i,r,s;return e=(t=l(this.rgba)).r,i=t.g,r=t.b,(s=t.a)<1?"rgba("+e+", "+i+", "+r+", "+s+")":"rgb("+e+", "+i+", "+r+")"},t.prototype.toHsl=function(){return m(y(this.rgba))},t.prototype.toHslString=function(){var t,e,i,r,s;return e=(t=m(y(this.rgba))).h,i=t.s,r=t.l,(s=t.a)<1?"hsla("+e+", "+i+"%, "+r+"%, "+s+")":"hsl("+e+", "+i+"%, "+r+"%)"},t.prototype.toHsv=function(){var t;return{h:n((t=c(this.rgba)).h),s:n(t.s),v:n(t.v),a:n(t.a,3)}},t.prototype.invert=function(){var t;return T({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a})},t.prototype.saturate=function(t){return void 0===t&&(t=.1),T(S(this.rgba,t))},t.prototype.desaturate=function(t){return void 0===t&&(t=.1),T(S(this.rgba,-t))},t.prototype.grayscale=function(){return T(S(this.rgba,-1))},t.prototype.lighten=function(t){return void 0===t&&(t=.1),T(M(this.rgba,t))},t.prototype.darken=function(t){return void 0===t&&(t=.1),T(M(this.rgba,-t))},t.prototype.rotate=function(t){return void 0===t&&(t=15),this.hue(this.hue()+t)},t.prototype.alpha=function(t){var e;return"number"==typeof t?T({r:(e=this.rgba).r,g:e.g,b:e.b,a:t}):n(this.rgba.a,3)},t.prototype.hue=function(t){var e=y(this.rgba);return"number"==typeof t?T({h:t,s:e.s,l:e.l,a:e.a}):n(e.h)},t.prototype.isEqual=function(t){return this.toHex()===T(t).toHex()},t}(),T=function(t){return t instanceof P?t:new P(t)},k=[];!function(t){t.forEach(function(t){0>k.indexOf(t)&&(t(P,w),k.push(t))})}([function(t,e){var i={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",s
1andybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var s in i)r[i[s]]=s;var n={};t.prototype.toName=function(e){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var s,a=r[this.toHex()];if(a)return a;if(null==e?void 0:e.closest){var o=this.toRgb(),h=1/0,l="black";if(!n.length)for(var u in i)n[u]=new t(i[u]).toRgb();for(var d in i){var c=(s=n[d],Math.pow(o.r-s.r,2)+Math.pow(o.g-s.g,2)+Math.pow(o.b-s.b,2));c<h&&(h=c,l=d)}return l}},e.string.push([function(e){var r=e.toLowerCase(),s="transparent"===r?"#0000":i[r];return s?new t(s).toRgb():null},"name"])}]);let E=class t{constructor(t=16777215){this._value=null,this._components=new Float32Array(4),this._components.fill(1),this._int=16777215,this.value=t}get red(){return this._components[0]}get green(){return this._components[1]}get blue(){return this._components[2]}get alpha(){return this._components[3]}setValue(t){return this.value=t,this}set value(e){if(e instanceof t)this._value=this._cloneSource(e._value),this._int=e._int,this._components.set(e._components);else if(null===e)throw Error("Cannot set Color#value to null");else null!==this._value&&this._isSourceEqual(this._value,e)||(this._value=this._cloneSource(e),this._normalize(this._value))}get value(){return this._value}_cloneSource(t){if("string"==typeof t||"number"==typeof t||t instanceof Number||null===t);else if(Array.isArray(t)||ArrayBuffer.isView(t))return t.slice(0);else if("object"==typeof t&&null!==t)return{...t};return t}_isSourceEqual(t,e){let i=typeof t;if(i!==typeof e)return!1;if("number"===i||"string"===i||t instanceof Number);else if(Array.isArray(t)&&Array.isArray(e)||ArrayBuffer.isView(t)&&ArrayBuffer.isView(e))return t.length===e.length&&t.every((t,i)=>t===e[i]);else if(null!==t&&null!==e){let i=Object.keys(t),r=Object.keys(e);return i.length===r.length&&i.every(i=>t[i]===e[i])}return t===e}toRgba(){let[t,e,i,r]=this._components;return{r:t,g:e,b:i,a:r}}toRgb(){let[t,e,i]=this._components;return{r:t,g:e,b:i}}toRgbaString(){let[t,e,i]=this.toUint8RgbArray();return`rgba(${t},${e},${i},${this.alpha})`}toUint8RgbArray(t){let[e,i,r]=this._components;return this._arrayRgb||(this._arrayRgb=[]),(t=t||this._arrayRgb)[0]=Math.round(255*e),t[1]=Math.round(255*i),t[2]=Math.round(255*r),t}toArray(t){this._arrayRgba||(this._arrayRgba=[]),t=t||this._arrayRgba;let[e,i,r,s]=this._components;return t[0]=e,t[1]=i,t[2]=r,t[3]=s,t}toRgbArray(t){this._arrayRgb||(this._arrayRgb=[]),t=t||this._arrayRgb;let[e,i,r]=this._components;return t[0]=e,t[1]=i,t[2]=r,t}toNumber(){return this._int}toBgrNumber(){let[t,e,i]=this.toUint8RgbArray();return(i<<16)+(e<<8)+t}toLittleEndianNumber(){let t=this._int;return(t>>16)+(65280&t)+((255&t)<<16)}multiply(e){let[i,r,s,n]=t._temp.setValue(e)._components;return this._components[0]*=i,this._components[1]*=r,this._components[2]*=s,this._components[3]*=n,this._refreshInt(),this._value=null,this}premultiply(t,e=!0){return e&&(this._components[0]*=t,this._components[1]*=t,this._components[2]*=t),this._components[3]=t,this._refreshInt(),this._value=null,this}toPremultiplied(t,e=!0){if(1===t)return -16777216+this._int;if(0===t)return e?0:this._int;let i=this._int>>16&255,r=this._int>>8&255,s=255&this._int;return e&&(i=i*t+.5|0,r=r*t+.5|0,s=s*t+.5|0),(255*t<<24)+(i<<16)+(r<<8)+s}toHex(){let t=this._int.toString(16);return`#${"000000".substring(0,6-t.length)+t}`}toHexa(){let t=Math.round(255*this._components[3]).toString(16);return this.toHex()+"00".substring(0,2-t.length)+t}setAlpha(t){return this._components[3]=this._clamp(t),this}_normalize(e){let i,r,s,n;if(("number"==typeof e||e instanceof Number)&&e>=0&&e<=16777215){let t=e;i=(t>>16&255)/255,r=(t>>8&255)/255,s=(255&t)/255,n=1}else if((Array.isArray(e)||e instanceof Float32Array)&&e.length>=3&&e.length<=4)e=this._clamp(e),[i,r,s,n=1]=e;else if((e instanceof Uint8Array||e instanceof Uint8ClampedArray)&&e.length>=3&&e.length<=4)e=this._clamp(e,0,255),[i,r,s,n=255]=e,i/=255,r/=255,s/=255,n/=255;else if("string"==typeof e||"object"==typeof e){if("string"==typeof e){let i=t.HEX_PATTERN.exec(e);i&&(e=`#${i[2]}`)}let a=T(e);a.isValid()&&({r:i,g:r,b:s,a:n}=a.rgba,i/=255,r/=255,s/=255)}if(void 0!==i)this._components[0]=i,this._components[1]=r,this._components[2]=s,this._components[3]=n,this._refreshInt();else throw Error(`Unable to convert color ${e}`)}_refreshInt(){this._clamp(this._components);let[t,e,i]=this._components;this._int=(255*t<<16)+(255*e<<8)+(255*i|0)}_clamp(t,e=0,i=1){return"number"==typeof t?Math.min(Math.max(t,e),i):(t.forEach((r,s)=>{t[s]=Math.min(Math.max(r,e),i)}),t)}static isColorLike(e){return"number"==typeof e||"string"==typeof e||e instanceof Number||e instanceof t||Array.isArray(e)||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Float32Array||void 0!==e.r&&void 0!==e.g&&void 0!==e.b||void 0!==e.r&&void 0!==e.g&&void 0!==e.b&&void 0!==e.a||void 0!==e.h&&void 0!==e.s&&void 0!==e.l||void 0!==e.h&&void 0!==e.s&&void 0!==e.l&&void 0!==e.a||void 0!==e.h&&void 0!==e.s&&void 0!==e.v||void 0!==e.h&&void 0!==e.s&&void 0!==e.v&&void 0!==e.a}};E.shared=new E,E._temp=new E,E.HEX_PATTERN=/^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;let I=E}
1,1791:function(t,e,i){"use strict";i.d(e,{z:function(){return s}});let r={createCanvas:(t,e)=>{let i=document.createElement("canvas");return i.width=t,i.height=e,i},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(t,e)=>fetch(t,e),parseXML:t=>new DOMParser().parseFromString(t,"text/xml")},s={get:()=>r,set(t){r=t}}},7:function(t,e,i){"use strict";i.d(e,{Rw:function(){return o},nw:function(){return s}});var r,s=((r=s||{}).Application="application",r.WebGLPipes="webgl-pipes",r.WebGLPipesAdaptor="webgl-pipes-adaptor",r.WebGLSystem="webgl-system",r.WebGPUPipes="webgpu-pipes",r.WebGPUPipesAdaptor="webgpu-pipes-adaptor",r.WebGPUSystem="webgpu-system",r.CanvasSystem="canvas-system",r.CanvasPipesAdaptor="canvas-pipes-adaptor",r.CanvasPipes="canvas-pipes",r.Asset="asset",r.LoadParser="load-parser",r.ResolveParser="resolve-parser",r.CacheParser="cache-parser",r.DetectionParser="detection-parser",r.MaskEffect="mask-effect",r.BlendMode="blend-mode",r.TextureSource="texture-source",r.Environment="environment",r.ShapeBuilder="shape-builder",r.Batcher="batcher",r);let n=t=>{if("function"==typeof t||"object"==typeof t&&t.extension){if(!t.extension)throw Error("Extension class must have an extension object");t={..."object"!=typeof t.extension?{type:t.extension}:t.extension,ref:t}}if("object"==typeof t)t={...t};else throw Error("Invalid extension type");return"string"==typeof t.type&&(t.type=[t.type]),t},a=(t,e)=>n(t).priority??e,o={_addHandlers:{},_removeHandlers:{},_queue:{},remove(...t){return t.map(n).forEach(t=>{t.type.forEach(e=>this._removeHandlers[e]?.(t))}),this},add(...t){return t.map(n).forEach(t=>{t.type.forEach(e=>{let i=this._addHandlers,r=this._queue;i[e]?i[e]?.(t):(r[e]=r[e]||[],r[e]?.push(t))})}),this},handle(t,e,i){let r=this._addHandlers,s=this._removeHandlers;if(r[t]||s[t])throw Error(`Extension type ${t} already has a handler`);r[t]=e,s[t]=i;let n=this._queue;return n[t]&&(n[t]?.forEach(t=>e(t)),delete n[t]),this},handleByMap(t,e){return this.handle(t,t=>{t.name&&(e[t.name]=t.ref)},t=>{t.name&&delete e[t.name]})},handleByNamedList(t,e,i=-1){return this.handle(t,t=>{e.findIndex(e=>e.name===t.name)>=0||(e.push({name:t.name,value:t.ref}),e.sort((t,e)=>a(e.value,i)-a(t.value,i)))},t=>{let i=e.findIndex(e=>e.name===t.name);-1!==i&&e.splice(i,1)})},handleByList(t,e,i=-1){return this.handle(t,t=>{e.includes(t.ref)||(e.push(t.ref),e.sort((t,e)=>a(e,i)-a(t,i)))},t=>{let i=e.indexOf(t.ref);-1!==i&&e.splice(i,1)})}}},176:function(t,e,i){"use strict";i.d(e,{U:function(){return r}});class r{constructor(){this.pipe="filter",this.priority=1}destroy(){for(let t=0;t<this.filters.length;t++)this.filters[t].destroy();this.filters=null,this.filterArea=null}}},6067:function(t,e,i){"use strict";let r,s,n;i.d(e,{MxU:function(){return x},deM:function(){return tR},W20:function(){return p.W2},TCu:function(){return tL.T},E9j:function(){return tO.E},AeJ:function(){return w.A},jyi:function(){return tz.j},c2G:function(){return t$.c},xvT:function(){return tY},xEZ:function(){return A.x}});var a=i(7);let o={extension:{type:a.nw.Environment,name:"browser",priority:-1},test:()=>!0,load:async()=>{await Promise.all([i.e(791),i.e(944)]).then(i.bind(i,6944))}},h={extension:{type:a.nw.Environment,name:"webworker",priority:0},test:()=>"undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,load:async()=>{await Promise.all([i.e(791),i.e(456)]).then(i.bind(i,5456))}};i(4974),i(3570);var l=i(1791),u=i(4535);async function d(t={}){return void 0!==s?s:s=await (async()=>{let e=l.z.get().getNavigator().gpu;if(!e)return!1;try{let i=await e.requestAdapter(t);return await i.requestDevice(),!0}catch(t){return!1}})()}let c=["webgl","webgpu","canvas"];async function f(t){let e,s=[];t.preference?(s.push(t.preference),c.forEach(e=>{e!==t.preference&&s.push(e)})):s=c.slice();let n={};for(let a=0;a<s.length;a++){let o=s[a];if("webgpu"===o&&await d()){let{WebGPURenderer:r}=await Promise.all([i.e(654),i.e(558)]).then(i.bind(i,4558));e=r,n={...t,...t.webgpu};break}if("webgl"===o&&function(t){return void 0!==r?r:r=(()=>{let e={stencil:!0,failIfMajorPerformanceCaveat:t??u.I.defaultOptions.failIfMajorPerformanceCaveat};try{if(!l.z.get().getWebGLRenderingContext())return!1;let t=l.z.get().createCanvas().getContext("webgl",e),i=!!t?.getContextAttributes()?.stencil;if(t){let e=t.getExtension("WEBGL_lose_context");e&&e.loseContext()}return t=null,i}catch(t){return!1}})()}(t.failIfMajorPerformanceCaveat??u.I.defaultOptions.failIfMajorPerformanceCaveat)){let{WebGLRenderer:r}=await Promise.all([i.e(654),i.e(936)]).then(i.bind(i,9936));e=r,n={...t,...t.webgl};break}if("canvas"===o)throw n={...t},Error("CanvasRenderer is not yet implemented")}if(delete n.webgpu,delete n.webgl,!e)throw Error("No available renderer for the current environment");let a=new e;return await a.init(n),a}var p=i(846),m=i(8356),g=i(5122);let y=class t{constructor(...t){this.stage=new p.W2,void 0!==t[0]&&(0,g.a1)(g.PD,"Application constructor options are deprecated, please use Application.init() instead.")}async init(e){e={...e},this.renderer=await f(e),t._plugins.forEach(t=>{t.init.call(this,e)})}render(){this.renderer.render({container:this.stage})}get canvas(){return this.renderer.canvas}get view(){return(0,g.a1)(g.PD,"Application.view is deprecated, please use Application.canvas instead."),this.renderer.canvas}get screen(){return this.renderer.screen}destroy(e=!1,i=!1){let r=t._plugins.slice(0);r.reverse(),r.forEach(t=>{t.destroy.call(this)}),this.stage.destroy(i),this.stage=null,this.renderer.destroy(e),this.renderer=null}};y._plugins=[];let x=y;a.Rw.handleByList(a.nw.Application,x._plugins),a.Rw.add(m.l);var _=i(496),v=i(9003),b=i(9459),w=i(9619),A=i(8583),S=i(4502),C=i(5578);class M extends S.M{constructor(t,e){super();let{textures:i,data:r}=t;
1Object.keys(r.pages).forEach(t=>{let e=i[r.pages[parseInt(t,10)].id];this.pages.push({texture:e})}),Object.keys(r.chars).forEach(t=>{let e=r.chars[t],{frame:s,source:n}=i[e.page],a=new w.A(e.x+s.x,e.y+s.y,e.width,e.height),o=new A.x({source:n,frame:a});this.chars[t]={id:t.codePointAt(0),xOffset:e.xOffset,yOffset:e.yOffset,xAdvance:e.xAdvance,kerning:e.kerning??{},texture:o}}),this.baseRenderedFontSize=r.fontSize,this.baseMeasurementFontSize=r.fontSize,this.fontMetrics={ascent:0,descent:0,fontSize:r.fontSize},this.baseLineOffset=r.baseLineOffset,this.lineHeight=r.lineHeight,this.fontFamily=r.fontFamily,this.distanceField=r.distanceField??{type:"none",range:0},this.url=e}destroy(){super.destroy();for(let t=0;t<this.pages.length;t++){let{texture:e}=this.pages[t];e.destroy(!0)}this.pages=null}static install(t){C.W.install(t)}static uninstall(t){C.W.uninstall(t)}}let P={test:t=>"string"==typeof t&&t.startsWith("info face="),parse(t){let e=t.match(/^[a-z]+\s+.+$/gm),i={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(let t in e){let r=e[t].match(/^[a-z]+/gm)[0],s=e[t].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),n={};for(let t in s){let e=s[t].split("="),i=e[0],r=e[1].replace(/"/gm,""),a=parseFloat(r),o=isNaN(a)?r:a;n[i]=o}i[r].push(n)}let r={chars:{},pages:[],lineHeight:0,fontSize:0,fontFamily:"",distanceField:null,baseLineOffset:0},[s]=i.info,[n]=i.common,[a]=i.distanceField??[];a&&(r.distanceField={range:parseInt(a.distanceRange,10),type:a.fieldType}),r.fontSize=parseInt(s.size,10),r.fontFamily=s.face,r.lineHeight=parseInt(n.lineHeight,10);let o=i.page;for(let t=0;t<o.length;t++)r.pages.push({id:parseInt(o[t].id,10)||0,file:o[t].file});let h={};r.baseLineOffset=r.lineHeight-parseInt(n.base,10);let l=i.char;for(let t=0;t<l.length;t++){let e=l[t],i=parseInt(e.id,10),s=e.letter??e.char??String.fromCharCode(i);"space"===s&&(s=" "),h[i]=s,r.chars[s]={id:i,page:parseInt(e.page,10)||0,x:parseInt(e.x,10),y:parseInt(e.y,10),width:parseInt(e.width,10),height:parseInt(e.height,10),xOffset:parseInt(e.xoffset,10),yOffset:parseInt(e.yoffset,10),xAdvance:parseInt(e.xadvance,10),kerning:{}}}let u=i.kerning||[];for(let t=0;t<u.length;t++){let e=parseInt(u[t].first,10),i=parseInt(u[t].second,10),s=parseInt(u[t].amount,10);r.chars[h[i]].kerning[h[e]]=s}return r}},T={test:t=>"string"!=typeof t&&"getElementsByTagName"in t&&t.getElementsByTagName("page").length&&null!==t.getElementsByTagName("info")[0].getAttribute("face"),parse(t){let e={chars:{},pages:[],lineHeight:0,fontSize:0,fontFamily:"",distanceField:null,baseLineOffset:0},i=t.getElementsByTagName("info")[0],r=t.getElementsByTagName("common")[0],s=t.getElementsByTagName("distanceField")[0];s&&(e.distanceField={type:s.getAttribute("fieldType"),range:parseInt(s.getAttribute("distanceRange"),10)});let n=t.getElementsByTagName("page"),a=t.getElementsByTagName("char"),o=t.getElementsByTagName("kerning");e.fontSize=parseInt(i.getAttribute("size"),10),e.fontFamily=i.getAttribute("face"),e.lineHeight=parseInt(r.getAttribute("lineHeight"),10);for(let t=0;t<n.length;t++)e.pages.push({id:parseInt(n[t].getAttribute("id"),10)||0,file:n[t].getAttribute("file")});let h={};e.baseLineOffset=e.lineHeight-parseInt(r.getAttribute("base"),10);for(let t=0;t<a.length;t++){let i=a[t],r=parseInt(i.getAttribute("id"),10),s=i.getAttribute("letter")??i.getAttribute("char")??String.fromCharCode(r);"space"===s&&(s=" "),h[r]=s,e.chars[s]={id:r,page:parseInt(i.getAttribute("page"),10)||0,x:parseInt(i.getAttribute("x"),10),y:parseInt(i.getAttribute("y"),10),width:parseInt(i.getAttribute("width"),10),height:parseInt(i.getAttribute("height"),10),xOffset:parseInt(i.getAttribute("xoffset"),10),yOffset:parseInt(i.getAttribute("yoffset"),10),xAdvance:parseInt(i.getAttribute("xadvance"),10),kerning:{}}}for(let t=0;t<o.length;t++){let i=parseInt(o[t].getAttribute("first"),10),r=parseInt(o[t].getAttribute("second"),10),s=parseInt(o[t].getAttribute("amount"),10);e.chars[h[r]].kerning[h[i]]=s}return e}},k={test:t=>!!("string"==typeof t&&t.includes("<font>"))&&T.test(l.z.get().parseXML(t)),parse:t=>T.parse(l.z.get().parseXML(t))},E=[".xml",".fnt"],I={extension:{type:a.nw.CacheParser,name:"cacheBitmapFont"},test:t=>t instanceof M,getCacheableAssets(t,e){let i={};return t.forEach(t=>{i[t]=e,i[`${t}-bitmap`]=e}),i[`${e.fontFamily}-bitmap`]=e,i}},B={extension:{type:a.nw.LoadParser,priority:_.Q.Normal},name:"loadBitmapFont",test:t=>E.includes(b.E.extname(t).toLowerCase()),testParse:async t=>P.test(t)||k.test(t),async parse(t,e,i){let r=P.test(t)?P.parse(t):k.parse(t),{src:s}=e,{pages:n}=r,a=[],o=r.distanceField?{scaleMode:"linear",alphaMode:"premultiply-alpha-on-upload",autoGenerateMipmaps:!1,resolution:1}:{};for(let t=0;t<n.length;++t){let e=n[t].file,i=b.E.join(b.E.dirname(s),e);i=(0,v.u)(i,s),a.push({src:i,data:o})}let h=await i.load(a);return new M({data:r,textures:a.map(t=>h[t.src])},s)},async load(t,e){let i=await l.z.get().fetch(t);return await i.text()},async unload(t,e,i){await Promise.all(t.pages.map(t=>i.unload(t.texture.source._sourceOrigin))),t.destroy()}};var R=i(5788);class F{constructor(t,e=!1){this._loader=t,this._assetList=[],this._isLoading=!1,this._maxConcurrent=1,this.verbose=e}add(t){t.forEach(t=>{this._assetList.push(t)}
1),this.verbose&&console.log("[BackgroundLoader] assets: ",this._assetList),this._isActive&&!this._isLoading&&this._next()}async _next(){if(this._assetList.length&&this._isActive){this._isLoading=!0;let t=[],e=Math.min(this._assetList.length,this._maxConcurrent);for(let i=0;i<e;i++)t.push(this._assetList.pop());await this._loader.load(t),this._isLoading=!1,this._next()}}get active(){return this._isActive}set active(t){this._isActive!==t&&(this._isActive=t,t&&!this._isLoading&&this._next())}}var O=i(6075);let L={extension:{type:a.nw.CacheParser,name:"cacheTextureArray"},test:t=>Array.isArray(t)&&t.every(t=>t instanceof A.x),getCacheableAssets:(t,e)=>{let i={};return t.forEach(t=>{e.forEach((e,r)=>{i[t+(0===r?"":r+1)]=e})}),i}};async function z(t){if("Image"in globalThis)return new Promise(e=>{let i=new Image;i.onload=()=>{e(!0)},i.onerror=()=>{e(!1)},i.src=t});if("createImageBitmap"in globalThis&&"fetch"in globalThis){try{let e=await (await fetch(t)).blob();await createImageBitmap(e)}catch(t){return!1}return!0}return!1}let D={extension:{type:a.nw.DetectionParser,priority:1},test:async()=>z("data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A="),add:async t=>[...t,"avif"],remove:async t=>t.filter(t=>"avif"!==t)},U=["png","jpg","jpeg"],G={extension:{type:a.nw.DetectionParser,priority:-1},test:()=>Promise.resolve(!0),add:async t=>[...t,...U],remove:async t=>t.filter(t=>!U.includes(t))},W="WorkerGlobalScope"in globalThis&&globalThis instanceof globalThis.WorkerGlobalScope;function N(t){return!W&&""!==document.createElement("video").canPlayType(t)}let Y={extension:{type:a.nw.DetectionParser,priority:0},test:async()=>N("video/mp4"),add:async t=>[...t,"mp4","m4v"],remove:async t=>t.filter(t=>"mp4"!==t&&"m4v"!==t)},$={extension:{type:a.nw.DetectionParser,priority:0},test:async()=>N("video/ogg"),add:async t=>[...t,"ogv"],remove:async t=>t.filter(t=>"ogv"!==t)},V={extension:{type:a.nw.DetectionParser,priority:0},test:async()=>N("video/webm"),add:async t=>[...t,"webm"],remove:async t=>t.filter(t=>"webm"!==t)},X={extension:{type:a.nw.DetectionParser,priority:0},test:async()=>z("data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="),add:async t=>[...t,"webp"],remove:async t=>t.filter(t=>"webp"!==t)};var H=i(9638),j=i(185);class q{constructor(){this._parsers=[],this._parsersValidated=!1,this.parsers=new Proxy(this._parsers,{set:(t,e,i)=>(this._parsersValidated=!1,t[e]=i,!0)}),this.promiseCache={}}reset(){this._parsersValidated=!1,this.promiseCache={}}_getLoadPromiseAndParser(t,e){let i={promise:null,parser:null};return i.promise=(async()=>{let r=null,s=null;if(!e.loadParser||(s=this._parserHash[e.loadParser])||(0,R.Z)(`[Assets] specified load parser "${e.loadParser}" not found while loading ${t}`),!s){for(let i=0;i<this.parsers.length;i++){let r=this.parsers[i];if(r.load&&r.test?.(t,e,this)){s=r;break}}if(!s)return(0,R.Z)(`[Assets] ${t} could not be loaded as we don't know how to parse it, ensure the correct parser has been added`),null}r=await s.load(t,e,this),i.parser=s;for(let t=0;t<this.parsers.length;t++){let s=this.parsers[t];s.parse&&s.parse&&await s.testParse?.(r,e,this)&&(r=await s.parse(r,e,this)||r,i.parser=s)}return r})(),i}async load(t,e){this._parsersValidated||this._validateParsers();let i=0,r={},s=(0,j.X)(t),n=(0,H.S)(t,t=>({alias:[t],src:t,data:{}})),a=n.length,o=n.map(async t=>{let s=b.E.toAbsolute(t.src);if(!r[t.src])try{this.promiseCache[s]||(this.promiseCache[s]=this._getLoadPromiseAndParser(s,t)),r[t.src]=await this.promiseCache[s].promise,e&&e(++i/a)}catch(e){throw delete this.promiseCache[s],delete r[t.src],Error(`[Loader.load] Failed to load ${s}.
2${e}`)}});return await Promise.all(o),s?r[n[0].src]:r}async unload(t){let e=(0,H.S)(t,t=>({alias:[t],src:t})).map(async t=>{let e=b.E.toAbsolute(t.src),i=this.promiseCache[e];if(i){let r=await i.promise;delete this.promiseCache[e],await i.parser?.unload?.(r,t,this)}});await Promise.all(e)}_validateParsers(){this._parsersValidated=!0,this._parserHash=this._parsers.filter(t=>t.name).reduce((t,e)=>(e.name?t[e.name]&&(0,R.Z)(`[Assets] loadParser name conflict "${e.name}"`):(0,R.Z)("[Assets] loadParser should have a name"),{...t,[e.name]:e}),{})}}function Z(t,e){if(Array.isArray(e)){for(let i of e)if(t.startsWith(`data:${i}`))return!0;return!1}return t.startsWith(`data:${e}`)}function K(t,e){let i=t.split("?")[0],r=b.E.extname(i).toLowerCase();return Array.isArray(e)?e.includes(r):r===e}let Q={extension:{type:a.nw.LoadParser,priority:_.Q.Low},name:"loadJson",test:t=>Z(t,"application/json")||K(t,".json"),async load(t){let e=await l.z.get().fetch(t);return await e.json()}},J={name:"loadTxt",extension:{type:a.nw.LoadParser,priority:_.Q.Low,name:"loadTxt"},test:t=>Z(t,"text/plain")||K(t,".txt"),async load(t){let e=await l.z.get().fetch(t);return await e.text()}},tt=["normal","bold","100","200","300","400","500","600","700","800","900"],te=[".ttf",".otf",".woff",".woff2"],ti=["font/ttf","font/otf","font/woff","font/woff2"],tr=/^(--|-?[A-Z_])[0-9A-Z_-]*$/i,ts=/^[0-9A-Za-z%:/?#\[\]@!\$&'()\*\+,;=\-._~]*$/,tn={extension:{type:a.nw.LoadParser,priority:_.Q.Low},name:"loadWebFont",test:t=>Z(t,ti)||K(t,te),async load(t,e){let i=l.z.get().getFontFaceSet();if(i){let r=[],s=e.data?.family??function(t){let e=b.E.extname(t),i=b.E.basename(t,e).replace(/(-|_)/g," ").toLowerCase().split(" ").map(t=>t.charAt(0).toUpperCase()+t.slice(1)),r=i.length>0;for(let t of i)if(!t.match(tr)){r=!1;break}let s=i.join(" ");return r||(s=`"${s.replace(/[\\"]/g,"\\$&")}"`),s}(t),n=e.data?.weights?.filter(t=>tt.includes(t))??["normal"],a=e.data??{};for(let e=0;e<n.length;e++){let o=n[e],h=new FontFace(s,`url(${ts.test(t)?t:encodeURI(t)})`,{...a,weight:o});await h.load(),i.add(h),r.push(h)}return O.C.set(`${s}-and-url`,{url:t,fontFaces:r}),1===r.length?r[0]:r}return(0,R.Z)("[loadWebFont] FontFace API is not supported. Skipping loading font"),null}
2,unload(t){(Array.isArray(t)?t:[t]).forEach(t=>{O.C.remove(t.family),l.z.get().getFontFaceSet().delete(t)})}};var ta=i(7158),to=i(4263),th=i(9232);function tl(t,e=1){let i=th.H.RETINA_PREFIX?.exec(t);return i?parseFloat(i[1]):e}function tu(t,e,i){t.label=i,t._sourceOrigin=i;let r=new A.x({source:t,label:i}),s=()=>{delete e.promiseCache[i],O.C.has(i)&&O.C.remove(i)};return r.source.once("destroy",()=>{e.promiseCache[i]&&((0,R.Z)("[Assets] A TextureSource managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the TextureSource."),s())}),r.once("destroy",()=>{t.destroyed||((0,R.Z)("[Assets] A Texture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the Texture."),s())}),r}let td={extension:{type:a.nw.LoadParser,priority:_.Q.Low,name:"loadSVG"},name:"loadSVG",config:{crossOrigin:"anonymous",parseAsGraphicsContext:!1},test:t=>Z(t,"image/svg+xml")||K(t,".svg"),async load(t,e,i){return e.data.parseAsGraphicsContext??this.config.parseAsGraphicsContext?tf(t):tc(t,e,i,this.config.crossOrigin)},unload(t){t.destroy(!0)}};async function tc(t,e,i,r){let s=await l.z.get().fetch(t),n=await s.blob(),a=URL.createObjectURL(n),o=new Image;o.src=a,o.crossOrigin=r,await o.decode(),URL.revokeObjectURL(a);let h=document.createElement("canvas"),u=h.getContext("2d"),d=e.data?.resolution||tl(t),c=e.data?.width??o.width,f=e.data?.height??o.height;h.width=c*d,h.height=f*d,u.drawImage(o,0,0,c*d,f*d);let{parseAsGraphicsContext:p,...m}=e.data;return tu(new ta.c({resource:h,alphaMode:"premultiply-alpha-on-upload",resolution:d,...m}),i,t)}async function tf(t){let e=await l.z.get().fetch(t),i=await e.text(),r=new to.g;return r.svg(i),r}let tp=null;class tm{constructor(){tp||(tp=URL.createObjectURL(new Blob(['(function () {\n    \'use strict\';\n\n    const WHITE_PNG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=";\n    async function checkImageBitmap() {\n      try {\n        if (typeof createImageBitmap !== "function")\n          return false;\n        const response = await fetch(WHITE_PNG);\n        const imageBlob = await response.blob();\n        const imageBitmap = await createImageBitmap(imageBlob);\n        return imageBitmap.width === 1 && imageBitmap.height === 1;\n      } catch (e) {\n        return false;\n      }\n    }\n    void checkImageBitmap().then((result) => {\n      self.postMessage(result);\n    });\n\n})();\n'],{type:"application/javascript"}))),this.worker=new Worker(tp)}}tm.revokeObjectURL=function(){tp&&(URL.revokeObjectURL(tp),tp=null)};let tg=null;class ty{constructor(){tg||(tg=URL.createObjectURL(new Blob(['(function () {\n    \'use strict\';\n\n    async function loadImageBitmap(url, alphaMode) {\n      const response = await fetch(url);\n      if (!response.ok) {\n        throw new Error(`[WorkerManager.loadImageBitmap] Failed to fetch ${url}: ${response.status} ${response.statusText}`);\n      }\n      const imageBlob = await response.blob();\n      return alphaMode === "premultiplied-alpha" ? createImageBitmap(imageBlob, { premultiplyAlpha: "none" }) : createImageBitmap(imageBlob);\n    }\n    self.onmessage = async (event) => {\n      try {\n        const imageBitmap = await loadImageBitmap(event.data.data[0], event.data.data[1]);\n        self.postMessage({\n          data: imageBitmap,\n          uuid: event.data.uuid,\n          id: event.data.id\n        }, [imageBitmap]);\n      } catch (e) {\n        self.postMessage({\n          error: e,\n          uuid: event.data.uuid,\n          id: event.data.id\n        });\n      }\n    };\n\n})();\n'],{type:"application/javascript"}))),this.worker=new Worker(tg)}}ty.revokeObjectURL=function(){tg&&(URL.revokeObjectURL(tg),tg=null)};let tx=0;class t_{constructor(){this._initialized=!1,this._createdWorkers=0,this._workerPool=[],this._queue=[],this._resolveHash={}}isImageBitmapSupported(){return void 0!==this._isImageBitmapSupported||(this._isImageBitmapSupported=new Promise(t=>{let{worker:e}=new tm;e.addEventListener("message",i=>{e.terminate(),tm.revokeObjectURL(),t(i.data)})})),this._isImageBitmapSupported}loadImageBitmap(t,e){return this._run("loadImageBitmap",[t,e?.data?.alphaMode])}async _initWorkers(){this._initialized||(this._initialized=!0)}_getWorker(){void 0===n&&(n=navigator.hardwareConcurrency||4);let t=this._workerPool.pop();return!t&&this._createdWorkers<n&&(this._createdWorkers++,(t=new ty().worker).addEventListener("message",t=>{this._complete(t.data),this._returnWorker(t.target),this._next()})),t}_returnWorker(t){this._workerPool.push(t)}_complete(t){void 0!==t.error?this._resolveHash[t.uuid].reject(t.error):this._resolveHash[t.uuid].resolve(t.data),this._resolveHash[t.uuid]=null}async _run(t,e){await this._initWorkers();let i=new Promise((i,r)=>{this._queue.push({id:t,arguments:e,resolve:i,reject:r})});return this._next(),i}_next(){if(!this._queue.length)return;let t=this._getWorker();if(!t)return;let e=this._queue.pop(),i=e.id;this._resolveHash[tx]={resolve:e.resolve,reject:e.reject},t.postMessage({data:e.arguments,uuid:tx++,id:i})}}let tv=new t_,tb=[".jpeg",".jpg",".png",".webp",".avif"],tw=["image/jpeg","image/png","image/webp","image/avif"];async function tA(t,e){let i=await l.z.get().fetch(t);if(!i.ok)throw Error(`[loadImageBitmap] Failed to fetch ${t}: ${i.status} ${i.statusText}`);let r=await i.blob();return e?.data?.alphaMode==="premultiplied-alpha"?createImageBitmap(r,{premultiplyAlpha:"none"}):createImageBitmap(r)}let tS={name:"loadTextures",extension:{type:a.nw.LoadParser,priority:_.Q.High,name:"loadTextures"},config:{preferWorkers:!0,preferCreateImageBitmap:!0,crossOrigin:"anonymous"},test:t=>Z(t,tw)||K(t,tb),async load(t,e,i){let r=null;return r=globalThis.createImageBitmap&&this.config.preferCreateImageBitmap?this.config.preferWorkers&&await tv.isImageBitmapSupported()?await tv.loadImageBitmap(t,e):await tA(t,e):await new Promise(e=>{(r=new Image).crossOrigin=this.config.crossOrigin,r.src=t,r.complete?e(r):r.onload=()=>{e(r)}}),tu(new ta.c({resource:r,alphaMode:"premultiply-alpha-on-upload",resolution:e.data?.resolution||tl(t),...e.data}),i,t)},unload(t){t.destroy(!0)}};var tC=i(2825),tM=i(4215);let tP=[".mp4",".m4v",".webm",".ogg",".ogv",".h264",".avi",".mov"],tT=tP.map(t=>`video/${t.substring(1)}`),tk={name:"loadVideo",extension:{type:a.nw.LoadParser,name:"loadVideo"},test(t){let e=Z(t,tT),i=K(t,tP);return e||i},async load(t,e,i){var r;let s;let n={...tC.L.defaultOptions,resolution:e.data?.resolution||tl(t),alphaMode:e.data?.alphaMode||await (0,tM.D)(),...e.data},a=document.createElement("video"),o={preload:!1!==n.autoLoad?"auto":void 0,"webkit-playsinline":!1!==n.playsinline?"":void 0,playsinline:!1!==n.playsinline?"":void 0,muted:!0===n.muted?"":void 0,loop:!0===n.loop?"":void 0,autoplay:!1!==n.autoPlay?"":void 0};
2Object.keys(o).forEach(t=>{let e=o[t];void 0!==e&&a.setAttribute(t,e)}),!0===n.muted&&(a.muted=!0),void 0!==(r=n.crossorigin)||t.startsWith("data:")?!1!==r&&(a.crossOrigin="string"==typeof r?r:"anonymous"):a.crossOrigin=function(t,e=globalThis.location){if(t.startsWith("data:"))return"";e=e||globalThis.location;let i=new URL(t,document.baseURI);return i.hostname!==e.hostname||i.port!==e.port||i.protocol!==e.protocol?"anonymous":""}(t);let h=document.createElement("source");if(t.startsWith("data:"))s=t.slice(5,t.indexOf(";"));else if(!t.startsWith("blob:")){let e=t.split("?")[0].slice(t.lastIndexOf(".")+1).toLowerCase();s=tC.L.MIME_TYPES[e]||`video/${e}`}return h.src=t,s&&(h.type=s),new Promise(r=>{let s=async()=>{let o=new tC.L({...n,resource:a});a.removeEventListener("canplay",s),e.data.preload&&await new Promise((t,e)=>{function i(){s(),t()}function r(t){s(),e(t)}function s(){a.removeEventListener("canplaythrough",i),a.removeEventListener("error",r)}a.addEventListener("canplaythrough",i),a.addEventListener("error",r),a.load()}),r(tu(o,i,t))};a.addEventListener("canplay",s),a.appendChild(h)})},unload(t){t.destroy(!0)}},tE={extension:{type:a.nw.ResolveParser,name:"resolveTexture"},test:tS.test,parse:t=>({resolution:parseFloat(th.H.RETINA_PREFIX.exec(t)?.[1]??"1"),format:t.split(".").pop(),src:t})},tI={extension:{type:a.nw.ResolveParser,priority:-2,name:"resolveJson"},test:t=>th.H.RETINA_PREFIX.test(t)&&t.endsWith(".json"),parse:tE.parse};class tB{constructor(){this._detections=[],this._initialized=!1,this.resolver=new th.H,this.loader=new q,this.cache=O.C,this._backgroundLoader=new F(this.loader),this._backgroundLoader.active=!0,this.reset()}async init(t={}){if(this._initialized){(0,R.Z)("[Assets]AssetManager already initialized, did you load before calling this Assets.init()?");return}if(this._initialized=!0,t.defaultSearchParams&&this.resolver.setDefaultSearchParams(t.defaultSearchParams),t.basePath&&(this.resolver.basePath=t.basePath),t.bundleIdentifier&&this.resolver.setBundleIdentifier(t.bundleIdentifier),t.manifest){let e=t.manifest;"string"==typeof e&&(e=await this.load(e)),this.resolver.addManifest(e)}let e=t.texturePreference?.resolution??1,i=await this._detectFormats({preferredFormats:t.texturePreference?.format,skipDetections:t.skipDetections,detections:this._detections});this.resolver.prefer({params:{format:i,resolution:"number"==typeof e?[e]:e}}),t.preferences&&this.setPreferences(t.preferences)}add(t){this.resolver.add(t)}async load(t,e){this._initialized||await this.init();let i=(0,j.X)(t),r=(0,H.S)(t).map(t=>{if("string"!=typeof t){let e=this.resolver.getAlias(t);return e.some(t=>!this.resolver.hasKey(t))&&this.add(t),Array.isArray(e)?e[0]:e}return this.resolver.hasKey(t)||this.add({alias:t,src:t}),t}),s=this.resolver.resolve(r),n=await this._mapLoadToResolve(s,e);return i?n[r[0]]:n}addBundle(t,e){this.resolver.addBundle(t,e)}async loadBundle(t,e){this._initialized||await this.init();let i=!1;"string"==typeof t&&(i=!0,t=[t]);let r=this.resolver.resolveBundle(t),s={},n=Object.keys(r),a=0,o=0,h=()=>{e?.(++a/o)},l=n.map(t=>{let e=r[t];return o+=Object.keys(e).length,this._mapLoadToResolve(e,h).then(e=>{s[t]=e})});return await Promise.all(l),i?s[t[0]]:s}async backgroundLoad(t){this._initialized||await this.init(),"string"==typeof t&&(t=[t]);let e=this.resolver.resolve(t);this._backgroundLoader.add(Object.values(e))}async backgroundLoadBundle(t){this._initialized||await this.init(),"string"==typeof t&&(t=[t]),Object.values(this.resolver.resolveBundle(t)).forEach(t=>{this._backgroundLoader.add(Object.values(t))})}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=!1}get(t){if("string"==typeof t)return O.C.get(t);let e={};for(let i=0;i<t.length;i++)e[i]=O.C.get(t[i]);return e}async _mapLoadToResolve(t,e){let i=[...new Set(Object.values(t))];this._backgroundLoader.active=!1;let r=await this.loader.load(i,e);this._backgroundLoader.active=!0;let s={};return i.forEach(t=>{let e=r[t.src],i=[t.src];t.alias&&i.push(...t.alias),i.forEach(t=>{s[t]=e}),O.C.set(i,e)}),s}async unload(t){this._initialized||await this.init();let e=(0,H.S)(t).map(t=>"string"!=typeof t?t.src:t),i=this.resolver.resolve(e);await this._unloadFromResolved(i)}async unloadBundle(t){this._initialized||await this.init(),t=(0,H.S)(t);let e=this.resolver.resolveBundle(t),i=Object.keys(e).map(t=>this._unloadFromResolved(e[t]));await Promise.all(i)}async _unloadFromResolved(t){let e=Object.values(t);e.forEach(t=>{O.C.remove(t.src)}),await this.loader.unload(e)}async _detectFormats(t){let e=[];for(let i of(t.preferredFormats&&(e=Array.isArray(t.preferredFormats)?t.preferredFormats:[t.preferredFormats]),t.detections))t.skipDetections||await i.test()?e=await i.add(e):t.skipDetections||(e=await i.remove(e));return e=e.filter((t,i)=>e.indexOf(t)===i)}get detections(){return this._detections}
2setPreferences(t){this.loader.parsers.forEach(e=>{e.config&&Object.keys(e.config).filter(e=>e in t).forEach(i=>{e.config[i]=t[i]})})}}let tR=new tB;a.Rw.handleByList(a.nw.LoadParser,tR.loader.parsers).handleByList(a.nw.ResolveParser,tR.resolver.parsers).handleByList(a.nw.CacheParser,tR.cache.parsers).handleByList(a.nw.DetectionParser,tR.detections),a.Rw.add(L,G,D,X,Y,$,V,Q,J,tn,td,tS,tk,B,I,tE,tI);let tF={loader:a.nw.LoadParser,resolver:a.nw.ResolveParser,cache:a.nw.CacheParser,detection:a.nw.DetectionParser};a.Rw.handle(a.nw.Asset,t=>{let e=t.ref;Object.entries(tF).filter(([t])=>!!e[t]).forEach(([t,i])=>a.Rw.add(Object.assign(e[t],{extension:e[t].extension??i})))},t=>{let e=t.ref;Object.keys(tF).filter(t=>!!e[t]).forEach(t=>a.Rw.remove(e[t]))});var tO=i(6250);i(1375);var tL=i(1352),tz=i(7247),tD=i(3019),tU=i(9177);class tG extends tU.${constructor(t,e){let{text:i,resolution:r,style:s,anchor:n,width:a,height:o,roundPixels:h,...l}=t;super({...l}),this.batched=!0,this._resolution=null,this._autoResolution=!0,this._didTextUpdate=!0,this._styleClass=e,this.text=i??"",this.style=s,this.resolution=r??null,this.allowChildren=!1,this._anchor=new tD.A({_onUpdate:()=>{this.onViewUpdate()}}),n&&(this.anchor=n),this.roundPixels=h??!1,void 0!==a&&(this.width=a),void 0!==o&&(this.height=o)}get anchor(){return this._anchor}set anchor(t){"number"==typeof t?this._anchor.set(t):this._anchor.copyFrom(t)}set text(t){t=t.toString(),this._text!==t&&(this._text=t,this.onViewUpdate())}get text(){return this._text}set resolution(t){this._autoResolution=null===t,this._resolution=t,this.onViewUpdate()}get resolution(){return this._resolution}get style(){return this._style}set style(t){t=t||{},this._style?.off("update",this.onViewUpdate,this),t instanceof this._styleClass?this._style=t:this._style=new this._styleClass(t),this._style.on("update",this.onViewUpdate,this),this.onViewUpdate()}get bounds(){return this._boundsDirty&&(this._updateBounds(),this._boundsDirty=!1),this._bounds}get width(){return Math.abs(this.scale.x)*this.bounds.width}set width(t){this._setWidth(t,this.bounds.width)}get height(){return Math.abs(this.scale.y)*this.bounds.height}set height(t){this._setHeight(t,this.bounds.height)}getSize(t){return t||(t={}),t.width=Math.abs(this.scale.x)*this.bounds.width,t.height=Math.abs(this.scale.y)*this.bounds.height,t}setSize(t,e){"object"==typeof t?(e=t.height??t.width,t=t.width):e??(e=t),void 0!==t&&this._setWidth(t,this.bounds.width),void 0!==e&&this._setHeight(e,this.bounds.height)}addBounds(t){let e=this.bounds;t.addFrame(e.minX,e.minY,e.maxX,e.maxY)}containsPoint(t){let e=this.bounds.width,i=this.bounds.height,r=-e*this.anchor.x,s=0;return t.x>=r&&t.x<=r+e&&(s=-i*this.anchor.y,t.y>=s&&t.y<=s+i)}onViewUpdate(){if(this._didViewChangeTick++,this._boundsDirty=!0,this.didViewUpdate)return;this.didViewUpdate=!0,this._didTextUpdate=!0;let t=this.renderGroup||this.parentRenderGroup;t&&t.onChildViewUpdate(this)}_getKey(){return`${this.text}:${this._style.styleKey}:${this._resolution}`}destroy(t=!1){super.destroy(t),this.owner=null,this._bounds=null,this._anchor=null,("boolean"==typeof t?t:t?.style)&&this._style.destroy(t),this._style=null,this._text=null}}var tW=i(4555),tN=i(8285);class tY extends tG{constructor(...t){let e;super((("string"==typeof(e=t[0]??{})||t[1])&&((0,g.a1)(g.PD,'use new Text({ text: "hi!", style }) instead'),e={text:e,style:t[1]}),e),tN.p),this.renderPipeId="text"}_updateBounds(){let t=this._bounds,e=this._anchor,{width:i,height:r}=tW.c.measureText(this._text,this._style);t.minX=-e._x*i,t.maxX=t.minX+i,t.minY=-e._y*r,t.maxY=t.minY+r}}var t$=i(4023);i(6393),i(5464),a.Rw.add(o,h)},493:function(t,e,i){"use strict";i.d(e,{y:function(){return n}});var r=i(9296),s=i(6250);class n{constructor(t=1,e=0,i=0,r=1,s=0,n=0){this.array=null,this.a=t,this.b=e,this.c=i,this.d=r,this.tx=s,this.ty=n}fromArray(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]}set(t,e,i,r,s,n){return this.a=t,this.b=e,this.c=i,this.d=r,this.tx=s,this.ty=n,this}toArray(t,e){this.array||(this.array=new Float32Array(9));let i=e||this.array;return t?(i[0]=this.a,i[1]=this.b,i[2]=0,i[3]=this.c,i[4]=this.d,i[5]=0,i[6]=this.tx,i[7]=this.ty):(i[0]=this.a,i[1]=this.c,i[2]=this.tx,i[3]=this.b,i[4]=this.d,i[5]=this.ty,i[6]=0,i[7]=0),i[8]=1,i}apply(t,e){e=e||new s.E;let i=t.x,r=t.y;return e.x=this.a*i+this.c*r+this.tx,e.y=this.b*i+this.d*r+this.t
2y,e}applyInverse(t,e){e=e||new s.E;let i=this.a,r=this.b,n=this.c,a=this.d,o=this.tx,h=this.ty,l=1/(i*a+-(n*r)),u=t.x,d=t.y;return e.x=a*l*u+-n*l*d+(h*n-o*a)*l,e.y=i*l*d+-r*l*u+(-h*i+o*r)*l,e}translate(t,e){return this.tx+=t,this.ty+=e,this}scale(t,e){return this.a*=t,this.d*=e,this.c*=t,this.b*=e,this.tx*=t,this.ty*=e,this}rotate(t){let e=Math.cos(t),i=Math.sin(t),r=this.a,s=this.c,n=this.tx;return this.a=r*e-this.b*i,this.b=r*i+this.b*e,this.c=s*e-this.d*i,this.d=s*i+this.d*e,this.tx=n*e-this.ty*i,this.ty=n*i+this.ty*e,this}append(t){let e=this.a,i=this.b,r=this.c,s=this.d;return this.a=t.a*e+t.b*r,this.b=t.a*i+t.b*s,this.c=t.c*e+t.d*r,this.d=t.c*i+t.d*s,this.tx=t.tx*e+t.ty*r+this.tx,this.ty=t.tx*i+t.ty*s+this.ty,this}appendFrom(t,e){let i=t.a,r=t.b,s=t.c,n=t.d,a=t.tx,o=t.ty,h=e.a,l=e.b,u=e.c,d=e.d;return this.a=i*h+r*u,this.b=i*l+r*d,this.c=s*h+n*u,this.d=s*l+n*d,this.tx=a*h+o*u+e.tx,this.ty=a*l+o*d+e.ty,this}setTransform(t,e,i,r,s,n,a,o,h){return this.a=Math.cos(a+h)*s,this.b=Math.sin(a+h)*s,this.c=-Math.sin(a-o)*n,this.d=Math.cos(a-o)*n,this.tx=t-(i*this.a+r*this.c),this.ty=e-(i*this.b+r*this.d),this}prepend(t){let e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){let e=this.a,i=this.c;this.a=e*t.a+this.b*t.c,this.b=e*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}return this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty,this}decompose(t){let e=this.a,i=this.b,s=this.c,n=this.d,a=t.pivot,o=-Math.atan2(-s,n),h=Math.atan2(i,e),l=Math.abs(o+h);return l<1e-5||1e-5>Math.abs(r._b-l)?(t.rotation=h,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=o,t.skew.y=h),t.scale.x=Math.sqrt(e*e+i*i),t.scale.y=Math.sqrt(s*s+n*n),t.position.x=this.tx+(a.x*e+a.y*s),t.position.y=this.ty+(a.x*i+a.y*n),t}invert(){let t=this.a,e=this.b,i=this.c,r=this.d,s=this.tx,n=t*r-e*i;return this.a=r/n,this.b=-e/n,this.c=-i/n,this.d=t/n,this.tx=(i*this.ty-r*s)/n,this.ty=-(t*this.ty-e*s)/n,this}isIdentity(){return 1===this.a&&0===this.b&&0===this.c&&1===this.d&&0===this.tx&&0===this.ty}identity(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this}clone(){let t=new n;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t}copyTo(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t}copyFrom(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this}equals(t){return t.a===this.a&&t.b===this.b&&t.c===this.c&&t.d===this.d&&t.tx===this.tx&&t.ty===this.ty}toString(){return`[pixi.js:Matrix a=${this.a} b=${this.b} c=${this.c} d=${this.d} tx=${this.tx} ty=${this.ty}]`}static get IDENTITY(){return o.identity()}static get shared(){return a.identity()}}let a=new n,o=new n},9296:function(t,e,i){"use strict";i.d(e,{ZX:function(){return n},_b:function(){return r},jl:function(){return s}});let r=2*Math.PI,s=180/Math.PI,n=Math.PI/180},5770:function(t,e,i){"use strict";function r(t){return t+=0===t?1:0,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)+1}function s(t){return!(t&t-1)&&!!t}i.d(e,{a9:function(){return r},wv:function(){return s}})},3019:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});class r{constructor(t,e,i){this._x=e||0,this._y=i||0,this._observer=t}clone(t){return new r(t??this._observer,this._x,this._y)}set(t=0,e=t){return(this._x!==t||this._y!==e)&&(this._x=t,this._y=e,this._observer._onUpdate(this)),this}copyFrom(t){return(this._x!==t.x||this._y!==t.y)&&(this._x=t.x,this._y=t.y,this._observer._onUpdate(this)),this}copyTo(t){return t.set(this._x,this._y),t}equals(t){return t.x===this._x&&t.y===this._y}toString(){return`[pixi.js/math:ObservablePoint x=0 y=0 scope=${this._observer}]`}get x(){return this._x}set x(t){this._x!==t&&(this._x=t,this._observer._onUpdate(this))}get y(){return this._y}set y(t){this._y!==t&&(this._y=t,this._observer._onUpdate(this))}}},6250:function(t,e,i){"use strict";i.d(e,{E:function(){return r}});class r{constructor(t=0,e=0){this.x=0,this.y=0,this.x=t,this.y=e}clone(){return new r(this.x,this.y)}copyFrom(t){return this.set(t.x,t.y),this}copyTo(t){return t.set(this.x,this.y),t}equals(t){return t.x===this.x&&t.y===this.y}set(t=0,e=t){return this.x=t,this.y=e,this}toString(){return`[pixi.js/math:Point x=${this.x} y=${this.y}]`}static get shared(){return s.x=0,s.y=0,s}}let s=new r}
2,9619:function(t,e,i){"use strict";i.d(e,{A:function(){return n}});var r=i(6250);let s=[new r.E,new r.E,new r.E,new r.E];class n{constructor(t=0,e=0,i=0,r=0){this.type="rectangle",this.x=Number(t),this.y=Number(e),this.width=Number(i),this.height=Number(r)}get left(){return this.x}get right(){return this.x+this.width}get top(){return this.y}get bottom(){return this.y+this.height}isEmpty(){return this.left===this.right||this.top===this.bottom}static get EMPTY(){return new n(0,0,0,0)}clone(){return new n(this.x,this.y,this.width,this.height)}copyFromBounds(t){return this.x=t.minX,this.y=t.minY,this.width=t.maxX-t.minX,this.height=t.maxY-t.minY,this}copyFrom(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this}copyTo(t){return t.copyFrom(this),t}contains(t,e){return!(this.width<=0)&&!(this.height<=0)&&t>=this.x&&t<this.x+this.width&&e>=this.y&&e<this.y+this.height}strokeContains(t,e,i){let{width:r,height:s}=this;if(r<=0||s<=0)return!1;let n=this.x,a=this.y;return t>=n-i/2&&t<=n+r+i/2&&e>=a-i/2&&e<=a+s+i/2&&!(t>n+i/2&&t<n+r-i/2&&e>a+i/2&&e<a+s-i/2)}intersects(t,e){if(!e){let e=this.x<t.x?t.x:this.x;if((this.right>t.right?t.right:this.right)<=e)return!1;let i=this.y<t.y?t.y:this.y;return(this.bottom>t.bottom?t.bottom:this.bottom)>i}let i=this.left,r=this.right,n=this.top,a=this.bottom;if(r<=i||a<=n)return!1;let o=s[0].set(t.left,t.top),h=s[1].set(t.left,t.bottom),l=s[2].set(t.right,t.top),u=s[3].set(t.right,t.bottom);if(l.x<=o.x||h.y<=o.y)return!1;let d=Math.sign(e.a*e.d-e.b*e.c);if(0===d||(e.apply(o,o),e.apply(h,h),e.apply(l,l),e.apply(u,u),Math.max(o.x,h.x,l.x,u.x)<=i||Math.min(o.x,h.x,l.x,u.x)>=r||Math.max(o.y,h.y,l.y,u.y)<=n||Math.min(o.y,h.y,l.y,u.y)>=a))return!1;let c=d*(h.y-o.y),f=d*(o.x-h.x),p=c*i+f*n,m=c*r+f*n,g=c*i+f*a,y=c*r+f*a;if(Math.max(p,m,g,y)<=c*o.x+f*o.y||Math.min(p,m,g,y)>=c*u.x+f*u.y)return!1;let x=d*(o.y-l.y),_=d*(l.x-o.x),v=x*i+_*n,b=x*r+_*n,w=x*i+_*a,A=x*r+_*a;return!(Math.max(v,b,w,A)<=x*o.x+_*o.y||Math.min(v,b,w,A)>=x*u.x+_*u.y)}pad(t=0,e=t){return this.x-=t,this.y-=e,this.width+=2*t,this.height+=2*e,this}fit(t){let e=Math.max(this.x,t.x),i=Math.min(this.x+this.width,t.x+t.width),r=Math.max(this.y,t.y),s=Math.min(this.y+this.height,t.y+t.height);return this.x=e,this.width=Math.max(i-e,0),this.y=r,this.height=Math.max(s-r,0),this}ceil(t=1,e=.001){let i=Math.ceil((this.x+this.width-e)*t)/t,r=Math.ceil((this.y+this.height-e)*t)/t;return this.x=Math.floor((this.x+e)*t)/t,this.y=Math.floor((this.y+e)*t)/t,this.width=i-this.x,this.height=r-this.y,this}enlarge(t){let e=Math.min(this.x,t.x),i=Math.max(this.x+this.width,t.x+t.width),r=Math.min(this.y,t.y),s=Math.max(this.y+this.height,t.y+t.height);return this.x=e,this.width=i-e,this.y=r,this.height=s-r,this}getBounds(t){return(t=t||new n).copyFrom(this),t}toString(){return`[pixi.js/math:Rectangle x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`}}},9905:function(t,e,i){"use strict";i.d(e,{N:function(){return n}});var r=i(4881);let s=null;function n(){if(s)return s;let t=(0,r.K)();return s=function(t,e){if(0===t)throw Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");let i=e.createShader(e.FRAGMENT_SHADER);try{for(;;){let r="precision mediump float;\nvoid main(void){\nfloat test = 0.1;\n%forloop%\ngl_FragColor = vec4(0.0);\n}".replace(/%forloop%/gi,function(t){let e="";for(let i=0;i<t;++i)i>0&&(e+="\nelse "),i<t-1&&(e+=`if(test == ${i}.0){}`);return e}(t));if(e.shaderSource(i,r),e.compileShader(i),e.getShaderParameter(i,e.COMPILE_STATUS))break;t=t/2|0}}finally{e.deleteShader(i)}return t}(s=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),t),t.getExtension("WEBGL_lose_context")?.loseContext(),s}},4375:function(t,e,i){"use strict";i.d(e,{Q:function(){return o}});var r=i(3963),s=i(8583),n=i(9905);let a={};function o(t,e){let i=2166136261;for(let r=0;r<e;r++)i^=t[r].uid,i=Math.imul(i,16777619)>>>0;return a[i]||function(t,e,i){let o={},l=0;h||(h=(0,n.N)());for(let i=0;i<h;i++){let r=i<e?t[i]:s.x.EMPTY.source;o[l++]=r.source,o[l++]=r.style}let u=new r.v(o);return a[i]=u,u}(t,e,i)}let h=0},5855:function(t,e,i){"use strict";i.d(e,{h:function(){return B}});var r=i(7),s=i(6656);
2class n{constructor(t){"number"==typeof t?this.rawBinaryData=new ArrayBuffer(t):t instanceof Uint8Array?this.rawBinaryData=t.buffer:this.rawBinaryData=t,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData),this.size=this.rawBinaryData.byteLength}get int8View(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View}get uint8View(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View}get int16View(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View}get int32View(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View}get float64View(){return this._float64Array||(this._float64Array=new Float64Array(this.rawBinaryData)),this._float64Array}get bigUint64View(){return this._bigUint64Array||(this._bigUint64Array=new BigUint64Array(this.rawBinaryData)),this._bigUint64Array}view(t){return this[`${t}View`]}destroy(){this.rawBinaryData=null,this._int8View=null,this._uint8View=null,this._int16View=null,this.uint16View=null,this._int32View=null,this.uint32View=null,this.float32View=null}static sizeOf(t){switch(t){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw Error(`${t} isn't a valid view type`)}}}var a=i(4434),o=i(9046),h=i(9905);class l{constructor(){this.ids=Object.create(null),this.textures=[],this.count=0}clear(){for(let t=0;t<this.count;t++){let e=this.textures[t];this.textures[t]=null,this.ids[e.uid]=null}this.count=0}}class u{constructor(){this.renderPipeId="batch",this.action="startBatch",this.start=0,this.size=0,this.textures=new l,this.blendMode="normal",this.canBundle=!0}destroy(){this.textures=null,this.gpuBindGroup=null,this.bindGroup=null,this.batcher=null}}let d=[],c=0;function f(){return c>0?d[--c]:new u}let p=0,m=class t{constructor(e={}){this.uid=(0,s.h)("batcher"),this.dirty=!0,this.batchIndex=0,this.batches=[],this._elements=[],t.defaultOptions.maxTextures=t.defaultOptions.maxTextures??(0,h.N)();let{maxTextures:i,attributesInitialSize:r,indicesInitialSize:a}=e={...t.defaultOptions,...e};this.attributeBuffer=new n(4*r),this.indexBuffer=new Uint16Array(a),this.maxTextures=i}begin(){this.elementSize=0,this.elementStart=0,this.indexSize=0,this.attributeSize=0;for(let e=0;e<this.batchIndex;e++){var t;t=this.batches[e],d[c++]=t}this.batchIndex=0,this._batchIndexStart=0,this._batchIndexSize=0,this.dirty=!0}add(t){this._elements[this.elementSize++]=t,t._indexStart=this.indexSize,t._attributeStart=this.attributeSize,t._batcher=this,this.indexSize+=t.indexSize,this.attributeSize+=t.attributeSize*this.vertexSize}checkAndUpdateTexture(t,e){let i=t._batch.textures.ids[e._source.uid];return(!!i||0===i)&&(t._textureId=i,t.texture=e,!0)}updateElement(t){this.dirty=!0;let e=this.attributeBuffer;t.packAsQuad?this.packQuadAttributes(t,e.float32View,e.uint32View,t._attributeStart,t._textureId):this.packAttributes(t,e.float32View,e.uint32View,t._attributeStart,t._textureId)}break(t){let e=this._elements;if(!e[this.elementStart])return;let i=f(),r=i.textures;r.clear();let s=e[this.elementStart],n=(0,o.a)(s.blendMode,s.texture._source);4*this.attributeSize>this.attributeBuffer.size&&this._resizeAttributeBuffer(4*this.attributeSize),this.indexSize>this.indexBuffer.length&&this._resizeIndexBuffer(this.indexSize);let a=this.attributeBuffer.float32View,h=this.attributeBuffer.uint32View,l=this.indexBuffer,u=this._batchIndexSize,d=this._batchIndexStart,c="startBatch",m=this.maxTextures;for(let s=this.elementStart;s<this.elementSize;++s){let g=e[s];e[s]=null;let y=g.texture._source,x=(0,o.a)(g.blendMode,y),_=n!==x;if(y._batchTick===p&&!_){g._textureId=y._textureBindLocation,u+=g.indexSize,g.packAsQuad?(this.packQuadAttributes(g,a,h,g._attributeStart,g._textureId),this.packQuadIndex(l,g._indexStart,g._attributeStart/this.vertexSize)):(this.packAttributes(g,a,h,g._attributeStart,g._textureId),this.packIndex(g,l,g._indexStart,g._attributeStart/this.vertexSize)),g._batch=i;continue}y._batchTick=p,(r.count>=m||_)&&(this._finishBatch(i,d,u-d,r,n,t,c),c="renderBatch",d=u,n=x,(r=(i=f()).textures).clear(),++p),g._textureId=y._textureBindLocation=r.count,r.ids[y.uid]=r.count,r.textures[r.count++]=y,g._batch=i,u+=g.indexSize,g.packAsQuad?(this.packQuadAttributes(g,a,h,g._attributeStart,g._textureId),this.packQuadIndex(l,g._indexStart,g._attributeStart/this.vertexSize)):(this.packAttributes(g,a,h,g._attributeStart,g._textureId),this.packIndex(g,l,g._indexStart,g._attributeStart/this.vertexSize))}r.count>0&&(this._finishBatch(i,d,u-d,r,n,t,c),d=u,++p),this.elementStart=this.elementSize,this._batchIndexStart=d,this._batchIndexSize=u}_finishBatch(t,e,i,r,s,n,a){t.gpuBindGroup=null,t.bindGroup=null,t.action=a,t.batcher=this,t.textures=r,t.blendMode=s,t.start=e,t.size=i,++p,this.batches[this.batchIndex++]=t,n.add(t)}finish(t){this.break(t)}ensureAttributeBuffer(t){4*t<=this.attributeBuffer.size||this._resizeAttributeBuffer(4*t)}ensureIndexBuffer(t){t<=this.indexBuffer.length||this._resizeIndexBuffer(t)}_resizeAttributeBuffer(t){let e=new n(Math.max(t,2*this.attributeBuffer.size));(0,a.T)(this.attributeBuffer.rawBinaryData,e.rawBinaryData),this.attributeBuffer=e}_resizeIndexBuffer(t){let e=this.indexBuffer,i=Math.max(t,1.5*e.length);i+=i%2;let r=i>65535?new Uint32Array(i):new Uint16Array(i);if(r.BYTES_PER_ELEMENT!==e.BYTES_PER_ELEMENT)for(let t=0;t<e.length;t++)r[t]=e[t];else(0,a.T)(e.buffer,r.buffer);this.indexBuffer=r}packQuadIndex(t,e,i){t[e]=i+0,t[e+1]=i+1,t[e+2]=i+2,t[e+3]=i+0,t[e+4]=i+2,t[e+5]=i+3}packIndex(t,e,i,r){let s=t.indices,n=t.indexSize,a=t.indexOffset,o=t.attributeOffset;for(let t=0;t<n;t++)e[i++]=r+s[t+a]-o}destroy(){for(let e=0;e<this.batches.length;e++){var t;t=this.batches[e],d[c++]=t}this.batches=null;for(let t=0;t<this._elements.length;t++)this._elements[t]._batch=null;this._elements=null,this.indexBuffer=null,this.attributeBuffer.destroy(),this.attributeBuffer=null}};m.defaultOptions={maxTextures:null,attributesInitialSize:4,indicesInitialSize:6};let g=m;var y=i(4007),x=i(6801),_=i(5792);let v=new Float32Array(1),b=new Uint32Array(1);class w extends _.Z{constructor(){let t=new y.l({data:v,label:"attribute-batch-buffer",usage:x.F.VERTEX|x.F.COPY_DST,shrinkToFit:!1});super({attributes:{aPosition:{buffer:t,format:"float32x2",stride:24,offset:0},aUV:{buffer:t,format:"float32x2",stride:24,offset:8},aColor:{buffer:t,format:"unorm8x4",stride:24,offset:16},aTextureIdAndRound:{buffer:t,format:"uint16x2",stride:24,offset:20}},indexBuffer:new y.l({data:b,label:"index-batch-buffer",usage:x.F.INDEX|x.F.COPY_DST,shrinkToFit:!1})})}}var A=i(7978),S=i(7091),C=i(4035),M=i(5564),P=i(657),T=i(4027);class k extends T.e{constructor(t){super({glProgram:(0,A.o)({name:"batch",bits:[S.T,(0,C.h)(t),M.X]}),gpuProgram:(0,A.d)({name:"batch",bits:[S.M,(0,C.m)(t),M.j]}),resources:{batchSamplers:(0,P.O)(t)}})}}let E=null,I=class t extends g{constructor(){super(...arguments),this.geometry=new w,this.shader=E||(E=new k(this.maxTextures)),this.name=t.extension.name,this.vertexSize=6}packAttributes(t,e,i,r,s){let n=s<<16|65535&t.roundPixels,a=t.transform,o=a.a,h=a.b,l=a.c,u=a.d,d=a.tx,c=a.ty,{positions:f,uvs:p}=t,m=t.color,g=t.attributeOffset,y=g+t.attributeSize;
2for(let t=g;t<y;t++){let s=2*t,a=f[s],g=f[s+1];e[r++]=o*a+l*g+d,e[r++]=u*g+h*a+c,e[r++]=p[s],e[r++]=p[s+1],i[r++]=m,i[r++]=n}}packQuadAttributes(t,e,i,r,s){let n=t.texture,a=t.transform,o=a.a,h=a.b,l=a.c,u=a.d,d=a.tx,c=a.ty,f=t.bounds,p=f.maxX,m=f.minX,g=f.maxY,y=f.minY,x=n.uvs,_=t.color,v=s<<16|65535&t.roundPixels;e[r+0]=o*m+l*y+d,e[r+1]=u*y+h*m+c,e[r+2]=x.x0,e[r+3]=x.y0,i[r+4]=_,i[r+5]=v,e[r+6]=o*p+l*y+d,e[r+7]=u*y+h*p+c,e[r+8]=x.x1,e[r+9]=x.y1,i[r+10]=_,i[r+11]=v,e[r+12]=o*p+l*g+d,e[r+13]=u*g+h*p+c,e[r+14]=x.x2,e[r+15]=x.y2,i[r+16]=_,i[r+17]=v,e[r+18]=o*m+l*g+d,e[r+19]=u*g+h*m+c,e[r+20]=x.x3,e[r+21]=x.y3,i[r+22]=_,i[r+23]=v}};I.extension={type:[r.nw.Batcher],name:"default"};let B=I},7978:function(t,e,i){"use strict";i.d(e,{o:function(){return C},d:function(){return S}});var r=i(7156),s=i(7003),n=i(5788);function a(t,e,i){if(t)for(let r in t){let s=e[r.toLocaleLowerCase()];if(s){let e=t[r];"header"===r&&(e=e.replace(/@in\s+[^;]+;\s*/g,"").replace(/@out\s+[^;]+;\s*/g,"")),i&&s.push(`//----${i}----//`),s.push(e)}else(0,n.Z)(`${r} placement hook does not exist in shader`)}}let o=/\{\{(.*?)\}\}/g;function h(t){let e={};return(t.match(o)?.map(t=>t.replace(/[{()}]/g,""))??[]).forEach(t=>{e[t]=[]}),e}function l(t,e){let i;let r=/@in\s+([^;]+);/g;for(;null!==(i=r.exec(t));)e.push(i[1])}function u(t,e,i=!1){let r=[];l(e,r),t.forEach(t=>{t.header&&l(t.header,r)}),i&&r.sort();let s=r.map((t,e)=>`       @location(${e}) ${t},`).join("\n");return e.replace(/@in\s+[^;]+;\s*/g,"").replace("{{in}}",`
3${s}
4`)}function d(t,e){let i;let r=/@out\s+([^;]+);/g;for(;null!==(i=r.exec(t));)e.push(i[1])}function c(t,e){let i=t;for(let t in e){let r=e[t];i=r.join("\n").length?i.replace(`{{${t}}}`,`//-----${t} START-----//
5${r.join("\n")}
6//----${t} FINISH----//`):i.replace(`{{${t}}}`,"")}return i}let f=Object.create(null),p=new Map,m=0;function g(t,e){return e.map(t=>(p.has(t)||p.set(t,m++),p.get(t))).sort((t,e)=>t-e).join("-")+t.vertex+t.fragment}function y(t,e,i){let r=h(t),s=h(e);return i.forEach(t=>{a(t.vertex,r,t.name),a(t.fragment,s,t.name)}),{vertex:c(t,r),fragment:c(e,s)}}let x=`
7    @in aPosition: vec2<f32>;
8    @in aUV: vec2<f32>;
9
10    @out @builtin(position) vPosition: vec4<f32>;
11    @out vUV : vec2<f32>;
12    @out vColor : vec4<f32>;
13
14    {{header}}
15
16    struct VSOutput {
17        {{struct}}
18    };
19
20    @vertex
21    fn main( {{in}} ) -> VSOutput {
22
23        var worldTransformMatrix = globalUniforms.uWorldTransformMatrix;
24        var modelMatrix = mat3x3<f32>(
25            1.0, 0.0, 0.0,
26            0.0, 1.0, 0.0,
27            0.0, 0.0, 1.0
28          );
29        var position = aPosition;
30        var uv = aUV;
31
32        {{start}}
33        
34        vColor = vec4<f32>(1., 1., 1., 1.);
35
36        {{main}}
37
38        vUV = uv;
39
40        var modelViewProjectionMatrix = globalUniforms.uProjectionMatrix * worldTransformMatrix * modelMatrix;
41
42        vPosition =  vec4<f32>((modelViewProjectionMatrix *  vec3<f32>(position, 1.0)).xy, 0.0, 1.0);
43       
44        vColor *= globalUniforms.uWorldColorAlpha;
45
46        {{end}}
47
48        {{return}}
49    };
50`,_=`
51    @in vUV : vec2<f32>;
52    @in vColor : vec4<f32>;
53   
54    {{header}}
55
56    @fragment
57    fn main(
58        {{in}}
59      ) -> @location(0) vec4<f32> {
60        
61        {{start}}
62
63        var outColor:vec4<f32>;
64      
65        {{main}}
66        
67        var finalColor:vec4<f32> = outColor * vColor;
68
69        {{end}}
70
71        return finalColor;
72      };
73`,v=`
74    in vec2 aPosition;
75    in vec2 aUV;
76
77    out vec4 vColor;
78    out vec2 vUV;
79
80    {{header}}
81
82    void main(void){
83
84        mat3 worldTransformMatrix = uWorldTransformMatrix;
85        mat3 modelMatrix = mat3(
86            1.0, 0.0, 0.0,
87            0.0, 1.0, 0.0,
88            0.0, 0.0, 1.0
89          );
90        vec2 position = aPosition;
91        vec2 uv = aUV;
92        
93        {{start}}
94        
95        vColor = vec4(1.);
96        
97        {{main}}
98        
99        vUV = uv;
100        
101        mat3 modelViewProjectionMatrix = uProjectionMatrix * worldTransformMatrix * modelMatrix;
102
103        gl_Position = vec4((modelViewProjectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
104
105        vColor *= uWorldColorAlpha;
106
107        {{end}}
108    }
109`,b=`
110   
111    in vec4 vColor;
112    in vec2 vUV;
113
114    out vec4 finalColor;
115
116    {{header}}
117
118    void main(void) {
119        
120        {{start}}
121
122        vec4 outColor;
123      
124        {{main}}
125        
126        finalColor = outColor * vColor;
127        
128        {{end}}
129    }
130`,w={name:"global-uniforms-bit",vertex:{header:`
131        struct GlobalUniforms {
132            uProjectionMatrix:mat3x3<f32>,
133            uWorldTransformMatrix:mat3x3<f32>,
134            uWorldColorAlpha: vec4<f32>,
135            uResolution: vec2<f32>,
136        }
137
138        @group(0) @binding(0) var<uniform> globalUniforms : GlobalUniforms;
139        `}},A={name:"global-uniforms-bit",vertex:{header:`
140          uniform mat3 uProjectionMatrix;
141          uniform mat3 uWorldTransformMatrix;
142          uniform vec4 uWorldColorAlpha;
143          uniform vec2 uResolution;
144        `}};function S({bits:t,name:e}){let i=function({template:t,bits:e}){let i=g(t,e);if(f[i])return f[i];let{vertex:r,fragment:s}=function(t,e){let i=e.map(t=>t.vertex).filter(t=>!!t),r=e.map(t=>t.fragment).filter(t=>!!t),s=u(i,t.vertex,!0);return{vertex:s=function(t,e){let i=[];d(e,i),t.forEach(t=>{t.header&&d(t.header,i)});let r=0,s=i.sort().map(t=>t.indexOf("builtin")>-1?t:`@location(${r++}) ${t}`).join(",\n"),n=i.sort().map(t=>`       var ${t.replace(/@.*?\s+/g,"")};`).join("\n"),a=`return VSOutput(
145                ${i.sort().map(t=>` ${function(t){let e=/\b(\w+)\s*:/g.exec(t);return e?e[1]:""}(t)}`).join(",\n")});`,o=e.replace(/@out\s+[^;]+;\s*/g,"");return(o=(o=o.replace("{{struct}}",`
146${s}
147`)).replace("{{start}}",`
148${n}
149`)).replace("{{return}}",`
150${a}
151`)}(i,s),fragment:u(r,t.fragment,!0)}}(t,e);return f[i]=y(r,s,e),f[i]}({template:{fragment:_,vertex:x},bits:[w,...t]});return s.O.from({name:e,vertex:{source:i.vertex,entryPoint:"main"},fragment:{source:i.fragment,entryPoint:"main"}})}function C({bits:t,name:e}){return new r.J({name:e,...function({template:t,bits:e}){let i=g(t,e);return f[i]||(f[i]=y(t.vertex,t.fragment,e)),f[i]}({template:{vertex:v,fragment:b},bits:[A,...t]})})}}
151,7091:function(t,e,i){"use strict";i.d(e,{M:function(){return r},T:function(){return s}});let r={name:"color-bit",vertex:{header:`
152            @in aColor: vec4<f32>;
153        `,main:`
154            vColor *= vec4<f32>(aColor.rgb * aColor.a, aColor.a);
155        `}},s={name:"color-bit",vertex:{header:`
156            in vec4 aColor;
157        `,main:`
158            vColor *= vec4(aColor.rgb * aColor.a, aColor.a);
159        `}}},4035:function(t,e,i){"use strict";i.d(e,{h:function(){return a},m:function(){return s}});let r={};function s(t){return r[t]||(r[t]={name:"texture-batch-bit",vertex:{header:`
160                @in aTextureIdAndRound: vec2<u32>;
161                @out @interpolate(flat) vTextureId : u32;
162            `,main:`
163                vTextureId = aTextureIdAndRound.y;
164            `,end:`
165                if(aTextureIdAndRound.x == 1)
166                {
167                    vPosition = vec4<f32>(roundPixels(vPosition.xy, globalUniforms.uResolution), vPosition.zw);
168                }
169            `},fragment:{header:`
170                @in @interpolate(flat) vTextureId: u32;
171
172                ${function(t){let e=[];
172if(1===t)e.push("@group(1) @binding(0) var textureSource1: texture_2d<f32>;"),e.push("@group(1) @binding(1) var textureSampler1: sampler;");else{let i=0;for(let r=0;r<t;r++)e.push(`@group(1) @binding(${i++}) var textureSource${r+1}: texture_2d<f32>;`),e.push(`@group(1) @binding(${i++}) var textureSampler${r+1}: sampler;`)}return e.join("\n")}(t)}
173            `,main:`
174                var uvDx = dpdx(vUV);
175                var uvDy = dpdy(vUV);
176
177                ${function(t){let e=[];if(1===t)e.push("outColor = textureSampleGrad(textureSource1, textureSampler1, vUV, uvDx, uvDy);");else{e.push("switch vTextureId {");for(let i=0;i<t;i++)i===t-1?e.push("  default:{"):e.push(`  case ${i}:{`),e.push(`      outColor = textureSampleGrad(textureSource${i+1}, textureSampler${i+1}, vUV, uvDx, uvDy);`),e.push("      break;}");e.push("}")}return e.join("\n")}(t)}
178            `}}),r[t]}let n={};function a(t){return n[t]||(n[t]={name:"texture-batch-bit",vertex:{header:`
179                in vec2 aTextureIdAndRound;
180                out float vTextureId;
181
182            `,main:`
183                vTextureId = aTextureIdAndRound.y;
184            `,end:`
185                if(aTextureIdAndRound.x == 1.)
186                {
187                    gl_Position.xy = roundPixels(gl_Position.xy, uResolution);
188                }
189            `},fragment:{header:`
190                in float vTextureId;
191
192                uniform sampler2D uTextures[${t}];
193
194            `,main:`
195
196                ${function(t){let e=[];for(let i=0;i<t;i++)i>0&&e.push("else"),i<t-1&&e.push(`if(vTextureId < ${i}.5)`),e.push("{"),e.push(`	outColor = texture(uTextures[${i}], vUV);`),e.push("}");return e.join("\n")}(t)}
197            `}}),n[t]}},5564:function(t,e,i){"use strict";i.d(e,{X:function(){return s},j:function(){return r}});let r={name:"round-pixels-bit",vertex:{header:`
198            fn roundPixels(position: vec2<f32>, targetSize: vec2<f32>) -> vec2<f32> 
199            {
200                return (floor(((position * 0.5 + 0.5) * targetSize) + 0.5) / targetSize) * 2.0 - 1.0;
201            }
202        `}},s={name:"round-pixels-bit",vertex:{header:`   
203            vec2 roundPixels(vec2 position, vec2 targetSize)
204            {       
205                return (floor(((position * 0.5 + 0.5) * targetSize) + 0.5) / targetSize) * 2.0 - 1.0;
206            }
207        `}}},4974:function(t,e,i){"use strict";var r=i(7),s=i(7247),n=i(8721),a=i(6063);let o=new n.Y;function h(t,e,i){t.measurable=!0,(0,a.qW)(t,i,o),e.addBoundsMask(o),t.measurable=!1}var l=i(9631),u=i(1131),d=i(5788);function c(t,e,i){let r=u.W.get();t.measurable=!0;let s=u.N.get().identity(),n=function t(e,i,r){return e?e!==i&&(t(e.parent,i,r),e.updateLocalTransform(),r.append(e.localTransform)):(0,d.Z)("Mask bounds, renderable is not inside the root container"),r}(t,i,s);(0,l.a)(t,r,n),t.measurable=!1,e.addBoundsMask(r),u.N.return(s),u.W.return(r)}class f{constructor(t){this.priority=0,this.pipe="alphaMask",t?.mask&&this.init(t.mask)}init(t){this.mask=t,this.renderMaskToTexture=!(t instanceof s.j),this.mask.renderable=this.renderMaskToTexture,this.mask.includeInBuild=!this.renderMaskToTexture,this.mask.measurable=!1}reset(){this.mask.measurable=!0,this.mask=null}addBounds(t,e){h(this.mask,t,e)}addLocalBounds(t,e){c(this.mask,t,e)}containsPoint(t,e){return e(this.mask,t)}destroy(){this.reset()}static test(t){return t instanceof s.j}}f.extension=r.nw.MaskEffect;class p{constructor(t){this.priority=0,this.pipe="colorMask",t?.mask&&this.init(t.mask)}init(t){this.mask=t}destroy(){}static test(t){return"number"==typeof t}}p.extension=r.nw.MaskEffect;var m=i(846);class g{constructor(t){this.priority=0,this.pipe="stencilMask",t?.mask&&this.init(t.mask)}init(t){this.mask=t,this.mask.includeInBuild=!1,this.mask.measurable=!1}reset(){this.mask.measurable=!0,this.mask.includeInBuild=!0,this.mask=null}addBounds(t,e){h(this.mask,t,e)}addLocalBounds(t,e){c(this.mask,t,e)}containsPoint(t,e){return e(this.mask,t)}destroy(){this.reset()}static test(t){return t instanceof m.W2}}g.extension=r.nw.MaskEffect;var y=i(2475),x=i(5586),_=i(7158),v=i(2825);i(1375),r.Rw.add(f,p,g,v.L,_.c,x.D,y.A)}
207,4161:function(t,e,i){"use strict";i.d(e,{E:function(){return s}});var r,s=((r=s||{})[r.NONE=0]="NONE",r[r.COLOR=16384]="COLOR",r[r.STENCIL=1024]="STENCIL",r[r.DEPTH=256]="DEPTH",r[r.COLOR_DEPTH=16640]="COLOR_DEPTH",r[r.COLOR_STENCIL=17408]="COLOR_STENCIL",r[r.DEPTH_STENCIL=1280]="DEPTH_STENCIL",r[r.ALL=17664]="ALL",r)},7156:function(t,e,i){"use strict";let r;i.d(e,{J:function(){return d}});var s=i(1567),n=i(4881);let a={},o={},h={stripVersion:function(t,e){return e?t.replace("#version 300 es",""):t},ensurePrecision:function(t,e,i){let r=i?e.maxSupportedFragmentPrecision:e.maxSupportedVertexPrecision;if("precision"!==t.substring(0,9)){let s=i?e.requestedFragmentPrecision:e.requestedVertexPrecision;return"highp"===s&&"highp"!==r&&(s="mediump"),`precision ${s} float;
208${t}`}return"highp"!==r&&"precision highp"===t.substring(0,15)?t.replace("precision highp","precision mediump"):t},addProgramDefines:function(t,e,i){return e?t:i?(t=t.replace("out vec4 finalColor;",""),`
209        
210        #ifdef GL_ES // This checks if it is WebGL1
211        #define in varying
212        #define finalColor gl_FragColor
213        #define texture texture2D
214        #endif
215        ${t}
216        `):`
217        
218        #ifdef GL_ES // This checks if it is WebGL1
219        #define in attribute
220        #define out varying
221        #endif
222        ${t}
223        `},setProgramName:function(t,{name:e="pixi-program"},i=!0){e=e.replace(/\s+/g,"-")+(i?"-fragment":"-vertex");let r=i?a:o;if(r[e]?(r[e]++,e+=`-${r[e]}`):r[e]=1,-1!==t.indexOf("#define SHADER_NAME"))return t;let s=`#define SHADER_NAME ${e}`;return`${s}
224${t}`},insertVersion:function(t,e){return e?`#version 300 es
225${t}`:t}},l=Object.create(null),u=class t{constructor(e){let i=-1!==(e={...t.defaultOptions,...e}).fragment.indexOf("#version 300 es"),a={stripVersion:i,ensurePrecision:{requestedFragmentPrecision:e.preferredFragmentPrecision,requestedVertexPrecision:e.preferredVertexPrecision,maxSupportedVertexPrecision:"highp",maxSupportedFragmentPrecision:function(){if(!r){r="mediump";let t=(0,n.K)();t&&t.getShaderPrecisionFormat&&(r=t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).precision?"highp":"mediump")}return r}()},setProgramName:{name:e.name},addProgramDefines:i,insertVersion:i},o=e.fragment,l=e.vertex;Object.keys(h).forEach(t=>{let e=a[t];o=h[t](o,e,!0),l=h[t](l,e,!1)}),this.fragment=o,this.vertex=l,this._key=(0,s.Z)(`${this.vertex}:${this.fragment}`,"gl-program")}destroy(){this.fragment=null,this.vertex=null,this._attributeData=null,this._uniformData=null,this._uniformBlockData=null,this.transformFeedbackVaryings=null}static from(e){let i=`${e.vertex}:${e.fragment}`;return l[i]||(l[i]=new t(e)),l[i]}};u.defaultOptions={preferredVertexPrecision:"highp",preferredFragmentPrecision:"mediump"};let d=u},657:function(t,e,i){"use strict";i.d(e,{O:function(){return n}});var r=i(7328);let s={};function n(t){let e=s[t];if(e)return e;let i=new Int32Array(t);for(let e=0;e<t;e++)i[e]=e;return s[t]=new r.o({uTextures:{value:i,type:"i32",size:t}},{isStatic:!0})}},4881:function(t,e,i){"use strict";let r;i.d(e,{K:function(){return n}});var s=i(1791);function n(){return(!r||r?.isContextLost())&&(r=s.z.get().createCanvas().getContext("webgl",{})),r}},3963:function(t,e,i){"use strict";i.d(e,{v:function(){return r}});class r{constructor(t){this.resources=Object.create(null),this._dirty=!0;let e=0;for(let i in t){let r=t[i];this.setResource(r,e++)}this._updateKey()}_updateKey(){if(!this._dirty)return;this._dirty=!1;let t=[],e=0;for(let i in this.resources)t[e++]=this.resources[i]._resourceId;this._key=t.join("|")}setResource(t,e){let i=this.resources[e];t!==i&&(i&&t.off?.("change",this.onResourceChange,this),t.on?.("change",this.onResourceChange,this),this.resources[e]=t,this._dirty=!0)}getResource(t){return this.resources[t]}_touch(t){let e=this.resources;for(let i in e)e[i]._touched=t}destroy(){let t=this.resources;for(let e in t){let i=t[e];i.off?.("change",this.onResourceChange,this)}this.resources=null}onResourceChange(t){if(this._dirty=!0,t.destroyed){let e=this.resources;for(let i in e)e[i]===t&&(e[i]=null)}else this._updateKey()}}}
225,7003:function(t,e,i){"use strict";i.d(e,{O:function(){return u}});var r,s=i(1567),n=i(8267);let a={f32:"float32","vec2<f32>":"float32x2","vec3<f32>":"float32x3","vec4<f32>":"float32x4",vec2f:"float32x2",vec3f:"float32x3",vec4f:"float32x4",i32:"sint32","vec2<i32>":"sint32x2","vec3<i32>":"sint32x3","vec4<i32>":"sint32x4",u32:"uint32","vec2<u32>":"uint32x2","vec3<u32>":"uint32x3","vec4<u32>":"uint32x4",bool:"uint32","vec2<bool>":"uint32x2","vec3<bool>":"uint32x3","vec4<bool>":"uint32x4"};function o(t){let e=/@group\((\d+)\)/,i=/@binding\((\d+)\)/,r=/var(<[^>]+>)? (\w+)/,s=/:\s*(\w+)/,n=/(\w+)\s*:\s*([\w\<\>]+)/g,a=/struct\s+(\w+)/,o=t.match(/(^|[^/])@(group|binding)\(\d+\)[^;]+;/g)?.map(t=>({group:parseInt(t.match(e)[1],10),binding:parseInt(t.match(i)[1],10),name:t.match(r)[2],isUniform:"<uniform>"===t.match(r)[1],type:t.match(s)[1]}));if(!o)return{groups:[],structs:[]};let h=t.match(/struct\s+(\w+)\s*{([^}]+)}/g)?.map(t=>{let e=t.match(a)[1],i=t.match(n).reduce((t,e)=>{let[i,r]=e.split(":");return t[i.trim()]=r.trim(),t},{});return i?{name:e,members:i}:null}).filter(({name:t})=>o.some(e=>e.type===t))??[];return{groups:o,structs:h}}var h=((r=h||{})[r.VERTEX=1]="VERTEX",r[r.FRAGMENT=2]="FRAGMENT",r[r.COMPUTE=4]="COMPUTE",r);let l=Object.create(null);class u{constructor(t){this._layoutKey=0,this._attributeLocationsKey=0;let{fragment:e,vertex:i,layout:r,gpuLayout:s,name:n}=t;if(this.name=n,this.fragment=e,this.vertex=i,e.source===i.source){let t=o(e.source);this.structsAndGroups=t}else{let t=o(i.source),r=o(e.source);this.structsAndGroups=function(t,e){let i=new Set,r=new Set;return{structs:[...t.structs,...e.structs].filter(t=>!i.has(t.name)&&(i.add(t.name),!0)),groups:[...t.groups,...e.groups].filter(t=>{let e=`${t.name}-${t.binding}`;return!r.has(e)&&(r.add(e),!0)})}}(t,r)}this.layout=r??function({groups:t}){let e=[];for(let i=0;i<t.length;i++){let r=t[i];e[r.group]||(e[r.group]={}),e[r.group][r.name]=r.binding}return e}(this.structsAndGroups),this.gpuLayout=s??function({groups:t}){let e=[];for(let i=0;i<t.length;i++){let r=t[i];e[r.group]||(e[r.group]=[]),r.isUniform?e[r.group].push({binding:r.binding,visibility:h.VERTEX|h.FRAGMENT,buffer:{type:"uniform"}}):"sampler"===r.type?e[r.group].push({binding:r.binding,visibility:h.FRAGMENT,sampler:{type:"filtering"}}):"texture_2d"===r.type&&e[r.group].push({binding:r.binding,visibility:h.FRAGMENT,texture:{sampleType:"float",viewDimension:"2d",multisampled:!1}})}return e}(this.structsAndGroups),this.autoAssignGlobalUniforms=this.layout[0]?.globalUniforms!==void 0,this.autoAssignLocalUniforms=this.layout[1]?.localUniforms!==void 0,this._generateProgramKey()}_generateProgramKey(){let{vertex:t,fragment:e}=this,i=t.source+e.source+t.entryPoint+e.entryPoint;this._layoutKey=(0,s.Z)(i,"program")}get attributeData(){return this._attributeData??(this._attributeData=function({source:t,entryPoint:e}){let i={},r=t.indexOf(`fn ${e}`);if(-1!==r){let e=t.indexOf("->",r);if(-1!==e){let s;let o=t.substring(r,e),h=/@location\((\d+)\)\s+([a-zA-Z0-9_]+)\s*:\s*([a-zA-Z0-9_<>]+)(?:,|\s|$)/g;for(;null!==(s=h.exec(o));){let t=a[s[3]]??"float32";i[s[2]]={location:parseInt(s[1],10),format:t,stride:(0,n.v)(t).stride,offset:0,instance:!1,start:0}}}}return i}(this.vertex)),this._attributeData}destroy(){this.gpuLayout=null,this.layout=null,this.structsAndGroups=null,this.fragment=null,this.vertex=null}static from(t){let e=`${t.vertex.source}:${t.fragment.source}:${t.fragment.entryPoint}:${t.vertex.entryPoint}`;return l[e]||(l[e]=new u(t)),l[e]}}},4007:function(t,e,i){"use strict";i.d(e,{l:function(){return a}});var r=i(6393),s=i(6656),n=i(6801);class a extends r.Z{constructor(t){let{data:e,size:i}=t,{usage:r,label:n,shrinkToFit:a}=t;super(),this.uid=(0,s.h)("buffer"),this._resourceType="buffer",this._resourceId=(0,s.h)("resource"),this._touched=0,this._updateID=1,this.shrinkToFit=!0,this.destroyed=!1,e instanceof Array&&(e=new Float32Array(e)),this._data=e,i=i??e?.byteLength;let o=!!e;this.descriptor={size:i,usage:r,mappedAtCreation:o,label:n},this.shrinkToFit=a??!0}get data(){return this._data}set data(t){this.setDataWithSize(t,t.length,!0)}get static(){return!!(this.descriptor.usage&n.F.STATIC)}set static(t){t?this.descriptor.usage|=n.F.STATIC:this.descriptor.usage&=~n.F.STATIC}setDataWithSize(t,e,i){if(this._updateID++,this._updateSize=e*t.BYTES_PER_ELEMENT,this._data===t){i&&this.emit
225("update",this);return}let r=this._data;if(this._data=t,r.length!==t.length){!this.shrinkToFit&&t.byteLength<r.byteLength?i&&this.emit("update",this):(this.descriptor.size=t.byteLength,this._resourceId=(0,s.h)("resource"),this.emit("change",this));return}i&&this.emit("update",this)}update(t){this._updateSize=t??this._updateSize,this._updateID++,this.emit("update",this)}destroy(){this.destroyed=!0,this.emit("destroy",this),this.emit("change",this),this._data=null,this.descriptor=null,this.removeAllListeners()}}},6801:function(t,e,i){"use strict";i.d(e,{F:function(){return s}});var r,s=((r=s||{})[r.MAP_READ=1]="MAP_READ",r[r.MAP_WRITE=2]="MAP_WRITE",r[r.COPY_SRC=4]="COPY_SRC",r[r.COPY_DST=8]="COPY_DST",r[r.INDEX=16]="INDEX",r[r.VERTEX=32]="VERTEX",r[r.UNIFORM=64]="UNIFORM",r[r.STORAGE=128]="STORAGE",r[r.INDIRECT=256]="INDIRECT",r[r.QUERY_RESOLVE=512]="QUERY_RESOLVE",r[r.STATIC=1024]="STATIC",r)},4434:function(t,e,i){"use strict";function r(t,e){let i=t.byteLength/8|0,r=new Float64Array(t,0,i);new Float64Array(e,0,i).set(r);let s=t.byteLength-8*i;if(s>0){let r=new Uint8Array(t,8*i,s);new Uint8Array(e,8*i,s).set(r)}}i.d(e,{T:function(){return r}})},5792:function(t,e,i){"use strict";i.d(e,{Z:function(){return l}});var r=i(6393),s=i(8721),n=i(6656),a=i(4007),o=i(6801);function h(t,e){if(!(t instanceof a.l)){let i=e?o.F.INDEX:o.F.VERTEX;t instanceof Array&&(e?(t=new Uint32Array(t),i=o.F.INDEX|o.F.COPY_DST):(t=new Float32Array(t),i=o.F.VERTEX|o.F.COPY_DST)),t=new a.l({data:t,label:e?"index-mesh-buffer":"vertex-mesh-buffer",usage:i})}return t}class l extends r.Z{constructor(t){let{attributes:e,indexBuffer:i,topology:r}=t;for(let i in super(),this.uid=(0,n.h)("geometry"),this._layoutKey=0,this.instanceCount=1,this._bounds=new s.Y,this._boundsDirty=!0,this.attributes=e,this.buffers=[],this.instanceCount=t.instanceCount||1,e){var o;let t=e[i]=(((o=e[i])instanceof a.l||Array.isArray(o)||o.BYTES_PER_ELEMENT)&&(o={buffer:o}),o.buffer=h(o.buffer,!1),o);-1===this.buffers.indexOf(t.buffer)&&(this.buffers.push(t.buffer),t.buffer.on("update",this.onBufferUpdate,this),t.buffer.on("change",this.onBufferUpdate,this))}i&&(this.indexBuffer=h(i,!0),this.buffers.push(this.indexBuffer)),this.topology=r||"triangle-list"}onBufferUpdate(){this._boundsDirty=!0,this.emit("update",this)}getAttribute(t){return this.attributes[t]}getIndex(){return this.indexBuffer}getBuffer(t){return this.getAttribute(t).buffer}getSize(){for(let t in this.attributes){let e=this.attributes[t];return e.buffer.data.length/(e.stride/4||e.size)}return 0}get bounds(){return this._boundsDirty?(this._boundsDirty=!1,function(t,e,i){let r=t.getAttribute(e);if(!r)return i.minX=0,i.minY=0,i.maxX=0,i.maxY=0,i;let s=r.buffer.data,n=1/0,a=1/0,o=-1/0,h=-1/0,l=s.BYTES_PER_ELEMENT,u=(r.offset||0)/l,d=(r.stride||8)/l;for(let t=u;t<s.length;t+=d){let e=s[t],i=s[t+1];e>o&&(o=e),i>h&&(h=i),e<n&&(n=e),i<a&&(a=i)}return i.minX=n,i.minY=a,i.maxX=o,i.maxY=h,i}(this,"aPosition",this._bounds)):this._bounds}destroy(t=!1){this.emit("destroy",this),this.removeAllListeners(),t&&this.buffers.forEach(t=>t.destroy()),this.attributes=null,this.buffers=null,this.indexBuffer=null,this._bounds=null}}},8267:function(t,e,i){"use strict";i.d(e,{v:function(){return s}});let r={uint8x2:{size:2,stride:2,normalised:!1},uint8x4:{size:4,stride:4,normalised:!1},sint8x2:{size:2,stride:2,normalised:!1},sint8x4:{size:4,stride:4,normalised:!1},unorm8x2:{size:2,stride:2,normalised:!0},unorm8x4:{size:4,stride:4,normalised:!0},snorm8x2:{size:2,stride:2,normalised:!0},snorm8x4:{size:4,stride:4,normalised:!0},uint16x2:{size:2,stride:4,normalised:!1},uint16x4:{size:4,stride:8,normalised:!1},sint16x2:{size:2,stride:4,normalised:!1},sint16x4:{size:4,stride:8,normalised:!1},unorm16x2:{size:2,stride:4,normalised:!0},unorm16x4:{size:4,stride:8,normalised:!0},snorm16x2:{size:2,stride:4,normalised:!0},snorm16x4:{size:4,stride:8,normalised:!0},float16x2:{size:2,stride:4,normalised:!1},float16x4:{size:4,stride:8,normalised:!1},float32:{size:1,stride:4,normalised:!1},float32x2:{size:2,stride:8,normalised:!1},float32x3:{size:3,stride:12,normalised:!1},float32x4:{size:4,stride:16,normalised:!1},uint32:{size:1,stride:4,normalised:!1},uint32x2:{size:2,stride:8,normalised:!1},uint32x3:{size:3,stride:12,normalised:!1},uint32x4:{size:4,stride:16,normalised:!1},sint32:{size:1,stride:4,normalised:!1},sint32x2:{size:2,stride:8,normalised:!1},sint32x3:{size:3,stride:12,normalised:!1},sint32x4:{size:4,stride:16,normalised:!1}};function s(t){return r[t]??r.float32}}
225,4516:function(t,e,i){"use strict";i.d(e,{h:function(){return n}});var r=i(6656);let s=0;class n{constructor(){this.uid=(0,r.h)("instructionSet"),this.instructions=[],this.instructionSize=0,this.renderables=[],this.tick=0}reset(){this.instructionSize=0,this.tick=s++}add(t){this.instructions[this.instructionSize++]=t}log(){this.instructions.length=this.instructionSize,console.table(this.instructions,["type","action"])}}},4027:function(t,e,i){"use strict";i.d(e,{e:function(){return l}});var r=i(6393),s=i(7156),n=i(3963),a=i(7003),o=i(4147),h=i(7328);class l extends r.Z{constructor(t){super(),this._uniformBindMap=Object.create(null),this._ownedBindGroups=[];let{gpuProgram:e,glProgram:i,groups:r,resources:s,compatibleRenderers:a,groupMap:l}=t;this.gpuProgram=e,this.glProgram=i,void 0===a&&(a=0,e&&(a|=o.g.WEBGPU),i&&(a|=o.g.WEBGL)),this.compatibleRenderers=a;let u={};if(s||r||(s={}),s&&r)throw Error("[Shader] Cannot have both resources and groups");if(e||!r||l){if(!e&&r&&l)for(let t in l)for(let e in l[t]){let i=l[t][e];u[i]={group:t,binding:e,name:i}}else if(e&&r&&!l){let t=e.structsAndGroups.groups;l={},t.forEach(t=>{l[t.group]=l[t.group]||{},l[t.group][t.binding]=t.name,u[t.name]=t})}else if(s){r={},l={},e&&e.structsAndGroups.groups.forEach(t=>{l[t.group]=l[t.group]||{},l[t.group][t.binding]=t.name,u[t.name]=t});let t=0;for(let e in s)!u[e]&&(r[99]||(r[99]=new n.v,this._ownedBindGroups.push(r[99])),u[e]={group:99,binding:t,name:e},l[99]=l[99]||{},l[99][t]=e,t++);for(let t in s){let e=s[t];e.source||e._resourceType||(e=new h.o(e));let i=u[t];i&&(r[i.group]||(r[i.group]=new n.v,this._ownedBindGroups.push(r[i.group])),r[i.group].setResource(e,i.binding))}}}else throw Error("[Shader] No group map or WebGPU shader provided - consider using resources instead.");this.groups=r,this._uniformBindMap=l,this.resources=this._buildResourceAccessor(r,u)}addResource(t,e,i){var r,s;(r=this._uniformBindMap)[e]||(r[e]={}),(s=this._uniformBindMap[e])[i]||(s[i]=t),this.groups[e]||(this.groups[e]=new n.v,this._ownedBindGroups.push(this.groups[e]))}_buildResourceAccessor(t,e){let i={};for(let r in e){let s=e[r];Object.defineProperty(i,s.name,{get:()=>t[s.group].getResource(s.binding),set(e){t[s.group].setResource(e,s.binding)}})}return i}destroy(t=!1){this.emit("destroy",this),t&&(this.gpuProgram?.destroy(),this.glProgram?.destroy()),this.gpuProgram=null,this.glProgram=null,this.removeAllListeners(),this._uniformBindMap=null,this._ownedBindGroups.forEach(t=>{t.destroy()}),this._ownedBindGroups=null,this.resources=null,this.groups=null}static from(t){let e,i;let{gpu:r,gl:n,...o}=t;return r&&(e=a.O.from(r)),n&&(i=s.J.from(n)),new l({gpuProgram:e,glProgram:i,...o})}}},7328:function(t,e,i){"use strict";i.d(e,{o:function(){return h}});var r=i(6656),s=i(1567);let n=["f32","i32","vec2<f32>","vec3<f32>","vec4<f32>","mat2x2<f32>","mat3x3<f32>","mat4x4<f32>","mat3x2<f32>","mat4x2<f32>","mat2x3<f32>","mat4x3<f32>","mat2x4<f32>","mat3x4<f32>"],a=n.reduce((t,e)=>(t[e]=!0,t),{}),o=class t{constructor(e,i){this._touched=0,this.uid=(0,r.h)("uniform"),this._resourceType="uniformGroup",this._resourceId=(0,r.h)("resource"),this.isUniformGroup=!0,this._dirtyId=0,this.destroyed=!1,i={...t.defaultOptions,...i},this.uniformStructures=e;let o={};for(let t in e){let i=e[t];if(i.name=t,i.size=i.size??1,!a[i.type])throw Error(`Uniform type ${i.type} is not supported. Supported uniform types are: ${n.join(", ")}`);i.value??(i.value=function(t,e){switch(t){case"f32":return 0;case"vec2<f32>":return new Float32Array(2*e);case"vec3<f32>":return new Float32Array(3*e);case"vec4<f32>":return new Float32Array(4*e);case"mat2x2<f32>":return new Float32Array([1,0,0,1]);case"mat3x3<f32>":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4x4<f32>":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}(i.type,i.size)),o[t]=i.value}this.uniforms=o,this._dirtyId=1,this.ubo=i.ubo,this.isStatic=i.isStatic,this._signature=(0,s.Z)(Object.keys(o).map(t=>`${t}-${e[t].type}`).join("-"),"uniform-group")}update(){this._dirtyId++}};o.defaultOptions={ubo:!1,isStatic:!1};let h=o}
225,5416:function(t,e,i){"use strict";i.d(e,{D:function(){return n},f:function(){return r}});let r={normal:"normal-npm",add:"add-npm",screen:"screen-npm"};var s,n=((s=n||{})[s.DISABLED=0]="DISABLED",s[s.RENDERING_MASK_ADD=1]="RENDERING_MASK_ADD",s[s.MASK_ACTIVE=2]="MASK_ACTIVE",s[s.RENDERING_MASK_REMOVE=3]="RENDERING_MASK_REMOVE",s[s.NONE=4]="NONE",s)},9046:function(t,e,i){"use strict";i.d(e,{a:function(){return s}});var r=i(5416);function s(t,e){return"no-premultiply-alpha"===e.alphaMode&&r.f[t]||t}},4535:function(t,e,i){"use strict";i.d(e,{I:function(){return m}});var r=i(6910),s=i(7);let n=[];async function a(t){if(!t)for(let t=0;t<n.length;t++){let e=n[t];if(e.value.test()){await e.value.load();return}}}s.Rw.handleByNamedList(s.nw.Environment,n);var o=i(846),h=i(3982),l=i(5122),u=i(4161),d=i(9768),c=i(6393);let f=["init","destroy","contextChange","resolutionChange","reset","renderEnd","renderStart","render","update","postrender","prerender"],p=class t extends c.Z{constructor(t){super(),this.runners=Object.create(null),this.renderPipes=Object.create(null),this._initOptions={},this._systemsHash=Object.create(null),this.type=t.type,this.name=t.name,this.config=t;let e=[...f,...this.config.runners??[]];this._addRunners(...e),this._unsafeEvalCheck()}async init(e={}){let i=!0===e.skipExtensionImports||!1===e.manageImports;for(let t in await a(i),this._addSystems(this.config.systems),this._addPipes(this.config.renderPipes,this.config.renderPipeAdaptors),this._systemsHash)e={...this._systemsHash[t].constructor.defaultOptions,...e};e={...t.defaultOptions,...e},this._roundPixels=e.roundPixels?1:0;for(let t=0;t<this.runners.init.items.length;t++)await this.runners.init.items[t].init(e);this._initOptions=e}render(t,e){let i=t;if(i instanceof o.W2&&(i={container:i},e&&((0,l.a1)(l.PD,"passing a second argument is deprecated, please use render options instead"),i.target=e.renderTexture)),i.target||(i.target=this.view.renderTarget),i.target===this.view.renderTarget&&(this._lastObjectRendered=i.container,i.clearColor=this.background.colorRgba),i.clearColor){let t=Array.isArray(i.clearColor)&&4===i.clearColor.length;i.clearColor=t?i.clearColor:r.I.shared.setValue(i.clearColor).toArray()}i.transform||(i.container.updateLocalTransform(),i.transform=i.container.localTransform),this.runners.prerender.emit(i),this.runners.renderStart.emit(i),this.runners.render.emit(i),this.runners.renderEnd.emit(i),this.runners.postrender.emit(i)}resize(t,e,i){let r=this.view.resolution;this.view.resize(t,e,i),this.emit("resize",this.view.screen.width,this.view.screen.height,this.view.resolution),void 0!==i&&i!==r&&this.runners.resolutionChange.emit(i)}clear(t={}){t.target||(t.target=this.renderTarget.renderTarget),t.clearColor||(t.clearColor=this.background.colorRgba),t.clear??(t.clear=u.E.ALL);let{clear:e,clearColor:i,target:s}=t;r.I.shared.setValue(i??this.background.colorRgba),this.renderTarget.clear(s,e,r.I.shared.toArray())}get resolution(){return this.view.resolution}set resolution(t){this.view.resolution=t,this.runners.resolutionChange.emit(t)}get width(){return this.view.texture.frame.width}get height(){return this.view.texture.frame.height}get canvas(){return this.view.canvas}get lastObjectRendered(){return this._lastObjectRendered}get renderingToScreen(){return this.renderTarget.renderingToScreen}get screen(){return this.view.screen}_addRunners(...t){t.forEach(t=>{this.runners[t]=new d.P(t)})}_addSystems(t){let e;for(e in t){let i=t[e];this._addSystem(i.value,i.name)}}_addSystem(t,e){let i=new t(this);if(this[e])throw Error(`Whoops! The name "${e}" is already in use`);for(let t in this[e]=i,this._systemsHash[e]=i,this.runners)this.runners[t].add(i);return this}_addPipes(t,e){let i=e.reduce((t,e)=>(t[e.name]=e.value,t),{});t.forEach(t=>{let e=t.value,r=t.name,s=i[r];this.renderPipes[r]=new e(this,s?new s:null)})}destroy(t=!1){this.runners.destroy.items.reverse(),this.runners.destroy.emit(t),Object.values(this.runners).forEach(t=>{t.destroy()}),this._systemsHash=null,this.renderPipes=null}generateTexture(t){return this.textureGenerator.generateTexture(t)}get roundPixels(){return!!this._roundPixels}_unsafeEvalCheck(){if(!(0,h.O)())throw Error("Current environment does not allow unsafe-eval, please use pixi.js/unsafe-eval module to enable support.")}};p.defaultOptions={resolution:1,failIfMajorPerformanceCaveat:!1,roundPixels:!1};let m=p}
225,9768:function(t,e,i){"use strict";i.d(e,{P:function(){return r}});class r{constructor(t){this.items=[],this._name=t}emit(t,e,i,r,s,n,a,o){let{name:h,items:l}=this;for(let u=0,d=l.length;u<d;u++)l[u][h](t,e,i,r,s,n,a,o);return this}add(t){return t[this._name]&&(this.remove(t),this.items.push(t)),this}remove(t){let e=this.items.indexOf(t);return -1!==e&&this.items.splice(e,1),this}contains(t){return -1!==this.items.indexOf(t)}removeAll(){return this.items.length=0,this}destroy(){this.removeAll(),this.items=null,this._name=null}get empty(){return 0===this.items.length}get name(){return this._name}}},5485:function(t,e,i){"use strict";i.d(e,{h:function(){return a}});var r=i(1791),s=i(5770);class n{constructor(t){this._canvasPool=Object.create(null),this.canvasOptions=t||{},this.enableFullScreen=!1}_createCanvasAndContext(t,e){let i=r.z.get().createCanvas();i.width=t,i.height=e;let s=i.getContext("2d");return{canvas:i,context:s}}getOptimalCanvasAndContext(t,e,i=1){t=Math.ceil(t*i-1e-6),e=Math.ceil(e*i-1e-6),t=(0,s.a9)(t),e=(0,s.a9)(e);let r=(t<<17)+(e<<1);this._canvasPool[r]||(this._canvasPool[r]=[]);let n=this._canvasPool[r].pop();return n||(n=this._createCanvasAndContext(t,e)),n}returnCanvasAndContext(t){let{width:e,height:i}=t.canvas;this._canvasPool[(e<<17)+(i<<1)].push(t)}clear(){this._canvasPool={}}}let a=new n},8583:function(t,e,i){"use strict";i.d(e,{x:function(){return v}});var r=i(6393),s=i(493);let n=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],a=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],o=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],h=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],l=[],u=[],d=Math.sign;!function(){for(let t=0;t<16;t++){let e=[];l.push(e);for(let i=0;i<16;i++){let r=d(n[t]*n[i]+o[t]*a[i]),s=d(a[t]*n[i]+h[t]*a[i]),l=d(n[t]*o[i]+o[t]*h[i]),u=d(a[t]*o[i]+h[t]*h[i]);for(let t=0;t<16;t++)if(n[t]===r&&a[t]===s&&o[t]===l&&h[t]===u){e.push(t);break}}}for(let t=0;t<16;t++){let e=new s.y;e.set(n[t],a[t],o[t],h[t],0,0),u.push(e)}}();let c={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:t=>n[t],uY:t=>a[t],vX:t=>o[t],vY:t=>h[t],inv:t=>8&t?15&t:7&-t,add:(t,e)=>l[t][e],sub:(t,e)=>l[t][c.inv(e)],rotate180:t=>4^t,isVertical:t=>(3&t)==2,byDirection:(t,e)=>2*Math.abs(t)<=Math.abs(e)?e>=0?c.S:c.N:2*Math.abs(e)<=Math.abs(t)?t>0?c.E:c.W:e>0?t>0?c.SE:c.SW:t>0?c.NE:c.NW,matrixAppendRotationInv:(t,e,i=0,r=0)=>{let s=u[c.inv(e)];s.tx=i,s.ty=r,t.append(s)}};var f=i(9619),p=i(6656),m=i(5122);let g=()=>{};var y=i(2475),x=i(8744),_=i(9337);class v extends r.Z{constructor({source:t,label:e,frame:i,orig:r,trim:s,defaultAnchor:n,defaultBorders:a,rotate:o,dynamic:h}={}){if(super(),this.uid=(0,p.h)("texture"),this.uvs={x0:0,y0:0,x1:0,y1:0,x2:0,y2:0,x3:0,y3:0},this.frame=new f.A,this.noFrame=!1,this.dynamic=!1,this.isTexture=!0,this.label=e,this.source=t?.source??new x.p,this.noFrame=!i,i)this.frame.copyFrom(i);else{let{width:t,height:e}=this._source;this.frame.width=t,this.frame.height=e}this.orig=r||this.frame,this.trim=s,this.rotate=o??0,this.defaultAnchor=n,this.defaultBorders=a,this.destroyed=!1,this.dynamic=h||!1,this.updateUvs()}set source(t){this._source&&this._source.off("resize",this.update,this),this._source=t,t.on("resize",this.update,this),this.emit("update",this)}get source(){return this._source}get textureMatrix(){return this._textureMatrix||(this._textureMatrix=new _.U(this)),this._textureMatrix}get width(){return this.orig.width}get height(){return this.orig.height}updateUvs(){let{uvs:t,frame:e}=this,{width:i,height:r}=this._source,s=e.x/i,n=e.y/r,a=e.width/i,o=e.height/r,h=this.rotate;if(h){let e=a/2,i=o/2,r=s+e,l=n+i;h=c.add(h,c.NW),t.x0=r+e*c.uX(h),t.y0=l+i*c.uY(h),h=c.add(h,2),t.x1=r+e*c.uX(h),t.y1=l+i*c.uY(h),h=c.add(h,2),t.x2=r+e*c.uX(h),t.y2=l+i*c.uY(h),h=c.add(h,2),t.x3=r+e*c.uX(h),t.y3=l+i*c.uY(h)}else t.x0=s,t.y0=n,t.x1=s+a,t.y1=n,t.x2=s+a,t.y2=n+o,t.x3=s,t.y3=n+o}destroy(t=!1){this._source&&t&&(this._source.destroy(),this._source=null),this._textureMatrix=null,this.destroyed=!0,this.emit("destroy",this),this.removeAllListeners()}update(){this.noFrame&&(this.frame.width=this._source.width,this.frame.height=this._source.height),this.updateUvs(),this.emit
225("update",this)}get baseTexture(){return(0,m.a1)(m.PD,"Texture.baseTexture is now Texture.source"),this._source}}v.EMPTY=new v({label:"EMPTY",source:new x.p({label:"EMPTY"})}),v.EMPTY.destroy=g,v.WHITE=new v({source:new y.A({resource:new Uint8Array([255,255,255,255]),width:1,height:1,alphaMode:"premultiply-alpha-on-upload",label:"WHITE"}),label:"WHITE"}),v.WHITE.destroy=g},9337:function(t,e,i){"use strict";i.d(e,{U:function(){return n}});var r=i(493);let s=new r.y;class n{constructor(t,e){this.mapCoord=new r.y,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,void 0===e?this.clampMargin=t.width<10?0:.5:this.clampMargin=e,this.isSimple=!1,this.texture=t}get texture(){return this._texture}set texture(t){this.texture!==t&&(this._texture?.removeListener("update",this.update,this),this._texture=t,this._texture.addListener("update",this.update,this),this.update())}multiplyUvs(t,e){void 0===e&&(e=t);let i=this.mapCoord;for(let r=0;r<t.length;r+=2){let s=t[r],n=t[r+1];e[r]=s*i.a+n*i.c+i.tx,e[r+1]=s*i.b+n*i.d+i.ty}return e}update(){let t=this._texture;this._updateID++;let e=t.uvs;this.mapCoord.set(e.x1-e.x0,e.y1-e.y0,e.x3-e.x0,e.y3-e.y0,e.x0,e.y0);let i=t.orig,r=t.trim;r&&(s.set(i.width/r.width,0,0,i.height/r.height,-r.x/r.width,-r.y/r.height),this.mapCoord.append(s));let n=t.source,a=this.uClampFrame,o=this.clampMargin/n._resolution,h=this.clampOffset/n._resolution;return a[0]=(t.frame.x+o+h)/n.width,a[1]=(t.frame.y+o+h)/n.height,a[2]=(t.frame.x+t.frame.width-o+h)/n.width,a[3]=(t.frame.y+t.frame.height-o+h)/n.height,this.uClampOffset[0]=this.clampOffset/n.pixelWidth,this.uClampOffset[1]=this.clampOffset/n.pixelHeight,this.isSimple=t.frame.width===n.width&&t.frame.height===n.height&&0===t.rotate,!0}}},2475:function(t,e,i){"use strict";i.d(e,{A:function(){return n}});var r=i(7),s=i(8744);class n extends s.p{constructor(t){let e=t.resource||new Float32Array(t.width*t.height*4),i=t.format;i||(e instanceof Float32Array?i="rgba32float":e instanceof Int32Array?i="rgba32uint":e instanceof Uint32Array?i="rgba32uint":e instanceof Int16Array?i="rgba16uint":e instanceof Uint16Array?i="rgba16uint":(Int8Array,i="bgra8unorm")),super({...t,resource:e,format:i}),this.uploadMethodId="buffer"}static test(t){return t instanceof Int8Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array}}n.extension=r.nw.TextureSource},5586:function(t,e,i){"use strict";i.d(e,{D:function(){return a}});var r=i(1791),s=i(7),n=i(8744);class a extends n.p{constructor(t){t.resource||(t.resource=r.z.get().createCanvas()),t.width||(t.width=t.resource.width,t.autoDensity||(t.width/=t.resolution)),t.height||(t.height=t.resource.height,t.autoDensity||(t.height/=t.resolution)),super(t),this.uploadMethodId="image",this.autoDensity=t.autoDensity;let e=t.resource;(this.pixelWidth!==e.width||this.pixelWidth!==e.height)&&this.resizeCanvas(),this.transparent=!!t.transparent}resizeCanvas(){this.autoDensity&&(this.resource.style.width=`${this.width}px`,this.resource.style.height=`${this.height}px`),(this.resource.width!==this.pixelWidth||this.resource.height!==this.pixelHeight)&&(this.resource.width=this.pixelWidth,this.resource.height=this.pixelHeight)}resize(t=this.width,e=this.height,i=this._resolution){let r=super.resize(t,e,i);return r&&this.resizeCanvas(),r}static test(t){return globalThis.HTMLCanvasElement&&t instanceof HTMLCanvasElement||globalThis.OffscreenCanvas&&t instanceof OffscreenCanvas}get context2D(){return this._context2D||(this._context2D=this.resource.getContext("2d"))}}a.extension=s.nw.TextureSource},7158:function(t,e,i){"use strict";i.d(e,{c:function(){return o}});var r=i(1791),s=i(7),n=i(5788),a=i(8744);class o extends a.p{constructor(t){if(t.resource&&globalThis.HTMLImageElement&&t.resource instanceof HTMLImageElement){let e=r.z.get().createCanvas(t.resource.width,t.resource.height);e.getContext("2d").drawImage(t.resource,0,0,t.resource.width,t.resource.height),t.resource=e,(0,n.Z)("ImageSource: Image element passed, converting to canvas. Use CanvasSource instead.")}super(t),this.uploadMethodId="image",this.autoGarbageCollect=!0}static test(t){return globalThis.HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap||globalThis.VideoFrame&&t instanceof VideoFrame}}o.extension=s.nw.TextureSource}
225,8744:function(t,e,i){"use strict";i.d(e,{p:function(){return u}});var r=i(6393),s=i(5770),n=i(6656),a=i(5122);let o=Object.create(null),h=class t extends r.Z{constructor(e={}){super(),this._resourceType="textureSampler",this._touched=0,this._maxAnisotropy=1,this.destroyed=!1,e={...t.defaultOptions,...e},this.addressMode=e.addressMode,this.addressModeU=e.addressModeU??this.addressModeU,this.addressModeV=e.addressModeV??this.addressModeV,this.addressModeW=e.addressModeW??this.addressModeW,this.scaleMode=e.scaleMode,this.magFilter=e.magFilter??this.magFilter,this.minFilter=e.minFilter??this.minFilter,this.mipmapFilter=e.mipmapFilter??this.mipmapFilter,this.lodMinClamp=e.lodMinClamp,this.lodMaxClamp=e.lodMaxClamp,this.compare=e.compare,this.maxAnisotropy=e.maxAnisotropy??1}set addressMode(t){this.addressModeU=t,this.addressModeV=t,this.addressModeW=t}get addressMode(){return this.addressModeU}set wrapMode(t){(0,a.a1)(a.PD,"TextureStyle.wrapMode is now TextureStyle.addressMode"),this.addressMode=t}get wrapMode(){return this.addressMode}set scaleMode(t){this.magFilter=t,this.minFilter=t,this.mipmapFilter=t}get scaleMode(){return this.magFilter}set maxAnisotropy(t){this._maxAnisotropy=Math.min(t,16),this._maxAnisotropy>1&&(this.scaleMode="linear")}get maxAnisotropy(){return this._maxAnisotropy}get _resourceId(){return this._sharedResourceId||this._generateResourceId()}update(){this.emit("change",this),this._sharedResourceId=null}_generateResourceId(){let t=`${this.addressModeU}-${this.addressModeV}-${this.addressModeW}-${this.magFilter}-${this.minFilter}-${this.mipmapFilter}-${this.lodMinClamp}-${this.lodMaxClamp}-${this.compare}-${this._maxAnisotropy}`;return this._sharedResourceId=function(t){let e=o[t];return void 0===e&&(o[t]=(0,n.h)("resource")),e}(t),this._resourceId}destroy(){this.destroyed=!0,this.emit("destroy",this),this.emit("change",this),this.removeAllListeners()}};h.defaultOptions={addressMode:"clamp-to-edge",scaleMode:"linear"};let l=class t extends r.Z{constructor(e={}){super(),this.options=e,this.uid=(0,n.h)("textureSource"),this._resourceType="textureSource",this._resourceId=(0,n.h)("resource"),this.uploadMethodId="unknown",this._resolution=1,this.pixelWidth=1,this.pixelHeight=1,this.width=1,this.height=1,this.sampleCount=1,this.mipLevelCount=1,this.autoGenerateMipmaps=!1,this.format="rgba8unorm",this.dimension="2d",this.antialias=!1,this._touched=0,this._batchTick=-1,this._textureBindLocation=-1,e={...t.defaultOptions,...e},this.label=e.label??"",this.resource=e.resource,this.autoGarbageCollect=e.autoGarbageCollect,this._resolution=e.resolution,e.width?this.pixelWidth=e.width*this._resolution:this.pixelWidth=this.resource?this.resourceWidth??1:1,e.height?this.pixelHeight=e.height*this._resolution:this.pixelHeight=this.resource?this.resourceHeight??1:1,this.width=this.pixelWidth/this._resolution,this.height=this.pixelHeight/this._resolution,this.format=e.format,this.dimension=e.dimensions,this.mipLevelCount=e.mipLevelCount,this.autoGenerateMipmaps=e.autoGenerateMipmaps,this.sampleCount=e.sampleCount,this.antialias=e.antialias,this.alphaMode=e.alphaMode,this.style=new h(function(t){let e={};for(let i in t)void 0!==t[i]&&(e[i]=t[i]);return e}(e)),this.destroyed=!1,this._refreshPOT()}get source(){return this}get style(){return this._style}set style(t){this.style!==t&&(this._style?.off("change",this._onStyleChange,this),this._style=t,this._style?.on("change",this._onStyleChange,this),this._onStyleChange())}get addressMode(){return this._style.addressMode}set addressMode(t){this._style.addressMode=t}get repeatMode(){return this._style.addressMode}set repeatMode(t){this._style.addressMode=t}get magFilter(){return this._style.magFilter}set magFilter(t){this._style.magFilter=t}get minFilter(){return this._style.minFilter}set minFilter(t){this._style.minFilter=t}get mipmapFilter(){return this._style.mipmapFilter}set mipmapFilter(t){this._style.mipmapFilter=t}get lodMinClamp(){return this._style.lodMinClamp}set lodMinClamp(t){this._style.lodMinClamp=t}get lodMaxClamp(){return this._style.lodMaxClamp}set lodMaxClamp(t){this._style.lodMaxClamp=t}
225_onStyleChange(){this.emit("styleChange",this)}update(){if(this.resource){let t=this._resolution;if(this.resize(this.resourceWidth/t,this.resourceHeight/t))return}this.emit("update",this)}destroy(){this.destroyed=!0,this.emit("destroy",this),this.emit("change",this),this._style&&(this._style.destroy(),this._style=null),this.uploadMethodId=null,this.resource=null,this.removeAllListeners()}unload(){this._resourceId=(0,n.h)("resource"),this.emit("change",this),this.emit("unload",this)}get resourceWidth(){let{resource:t}=this;return t.naturalWidth||t.videoWidth||t.displayWidth||t.width}get resourceHeight(){let{resource:t}=this;return t.naturalHeight||t.videoHeight||t.displayHeight||t.height}get resolution(){return this._resolution}set resolution(t){this._resolution!==t&&(this._resolution=t,this.width=this.pixelWidth/t,this.height=this.pixelHeight/t)}resize(t,e,i){i=i||this._resolution,t=t||this.width,e=e||this.height;let r=Math.round(t*i),s=Math.round(e*i);return this.width=r/i,this.height=s/i,this._resolution=i,(this.pixelWidth!==r||this.pixelHeight!==s)&&(this._refreshPOT(),this.pixelWidth=r,this.pixelHeight=s,this.emit("resize",this),this._resourceId=(0,n.h)("resource"),this.emit("change",this),!0)}updateMipmaps(){this.autoGenerateMipmaps&&this.mipLevelCount>1&&this.emit("updateMipmaps",this)}set wrapMode(t){this._style.wrapMode=t}get wrapMode(){return this._style.wrapMode}set scaleMode(t){this._style.scaleMode=t}get scaleMode(){return this._style.scaleMode}_refreshPOT(){this.isPowerOfTwo=(0,s.wv)(this.pixelWidth)&&(0,s.wv)(this.pixelHeight)}static test(t){throw Error("Unimplemented")}};l.defaultOptions={resolution:1,format:"bgra8unorm",alphaMode:"premultiply-alpha-on-upload",dimensions:"2d",mipLevelCount:1,autoGenerateMipmaps:!1,sampleCount:1,antialias:!1,autoGarbageCollect:!1};let u=l},2825:function(t,e,i){"use strict";i.d(e,{L:function(){return h}});var r=i(7),s=i(9625),n=i(4215),a=i(8744);let o=class t extends a.p{constructor(e){super(e),this.isReady=!1,this.uploadMethodId="video",e={...t.defaultOptions,...e},this._autoUpdate=!0,this._isConnectedToTicker=!1,this._updateFPS=e.updateFPS||0,this._msToNextUpdate=0,this.autoPlay=!1!==e.autoPlay,this.alphaMode=e.alphaMode??"premultiply-alpha-on-upload",this._videoFrameRequestCallback=this._videoFrameRequestCallback.bind(this),this._videoFrameRequestCallbackHandle=null,this._load=null,this._resolve=null,this._reject=null,this._onCanPlay=this._onCanPlay.bind(this),this._onCanPlayThrough=this._onCanPlayThrough.bind(this),this._onError=this._onError.bind(this),this._onPlayStart=this._onPlayStart.bind(this),this._onPlayStop=this._onPlayStop.bind(this),this._onSeeked=this._onSeeked.bind(this),!1!==e.autoLoad&&this.load()}updateFrame(){if(!this.destroyed){if(this._updateFPS){let t=s.v.shared.elapsedMS*this.resource.playbackRate;this._msToNextUpdate=Math.floor(this._msToNextUpdate-t)}(!this._updateFPS||this._msToNextUpdate<=0)&&(this._msToNextUpdate=this._updateFPS?Math.floor(1e3/this._updateFPS):0),this.isValid&&this.update()}}_videoFrameRequestCallback(){this.updateFrame(),this.destroyed?this._videoFrameRequestCallbackHandle=null:this._videoFrameRequestCallbackHandle=this.resource.requestVideoFrameCallback(this._videoFrameRequestCallback)}get isValid(){return!!this.resource.videoWidth&&!!this.resource.videoHeight}async load(){if(this._load)return this._load;let t=this.resource,e=this.options;return(t.readyState===t.HAVE_ENOUGH_DATA||t.readyState===t.HAVE_FUTURE_DATA)&&t.width&&t.height&&(t.complete=!0),t.addEventListener("play",this._onPlayStart),t.addEventListener("pause",this._onPlayStop),t.addEventListener("seeked",this._onSeeked),this._isSourceReady()?this._mediaReady():(e.preload||t.addEventListener("canplay",this._onCanPlay),t.addEventListener("canplaythrough",this._onCanPlayThrough),t.addEventListener("error",this._onError,!0)),this.alphaMode=await (0,n.D)(),this._load=new Promise((i,r)=>{this.isValid?i(this):(this._resolve=i,this._reject=r,void 0!==e.preloadTimeoutMs&&(this._preloadTimeout=setTimeout(()=>{this._onError(new ErrorEvent(`Preload exceeded timeout of ${e.preloadTimeoutMs}ms`))})),t.load())}),this._load}_onError(t){this.resource.removeEventListener("error",this._onError,!0),this.emit
225("error",t),this._reject&&(this._reject(t),this._reject=null,this._resolve=null)}_isSourcePlaying(){let t=this.resource;return!t.paused&&!t.ended}_isSourceReady(){return this.resource.readyState>2}_onPlayStart(){this.isValid||this._mediaReady(),this._configureAutoUpdate()}_onPlayStop(){this._configureAutoUpdate()}_onSeeked(){this._autoUpdate&&!this._isSourcePlaying()&&(this._msToNextUpdate=0,this.updateFrame(),this._msToNextUpdate=0)}_onCanPlay(){this.resource.removeEventListener("canplay",this._onCanPlay),this._mediaReady()}_onCanPlayThrough(){this.resource.removeEventListener("canplaythrough",this._onCanPlay),this._preloadTimeout&&(clearTimeout(this._preloadTimeout),this._preloadTimeout=void 0),this._mediaReady()}_mediaReady(){let t=this.resource;this.isValid&&(this.isReady=!0,this.resize(t.videoWidth,t.videoHeight)),this._msToNextUpdate=0,this.updateFrame(),this._msToNextUpdate=0,this._resolve&&(this._resolve(this),this._resolve=null,this._reject=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&this.resource.play()}destroy(){this._configureAutoUpdate();let t=this.resource;t&&(t.removeEventListener("play",this._onPlayStart),t.removeEventListener("pause",this._onPlayStop),t.removeEventListener("seeked",this._onSeeked),t.removeEventListener("canplay",this._onCanPlay),t.removeEventListener("canplaythrough",this._onCanPlayThrough),t.removeEventListener("error",this._onError,!0),t.pause(),t.src="",t.load()),super.destroy()}get autoUpdate(){return this._autoUpdate}set autoUpdate(t){t!==this._autoUpdate&&(this._autoUpdate=t,this._configureAutoUpdate())}get updateFPS(){return this._updateFPS}set updateFPS(t){t!==this._updateFPS&&(this._updateFPS=t,this._configureAutoUpdate())}_configureAutoUpdate(){this._autoUpdate&&this._isSourcePlaying()?!this._updateFPS&&this.resource.requestVideoFrameCallback?(this._isConnectedToTicker&&(s.v.shared.remove(this.updateFrame,this),this._isConnectedToTicker=!1,this._msToNextUpdate=0),null===this._videoFrameRequestCallbackHandle&&(this._videoFrameRequestCallbackHandle=this.resource.requestVideoFrameCallback(this._videoFrameRequestCallback))):(null!==this._videoFrameRequestCallbackHandle&&(this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle),this._videoFrameRequestCallbackHandle=null),this._isConnectedToTicker||(s.v.shared.add(this.updateFrame,this),this._isConnectedToTicker=!0,this._msToNextUpdate=0)):(null!==this._videoFrameRequestCallbackHandle&&(this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle),this._videoFrameRequestCallbackHandle=null),this._isConnectedToTicker&&(s.v.shared.remove(this.updateFrame,this),this._isConnectedToTicker=!1,this._msToNextUpdate=0))}static test(t){return globalThis.HTMLVideoElement&&t instanceof HTMLVideoElement}};o.extension=r.nw.TextureSource,o.defaultOptions={...a.p.defaultOptions,autoLoad:!0,autoPlay:!0,updateFPS:0,crossorigin:!0,loop:!1,muted:!0,playsinline:!0,preload:!1},o.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"};let h=o},1375:function(t,e,i){"use strict";var r=i(6075),s=i(7),n=i(8744),a=i(8583);let o=[];function h(t={}){let e=t&&t.resource,i=e?t.resource:t,r=e?t:{resource:t};for(let t=0;t<o.length;t++){let e=o[t];if(e.test(i))return new e(r)}throw Error(`Could not find a source type for resource: ${r.resource}`)}s.Rw.handleByList(s.nw.TextureSource,o),a.x.from=function(t,e=!1){return"string"==typeof t?r.C.get(t):t instanceof n.p?new a.x({source:t}):function(t={},e=!1){let i=t&&t.resource,s=i?t.resource:t,n=i?t:{resource:t};if(!e&&r.C.has(s))return r.C.get(s);let o=new a.x({source:h(n)});return o.on("destroy",()=>{r.C.has(s)&&r.C.remove(s)}),e||r.C.set(s,o),o}(t,e)},n.p.from=h},1567:function(t,e,i){"use strict";i.d(e,{Z:function(){return n}});let r=Object.create(null),s=Object.create(null);function n(t,e){let i=s[t];return void 0===i&&(void 0===r[e]&&(r[e]=1),s[t]=i=r[e]++),i}},4147:function(t,e,i){"use strict";i.d(e,{g:function(){return s}});var r,s=((r=s||{})[r.WEBGL=1]="WEBGL",r[r.WEBGPU=2]="WEBGPU",r[r.BOTH=3]="BOTH",r)},846:function(t,e,i){"use strict";i.d(e,{W2:function(){return E},pA:function(){return T},wO:function(){return P},Jm:function(){return k}});var r=i(6393),s=i(6910),n=i(493),a=i(9296),o=i(3019),h=i(6656),l=i(5122),u=i(7852),d=i(5493),c=i(176),f=i(7);class p{constructor(){this._effectClasses=[],this._tests=[],this._initialized=!1}init(){this._initialized||(this._initialized=!0,this._effectClasses.forEac
225h(t=>{this.add({test:t.test,maskClass:t})}))}add(t){this._tests.push(t)}getMaskEffect(t){this._initialized||this.init();for(let e=0;e<this._tests.length;e++){let i=this._tests[e];if(i.test(t))return u.u.get(i.maskClass,t)}return t}returnMaskEffect(t){u.u.return(t)}}let m=new p;f.Rw.handleByList(f.nw.MaskEffect,m._effectClasses);var g=i(8721),y=i(6063),x=i(9631);let _=new n.y;function v(t,e){return t._zIndex-e._zIndex}var b=i(6250),w=i(4516);class A{constructor(){this.renderPipeId="renderGroup",this.root=null,this.canBundle=!1,this.renderGroupParent=null,this.renderGroupChildren=[],this.worldTransform=new n.y,this.worldColorAlpha=4294967295,this.worldColor=16777215,this.worldAlpha=1,this.childrenToUpdate=Object.create(null),this.updateTick=0,this.childrenRenderablesToUpdate={list:[],index:0},this.structureDidChange=!0,this.instructionSet=new w.h,this._onRenderContainers=[]}init(t){this.root=t,t._onRender&&this.addOnRender(t),t.didChange=!0;let e=t.children;for(let t=0;t<e.length;t++)this.addChild(e[t])}reset(){for(let t in this.renderGroupChildren.length=0,this.childrenToUpdate){let e=this.childrenToUpdate[t];e.list.fill(null),e.index=0}this.childrenRenderablesToUpdate.index=0,this.childrenRenderablesToUpdate.list.fill(null),this.root=null,this.updateTick=0,this.structureDidChange=!0,this._onRenderContainers.length=0,this.renderGroupParent=null}get localTransform(){return this.root.localTransform}addRenderGroupChild(t){t.renderGroupParent&&t.renderGroupParent._removeRenderGroupChild(t),t.renderGroupParent=this,this.renderGroupChildren.push(t)}_removeRenderGroupChild(t){let e=this.renderGroupChildren.indexOf(t);e>-1&&this.renderGroupChildren.splice(e,1),t.renderGroupParent=null}addChild(t){if(this.structureDidChange=!0,t.parentRenderGroup=this,t.updateTick=-1,t.parent===this.root?t.relativeRenderGroupDepth=1:t.relativeRenderGroupDepth=t.parent.relativeRenderGroupDepth+1,t.didChange=!0,this.onChildUpdate(t),t.renderGroup){this.addRenderGroupChild(t.renderGroup);return}t._onRender&&this.addOnRender(t);let e=t.children;for(let t=0;t<e.length;t++)this.addChild(e[t])}removeChild(t){if(this.structureDidChange=!0,t._onRender&&!t.renderGroup&&this.removeOnRender(t),t.parentRenderGroup=null,t.renderGroup){this._removeRenderGroupChild(t.renderGroup);return}let e=t.children;for(let t=0;t<e.length;t++)this.removeChild(e[t])}removeChildren(t){for(let e=0;e<t.length;e++)this.removeChild(t[e])}onChildUpdate(t){let e=this.childrenToUpdate[t.relativeRenderGroupDepth];e||(e=this.childrenToUpdate[t.relativeRenderGroupDepth]={index:0,list:[]}),e.list[e.index++]=t}updateRenderable(t){t.globalDisplayStatus<7||(t.didViewUpdate=!1,this.instructionSet.renderPipes[t.renderPipeId].updateRenderable(t))}onChildViewUpdate(t){this.childrenRenderablesToUpdate.list[this.childrenRenderablesToUpdate.index++]=t}get isRenderable(){return 7===this.root.localDisplayStatus&&this.worldAlpha>0}addOnRender(t){this._onRenderContainers.push(t)}removeOnRender(t){this._onRenderContainers.splice(this._onRenderContainers.indexOf(t),1)}runOnRender(){for(let t=0;t<this._onRenderContainers.length;t++)this._onRenderContainers[t]._onRender()}destroy(){this.renderGroupParent=null,this.root=null,this.childrenRenderablesToUpdate=null,this.childrenToUpdate=null,this.renderGroupChildren=null,this._onRenderContainers=null,this.instructionSet=null}getChildren(t=[]){let e=this.root.children;for(let i=0;i<e.length;i++)this._getChildren(e[i],t);return t}_getChildren(t,e=[]){if(e.push(t),t.renderGroup)return e;let i=t.children;for(let t=0;t<i.length;t++)this._getChildren(i[t],e);return e}}let S=new o.A(null),C=new o.A(null),M=new o.A(null,1,1),P=1,T=2,k=4;class E extends r.Z{constructor(t={}){super(),this.uid=(0,h.h)("renderable"),this._updateFlags=15,this.renderGroup=null,this.parentRenderGroup=null,this.parentRenderGroupIndex=0,this.didChange=!1,this.didViewUpdate=!1,this.relativeRenderGroupDepth=0,this.children=[],this.parent=null,this.includeInBuild=!0,this.measurable=!0,this.isSimple=!0,this.updateTick=-1,this.localTransform=new n.y,this.relativeGroupTransform=new n.y,this.groupTransform=this.relativeGroupTransform,this.destroyed=!1,this._position=new o.A(this,0,0),this._scale=M,this._pivot=C,this._skew=S,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._rotation=0,this.localColor=16777215,this.localAlpha=1,this.groupAlpha=1,this.groupColor=16777215,this.groupColorAlpha=4294967295,this.localBlendM
225ode="inherit",this.groupBlendMode="normal",this.localDisplayStatus=7,this.globalDisplayStatus=7,this._didContainerChangeTick=0,this._didViewChangeTick=0,this._didLocalTransformChangeId=-1,this.effects=[],function(t,e,i={}){for(let r in e)i[r]||void 0===e[r]||(t[r]=e[r])}(this,t,{children:!0,parent:!0,effects:!0}),t.children?.forEach(t=>this.addChild(t)),t.parent?.addChild(this)}static mixin(t){Object.defineProperties(E.prototype,Object.getOwnPropertyDescriptors(t))}set _didChangeId(t){this._didViewChangeTick=t>>12&4095,this._didContainerChangeTick=4095&t}get _didChangeId(){return 4095&this._didContainerChangeTick|(4095&this._didViewChangeTick)<<12}addChild(...t){if(this.allowChildren||(0,l.a1)(l.PD,"addChild: Only Containers will be allowed to add children in v8.0.0"),t.length>1){for(let e=0;e<t.length;e++)this.addChild(t[e]);return t[0]}let e=t[0];if(e.parent===this)return this.children.splice(this.children.indexOf(e),1),this.children.push(e),this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=!0),e;e.parent&&e.parent.removeChild(e),this.children.push(e),this.sortableChildren&&(this.sortDirty=!0),e.parent=this,e.didChange=!0,e.didViewUpdate=!1,e._updateFlags=15;let i=this.renderGroup||this.parentRenderGroup;return i&&i.addChild(e),this.emit("childAdded",e,this,this.children.length-1),e.emit("added",this),this._didViewChangeTick++,0!==e._zIndex&&e.depthOfChildModified(),e}removeChild(...t){if(t.length>1){for(let e=0;e<t.length;e++)this.removeChild(t[e]);return t[0]}let e=t[0],i=this.children.indexOf(e);return i>-1&&(this._didViewChangeTick++,this.children.splice(i,1),this.renderGroup?this.renderGroup.removeChild(e):this.parentRenderGroup&&this.parentRenderGroup.removeChild(e),e.parent=null,this.emit("childRemoved",e,this,i),e.emit("removed",this)),e}_onUpdate(t){t&&t===this._skew&&this._updateSkew(),this._didContainerChangeTick++,!this.didChange&&(this.didChange=!0,this.parentRenderGroup&&this.parentRenderGroup.onChildUpdate(this))}set isRenderGroup(t){!!this.renderGroup!==t&&(t?this.enableRenderGroup():this.disableRenderGroup())}get isRenderGroup(){return!!this.renderGroup}enableRenderGroup(){if(this.renderGroup)return;let t=this.parentRenderGroup;t?.removeChild(this),this.renderGroup=u.u.get(A,this),this.groupTransform=n.y.IDENTITY,t?.addChild(this),this._updateIsSimple()}disableRenderGroup(){if(!this.renderGroup)return;let t=this.parentRenderGroup;t?.removeChild(this),u.u.return(this.renderGroup),this.renderGroup=null,this.groupTransform=this.relativeGroupTransform,t?.addChild(this),this._updateIsSimple()}_updateIsSimple(){this.isSimple=!this.renderGroup&&0===this.effects.length}get worldTransform(){return this._worldTransform||(this._worldTransform=new n.y),this.renderGroup?this._worldTransform.copyFrom(this.renderGroup.worldTransform):this.parentRenderGroup&&this._worldTransform.appendFrom(this.relativeGroupTransform,this.parentRenderGroup.worldTransform),this._worldTransform}get x(){return this._position.x}set x(t){this._position.x=t}get y(){return this._position.y}set y(t){this._position.y=t}get position(){return this._position}set position(t){this._position.copyFrom(t)}get rotation(){return this._rotation}set rotation(t){this._rotation!==t&&(this._rotation=t,this._onUpdate(this._skew))}get angle(){return this.rotation*a.jl}set angle(t){this.rotation=t*a.ZX}get pivot(){return this._pivot===C&&(this._pivot=new o.A(this,0,0)),this._pivot}set pivot(t){this._pivot===C&&(this._pivot=new o.A(this,0,0)),"number"==typeof t?this._pivot.set(t):this._pivot.copyFrom(t)}get skew(){return this._skew===S&&(this._skew=new o.A(this,0,0)),this._skew}set skew(t){this._skew===S&&(this._skew=new o.A(this,0,0)),this._skew.copyFrom(t)}get scale(){return this._scale===M&&(this._scale=new o.A(this,1,1)),this._scale}set scale(t){this._scale===M&&(this._scale=new o.A(this,0,0)),"number"==typeof t?this._scale.set(t):this._scale.copyFrom(t)}get width(){return Math.abs(this.scale.x*this.getLocalBounds().width)}set width(t){let e=this.getLocalBounds().width;this._setWidth(t,e)}get height(){return Math.abs(this.scale.y*this.getLocalBounds().height)}set height(t){let e=this.getLocalBounds().height;this._setHeight(t,e)}getSize(t){t||(t={});let e=this.getLocalBounds();return t.width=Math.abs(this.scale.x*e.width),t.height=Math.abs(this.scale.y*e.height),t}setSize(t,e){let i=this.getLocalBounds();"object"==typeof t?(e=t.height??t.width,t=t.width):e??(e=t),void 0!==t&&this._setWi
225dth(t,i.width),void 0!==e&&this._setHeight(e,i.height)}_updateSkew(){let t=this._rotation,e=this._skew;this._cx=Math.cos(t+e._y),this._sx=Math.sin(t+e._y),this._cy=-Math.sin(t-e._x),this._sy=Math.cos(t-e._x)}updateTransform(t){return this.position.set("number"==typeof t.x?t.x:this.position.x,"number"==typeof t.y?t.y:this.position.y),this.scale.set("number"==typeof t.scaleX?t.scaleX||1:this.scale.x,"number"==typeof t.scaleY?t.scaleY||1:this.scale.y),this.rotation="number"==typeof t.rotation?t.rotation:this.rotation,this.skew.set("number"==typeof t.skewX?t.skewX:this.skew.x,"number"==typeof t.skewY?t.skewY:this.skew.y),this.pivot.set("number"==typeof t.pivotX?t.pivotX:this.pivot.x,"number"==typeof t.pivotY?t.pivotY:this.pivot.y),this}setFromMatrix(t){t.decompose(this)}updateLocalTransform(){let t=this._didContainerChangeTick;if(this._didLocalTransformChangeId===t)return;this._didLocalTransformChangeId=t;let e=this.localTransform,i=this._scale,r=this._pivot,s=this._position,n=i._x,a=i._y,o=r._x,h=r._y;e.a=this._cx*n,e.b=this._sx*n,e.c=this._cy*a,e.d=this._sy*a,e.tx=s._x-(o*e.a+h*e.c),e.ty=s._y-(o*e.b+h*e.d)}set alpha(t){t!==this.localAlpha&&(this.localAlpha=t,this._updateFlags|=P,this._onUpdate())}get alpha(){return this.localAlpha}set tint(t){let e=s.I.shared.setValue(t??16777215).toBgrNumber();e!==this.localColor&&(this.localColor=e,this._updateFlags|=P,this._onUpdate())}get tint(){let t=this.localColor;return((255&t)<<16)+(65280&t)+(t>>16&255)}set blendMode(t){this.localBlendMode!==t&&(this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=!0),this._updateFlags|=T,this.localBlendMode=t,this._onUpdate())}get blendMode(){return this.localBlendMode}get visible(){return!!(2&this.localDisplayStatus)}set visible(t){(2&this.localDisplayStatus)!=(t?2:0)&&(this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=!0),this._updateFlags|=k,this.localDisplayStatus^=2,this._onUpdate())}get culled(){return!(4&this.localDisplayStatus)}set culled(t){(4&this.localDisplayStatus)!=(t?0:4)&&(this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=!0),this._updateFlags|=k,this.localDisplayStatus^=4,this._onUpdate())}get renderable(){return!!(1&this.localDisplayStatus)}set renderable(t){(1&this.localDisplayStatus)!=(t?1:0)&&(this._updateFlags|=k,this.localDisplayStatus^=1,this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=!0),this._onUpdate())}get isRenderable(){return 7===this.localDisplayStatus&&this.groupAlpha>0}destroy(t=!1){if(this.destroyed)return;this.destroyed=!0;let e=this.removeChildren(0,this.children.length);if(this.removeFromParent(),this.parent=null,this._maskEffect=null,this._filterEffect=null,this.effects=null,this._position=null,this._scale=null,this._pivot=null,this._skew=null,this.emit("destroyed",this),this.removeAllListeners(),"boolean"==typeof t?t:t?.children)for(let i=0;i<e.length;++i)e[i].destroy(t);this.renderGroup?.destroy(),this.renderGroup=null}}E.mixin({allowChildren:!0,removeChildren(t=0,e){let i=e??this.children.length,r=i-t,s=[];if(r>0&&r<=i){for(let e=i-1;e>=t;e--){let t=this.children[e];t&&(s.push(t),t.parent=null)}(0,d.E)(this.children,t,i);let e=this.renderGroup||this.parentRenderGroup;e&&e.removeChildren(s);for(let t=0;t<s.length;++t)this.emit("childRemoved",s[t],this,t),s[t].emit("removed",this);return s}if(0===r&&0===this.children.length)return s;throw RangeError("removeChildren: numeric values are outside the acceptable range.")},removeChildAt(t){let e=this.getChildAt(t);return this.removeChild(e)},getChildAt(t){if(t<0||t>=this.children.length)throw Error(`getChildAt: Index (${t}) does not exist.`);return this.children[t]},setChildIndex(t,e){if(e<0||e>=this.children.length)throw Error(`The index ${e} supplied is out of bounds ${this.children.length}`);this.getChildIndex(t),this.addChildAt(t,e)},getChildIndex(t){let e=this.children.indexOf(t);if(-1===e)throw Error("The supplied Container must be a child of the caller");return e},addChildAt(t,e){this.allowChildren||(0,l.a1)(l.PD,"addChildAt: Only Containers will be allowed to add children in v8.0.0");let{children:i}=this;if(e<0||e>i.length)throw Error(`${t}addChildAt: The index ${e} supplied is out of bounds ${i.length}`);if(t.parent){let i=t.parent.children.indexOf(t);if(t.parent===this&&i===e)return t;-1!==i&&t.parent.children.splice(i,1)}e===i.length?i.push(t):i.splice(e,0,t),t.parent=this,t.didChange=!0,t.didViewUpdate=!1,t._updateFlags=15;let r=this.renderGroup||this.parentRenderGroup;return r&&r.addChild(t),this.sortableChildren&&(this.sortDirty=!0),this.emit
225("childAdded",t,this,e),t.emit("added",this),t},swapChildren(t,e){if(t===e)return;let i=this.getChildIndex(t),r=this.getChildIndex(e);this.children[i]=e,this.children[r]=t;let s=this.renderGroup||this.parentRenderGroup;s&&(s.structureDidChange=!0),this._didContainerChangeTick++},removeFromParent(){this.parent?.removeChild(this)},reparentChild(...t){return 1===t.length?this.reparentChildAt(t[0],this.children.length):(t.forEach(t=>this.reparentChildAt(t,this.children.length)),t[0])},reparentChildAt(t,e){if(t.parent===this)return this.setChildIndex(t,e),t;let i=t.worldTransform.clone();t.removeFromParent(),this.addChildAt(t,e);let r=this.worldTransform.clone();return r.invert(),i.prepend(r),t.setFromMatrix(i),t}}),E.mixin({getGlobalPosition(t=new b.E,e=!1){return this.parent?this.parent.toGlobal(this._position,t,e):(t.x=this._position.x,t.y=this._position.y),t},toGlobal(t,e,i=!1){if(!i){this.updateLocalTransform();let i=(0,y.I_)(this,new n.y);return i.append(this.localTransform),i.apply(t,e)}return this.worldTransform.apply(t,e)},toLocal(t,e,i,r){if(e&&(t=e.toGlobal(t,i,r)),!r){this.updateLocalTransform();let e=(0,y.I_)(this,new n.y);return e.append(this.localTransform),e.applyInverse(t,i)}return this.worldTransform.applyInverse(t,i)}}),E.mixin({_onRender:null,set onRender(func){let t=this.renderGroup||this.parentRenderGroup;if(!func){this._onRender&&t?.removeOnRender(this),this._onRender=null;return}this._onRender||t?.addOnRender(this),this._onRender=func},get onRender(){return this._onRender}}),E.mixin({_localBoundsCacheId:-1,_localBoundsCacheData:null,_setWidth(t,e){let i=Math.sign(this.scale.x)||1;0!==e?this.scale.x=t/e*i:this.scale.x=i},_setHeight(t,e){let i=Math.sign(this.scale.y)||1;0!==e?this.scale.y=t/e*i:this.scale.y=i},getLocalBounds(){this._localBoundsCacheData||(this._localBoundsCacheData={data:[],index:1,didChange:!1,localBounds:new g.Y});let t=this._localBoundsCacheData;return t.index=1,t.didChange=!1,t.data[0]!==this._didViewChangeTick&&(t.didChange=!0,t.data[0]=this._didViewChangeTick),function t(e,i){let r=e.children;for(let e=0;e<r.length;e++){let s=r[e],n=s.uid,a=(65535&s._didViewChangeTick)<<16|65535&s._didContainerChangeTick,o=i.index;(i.data[o]!==n||i.data[o+1]!==a)&&(i.data[i.index]=n,i.data[i.index+1]=a,i.didChange=!0),i.index=o+2,s.children.length&&t(s,i)}return i.didChange}(this,t),t.didChange&&(0,x.a)(this,t.localBounds,_),t.localBounds},getBounds(t,e){return(0,y.qW)(this,t,e||new g.Y)}}),E.mixin({_maskEffect:null,_filterEffect:null,effects:[],addEffect(t){if(-1!==this.effects.indexOf(t))return;this.effects.push(t),this.effects.sort((t,e)=>t.priority-e.priority);let e=this.renderGroup||this.parentRenderGroup;e&&(e.structureDidChange=!0),this._updateIsSimple()},removeEffect(t){let e=this.effects.indexOf(t);-1!==e&&(this.effects.splice(e,1),this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=!0),this._updateIsSimple())},set mask(value){let t=this._maskEffect;if(t?.mask===value||(t&&(this.removeEffect(t),m.returnMaskEffect(t),this._maskEffect=null),null==value))return;this._maskEffect=m.getMaskEffect(value),this.addEffect(this._maskEffect)},get mask(){return this._maskEffect?.mask},set filters(value){!Array.isArray(value)&&value&&(value=[value]);let t=this._filterEffect||(this._filterEffect=new c.U),e=value?.length>0,i=t.filters?.length>0;value=Array.isArray(value)?value.slice(0):value,t.filters=Object.freeze(value),e!==i&&(e?this.addEffect(t):(this.removeEffect(t),t.filters=value??null))},get filters(){return this._filterEffect?.filters},set filterArea(value){this._filterEffect||(this._filterEffect=new c.U),this._filterEffect.filterArea=value},get filterArea(){return this._filterEffect?.filterArea}}),E.mixin({label:null,get name(){return(0,l.a1)(l.PD,"Container.name property has been removed, use Container.label instead"),this.label},set name(value){(0,l.a1)(l.PD,"Container.name property has been removed, use Container.label instead"),this.label=value},getChildByName(t,e=!1){return this.getChildByLabel(t,e)},getChildByLabel(t,e=!1){let i=this.children;for(let e=0;e<i.length;e++){let r=i[e];if(r.label===t||t instanceof RegExp&&t.test(r.label))return r}if(e)for(let e=0;e<i.length;e++){let r=i[e].getChildByLabel(t,!0);if(r)return r}return null},getChildrenByLabel(t,e=!1,i=[]){let r=this.children;for(let e=0;e<r.length;e++){let s=r[e];(s.label===t||t instanceof RegExp&&t.test(s.label))&&i.push(s)}if(e)for(let e=0;e<r.length;e++)r[e].getChildrenByLabel(t,!0,i);return i}}),E.mixin({_zIndex:0,sortDirty:!1,sortableChildren:!1,get zIndex(){return this._zIndex},set zIndex(value){if(this._zIndex===value)return;this._zIndex=value,this.depthOfChildModified()},depthOfChildModified(){this.parent&&(this.parent.sortableChildren=!0,this.parent.sortDirty=!0),this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=!0)},sortChildren(){this.sortDirty&&(this.sortDirty=!1,this.children.sort(v))}}
225),E.mixin({cullArea:null,cullable:!1,cullableChildren:!0})},8721:function(t,e,i){"use strict";i.d(e,{Y:function(){return a}});var r=i(493),s=i(9619);let n=new r.y;class a{constructor(t=1/0,e=1/0,i=-1/0,r=-1/0){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.matrix=n,this.minX=t,this.minY=e,this.maxX=i,this.maxY=r}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}get rectangle(){this._rectangle||(this._rectangle=new s.A);let t=this._rectangle;return this.minX>this.maxX||this.minY>this.maxY?(t.x=0,t.y=0,t.width=0,t.height=0):t.copyFromBounds(this),t}clear(){return this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.matrix=n,this}set(t,e,i,r){this.minX=t,this.minY=e,this.maxX=i,this.maxY=r}addFrame(t,e,i,r,s){s||(s=this.matrix);let n=s.a,a=s.b,o=s.c,h=s.d,l=s.tx,u=s.ty,d=this.minX,c=this.minY,f=this.maxX,p=this.maxY,m=n*t+o*e+l,g=a*t+h*e+u;m<d&&(d=m),g<c&&(c=g),m>f&&(f=m),g>p&&(p=g),m=n*i+o*e+l,g=a*i+h*e+u,m<d&&(d=m),g<c&&(c=g),m>f&&(f=m),g>p&&(p=g),m=n*t+o*r+l,g=a*t+h*r+u,m<d&&(d=m),g<c&&(c=g),m>f&&(f=m),g>p&&(p=g),m=n*i+o*r+l,g=a*i+h*r+u,m<d&&(d=m),g<c&&(c=g),m>f&&(f=m),g>p&&(p=g),this.minX=d,this.minY=c,this.maxX=f,this.maxY=p}addRect(t,e){this.addFrame(t.x,t.y,t.x+t.width,t.y+t.height,e)}addBounds(t,e){this.addFrame(t.minX,t.minY,t.maxX,t.maxY,e)}addBoundsMask(t){this.minX=this.minX>t.minX?this.minX:t.minX,this.minY=this.minY>t.minY?this.minY:t.minY,this.maxX=this.maxX<t.maxX?this.maxX:t.maxX,this.maxY=this.maxY<t.maxY?this.maxY:t.maxY}applyMatrix(t){let e=this.minX,i=this.minY,r=this.maxX,s=this.maxY,{a:n,b:a,c:o,d:h,tx:l,ty:u}=t,d=n*e+o*i+l,c=a*e+h*i+u;this.minX=d,this.minY=c,this.maxX=d,this.maxY=c,d=n*r+o*i+l,c=a*r+h*i+u,this.minX=d<this.minX?d:this.minX,this.minY=c<this.minY?c:this.minY,this.maxX=d>this.maxX?d:this.maxX,this.maxY=c>this.maxY?c:this.maxY,d=n*e+o*s+l,c=a*e+h*s+u,this.minX=d<this.minX?d:this.minX,this.minY=c<this.minY?c:this.minY,this.maxX=d>this.maxX?d:this.maxX,this.maxY=c>this.maxY?c:this.maxY,d=n*r+o*s+l,c=a*r+h*s+u,this.minX=d<this.minX?d:this.minX,this.minY=c<this.minY?c:this.minY,this.maxX=d>this.maxX?d:this.maxX,this.maxY=c>this.maxY?c:this.maxY}fit(t){return this.minX<t.left&&(this.minX=t.left),this.maxX>t.right&&(this.maxX=t.right),this.minY<t.top&&(this.minY=t.top),this.maxY>t.bottom&&(this.maxY=t.bottom),this}fitBounds(t,e,i,r){return this.minX<t&&(this.minX=t),this.maxX>e&&(this.maxX=e),this.minY<i&&(this.minY=i),this.maxY>r&&(this.maxY=r),this}pad(t,e=t){return this.minX-=t,this.maxX+=t,this.minY-=e,this.maxY+=e,this}ceil(){return this.minX=Math.floor(this.minX),this.minY=Math.floor(this.minY),this.maxX=Math.ceil(this.maxX),this.maxY=Math.ceil(this.maxY),this}clone(){return new a(this.minX,this.minY,this.maxX,this.maxY)}scale(t,e=t){return this.minX*=t,this.minY*=e,this.maxX*=t,this.maxY*=e,this}get x(){return this.minX}set x(t){let e=this.maxX-this.minX;this.minX=t,this.maxX=t+e}get y(){return this.minY}set y(t){let e=this.maxY-this.minY;this.minY=t,this.maxY=t+e}get width(){return this.maxX-this.minX}set width(t){this.maxX=this.minX+t}get height(){return this.maxY-this.minY}set height(t){this.maxY=this.minY+t}get left(){return this.minX}get right(){return this.maxX}get top(){return this.minY}get bottom(){return this.maxY}get isPositive(){return this.maxX-this.minX>0&&this.maxY-this.minY>0}get isValid(){return this.minX+this.minY!==1/0}addVertexData(t,e,i,r){let s=this.minX,n=this.minY,a=this.maxX,o=this.maxY;r||(r=this.matrix);let h=r.a,l=r.b,u=r.c,d=r.d,c=r.tx,f=r.ty;for(let r=e;r<i;r+=2){let e=t[r],i=t[r+1],p=h*e+u*i+c,m=l*e+d*i+f;s=p<s?p:s,n=m<n?m:n,a=p>a?p:a,o=m>o?m:o}this.minX=s,this.minY=n,this.maxX=a,this.maxY=o}containsPoint(t,e){return this.minX<=t&&this.minY<=e&&this.maxX>=t&&this.maxY>=e}toString(){return`[pixi.js:Bounds minX=${this.minX} minY=${this.minY} maxX=${this.maxX} maxY=${this.maxY} width=${this.width} height=${this.height}]`}}},6063:function(t,e,i){"use strict";i.d(e,{I_:function(){return a},qW:function(){return n}});var r=i(493),s=i(1131);function n(t,e,i){let n,o;return i.clear(),n=t.parent?e?t.parent.worldTransform:a(t,o=s.N.get().identity()):r.y.IDENTITY,function t(e,i,n,a){let o;if(!e.visible||!e.measurable)return;a?o=e.worldTransform:(e.updateLocalTransform(),(o=s.N.get()).appendFrom(e.localTransform,n));let h=i,l=!!e.effects.length;if(l&&(i=s.W.get().clear()),e.boundsArea)i.addRect(e.boundsArea,o);else{e.addBounds&&(i.matrix=o,e.addBounds(i));for(let r=0;r<e.children.length;r++)t(e.children[r],i,o,a)}if(l){for(let t=0;t<e.effects.length;t++)e.effects[t].addBounds?.(i);h.addBounds(i,r.y.IDENTITY),s.W.return(i)}a||s.N.return(o)}(t,i,n,e),o&&s.N.return(o),i.isValid||i.set(0,0,0,0),i}function a(t,e){let i=t.parent;return i&&(a(i,e),i.updateLocalTransform(),e.append(i.localTransform)),e}}
225,9631:function(t,e,i){"use strict";i.d(e,{a:function(){return n}});var r=i(493),s=i(1131);function n(t,e,i){return e.clear(),i||(i=r.y.IDENTITY),function t(e,i,n,a,o){let h;if(o)h=s.N.get(),h=n.copyTo(h);else{if(!e.visible||!e.measurable)return;e.updateLocalTransform();let t=e.localTransform;(h=s.N.get()).appendFrom(t,n)}let l=i,u=!!e.effects.length;if(u&&(i=s.W.get().clear()),e.boundsArea)i.addRect(e.boundsArea,h);else{e.renderPipeId&&(i.matrix=h,e.addBounds(i));let r=e.children;for(let e=0;e<r.length;e++)t(r[e],i,h,a,!1)}if(u){for(let t=0;t<e.effects.length;t++)e.effects[t].addLocalBounds?.(i,a);l.addBounds(i,r.y.IDENTITY),s.W.return(i)}s.N.return(h)}(t,e,i,t,!0),e.isValid||e.set(0,0,0,0),e}},1131:function(t,e,i){"use strict";i.d(e,{N:function(){return a},W:function(){return o}});var r=i(493),s=i(3852),n=i(8721);let a=new s.K(r.y),o=new s.K(n.Y)},2279:function(t,e,i){"use strict";i.d(e,{I:function(){return s}});let r=new(i(493)).y;class s{constructor(){this.packAsQuad=!1,this.batcherName="default",this.applyTransform=!0,this.roundPixels=0,this._batcher=null,this._batch=null}get uvs(){return this.geometryData.uvs}get positions(){return this.geometryData.vertices}get indices(){return this.geometryData.indices}get blendMode(){return this.applyTransform?this.renderable.groupBlendMode:"normal"}get color(){let t=this.baseColor,e=t>>16|65280&t|(255&t)<<16,i=this.renderable;if(i){var r;return r=i.groupColor,(16777215!==e&&r?16777215!==r&&e?((e>>16&255)*(r>>16&255)/255<<16)+((e>>8&255)*(r>>8&255)/255<<8)+(255&e)*(255&r)/255:e:r)+(this.alpha*i.groupAlpha*255<<24)}return e+(255*this.alpha<<24)}get transform(){return this.renderable?.groupTransform||r}copyTo(t){t.indexOffset=this.indexOffset,t.indexSize=this.indexSize,t.attributeOffset=this.attributeOffset,t.attributeSize=this.attributeSize,t.baseColor=this.baseColor,t.alpha=this.alpha,t.texture=this.texture,t.geometryData=this.geometryData}reset(){this.applyTransform=!0,this.renderable=null}}},1352:function(t,e,i){"use strict";i.d(e,{T:function(){return a}});var r=i(5122),s=i(9177),n=i(4263);class a extends s.${constructor(t){t instanceof n.g&&(t={context:t});let{context:e,roundPixels:i,...r}=t||{};super({label:"Graphics",...r}),this.renderPipeId="graphics",e?this._context=e:this._context=this._ownedContext=new n.g,this._context.on("update",this.onViewUpdate,this),this.allowChildren=!1,this.roundPixels=i??!1}set context(t){t!==this._context&&(this._context.off("update",this.onViewUpdate,this),this._context=t,this._context.on("update",this.onViewUpdate,this),this.onViewUpdate())}get context(){return this._context}get bounds(){return this._context.bounds}addBounds(t){t.addBounds(this._context.bounds)}containsPoint(t){return this._context.containsPoint(t)}onViewUpdate(){if(this._didViewChangeTick++,this._didGraphicsUpdate=!0,this.didViewUpdate)return;this.didViewUpdate=!0;let t=this.renderGroup||this.parentRenderGroup;t&&t.onChildViewUpdate(this)}destroy(t){this._ownedContext&&!t?this._ownedContext.destroy(t):(!0===t||t?.context===!0)&&this._context.destroy(t),this._ownedContext=null,this._context=null,super.destroy(t)}_callContextMethod(t,e){return this.context[t](...e),this}setFillStyle(...t){return this._callContextMethod("setFillStyle",t)}setStrokeStyle(...t){return this._callContextMethod("setStrokeStyle",t)}fill(...t){return this._callContextMethod("fill",t)}stroke(...t){return this._callContextMethod("stroke",t)}texture(...t){return this._callContextMethod("texture",t)}beginPath(){return this._callContextMethod("beginPath",[])}cut(){return this._callContextMethod("cut",[])}arc(...t){return this._callContextMethod("arc",t)}arcTo(...t){return this._callContextMethod("arcTo",t)}arcToSvg(...t){return this._callContextMethod("arcToSvg",t)}bezierCurveTo(...t){return this._callContextMethod("bezierCurveTo",t)}closePath(){return this._callContextMethod("closePath",[])}ellipse(...t){return this._callContextMethod("ellipse",t)}circle(...t){return this._callContextMethod("circle",t)}path(...t){return this._callContextMethod("path",t)}lineTo(...t){return this._callContextMethod("lineTo",t)}moveTo(...t){return this._callContextMethod("moveTo",t)}quadraticCurveTo(...t){return this._callContextMethod("quadraticCurveTo",t)}rect(...t){return this._callContextMethod("rect",t)}
225roundRect(...t){return this._callContextMethod("roundRect",t)}poly(...t){return this._callContextMethod("poly",t)}regularPoly(...t){return this._callContextMethod("regularPoly",t)}roundPoly(...t){return this._callContextMethod("roundPoly",t)}roundShape(...t){return this._callContextMethod("roundShape",t)}filletRect(...t){return this._callContextMethod("filletRect",t)}chamferRect(...t){return this._callContextMethod("chamferRect",t)}star(...t){return this._callContextMethod("star",t)}svg(...t){return this._callContextMethod("svg",t)}restore(...t){return this._callContextMethod("restore",t)}save(){return this._callContextMethod("save",[])}getTransform(){return this.context.getTransform()}resetTransform(){return this._callContextMethod("resetTransform",[])}rotateTransform(...t){return this._callContextMethod("rotate",t)}scaleTransform(...t){return this._callContextMethod("scale",t)}setTransform(...t){return this._callContextMethod("setTransform",t)}transform(...t){return this._callContextMethod("transform",t)}translateTransform(...t){return this._callContextMethod("translate",t)}clear(){return this._callContextMethod("clear",[])}get fillStyle(){return this._context.fillStyle}set fillStyle(t){this._context.fillStyle=t}get strokeStyle(){return this._context.strokeStyle}set strokeStyle(t){this._context.strokeStyle=t}clone(t=!1){return t?new a(this._context.clone()):(this._ownedContext=null,new a(this._context))}lineStyle(t,e,i){(0,r.a1)(r.PD,"Graphics#lineStyle is no longer needed. Use Graphics#setStrokeStyle to set the stroke style.");let s={};return t&&(s.width=t),e&&(s.color=e),i&&(s.alpha=i),this.context.strokeStyle=s,this}beginFill(t,e){(0,r.a1)(r.PD,"Graphics#beginFill is no longer needed. Use Graphics#fill to fill the shape with the desired style.");let i={};return t&&(i.color=t),e&&(i.alpha=e),this.context.fillStyle=i,this}endFill(){(0,r.a1)(r.PD,"Graphics#endFill is no longer needed. Use Graphics#fill to fill the shape with the desired style."),this.context.fill();let t=this.context.strokeStyle;return(t.width!==n.g.defaultStrokeStyle.width||t.color!==n.g.defaultStrokeStyle.color||t.alpha!==n.g.defaultStrokeStyle.alpha)&&this.context.stroke(),this}drawCircle(...t){return(0,r.a1)(r.PD,"Graphics#drawCircle has been renamed to Graphics#circle"),this._callContextMethod("circle",t)}drawEllipse(...t){return(0,r.a1)(r.PD,"Graphics#drawEllipse has been renamed to Graphics#ellipse"),this._callContextMethod("ellipse",t)}drawPolygon(...t){return(0,r.a1)(r.PD,"Graphics#drawPolygon has been renamed to Graphics#poly"),this._callContextMethod("poly",t)}drawRect(...t){return(0,r.a1)(r.PD,"Graphics#drawRect has been renamed to Graphics#rect"),this._callContextMethod("rect",t)}drawRoundedRect(...t){return(0,r.a1)(r.PD,"Graphics#drawRoundedRect has been renamed to Graphics#roundRect"),this._callContextMethod("roundRect",t)}drawStar(...t){return(0,r.a1)(r.PD,"Graphics#drawStar has been renamed to Graphics#star"),this._callContextMethod("star",t)}}},4263:function(t,e,i){"use strict";i.d(e,{g:function(){return L}});var r=i(6393),s=i(6910),n=i(493),a=i(6250),o=i(8583),h=i(6656),l=i(5122),u=i(8721),d=i(5788),c=i(2219),f=i(9619);class p{constructor(t=0,e=0,i=0){this.type="circle",this.x=t,this.y=e,this.radius=i}clone(){return new p(this.x,this.y,this.radius)}contains(t,e){if(this.radius<=0)return!1;let i=this.radius*this.radius,r=this.x-t,s=this.y-e;return r*=r,s*=s,r+s<=i}strokeContains(t,e,i){if(0===this.radius)return!1;let r=this.x-t,s=this.y-e,n=this.radius,a=i/2,o=Math.sqrt(r*r+s*s);return o<n+a&&o>n-a}getBounds(t){return(t=t||new f.A).x=this.x-this.radius,t.y=this.y-this.radius,t.width=2*this.radius,t.height=2*this.radius,t}copyFrom(t){return this.x=t.x,this.y=t.y,this.radius=t.radius,this}copyTo(t){return t.copyFrom(this),t}toString(){return`[pixi.js/math:Circle x=${this.x} y=${this.y} radius=${this.radius}]`}}class m{constructor(t=0,e=0,i=0,r=0){this.type="ellipse",this.x=t,this.y=e,this.halfWidth=i,this.halfHeight=r}clone(){return new m(this.x,this.y,this.halfWidth,this.halfHeight)}contains(t,e){if(this.halfWidth<=0||this.halfHeight<=0)return!1;let i=(t-this.x)/this.halfWidth,r=(e-this.y)/this.halfHeight;return i*=i,r*=r,i+r<=1}strokeContains(t,e,i){let{halfWidth:r,halfHeight:s}=this;if(r<=0||s<=0)return!1;let n=i/2,a=r-n,o=s-n,h=r+n,l=s+n,u=t-this.x,d=e-this.y;return u*u/(a*a)+d*d/(o*o)>1&&u*u/(h*h)+d*d/(l*l)<=1}getBounds(t){return(t=t||new f.A).x=this.x-this.halfWidth,t.y=this.y-this.halfHeight,t.width=2*this.halfWidth,t.height=2*this.halfHeight,t}copyFrom(t){return this.x=t.x,this.y=t.y,this.halfWidth=t.halfWidth,this.halfHeight=t.halfHeight,this}copyTo(t){return t.copyFrom(this),t}toString(){return`[pixi.js/math:Ellipse x=${this.x} y=${this.y} halfWidth=${this.halfWidth} halfHeight=${this.halfHeight}]`}}class g{constructor(...t){this.type="polygon";let e=Array.isArray(t[0])?t[0]:t;if("number"!=typeof e[0]){let t=[];for(let i=0,r=e.length;i<r;i++)t.push(e[i].x,e[i].y);e=t}this.points=e,this.closePath=!0}clone(){let t=new g(this.points.slice());return t.closePath=this.closePath,t}contains(t,e){let i=!1,r=this.points.length/2;for(let s=0,n=r-1;s<r;n=s++){let r=this.points[2*s],a=this.points[2*s+1],o=this.points[2*n],h=this.points[2*n+1];a>e!=h>e&&t<(e-a)/(h-a)*(o-r)+r&&(i=!i)}return i}strokeContains(t,e,i){let r=i/2,s=r*r,{points:n}=this,a=n.length-(this.closePath?0:2);for(let i=0;i<a;i+=2){let r=n[i];
225if(function(t,e,i,r,s,n){let a,o;let h=s-i,l=n-r,u=h*h+l*l,d=-1;0!==u&&(d=((t-i)*h+(e-r)*l)/u),d<0?(a=i,o=r):d>1?(a=s,o=n):(a=i+d*h,o=r+d*l);let c=t-a,f=e-o;return c*c+f*f}(t,e,r,n[i+1],n[(i+2)%n.length],n[(i+3)%n.length])<=s)return!0}return!1}getBounds(t){t=t||new f.A;let e=this.points,i=1/0,r=-1/0,s=1/0,n=-1/0;for(let t=0,a=e.length;t<a;t+=2){let a=e[t],o=e[t+1];i=a<i?a:i,r=a>r?a:r,s=o<s?o:s,n=o>n?o:n}return t.x=i,t.width=r-i,t.y=s,t.height=n-s,t}copyFrom(t){return this.points=t.points.slice(),this.closePath=t.closePath,this}copyTo(t){return t.copyFrom(this),t}toString(){return`[pixi.js/math:PolygoncloseStroke=${this.closePath}points=${this.points.reduce((t,e)=>`${t}, ${e}`,"")}]`}get lastX(){return this.points[this.points.length-2]}get lastY(){return this.points[this.points.length-1]}get x(){return this.points[this.points.length-2]}get y(){return this.points[this.points.length-1]}}let y=(t,e,i,r,s,n)=>{let a=t-i,o=e-r,h=Math.sqrt(a*a+o*o);return h>=s-n&&h<=s+n};class x{constructor(t=0,e=0,i=0,r=0,s=20){this.type="roundedRectangle",this.x=t,this.y=e,this.width=i,this.height=r,this.radius=s}getBounds(t){return(t=t||new f.A).x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t}clone(){return new x(this.x,this.y,this.width,this.height,this.radius)}copyFrom(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this}copyTo(t){return t.copyFrom(this),t}contains(t,e){if(this.width<=0||this.height<=0)return!1;if(t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height){let i=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(e>=this.y+i&&e<=this.y+this.height-i||t>=this.x+i&&t<=this.x+this.width-i)return!0;let r=t-(this.x+i),s=e-(this.y+i),n=i*i;if(r*r+s*s<=n||(r=t-(this.x+this.width-i))*r+s*s<=n||r*r+(s=e-(this.y+this.height-i))*s<=n||(r=t-(this.x+i))*r+s*s<=n)return!0}return!1}strokeContains(t,e,i){let{x:r,y:s,width:n,height:a,radius:o}=this,h=i/2,l=r+o,u=s+o,d=n-2*o,c=a-2*o,f=r+n,p=s+a;return(t>=r-h&&t<=r+h||t>=f-h&&t<=f+h)&&e>=u&&e<=u+c||(e>=s-h&&e<=s+h||e>=p-h&&e<=p+h)&&t>=l&&t<=l+d||t<l&&e<u&&y(t,e,l,u,o,h)||t>f-o&&e<u&&y(t,e,f-o,u,o,h)||t>f-o&&e>p-o&&y(t,e,f-o,p-o,o,h)||t<l&&e>p-o&&y(t,e,l,p-o,o,h)}toString(){return`[pixi.js/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`}}var _=i(5752);function v(t,e,i,r,s,n,a,o,h,l){let u=(1-Math.min(.99,Math.max(0,l??_.hJ.defaultOptions.bezierSmoothness)))/1;return function t(e,i,r,s,n,a,o,h,l,u,d){if(d>8)return;let c=(e+r)/2,f=(i+s)/2,p=(r+n)/2,m=(s+a)/2,g=(n+o)/2,y=(a+h)/2,x=(c+p)/2,_=(f+m)/2,v=(p+g)/2,b=(m+y)/2,w=(x+v)/2,A=(_+b)/2;if(d>0){let t=o-e,d=h-i,c=Math.abs((r-o)*d-(s-h)*t),f=Math.abs((n-o)*d-(a-h)*t);if(c>11920929e-14&&f>11920929e-14){if((c+f)*(c+f)<=u*(t*t+d*d)){l.push(w,A);return}}else if(c>11920929e-14){if(c*c<=u*(t*t+d*d)){l.push(w,A);return}}else if(f>11920929e-14){if(f*f<=u*(t*t+d*d)){l.push(w,A);return}}else if((t=w-(e+o)/2)*t+(d=A-(i+h)/2)*d<=u){l.push(w,A);return}}t(e,i,c,f,x,_,w,A,l,u,d+1),t(w,A,v,b,g,y,o,h,l,u,d+1)}(e,i,r,s,n,a,o,h,t,u*=u,0),t.push(o,h),t}function b(t,e,i,r,s,n,a,o){let h=Math.abs(s-n);!a&&s>n?h=2*Math.PI-h:a&&n>s&&(h=2*Math.PI-h),o=Math.max(o=o||Math.max(6,Math.floor(6*Math.pow(r,1/3)*(h/Math.PI))),3);let l=h/o,u=s;l*=a?-1:1;for(let s=0;s<o+1;s++){let s=e+Math.cos(u)*r,n=i+Math.sin(u)*r;t.push(s,n),u+=l}}let w=2*Math.PI,A={centerX:0,centerY:0,ang1:0,ang2:0},S=({x:t,y:e},i,r,s,n,a,o,h)=>{let l=s*(t*=i)-n*(e*=r),u=n*t+s*e;return h.x=l+a,h.y=u+o,h},C=(t,e,i,r)=>{let s=t*i+e*r;return s>1&&(s=1),s<-1&&(s=-1),(t*r-e*i<0?-1:1)*Math.acos(s)},M=(t,e,i,r,s,n,a,o,h,l,u,d,c)=>{let f=Math.pow(s,2),p=Math.pow(n,2),m=Math.pow(u,2),g=Math.pow(d,2),y=f*p-f*g-p*m;y<0&&(y=0),y/=f*g+p*m;let x=(y=Math.sqrt(y)*(a===o?-1:1))*s/n*d,_=-(y*n)/s*u,v=(u-x)/s,b=(d-_)/n,A=C(1,0,v,b),S=C(v,b,(-u-x)/s,(-d-_)/n);0===o&&S>0&&(S-=w),1===o&&S<0&&(S+=w),c.centerX=l*x-h*_+(t+i)/2,c.centerY=h*x+l*_+(e+r)/2,c.ang1=A,c.ang2=S},P=new f.A;class T{constructor(t){this.shapePrimitives=[],this._currentPoly=null,this._bounds=new u.Y,this._graphicsPath2D=t}moveTo(t,e){return this.startPoly(t,e),this}lineTo(t,e){this._ensurePoly();let i=this._currentPoly.points,r=i[i.length-2],s=i[i.length-1];return(r!==t||s!==e)&&i.push(t,e),this}arc(t,e,i,r,s,n){return this._ensurePoly(!1),b(this._currentPoly.points,t,e,i,r,s,n),this}
225arcTo(t,e,i,r,s){return this._ensurePoly(),!function(t,e,i,r,s,n){let a=t[t.length-2],o=t[t.length-1]-i,h=a-e,l=s-i,u=r-e,d=Math.abs(o*u-h*l);if(d<1e-8||0===n){(t[t.length-2]!==e||t[t.length-1]!==i)&&t.push(e,i);return}let c=o*o+h*h,f=l*l+u*u,p=o*l+h*u,m=n*Math.sqrt(c)/d,g=n*Math.sqrt(f)/d,y=m*p/c,x=g*p/f,_=m*u+g*h,v=m*l+g*o;b(t,_+e,v+i,n,Math.atan2(o*(g+y)-v,h*(g+y)-_),Math.atan2(l*(m+x)-v,u*(m+x)-_),h*l>u*o)}(this._currentPoly.points,t,e,i,r,s),this}arcToSvg(t,e,i,r,s,n,a){return!function(t,e,i,r,s,n,a,o=0,h=0,l=0){if(0===n||0===a)return;let u=Math.sin(o*w/360),d=Math.cos(o*w/360),c=d*(e-r)/2+u*(i-s)/2,f=-u*(e-r)/2+d*(i-s)/2;if(0===c&&0===f)return;let p=Math.pow(c,2)/Math.pow(n=Math.abs(n),2)+Math.pow(f,2)/Math.pow(a=Math.abs(a),2);p>1&&(n*=Math.sqrt(p),a*=Math.sqrt(p)),M(e,i,r,s,n,a,h,l,u,d,c,f,A);let{ang1:m,ang2:g}=A,{centerX:y,centerY:x}=A,_=Math.abs(g)/(w/4);1e-7>Math.abs(1-_)&&(_=1);let b=Math.max(Math.ceil(_),1);g/=b;let C=t[t.length-2],P=t[t.length-1],T={x:0,y:0};for(let e=0;e<b;e++){let e=function(t,e){let i=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),r=Math.cos(t),s=Math.sin(t),n=Math.cos(t+e),a=Math.sin(t+e);return[{x:r-s*i,y:s+r*i},{x:n+a*i,y:a-n*i},{x:n,y:a}]}(m,g),{x:i,y:r}=S(e[0],n,a,d,u,y,x,T),{x:s,y:o}=S(e[1],n,a,d,u,y,x,T),{x:h,y:l}=S(e[2],n,a,d,u,y,x,T);v(t,C,P,i,r,s,o,h,l),C=h,P=l,m+=g}}(this._currentPoly.points,this._currentPoly.lastX,this._currentPoly.lastY,n,a,t,e,i,r,s),this}bezierCurveTo(t,e,i,r,s,n,a){this._ensurePoly();let o=this._currentPoly;return v(this._currentPoly.points,o.lastX,o.lastY,t,e,i,r,s,n,a),this}quadraticCurveTo(t,e,i,r,s){var n,a,o;let h;this._ensurePoly();let l=this._currentPoly;return n=this._currentPoly.points,a=l.lastX,o=l.lastY,h=(1-Math.min(.99,Math.max(0,s??_.hJ.defaultOptions.bezierSmoothness)))/1,function t(e,i,r,s,n,a,o,h,l){if(l>8)return;let u=(i+s)/2,d=(r+n)/2,c=(s+a)/2,f=(n+o)/2,p=(u+c)/2,m=(d+f)/2,g=a-i,y=o-r,x=Math.abs((s-a)*y-(n-o)*g);if(x>11920929e-14){if(x*x<=h*(g*g+y*y)){e.push(p,m);return}}else if((g=p-(i+a)/2)*g+(y=m-(r+o)/2)*y<=h){e.push(p,m);return}t(e,i,r,u,d,p,m,h,l+1),t(e,p,m,c,f,a,o,h,l+1)}(n,a,o,t,e,i,r,h*=h,0),n.push(i,r),this}closePath(){return this.endPoly(!0),this}addPath(t,e){this.endPoly(),e&&!e.isIdentity()&&(t=t.clone(!0)).transform(e);for(let e=0;e<t.instructions.length;e++){let i=t.instructions[e];this[i.action](...i.data)}return this}finish(t=!1){this.endPoly(t)}rect(t,e,i,r,s){return this.drawShape(new f.A(t,e,i,r),s),this}circle(t,e,i,r){return this.drawShape(new p(t,e,i),r),this}poly(t,e,i){let r=new g(t);return r.closePath=e,this.drawShape(r,i),this}regularPoly(t,e,i,r,s=0,n){let a=-1*Math.PI/2+s,o=2*Math.PI/(r=Math.max(0|r,3)),h=[];for(let s=0;s<r;s++){let r=s*o+a;h.push(t+i*Math.cos(r),e+i*Math.sin(r))}return this.poly(h,!0,n),this}roundPoly(t,e,i,r,s,n=0,a){if(r=Math.max(0|r,3),s<=0)return this.regularPoly(t,e,i,r,n);s=Math.min(s,i*Math.sin(Math.PI/r)-.001);let o=-1*Math.PI/2+n,h=2*Math.PI/r,l=(r-2)*Math.PI/r/2;for(let n=0;n<r;n++){let r=n*h+o,u=t+i*Math.cos(r),d=e+i*Math.sin(r),c=r+Math.PI+l,f=r-Math.PI-l,p=u+s*Math.cos(c),m=d+s*Math.sin(c),g=u+s*Math.cos(f),y=d+s*Math.sin(f);0===n?this.moveTo(p,m):this.lineTo(p,m),this.quadraticCurveTo(u,d,g,y,a)}return this.closePath()}roundShape(t,e,i=!1,r){return t.length<3?this:(i?function(t,e,i,r){let s=(t,e)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),n=(t,e,i)=>({x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}),a=e.length;for(let o=0;o<a;o++){let h,l;let u=e[(o+1)%a],d=u.radius??i;if(d<=0){0===o?t.moveTo(u.x,u.y):t.lineTo(u.x,u.y);continue}let c=e[o],f=e[(o+2)%a],p=s(c,u);h=p<1e-4?u:n(u,c,Math.min(p/2,d)/p);let m=s(f,u);l=m<1e-4?u:n(u,f,Math.min(m/2,d)/m),0===o?t.moveTo(h.x,h.y):t.lineTo(h.x,h.y),t.quadraticCurveTo(u.x,u.y,l.x,l.y,r)}}(this,t,e,r):function(t,e,i){let r=(t,e)=>{let i=e.x-t.x,r=e.y-t.y,s=Math.sqrt(i*i+r*r);return{len:s,nx:i/s,ny:r/s}},s=(e,i)=>{0===e?t.moveTo(i.x,i.y):t.lineTo(i.x,i.y)},n=e[e.length-1];for(let a=0;a<e.length;a++){let o;let h=e[a%e.length],l=h.radius??i;if(l<=0){s(a,h),n=h;continue}let u=e[(a+1)%e.length],d=r(h,n),c=r(h,u);if(d.len<1e-4||c.len<1e-4){s(a,h),n=h;continue}let f=Math.asin(d.nx*c.ny-d.ny*c.nx),p=1,m=!1;d.nx*c.nx- -(d.ny*c.ny)<0?f<0?f=Math.PI+f:(f=Math.PI-f,p=-1,m=!0):f>0&&(p=-1,m=!0);let g=f/2,y=Math.abs(Math.cos(g)*l/Math.sin(g));o=y>Math.min(d.len/2,c.len/2)?Math.abs((y=Math.min(d.len/2,c.len/2))*Math.sin(g)/Math.cos(g)):l;let x=h.x+c.nx*y+-c.ny*o*p,_=h.y+c.ny*y+c.nx*o*p,v=Math.atan2(d.ny,d.nx)+Math.PI/2*p,b=Math.atan2(c.ny,c.nx)-Math.PI/2*p;
2250===a&&t.moveTo(x+Math.cos(v)*o,_+Math.sin(v)*o),t.arc(x,_,o,v,b,m),n=h}}(this,t,e),this.closePath())}filletRect(t,e,i,r,s){if(0===s)return this.rect(t,e,i,r);let n=Math.min(i,r)/2,a=Math.min(n,Math.max(-n,s)),o=t+i,h=e+r,l=a<0?-a:0,u=Math.abs(a);return this.moveTo(t,e+u).arcTo(t+l,e+l,t+u,e,u).lineTo(o-u,e).arcTo(o-l,e+l,o,e+u,u).lineTo(o,h-u).arcTo(o-l,h-l,t+i-u,h,u).lineTo(t+u,h).arcTo(t+l,h-l,t,h-u,u).closePath()}chamferRect(t,e,i,r,s,n){if(s<=0)return this.rect(t,e,i,r);let a=Math.min(s,Math.min(i,r)/2),o=t+i,h=e+r,l=[t+a,e,o-a,e,o,e+a,o,h-a,o-a,h,t+a,h,t,h-a,t,e+a];for(let t=l.length-1;t>=2;t-=2)l[t]===l[t-2]&&l[t-1]===l[t-3]&&l.splice(t-1,2);return this.poly(l,!0,n)}ellipse(t,e,i,r,s){return this.drawShape(new m(t,e,i,r),s),this}roundRect(t,e,i,r,s,n){return this.drawShape(new x(t,e,i,r,s),n),this}drawShape(t,e){return this.endPoly(),this.shapePrimitives.push({shape:t,transform:e}),this}startPoly(t,e){let i=this._currentPoly;return i&&this.endPoly(),(i=new g).points.push(t,e),this._currentPoly=i,this}endPoly(t=!1){let e=this._currentPoly;return e&&e.points.length>2&&(e.closePath=t,this.shapePrimitives.push({shape:e})),this._currentPoly=null,this}_ensurePoly(t=!0){if(!this._currentPoly&&(this._currentPoly=new g,t)){let t=this.shapePrimitives[this.shapePrimitives.length-1];if(t){let e=t.shape.x,i=t.shape.y;if(t.transform&&!t.transform.isIdentity()){let r=t.transform,s=e;e=r.a*e+r.c*i+r.tx,i=r.b*s+r.d*i+r.ty}this._currentPoly.points.push(e,i)}else this._currentPoly.points.push(0,0)}}buildPath(){let t=this._graphicsPath2D;this.shapePrimitives.length=0,this._currentPoly=null;for(let e=0;e<t.instructions.length;e++){let i=t.instructions[e];this[i.action](...i.data)}this.finish()}get bounds(){let t=this._bounds;t.clear();let e=this.shapePrimitives;for(let i=0;i<e.length;i++){let r=e[i],s=r.shape.getBounds(P);r.transform?t.addRect(s,r.transform):t.addRect(s)}return t}}class k{constructor(t){this.instructions=[],this.uid=(0,h.h)("graphicsPath"),this._dirty=!0,"string"==typeof t?function(t,e){let i=c(t),r=[],s=null,n=0,a=0;for(let t=0;t<i.length;t++){let o=i[t],h=o[0];switch(h){case"M":n=o[1],a=o[2],e.moveTo(n,a);break;case"m":n+=o[1],a+=o[2],e.moveTo(n,a);break;case"H":n=o[1],e.lineTo(n,a);break;case"h":n+=o[1],e.lineTo(n,a);break;case"V":a=o[1],e.lineTo(n,a);break;case"v":a+=o[1],e.lineTo(n,a);break;case"L":n=o[1],a=o[2],e.lineTo(n,a);break;case"l":n+=o[1],a+=o[2],e.lineTo(n,a);break;case"C":n=o[5],a=o[6],e.bezierCurveTo(o[1],o[2],o[3],o[4],n,a);break;case"c":e.bezierCurveTo(n+o[1],a+o[2],n+o[3],a+o[4],n+o[5],a+o[6]),n+=o[5],a+=o[6];break;case"S":n=o[3],a=o[4],e.bezierCurveToShort(o[1],o[2],n,a);break;case"s":e.bezierCurveToShort(n+o[1],a+o[2],n+o[3],a+o[4]),n+=o[3],a+=o[4];break;case"Q":n=o[3],a=o[4],e.quadraticCurveTo(o[1],o[2],n,a);break;case"q":e.quadraticCurveTo(n+o[1],a+o[2],n+o[3],a+o[4]),n+=o[3],a+=o[4];break;case"T":n=o[1],a=o[2],e.quadraticCurveToShort(n,a);break;case"t":n+=o[1],a+=o[2],e.quadraticCurveToShort(n,a);break;case"A":n=o[6],a=o[7],e.arcToSvg(o[1],o[2],o[3],o[4],o[5],n,a);break;case"a":n+=o[6],a+=o[7],e.arcToSvg(o[1],o[2],o[3],o[4],o[5],n,a);break;case"Z":case"z":e.closePath(),r.length>0&&((s=r.pop())?(n=s.startX,a=s.startY):(n=0,a=0)),s=null;break;default:(0,d.Z)(`Unknown SVG path command: ${h}`)}"Z"!==h&&"z"!==h&&null===s&&(s={startX:n,startY:a},r.push(s))}return e}(t,this):this.instructions=t?.slice()??[]}get shapePath(){return this._shapePath||(this._shapePath=new T(this)),this._dirty&&(this._dirty=!1,this._shapePath.buildPath()),this._shapePath}addPath(t,e){return t=t.clone(),this.instructions.push({action:"addPath",data:[t,e]}),this._dirty=!0,this}arc(...t){return this.instructions.push({action:"arc",data:t}),this._dirty=!0,this}arcTo(...t){return this.instructions.push({action:"arcTo",data:t}),this._dirty=!0,this}arcToSvg(...t){return this.instructions.push({action:"arcToSvg",data:t}),this._dirty=!0,this}bezierCurveTo(...t){return this.instructions.push({action:"bezierCurveTo",data:t}),this._dirty=!0,this}bezierCurveToShort(t,e,i,r,s){let n=this.instructions[this.instructions.length-1],o=this.getLastPoint(a.E.shared),h=0,l=0;if(n&&"bezierCurveTo"===n.action){h=n.data[2],l=n.data[3];
225let t=o.x,e=o.y;h=t+(t-h),l=e+(e-l)}else h=o.x,l=o.y;return this.instructions.push({action:"bezierCurveTo",data:[h,l,t,e,i,r,s]}),this._dirty=!0,this}closePath(){return this.instructions.push({action:"closePath",data:[]}),this._dirty=!0,this}ellipse(...t){return this.instructions.push({action:"ellipse",data:t}),this._dirty=!0,this}lineTo(...t){return this.instructions.push({action:"lineTo",data:t}),this._dirty=!0,this}moveTo(...t){return this.instructions.push({action:"moveTo",data:t}),this}quadraticCurveTo(...t){return this.instructions.push({action:"quadraticCurveTo",data:t}),this._dirty=!0,this}quadraticCurveToShort(t,e,i){let r=this.instructions[this.instructions.length-1],s=this.getLastPoint(a.E.shared),n=0,o=0;if(r&&"quadraticCurveTo"===r.action){n=r.data[0],o=r.data[1];let t=s.x,e=s.y;n=t+(t-n),o=e+(e-o)}else n=s.x,o=s.y;return this.instructions.push({action:"quadraticCurveTo",data:[n,o,t,e,i]}),this._dirty=!0,this}rect(t,e,i,r,s){return this.instructions.push({action:"rect",data:[t,e,i,r,s]}),this._dirty=!0,this}circle(t,e,i,r){return this.instructions.push({action:"circle",data:[t,e,i,r]}),this._dirty=!0,this}roundRect(...t){return this.instructions.push({action:"roundRect",data:t}),this._dirty=!0,this}poly(...t){return this.instructions.push({action:"poly",data:t}),this._dirty=!0,this}regularPoly(...t){return this.instructions.push({action:"regularPoly",data:t}),this._dirty=!0,this}roundPoly(...t){return this.instructions.push({action:"roundPoly",data:t}),this._dirty=!0,this}roundShape(...t){return this.instructions.push({action:"roundShape",data:t}),this._dirty=!0,this}filletRect(...t){return this.instructions.push({action:"filletRect",data:t}),this._dirty=!0,this}chamferRect(...t){return this.instructions.push({action:"chamferRect",data:t}),this._dirty=!0,this}star(t,e,i,r,s,n,a){s=s||r/2;let o=-1*Math.PI/2+n,h=2*i,l=2*Math.PI/h,u=[];for(let i=0;i<h;i++){let n=i%2?s:r,a=i*l+o;u.push(t+n*Math.cos(a),e+n*Math.sin(a))}return this.poly(u,!0,a),this}clone(t=!1){let e=new k;if(t)for(let t=0;t<this.instructions.length;t++){let i=this.instructions[t];e.instructions.push({action:i.action,data:i.data.slice()})}else e.instructions=this.instructions.slice();return e}clear(){return this.instructions.length=0,this._dirty=!0,this}transform(t){if(t.isIdentity())return this;let e=t.a,i=t.b,r=t.c,s=t.d,n=t.tx,a=t.ty,o=0,h=0,l=0,u=0,c=0,f=0,p=0,m=0;for(let g=0;g<this.instructions.length;g++){let y=this.instructions[g],x=y.data;switch(y.action){case"moveTo":case"lineTo":o=x[0],h=x[1],x[0]=e*o+r*h+n,x[1]=i*o+s*h+a;break;case"bezierCurveTo":l=x[0],u=x[1],c=x[2],f=x[3],o=x[4],h=x[5],x[0]=e*l+r*u+n,x[1]=i*l+s*u+a,x[2]=e*c+r*f+n,x[3]=i*c+s*f+a,x[4]=e*o+r*h+n,x[5]=i*o+s*h+a;break;case"quadraticCurveTo":l=x[0],u=x[1],o=x[2],h=x[3],x[0]=e*l+r*u+n,x[1]=i*l+s*u+a,x[2]=e*o+r*h+n,x[3]=i*o+s*h+a;break;case"arcToSvg":o=x[5],h=x[6],p=x[0],m=x[1],x[0]=e*p+r*m,x[1]=i*p+s*m,x[5]=e*o+r*h+n,x[6]=i*o+s*h+a;break;case"circle":x[4]=E(x[3],t);break;case"rect":x[4]=E(x[4],t);break;case"ellipse":x[8]=E(x[8],t);break;case"roundRect":x[5]=E(x[5],t);break;case"addPath":x[0].transform(t);break;case"poly":x[2]=E(x[2],t);break;default:(0,d.Z)("unknown transform action",y.action)}}return this._dirty=!0,this}get bounds(){return this.shapePath.bounds}getLastPoint(t){let e=this.instructions.length-1,i=this.instructions[e];if(!i)return t.x=0,t.y=0,t;for(;"closePath"===i.action;){if(--e<0)return t.x=0,t.y=0,t;i=this.instructions[e]}switch(i.action){case"moveTo":case"lineTo":t.x=i.data[0],t.y=i.data[1];break;case"quadraticCurveTo":t.x=i.data[2],t.y=i.data[3];break;case"bezierCurveTo":t.x=i.data[4],t.y=i.data[5];break;case"arc":case"arcToSvg":t.x=i.data[5],t.y=i.data[6];break;case"addPath":i.data[0].getLastPoint(t)}return t}}function E(t,e){return t?t.prepend(e):e.clone()}function I(t,e,i){let r=t.getAttribute(e);return r?Number(r):i}var B=i(6695);let R=new a.E,F=new n.y,O=class t extends r.Z{constructor(){super(...arguments),this.uid=(0,h.h)("graphicsContext"),this.dirty=!0,this.batchMode="auto",this.instructions=[],this._activePath=new k,this._transform=new n.y,this._fillStyle={...t.defaultFillStyle},this._strokeStyle={...t.defaultStrokeStyle},this._stateStack=[],this._tick=0,this._bounds=new u.Y,this._boundsDirty=!0}clone(){let e=new t;return e.batchMode=this.batchMode,e.instructions=this.instructions.slice(),e._activePath=this._activePath.clone(),e._transform=this._transform.clone(),e._fillStyle={...this._fillStyle},e._strokeStyle={...this._strokeStyle},e._stateStack=this._stateStack.slice(),e._bounds=this._bounds.clone(),e._boundsDirty=!0,e}get fillStyle(){return this._fillStyle}set fillStyle(e){this._fillStyle=(0,B.f)(e,t.defaultFillStyle)}get strokeStyle(){return this._strokeStyle}set strokeStyle(e){this._strokeStyle=(0,B.m)(e,t.defaultStrokeStyle)}
225setFillStyle(e){return this._fillStyle=(0,B.f)(e,t.defaultFillStyle),this}setStrokeStyle(e){return this._strokeStyle=(0,B.f)(e,t.defaultStrokeStyle),this}texture(t,e,i,r,n,a){return this.instructions.push({action:"texture",data:{image:t,dx:i||0,dy:r||0,dw:n||t.frame.width,dh:a||t.frame.height,transform:this._transform.clone(),alpha:this._fillStyle.alpha,style:e?s.I.shared.setValue(e).toNumber():16777215}}),this.onUpdate(),this}beginPath(){return this._activePath=new k,this}fill(e,i){let r;let s=this.instructions[this.instructions.length-1];return(r=0===this._tick&&s&&"stroke"===s.action?s.data.path:this._activePath.clone())&&(null!=e&&(void 0!==i&&"number"==typeof e&&((0,l.a1)(l.PD,"GraphicsContext.fill(color, alpha) is deprecated, use GraphicsContext.fill({ color, alpha }) instead"),e={color:e,alpha:i}),this._fillStyle=(0,B.f)(e,t.defaultFillStyle)),this.instructions.push({action:"fill",data:{style:this.fillStyle,path:r}}),this.onUpdate(),this._initNextPathLocation(),this._tick=0),this}_initNextPathLocation(){let{x:t,y:e}=this._activePath.getLastPoint(a.E.shared);this._activePath.clear(),this._activePath.moveTo(t,e)}stroke(e){let i;let r=this.instructions[this.instructions.length-1];return(i=0===this._tick&&r&&"fill"===r.action?r.data.path:this._activePath.clone())&&(null!=e&&(this._strokeStyle=(0,B.m)(e,t.defaultStrokeStyle)),this.instructions.push({action:"stroke",data:{style:this.strokeStyle,path:i}}),this.onUpdate(),this._initNextPathLocation(),this._tick=0),this}cut(){for(let t=0;t<2;t++){let e=this.instructions[this.instructions.length-1-t],i=this._activePath.clone();if(e&&("stroke"===e.action||"fill"===e.action)){if(e.data.hole)e.data.hole.addPath(i);else{e.data.hole=i;break}}}return this._initNextPathLocation(),this}arc(t,e,i,r,s,n){this._tick++;let a=this._transform;return this._activePath.arc(a.a*t+a.c*e+a.tx,a.b*t+a.d*e+a.ty,i,r,s,n),this}arcTo(t,e,i,r,s){this._tick++;let n=this._transform;return this._activePath.arcTo(n.a*t+n.c*e+n.tx,n.b*t+n.d*e+n.ty,n.a*i+n.c*r+n.tx,n.b*i+n.d*r+n.ty,s),this}arcToSvg(t,e,i,r,s,n,a){this._tick++;let o=this._transform;return this._activePath.arcToSvg(t,e,i,r,s,o.a*n+o.c*a+o.tx,o.b*n+o.d*a+o.ty),this}bezierCurveTo(t,e,i,r,s,n,a){this._tick++;let o=this._transform;return this._activePath.bezierCurveTo(o.a*t+o.c*e+o.tx,o.b*t+o.d*e+o.ty,o.a*i+o.c*r+o.tx,o.b*i+o.d*r+o.ty,o.a*s+o.c*n+o.tx,o.b*s+o.d*n+o.ty,a),this}closePath(){return this._tick++,this._activePath?.closePath(),this}ellipse(t,e,i,r){return this._tick++,this._activePath.ellipse(t,e,i,r,this._transform.clone()),this}circle(t,e,i){return this._tick++,this._activePath.circle(t,e,i,this._transform.clone()),this}path(t){return this._tick++,this._activePath.addPath(t,this._transform.clone()),this}lineTo(t,e){this._tick++;let i=this._transform;return this._activePath.lineTo(i.a*t+i.c*e+i.tx,i.b*t+i.d*e+i.ty),this}moveTo(t,e){this._tick++;let i=this._transform,r=this._activePath.instructions,s=i.a*t+i.c*e+i.tx,n=i.b*t+i.d*e+i.ty;return 1===r.length&&"moveTo"===r[0].action?(r[0].data[0]=s,r[0].data[1]=n):this._activePath.moveTo(s,n),this}quadraticCurveTo(t,e,i,r,s){this._tick++;let n=this._transform;return this._activePath.quadraticCurveTo(n.a*t+n.c*e+n.tx,n.b*t+n.d*e+n.ty,n.a*i+n.c*r+n.tx,n.b*i+n.d*r+n.ty,s),this}rect(t,e,i,r){return this._tick++,this._activePath.rect(t,e,i,r,this._transform.clone()),this}roundRect(t,e,i,r,s){return this._tick++,this._activePath.roundRect(t,e,i,r,s,this._transform.clone()),this}poly(t,e){return this._tick++,this._activePath.poly(t,e,this._transform.clone()),this}regularPoly(t,e,i,r,s=0,n){return this._tick++,this._activePath.regularPoly(t,e,i,r,s,n),this}roundPoly(t,e,i,r,s,n){return this._tick++,this._activePath.roundPoly(t,e,i,r,s,n),this}roundShape(t,e,i,r){return this._tick++,this._activePath.roundShape(t,e,i,r),this}filletRect(t,e,i,r,s){return this._tick++,this._activePath.filletRect(t,e,i,r,s),this}chamferRect(t,e,i,r,s,n){return this._tick++,this._activePath.chamferRect(t,e,i,r,s,n),this}star(t,e,i,r,s=0,n=0){return this._tick++,this._activePath.star(t,e,i,r,s,n,this._transform.clone()),this}svg(t){return this._tick++,!function(t,e){if("string"==typeof t){let e=document.createElement("div");e.innerHTML=t.trim(),t=e.querySelector("svg")}(function t(e,i,r,n){let a,o,h,l,u,d,c,f,p,m,g,y,x,_,v;let b=e.children,{fillStyle:w,strokeStyle:A}=function(t){let e=t.getAttribute("style"),i={},r={},n=!1,a=!1;if(e){let t=e.split(";");for(let e=0;e<t.length;e++){let[o,h]=t[e].split(":");
225switch(o){case"stroke":"none"!==h&&(i.color=s.I.shared.setValue(h).toNumber(),a=!0);break;case"stroke-width":i.width=Number(h);break;case"fill":"none"!==h&&(n=!0,r.color=s.I.shared.setValue(h).toNumber());break;case"fill-opacity":r.alpha=Number(h);break;case"stroke-opacity":i.alpha=Number(h);break;case"opacity":r.alpha=Number(h),i.alpha=Number(h)}}}else{let e=t.getAttribute("stroke");e&&"none"!==e&&(a=!0,i.color=s.I.shared.setValue(e).toNumber(),i.width=I(t,"stroke-width",1));let o=t.getAttribute("fill");o&&"none"!==o&&(n=!0,r.color=s.I.shared.setValue(o).toNumber())}return{strokeStyle:a?i:null,fillStyle:n?r:null}}(e);switch(w&&r?r={...r,...w}:w&&(r=w),A&&n?n={...n,...A}:A&&(n=A),i.context.fillStyle=r,i.context.strokeStyle=n,e.nodeName.toLowerCase()){case"path":x=new k(e.getAttribute("d")),i.context.path(x),r&&i.context.fill(),n&&i.context.stroke();break;case"circle":c=I(e,"cx",0),f=I(e,"cy",0),p=I(e,"r",0),i.context.ellipse(c,f,p,p),r&&i.context.fill(),n&&i.context.stroke();break;case"rect":a=I(e,"x",0),o=I(e,"y",0),_=I(e,"width",0),v=I(e,"height",0),m=I(e,"rx",0),g=I(e,"ry",0),m||g?i.context.roundRect(a,o,_,v,m||g):i.context.rect(a,o,_,v),r&&i.context.fill(),n&&i.context.stroke();break;case"ellipse":c=I(e,"cx",0),f=I(e,"cy",0),m=I(e,"rx",0),g=I(e,"ry",0),i.context.beginPath(),i.context.ellipse(c,f,m,g),r&&i.context.fill(),n&&i.context.stroke();break;case"line":h=I(e,"x1",0),l=I(e,"y1",0),u=I(e,"x2",0),d=I(e,"y2",0),i.context.beginPath(),i.context.moveTo(h,l),i.context.lineTo(u,d),n&&i.context.stroke();break;case"polygon":y=e.getAttribute("points").match(/\d+/g).map(t=>parseInt(t,10)),i.context.poly(y,!0),r&&i.context.fill(),n&&i.context.stroke();break;case"polyline":y=e.getAttribute("points").match(/\d+/g).map(t=>parseInt(t,10)),i.context.poly(y,!1),n&&i.context.stroke();break;case"g":case"svg":break;default:console.info(`[SVG parser] <${e.nodeName}> elements unsupported`)}for(let e=0;e<b.length;e++)t(b[e],i,r,n)})(t,{context:e,path:new k},null,null)}(t,this),this}restore(){let t=this._stateStack.pop();return t&&(this._transform=t.transform,this._fillStyle=t.fillStyle,this._strokeStyle=t.strokeStyle),this}save(){return this._stateStack.push({transform:this._transform.clone(),fillStyle:{...this._fillStyle},strokeStyle:{...this._strokeStyle}}),this}getTransform(){return this._transform}resetTransform(){return this._transform.identity(),this}rotate(t){return this._transform.rotate(t),this}scale(t,e=t){return this._transform.scale(t,e),this}setTransform(t,e,i,r,s,a){return t instanceof n.y?this._transform.set(t.a,t.b,t.c,t.d,t.tx,t.ty):this._transform.set(t,e,i,r,s,a),this}transform(t,e,i,r,s,a){return t instanceof n.y?this._transform.append(t):(F.set(t,e,i,r,s,a),this._transform.append(F)),this}translate(t,e=t){return this._transform.translate(t,e),this}clear(){return this._activePath.clear(),this.instructions.length=0,this.resetTransform(),this.onUpdate(),this}onUpdate(){this.dirty||(this.emit("update",this,16),this.dirty=!0,this._boundsDirty=!0)}get bounds(){if(!this._boundsDirty)return this._bounds;let t=this._bounds;t.clear();for(let e=0;e<this.instructions.length;e++){let i=this.instructions[e],r=i.action;if("fill"===r){let e=i.data;t.addBounds(e.path.bounds)}else if("texture"===r){let e=i.data;t.addFrame(e.dx,e.dy,e.dx+e.dw,e.dy+e.dh,e.transform)}if("stroke"===r){let e=i.data,r=e.style.width/2,s=e.path.bounds;t.addFrame(s.minX-r,s.minY-r,s.maxX+r,s.maxY+r)}}return t}containsPoint(t){if(!this.bounds.containsPoint(t.x,t.y))return!1;let e=this.instructions,i=!1;for(let r=0;r<e.length;r++){let s=e[r],n=s.data,a=n.path;if(!s.action||!a)continue;let o=n.style,h=a.shapePath.shapePrimitives;for(let e=0;e<h.length;e++){let r=h[e].shape;if(!o||!r)continue;let a=h[e].transform,l=a?a.applyInverse(t,R):t;i="fill"===s.action?r.contains(l.x,l.y):r.strokeContains(l.x,l.y,o.width);let u=n.hole;if(u){let t=u.shapePath?.shapePrimitives;if(t)for(let e=0;e<t.length;e++)t[e].shape.contains(l.x,l.y)&&(i=!1)}if(i)return!0}}return i}destroy(t=!1){if(this._stateStack.length=0,this._transform=null,this.emit("destroy",this),this.removeAllListeners(),"boolean"==typeof t?t:t?.texture){let e="boolean"==typeof t?t:t?.textureSource;this._fillStyle.texture&&this._fillStyle.texture.destroy(e),this._strokeStyle.texture&&this._strokeStyle.texture.destroy(e)}this._fillStyle=null,this._strokeStyle=null,this.instructions=null,this._activePath=null,this._bounds=null,this._stateStack=null,this.customShader=null,this._transform=null}};
225O.defaultFillStyle={color:16777215,alpha:1,texture:o.x.WHITE,matrix:null,fill:null},O.defaultStrokeStyle={width:1,color:16777215,alpha:1,alignment:.5,miterLimit:10,cap:"butt",join:"miter",texture:o.x.WHITE,matrix:null,fill:null};let L=O},5752:function(t,e,i){"use strict";i.d(e,{hJ:function(){return I}});var r=i(7),s=i(4375),n=i(5855),a=i(4516),o=i(5122),h=i(7852),l=i(9619);function u(t,e,i,r,s){let n=e.a,a=e.b,o=e.c,h=e.d,l=e.tx,u=e.ty;i=i||0,r=r||2,s=s||t.length/r-i;let d=i*r;for(let e=0;e<s;e++){let e=t[d],i=t[d+1];t[d]=n*e+o*i+l,t[d+1]=a*e+h*i+u,d+=r}}var d=i(8583),c=i(2279);let f={extension:{type:r.nw.ShapeBuilder,name:"circle"},build(t,e){let i,r,s,n,a,o;if("circle"===t.type)i=t.x,r=t.y,a=o=t.radius,s=n=0;else if("ellipse"===t.type)i=t.x,r=t.y,a=t.halfWidth,o=t.halfHeight,s=n=0;else{let e=t.width/2,h=t.height/2;i=t.x+e,r=t.y+h,a=o=Math.max(0,Math.min(t.radius,Math.min(e,h))),s=e-a,n=h-o}if(!(a>=0&&o>=0&&s>=0&&n>=0))return e;let h=Math.ceil(2.3*Math.sqrt(a+o)),l=8*h+(s?4:0)+(n?4:0);if(0===l)return e;if(0===h)return e[0]=e[6]=i+s,e[1]=e[3]=r+n,e[2]=e[4]=i-s,e[5]=e[7]=r-n,e;let u=0,d=4*h+(s?2:0)+2,c=d,f=l,p=s+a,m=n,g=i+p,y=i-p,x=r+m;if(e[u++]=g,e[u++]=x,e[--d]=x,e[--d]=y,n){let t=r-m;e[c++]=y,e[c++]=t,e[--f]=t,e[--f]=g}for(let t=1;t<h;t++){let l=Math.PI/2*(t/h),p=s+Math.cos(l)*a,m=n+Math.sin(l)*o,g=i+p,y=i-p,x=r+m,_=r-m;e[u++]=g,e[u++]=x,e[--d]=x,e[--d]=y,e[c++]=y,e[c++]=_,e[--f]=_,e[--f]=g}p=s,m=n+o,g=i+p,y=i-p,x=r+m;let _=r-m;return e[u++]=g,e[u++]=x,e[--f]=_,e[--f]=g,s&&(e[u++]=y,e[u++]=x,e[--f]=_,e[--f]=y),e},triangulate(t,e,i,r,s,n){if(0===t.length)return;let a=0,o=0;for(let e=0;e<t.length;e+=2)a+=t[e],o+=t[e+1];a/=t.length/2,o/=t.length/2;let h=r;e[h*i]=a,e[h*i+1]=o;let l=h++;for(let r=0;r<t.length;r+=2)e[h*i]=t[r],e[h*i+1]=t[r+1],r>0&&(s[n++]=h,s[n++]=l,s[n++]=h-1),h++;s[n++]=l+1,s[n++]=l,s[n++]=h-1}},p={...f,extension:{...f.extension,name:"ellipse"}},m={...f,extension:{...f.extension,name:"roundedRectangle"}};var g=i(6250);function y(t,e,i,r,s,n,a,o){let h,l;a?(h=r,l=-i):(h=-r,l=i);let u=t-i*s+h,d=e-r*s+l,c=t+i*n+h,f=e+r*n+l;return o.push(u,d),o.push(c,f),2}function x(t,e,i,r,s,n,a,o){let h=i-t,l=r-e,u=Math.atan2(h,l),d=Math.atan2(s-t,n-e);o&&u<d?u+=2*Math.PI:!o&&u>d&&(d+=2*Math.PI);let c=u,f=d-u,p=Math.sqrt(h*h+l*l),m=(15*Math.abs(f)*Math.sqrt(p)/Math.PI>>0)+1,g=f/m;if(c+=g,o){a.push(t,e),a.push(i,r);for(let i=1,r=c;i<m;i++,r+=g)a.push(t,e),a.push(t+Math.sin(r)*p,e+Math.cos(r)*p);a.push(t,e),a.push(s,n)}else{a.push(i,r),a.push(t,e);for(let i=1,r=c;i<m;i++,r+=g)a.push(t+Math.sin(r)*p,e+Math.cos(r)*p),a.push(t,e);a.push(s,n),a.push(t,e)}return 2*m}var _=i(5464);function v(t,e,i,r,s,n,a){let o=_(t,e,2);if(!o)return;for(let t=0;t<o.length;t+=3)n[a++]=o[t]+s,n[a++]=o[t+1]+s,n[a++]=o[t+2]+s;let h=s*r;for(let e=0;e<t.length;e+=2)i[h]=t[e],i[h+1]=t[e+1],h+=r}let b=[],w={extension:{type:r.nw.ShapeBuilder,name:"polygon"},build(t,e){for(let i=0;i<t.points.length;i++)e[i]=t.points[i];return e},triangulate(t,e,i,r,s,n){v(t,b,e,i,r,s,n)}},A={extension:{type:r.nw.ShapeBuilder,name:"rectangle"},build(t,e){let i=t.x,r=t.y,s=t.width,n=t.height;return s>=0&&n>=0&&(e[0]=i,e[1]=r,e[2]=i+s,e[3]=r,e[4]=i+s,e[5]=r+n,e[6]=i,e[7]=r+n),e},triangulate(t,e,i,r,s,n){let a=0;e[(r*=i)+a]=t[0],e[r+a+1]=t[1],a+=i,e[r+a]=t[2],e[r+a+1]=t[3],a+=i,e[r+a]=t[6],e[r+a+1]=t[7],a+=i,e[r+a]=t[4],e[r+a+1]=t[5],a+=i;let o=r/i;s[n++]=o,s[n++]=o+1,s[n++]=o+2,s[n++]=o+1,s[n++]=o+3,s[n++]=o+2}},S={extension:{type:r.nw.ShapeBuilder,name:"triangle"},build:(t,e)=>(e[0]=t.x,e[1]=t.y,e[2]=t.x2,e[3]=t.y2,e[4]=t.x3,e[5]=t.y3,e),triangulate(t,e,i,r,s,n){let a=0;e[(r*=i)+a]=t[0],e[r+a+1]=t[1],a+=i,e[r+a]=t[2],e[r+a+1]=t[3],a+=i,e[r+a]=t[4],e[r+a+1]=t[5];let o=r/i;s[n++]=o,s[n++]=o+1,s[n++]=o+2}},C={};r.Rw.handleByMap(r.nw.ShapeBuilder,C),r.Rw.add(A,w,S,f,p,m);let M=new l.A;function P(t,e,i,r,s,n){let{vertices:a,uvs:o,indices:l}=n,f=t.shapePrimitives.length-1;t.shapePrimitives.forEach(({shape:t,transform:p},m)=>{let _=l.length,b=a.length/2,w=[],A=C[t.type];if(A.build(t,w),p&&u(w,p),r)!function(t,e,i,r,s,n,a,o,h){if(0===t.length)return;let l=e.alignment;if(.5!==e.alignment){let e=function(t){let e=t.length;if(e<6)return 1;let i=0;for(let r=0,s=t[e-2],n=t[e-1];r<e;r+=2){let e=t[r],a=t[r+1];i+=(e-s)*(a+n),s=e,n=a}return i<0?-1:1}(t);i&&(e*=-1),l=(l-.5)*e+.5}let u=new g.E(t[0],t[1]),d=new g.E(t[t.length-2],t[t.length-1]),c=1e-4>Math.abs(u.x-d.x)&&1e-4>Math.abs(u.y-d.y);if(r){t=t.slice(),c&&(t.pop(),t.pop(),d.set(t[t.length-2],t[t.length-1]));let e=(u.x+d.x)*.5,i=(d.y+u.y)*.5;t.unshift(e,i),t.push(e,i)}let f=t.length/2,p=t.length,m=s.length/2,_=e.width/2,v=_*_,b=e.miterLimit*e.miter
225Limit,w=t[0],A=t[1],S=t[2],C=t[3],M=0,P=0,T=-(A-C),k=w-S,E=0,I=0,B=Math.sqrt(T*T+k*k);T/=B,k/=B,T*=_,k*=_;let R=l,F=(1-R)*2,O=2*R;r||("round"===e.cap?p+=x(w-T*(F-O)*.5,A-k*(F-O)*.5,w-T*F,A-k*F,w+T*O,A+k*O,s,!0)+2:"square"===e.cap&&(p+=y(w,A,T,k,F,O,!0,s))),s.push(w-T*F,A-k*F),s.push(w+T*O,A+k*O);for(let i=1;i<f-1;++i){w=t[(i-1)*2],A=t[(i-1)*2+1],S=t[2*i],C=t[2*i+1],M=t[(i+1)*2],P=t[(i+1)*2+1],B=Math.sqrt((T=-(A-C))*T+(k=w-S)*k),T/=B,k/=B,T*=_,k*=_,B=Math.sqrt((E=-(C-P))*E+(I=S-M)*I),E/=B,I/=B,E*=_,I*=_;let r=S-w,n=A-C,a=S-M,o=P-C,h=r*a+n*o,l=n*a-o*r,u=l<0;if(Math.abs(l)<.001*Math.abs(h)){s.push(S-T*F,C-k*F),s.push(S+T*O,C+k*O),h>=0&&("round"===e.join?p+=x(S,C,S-T*F,C-k*F,S-E*F,C-I*F,s,!1)+4:p+=2,s.push(S-E*O,C-I*O),s.push(S+E*F,C+I*F));continue}let d=(-T+w)*(-k+C)-(-T+S)*(-k+A),c=(-E+M)*(-I+C)-(-E+S)*(-I+P),f=(r*c-a*d)/l,m=(o*d-n*c)/l,g=(f-S)*(f-S)+(m-C)*(m-C),y=S+(f-S)*F,R=C+(m-C)*F,L=S-(f-S)*O,z=C-(m-C)*O,D=u?F:O;g<=Math.min(r*r+n*n,a*a+o*o)+D*D*v?"bevel"===e.join||g/v>b?(u?(s.push(y,R),s.push(S+T*O,C+k*O),s.push(y,R),s.push(S+E*O,C+I*O)):(s.push(S-T*F,C-k*F),s.push(L,z),s.push(S-E*F,C-I*F),s.push(L,z)),p+=2):"round"===e.join?u?(s.push(y,R),s.push(S+T*O,C+k*O),p+=x(S,C,S+T*O,C+k*O,S+E*O,C+I*O,s,!0)+4,s.push(y,R),s.push(S+E*O,C+I*O)):(s.push(S-T*F,C-k*F),s.push(L,z),p+=x(S,C,S-T*F,C-k*F,S-E*F,C-I*F,s,!1)+4,s.push(S-E*F,C-I*F),s.push(L,z)):(s.push(y,R),s.push(L,z)):(s.push(S-T*F,C-k*F),s.push(S+T*O,C+k*O),"round"===e.join?u?p+=x(S,C,S+T*O,C+k*O,S+E*O,C+I*O,s,!0)+2:p+=x(S,C,S-T*F,C-k*F,S-E*F,C-I*F,s,!1)+2:"miter"===e.join&&g/v<=b&&(u?(s.push(L,z),s.push(L,z)):(s.push(y,R),s.push(y,R)),p+=2),s.push(S-E*F,C-I*F),s.push(S+E*O,C+I*O),p+=2)}w=t[(f-2)*2],A=t[(f-2)*2+1],S=t[(f-1)*2],B=Math.sqrt((T=-(A-(C=t[(f-1)*2+1])))*T+(k=w-S)*k),T/=B,k/=B,T*=_,k*=_,s.push(S-T*F,C-k*F),s.push(S+T*O,C+k*O),r||("round"===e.cap?p+=x(S-T*(F-O)*.5,C-k*(F-O)*.5,S-T*F,C-k*F,S+T*O,C+k*O,s,!1)+2:"square"===e.cap&&(p+=y(S,C,T,k,F,O,!1,s)));let L=1e-4*1e-4;for(let t=m;t<p+m-2;++t)w=s[2*t],A=s[2*t+1],S=s[(t+1)*2],C=s[(t+1)*2+1],M=s[(t+2)*2],Math.abs(w*(C-(P=s[(t+2)*2+1]))+S*(P-A)+M*(A-C))<L||o.push(t,t+1,t+2)}(w,e,!1,t.closePath??!0,a,0,0,l,0);else if(i&&f===m){0!==f&&console.warn("[Pixi Graphics] only the last shape have be cut out");let t=[],e=w.slice();(function(t){if(!t)return[];let e=t.shapePrimitives,i=[];for(let t=0;t<e.length;t++){let r=e[t].shape,s=[];C[r.type].build(r,s),i.push(s)}return i})(i.shapePath).forEach(i=>{t.push(e.length/2),e.push(...i)}),v(e,t,a,2,b,l,_)}else A.triangulate(w,a,2,b,l,_);let S=o.length/2,M=e.texture;if(M!==d.x.WHITE){let t=e.matrix;t&&(p&&t.append(p.clone().invert()),function(t,e,i,r,s,n,a,o=null){let h=0;i*=2,s*=2;let l=o.a,u=o.b,d=o.c,c=o.d,f=o.tx,p=o.ty;for(;h<a;){let e=t[i],n=t[i+1];r[s]=l*e+d*n+f,r[s+1]=u*e+c*n+p,s+=2,i+=2,h++}}(a,0,b,o,S,0,a.length/2-b,t))}else!function(t,e,i,r){let s=0;for(e*=2;s<r;)t[e]=0,t[e+1]=0,e+=2,s++}(o,S,0,a.length/2-b);let P=h.u.get(c.I);P.indexOffset=_,P.indexSize=l.length-_,P.attributeOffset=b,P.attributeSize=a.length/2-b,P.baseColor=e.color,P.alpha=e.alpha,P.texture=M,P.geometryData=n,s.push(P)})}class T{constructor(){this.batches=[],this.geometryData={vertices:[],uvs:[],indices:[]}}}class k{constructor(){this.batcher=new n.h,this.instructions=new a.h}init(){this.instructions.reset()}get geometry(){return(0,o.a1)(o.$q,"GraphicsContextRenderData#geometry is deprecated, please use batcher.geometry instead."),this.batcher.geometry}}let E=class t{constructor(){this._gpuContextHash={},this._graphicsDataContextHash=Object.create(null)}init(e){t.defaultOptions.bezierSmoothness=e?.bezierSmoothness??t.defaultOptions.bezierSmoothness}getContextRenderData(t){return this._graphicsDataContextHash[t.uid]||this._initContextRenderData(t)}updateGpuContext(t){let e=this._gpuContextHash[t.uid]||this._initContext(t);if(t.dirty){e?this._cleanGraphicsContextData(t):e=this._initContext(t),function(t,e){let{geometryData:i,batches:r}=e;r.length=0,i.indices.length=0,i.vertices.length=0,i.uvs.length=0;for(let e=0;e<t.instructions.length;e++){let s=t.instructions[e];if("texture"===s.action)(function(t,e,i){let{vertices:r,uvs:s,indices:n}=i,a=n.length,o=r.length/2,l=[],d=C.rectangle,f=t.image;M.x=t.dx,M.y=t.dy,M.width=t.dw,M.height=t.dh;let p=t.transform;d.build(M,l),p&&u(l,p),d.triangulate(l,r,2,o,n,a);let m=f.uvs;s.push(m.x0,m.y0,m.x1,m.y1,m.x3,m.y3,m.x2,m.y2);let g=h.u.get(c.I);g.indexOffset=a,g.indexSize=n.length-a,g.attributeOffset=o,g.attributeSize=r.length/2-o,g.baseColor=t.style,g.alpha=t.alpha,g.texture=f,g.geometryData=i,e.push(g)})(s.data,r,i);else if("fill"===s.action||"stroke"===s.action){let t="stroke"===s.action,e=s.data.path.shapePath,n=s.data.style,a=s.data.hole;t&&a&&P(a.shapePath,n,null,!0,r,i),P(e,n,a,t,r,i)}}}(t,e);let i=t.batchMode;t.customShader||"no-batch"===i?e.isBatchable=!1:"auto"===i&&(e.isBatchable=e.geometryData.vertices.length<400),t.dirty=!1}return e}getGpuContext(t){return this._gpuContextHash[t.uid]||this._initContext(t)}
225_initContextRenderData(t){let e=h.u.get(k),{batches:i,geometryData:r}=this._gpuContextHash[t.uid],n=r.vertices.length,a=r.indices.length;for(let t=0;t<i.length;t++)i[t].applyTransform=!1;let o=e.batcher;o.ensureAttributeBuffer(n),o.ensureIndexBuffer(a),o.begin();for(let t=0;t<i.length;t++){let e=i[t];o.add(e)}o.finish(e.instructions);let l=o.geometry;l.indexBuffer.setDataWithSize(o.indexBuffer,o.indexSize,!0),l.buffers[0].setDataWithSize(o.attributeBuffer.float32View,o.attributeSize,!0);let u=o.batches;for(let t=0;t<u.length;t++){let e=u[t];e.bindGroup=(0,s.Q)(e.textures.textures,e.textures.count)}return this._graphicsDataContextHash[t.uid]=e,e}_initContext(t){let e=new T;return e.context=t,this._gpuContextHash[t.uid]=e,t.on("destroy",this.onGraphicsContextDestroy,this),this._gpuContextHash[t.uid]}onGraphicsContextDestroy(t){this._cleanGraphicsContextData(t),t.off("destroy",this.onGraphicsContextDestroy,this),this._gpuContextHash[t.uid]=null}_cleanGraphicsContextData(t){let e=this._gpuContextHash[t.uid];!e.isBatchable&&this._graphicsDataContextHash[t.uid]&&(h.u.return(this.getContextRenderData(t)),this._graphicsDataContextHash[t.uid]=null),e.batches&&e.batches.forEach(t=>{h.u.return(t)})}destroy(){for(let t in this._gpuContextHash)this._gpuContextHash[t]&&this.onGraphicsContextDestroy(this._gpuContextHash[t].context)}};E.extension={type:[r.nw.WebGLSystem,r.nw.WebGPUSystem,r.nw.CanvasSystem],name:"graphicsContext"},E.defaultOptions={bezierSmoothness:.5};let I=E},2985:function(t,e,i){"use strict";i.d(e,{f:function(){return u}});var r=i(6910),s=i(1791),n=i(493),a=i(7158),o=i(8583),h=i(6656);let l=class t{constructor(t,e,i,r){this.uid=(0,h.h)("fillGradient"),this.type="linear",this.gradientStops=[],this._styleKey=null,this.x0=t,this.y0=e,this.x1=i,this.y1=r}addColorStop(t,e){return this.gradientStops.push({offset:t,color:r.I.shared.setValue(e).toHexa()}),this._styleKey=null,this}buildLinearGradient(){let e=t.defaultTextureSize,{gradientStops:i}=this,r=s.z.get().createCanvas();r.width=e,r.height=e;let h=r.getContext("2d"),l=h.createLinearGradient(0,0,t.defaultTextureSize,1);for(let t=0;t<i.length;t++){let e=i[t];l.addColorStop(e.offset,e.color)}h.fillStyle=l,h.fillRect(0,0,e,e),this.texture=new o.x({source:new a.c({resource:r,addressModeU:"clamp-to-edge",addressModeV:"repeat"})});let{x0:u,y0:d,x1:c,y1:f}=this,p=new n.y,m=c-u,g=f-d;p.translate(-u,-d),p.scale(1/e,1/e),p.rotate(-Math.atan2(g,m)),p.scale(256/Math.sqrt(m*m+g*g),1),this.transform=p,this._styleKey=null}get styleKey(){if(this._styleKey)return this._styleKey;let t=this.gradientStops.map(t=>`${t.offset}-${t.color}`).join("-"),e=this.texture.uid,i=this.transform.toArray().join("-");return`fill-gradient-${this.uid}-${t}-${e}-${i}-${this.x0}-${this.y0}-${this.x1}-${this.y1}`}};l.defaultTextureSize=256;let u=l},3848:function(t,e,i){"use strict";i.d(e,{h:function(){return a}});var r=i(493),s=i(6656);let n={repeat:{addressModeU:"repeat",addressModeV:"repeat"},"repeat-x":{addressModeU:"repeat",addressModeV:"clamp-to-edge"},"repeat-y":{addressModeU:"clamp-to-edge",addressModeV:"repeat"},"no-repeat":{addressModeU:"clamp-to-edge",addressModeV:"clamp-to-edge"}};class a{constructor(t,e){this.uid=(0,s.h)("fillPattern"),this.transform=new r.y,this._styleKey=null,this.texture=t,this.transform.scale(1/t.frame.width,1/t.frame.height),e&&(t.source.style.addressModeU=n[e].addressModeU,t.source.style.addressModeV=n[e].addressModeV)}setTransform(t){let e=this.texture;this.transform.copyFrom(t),this.transform.invert(),this.transform.scale(1/e.frame.width,1/e.frame.height),this._styleKey=null}get styleKey(){return this._styleKey||(this._styleKey=`fill-pattern-${this.uid}-${this.texture.uid}-${this.transform.toArray().join("-")}`),this._styleKey}}},6695:function(t,e,i){"use strict";i.d(e,{f:function(){return c},m:function(){return f}});var r=i(6910),s=i(493),n=i(8583),a=i(2985),o=i(3848);function h(t){return t instanceof o.h}function l(t){return t instanceof a.f}function u(t,e,i){return t.fill=e,t.color=16777215,t.texture=e.texture,t.matrix=e.transform,{...i,...t}}function d(t,e,i){return e.buildLinearGradient(),t.fill=e,t.color=16777215,t.texture=e.texture,t.matrix=e.transform,{...i,...t}}function c(t,e){if(null==t)return null;let i={};
225return r.I.isColorLike(t)?function(t,e,i){let s=r.I.shared.setValue(e??0);return t.color=s.toNumber(),t.alpha=1===s.alpha?i.alpha:s.alpha,t.texture=n.x.WHITE,{...i,...t}}(i,t,e):h(t)?u(i,t,e):l(t)?d(i,t,e):t.fill&&h(t.fill)?u(t,t.fill,e):t.fill&&l(t.fill)?d(t,t.fill,e):function(t,e){let i={...e,...t};if(i.texture){if(i.texture!==n.x.WHITE){let t=i.matrix?.invert()||new s.y;t.translate(i.texture.frame.x,i.texture.frame.y),t.scale(1/i.texture.source.width,1/i.texture.source.height),i.matrix=t}let t=i.texture.source.style;"clamp-to-edge"===t.addressMode&&(t.addressMode="repeat",t.update())}let a=r.I.shared.setValue(i.color);return i.alpha*=a.alpha,i.color=a.toNumber(),i.matrix=i.matrix?i.matrix.clone():null,i}(t,e)}function f(t,e){let{width:i,alignment:r,miterLimit:s,cap:n,join:a,...o}=e,h=c(t,o);return h?{width:i,alignment:r,miterLimit:s,cap:n,join:a,...h}:null}},7247:function(t,e,i){"use strict";i.d(e,{j:function(){return o}});var r=i(3019),s=i(8583),n=i(2659),a=i(9177);class o extends a.${constructor(t=s.x.EMPTY){t instanceof s.x&&(t={texture:t});let{texture:e=s.x.EMPTY,anchor:i,roundPixels:n,width:a,height:o,...h}=t;super({label:"Sprite",...h}),this.renderPipeId="sprite",this.batched=!0,this._didSpriteUpdate=!1,this._sourceBounds={minX:0,maxX:1,minY:0,maxY:0},this._sourceBoundsDirty=!0,this._anchor=new r.A({_onUpdate:()=>{this.onViewUpdate()}}),i?this.anchor=i:e.defaultAnchor&&(this.anchor=e.defaultAnchor),this.texture=e,this.allowChildren=!1,this.roundPixels=n??!1,void 0!==a&&(this.width=a),void 0!==o&&(this.height=o)}static from(t,e=!1){return new o(t instanceof s.x?t:s.x.from(t,e))}set texture(t){t||(t=s.x.EMPTY);let e=this._texture;e!==t&&(e&&e.dynamic&&e.off("update",this.onViewUpdate,this),t.dynamic&&t.on("update",this.onViewUpdate,this),this._texture=t,this._width&&this._setWidth(this._width,this._texture.orig.width),this._height&&this._setHeight(this._height,this._texture.orig.height),this.onViewUpdate())}get texture(){return this._texture}get bounds(){return this._boundsDirty&&(this._updateBounds(),this._boundsDirty=!1),this._bounds}get sourceBounds(){return this._sourceBoundsDirty&&(this._updateSourceBounds(),this._sourceBoundsDirty=!1),this._sourceBounds}containsPoint(t){let e=this.sourceBounds;return t.x>=e.maxX&&t.x<=e.minX&&t.y>=e.maxY&&t.y<=e.minY}addBounds(t){let e=this._texture.trim?this.sourceBounds:this.bounds;t.addFrame(e.minX,e.minY,e.maxX,e.maxY)}onViewUpdate(){if(this._didViewChangeTick++,this._didSpriteUpdate=!0,this._sourceBoundsDirty=this._boundsDirty=!0,this.didViewUpdate)return;this.didViewUpdate=!0;let t=this.renderGroup||this.parentRenderGroup;t&&t.onChildViewUpdate(this)}_updateBounds(){(0,n.w)(this._bounds,this._anchor,this._texture,0)}_updateSourceBounds(){let t=this._anchor,e=this._texture,i=this._sourceBounds,{width:r,height:s}=e.orig;i.maxX=-t._x*r,i.minX=i.maxX+r,i.maxY=-t._y*s,i.minY=i.maxY+s}destroy(t=!1){if(super.destroy(t),"boolean"==typeof t?t:t?.texture){let e="boolean"==typeof t?t:t?.textureSource;this._texture.destroy(e)}this._texture=null,this._bounds=null,this._sourceBounds=null,this._anchor=null}get anchor(){return this._anchor}set anchor(t){"number"==typeof t?this._anchor.set(t):this._anchor.copyFrom(t)}get width(){return Math.abs(this.scale.x)*this._texture.orig.width}set width(t){this._setWidth(t,this._texture.orig.width),this._width=t}get height(){return Math.abs(this.scale.y)*this._texture.orig.height}set height(t){this._setHeight(t,this._texture.orig.height),this._height=t}getSize(t){return t||(t={}),t.width=Math.abs(this.scale.x)*this._texture.orig.width,t.height=Math.abs(this.scale.y)*this._texture.orig.height,t}setSize(t,e){"object"==typeof t?(e=t.height??t.width,t=t.width):e??(e=t),void 0!==t&&this._setWidth(t,this._texture.orig.width),void 0!==e&&this._setHeight(e,this._texture.orig.height)}}},4502:function(t,e,i){"use strict";i.d(e,{M:function(){return n}});var r=i(6393),s=i(5122);class n extends r.Z{constructor(){super(...arguments),this.chars=Object.create(null),this.lineHeight=0,this.fontFamily="",this.fontMetrics={fontSize:0,ascent:0,descent:0},this.baseLineOffset=0,this.distanceField={type:"none",range:0},this.pages=[],this.applyFillAsTint=!0,this.baseMeasurementFontSize=100,this.baseRenderedFontSize=100}get font(){return(0,s.a1)(s.PD,"BitmapFont.font is deprecated, please use BitmapFont.fontFamily instead."),this.fontFamily}get pageTextures(){return(0,s.a1)(s.PD,"BitmapFont.pageTextures is deprecated, please use BitmapFont.pages instead."),this.pages}get size(){return(0,s.a1)(s.PD,"BitmapFont.size is deprecated, please use BitmapFont.fontMetrics.fontSize instead."),this.fontMetrics.fontSize}get distanceFieldRange(){return(0,s.a1)(s.PD,"BitmapFont.distanceFieldRange is deprecated, please use BitmapFont.distanceField.range instead."),this.distanceField.range}get distanceFieldType(){return(0,s.a1)(s.PD,"BitmapFont.distanceFieldType is deprecated, please use BitmapFont.distanceField.type instead."),this.distanceField.type}
225destroy(t=!1){for(let t in this.emit("destroy",this),this.removeAllListeners(),this.chars)this.chars[t].texture?.destroy();this.chars=null,t&&(this.pages.forEach(t=>t.texture.destroy(!0)),this.pages=null)}}},5578:function(t,e,i){"use strict";i.d(e,{W:function(){return b}});var r=i(6075),s=i(5122),n=i(5788),a=i(8285),o=i(6910),h=i(9619),l=i(5485),u=i(7158),d=i(8583),c=i(4555),f=i(1195),p=i(8701),m=i(4502);function g(t){if(""===t)return[];"string"==typeof t&&(t=[t]);let e=[];for(let i=0,r=t.length;i<r;i++){let r=t[i];if(Array.isArray(r)){if(2!==r.length)throw Error(`[BitmapFont]: Invalid character range length, expecting 2 got ${r.length}.`);if(0===r[0].length||0===r[1].length)throw Error("[BitmapFont]: Invalid character delimiter.");let t=r[0].charCodeAt(0),i=r[1].charCodeAt(0);if(i<t)throw Error("[BitmapFont]: Invalid character range.");for(let r=t;r<=i;r++)e.push(String.fromCharCode(r))}else e.push(...Array.from(r))}if(0===e.length)throw Error("[BitmapFont]: Empty set when resolving characters.");return e}let y=class t extends m.M{constructor(e){super(),this.resolution=1,this.pages=[],this._padding=0,this._measureCache=Object.create(null),this._currentChars=[],this._currentX=0,this._currentY=0,this._currentPageIndex=-1,this._skipKerning=!1;let i={...t.defaultOptions,...e};this._textureSize=i.textureSize,this._mipmap=i.mipmap;let r=i.style.clone();i.overrideFill&&(r._fill.color=16777215,r._fill.alpha=1,r._fill.texture=d.x.WHITE,r._fill.fill=null),this.applyFillAsTint=i.overrideFill;let s=r.fontSize;r.fontSize=this.baseMeasurementFontSize;let n=(0,f.M)(r);i.overrideSize?r._stroke&&(r._stroke.width*=this.baseRenderedFontSize/s):r.fontSize=this.baseRenderedFontSize=s,this._style=r,this._skipKerning=i.skipKerning??!1,this.resolution=i.resolution??1,this._padding=i.padding??4,this.fontMetrics=c.c.measureFont(n),this.lineHeight=r.lineHeight||this.fontMetrics.fontSize||r.fontSize}ensureCharacters(t){let e;let i=g(t).filter(t=>!this._currentChars.includes(t)).filter((t,e,i)=>i.indexOf(t)===e);if(!i.length)return;this._currentChars=[...this._currentChars,...i];let{canvas:r,context:s}=(e=-1===this._currentPageIndex?this._nextPage():this.pages[this._currentPageIndex]).canvasAndContext,n=e.texture.source,a=this._style,o=this._currentX,l=this._currentY,u=this.baseRenderedFontSize/this.baseMeasurementFontSize,f=this._padding*u,p="italic"===a.fontStyle?2:1,m=0,y=!1;for(let t=0;t<i.length;t++){let e=i[t],g=c.c.measureText(e,a,r,!1);g.lineHeight=g.height;let x=p*g.width*u,_=g.height*u,v=x+2*f,b=_+2*f;if(y=!1,"\n"!==e&&"\r"!==e&&"	"!==e&&" "!==e&&(y=!0,m=Math.ceil(Math.max(b,m))),o+v>this._textureSize&&(o=0,(l+=m)+(m=b)>this._textureSize)){n.update();let t=this._nextPage();r=t.canvasAndContext.canvas,s=t.canvasAndContext.context,n=t.texture.source,l=0}let w=x/u-(a.dropShadow?.distance??0)-(a._stroke?.width??0);if(this.chars[e]={id:e.codePointAt(0),xOffset:-this._padding,yOffset:-this._padding,xAdvance:w,kerning:{}},y){this._drawGlyph(s,g,o+f,l+f,u,a);
225let t=n.width*u,i=n.height*u,r=new h.A(o/t*n.width,l/i*n.height,v/t*n.width,b/i*n.height);this.chars[e].texture=new d.x({source:n,frame:r}),o+=Math.ceil(v)}}n.update(),this._currentX=o,this._currentY=l,this._skipKerning&&this._applyKerning(i,s)}get pageTextures(){return(0,s.a1)(s.PD,"BitmapFont.pageTextures is deprecated, please use BitmapFont.pages instead."),this.pages}_applyKerning(t,e){let i=this._measureCache;for(let r=0;r<t.length;r++){let s=t[r];for(let t=0;t<this._currentChars.length;t++){let r=this._currentChars[t],n=i[s];n||(n=i[s]=e.measureText(s).width);let a=i[r];a||(a=i[r]=e.measureText(r).width);let o=e.measureText(s+r).width,h=o-(n+a);h&&(this.chars[s].kerning[r]=h),(h=(o=e.measureText(s+r).width)-(n+a))&&(this.chars[r].kerning[s]=h)}}}_nextPage(){this._currentPageIndex++;let t=this.resolution,e=l.h.getOptimalCanvasAndContext(this._textureSize,this._textureSize,t);this._setupContext(e.context,this._style,t);let i=this.baseRenderedFontSize/this.baseMeasurementFontSize*t,r=new d.x({source:new u.c({resource:e.canvas,resolution:i,alphaMode:"premultiply-alpha-on-upload",autoGenerateMipmaps:this._mipmap})}),s={canvasAndContext:e,texture:r};return this.pages[this._currentPageIndex]=s,s}_setupContext(t,e,i){e.fontSize=this.baseRenderedFontSize,t.scale(i,i),t.font=(0,f.M)(e),e.fontSize=this.baseMeasurementFontSize,t.textBaseline=e.textBaseline;let r=e._stroke,s=r?.width??0;if(r&&(t.lineWidth=s,t.lineJoin=r.join,t.miterLimit=r.miterLimit,t.strokeStyle=(0,p.m)(r,t)),e._fill&&(t.fillStyle=(0,p.m)(e._fill,t)),e.dropShadow){let r=e.dropShadow,s=o.I.shared.setValue(r.color).toArray(),n=r.blur*i,a=r.distance*i;t.shadowColor=`rgba(${255*s[0]},${255*s[1]},${255*s[2]},${r.alpha})`,t.shadowBlur=n,t.shadowOffsetX=Math.cos(r.angle)*a,t.shadowOffsetY=Math.sin(r.angle)*a}else t.shadowColor="black",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0}_drawGlyph(t,e,i,r,s,n){let a=e.text,o=e.fontProperties,h=n._stroke,l=(h?.width??0)*s,u=i+l/2,d=r-l/2,c=o.descent*s,f=e.lineHeight*s;n.stroke&&l&&t.strokeText(a,u,d+f-c),n._fill&&t.fillText(a,u,d+f-c)}destroy(){super.destroy();for(let t=0;t<this.pages.length;t++){let{canvasAndContext:e,texture:i}=this.pages[t];e.canvas.width=e.canvas.width,l.h.returnCanvasAndContext(e),i.destroy(!0)}this.pages=null}};y.defaultOptions={textureSize:512,style:new a.p,mipmap:!0};var x=i(5878);let _=0;class v{constructor(){this.ALPHA=[["a","z"],["A","Z"]," "],this.NUMERIC=[["0","9"]],this.ALPHANUMERIC=[["a","z"],["A","Z"],["0","9"]," "],this.ASCII=[[" ","~"]],this.defaultOptions={chars:this.ALPHANUMERIC,resolution:1,padding:4,skipKerning:!1}}getFont(t,e){let i=`${e.fontFamily}-bitmap`,s=!0;if(e._fill.fill&&!e._stroke)i+=e._fill.fill.styleKey,s=!1;else if(e._stroke||e.dropShadow){let t=e.styleKey;t=t.substring(0,t.lastIndexOf("-")),i=`${t}-bitmap`,s=!1}if(!r.C.has(i)){let t=new y({style:e,overrideFill:s,overrideSize:!0,...this.defaultOptions});++_>50&&(0,n.Z)("BitmapText",`You have dynamically created ${_} bitmap fonts, this can be inefficient. Try pre installing your font styles using \`BitmapFont.install({name:"style1", style})\``),t.once("destroy",()=>{_--,r.C.remove(i)}),r.C.set(i,t)}let a=r.C.get(i);return a.ensureCharacters?.(t),a}getLayout(t,e,i=!0){let r=this.getFont(t,e);return(0,x._)([...t],e,r,i)}measureText(t,e,i=!0){return this.getLayout(t,e,i)}install(...t){let e=t[0];"string"==typeof e&&(e={name:e,style:t[1],chars:t[2]?.chars,resolution:t[2]?.resolution,padding:t[2]?.padding,skipKerning:t[2]?.skipKerning},(0,s.a1)(s.PD,"BitmapFontManager.install(name, style, options) is deprecated, use BitmapFontManager.install({name, style, ...options})"));let i=e?.name;if(!i)throw Error("[BitmapFontManager] Property `name` is required.");let n=(e={...this.defaultOptions,...e}).style,o=n instanceof a.p?n:new a.p(n),h=null!==o._fill.fill&&void 0!==o._fill.fill,l=new y({style:o,overrideFill:h,skipKerning:e.skipKerning,padding:e.padding,resolution:e.resolution,overrideSize:!1}),u=g(e.chars);return l.ensureCharacters(u.join("")),r.C.set(`${i}-bitmap`,l),l.once("destroy",()=>r.C.remove(`${i}-bitmap`)),l}uninstall(t){let e=`${t}-bitmap`,i=r.C.get(e);i&&(r.C.remove(e),i.destroy())}}let b=new v}
225,5878:function(t,e,i){"use strict";function r(t,e,i,r){let s={width:0,height:0,offsetY:0,scale:e.fontSize/i.baseMeasurementFontSize,lines:[{width:0,charPositions:[],spaceWidth:0,spacesIndex:[],chars:[]}]};s.offsetY=i.baseLineOffset;let n=s.lines[0],a=null,o=!0,h={spaceWord:!1,width:0,start:0,index:0,positions:[],chars:[]},l=t=>{let e=n.width;for(let i=0;i<h.index;i++){let r=t.positions[i];n.chars.push(t.chars[i]),n.charPositions.push(r+e)}n.width+=t.width,o=!1,h.width=0,h.index=0,h.chars.length=0},u=()=>{let t=n.chars.length-1;if(r){let e=n.chars[t];for(;" "===e;)n.width-=i.chars[e].xAdvance,e=n.chars[--t]}s.width=Math.max(s.width,n.width),n={width:0,charPositions:[],chars:[],spaceWidth:0,spacesIndex:[]},o=!0,s.lines.push(n),s.height+=i.lineHeight},d=i.baseMeasurementFontSize/e.fontSize,c=e.letterSpacing*d,f=e.wordWrapWidth*d;for(let r=0;r<t.length+1;r++){let s;let d=r===t.length;d||(s=t[r]);let p=i.chars[s]||i.chars[" "];if(/(?:\s)/.test(s)||"\r"===s||"\n"===s||d){if(!o&&e.wordWrap&&n.width+h.width-c>f?u():h.start=n.width,l(h),d||n.charPositions.push(0),"\r"===s||"\n"===s)0!==n.width&&u();else if(!d){let t=p.xAdvance+(p.kerning[a]||0)+c;n.width+=t,n.spaceWidth=t,n.spacesIndex.push(n.charPositions.length),n.chars.push(s)}}else{let t=p.kerning[a]||0,e=p.xAdvance+t+c;h.positions[h.index++]=h.width+t,h.chars.push(s),h.width+=e}a=s}return u(),"center"===e.align?function(t){for(let e=0;e<t.lines.length;e++){let i=t.lines[e],r=t.width/2-i.width/2;for(let t=0;t<i.charPositions.length;t++)i.charPositions[t]+=r}}(s):"right"===e.align?function(t){for(let e=0;e<t.lines.length;e++){let i=t.lines[e],r=t.width-i.width;for(let t=0;t<i.charPositions.length;t++)i.charPositions[t]+=r}}(s):"justify"===e.align&&function(t){let e=t.width;for(let i=0;i<t.lines.length;i++){let r=t.lines[i],s=0,n=r.spacesIndex[s++],a=0,o=r.spacesIndex.length,h=(e-r.width)/o;for(let t=0;t<r.charPositions.length;t++)t===n&&(n=r.spacesIndex[s++],a+=h),r.charPositions[t]+=a}}(s),s}i.d(e,{_:function(){return r}})},8285:function(t,e,i){"use strict";i.d(e,{p:function(){return c}});var r=i(6393),s=i(6910),n=i(5122),a=i(2985),o=i(3848),h=i(4263),l=i(6695),u=i(1792);let d=class t extends r.Z{constructor(e={}){super(),function(t){if("boolean"==typeof t.dropShadow&&t.dropShadow){let e=c.defaultDropShadow;t.dropShadow={alpha:t.dropShadowAlpha??e.alpha,angle:t.dropShadowAngle??e.angle,blur:t.dropShadowBlur??e.blur,color:t.dropShadowColor??e.color,distance:t.dropShadowDistance??e.distance}}if(void 0!==t.strokeThickness){(0,n.a1)(n.PD,"strokeThickness is now a part of stroke");let e=t.stroke,i={};if(s.I.isColorLike(e))i.color=e;else if(e instanceof a.f||e instanceof o.h)i.fill=e;else if(Object.hasOwnProperty.call(e,"color")||Object.hasOwnProperty.call(e,"fill"))i=e;else throw Error("Invalid stroke value.");t.stroke={...i,width:t.strokeThickness}}if(Array.isArray(t.fillGradientStops)){let e;(0,n.a1)(n.PD,"gradient fill is now a fill pattern: `new FillGradient(...)`"),null==t.fontSize?t.fontSize=c.defaultTextStyle.fontSize:e="string"==typeof t.fontSize?parseInt(t.fontSize,10):t.fontSize;let i=new a.f(0,0,0,1.7*e),r=t.fillGradientStops.map(t=>s.I.shared.setValue(t).toNumber());r.forEach((t,e)=>{let s=e/(r.length-1);i.addColorStop(s,t)}),t.fill={fill:i}}}(e);let i={...t.defaultTextStyle,...e};for(let t in i)this[t]=i[t];this.update()}get align(){return this._align}set align(t){this._align=t,this.update()}get breakWords(){return this._breakWords}set breakWords(t){this._breakWords=t,this.update()}get dropShadow(){return this._dropShadow}set dropShadow(e){null!==e&&"object"==typeof e?this._dropShadow=this._createProxy({...t.defaultDropShadow,...e}):this._dropShadow=e?this._createProxy({...t.defaultDropShadow}):null,this.update()}get fontFamily(){return this._fontFamily}set fontFamily(t){this._fontFamily=t,this.update()}get fontSize(){return this._fontSize}set fontSize(t){"string"==typeof t?this._fontSize=parseInt(t,10):this._fontSize=t,this.update()}get fontStyle(){return this._fontStyle}set fontStyle(t){this._fontStyle=t,this.update()}get fontVariant(){return this._fontVariant}set fontVariant(t){this._fontVariant=t,this.update()}get fontWeight(){return this._fontWeight}set fontWeight(t){this._fontWeight=t,this.update()}get leading(){return this._leading}set leading(t){this._leading=t,this.update()}get letterSpacing(){return this._letterSpacing}set letterSpacing(t){this._letterSpacing=t,this.update()}get lineHeight(){return this._lineHeight}set lineHeight(t){this._lineHeight=t,this.update()}get padding(){return this._padding}set padding(t){this._padding=t,this.update()}get trim(){return this._trim}set trim(t){this._trim=t,this.update()}get textBaseline(){return this._textBaseline}set textBaseline(t){this._textBaseline=t,this.update()}get whiteSpace(){return this._whiteSpace}set whiteSpace(t){this._whiteSpace=t,this.update()}get wordWrap(){return this._wordWrap}set wordWrap(t){this._wordWrap=t,this.update()}get wordWrapWidth(){return this._wordWrapWidth}set wordWrapWidth(t){this._wordWrapWidth=t,this.update()}get fill(){return this._originalFill}set fill(t){t!==this._originalFill&&(this._originalFill=t,this._isFillStyle(t)&&(this._originalFill=this._createProxy({...h.g.defaultFillStyle,...t},()=>{this._fill=(0,l.f)({...this._originalFill},h.g.defaultFillStyle)})),this._fill=(0,l.f)(0===t?"black":t,h.g.defaultFillStyle),this.update())}get stroke(){return this._originalStroke}set stroke(t){t!==this._originalStroke&&(this._originalStroke=t,this._isFillStyle(t)&&(this._originalStroke=this._createProxy({...h.g.defaultStrokeStyle,...t},()=>{this._stroke=(0,l.m)({...this._originalStroke},h.g.defaultStrokeStyle)}
225)),this._stroke=(0,l.m)(t,h.g.defaultStrokeStyle),this.update())}_generateKey(){return this._styleKey=(0,u.L)(this),this._styleKey}update(){this._styleKey=null,this.emit("update",this)}reset(){let e=t.defaultTextStyle;for(let t in e)this[t]=e[t]}get styleKey(){return this._styleKey||this._generateKey()}clone(){return new t({align:this.align,breakWords:this.breakWords,dropShadow:this._dropShadow?{...this._dropShadow}:null,fill:this._fill,fontFamily:this.fontFamily,fontSize:this.fontSize,fontStyle:this.fontStyle,fontVariant:this.fontVariant,fontWeight:this.fontWeight,leading:this.leading,letterSpacing:this.letterSpacing,lineHeight:this.lineHeight,padding:this.padding,stroke:this._stroke,textBaseline:this.textBaseline,whiteSpace:this.whiteSpace,wordWrap:this.wordWrap,wordWrapWidth:this.wordWrapWidth})}destroy(t=!1){if(this.removeAllListeners(),"boolean"==typeof t?t:t?.texture){let e="boolean"==typeof t?t:t?.textureSource;this._fill?.texture&&this._fill.texture.destroy(e),this._originalFill?.texture&&this._originalFill.texture.destroy(e),this._stroke?.texture&&this._stroke.texture.destroy(e),this._originalStroke?.texture&&this._originalStroke.texture.destroy(e)}this._fill=null,this._stroke=null,this.dropShadow=null,this._originalStroke=null,this._originalFill=null}_createProxy(t,e){return new Proxy(t,{set:(t,i,r)=>(t[i]=r,e?.(i,r),this.update(),!0)})}_isFillStyle(t){return(t??null)!==null&&!(s.I.isColorLike(t)||t instanceof a.f||t instanceof o.h)}};d.defaultDropShadow={alpha:1,angle:Math.PI/6,blur:0,color:"black",distance:5},d.defaultTextStyle={align:"left",breakWords:!1,dropShadow:null,fill:"black",fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",leading:0,letterSpacing:0,lineHeight:0,padding:0,stroke:null,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100};let c=d},4555:function(t,e,i){"use strict";i.d(e,{c:function(){return o}});var r=i(1791),s=i(1195);let n={willReadFrequently:!0},a=class t{static get experimentalLetterSpacingSupported(){let e=t._experimentalLetterSpacingSupported;if(void 0!==e){let i=r.z.get().getCanvasRenderingContext2D().prototype;e=t._experimentalLetterSpacingSupported="letterSpacing"in i||"textLetterSpacing"in i}return e}constructor(t,e,i,r,s,n,a,o,h){this.text=t,this.style=e,this.width=i,this.height=r,this.lines=s,this.lineWidths=n,this.lineHeight=a,this.maxLineWidth=o,this.fontProperties=h}static measureText(e=" ",i,r=t._canvas,n=i.wordWrap){let a=`${e}:${i.styleKey}`;if(t._measurementCache[a])return t._measurementCache[a];let o=(0,s.M)(i),h=t.measureFont(o);0===h.fontSize&&(h.fontSize=i.fontSize,h.ascent=i.fontSize);let l=t.__context;l.font=o;let u=(n?t._wordWrap(e,i,r):e).split(/(?:\r\n|\r|\n)/),d=Array(u.length),c=0;for(let e=0;e<u.length;e++){let r=t._measureText(u[e],i.letterSpacing,l);d[e]=r,c=Math.max(c,r)}let f=i._stroke?.width||0,p=c+f;i.dropShadow&&(p+=i.dropShadow.distance);let m=i.lineHeight||h.fontSize,g=Math.max(m,h.fontSize+f)+(u.length-1)*(m+i.leading);return i.dropShadow&&(g+=i.dropShadow.distance),new t(e,i,p,g,u,d,m+i.leading,c,h)}static _measureText(e,i,r){let s=!1;t.experimentalLetterSpacingSupported&&(t.experimentalLetterSpacing?(r.letterSpacing=`${i}px`,r.textLetterSpacing=`${i}px`,s=!0):(r.letterSpacing="0px",r.textLetterSpacing="0px"));let n=r.measureText(e).width;return n>0&&(s?n-=i:n+=(t.graphemeSegmenter(e).length-1)*i),n}static _wordWrap(e,i,r=t._canvas){let s=r.getContext("2d",n),a=0,o="",h="",l=Object.create(null),{letterSpacing:u,whiteSpace:d}=i,c=t._collapseSpaces(d),f=t._collapseNewlines(d),p=!c,m=i.wordWrapWidth+u,g=t._tokenize(e);for(let e=0;e<g.length;e++){let r=g[e];if(t._isNewline(r)){if(!f){h+=t._addLine(o),p=!c,o="",a=0;continue}r=" "}if(c){let e=t.isBreakingSpace(r),i=t.isBreakingSpace(o[o.length-1]);if(e&&i)continue}let n=t._getFromCache(r,u,l,s);if(n>m){if(""!==o&&(h+=t._addLine(o),o="",a=0),t.canBreakWords(r,i.breakWords)){let e=t.wordWrapSplit(r);for(let n=0;n<e.length;n++){let d=e[n],c=d,f=1;for(;e[n+f];){let s=e[n+f];if(t.canBreakChars(c,s,r,n,i.breakWords))break;d+=s,c=s,f++}n+=f-1;let g=t._getFromCache(d,u,l,s);g+a>m&&(h+=t._addLine(o),p=!1,o="",a=0),o+=d,a+=g}}else{o.length>0&&(h+=t._addLine(o),o="",a=0);let i=e===g.length-1;h+=t._addLine(r,!i),p=!1,o="",a=0}}else n+a>m&&(p=!1,h+=t._addLine(o),o="",a=0),(o.length>0||!t.isBreakingSpace(r)||p)&&(o+=r,a+=n)}return h+t._addLine(o,!1)}static _addLine(e,i=!0){return e=t._trimRight(e),e=i?`${e}
226`:e}
226static _getFromCache(e,i,r,s){let n=r[e];return"number"!=typeof n&&(n=t._measureText(e,i,s)+i,r[e]=n),n}static _collapseSpaces(t){return"normal"===t||"pre-line"===t}static _collapseNewlines(t){return"normal"===t}static _trimRight(e){if("string"!=typeof e)return"";for(let i=e.length-1;i>=0;i--){let r=e[i];if(!t.isBreakingSpace(r))break;e=e.slice(0,-1)}return e}static _isNewline(e){return"string"==typeof e&&t._newlines.includes(e.charCodeAt(0))}static isBreakingSpace(e,i){return"string"==typeof e&&t._breakingSpaces.includes(e.charCodeAt(0))}static _tokenize(e){let i=[],r="";if("string"!=typeof e)return i;for(let s=0;s<e.length;s++){let n=e[s],a=e[s+1];if(t.isBreakingSpace(n,a)||t._isNewline(n)){""!==r&&(i.push(r),r=""),i.push(n);continue}r+=n}return""!==r&&i.push(r),i}static canBreakWords(t,e){return e}static canBreakChars(t,e,i,r,s){return!0}static wordWrapSplit(e){return t.graphemeSegmenter(e)}static measureFont(e){if(t._fonts[e])return t._fonts[e];let i=t._context;i.font=e;let r=i.measureText(t.METRICS_STRING+t.BASELINE_SYMBOL),s={ascent:r.actualBoundingBoxAscent,descent:r.actualBoundingBoxDescent,fontSize:r.actualBoundingBoxAscent+r.actualBoundingBoxDescent};return t._fonts[e]=s,s}static clearMetrics(e=""){e?delete t._fonts[e]:t._fonts={}}static get _canvas(){if(!t.__canvas){let e;try{let i=new OffscreenCanvas(0,0),s=i.getContext("2d",n);if(s?.measureText)return t.__canvas=i,i;e=r.z.get().createCanvas()}catch(t){e=r.z.get().createCanvas()}e.width=e.height=10,t.__canvas=e}return t.__canvas}static get _context(){return t.__context||(t.__context=t._canvas.getContext("2d",n)),t.__context}};a.METRICS_STRING="|\xc9q\xc5",a.BASELINE_SYMBOL="M",a.BASELINE_MULTIPLIER=1.4,a.HEIGHT_MULTIPLIER=2,a.graphemeSegmenter=(()=>{if("function"==typeof Intl?.Segmenter){let t=new Intl.Segmenter;return e=>[...t.segment(e)].map(t=>t.segment)}return t=>[...t]})(),a.experimentalLetterSpacing=!1,a._fonts={},a._newlines=[10,13],a._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288],a._measurementCache={};let o=a},1195:function(t,e,i){"use strict";i.d(e,{M:function(){return s}});let r=["serif","sans-serif","monospace","cursive","fantasy","system-ui"];function s(t){let e="number"==typeof t.fontSize?`${t.fontSize}px`:t.fontSize,i=t.fontFamily;Array.isArray(t.fontFamily)||(i=t.fontFamily.split(","));for(let t=i.length-1;t>=0;t--){let e=i[t].trim();/([\"\'])[^\'\"]+\1/.test(e)||r.includes(e)||(e=`"${e}"`),i[t]=e}return`${t.fontStyle} ${t.fontVariant} ${t.fontWeight} ${e} ${i.join(",")}`}},8701:function(t,e,i){"use strict";i.d(e,{m:function(){return l}});var r=i(6910),s=i(493),n=i(8583),a=i(5788),o=i(2985),h=i(3848);function l(t,e){if(t.texture===n.x.WHITE&&!t.fill)return r.I.shared.setValue(t.color).setAlpha(t.alpha??1).toHexa();if(t.fill){if(t.fill instanceof h.h){let i=t.fill,r=e.createPattern(i.texture.source.resource,"repeat"),n=i.transform.copyTo(s.y.shared);return n.scale(i.texture.frame.width,i.texture.frame.height),r.setTransform(n),r}if(t.fill instanceof o.f){let i=t.fill;if("linear"===i.type){let t=e.createLinearGradient(i.x0,i.y0,i.x1,i.y1);return i.gradientStops.forEach(e=>{t.addColorStop(e.offset,r.I.shared.setValue(e.color).toHex())}),t}}}else{let i=e.createPattern(t.texture.source.resource,"repeat"),r=t.matrix.copyTo(s.y.shared);return r.scale(t.texture.frame.width,t.texture.frame.height),i.setTransform(r),i}return(0,a.Z)("FillStyle not recognised",t),"red"}},1792:function(t,e,i){"use strict";i.d(e,{L:function(){return n}});var r=i(6910);let s=["align","breakWords","cssOverrides","fontVariant","fontWeight","leading","letterSpacing","lineHeight","padding","textBaseline","trim","whiteSpace","wordWrap","wordWrapWidth","fontFamily","fontStyle","fontSize"];function n(t){var e,i,n,o;let h=[],l=0;for(let e=0;e<s.length;e++){let i=`_${s[e]}`;h[l++]=t[i]}return l=a(t._fill,h,l),e=t._stroke,i=l,e&&(i=a(e,h,i),h[i++]=e.width,h[i++]=e.alignment,h[i++]=e.cap,h[i++]=e.join,h[i++]=e.miterLimit),l=i,n=t.dropShadow,o=l,n&&(h[o++]=n.alpha,h[o++]=n.angle,h[o++]=n.blur,h[o++]=n.distance,h[o++]=r.I.shared.setValue(n.color).toNumber()),l=o,h.join("-")}function a(t,e,i){return t&&(e[i++]=t.color,e[i++]=t.alpha,e[i++]=t.fill?.styleKey),i}}
226,9177:function(t,e,i){"use strict";i.d(e,{$:function(){return n}});var r=i(8721),s=i(846);class n extends s.W2{constructor(){super(...arguments),this.canBundle=!0,this.allowChildren=!1,this._roundPixels=0,this._lastUsed=0,this._lastInstructionTick=-1,this._bounds=new r.Y(0,1,0,0),this._boundsDirty=!0}_updateBounds(){}get roundPixels(){return!!this._roundPixels}set roundPixels(t){this._roundPixels=t?1:0}containsPoint(t){let e=this.bounds,{x:i,y:r}=t;return i>=e.minX&&i<=e.maxX&&r>=e.minY&&r<=e.maxY}destroy(t){super.destroy(t),this._bounds=null}}},4023:function(t,e,i){"use strict";i.d(e,{c:function(){return a}});var r=i(9619),s=i(8583);let n=class t{constructor(t,e){this.linkedSheets=[],this._texture=t instanceof s.x?t:null,this.textureSource=t.source,this.textures={},this.animations={},this.data=e;let i=parseFloat(e.meta.scale);i?(this.resolution=i,t.source.resolution=this.resolution):this.resolution=t.source._resolution,this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}parse(){return new Promise(e=>{this._callback=e,this._batchIndex=0,this._frameKeys.length<=t.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()})}_processFrames(e){let i=e,n=t.BATCH_SIZE;for(;i-e<n&&i<this._frameKeys.length;){let t=this._frameKeys[i],e=this._frames[t],n=e.frame;if(n){let i=null,a=null,o=!1!==e.trimmed&&e.sourceSize?e.sourceSize:e.frame,h=new r.A(0,0,Math.floor(o.w)/this.resolution,Math.floor(o.h)/this.resolution);i=e.rotated?new r.A(Math.floor(n.x)/this.resolution,Math.floor(n.y)/this.resolution,Math.floor(n.h)/this.resolution,Math.floor(n.w)/this.resolution):new r.A(Math.floor(n.x)/this.resolution,Math.floor(n.y)/this.resolution,Math.floor(n.w)/this.resolution,Math.floor(n.h)/this.resolution),!1!==e.trimmed&&e.spriteSourceSize&&(a=new r.A(Math.floor(e.spriteSourceSize.x)/this.resolution,Math.floor(e.spriteSourceSize.y)/this.resolution,Math.floor(n.w)/this.resolution,Math.floor(n.h)/this.resolution)),this.textures[t]=new s.x({source:this.textureSource,frame:i,orig:h,trim:a,rotate:e.rotated?2:0,defaultAnchor:e.anchor,defaultBorders:e.borders,label:t.toString()})}i++}}_processAnimations(){let t=this.data.animations||{};for(let e in t){this.animations[e]=[];for(let i=0;i<t[e].length;i++){let r=t[e][i];this.animations[e].push(this.textures[r])}}}_parseComplete(){let t=this._callback;this._callback=null,this._batchIndex=0,t.call(this,this.textures)}_nextBatch(){this._processFrames(this._batchIndex*t.BATCH_SIZE),this._batchIndex++,setTimeout(()=>{this._batchIndex*t.BATCH_SIZE<this._frameKeys.length?this._nextBatch():(this._processAnimations(),this._parseComplete())},0)}destroy(t=!1){for(let t in this.textures)this.textures[t].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,t&&(this._texture?.destroy(),this.textureSource.destroy()),this._texture=null,this.textureSource=null,this.linkedSheets=[]}};n.BATCH_SIZE=1e3;let a=n},3570:function(t,e,i){"use strict";var r=i(7),s=i(496),n=i(9232),a=i(9003),o=i(8583),h=i(9459),l=i(4023);let u=["jpg","png","jpeg","avif","webp","basis","etc2","bc7","bc6h","bc5","bc4","bc3","bc2","bc1","eac","astc"],d={extension:r.nw.Asset,cache:{test:t=>t instanceof l.c,getCacheableAssets:(t,e)=>(function t(e,i,r){let s={};if(e.forEach(t=>{s[t]=i}),Object.keys(i.textures).forEach(t=>{s[t]=i.textures[t]}),!r){let r=h.E.dirname(e[0]);i.linkedSheets.forEach((e,n)=>{Object.assign(s,t([`${r}/${i.data.meta.related_multi_packs[n]}`],e,!0))})}return s})(t,e,!1)},resolver:{extension:{type:r.nw.ResolveParser,name:"resolveSpritesheet"},test:t=>{let e=t.split("?")[0].split("."),i=e.pop(),r=e.pop();return"json"===i&&u.includes(r)},parse:t=>{let e=t.split(".");return{resolution:parseFloat(n.H.RETINA_PREFIX.exec(t)?.[1]??"1"),format:e[e.length-2],src:t}}},loader:{name:"spritesheetLoader",extension:{type:r.nw.LoadParser,priority:s.Q.Normal,name:"spritesheetLoader"},testParse:async(t,e)=>".json"===h.E.extname(e.src).toLowerCase()&&!!t.frames,async parse(t,e,i){let r;let{texture:s,imageFilename:n}=e?.data??{},u=h.E.dirname(e.src);if(u&&u.lastIndexOf("/")!==u.length-1&&(u+="/"),s instanceof o.x)r=s;else{let s=(0,a.u)(u+(n??t.meta.image),e.src);r=(await i.load([s]))[s]}let d=new l.c(r.source,t);await d.parse();let c=t?.meta?.related_multi_packs;if(Array.isArray(c)){let t=[];for(let r of c){if("string"!=typeof r)continue;let s=u+r;e.data?.ignoreMultiPack||(s=(0,a.u)(s,e.src),t.push(i.load({src:s,data:{ignoreMultiPack:!0}})))}let r=await Promise.all(t);d.linkedSheets=r,r.forEach(t=>{t.linkedSheets=[d].concat(d.linkedSheets.filter(e=>e!==t))})}return d},async unload(t,e,i){await i.unload(t.textureSource._sourceOrigin),t.destroy(!1)}}};r.Rw.add(d)}
226,9625:function(t,e,i){"use strict";i.d(e,{v:function(){return a}});var r=i(149);class s{constructor(t,e=null,i=0,r=!1){this.next=null,this.previous=null,this._destroyed=!1,this._fn=t,this._context=e,this.priority=i,this._once=r}match(t,e=null){return this._fn===t&&this._context===e}emit(t){this._fn&&(this._context?this._fn.call(this._context,t):this._fn(t));let e=this.next;return this._once&&this.destroy(!0),this._destroyed&&(this.next=null),e}connect(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this}destroy(t=!1){this._destroyed=!0,this._fn=null,this._context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);let e=this.next;return this.next=t?null:e,this.previous=null,e}}let n=class t{constructor(){this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new s(null,null,1/0),this.deltaMS=1/t.targetFPMS,this.elapsedMS=1/t.targetFPMS,this._tick=t=>{this._requestId=null,this.started&&(this.update(t),this.started&&null===this._requestId&&this._head.next&&(this._requestId=requestAnimationFrame(this._tick)))}}_requestIfNeeded(){null===this._requestId&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))}_cancelIfNeeded(){null!==this._requestId&&(cancelAnimationFrame(this._requestId),this._requestId=null)}_startIfPossible(){this.started?this._requestIfNeeded():this.autoStart&&this.start()}add(t,e,i=r.u.NORMAL){return this._addListener(new s(t,e,i))}addOnce(t,e,i=r.u.NORMAL){return this._addListener(new s(t,e,i,!0))}_addListener(t){let e=this._head.next,i=this._head;if(e){for(;e;){if(t.priority>e.priority){t.connect(i);break}i=e,e=e.next}t.previous||t.connect(i)}else t.connect(i);return this._startIfPossible(),this}remove(t,e){let i=this._head.next;for(;i;)i=i.match(t,e)?i.destroy():i.next;return this._head.next||this._cancelIfNeeded(),this}get count(){if(!this._head)return 0;let t=0,e=this._head;for(;e=e.next;)t++;return t}start(){this.started||(this.started=!0,this._requestIfNeeded())}stop(){this.started&&(this.started=!1,this._cancelIfNeeded())}destroy(){if(!this._protected){this.stop();let t=this._head.next;for(;t;)t=t.destroy(!0);this._head.destroy(),this._head=null}}update(e=performance.now()){let i;if(e>this.lastTime){if((i=this.elapsedMS=e-this.lastTime)>this._maxElapsedMS&&(i=this._maxElapsedMS),i*=this.speed,this._minElapsedMS){let t=e-this._lastFrame|0;if(t<this._minElapsedMS)return;this._lastFrame=e-t%this._minElapsedMS}this.deltaMS=i,this.deltaTime=this.deltaMS*t.targetFPMS;let r=this._head,s=r.next;for(;s;)s=s.emit(this);r.next||this._cancelIfNeeded()}else this.deltaTime=this.deltaMS=this.elapsedMS=0;this.lastTime=e}get FPS(){return 1e3/this.elapsedMS}get minFPS(){return 1e3/this._maxElapsedMS}set minFPS(e){let i=Math.min(Math.max(0,Math.min(this.maxFPS,e))/1e3,t.targetFPMS);this._maxElapsedMS=1/i}get maxFPS(){return this._minElapsedMS?Math.round(1e3/this._minElapsedMS):0}set maxFPS(t){if(0===t)this._minElapsedMS=0;else{let e=Math.max(this.minFPS,t);this._minElapsedMS=1/(e/1e3)}}static get shared(){if(!t._shared){let e=t._shared=new t;e.autoStart=!0,e._protected=!0}return t._shared}static get system(){if(!t._system){let e=t._system=new t;e.autoStart=!0,e._protected=!0}return t._system}};n.targetFPMS=.06;let a=n},149:function(t,e,i){"use strict";i.d(e,{u:function(){return s}});var r,s=((r=s||{})[r.INTERACTION=50]="INTERACTION",r[r.HIGH=25]="HIGH",r[r.NORMAL=0]="NORMAL",r[r.LOW=-25]="LOW",r[r.UTILITY=-50]="UTILITY",r)},4215:function(t,e,i){"use strict";let r;async function s(){return r??(r=(async()=>{let t=document.createElement("canvas").getContext("webgl");if(!t)return"premultiply-alpha-on-upload";let e=await new Promise(t=>{let e=document.createElement("video");e.onloadeddata=()=>t(e),e.onerror=()=>t(null),e.autoplay=!1,e.crossOrigin="anonymous",e.preload="auto",e.src="data:video/webm;base64,GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQJChYECGFOAZwEAAAAAAAHTEU2bdLpNu4tTq4QVSalmU6yBoU27i1OrhBZUrmtTrIHGTbuMU6uEElTDZ1OsggEXTbuMU6uEHFO7a1OsggG97AEAAAAAAABZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmoCrXsYMPQkBNgIRMYXZmV0GETGF2ZkSJiEBEAAAAAAAAFlSua8yuAQAAAAAAAEPXgQFzxYgAAAAAAAAAAZyBACK1nIN1bmSIgQCGhVZfVlA5g4EBI+ODhAJiWgDglLCBArqBApqBAlPAgQFVsIRVuYEBElTDZ9Vzc9JjwItjxYgAAAAAAAAAAWfInEWjh0VOQ09ERVJEh49MYXZjIGxpYnZweC12cDlnyKJFo4hEVVJBVElPTkSHlDAwOjAwOjAwLjA0MDAwMDAwMAAAH0O2dcfngQCgwqGggQAAAIJJg0IAABAAFgA4JBwYSgAAICAAEb///4r+AAB1oZ2mm+6BAaWWgkmDQgAAEAAWADgkHBhKAAAgIABIQBxTu2uRu4+zgQC3iveBAfGCAXHwgQM=",e.load()});if(!e)return"premultiply-alpha-on-upload";let i=t.createTexture();t.bindTexture(t.TEXTURE_2D,i);let r=t.createFramebuffer();t.bindFramebuffer(t.FRAMEBUFFER,r),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,i,0),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),t.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,t.NONE),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e);let s=new Uint8Array(4);return t.readPixels(0,0,1,1,t.RGBA,t.UNSIGNED_BYTE,s),t.deleteFramebuffer(r),t.deleteTexture(i),t.getExtension("WEBGL_lose_context")?.loseContext(),s[0]<=s[3]?"premultiplied-alpha":"premultiply-alpha-on-upload"})()),r}i.d(e,{D:function(){return s}})}
226,3982:function(t,e,i){"use strict";let r;function s(){if("boolean"==typeof r)return r;try{let t=Function("param1","param2","param3","return param1[param2] === param3;");r=!0===t({a:"b"},"a","b")}catch(t){r=!1}return r}i.d(e,{O:function(){return s}})},9955:function(t,e,i){"use strict";i.d(e,{q4:function(){return r}}),i(6393);let r="8.4.1"},5493:function(t,e,i){"use strict";function r(t,e,i){let r;let s=t.length;if(e>=s||0===i)return;i=e+i>s?s-e:i;let n=s-i;for(r=e;r<n;++r)t[r]=t[r+i];t.length=n}i.d(e,{E:function(){return r}})},6656:function(t,e,i){"use strict";i.d(e,{h:function(){return s}});let r={default:-1};function s(t="default"){return void 0===r[t]&&(r[t]=-1),++r[t]}},2659:function(t,e,i){"use strict";function r(t,e,i,r){let{width:s,height:n}=i.orig,a=i.trim;if(a){let i=a.width,o=a.height;t.minX=a.x-e._x*s-r,t.maxX=t.minX+i,t.minY=a.y-e._y*n-r,t.maxY=t.minY+o}else t.minX=-e._x*s-r,t.maxX=t.minX+s,t.minY=-e._y*n-r,t.maxY=t.minY+n}i.d(e,{w:function(){return r}})},8356:function(t,e,i){"use strict";i.d(e,{C:function(){return a},l:function(){return n}});var r=i(7),s=i(9955);class n{static init(){globalThis.__PIXI_APP_INIT__?.(this,s.q4)}static destroy(){}}n.extension=r.nw.Application;class a{constructor(t){this._renderer=t}init(){globalThis.__PIXI_RENDERER_INIT__?.(this._renderer,s.q4)}destroy(){this._renderer=null}}a.extension={type:[r.nw.WebGLSystem,r.nw.WebGPUSystem],name:"initHook",priority:-10}},5122:function(t,e,i){"use strict";i.d(e,{$q:function(){return n},PD:function(){return s},a1:function(){return a}});let r={},s="8.0.0",n="8.3.4";function a(t,e,i=3){if(r[e])return;let s=Error().stack;void 0===s?console.warn("PixiJS Deprecation Warning: ",`${e}
227Deprecated since v${t}`):(s=s.split("\n").splice(i).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",`${e}
228Deprecated since v${t}`),console.warn(s),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",`${e}
229Deprecated since v${t}`),console.warn(s))),r[e]=!0}},5788:function(t,e,i){"use strict";i.d(e,{Z:function(){return s}});let r=0;function s(...t){500!==r&&(500==++r?console.warn("PixiJS Warning: too many warnings, no more warnings will be reported to the console by PixiJS."):console.warn("PixiJS Warning: ",...t))}},9459:function(t,e,i){"use strict";i.d(e,{E:function(){return a}});var r=i(1791);function s(t){if("string"!=typeof t)throw TypeError(`Path must be a string. Received ${JSON.stringify(t)}`)}function n(t){return t.split("?")[0].split("#")[0]}let a={toPosix:t=>t.replace(RegExp("\\".replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),"/"),isUrl(t){return/^https?:/.test(this.toPosix(t))},isDataUrl:t=>/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(t),isBlobUrl:t=>t.startsWith("blob:"),hasProtocol(t){return/^[^/:]+:/.test(this.toPosix(t))},getProtocol(t){s(t),t=this.toPosix(t);let e=/^file:\/\/\//.exec(t);if(e)return e[0];let i=/^[^/:]+:\/{0,2}/.exec(t);return i?i[0]:""},toAbsolute(t,e,i){if(s(t),this.isDataUrl(t)||this.isBlobUrl(t))return t;let o=n(this.toPosix(e??r.z.get().getBaseUrl())),h=n(this.toPosix(i??this.rootname(o)));return(t=this.toPosix(t)).startsWith("/")?a.join(h,t.slice(1)):this.isAbsolute(t)?t:this.join(o,t)},normalize(t){if(s(t),0===t.length)return".";if(this.isDataUrl(t)||this.isBlobUrl(t))return t;t=this.toPosix(t);let e="",i=t.startsWith("/");this.hasProtocol(t)&&(e=this.rootname(t),t=t.slice(e.length));let r=t.endsWith("/");return((t=function(t,e){let i="",r=0,s=-1,n=0,a=-1;for(let o=0;o<=t.length;++o){if(o<t.length)a=t.charCodeAt(o);else if(47===a)break;else a=47;if(47===a){if(s===o-1||1===n);else if(s!==o-1&&2===n){if(i.length<2||2!==r||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2)){if(i.length>2){let t=i.lastIndexOf("/");if(t!==i.length-1){-1===t?(i="",r=0):r=(i=i.slice(0,t)).length-1-i.lastIndexOf("/"),s=o,n=0;continue}}else if(2===i.length||1===i.length){i="",r=0,s=o,n=0;continue}}e&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+=`/${t.slice(s+1,o)}`:i=t.slice(s+1,o),r=o-s-1;s=o,n=0}else 46===a&&-1!==n?++n:n=-1}return i}(t,!1)).length>0&&r&&(t+="/"),i)?`/${t}`:e+t},isAbsolute(t){return s(t),t=this.toPosix(t),!!this.hasProtocol(t)||t.startsWith("/")},join(...t){let e;if(0===t.length)return".";for(let i=0;i<t.length;++i){let r=t[i];if(s(r),r.length>0){if(void 0===e)e=r;else{let s=t[i-1]??"";this.joinExtensions.includes(this.extname(s).toLowerCase())?e+=`/../${r}`:e+=`/${r}`}}}return void 0===e?".":this.normalize(e)},dirname(t){if(s(t),0===t.length)return".";
229let e=(t=this.toPosix(t)).charCodeAt(0),i=47===e,r=-1,n=!0,a=this.getProtocol(t),o=t;t=t.slice(a.length);for(let i=t.length-1;i>=1;--i)if(47===(e=t.charCodeAt(i))){if(!n){r=i;break}}else n=!1;return -1===r?i?"/":this.isUrl(o)?a+t:a:i&&1===r?"//":a+t.slice(0,r)},rootname(t){s(t);let e="";if(e=(t=this.toPosix(t)).startsWith("/")?"/":this.getProtocol(t),this.isUrl(t)){let i=t.indexOf("/",e.length);(e=-1!==i?t.slice(0,i):t).endsWith("/")||(e+="/")}return e},basename(t,e){let i;s(t),e&&s(e),t=n(this.toPosix(t));let r=0,a=-1,o=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";let s=e.length-1,n=-1;for(i=t.length-1;i>=0;--i){let h=t.charCodeAt(i);if(47===h){if(!o){r=i+1;break}}else -1===n&&(o=!1,n=i+1),s>=0&&(h===e.charCodeAt(s)?-1==--s&&(a=i):(s=-1,a=n))}return r===a?a=n:-1===a&&(a=t.length),t.slice(r,a)}for(i=t.length-1;i>=0;--i)if(47===t.charCodeAt(i)){if(!o){r=i+1;break}}else -1===a&&(o=!1,a=i+1);return -1===a?"":t.slice(r,a)},extname(t){s(t),t=n(this.toPosix(t));let e=-1,i=0,r=-1,a=!0,o=0;for(let s=t.length-1;s>=0;--s){let n=t.charCodeAt(s);if(47===n){if(!a){i=s+1;break}continue}-1===r&&(a=!1,r=s+1),46===n?-1===e?e=s:1!==o&&(o=1):-1!==e&&(o=-1)}return -1===e||-1===r||0===o||1===o&&e===r-1&&e===i+1?"":t.slice(e,r)},parse(t){let e;s(t);let i={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return i;let r=(t=n(this.toPosix(t))).charCodeAt(0),a=this.isAbsolute(t);i.root=this.rootname(t),e=a||this.hasProtocol(t)?1:0;let o=-1,h=0,l=-1,u=!0,d=t.length-1,c=0;for(;d>=e;--d){if(47===(r=t.charCodeAt(d))){if(!u){h=d+1;break}continue}-1===l&&(u=!1,l=d+1),46===r?-1===o?o=d:1!==c&&(c=1):-1!==o&&(c=-1)}return -1===o||-1===l||0===c||1===c&&o===l-1&&o===h+1?-1!==l&&(0===h&&a?i.base=i.name=t.slice(1,l):i.base=i.name=t.slice(h,l)):(0===h&&a?(i.name=t.slice(1,o),i.base=t.slice(1,l)):(i.name=t.slice(h,o),i.base=t.slice(h,l)),i.ext=t.slice(o,l)),i.dir=this.dirname(t),i},sep:"/",delimiter:":",joinExtensions:[".html"]}},3852:function(t,e,i){"use strict";i.d(e,{K:function(){return r}});class r{constructor(t,e){this._pool=[],this._count=0,this._index=0,this._classType=t,e&&this.prepopulate(e)}prepopulate(t){for(let e=0;e<t;e++)this._pool[this._index++]=new this._classType;this._count+=t}get(t){let e;return e=this._index>0?this._pool[--this._index]:new this._classType,e.init?.(t),e}return(t){t.reset?.(),this._pool[this._index++]=t}get totalSize(){return this._count}get totalFree(){return this._index}get totalUsed(){return this._count-this._index}clear(){this._pool.length=0,this._index=0}}},7852:function(t,e,i){"use strict";i.d(e,{u:function(){return n}});var r=i(3852);class s{constructor(){this._poolsByClass=new Map}prepopulate(t,e){this.getPool(t).prepopulate(e)}get(t,e){return this.getPool(t).get(e)}return(t){this.getPool(t.constructor).return(t)}getPool(t){return this._poolsByClass.has(t)||this._poolsByClass.set(t,new r.K(t)),this._poolsByClass.get(t)}stats(){let t={};return this._poolsByClass.forEach(e=>{let i=t[e._classType.name]?e._classType.name+e._classType.ID:e._classType.name;t[i]={free:e.totalFree,used:e.totalUsed,size:e.totalSize}}),t}}let n=new s}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.