Socket
Socket
Sign inDemoInstall

@pixi/utils

Package Overview
Dependencies
Maintainers
3
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixi/utils - npm Package Compare versions

Comparing version 6.5.0-rc to 6.5.0-rc.2

6

dist/browser/utils.min.js
/*!
* @pixi/utils - v6.5.0-rc
* Compiled Thu, 14 Jul 2022 18:30:46 UTC
* @pixi/utils - v6.5.0-rc.2
* Compiled Fri, 15 Jul 2022 18:50:14 UTC
*

@@ -8,3 +8,3 @@ * @pixi/utils is licensed under the MIT License.

*/
this.PIXI=this.PIXI||{},this.PIXI.utils=this.PIXI.utils||{};var _pixi_utils=function(e,t,n){"use strict";var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var a=o((function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,a||e,i),f=n?n+t:t;return e._events[f]?e._events[f].fn?e._events[f]=[e._events[f],s]:e._events[f].push(s):(e._events[f]=s,e._eventsCount++),e}function i(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,a=r.length,i=new Array(a);o<a;o++)i[o]=r[o].fn;return i},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,a,i){var s=arguments,f=n?n+e:e;if(!this._events[f])return!1;var h,l,u=this._events[f],c=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),c){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,a),!0;case 6:return u.fn.call(u.context,t,r,o,a,i),!0}for(l=1,h=new Array(c-1);l<c;l++)h[l-1]=s[l];u.fn.apply(u.context,h)}else{var p,d=u.length;for(l=0;l<d;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),c){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,o);break;default:if(!h)for(p=1,h=new Array(c-1);p<c;p++)h[p-1]=s[p];u[l].fn.apply(u[l].context,h)}}return!0},s.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return i(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||i(this,a);else{for(var f=0,h=[],l=s.length;f<l;f++)(s[f].fn!==t||o&&!s[f].once||r&&s[f].context!==r)&&h.push(s[f]);h.length?this._events[a]=1===h.length?h[0]:h:i(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&i(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})),i=f,s=f;function f(e,t,n){n=n||2;var r,o,a,i,s,f,l,c=t&&t.length,p=c?t[0]*n:e.length,d=h(e,0,p,n,!0),v=[];if(!d||d.next===d.prev)return v;if(c&&(d=function(e,t,n,r){var o,a,i,s=[];for(o=0,a=t.length;o<a;o++)(i=h(e,t[o]*r,o<a-1?t[o+1]*r:e.length,r,!1))===i.next&&(i.steiner=!0),s.push(b(i));for(s.sort(x),o=0;o<s.length;o++)n=g(s[o],n);return n}(e,t,d,n)),e.length>80*n){r=a=e[0],o=i=e[1];for(var y=n;y<p;y+=n)(s=e[y])<r&&(r=s),(f=e[y+1])<o&&(o=f),s>a&&(a=s),f>i&&(i=f);l=0!==(l=Math.max(a-r,i-o))?32767/l:0}return u(d,v,n,r,o,l,0),v}function h(e,t,n,r,o){var a,i;if(o===P(e,t,n,r)>0)for(a=t;a<n;a+=r)i=D(a,e[a],e[a+1],i);else for(a=n-r;a>=t;a-=r)i=D(a,e[a],e[a+1],i);return i&&_(i,i.next)&&(j(i),i=i.next),i}function l(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!_(r,r.next)&&0!==E(r.prev,r,r.next))r=r.next;else{if(j(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function u(e,t,n,r,o,a,i){if(e){!i&&a&&function(e,t,n,r){var o=e;do{0===o.z&&(o.z=m(o.x,o.y,t,n,r)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==e);o.prevZ.nextZ=null,o.prevZ=null,function(e){var t,n,r,o,a,i,s,f,h=1;do{for(n=e,e=null,a=null,i=0;n;){for(i++,r=n,s=0,t=0;t<h&&(s++,r=r.nextZ);t++);for(f=h;s>0||f>0&&r;)0!==s&&(0===f||!r||n.z<=r.z)?(o=n,n=n.nextZ,s--):(o=r,r=r.nextZ,f--),a?a.nextZ=o:e=o,o.prevZ=a,a=o;n=r}a.nextZ=null,h*=2}while(i>1)}(o)}(e,r,o,a);for(var s,f,h=e;e.prev!==e.next;)if(s=e.prev,f=e.next,a?p(e,r,o,a):c(e))t.push(s.i/n|0),t.push(e.i/n|0),t.push(f.i/n|0),j(e),e=f.next,h=f.next;else if((e=f)===h){i?1===i?u(e=d(l(e),t,n),t,n,r,o,a,2):2===i&&v(e,t,n,r,o,a):u(l(e),t,n,r,o,a,1);break}}}function c(e){var t=e.prev,n=e,r=e.next;if(E(t,n,r)>=0)return!1;for(var o=t.x,a=n.x,i=r.x,s=t.y,f=n.y,h=r.y,l=o<a?o<i?o:i:a<i?a:i,u=s<f?s<h?s:h:f<h?f:h,c=o>a?o>i?o:i:a>i?a:i,p=s>f?s>h?s:h:f>h?f:h,d=r.next;d!==t;){if(d.x>=l&&d.x<=c&&d.y>=u&&d.y<=p&&w(o,s,a,f,i,h,d.x,d.y)&&E(d.prev,d,d.next)>=0)return!1;d=d.next}return!0}function p(e,t,n,r){var o=e.prev,a=e,i=e.next;if(E(o,a,i)>=0)return!1;for(var s=o.x,f=a.x,h=i.x,l=o.y,u=a.y,c=i.y,p=s<f?s<h?s:h:f<h?f:h,d=l<u?l<c?l:c:u<c?u:c,v=s>f?s>h?s:h:f>h?f:h,x=l>u?l>c?l:c:u>c?u:c,g=m(p,d,t,n,r),y=m(v,x,t,n,r),b=e.prevZ,A=e.nextZ;b&&b.z>=g&&A&&A.z<=y;){if(b.x>=p&&b.x<=v&&b.y>=d&&b.y<=x&&b!==o&&b!==i&&w(s,l,f,u,h,c,b.x,b.y)&&E(b.prev,b,b.next)>=0)return!1;if(b=b.prevZ,A.x>=p&&A.x<=v&&A.y>=d&&A.y<=x&&A!==o&&A!==i&&w(s,l,f,u,h,c,A.x,A.y)&&E(A.prev,A,A.next)>=0)return!1;A=A.nextZ}for(;b&&b.z>=g;){if(b.x>=p&&b.x<=v&&b.y>=d&&b.y<=x&&b!==o&&b!==i&&w(s,l,f,u,h,c,b.x,b.y)&&E(b.prev,b,b.next)>=0)return!1;b=b.prevZ}for(;A&&A.z<=y;){if(A.x>=p&&A.x<=v&&A.y>=d&&A.y<=x&&A!==o&&A!==i&&w(s,l,f,u,h,c,A.x,A.y)&&E(A.prev,A,A.next)>=0)return!1;A=A.nextZ}return!0}function d(e,t,n){var r=e;do{var o=r.prev,a=r.next.next;!_(o,a)&&O(o,r,r.next,a)&&I(o,a)&&I(a,o)&&(t.push(o.i/n|0),t.push(r.i/n|0),t.push(a.i/n|0),j(r),j(r.next),r=e=a),r=r.next}while(r!==e);return l(r)}function v(e,t,n,r,o,a){var i=e;do{for(var s=i.next.next;s!==i.prev;){if(i.i!==s.i&&A(i,s)){var f=M(i,s);return i=l(i,i.next),f=l(f,f.next),u(i,t,n,r,o,a,0),void u(f,t,n,r,o,a,0)}s=s.next}i=i.next}while(i!==e)}function x(e,t){return e.x-t.x}function g(e,t){var n=function(e,t){var n,r=t,o=e.x,a=e.y,i=-1/0;do{if(a<=r.y&&a>=r.next.y&&r.next.y!==r.y){var s=r.x+(a-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=o&&s>i&&(i=s,n=r.x<r.next.x?r:r.next,s===o))return n}r=r.next}while(r!==t);if(!n)return null;var f,h=n,l=n.x,u=n.y,c=1/0;r=n;do{o>=r.x&&r.x>=l&&o!==r.x&&w(a<u?o:i,a,l,u,a<u?i:o,a,r.x,r.y)&&(f=Math.abs(a-r.y)/(o-r.x),I(r,e)&&(f<c||f===c&&(r.x>n.x||r.x===n.x&&y(n,r)))&&(n=r,c=f)),r=r.next}while(r!==h);return n}(e,t);if(!n)return t;var r=M(n,e);return l(r,r.next),l(n,n.next)}function y(e,t){return E(e.prev,e,t.prev)<0&&E(t.next,e,e.next)<0}function m(e,t,n,r,o){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*o|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*o|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function b(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function w(e,t,n,r,o,a,i,s){return(o-i)*(t-s)>=(e-i)*(a-s)&&(e-i)*(r-s)>=(n-i)*(t-s)&&(n-i)*(a-s)>=(o-i)*(r-s)}function A(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&O(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(I(e,t)&&I(t,e)&&function(e,t){var n=e,r=!1,o=(e.x+t.x)/2,a=(e.y+t.y)/2;do{n.y>a!=n.next.y>a&&n.next.y!==n.y&&o<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(E(e.prev,e,t.prev)||E(e,t.prev,t))||_(e,t)&&E(e.prev,e,e.next)>0&&E(t.prev,t,t.next)>0)}function E(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function _(e,t){return e.x===t.x&&e.y===t.y}function O(e,t,n,r){var o=k(E(e,t,n)),a=k(E(e,t,r)),i=k(E(n,r,e)),s=k(E(n,r,t));return o!==a&&i!==s||(!(0!==o||!C(e,n,t))||(!(0!==a||!C(e,r,t))||(!(0!==i||!C(n,e,r))||!(0!==s||!C(n,t,r)))))}function C(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function k(e){return e>0?1:e<0?-1:0}function I(e,t){return E(e.prev,e,e.next)<0?E(e,t,e.next)>=0&&E(e,e.prev,t)>=0:E(e,t,e.prev)<0||E(e,e.next,t)<0}function M(e,t){var n=new R(e.i,e.x,e.y),r=new R(t.i,t.x,t.y),o=e.next,a=t.prev;return e.next=t,t.prev=e,n.next=o,o.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}function D(e,t,n,r){var o=new R(e,t,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function j(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function R(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function P(e,t,n,r){for(var o=0,a=t,i=n-r;a<n;a+=r)o+=(e[i]-e[a])*(e[a+1]+e[i+1]),i=a;return o}f.deviation=function(e,t,n,r){var o=t&&t.length,a=o?t[0]*n:e.length,i=Math.abs(P(e,0,a,n));if(o)for(var s=0,f=t.length;s<f;s++){var h=t[s]*n,l=s<f-1?t[s+1]*n:e.length;i-=Math.abs(P(e,h,l,n))}var u=0;for(s=0;s<r.length;s+=3){var c=r[s]*n,p=r[s+1]*n,d=r[s+2]*n;u+=Math.abs((e[c]-e[d])*(e[p+1]-e[c+1])-(e[c]-e[p])*(e[d+1]-e[c+1]))}return 0===i&&0===u?0:Math.abs((u-i)/i)},f.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,o=0;o<e.length;o++){for(var a=0;a<e[o].length;a++)for(var i=0;i<t;i++)n.vertices.push(e[o][a][i]);o>0&&(r+=e[o-1].length,n.holes.push(r))}return n},i.default=s;var T=o((function(e,t){!function(n){var o=t&&!t.nodeType&&t,a=e&&!e.nodeType&&e,i="object"==typeof r&&r;i.global!==i&&i.window!==i&&i.self!==i||(n=i);var s,f,h=2147483647,l=36,u=/^xn--/,c=/[^\x20-\x7E]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},v=Math.floor,x=String.fromCharCode;function g(e){throw RangeError(d[e])}function y(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function m(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+y((e=e.replace(p,".")).split("."),t).join(".")}function b(e){for(var t,n,r=[],o=0,a=e.length;o<a;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<a?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function w(e){return y(e,(function(e){var t="";return e>65535&&(t+=x((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=x(e)})).join("")}function A(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function E(e,t,n){var r=0;for(e=n?v(e/700):e>>1,e+=v(e/t);e>455;r+=l)e=v(e/35);return v(r+36*e/(e+38))}function _(e){var t,n,r,o,a,i,s,f,u,c,p,d=[],x=e.length,y=0,m=128,b=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&g("not-basic"),d.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<x;){for(a=y,i=1,s=l;o>=x&&g("invalid-input"),((f=(p=e.charCodeAt(o++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:l)>=l||f>v((h-y)/i))&&g("overflow"),y+=f*i,!(f<(u=s<=b?1:s>=b+26?26:s-b));s+=l)i>v(h/(c=l-u))&&g("overflow"),i*=c;b=E(y-a,t=d.length+1,0==a),v(y/t)>h-m&&g("overflow"),m+=v(y/t),y%=t,d.splice(y++,0,m)}return w(d)}function O(e){var t,n,r,o,a,i,s,f,u,c,p,d,y,m,w,_=[];for(d=(e=b(e)).length,t=128,n=0,a=72,i=0;i<d;++i)(p=e[i])<128&&_.push(x(p));for(r=o=_.length,o&&_.push("-");r<d;){for(s=h,i=0;i<d;++i)(p=e[i])>=t&&p<s&&(s=p);for(s-t>v((h-n)/(y=r+1))&&g("overflow"),n+=(s-t)*y,t=s,i=0;i<d;++i)if((p=e[i])<t&&++n>h&&g("overflow"),p==t){for(f=n,u=l;!(f<(c=u<=a?1:u>=a+26?26:u-a));u+=l)w=f-c,m=l-c,_.push(x(A(c+w%m,0))),f=v(w/m);_.push(x(A(f,0))),a=E(n,y,r==o),n=0,++r}++n,++t}return _.join("")}if(s={version:"1.3.2",ucs2:{decode:b,encode:w},decode:_,encode:O,toASCII:function(e){return m(e,(function(e){return c.test(e)?"xn--"+O(e):e}))},toUnicode:function(e){return m(e,(function(e){return u.test(e)?_(e.slice(4).toLowerCase()):e}))}},o&&a)if(e.exports==o)a.exports=s;else for(f in s)s.hasOwnProperty(f)&&(o[f]=s[f]);else n.punycode=s}(r)})),L=function(e){return"string"==typeof e},N=function(e){return"object"==typeof e&&null!==e},S=function(e){return null===e},q=function(e){return null==e};function Z(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var U=function(e,t,n,r){t=t||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(t);var i=1e3;r&&"number"==typeof r.maxKeys&&(i=r.maxKeys);var s=e.length;i>0&&s>i&&(s=i);for(var f=0;f<s;++f){var h,l,u,c,p=e[f].replace(a,"%20"),d=p.indexOf(n);d>=0?(h=p.substr(0,d),l=p.substr(d+1)):(h=p,l=""),u=decodeURIComponent(h),c=decodeURIComponent(l),Z(o,u)?Array.isArray(o[u])?o[u].push(c):o[u]=[o[u],c]:o[u]=c}return o},F=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},B=function(e,t,n,r){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(r){var o=encodeURIComponent(F(r))+n;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(F(e))})).join(t):o+encodeURIComponent(F(e[r]))})).join(t):r?encodeURIComponent(F(r))+n+encodeURIComponent(F(e)):""},z=o((function(e,t){t.decode=t.parse=U,t.encode=t.stringify=B})),X=ie,J=function(e,t){return ie(e,!1,!0).resolve(t)},W=function(e){L(e)&&(e=ie(e));if(!(e instanceof H))return H.prototype.format.call(e);return e.format()};function H(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var $=/^([a-z0-9.+-]+:)/i,G=/:[0-9]*$/,Y=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,K=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),V=["'"].concat(K),Q=["%","/","?",";","#"].concat(V),ee=["/","?","#"],te=/^[+a-z0-9A-Z_-]{0,63}$/,ne=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,re={javascript:!0,"javascript:":!0},oe={javascript:!0,"javascript:":!0},ae={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function ie(e,t,n){if(e&&N(e)&&e instanceof H)return e;var r=new H;return r.parse(e,t,n),r}H.prototype.parse=function(e,t,n){if(!L(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),o=-1!==r&&r<e.indexOf("#")?"?":"#",a=e.split(o);a[0]=a[0].replace(/\\/g,"/");var i=e=a.join(o);if(i=i.trim(),!n&&1===e.split("#").length){var s=Y.exec(i);if(s)return this.path=i,this.href=i,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?z.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var f=$.exec(i);if(f){var h=(f=f[0]).toLowerCase();this.protocol=h,i=i.substr(f.length)}if(n||f||i.match(/^\/\/[^@\/]+@[^@\/]+/)){var l="//"===i.substr(0,2);!l||f&&oe[f]||(i=i.substr(2),this.slashes=!0)}if(!oe[f]&&(l||f&&!ae[f])){for(var u,c,p=-1,d=0;d<ee.length;d++){-1!==(v=i.indexOf(ee[d]))&&(-1===p||v<p)&&(p=v)}-1!==(c=-1===p?i.lastIndexOf("@"):i.lastIndexOf("@",p))&&(u=i.slice(0,c),i=i.slice(c+1),this.auth=decodeURIComponent(u)),p=-1;for(d=0;d<Q.length;d++){var v;-1!==(v=i.indexOf(Q[d]))&&(-1===p||v<p)&&(p=v)}-1===p&&(p=i.length),this.host=i.slice(0,p),i=i.slice(p),this.parseHost(),this.hostname=this.hostname||"";var x="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!x)for(var g=this.hostname.split(/\./),y=(d=0,g.length);d<y;d++){var m=g[d];if(m&&!m.match(te)){for(var b="",w=0,A=m.length;w<A;w++)m.charCodeAt(w)>127?b+="x":b+=m[w];if(!b.match(te)){var E=g.slice(0,d),_=g.slice(d+1),O=m.match(ne);O&&(E.push(O[1]),_.unshift(O[2])),_.length&&(i="/"+_.join(".")+i),this.hostname=E.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),x||(this.hostname=T.toASCII(this.hostname));var C=this.port?":"+this.port:"",k=this.hostname||"";this.host=k+C,this.href+=this.host,x&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==i[0]&&(i="/"+i))}if(!re[h])for(d=0,y=V.length;d<y;d++){var I=V[d];if(-1!==i.indexOf(I)){var M=encodeURIComponent(I);M===I&&(M=escape(I)),i=i.split(I).join(M)}}var D=i.indexOf("#");-1!==D&&(this.hash=i.substr(D),i=i.slice(0,D));var j=i.indexOf("?");if(-1!==j?(this.search=i.substr(j),this.query=i.substr(j+1),t&&(this.query=z.parse(this.query)),i=i.slice(0,j)):t&&(this.search="",this.query={}),i&&(this.pathname=i),ae[h]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){C=this.pathname||"";var R=this.search||"";this.path=C+R}return this.href=this.format(),this},H.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&N(this.query)&&Object.keys(this.query).length&&(a=z.stringify(this.query));var i=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||ae[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),i&&"?"!==i.charAt(0)&&(i="?"+i),t+o+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(i=i.replace("#","%23"))+r},H.prototype.resolve=function(e){return this.resolveObject(ie(e,!1,!0)).format()},H.prototype.resolveObject=function(e){if(L(e)){var t=new H;t.parse(e,!1,!0),e=t}for(var n=new H,r=Object.keys(this),o=0;o<r.length;o++){var a=r[o];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var i=Object.keys(e),s=0;s<i.length;s++){var f=i[s];"protocol"!==f&&(n[f]=e[f])}return ae[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!ae[e.protocol]){for(var h=Object.keys(e),l=0;l<h.length;l++){var u=h[l];n[u]=e[u]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||oe[e.protocol])n.pathname=e.pathname;else{for(var c=(e.pathname||"").split("/");c.length&&!(e.host=c.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==c[0]&&c.unshift(""),c.length<2&&c.unshift(""),n.pathname=c.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var p=n.pathname||"",d=n.search||"";n.path=p+d}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var v=n.pathname&&"/"===n.pathname.charAt(0),x=e.host||e.pathname&&"/"===e.pathname.charAt(0),g=x||v||n.host&&e.pathname,y=g,m=n.pathname&&n.pathname.split("/")||[],b=(c=e.pathname&&e.pathname.split("/")||[],n.protocol&&!ae[n.protocol]);if(b&&(n.hostname="",n.port=null,n.host&&(""===m[0]?m[0]=n.host:m.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===c[0]?c[0]=e.host:c.unshift(e.host)),e.host=null),g=g&&(""===c[0]||""===m[0])),x)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,m=c;else if(c.length)m||(m=[]),m.pop(),m=m.concat(c),n.search=e.search,n.query=e.query;else if(!q(e.search)){if(b)n.hostname=n.host=m.shift(),(O=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=O.shift(),n.host=n.hostname=O.shift());return n.search=e.search,n.query=e.query,S(n.pathname)&&S(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!m.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var w=m.slice(-1)[0],A=(n.host||e.host||m.length>1)&&("."===w||".."===w)||""===w,E=0,_=m.length;_>=0;_--)"."===(w=m[_])?m.splice(_,1):".."===w?(m.splice(_,1),E++):E&&(m.splice(_,1),E--);if(!g&&!y)for(;E--;E)m.unshift("..");!g||""===m[0]||m[0]&&"/"===m[0].charAt(0)||m.unshift(""),A&&"/"!==m.join("/").substr(-1)&&m.push("");var O,C=""===m[0]||m[0]&&"/"===m[0].charAt(0);b&&(n.hostname=n.host=C?"":m.length?m.shift():"",(O=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=O.shift(),n.host=n.hostname=O.shift()));return(g=g||n.host&&m.length)&&!C&&m.unshift(""),m.length?n.pathname=m.join("/"):(n.pathname=null,n.path=null),S(n.pathname)&&S(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},H.prototype.parseHost=function(){var e=this.host,t=G.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var se={parse:X,format:W,resolve:J};t.settings.RETINA_PREFIX=/@([0-9\.]+)x/,t.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var fe,he=!1;var le={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var ue=function(){for(var e=[],t=[],r=0;r<32;r++)e[r]=r,t[r]=r;e[n.BLEND_MODES.NORMAL_NPM]=n.BLEND_MODES.NORMAL,e[n.BLEND_MODES.ADD_NPM]=n.BLEND_MODES.ADD,e[n.BLEND_MODES.SCREEN_NPM]=n.BLEND_MODES.SCREEN,t[n.BLEND_MODES.NORMAL]=n.BLEND_MODES.NORMAL_NPM,t[n.BLEND_MODES.ADD]=n.BLEND_MODES.ADD_NPM,t[n.BLEND_MODES.SCREEN]=n.BLEND_MODES.SCREEN_NPM;var o=[];return o.push(t),o.push(e),o}();function ce(e){if(4===e.BYTES_PER_ELEMENT)return e instanceof Float32Array?"Float32Array":e instanceof Uint32Array?"Uint32Array":"Int32Array";if(2===e.BYTES_PER_ELEMENT){if(e instanceof Uint16Array)return"Uint16Array"}else if(1===e.BYTES_PER_ELEMENT&&e instanceof Uint8Array)return"Uint8Array";return null}var pe={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array};var de=0;var ve={};var xe=Object.create(null),ge=Object.create(null);var ye=function(){function e(e,n,r){this.canvas=t.settings.ADAPTER.createCanvas(),this.context=this.canvas.getContext("2d"),this.resolution=r||t.settings.RESOLUTION,this.resize(e,n)}return e.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},e.prototype.resize=function(e,t){this.canvas.width=Math.round(e*this.resolution),this.canvas.height=Math.round(t*this.resolution)},e.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(e.prototype,"width",{get:function(){return this.canvas.width},set:function(e){this.canvas.width=Math.round(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.canvas.height},set:function(e){this.canvas.height=Math.round(e)},enumerable:!1,configurable:!0}),e}();var me,be=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i;return Object.defineProperty(e,"isMobile",{enumerable:!0,get:function(){return t.isMobile}}),e.BaseTextureCache=ge,e.CanvasRenderTarget=ye,e.DATA_URI=be,e.EventEmitter=a,e.ProgramCache={},e.TextureCache=xe,e.clearTextureCache=function(){var e;for(e in xe)delete xe[e];for(e in ge)delete ge[e]},e.correctBlendMode=function(e,t){return ue[t?1:0][e]},e.createIndicesForQuads=function(e,t){void 0===t&&(t=null);var n=6*e;if((t=t||new Uint16Array(n)).length!==n)throw new Error("Out buffer length is incorrect, got "+t.length+" and expected "+n);for(var r=0,o=0;r<n;r+=6,o+=4)t[r+0]=o+0,t[r+1]=o+1,t[r+2]=o+2,t[r+3]=o+0,t[r+4]=o+2,t[r+5]=o+3;return t},e.decomposeDataUri=function(e){var t=be.exec(e);if(t)return{mediaType:t[1]?t[1].toLowerCase():void 0,subType:t[2]?t[2].toLowerCase():void 0,charset:t[3]?t[3].toLowerCase():void 0,encoding:t[4]?t[4].toLowerCase():void 0,data:t[5]}},e.deprecation=function(e,t,n){if(void 0===n&&(n=3),!ve[t]){var r=(new Error).stack;void 0===r?console.warn("PixiJS Deprecation Warning: ",t+"\nDeprecated since v"+e):(r=r.split("\n").splice(n).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",t+"\nDeprecated since v"+e),console.warn(r),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",t+"\nDeprecated since v"+e),console.warn(r))),ve[t]=!0}},e.destroyTextureCache=function(){var e;for(e in xe)xe[e].destroy();for(e in ge)ge[e].destroy()},e.determineCrossOrigin=function(e,t){if(void 0===t&&(t=globalThis.location),0===e.indexOf("data:"))return"";t=t||globalThis.location,me||(me=document.createElement("a")),me.href=e;var n=se.parse(me.href),r=!n.port&&""===t.port||n.port===t.port;return n.hostname===t.hostname&&r&&n.protocol===t.protocol?"":"anonymous"},e.earcut=i,e.getBufferType=ce,e.getResolutionOfUrl=function(e,n){var r=t.settings.RETINA_PREFIX.exec(e);return r?parseFloat(r[1]):void 0!==n?n:1},e.hex2rgb=function(e,t){return void 0===t&&(t=[]),t[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(255&e)/255,t},e.hex2string=function(e){var t=e.toString(16);return"#"+(t="000000".substring(0,6-t.length)+t)},e.interleaveTypedArrays=function(e,t){for(var n=0,r=0,o={},a=0;a<e.length;a++)r+=t[a],n+=e[a].length;var i=new ArrayBuffer(4*n),s=null,f=0;for(a=0;a<e.length;a++){var h=t[a],l=e[a],u=ce(l);o[u]||(o[u]=new pe[u](i)),s=o[u];for(var c=0;c<l.length;c++){s[(c/h|0)*r+f+c%h]=l[c]}f+=h}return new Float32Array(i)},e.isPow2=function(e){return!(e&e-1||!e)},e.isWebGLSupported=function(){return void 0===fe&&(fe=function(){var e={stencil:!0,failIfMajorPerformanceCaveat:t.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!t.settings.ADAPTER.getWebGLRenderingContext())return!1;var n=t.settings.ADAPTER.createCanvas(),r=n.getContext("webgl",e)||n.getContext("experimental-webgl",e),o=!(!r||!r.getContextAttributes().stencil);if(r){var a=r.getExtension("WEBGL_lose_context");a&&a.loseContext()}return r=null,o}catch(e){return!1}}()),fe},e.log2=function(e){var t=(e>65535?1:0)<<4,n=((e>>>=t)>255?1:0)<<3;return t|=n,t|=n=((e>>>=n)>15?1:0)<<2,(t|=n=((e>>>=n)>3?1:0)<<1)|(e>>>=n)>>1},e.nextPow2=function(e){return e+=0===e?1:0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1},e.premultiplyBlendMode=ue,e.premultiplyRgba=function(e,t,n,r){return n=n||new Float32Array(4),r||void 0===r?(n[0]=e[0]*t,n[1]=e[1]*t,n[2]=e[2]*t):(n[0]=e[0],n[1]=e[1],n[2]=e[2]),n[3]=t,n},e.premultiplyTint=function(e,t){if(1===t)return(255*t<<24)+e;if(0===t)return 0;var n=e>>16&255,r=e>>8&255,o=255&e;return(255*t<<24)+((n=n*t+.5|0)<<16)+((r=r*t+.5|0)<<8)+(o=o*t+.5|0)},e.premultiplyTintToRgba=function(e,t,n,r){return(n=n||new Float32Array(4))[0]=(e>>16&255)/255,n[1]=(e>>8&255)/255,n[2]=(255&e)/255,(r||void 0===r)&&(n[0]*=t,n[1]*=t,n[2]*=t),n[3]=t,n},e.removeItems=function(e,t,n){var r,o=e.length;if(!(t>=o||0===n)){var a=o-(n=t+n>o?o-t:n);for(r=t;r<a;++r)e[r]=e[r+n];e.length=a}},e.rgb2hex=function(e){return(255*e[0]<<16)+(255*e[1]<<8)+(255*e[2]|0)},e.sayHello=function(e){var n;if(!he){if(t.settings.ADAPTER.getNavigator().userAgent.toLowerCase().indexOf("chrome")>-1){var r=["\n %c %c %c PixiJS 6.5.0-rc - ✰ "+e+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(n=globalThis.console).log.apply(n,r)}else globalThis.console&&globalThis.console.log("PixiJS 6.5.0-rc - "+e+" - http://www.pixijs.com/");he=!0}},e.sign=function(e){return 0===e?0:e<0?-1:1},e.skipHello=function(){he=!0},e.string2hex=function(e){return"string"==typeof e&&"#"===(e=le[e.toLowerCase()]||e)[0]&&(e=e.slice(1)),parseInt(e,16)},e.trimCanvas=function(e){var t,n,r,o=e.width,a=e.height,i=e.getContext("2d"),s=i.getImageData(0,0,o,a).data,f=s.length,h={top:null,left:null,right:null,bottom:null},l=null;for(t=0;t<f;t+=4)0!==s[t+3]&&(n=t/4%o,r=~~(t/4/o),null===h.top&&(h.top=r),(null===h.left||n<h.left)&&(h.left=n),(null===h.right||h.right<n)&&(h.right=n+1),(null===h.bottom||h.bottom<r)&&(h.bottom=r));return null!==h.top&&(o=h.right-h.left,a=h.bottom-h.top+1,l=i.getImageData(h.left,h.top,o,a)),{height:a,width:o,data:l}},e.uid=function(){return++de},e.url=se,Object.defineProperty(e,"__esModule",{value:!0}),e}({},PIXI,PIXI);Object.assign(this.PIXI.utils,_pixi_utils);
this.PIXI=this.PIXI||{},this.PIXI.utils=this.PIXI.utils||{};var _pixi_utils=function(e,t,n){"use strict";var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var a=o((function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,a||e,i),f=n?n+t:t;return e._events[f]?e._events[f].fn?e._events[f]=[e._events[f],s]:e._events[f].push(s):(e._events[f]=s,e._eventsCount++),e}function i(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,a=r.length,i=new Array(a);o<a;o++)i[o]=r[o].fn;return i},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,a,i){var s=arguments,f=n?n+e:e;if(!this._events[f])return!1;var h,l,u=this._events[f],c=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),c){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,a),!0;case 6:return u.fn.call(u.context,t,r,o,a,i),!0}for(l=1,h=new Array(c-1);l<c;l++)h[l-1]=s[l];u.fn.apply(u.context,h)}else{var p,d=u.length;for(l=0;l<d;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),c){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,o);break;default:if(!h)for(p=1,h=new Array(c-1);p<c;p++)h[p-1]=s[p];u[l].fn.apply(u[l].context,h)}}return!0},s.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return i(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||i(this,a);else{for(var f=0,h=[],l=s.length;f<l;f++)(s[f].fn!==t||o&&!s[f].once||r&&s[f].context!==r)&&h.push(s[f]);h.length?this._events[a]=1===h.length?h[0]:h:i(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&i(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})),i=f,s=f;function f(e,t,n){n=n||2;var r,o,a,i,s,f,l,c=t&&t.length,p=c?t[0]*n:e.length,d=h(e,0,p,n,!0),v=[];if(!d||d.next===d.prev)return v;if(c&&(d=function(e,t,n,r){var o,a,i,s=[];for(o=0,a=t.length;o<a;o++)(i=h(e,t[o]*r,o<a-1?t[o+1]*r:e.length,r,!1))===i.next&&(i.steiner=!0),s.push(b(i));for(s.sort(x),o=0;o<s.length;o++)n=g(s[o],n);return n}(e,t,d,n)),e.length>80*n){r=a=e[0],o=i=e[1];for(var y=n;y<p;y+=n)(s=e[y])<r&&(r=s),(f=e[y+1])<o&&(o=f),s>a&&(a=s),f>i&&(i=f);l=0!==(l=Math.max(a-r,i-o))?32767/l:0}return u(d,v,n,r,o,l,0),v}function h(e,t,n,r,o){var a,i;if(o===P(e,t,n,r)>0)for(a=t;a<n;a+=r)i=D(a,e[a],e[a+1],i);else for(a=n-r;a>=t;a-=r)i=D(a,e[a],e[a+1],i);return i&&_(i,i.next)&&(j(i),i=i.next),i}function l(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!_(r,r.next)&&0!==E(r.prev,r,r.next))r=r.next;else{if(j(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function u(e,t,n,r,o,a,i){if(e){!i&&a&&function(e,t,n,r){var o=e;do{0===o.z&&(o.z=m(o.x,o.y,t,n,r)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==e);o.prevZ.nextZ=null,o.prevZ=null,function(e){var t,n,r,o,a,i,s,f,h=1;do{for(n=e,e=null,a=null,i=0;n;){for(i++,r=n,s=0,t=0;t<h&&(s++,r=r.nextZ);t++);for(f=h;s>0||f>0&&r;)0!==s&&(0===f||!r||n.z<=r.z)?(o=n,n=n.nextZ,s--):(o=r,r=r.nextZ,f--),a?a.nextZ=o:e=o,o.prevZ=a,a=o;n=r}a.nextZ=null,h*=2}while(i>1)}(o)}(e,r,o,a);for(var s,f,h=e;e.prev!==e.next;)if(s=e.prev,f=e.next,a?p(e,r,o,a):c(e))t.push(s.i/n|0),t.push(e.i/n|0),t.push(f.i/n|0),j(e),e=f.next,h=f.next;else if((e=f)===h){i?1===i?u(e=d(l(e),t,n),t,n,r,o,a,2):2===i&&v(e,t,n,r,o,a):u(l(e),t,n,r,o,a,1);break}}}function c(e){var t=e.prev,n=e,r=e.next;if(E(t,n,r)>=0)return!1;for(var o=t.x,a=n.x,i=r.x,s=t.y,f=n.y,h=r.y,l=o<a?o<i?o:i:a<i?a:i,u=s<f?s<h?s:h:f<h?f:h,c=o>a?o>i?o:i:a>i?a:i,p=s>f?s>h?s:h:f>h?f:h,d=r.next;d!==t;){if(d.x>=l&&d.x<=c&&d.y>=u&&d.y<=p&&w(o,s,a,f,i,h,d.x,d.y)&&E(d.prev,d,d.next)>=0)return!1;d=d.next}return!0}function p(e,t,n,r){var o=e.prev,a=e,i=e.next;if(E(o,a,i)>=0)return!1;for(var s=o.x,f=a.x,h=i.x,l=o.y,u=a.y,c=i.y,p=s<f?s<h?s:h:f<h?f:h,d=l<u?l<c?l:c:u<c?u:c,v=s>f?s>h?s:h:f>h?f:h,x=l>u?l>c?l:c:u>c?u:c,g=m(p,d,t,n,r),y=m(v,x,t,n,r),b=e.prevZ,A=e.nextZ;b&&b.z>=g&&A&&A.z<=y;){if(b.x>=p&&b.x<=v&&b.y>=d&&b.y<=x&&b!==o&&b!==i&&w(s,l,f,u,h,c,b.x,b.y)&&E(b.prev,b,b.next)>=0)return!1;if(b=b.prevZ,A.x>=p&&A.x<=v&&A.y>=d&&A.y<=x&&A!==o&&A!==i&&w(s,l,f,u,h,c,A.x,A.y)&&E(A.prev,A,A.next)>=0)return!1;A=A.nextZ}for(;b&&b.z>=g;){if(b.x>=p&&b.x<=v&&b.y>=d&&b.y<=x&&b!==o&&b!==i&&w(s,l,f,u,h,c,b.x,b.y)&&E(b.prev,b,b.next)>=0)return!1;b=b.prevZ}for(;A&&A.z<=y;){if(A.x>=p&&A.x<=v&&A.y>=d&&A.y<=x&&A!==o&&A!==i&&w(s,l,f,u,h,c,A.x,A.y)&&E(A.prev,A,A.next)>=0)return!1;A=A.nextZ}return!0}function d(e,t,n){var r=e;do{var o=r.prev,a=r.next.next;!_(o,a)&&O(o,r,r.next,a)&&I(o,a)&&I(a,o)&&(t.push(o.i/n|0),t.push(r.i/n|0),t.push(a.i/n|0),j(r),j(r.next),r=e=a),r=r.next}while(r!==e);return l(r)}function v(e,t,n,r,o,a){var i=e;do{for(var s=i.next.next;s!==i.prev;){if(i.i!==s.i&&A(i,s)){var f=M(i,s);return i=l(i,i.next),f=l(f,f.next),u(i,t,n,r,o,a,0),void u(f,t,n,r,o,a,0)}s=s.next}i=i.next}while(i!==e)}function x(e,t){return e.x-t.x}function g(e,t){var n=function(e,t){var n,r=t,o=e.x,a=e.y,i=-1/0;do{if(a<=r.y&&a>=r.next.y&&r.next.y!==r.y){var s=r.x+(a-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=o&&s>i&&(i=s,n=r.x<r.next.x?r:r.next,s===o))return n}r=r.next}while(r!==t);if(!n)return null;var f,h=n,l=n.x,u=n.y,c=1/0;r=n;do{o>=r.x&&r.x>=l&&o!==r.x&&w(a<u?o:i,a,l,u,a<u?i:o,a,r.x,r.y)&&(f=Math.abs(a-r.y)/(o-r.x),I(r,e)&&(f<c||f===c&&(r.x>n.x||r.x===n.x&&y(n,r)))&&(n=r,c=f)),r=r.next}while(r!==h);return n}(e,t);if(!n)return t;var r=M(n,e);return l(r,r.next),l(n,n.next)}function y(e,t){return E(e.prev,e,t.prev)<0&&E(t.next,e,e.next)<0}function m(e,t,n,r,o){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*o|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*o|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function b(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function w(e,t,n,r,o,a,i,s){return(o-i)*(t-s)>=(e-i)*(a-s)&&(e-i)*(r-s)>=(n-i)*(t-s)&&(n-i)*(a-s)>=(o-i)*(r-s)}function A(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&O(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(I(e,t)&&I(t,e)&&function(e,t){var n=e,r=!1,o=(e.x+t.x)/2,a=(e.y+t.y)/2;do{n.y>a!=n.next.y>a&&n.next.y!==n.y&&o<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(E(e.prev,e,t.prev)||E(e,t.prev,t))||_(e,t)&&E(e.prev,e,e.next)>0&&E(t.prev,t,t.next)>0)}function E(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function _(e,t){return e.x===t.x&&e.y===t.y}function O(e,t,n,r){var o=k(E(e,t,n)),a=k(E(e,t,r)),i=k(E(n,r,e)),s=k(E(n,r,t));return o!==a&&i!==s||(!(0!==o||!C(e,n,t))||(!(0!==a||!C(e,r,t))||(!(0!==i||!C(n,e,r))||!(0!==s||!C(n,t,r)))))}function C(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function k(e){return e>0?1:e<0?-1:0}function I(e,t){return E(e.prev,e,e.next)<0?E(e,t,e.next)>=0&&E(e,e.prev,t)>=0:E(e,t,e.prev)<0||E(e,e.next,t)<0}function M(e,t){var n=new R(e.i,e.x,e.y),r=new R(t.i,t.x,t.y),o=e.next,a=t.prev;return e.next=t,t.prev=e,n.next=o,o.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}function D(e,t,n,r){var o=new R(e,t,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function j(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function R(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function P(e,t,n,r){for(var o=0,a=t,i=n-r;a<n;a+=r)o+=(e[i]-e[a])*(e[a+1]+e[i+1]),i=a;return o}f.deviation=function(e,t,n,r){var o=t&&t.length,a=o?t[0]*n:e.length,i=Math.abs(P(e,0,a,n));if(o)for(var s=0,f=t.length;s<f;s++){var h=t[s]*n,l=s<f-1?t[s+1]*n:e.length;i-=Math.abs(P(e,h,l,n))}var u=0;for(s=0;s<r.length;s+=3){var c=r[s]*n,p=r[s+1]*n,d=r[s+2]*n;u+=Math.abs((e[c]-e[d])*(e[p+1]-e[c+1])-(e[c]-e[p])*(e[d+1]-e[c+1]))}return 0===i&&0===u?0:Math.abs((u-i)/i)},f.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,o=0;o<e.length;o++){for(var a=0;a<e[o].length;a++)for(var i=0;i<t;i++)n.vertices.push(e[o][a][i]);o>0&&(r+=e[o-1].length,n.holes.push(r))}return n},i.default=s;var T=o((function(e,t){!function(n){var o=t&&!t.nodeType&&t,a=e&&!e.nodeType&&e,i="object"==typeof r&&r;i.global!==i&&i.window!==i&&i.self!==i||(n=i);var s,f,h=2147483647,l=36,u=/^xn--/,c=/[^\x20-\x7E]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},v=Math.floor,x=String.fromCharCode;function g(e){throw RangeError(d[e])}function y(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function m(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+y((e=e.replace(p,".")).split("."),t).join(".")}function b(e){for(var t,n,r=[],o=0,a=e.length;o<a;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<a?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function w(e){return y(e,(function(e){var t="";return e>65535&&(t+=x((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=x(e)})).join("")}function A(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function E(e,t,n){var r=0;for(e=n?v(e/700):e>>1,e+=v(e/t);e>455;r+=l)e=v(e/35);return v(r+36*e/(e+38))}function _(e){var t,n,r,o,a,i,s,f,u,c,p,d=[],x=e.length,y=0,m=128,b=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&g("not-basic"),d.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<x;){for(a=y,i=1,s=l;o>=x&&g("invalid-input"),((f=(p=e.charCodeAt(o++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:l)>=l||f>v((h-y)/i))&&g("overflow"),y+=f*i,!(f<(u=s<=b?1:s>=b+26?26:s-b));s+=l)i>v(h/(c=l-u))&&g("overflow"),i*=c;b=E(y-a,t=d.length+1,0==a),v(y/t)>h-m&&g("overflow"),m+=v(y/t),y%=t,d.splice(y++,0,m)}return w(d)}function O(e){var t,n,r,o,a,i,s,f,u,c,p,d,y,m,w,_=[];for(d=(e=b(e)).length,t=128,n=0,a=72,i=0;i<d;++i)(p=e[i])<128&&_.push(x(p));for(r=o=_.length,o&&_.push("-");r<d;){for(s=h,i=0;i<d;++i)(p=e[i])>=t&&p<s&&(s=p);for(s-t>v((h-n)/(y=r+1))&&g("overflow"),n+=(s-t)*y,t=s,i=0;i<d;++i)if((p=e[i])<t&&++n>h&&g("overflow"),p==t){for(f=n,u=l;!(f<(c=u<=a?1:u>=a+26?26:u-a));u+=l)w=f-c,m=l-c,_.push(x(A(c+w%m,0))),f=v(w/m);_.push(x(A(f,0))),a=E(n,y,r==o),n=0,++r}++n,++t}return _.join("")}if(s={version:"1.3.2",ucs2:{decode:b,encode:w},decode:_,encode:O,toASCII:function(e){return m(e,(function(e){return c.test(e)?"xn--"+O(e):e}))},toUnicode:function(e){return m(e,(function(e){return u.test(e)?_(e.slice(4).toLowerCase()):e}))}},o&&a)if(e.exports==o)a.exports=s;else for(f in s)s.hasOwnProperty(f)&&(o[f]=s[f]);else n.punycode=s}(r)})),L=function(e){return"string"==typeof e},N=function(e){return"object"==typeof e&&null!==e},S=function(e){return null===e},q=function(e){return null==e};function Z(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var U=function(e,t,n,r){t=t||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(t);var i=1e3;r&&"number"==typeof r.maxKeys&&(i=r.maxKeys);var s=e.length;i>0&&s>i&&(s=i);for(var f=0;f<s;++f){var h,l,u,c,p=e[f].replace(a,"%20"),d=p.indexOf(n);d>=0?(h=p.substr(0,d),l=p.substr(d+1)):(h=p,l=""),u=decodeURIComponent(h),c=decodeURIComponent(l),Z(o,u)?Array.isArray(o[u])?o[u].push(c):o[u]=[o[u],c]:o[u]=c}return o},F=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},B=function(e,t,n,r){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(r){var o=encodeURIComponent(F(r))+n;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(F(e))})).join(t):o+encodeURIComponent(F(e[r]))})).join(t):r?encodeURIComponent(F(r))+n+encodeURIComponent(F(e)):""},z=o((function(e,t){t.decode=t.parse=U,t.encode=t.stringify=B})),X=ie,J=function(e,t){return ie(e,!1,!0).resolve(t)},W=function(e){L(e)&&(e=ie(e));if(!(e instanceof H))return H.prototype.format.call(e);return e.format()};function H(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var $=/^([a-z0-9.+-]+:)/i,G=/:[0-9]*$/,Y=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,K=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),V=["'"].concat(K),Q=["%","/","?",";","#"].concat(V),ee=["/","?","#"],te=/^[+a-z0-9A-Z_-]{0,63}$/,ne=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,re={javascript:!0,"javascript:":!0},oe={javascript:!0,"javascript:":!0},ae={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function ie(e,t,n){if(e&&N(e)&&e instanceof H)return e;var r=new H;return r.parse(e,t,n),r}H.prototype.parse=function(e,t,n){if(!L(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),o=-1!==r&&r<e.indexOf("#")?"?":"#",a=e.split(o);a[0]=a[0].replace(/\\/g,"/");var i=e=a.join(o);if(i=i.trim(),!n&&1===e.split("#").length){var s=Y.exec(i);if(s)return this.path=i,this.href=i,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?z.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var f=$.exec(i);if(f){var h=(f=f[0]).toLowerCase();this.protocol=h,i=i.substr(f.length)}if(n||f||i.match(/^\/\/[^@\/]+@[^@\/]+/)){var l="//"===i.substr(0,2);!l||f&&oe[f]||(i=i.substr(2),this.slashes=!0)}if(!oe[f]&&(l||f&&!ae[f])){for(var u,c,p=-1,d=0;d<ee.length;d++){-1!==(v=i.indexOf(ee[d]))&&(-1===p||v<p)&&(p=v)}-1!==(c=-1===p?i.lastIndexOf("@"):i.lastIndexOf("@",p))&&(u=i.slice(0,c),i=i.slice(c+1),this.auth=decodeURIComponent(u)),p=-1;for(d=0;d<Q.length;d++){var v;-1!==(v=i.indexOf(Q[d]))&&(-1===p||v<p)&&(p=v)}-1===p&&(p=i.length),this.host=i.slice(0,p),i=i.slice(p),this.parseHost(),this.hostname=this.hostname||"";var x="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!x)for(var g=this.hostname.split(/\./),y=(d=0,g.length);d<y;d++){var m=g[d];if(m&&!m.match(te)){for(var b="",w=0,A=m.length;w<A;w++)m.charCodeAt(w)>127?b+="x":b+=m[w];if(!b.match(te)){var E=g.slice(0,d),_=g.slice(d+1),O=m.match(ne);O&&(E.push(O[1]),_.unshift(O[2])),_.length&&(i="/"+_.join(".")+i),this.hostname=E.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),x||(this.hostname=T.toASCII(this.hostname));var C=this.port?":"+this.port:"",k=this.hostname||"";this.host=k+C,this.href+=this.host,x&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==i[0]&&(i="/"+i))}if(!re[h])for(d=0,y=V.length;d<y;d++){var I=V[d];if(-1!==i.indexOf(I)){var M=encodeURIComponent(I);M===I&&(M=escape(I)),i=i.split(I).join(M)}}var D=i.indexOf("#");-1!==D&&(this.hash=i.substr(D),i=i.slice(0,D));var j=i.indexOf("?");if(-1!==j?(this.search=i.substr(j),this.query=i.substr(j+1),t&&(this.query=z.parse(this.query)),i=i.slice(0,j)):t&&(this.search="",this.query={}),i&&(this.pathname=i),ae[h]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){C=this.pathname||"";var R=this.search||"";this.path=C+R}return this.href=this.format(),this},H.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&N(this.query)&&Object.keys(this.query).length&&(a=z.stringify(this.query));var i=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||ae[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),i&&"?"!==i.charAt(0)&&(i="?"+i),t+o+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(i=i.replace("#","%23"))+r},H.prototype.resolve=function(e){return this.resolveObject(ie(e,!1,!0)).format()},H.prototype.resolveObject=function(e){if(L(e)){var t=new H;t.parse(e,!1,!0),e=t}for(var n=new H,r=Object.keys(this),o=0;o<r.length;o++){var a=r[o];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var i=Object.keys(e),s=0;s<i.length;s++){var f=i[s];"protocol"!==f&&(n[f]=e[f])}return ae[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!ae[e.protocol]){for(var h=Object.keys(e),l=0;l<h.length;l++){var u=h[l];n[u]=e[u]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||oe[e.protocol])n.pathname=e.pathname;else{for(var c=(e.pathname||"").split("/");c.length&&!(e.host=c.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==c[0]&&c.unshift(""),c.length<2&&c.unshift(""),n.pathname=c.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var p=n.pathname||"",d=n.search||"";n.path=p+d}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var v=n.pathname&&"/"===n.pathname.charAt(0),x=e.host||e.pathname&&"/"===e.pathname.charAt(0),g=x||v||n.host&&e.pathname,y=g,m=n.pathname&&n.pathname.split("/")||[],b=(c=e.pathname&&e.pathname.split("/")||[],n.protocol&&!ae[n.protocol]);if(b&&(n.hostname="",n.port=null,n.host&&(""===m[0]?m[0]=n.host:m.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===c[0]?c[0]=e.host:c.unshift(e.host)),e.host=null),g=g&&(""===c[0]||""===m[0])),x)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,m=c;else if(c.length)m||(m=[]),m.pop(),m=m.concat(c),n.search=e.search,n.query=e.query;else if(!q(e.search)){if(b)n.hostname=n.host=m.shift(),(O=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=O.shift(),n.host=n.hostname=O.shift());return n.search=e.search,n.query=e.query,S(n.pathname)&&S(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!m.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var w=m.slice(-1)[0],A=(n.host||e.host||m.length>1)&&("."===w||".."===w)||""===w,E=0,_=m.length;_>=0;_--)"."===(w=m[_])?m.splice(_,1):".."===w?(m.splice(_,1),E++):E&&(m.splice(_,1),E--);if(!g&&!y)for(;E--;E)m.unshift("..");!g||""===m[0]||m[0]&&"/"===m[0].charAt(0)||m.unshift(""),A&&"/"!==m.join("/").substr(-1)&&m.push("");var O,C=""===m[0]||m[0]&&"/"===m[0].charAt(0);b&&(n.hostname=n.host=C?"":m.length?m.shift():"",(O=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=O.shift(),n.host=n.hostname=O.shift()));return(g=g||n.host&&m.length)&&!C&&m.unshift(""),m.length?n.pathname=m.join("/"):(n.pathname=null,n.path=null),S(n.pathname)&&S(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},H.prototype.parseHost=function(){var e=this.host,t=G.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var se={parse:X,format:W,resolve:J};t.settings.RETINA_PREFIX=/@([0-9\.]+)x/,t.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var fe,he=!1;var le={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var ue=function(){for(var e=[],t=[],r=0;r<32;r++)e[r]=r,t[r]=r;e[n.BLEND_MODES.NORMAL_NPM]=n.BLEND_MODES.NORMAL,e[n.BLEND_MODES.ADD_NPM]=n.BLEND_MODES.ADD,e[n.BLEND_MODES.SCREEN_NPM]=n.BLEND_MODES.SCREEN,t[n.BLEND_MODES.NORMAL]=n.BLEND_MODES.NORMAL_NPM,t[n.BLEND_MODES.ADD]=n.BLEND_MODES.ADD_NPM,t[n.BLEND_MODES.SCREEN]=n.BLEND_MODES.SCREEN_NPM;var o=[];return o.push(t),o.push(e),o}();function ce(e){if(4===e.BYTES_PER_ELEMENT)return e instanceof Float32Array?"Float32Array":e instanceof Uint32Array?"Uint32Array":"Int32Array";if(2===e.BYTES_PER_ELEMENT){if(e instanceof Uint16Array)return"Uint16Array"}else if(1===e.BYTES_PER_ELEMENT&&e instanceof Uint8Array)return"Uint8Array";return null}var pe={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array};var de=0;var ve={};var xe=Object.create(null),ge=Object.create(null);var ye=function(){function e(e,n,r){this.canvas=t.settings.ADAPTER.createCanvas(),this.context=this.canvas.getContext("2d"),this.resolution=r||t.settings.RESOLUTION,this.resize(e,n)}return e.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},e.prototype.resize=function(e,t){this.canvas.width=Math.round(e*this.resolution),this.canvas.height=Math.round(t*this.resolution)},e.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(e.prototype,"width",{get:function(){return this.canvas.width},set:function(e){this.canvas.width=Math.round(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.canvas.height},set:function(e){this.canvas.height=Math.round(e)},enumerable:!1,configurable:!0}),e}();var me,be=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i;return Object.defineProperty(e,"isMobile",{enumerable:!0,get:function(){return t.isMobile}}),e.BaseTextureCache=ge,e.CanvasRenderTarget=ye,e.DATA_URI=be,e.EventEmitter=a,e.ProgramCache={},e.TextureCache=xe,e.clearTextureCache=function(){var e;for(e in xe)delete xe[e];for(e in ge)delete ge[e]},e.correctBlendMode=function(e,t){return ue[t?1:0][e]},e.createIndicesForQuads=function(e,t){void 0===t&&(t=null);var n=6*e;if((t=t||new Uint16Array(n)).length!==n)throw new Error("Out buffer length is incorrect, got "+t.length+" and expected "+n);for(var r=0,o=0;r<n;r+=6,o+=4)t[r+0]=o+0,t[r+1]=o+1,t[r+2]=o+2,t[r+3]=o+0,t[r+4]=o+2,t[r+5]=o+3;return t},e.decomposeDataUri=function(e){var t=be.exec(e);if(t)return{mediaType:t[1]?t[1].toLowerCase():void 0,subType:t[2]?t[2].toLowerCase():void 0,charset:t[3]?t[3].toLowerCase():void 0,encoding:t[4]?t[4].toLowerCase():void 0,data:t[5]}},e.deprecation=function(e,t,n){if(void 0===n&&(n=3),!ve[t]){var r=(new Error).stack;void 0===r?console.warn("PixiJS Deprecation Warning: ",t+"\nDeprecated since v"+e):(r=r.split("\n").splice(n).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",t+"\nDeprecated since v"+e),console.warn(r),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",t+"\nDeprecated since v"+e),console.warn(r))),ve[t]=!0}},e.destroyTextureCache=function(){var e;for(e in xe)xe[e].destroy();for(e in ge)ge[e].destroy()},e.determineCrossOrigin=function(e,t){if(void 0===t&&(t=globalThis.location),0===e.indexOf("data:"))return"";t=t||globalThis.location,me||(me=document.createElement("a")),me.href=e;var n=se.parse(me.href),r=!n.port&&""===t.port||n.port===t.port;return n.hostname===t.hostname&&r&&n.protocol===t.protocol?"":"anonymous"},e.earcut=i,e.getBufferType=ce,e.getResolutionOfUrl=function(e,n){var r=t.settings.RETINA_PREFIX.exec(e);return r?parseFloat(r[1]):void 0!==n?n:1},e.hex2rgb=function(e,t){return void 0===t&&(t=[]),t[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(255&e)/255,t},e.hex2string=function(e){var t=e.toString(16);return"#"+(t="000000".substring(0,6-t.length)+t)},e.interleaveTypedArrays=function(e,t){for(var n=0,r=0,o={},a=0;a<e.length;a++)r+=t[a],n+=e[a].length;var i=new ArrayBuffer(4*n),s=null,f=0;for(a=0;a<e.length;a++){var h=t[a],l=e[a],u=ce(l);o[u]||(o[u]=new pe[u](i)),s=o[u];for(var c=0;c<l.length;c++){s[(c/h|0)*r+f+c%h]=l[c]}f+=h}return new Float32Array(i)},e.isPow2=function(e){return!(e&e-1||!e)},e.isWebGLSupported=function(){return void 0===fe&&(fe=function(){var e={stencil:!0,failIfMajorPerformanceCaveat:t.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!t.settings.ADAPTER.getWebGLRenderingContext())return!1;var n=t.settings.ADAPTER.createCanvas(),r=n.getContext("webgl",e)||n.getContext("experimental-webgl",e),o=!(!r||!r.getContextAttributes().stencil);if(r){var a=r.getExtension("WEBGL_lose_context");a&&a.loseContext()}return r=null,o}catch(e){return!1}}()),fe},e.log2=function(e){var t=(e>65535?1:0)<<4,n=((e>>>=t)>255?1:0)<<3;return t|=n,t|=n=((e>>>=n)>15?1:0)<<2,(t|=n=((e>>>=n)>3?1:0)<<1)|(e>>>=n)>>1},e.nextPow2=function(e){return e+=0===e?1:0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1},e.premultiplyBlendMode=ue,e.premultiplyRgba=function(e,t,n,r){return n=n||new Float32Array(4),r||void 0===r?(n[0]=e[0]*t,n[1]=e[1]*t,n[2]=e[2]*t):(n[0]=e[0],n[1]=e[1],n[2]=e[2]),n[3]=t,n},e.premultiplyTint=function(e,t){if(1===t)return(255*t<<24)+e;if(0===t)return 0;var n=e>>16&255,r=e>>8&255,o=255&e;return(255*t<<24)+((n=n*t+.5|0)<<16)+((r=r*t+.5|0)<<8)+(o=o*t+.5|0)},e.premultiplyTintToRgba=function(e,t,n,r){return(n=n||new Float32Array(4))[0]=(e>>16&255)/255,n[1]=(e>>8&255)/255,n[2]=(255&e)/255,(r||void 0===r)&&(n[0]*=t,n[1]*=t,n[2]*=t),n[3]=t,n},e.removeItems=function(e,t,n){var r,o=e.length;if(!(t>=o||0===n)){var a=o-(n=t+n>o?o-t:n);for(r=t;r<a;++r)e[r]=e[r+n];e.length=a}},e.rgb2hex=function(e){return(255*e[0]<<16)+(255*e[1]<<8)+(255*e[2]|0)},e.sayHello=function(e){var n;if(!he){if(t.settings.ADAPTER.getNavigator().userAgent.toLowerCase().indexOf("chrome")>-1){var r=["\n %c %c %c PixiJS 6.5.0-rc.2 - ✰ "+e+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(n=globalThis.console).log.apply(n,r)}else globalThis.console&&globalThis.console.log("PixiJS 6.5.0-rc.2 - "+e+" - http://www.pixijs.com/");he=!0}},e.sign=function(e){return 0===e?0:e<0?-1:1},e.skipHello=function(){he=!0},e.string2hex=function(e){return"string"==typeof e&&"#"===(e=le[e.toLowerCase()]||e)[0]&&(e=e.slice(1)),parseInt(e,16)},e.trimCanvas=function(e){var t,n,r,o=e.width,a=e.height,i=e.getContext("2d"),s=i.getImageData(0,0,o,a).data,f=s.length,h={top:null,left:null,right:null,bottom:null},l=null;for(t=0;t<f;t+=4)0!==s[t+3]&&(n=t/4%o,r=~~(t/4/o),null===h.top&&(h.top=r),(null===h.left||n<h.left)&&(h.left=n),(null===h.right||h.right<n)&&(h.right=n+1),(null===h.bottom||h.bottom<r)&&(h.bottom=r));return null!==h.top&&(o=h.right-h.left,a=h.bottom-h.top+1,l=i.getImageData(h.left,h.top,o,a)),{height:a,width:o,data:l}},e.uid=function(){return++de},e.url=se,Object.defineProperty(e,"__esModule",{value:!0}),e}({},PIXI,PIXI);Object.assign(this.PIXI.utils,_pixi_utils);
//# sourceMappingURL=utils.min.js.map
/*!
* @pixi/utils - v6.5.0-rc
* Compiled Thu, 14 Jul 2022 18:30:46 UTC
* @pixi/utils - v6.5.0-rc.2
* Compiled Fri, 15 Jul 2022 18:50:14 UTC
*

@@ -73,3 +73,3 @@ * @pixi/utils is licensed under the MIT License.

var saidHello = false;
var VERSION = '6.5.0-rc';
var VERSION = '6.5.0-rc.2';
/**

@@ -76,0 +76,0 @@ * Skips the hello message of renderers that are created after this is run.

/*!
* @pixi/utils - v6.5.0-rc
* Compiled Thu, 14 Jul 2022 18:30:46 UTC
* @pixi/utils - v6.5.0-rc.2
* Compiled Fri, 15 Jul 2022 18:50:14 UTC
*

@@ -8,3 +8,3 @@ * @pixi/utils is licensed under the MIT License.

*/
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@pixi/settings"),r=require("eventemitter3"),t=require("earcut"),n=require("url"),a=require("@pixi/constants");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=o(r),f=o(t),l={parse:n.parse,format:n.format,resolve:n.resolve};e.settings.RETINA_PREFIX=/@([0-9\.]+)x/,e.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var s,c=!1;var d={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var u=function(){for(var e=[],r=[],t=0;t<32;t++)e[t]=t,r[t]=t;e[a.BLEND_MODES.NORMAL_NPM]=a.BLEND_MODES.NORMAL,e[a.BLEND_MODES.ADD_NPM]=a.BLEND_MODES.ADD,e[a.BLEND_MODES.SCREEN_NPM]=a.BLEND_MODES.SCREEN,r[a.BLEND_MODES.NORMAL]=a.BLEND_MODES.NORMAL_NPM,r[a.BLEND_MODES.ADD]=a.BLEND_MODES.ADD_NPM,r[a.BLEND_MODES.SCREEN]=a.BLEND_MODES.SCREEN_NPM;var n=[];return n.push(r),n.push(e),n}();function g(e){if(4===e.BYTES_PER_ELEMENT)return e instanceof Float32Array?"Float32Array":e instanceof Uint32Array?"Uint32Array":"Int32Array";if(2===e.BYTES_PER_ELEMENT){if(e instanceof Uint16Array)return"Uint16Array"}else if(1===e.BYTES_PER_ELEMENT&&e instanceof Uint8Array)return"Uint8Array";return null}var p={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array};var b=0;var h={};var v=Object.create(null),y=Object.create(null);var x=function(){function r(r,t,n){this.canvas=e.settings.ADAPTER.createCanvas(),this.context=this.canvas.getContext("2d"),this.resolution=n||e.settings.RESOLUTION,this.resize(r,t)}return r.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},r.prototype.resize=function(e,r){this.canvas.width=Math.round(e*this.resolution),this.canvas.height=Math.round(r*this.resolution)},r.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(r.prototype,"width",{get:function(){return this.canvas.width},set:function(e){this.canvas.width=Math.round(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this.canvas.height},set:function(e){this.canvas.height=Math.round(e)},enumerable:!1,configurable:!0}),r}();var m,E=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i;Object.defineProperty(exports,"isMobile",{enumerable:!0,get:function(){return e.isMobile}}),Object.defineProperty(exports,"EventEmitter",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(exports,"earcut",{enumerable:!0,get:function(){return f.default}}),exports.BaseTextureCache=y,exports.CanvasRenderTarget=x,exports.DATA_URI=E,exports.ProgramCache={},exports.TextureCache=v,exports.clearTextureCache=function(){var e;for(e in v)delete v[e];for(e in y)delete y[e]},exports.correctBlendMode=function(e,r){return u[r?1:0][e]},exports.createIndicesForQuads=function(e,r){void 0===r&&(r=null);var t=6*e;if((r=r||new Uint16Array(t)).length!==t)throw new Error("Out buffer length is incorrect, got "+r.length+" and expected "+t);for(var n=0,a=0;n<t;n+=6,a+=4)r[n+0]=a+0,r[n+1]=a+1,r[n+2]=a+2,r[n+3]=a+0,r[n+4]=a+2,r[n+5]=a+3;return r},exports.decomposeDataUri=function(e){var r=E.exec(e);if(r)return{mediaType:r[1]?r[1].toLowerCase():void 0,subType:r[2]?r[2].toLowerCase():void 0,charset:r[3]?r[3].toLowerCase():void 0,encoding:r[4]?r[4].toLowerCase():void 0,data:r[5]}},exports.deprecation=function(e,r,t){if(void 0===t&&(t=3),!h[r]){var n=(new Error).stack;void 0===n?console.warn("PixiJS Deprecation Warning: ",r+"\nDeprecated since v"+e):(n=n.split("\n").splice(t).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",r+"\nDeprecated since v"+e),console.warn(n),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",r+"\nDeprecated since v"+e),console.warn(n))),h[r]=!0}},exports.destroyTextureCache=function(){var e;for(e in v)v[e].destroy();for(e in y)y[e].destroy()},exports.determineCrossOrigin=function(e,r){if(void 0===r&&(r=globalThis.location),0===e.indexOf("data:"))return"";r=r||globalThis.location,m||(m=document.createElement("a")),m.href=e;var t=l.parse(m.href),n=!t.port&&""===r.port||t.port===r.port;return t.hostname===r.hostname&&n&&t.protocol===r.protocol?"":"anonymous"},exports.getBufferType=g,exports.getResolutionOfUrl=function(r,t){var n=e.settings.RETINA_PREFIX.exec(r);return n?parseFloat(n[1]):void 0!==t?t:1},exports.hex2rgb=function(e,r){return void 0===r&&(r=[]),r[0]=(e>>16&255)/255,r[1]=(e>>8&255)/255,r[2]=(255&e)/255,r},exports.hex2string=function(e){var r=e.toString(16);return"#"+(r="000000".substring(0,6-r.length)+r)},exports.interleaveTypedArrays=function(e,r){for(var t=0,n=0,a={},o=0;o<e.length;o++)n+=r[o],t+=e[o].length;var i=new ArrayBuffer(4*t),f=null,l=0;for(o=0;o<e.length;o++){var s=r[o],c=e[o],d=g(c);a[d]||(a[d]=new p[d](i)),f=a[d];for(var u=0;u<c.length;u++){f[(u/s|0)*n+l+u%s]=c[u]}l+=s}return new Float32Array(i)},exports.isPow2=function(e){return!(e&e-1||!e)},exports.isWebGLSupported=function(){return void 0===s&&(s=function(){var r={stencil:!0,failIfMajorPerformanceCaveat:e.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!e.settings.ADAPTER.getWebGLRenderingContext())return!1;var t=e.settings.ADAPTER.createCanvas(),n=t.getContext("webgl",r)||t.getContext("experimental-webgl",r),a=!(!n||!n.getContextAttributes().stencil);if(n){var o=n.getExtension("WEBGL_lose_context");o&&o.loseContext()}return n=null,a}catch(e){return!1}}()),s},exports.log2=function(e){var r=(e>65535?1:0)<<4,t=((e>>>=r)>255?1:0)<<3;return r|=t,r|=t=((e>>>=t)>15?1:0)<<2,(r|=t=((e>>>=t)>3?1:0)<<1)|(e>>>=t)>>1},exports.nextPow2=function(e){return e+=0===e?1:0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1},exports.premultiplyBlendMode=u,exports.premultiplyRgba=function(e,r,t,n){return t=t||new Float32Array(4),n||void 0===n?(t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r):(t[0]=e[0],t[1]=e[1],t[2]=e[2]),t[3]=r,t},exports.premultiplyTint=function(e,r){if(1===r)return(255*r<<24)+e;if(0===r)return 0;var t=e>>16&255,n=e>>8&255,a=255&e;return(255*r<<24)+((t=t*r+.5|0)<<16)+((n=n*r+.5|0)<<8)+(a=a*r+.5|0)},exports.premultiplyTintToRgba=function(e,r,t,n){return(t=t||new Float32Array(4))[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(255&e)/255,(n||void 0===n)&&(t[0]*=r,t[1]*=r,t[2]*=r),t[3]=r,t},exports.removeItems=function(e,r,t){var n,a=e.length;if(!(r>=a||0===t)){var o=a-(t=r+t>a?a-r:t);for(n=r;n<o;++n)e[n]=e[n+t];e.length=o}},exports.rgb2hex=function(e){return(255*e[0]<<16)+(255*e[1]<<8)+(255*e[2]|0)},exports.sayHello=function(r){var t;if(!c){if(e.settings.ADAPTER.getNavigator().userAgent.toLowerCase().indexOf("chrome")>-1){var n=["\n %c %c %c PixiJS 6.5.0-rc - ✰ "+r+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(t=globalThis.console).log.apply(t,n)}else globalThis.console&&globalThis.console.log("PixiJS 6.5.0-rc - "+r+" - http://www.pixijs.com/");c=!0}},exports.sign=function(e){return 0===e?0:e<0?-1:1},exports.skipHello=function(){c=!0},exports.string2hex=function(e){return"string"==typeof e&&"#"===(e=d[e.toLowerCase()]||e)[0]&&(e=e.slice(1)),parseInt(e,16)},exports.trimCanvas=function(e){var r,t,n,a=e.width,o=e.height,i=e.getContext("2d"),f=i.getImageData(0,0,a,o).data,l=f.length,s={top:null,left:null,right:null,bottom:null},c=null;for(r=0;r<l;r+=4)0!==f[r+3]&&(t=r/4%a,n=~~(r/4/a),null===s.top&&(s.top=n),(null===s.left||t<s.left)&&(s.left=t),(null===s.right||s.right<t)&&(s.right=t+1),(null===s.bottom||s.bottom<n)&&(s.bottom=n));return null!==s.top&&(a=s.right-s.left,o=s.bottom-s.top+1,c=i.getImageData(s.left,s.top,a,o)),{height:o,width:a,data:c}},exports.uid=function(){return++b},exports.url=l;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@pixi/settings"),r=require("eventemitter3"),t=require("earcut"),n=require("url"),a=require("@pixi/constants");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=o(r),f=o(t),l={parse:n.parse,format:n.format,resolve:n.resolve};e.settings.RETINA_PREFIX=/@([0-9\.]+)x/,e.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var s,c=!1;var d={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var u=function(){for(var e=[],r=[],t=0;t<32;t++)e[t]=t,r[t]=t;e[a.BLEND_MODES.NORMAL_NPM]=a.BLEND_MODES.NORMAL,e[a.BLEND_MODES.ADD_NPM]=a.BLEND_MODES.ADD,e[a.BLEND_MODES.SCREEN_NPM]=a.BLEND_MODES.SCREEN,r[a.BLEND_MODES.NORMAL]=a.BLEND_MODES.NORMAL_NPM,r[a.BLEND_MODES.ADD]=a.BLEND_MODES.ADD_NPM,r[a.BLEND_MODES.SCREEN]=a.BLEND_MODES.SCREEN_NPM;var n=[];return n.push(r),n.push(e),n}();function g(e){if(4===e.BYTES_PER_ELEMENT)return e instanceof Float32Array?"Float32Array":e instanceof Uint32Array?"Uint32Array":"Int32Array";if(2===e.BYTES_PER_ELEMENT){if(e instanceof Uint16Array)return"Uint16Array"}else if(1===e.BYTES_PER_ELEMENT&&e instanceof Uint8Array)return"Uint8Array";return null}var p={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array};var b=0;var h={};var v=Object.create(null),y=Object.create(null);var x=function(){function r(r,t,n){this.canvas=e.settings.ADAPTER.createCanvas(),this.context=this.canvas.getContext("2d"),this.resolution=n||e.settings.RESOLUTION,this.resize(r,t)}return r.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},r.prototype.resize=function(e,r){this.canvas.width=Math.round(e*this.resolution),this.canvas.height=Math.round(r*this.resolution)},r.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(r.prototype,"width",{get:function(){return this.canvas.width},set:function(e){this.canvas.width=Math.round(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this.canvas.height},set:function(e){this.canvas.height=Math.round(e)},enumerable:!1,configurable:!0}),r}();var m,E=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i;Object.defineProperty(exports,"isMobile",{enumerable:!0,get:function(){return e.isMobile}}),Object.defineProperty(exports,"EventEmitter",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(exports,"earcut",{enumerable:!0,get:function(){return f.default}}),exports.BaseTextureCache=y,exports.CanvasRenderTarget=x,exports.DATA_URI=E,exports.ProgramCache={},exports.TextureCache=v,exports.clearTextureCache=function(){var e;for(e in v)delete v[e];for(e in y)delete y[e]},exports.correctBlendMode=function(e,r){return u[r?1:0][e]},exports.createIndicesForQuads=function(e,r){void 0===r&&(r=null);var t=6*e;if((r=r||new Uint16Array(t)).length!==t)throw new Error("Out buffer length is incorrect, got "+r.length+" and expected "+t);for(var n=0,a=0;n<t;n+=6,a+=4)r[n+0]=a+0,r[n+1]=a+1,r[n+2]=a+2,r[n+3]=a+0,r[n+4]=a+2,r[n+5]=a+3;return r},exports.decomposeDataUri=function(e){var r=E.exec(e);if(r)return{mediaType:r[1]?r[1].toLowerCase():void 0,subType:r[2]?r[2].toLowerCase():void 0,charset:r[3]?r[3].toLowerCase():void 0,encoding:r[4]?r[4].toLowerCase():void 0,data:r[5]}},exports.deprecation=function(e,r,t){if(void 0===t&&(t=3),!h[r]){var n=(new Error).stack;void 0===n?console.warn("PixiJS Deprecation Warning: ",r+"\nDeprecated since v"+e):(n=n.split("\n").splice(t).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",r+"\nDeprecated since v"+e),console.warn(n),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",r+"\nDeprecated since v"+e),console.warn(n))),h[r]=!0}},exports.destroyTextureCache=function(){var e;for(e in v)v[e].destroy();for(e in y)y[e].destroy()},exports.determineCrossOrigin=function(e,r){if(void 0===r&&(r=globalThis.location),0===e.indexOf("data:"))return"";r=r||globalThis.location,m||(m=document.createElement("a")),m.href=e;var t=l.parse(m.href),n=!t.port&&""===r.port||t.port===r.port;return t.hostname===r.hostname&&n&&t.protocol===r.protocol?"":"anonymous"},exports.getBufferType=g,exports.getResolutionOfUrl=function(r,t){var n=e.settings.RETINA_PREFIX.exec(r);return n?parseFloat(n[1]):void 0!==t?t:1},exports.hex2rgb=function(e,r){return void 0===r&&(r=[]),r[0]=(e>>16&255)/255,r[1]=(e>>8&255)/255,r[2]=(255&e)/255,r},exports.hex2string=function(e){var r=e.toString(16);return"#"+(r="000000".substring(0,6-r.length)+r)},exports.interleaveTypedArrays=function(e,r){for(var t=0,n=0,a={},o=0;o<e.length;o++)n+=r[o],t+=e[o].length;var i=new ArrayBuffer(4*t),f=null,l=0;for(o=0;o<e.length;o++){var s=r[o],c=e[o],d=g(c);a[d]||(a[d]=new p[d](i)),f=a[d];for(var u=0;u<c.length;u++){f[(u/s|0)*n+l+u%s]=c[u]}l+=s}return new Float32Array(i)},exports.isPow2=function(e){return!(e&e-1||!e)},exports.isWebGLSupported=function(){return void 0===s&&(s=function(){var r={stencil:!0,failIfMajorPerformanceCaveat:e.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!e.settings.ADAPTER.getWebGLRenderingContext())return!1;var t=e.settings.ADAPTER.createCanvas(),n=t.getContext("webgl",r)||t.getContext("experimental-webgl",r),a=!(!n||!n.getContextAttributes().stencil);if(n){var o=n.getExtension("WEBGL_lose_context");o&&o.loseContext()}return n=null,a}catch(e){return!1}}()),s},exports.log2=function(e){var r=(e>65535?1:0)<<4,t=((e>>>=r)>255?1:0)<<3;return r|=t,r|=t=((e>>>=t)>15?1:0)<<2,(r|=t=((e>>>=t)>3?1:0)<<1)|(e>>>=t)>>1},exports.nextPow2=function(e){return e+=0===e?1:0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1},exports.premultiplyBlendMode=u,exports.premultiplyRgba=function(e,r,t,n){return t=t||new Float32Array(4),n||void 0===n?(t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r):(t[0]=e[0],t[1]=e[1],t[2]=e[2]),t[3]=r,t},exports.premultiplyTint=function(e,r){if(1===r)return(255*r<<24)+e;if(0===r)return 0;var t=e>>16&255,n=e>>8&255,a=255&e;return(255*r<<24)+((t=t*r+.5|0)<<16)+((n=n*r+.5|0)<<8)+(a=a*r+.5|0)},exports.premultiplyTintToRgba=function(e,r,t,n){return(t=t||new Float32Array(4))[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(255&e)/255,(n||void 0===n)&&(t[0]*=r,t[1]*=r,t[2]*=r),t[3]=r,t},exports.removeItems=function(e,r,t){var n,a=e.length;if(!(r>=a||0===t)){var o=a-(t=r+t>a?a-r:t);for(n=r;n<o;++n)e[n]=e[n+t];e.length=o}},exports.rgb2hex=function(e){return(255*e[0]<<16)+(255*e[1]<<8)+(255*e[2]|0)},exports.sayHello=function(r){var t;if(!c){if(e.settings.ADAPTER.getNavigator().userAgent.toLowerCase().indexOf("chrome")>-1){var n=["\n %c %c %c PixiJS 6.5.0-rc.2 - ✰ "+r+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(t=globalThis.console).log.apply(t,n)}else globalThis.console&&globalThis.console.log("PixiJS 6.5.0-rc.2 - "+r+" - http://www.pixijs.com/");c=!0}},exports.sign=function(e){return 0===e?0:e<0?-1:1},exports.skipHello=function(){c=!0},exports.string2hex=function(e){return"string"==typeof e&&"#"===(e=d[e.toLowerCase()]||e)[0]&&(e=e.slice(1)),parseInt(e,16)},exports.trimCanvas=function(e){var r,t,n,a=e.width,o=e.height,i=e.getContext("2d"),f=i.getImageData(0,0,a,o).data,l=f.length,s={top:null,left:null,right:null,bottom:null},c=null;for(r=0;r<l;r+=4)0!==f[r+3]&&(t=r/4%a,n=~~(r/4/a),null===s.top&&(s.top=n),(null===s.left||t<s.left)&&(s.left=t),(null===s.right||s.right<t)&&(s.right=t+1),(null===s.bottom||s.bottom<n)&&(s.bottom=n));return null!==s.top&&(a=s.right-s.left,o=s.bottom-s.top+1,c=i.getImageData(s.left,s.top,a,o)),{height:o,width:a,data:c}},exports.uid=function(){return++b},exports.url=l;
//# sourceMappingURL=utils.min.js.map
/*!
* @pixi/utils - v6.5.0-rc
* Compiled Thu, 14 Jul 2022 18:30:46 UTC
* @pixi/utils - v6.5.0-rc.2
* Compiled Fri, 15 Jul 2022 18:50:14 UTC
*

@@ -65,3 +65,3 @@ * @pixi/utils is licensed under the MIT License.

var saidHello = false;
var VERSION = '6.5.0-rc';
var VERSION = '6.5.0-rc.2';
/**

@@ -68,0 +68,0 @@ * Skips the hello message of renderers that are created after this is run.

/*!
* @pixi/utils - v6.5.0-rc
* Compiled Thu, 14 Jul 2022 18:30:46 UTC
* @pixi/utils - v6.5.0-rc.2
* Compiled Fri, 15 Jul 2022 18:50:14 UTC
*

@@ -8,3 +8,3 @@ * @pixi/utils is licensed under the MIT License.

*/
import{settings as e}from"@pixi/settings";export{isMobile}from"@pixi/settings";export{default as EventEmitter}from"eventemitter3";export{default as earcut}from"earcut";import{parse as r,format as t,resolve as n}from"url";import{BLEND_MODES as a}from"@pixi/constants";var o={parse:r,format:t,resolve:n};e.RETINA_PREFIX=/@([0-9\.]+)x/,e.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var f,i=!1;function l(){i=!0}function c(r){var t;if(!i){if(e.ADAPTER.getNavigator().userAgent.toLowerCase().indexOf("chrome")>-1){var n=["\n %c %c %c PixiJS 6.5.0-rc - ✰ "+r+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(t=globalThis.console).log.apply(t,n)}else globalThis.console&&globalThis.console.log("PixiJS 6.5.0-rc - "+r+" - http://www.pixijs.com/");i=!0}}function d(){return void 0===f&&(f=function(){var r={stencil:!0,failIfMajorPerformanceCaveat:e.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!e.ADAPTER.getWebGLRenderingContext())return!1;var t=e.ADAPTER.createCanvas(),n=t.getContext("webgl",r)||t.getContext("experimental-webgl",r),a=!(!n||!n.getContextAttributes().stencil);if(n){var o=n.getExtension("WEBGL_lose_context");o&&o.loseContext()}return n=null,a}catch(e){return!1}}()),f}var u={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function s(e,r){return void 0===r&&(r=[]),r[0]=(e>>16&255)/255,r[1]=(e>>8&255)/255,r[2]=(255&e)/255,r}function g(e){var r=e.toString(16);return"#"+(r="000000".substring(0,6-r.length)+r)}function h(e){return"string"==typeof e&&"#"===(e=u[e.toLowerCase()]||e)[0]&&(e=e.slice(1)),parseInt(e,16)}function b(e){return(255*e[0]<<16)+(255*e[1]<<8)+(255*e[2]|0)}var p=function(){for(var e=[],r=[],t=0;t<32;t++)e[t]=t,r[t]=t;e[a.NORMAL_NPM]=a.NORMAL,e[a.ADD_NPM]=a.ADD,e[a.SCREEN_NPM]=a.SCREEN,r[a.NORMAL]=a.NORMAL_NPM,r[a.ADD]=a.ADD_NPM,r[a.SCREEN]=a.SCREEN_NPM;var n=[];return n.push(r),n.push(e),n}();function v(e,r){return p[r?1:0][e]}function m(e,r,t,n){return t=t||new Float32Array(4),n||void 0===n?(t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r):(t[0]=e[0],t[1]=e[1],t[2]=e[2]),t[3]=r,t}function y(e,r){if(1===r)return(255*r<<24)+e;if(0===r)return 0;var t=e>>16&255,n=e>>8&255,a=255&e;return(255*r<<24)+((t=t*r+.5|0)<<16)+((n=n*r+.5|0)<<8)+(a=a*r+.5|0)}function w(e,r,t,n){return(t=t||new Float32Array(4))[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(255&e)/255,(n||void 0===n)&&(t[0]*=r,t[1]*=r,t[2]*=r),t[3]=r,t}function A(e,r){void 0===r&&(r=null);var t=6*e;if((r=r||new Uint16Array(t)).length!==t)throw new Error("Out buffer length is incorrect, got "+r.length+" and expected "+t);for(var n=0,a=0;n<t;n+=6,a+=4)r[n+0]=a+0,r[n+1]=a+1,r[n+2]=a+2,r[n+3]=a+0,r[n+4]=a+2,r[n+5]=a+3;return r}function k(e){if(4===e.BYTES_PER_ELEMENT)return e instanceof Float32Array?"Float32Array":e instanceof Uint32Array?"Uint32Array":"Int32Array";if(2===e.BYTES_PER_ELEMENT){if(e instanceof Uint16Array)return"Uint16Array"}else if(1===e.BYTES_PER_ELEMENT&&e instanceof Uint8Array)return"Uint8Array";return null}var E={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array};function x(e,r){for(var t=0,n=0,a={},o=0;o<e.length;o++)n+=r[o],t+=e[o].length;var f=new ArrayBuffer(4*t),i=null,l=0;for(o=0;o<e.length;o++){var c=r[o],d=e[o],u=k(d);a[u]||(a[u]=new E[u](f)),i=a[u];for(var s=0;s<d.length;s++){i[(s/c|0)*n+l+s%c]=d[s]}l+=c}return new Float32Array(f)}function R(e){return e+=0===e?1:0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1}function C(e){return!(e&e-1||!e)}function P(e){var r=(e>65535?1:0)<<4,t=((e>>>=r)>255?1:0)<<3;return r|=t,r|=t=((e>>>=t)>15?1:0)<<2,(r|=t=((e>>>=t)>3?1:0)<<1)|(e>>>=t)>>1}function _(e,r,t){var n,a=e.length;if(!(r>=a||0===t)){var o=a-(t=r+t>a?a-r:t);for(n=r;n<o;++n)e[n]=e[n+t];e.length=o}}function M(e){return 0===e?0:e<0?-1:1}var N=0;function T(){return++N}var D={};function L(e,r,t){if(void 0===t&&(t=3),!D[r]){var n=(new Error).stack;void 0===n?console.warn("PixiJS Deprecation Warning: ",r+"\nDeprecated since v"+e):(n=n.split("\n").splice(t).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",r+"\nDeprecated since v"+e),console.warn(n),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",r+"\nDeprecated since v"+e),console.warn(n))),D[r]=!0}}var O={},F=Object.create(null),I=Object.create(null);function S(){var e;for(e in F)F[e].destroy();for(e in I)I[e].destroy()}function U(){var e;for(e in F)delete F[e];for(e in I)delete I[e]}var j=function(){function r(r,t,n){this.canvas=e.ADAPTER.createCanvas(),this.context=this.canvas.getContext("2d"),this.resolution=n||e.RESOLUTION,this.resize(r,t)}return r.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},r.prototype.resize=function(e,r){this.canvas.width=Math.round(e*this.resolution),this.canvas.height=Math.round(r*this.resolution)},r.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(r.prototype,"width",{get:function(){return this.canvas.width},set:function(e){this.canvas.width=Math.round(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this.canvas.height},set:function(e){this.canvas.height=Math.round(e)},enumerable:!1,configurable:!0}),r}();function q(e){var r,t,n,a=e.width,o=e.height,f=e.getContext("2d"),i=f.getImageData(0,0,a,o).data,l=i.length,c={top:null,left:null,right:null,bottom:null},d=null;for(r=0;r<l;r+=4)0!==i[r+3]&&(t=r/4%a,n=~~(r/4/a),null===c.top&&(c.top=n),(null===c.left||t<c.left)&&(c.left=t),(null===c.right||c.right<t)&&(c.right=t+1),(null===c.bottom||c.bottom<n)&&(c.bottom=n));return null!==c.top&&(a=c.right-c.left,o=c.bottom-c.top+1,d=f.getImageData(c.left,c.top,a,o)),{height:o,width:a,data:d}}var J,B=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i;function W(e){var r=B.exec(e);if(r)return{mediaType:r[1]?r[1].toLowerCase():void 0,subType:r[2]?r[2].toLowerCase():void 0,charset:r[3]?r[3].toLowerCase():void 0,encoding:r[4]?r[4].toLowerCase():void 0,data:r[5]}}function z(e,r){if(void 0===r&&(r=globalThis.location),0===e.indexOf("data:"))return"";r=r||globalThis.location,J||(J=document.createElement("a")),J.href=e;var t=o.parse(J.href),n=!t.port&&""===r.port||t.port===r.port;return t.hostname===r.hostname&&n&&t.protocol===r.protocol?"":"anonymous"}function Y(r,t){var n=e.RETINA_PREFIX.exec(r);return n?parseFloat(n[1]):void 0!==t?t:1}export{I as BaseTextureCache,j as CanvasRenderTarget,B as DATA_URI,O as ProgramCache,F as TextureCache,U as clearTextureCache,v as correctBlendMode,A as createIndicesForQuads,W as decomposeDataUri,L as deprecation,S as destroyTextureCache,z as determineCrossOrigin,k as getBufferType,Y as getResolutionOfUrl,s as hex2rgb,g as hex2string,x as interleaveTypedArrays,C as isPow2,d as isWebGLSupported,P as log2,R as nextPow2,p as premultiplyBlendMode,m as premultiplyRgba,y as premultiplyTint,w as premultiplyTintToRgba,_ as removeItems,b as rgb2hex,c as sayHello,M as sign,l as skipHello,h as string2hex,q as trimCanvas,T as uid,o as url};
import{settings as e}from"@pixi/settings";export{isMobile}from"@pixi/settings";export{default as EventEmitter}from"eventemitter3";export{default as earcut}from"earcut";import{parse as r,format as t,resolve as n}from"url";import{BLEND_MODES as a}from"@pixi/constants";var o={parse:r,format:t,resolve:n};e.RETINA_PREFIX=/@([0-9\.]+)x/,e.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var f,i=!1;function l(){i=!0}function c(r){var t;if(!i){if(e.ADAPTER.getNavigator().userAgent.toLowerCase().indexOf("chrome")>-1){var n=["\n %c %c %c PixiJS 6.5.0-rc.2 - ✰ "+r+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(t=globalThis.console).log.apply(t,n)}else globalThis.console&&globalThis.console.log("PixiJS 6.5.0-rc.2 - "+r+" - http://www.pixijs.com/");i=!0}}function d(){return void 0===f&&(f=function(){var r={stencil:!0,failIfMajorPerformanceCaveat:e.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!e.ADAPTER.getWebGLRenderingContext())return!1;var t=e.ADAPTER.createCanvas(),n=t.getContext("webgl",r)||t.getContext("experimental-webgl",r),a=!(!n||!n.getContextAttributes().stencil);if(n){var o=n.getExtension("WEBGL_lose_context");o&&o.loseContext()}return n=null,a}catch(e){return!1}}()),f}var u={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function s(e,r){return void 0===r&&(r=[]),r[0]=(e>>16&255)/255,r[1]=(e>>8&255)/255,r[2]=(255&e)/255,r}function g(e){var r=e.toString(16);return"#"+(r="000000".substring(0,6-r.length)+r)}function h(e){return"string"==typeof e&&"#"===(e=u[e.toLowerCase()]||e)[0]&&(e=e.slice(1)),parseInt(e,16)}function b(e){return(255*e[0]<<16)+(255*e[1]<<8)+(255*e[2]|0)}var p=function(){for(var e=[],r=[],t=0;t<32;t++)e[t]=t,r[t]=t;e[a.NORMAL_NPM]=a.NORMAL,e[a.ADD_NPM]=a.ADD,e[a.SCREEN_NPM]=a.SCREEN,r[a.NORMAL]=a.NORMAL_NPM,r[a.ADD]=a.ADD_NPM,r[a.SCREEN]=a.SCREEN_NPM;var n=[];return n.push(r),n.push(e),n}();function v(e,r){return p[r?1:0][e]}function m(e,r,t,n){return t=t||new Float32Array(4),n||void 0===n?(t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r):(t[0]=e[0],t[1]=e[1],t[2]=e[2]),t[3]=r,t}function y(e,r){if(1===r)return(255*r<<24)+e;if(0===r)return 0;var t=e>>16&255,n=e>>8&255,a=255&e;return(255*r<<24)+((t=t*r+.5|0)<<16)+((n=n*r+.5|0)<<8)+(a=a*r+.5|0)}function w(e,r,t,n){return(t=t||new Float32Array(4))[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(255&e)/255,(n||void 0===n)&&(t[0]*=r,t[1]*=r,t[2]*=r),t[3]=r,t}function A(e,r){void 0===r&&(r=null);var t=6*e;if((r=r||new Uint16Array(t)).length!==t)throw new Error("Out buffer length is incorrect, got "+r.length+" and expected "+t);for(var n=0,a=0;n<t;n+=6,a+=4)r[n+0]=a+0,r[n+1]=a+1,r[n+2]=a+2,r[n+3]=a+0,r[n+4]=a+2,r[n+5]=a+3;return r}function k(e){if(4===e.BYTES_PER_ELEMENT)return e instanceof Float32Array?"Float32Array":e instanceof Uint32Array?"Uint32Array":"Int32Array";if(2===e.BYTES_PER_ELEMENT){if(e instanceof Uint16Array)return"Uint16Array"}else if(1===e.BYTES_PER_ELEMENT&&e instanceof Uint8Array)return"Uint8Array";return null}var E={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array};function x(e,r){for(var t=0,n=0,a={},o=0;o<e.length;o++)n+=r[o],t+=e[o].length;var f=new ArrayBuffer(4*t),i=null,l=0;for(o=0;o<e.length;o++){var c=r[o],d=e[o],u=k(d);a[u]||(a[u]=new E[u](f)),i=a[u];for(var s=0;s<d.length;s++){i[(s/c|0)*n+l+s%c]=d[s]}l+=c}return new Float32Array(f)}function R(e){return e+=0===e?1:0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1}function C(e){return!(e&e-1||!e)}function P(e){var r=(e>65535?1:0)<<4,t=((e>>>=r)>255?1:0)<<3;return r|=t,r|=t=((e>>>=t)>15?1:0)<<2,(r|=t=((e>>>=t)>3?1:0)<<1)|(e>>>=t)>>1}function _(e,r,t){var n,a=e.length;if(!(r>=a||0===t)){var o=a-(t=r+t>a?a-r:t);for(n=r;n<o;++n)e[n]=e[n+t];e.length=o}}function M(e){return 0===e?0:e<0?-1:1}var N=0;function T(){return++N}var D={};function L(e,r,t){if(void 0===t&&(t=3),!D[r]){var n=(new Error).stack;void 0===n?console.warn("PixiJS Deprecation Warning: ",r+"\nDeprecated since v"+e):(n=n.split("\n").splice(t).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",r+"\nDeprecated since v"+e),console.warn(n),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",r+"\nDeprecated since v"+e),console.warn(n))),D[r]=!0}}var O={},F=Object.create(null),I=Object.create(null);function S(){var e;for(e in F)F[e].destroy();for(e in I)I[e].destroy()}function U(){var e;for(e in F)delete F[e];for(e in I)delete I[e]}var j=function(){function r(r,t,n){this.canvas=e.ADAPTER.createCanvas(),this.context=this.canvas.getContext("2d"),this.resolution=n||e.RESOLUTION,this.resize(r,t)}return r.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},r.prototype.resize=function(e,r){this.canvas.width=Math.round(e*this.resolution),this.canvas.height=Math.round(r*this.resolution)},r.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(r.prototype,"width",{get:function(){return this.canvas.width},set:function(e){this.canvas.width=Math.round(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this.canvas.height},set:function(e){this.canvas.height=Math.round(e)},enumerable:!1,configurable:!0}),r}();function q(e){var r,t,n,a=e.width,o=e.height,f=e.getContext("2d"),i=f.getImageData(0,0,a,o).data,l=i.length,c={top:null,left:null,right:null,bottom:null},d=null;for(r=0;r<l;r+=4)0!==i[r+3]&&(t=r/4%a,n=~~(r/4/a),null===c.top&&(c.top=n),(null===c.left||t<c.left)&&(c.left=t),(null===c.right||c.right<t)&&(c.right=t+1),(null===c.bottom||c.bottom<n)&&(c.bottom=n));return null!==c.top&&(a=c.right-c.left,o=c.bottom-c.top+1,d=f.getImageData(c.left,c.top,a,o)),{height:o,width:a,data:d}}var J,B=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i;function W(e){var r=B.exec(e);if(r)return{mediaType:r[1]?r[1].toLowerCase():void 0,subType:r[2]?r[2].toLowerCase():void 0,charset:r[3]?r[3].toLowerCase():void 0,encoding:r[4]?r[4].toLowerCase():void 0,data:r[5]}}function z(e,r){if(void 0===r&&(r=globalThis.location),0===e.indexOf("data:"))return"";r=r||globalThis.location,J||(J=document.createElement("a")),J.href=e;var t=o.parse(J.href),n=!t.port&&""===r.port||t.port===r.port;return t.hostname===r.hostname&&n&&t.protocol===r.protocol?"":"anonymous"}function Y(r,t){var n=e.RETINA_PREFIX.exec(r);return n?parseFloat(n[1]):void 0!==t?t:1}export{I as BaseTextureCache,j as CanvasRenderTarget,B as DATA_URI,O as ProgramCache,F as TextureCache,U as clearTextureCache,v as correctBlendMode,A as createIndicesForQuads,W as decomposeDataUri,L as deprecation,S as destroyTextureCache,z as determineCrossOrigin,k as getBufferType,Y as getResolutionOfUrl,s as hex2rgb,g as hex2string,x as interleaveTypedArrays,C as isPow2,d as isWebGLSupported,P as log2,R as nextPow2,p as premultiplyBlendMode,m as premultiplyRgba,y as premultiplyTint,w as premultiplyTintToRgba,_ as removeItems,b as rgb2hex,c as sayHello,M as sign,l as skipHello,h as string2hex,q as trimCanvas,T as uid,o as url};
//# sourceMappingURL=utils.min.js.map
{
"name": "@pixi/utils",
"version": "6.5.0-rc",
"version": "6.5.0-rc.2",
"main": "dist/cjs/utils.js",

@@ -48,4 +48,4 @@ "module": "dist/esm/utils.js",

"peerDependencies": {
"@pixi/constants": "6.5.0-rc",
"@pixi/settings": "6.5.0-rc"
"@pixi/constants": "6.5.0-rc.2",
"@pixi/settings": "6.5.0-rc.2"
},

@@ -55,3 +55,3 @@ "devDependencies": {

},
"gitHead": "16005f83e7a6d87831ce84f8a6d460606a331ef6"
"gitHead": "559e3df8de62740b9099532a9c4d3f6701829de4"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc