@pixi/utils
Advanced tools
Comparing version 7.0.0-beta.2 to 7.0.0-beta.3
/*! | ||
* @pixi/utils - v7.0.0-beta.2 | ||
* Compiled Tue, 11 Oct 2022 20:10:42 UTC | ||
* @pixi/utils - v7.0.0-beta.3 | ||
* Compiled Thu, 13 Oct 2022 15:35:43 UTC | ||
* | ||
@@ -414,34 +414,34 @@ * @pixi/utils is licensed under the MIT License. | ||
let saidHello = false; | ||
const VERSION = "7.0.0-beta.2"; | ||
function skipHello() { | ||
saidHello = true; | ||
} | ||
function sayHello(type) { | ||
if (saidHello) { | ||
const warnings = {}; | ||
function deprecation(version, message, ignoreDepth = 3) { | ||
if (warnings[message]) { | ||
return; | ||
} | ||
if (settings.settings.ADAPTER.getNavigator().userAgent.toLowerCase().indexOf("chrome") > -1) { | ||
const args = [ | ||
` | ||
%c %c %c PixiJS ${VERSION} - \u2730 ${type} \u2730 %c %c http://www.pixijs.com/ %c %c \u2665%c\u2665%c\u2665 | ||
`, | ||
"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;" | ||
]; | ||
globalThis.console.log(...args); | ||
} else if (globalThis.console) { | ||
globalThis.console.log(`PixiJS ${VERSION} - ${type} - http://www.pixijs.com/`); | ||
let stack = new Error().stack; | ||
if (typeof stack === "undefined") { | ||
console.warn("PixiJS Deprecation Warning: ", `${message} | ||
Deprecated since v${version}`); | ||
} else { | ||
stack = stack.split("\n").splice(ignoreDepth).join("\n"); | ||
if (console.groupCollapsed) { | ||
console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s", "color:#614108;background:#fffbe6", "font-weight:normal;color:#614108;background:#fffbe6", `${message} | ||
Deprecated since v${version}`); | ||
console.warn(stack); | ||
console.groupEnd(); | ||
} else { | ||
console.warn("PixiJS Deprecation Warning: ", `${message} | ||
Deprecated since v${version}`); | ||
console.warn(stack); | ||
} | ||
} | ||
saidHello = true; | ||
warnings[message] = true; | ||
} | ||
function skipHello() { | ||
deprecation("7.0.0", "skipHello is deprecated, please use PIXI.settings.RENDER_OPTIONS.hello"); | ||
} | ||
function sayHello() { | ||
deprecation("7.0.0", `sayHello is deprecated, please use Renderer's "hello" option`); | ||
} | ||
let supported; | ||
@@ -794,2 +794,6 @@ function isWebGLSupported() { | ||
} | ||
if (string.length === 3) { | ||
const [r, g, b] = string; | ||
string = r + r + g + g + b + b; | ||
} | ||
} | ||
@@ -987,27 +991,2 @@ return parseInt(string, 16); | ||
const warnings = {}; | ||
function deprecation(version, message, ignoreDepth = 3) { | ||
if (warnings[message]) { | ||
return; | ||
} | ||
let stack = new Error().stack; | ||
if (typeof stack === "undefined") { | ||
console.warn("PixiJS Deprecation Warning: ", `${message} | ||
Deprecated since v${version}`); | ||
} else { | ||
stack = stack.split("\n").splice(ignoreDepth).join("\n"); | ||
if (console.groupCollapsed) { | ||
console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s", "color:#614108;background:#fffbe6", "font-weight:normal;color:#614108;background:#fffbe6", `${message} | ||
Deprecated since v${version}`); | ||
console.warn(stack); | ||
console.groupEnd(); | ||
} else { | ||
console.warn("PixiJS Deprecation Warning: ", `${message} | ||
Deprecated since v${version}`); | ||
console.warn(stack); | ||
} | ||
} | ||
warnings[message] = true; | ||
} | ||
const ProgramCache = {}; | ||
@@ -1014,0 +993,0 @@ const TextureCache = /* @__PURE__ */ Object.create(null); |
"use strict";/*! | ||
* @pixi/utils - v7.0.0-beta.2 | ||
* Compiled Tue, 11 Oct 2022 20:10:42 UTC | ||
* @pixi/utils - v7.0.0-beta.3 | ||
* Compiled Thu, 13 Oct 2022 15:35:43 UTC | ||
* | ||
* @pixi/utils is licensed under the MIT License. | ||
* http://www.opensource.org/licenses/mit-license | ||
*/Object.defineProperty(exports,"__esModule",{value:!0});var u=require("@pixi/settings"),N=require("eventemitter3"),L=require("earcut"),y=require("url"),d=require("@pixi/constants");function x(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var S=x(N),$=x(L);const A={parse:y.parse,format:y.format,resolve:y.resolve};function g(e){if(typeof e!="string")throw new TypeError(`Path must be a string. Received ${JSON.stringify(e)}`)}function E(e){return e.split("?")[0].split("#")[0]}function B(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function q(e,r,t){return e.replace(new RegExp(B(r),"g"),t)}function I(e,r){let t="",a=0,n=-1,o=0,i;for(let l=0;l<=e.length;++l){if(l<e.length)i=e.charCodeAt(l);else{if(i===47)break;i=47}if(i===47){if(!(n===l-1||o===1))if(n!==l-1&&o===2){if(t.length<2||a!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){const s=t.lastIndexOf("/");if(s!==t.length-1){s===-1?(t="",a=0):(t=t.slice(0,s),a=t.length-1-t.lastIndexOf("/")),n=l,o=0;continue}}else if(t.length===2||t.length===1){t="",a=0,n=l,o=0;continue}}r&&(t.length>0?t+="/..":t="..",a=2)}else t.length>0?t+=`/${e.slice(n+1,l)}`:t=e.slice(n+1,l),a=l-n-1;n=l,o=0}else i===46&&o!==-1?++o:o=-1}return t}const P={toPosix(e){return q(e,"\\","/")},isUrl(e){return/^https?:/.test(this.toPosix(e))},isDataUrl(e){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(e)},hasProtocol(e){return/^[^/:]+:\//.test(this.toPosix(e))},getProtocol(e){g(e),e=this.toPosix(e);let r="";const t=/^file:\/\/\//.exec(e),a=/^[^/:]+:\/\//.exec(e),n=/^[^/:]+:\//.exec(e);if(t||a||n){const o=t?.[0]||a?.[0]||n?.[0];r=o,e=e.slice(o.length)}return r},toAbsolute(e,r,t){if(this.isDataUrl(e))return e;const a=E(this.toPosix(r??u.settings.ADAPTER.getBaseUrl())),n=E(this.toPosix(t??this.rootname(a)));return g(e),e=this.toPosix(e),e.startsWith("/")?P.join(n,e.slice(1)):this.isAbsolute(e)?e:this.join(a,e)},normalize(e){if(e=this.toPosix(e),g(e),e.length===0)return".";let r="";const t=e.startsWith("/");this.hasProtocol(e)&&(r=this.rootname(e),e=e.slice(r.length));const a=e.endsWith("/");return e=I(e,!1),e.length>0&&a&&(e+="/"),t?`/${e}`:r+e},isAbsolute(e){return g(e),e=this.toPosix(e),this.hasProtocol(e)?!0:e.startsWith("/")},join(...e){if(e.length===0)return".";let r;for(let t=0;t<e.length;++t){const a=e[t];if(g(a),a.length>0)if(r===void 0)r=a;else{const n=e[t-1]??"";this.extname(n)?r+=`/../${a}`:r+=`/${a}`}}return r===void 0?".":this.normalize(r)},dirname(e){if(g(e),e.length===0)return".";e=this.toPosix(e);let r=e.charCodeAt(0);const t=r===47;let a=-1,n=!0;const o=this.getProtocol(e),i=e;e=e.slice(o.length);for(let l=e.length-1;l>=1;--l)if(r=e.charCodeAt(l),r===47){if(!n){a=l;break}}else n=!1;return a===-1?t?"/":this.isUrl(i)?o+e:o:t&&a===1?"//":o+e.slice(0,a)},rootname(e){g(e),e=this.toPosix(e);let r="";if(e.startsWith("/")?r="/":r=this.getProtocol(e),this.isUrl(e)){const t=e.indexOf("/",r.length);t!==-1?r=e.slice(0,t):r=e,r.endsWith("/")||(r+="/")}return r},basename(e,r){g(e),r&&g(r),e=this.toPosix(e);let t=0,a=-1,n=!0,o;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";let i=r.length-1,l=-1;for(o=e.length-1;o>=0;--o){const s=e.charCodeAt(o);if(s===47){if(!n){t=o+1;break}}else l===-1&&(n=!1,l=o+1),i>=0&&(s===r.charCodeAt(i)?--i===-1&&(a=o):(i=-1,a=l))}return t===a?a=l:a===-1&&(a=e.length),e.slice(t,a)}for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!n){t=o+1;break}}else a===-1&&(n=!1,a=o+1);return a===-1?"":e.slice(t,a)},extname(e){g(e),e=this.toPosix(e);let r=-1,t=0,a=-1,n=!0,o=0;for(let i=e.length-1;i>=0;--i){const l=e.charCodeAt(i);if(l===47){if(!n){t=i+1;break}continue}a===-1&&(n=!1,a=i+1),l===46?r===-1?r=i:o!==1&&(o=1):r!==-1&&(o=-1)}return r===-1||a===-1||o===0||o===1&&r===a-1&&r===t+1?"":e.slice(r,a)},parse(e){g(e);const r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;e=this.toPosix(e);let t=e.charCodeAt(0);const a=this.isAbsolute(e);let n;r.root=this.rootname(e),a||this.hasProtocol(e)?n=1:n=0;let o=-1,i=0,l=-1,s=!0,f=e.length-1,c=0;for(;f>=n;--f){if(t=e.charCodeAt(f),t===47){if(!s){i=f+1;break}continue}l===-1&&(s=!1,l=f+1),t===46?o===-1?o=f:c!==1&&(c=1):o!==-1&&(c=-1)}return o===-1||l===-1||c===0||c===1&&o===l-1&&o===i+1?l!==-1&&(i===0&&a?r.base=r.name=e.slice(1,l):r.base=r.name=e.slice(i,l)):(i===0&&a?(r.name=e.slice(1,o),r.base=e.slice(1,l)):(r.name=e.slice(i,o),r.base=e.slice(i,l)),r.ext=e.slice(o,l)),r.dir=this.dirname(e),r},sep:"/",delimiter:":"};u.settings.RETINA_PREFIX=/@([0-9\.]+)x/,u.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;let w=!1;const C="7.0.0-beta.2";function U(){w=!0}function F(e){if(!w){if(u.settings.ADAPTER.getNavigator().userAgent.toLowerCase().indexOf("chrome")>-1){const r=[` | ||
%c %c %c PixiJS ${C} - \u2730 ${e} \u2730 %c %c http://www.pixijs.com/ %c %c \u2665%c\u2665%c\u2665 | ||
`,"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;"];globalThis.console.log(...r)}else globalThis.console&&globalThis.console.log(`PixiJS ${C} - ${e} - http://www.pixijs.com/`);w=!0}}let k;function j(){return typeof k>"u"&&(k=function(){const e={stencil:!0,failIfMajorPerformanceCaveat:u.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!u.settings.ADAPTER.getWebGLRenderingContext())return!1;const r=u.settings.ADAPTER.createCanvas();let t=r.getContext("webgl",e)||r.getContext("experimental-webgl",e);const a=!!(t&&t.getContextAttributes().stencil);if(t){const n=t.getExtension("WEBGL_lose_context");n&&n.loseContext()}return t=null,a}catch{return!1}}()),k}var W="#f0f8ff",z="#faebd7",J="#00ffff",G="#7fffd4",H="#f0ffff",Y="#f5f5dc",Q="#ffe4c4",V="#000000",X="#ffebcd",K="#0000ff",Z="#8a2be2",ee="#a52a2a",re="#deb887",te="#5f9ea0",ae="#7fff00",ne="#d2691e",oe="#ff7f50",ie="#6495ed",le="#fff8dc",se="#dc143c",fe="#00ffff",ce="#00008b",de="#008b8b",ue="#b8860b",ge="#a9a9a9",he="#006400",ve="#a9a9a9",be="#bdb76b",pe="#8b008b",me="#556b2f",ye="#ff8c00",we="#9932cc",ke="#8b0000",xe="#e9967a",Ae="#8fbc8f",Ee="#483d8b",Pe="#2f4f4f",Ce="#2f4f4f",De="#00ced1",Te="#9400d3",_e="#ff1493",Me="#00bfff",Re="#696969",Oe="#696969",Ne="#1e90ff",Le="#b22222",Se="#fffaf0",$e="#228b22",Be="#ff00ff",qe="#dcdcdc",Ie="#f8f8ff",Ue="#daa520",Fe="#ffd700",je="#808080",We="#008000",ze="#adff2f",Je="#808080",Ge="#f0fff0",He="#ff69b4",Ye="#cd5c5c",Qe="#4b0082",Ve="#fffff0",Xe="#f0e68c",Ke="#fff0f5",Ze="#e6e6fa",er="#7cfc00",rr="#fffacd",tr="#add8e6",ar="#f08080",nr="#e0ffff",or="#fafad2",ir="#d3d3d3",lr="#90ee90",sr="#d3d3d3",fr="#ffb6c1",cr="#ffa07a",dr="#20b2aa",ur="#87cefa",gr="#778899",hr="#778899",vr="#b0c4de",br="#ffffe0",pr="#00ff00",mr="#32cd32",yr="#faf0e6",wr="#ff00ff",kr="#800000",xr="#66cdaa",Ar="#0000cd",Er="#ba55d3",Pr="#9370db",Cr="#3cb371",Dr="#7b68ee",Tr="#00fa9a",_r="#48d1cc",Mr="#c71585",Rr="#191970",Or="#f5fffa",Nr="#ffe4e1",Lr="#ffe4b5",Sr="#ffdead",$r="#000080",Br="#fdf5e6",qr="#808000",Ir="#6b8e23",Ur="#ffa500",Fr="#ff4500",jr="#da70d6",Wr="#eee8aa",zr="#98fb98",Jr="#afeeee",Gr="#db7093",Hr="#ffefd5",Yr="#ffdab9",Qr="#cd853f",Vr="#ffc0cb",Xr="#dda0dd",Kr="#b0e0e6",Zr="#800080",et="#663399",rt="#ff0000",tt="#bc8f8f",at="#4169e1",nt="#8b4513",ot="#fa8072",it="#f4a460",lt="#2e8b57",st="#fff5ee",ft="#a0522d",ct="#c0c0c0",dt="#87ceeb",ut="#6a5acd",gt="#708090",ht="#708090",vt="#fffafa",bt="#00ff7f",pt="#4682b4",mt="#d2b48c",yt="#008080",wt="#d8bfd8",kt="#ff6347",xt="#40e0d0",At="#ee82ee",Et="#f5deb3",Pt="#ffffff",Ct="#f5f5f5",Dt="#ffff00",Tt="#9acd32",_t={aliceblue:W,antiquewhite:z,aqua:J,aquamarine:G,azure:H,beige:Y,bisque:Q,black:V,blanchedalmond:X,blue:K,blueviolet:Z,brown:ee,burlywood:re,cadetblue:te,chartreuse:ae,chocolate:ne,coral:oe,cornflowerblue:ie,cornsilk:le,crimson:se,cyan:fe,darkblue:ce,darkcyan:de,darkgoldenrod:ue,darkgray:ge,darkgreen:he,darkgrey:ve,darkkhaki:be,darkmagenta:pe,darkolivegreen:me,darkorange:ye,darkorchid:we,darkred:ke,darksalmon:xe,darkseagreen:Ae,darkslateblue:Ee,darkslategray:Pe,darkslategrey:Ce,darkturquoise:De,darkviolet:Te,deeppink:_e,deepskyblue:Me,dimgray:Re,dimgrey:Oe,dodgerblue:Ne,firebrick:Le,floralwhite:Se,forestgreen:$e,fuchsia:Be,gainsboro:qe,ghostwhite:Ie,goldenrod:Ue,gold:Fe,gray:je,green:We,greenyellow:ze,grey:Je,honeydew:Ge,hotpink:He,indianred:Ye,indigo:Qe,ivory:Ve,khaki:Xe,lavenderblush:Ke,lavender:Ze,lawngreen:er,lemonchiffon:rr,lightblue:tr,lightcoral:ar,lightcyan:nr,lightgoldenrodyellow:or,lightgray:ir,lightgreen:lr,lightgrey:sr,lightpink:fr,lightsalmon:cr,lightseagreen:dr,lightskyblue:ur,lightslategray:gr,lightslategrey:hr,lightsteelblue:vr,lightyellow:br,lime:pr,limegreen:mr,linen:yr,magenta:wr,maroon:kr,mediumaquamarine:xr,mediumblue:Ar,mediumorchid:Er,mediumpurple:Pr,mediumseagreen:Cr,mediumslateblue:Dr,mediumspringgreen:Tr,mediumturquoise:_r,mediumvioletred:Mr,midnightblue:Rr,mintcream:Or,mistyrose:Nr,moccasin:Lr,navajowhite:Sr,navy:$r,oldlace:Br,olive:qr,olivedrab:Ir,orange:Ur,orangered:Fr,orchid:jr,palegoldenrod:Wr,palegreen:zr,paleturquoise:Jr,palevioletred:Gr,papayawhip:Hr,peachpuff:Yr,peru:Qr,pink:Vr,plum:Xr,powderblue:Kr,purple:Zr,rebeccapurple:et,red:rt,rosybrown:tt,royalblue:at,saddlebrown:nt,salmon:ot,sandybrown:it,seagreen:lt,seashell:st,sienna:ft,silver:ct,skyblue:dt,slateblue:ut,slategray:gt,slategrey:ht,snow:vt,springgreen:bt,steelblue:pt,tan:mt,teal:yt,thistle:wt,tomato:kt,turquoise:xt,violet:At,wheat:Et,white:Pt,whitesmoke:Ct,yellow:Dt,yellowgreen:Tt};function Mt(e,r=[]){return r[0]=(e>>16&255)/255,r[1]=(e>>8&255)/255,r[2]=(e&255)/255,r}function Rt(e){let r=e.toString(16);return r="000000".substring(0,6-r.length)+r,`#${r}`}function Ot(e){return typeof e=="string"&&(e=_t[e.toLowerCase()]||e,e[0]==="#"&&(e=e.slice(1))),parseInt(e,16)}function Nt(e){return(e[0]*255<<16)+(e[1]*255<<8)+(e[2]*255|0)}function Lt(){const e=[],r=[];for(let a=0;a<32;a++)e[a]=a,r[a]=a;e[d.BLEND_MODES.NORMAL_NPM]=d.BLEND_MODES.NORMAL,e[d.BLEND_MODES.ADD_NPM]=d.BLEND_MODES.ADD,e[d.BLEND_MODES.SCREEN_NPM]=d.BLEND_MODES.SCREEN,r[d.BLEND_MODES.NORMAL]=d.BLEND_MODES.NORMAL_NPM,r[d.BLEND_MODES.ADD]=d.BLEND_MODES.ADD_NPM,r[d.BLEND_MODES.SCREEN]=d.BLEND_MODES.SCREEN_NPM;const t=[];return t.push(r),t.push(e),t}const D=Lt();function St(e,r){return D[r?1:0][e]}function $t(e,r,t,a){return t=t||new Float32Array(4),a||a===void 0?(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 Bt(e,r){if(r===1)return(r*255<<24)+e;if(r===0)return 0;let t=e>>16&255,a=e>>8&255,n=e&255;return t=t*r+.5|0,a=a*r+.5|0,n=n*r+.5|0,(r*255<<24)+(t<<16)+(a<<8)+n}function qt(e,r,t,a){return t=t||new Float32Array(4),t[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(e&255)/255,(a||a===void 0)&&(t[0]*=r,t[1]*=r,t[2]*=r),t[3]=r,t}function It(e,r=null){const t=e*6;if(r=r||new Uint16Array(t),r.length!==t)throw new Error(`Out buffer length is incorrect, got ${r.length} and expected ${t}`);for(let a=0,n=0;a<t;a+=6,n+=4)r[a+0]=n+0,r[a+1]=n+1,r[a+2]=n+2,r[a+3]=n+0,r[a+4]=n+2,r[a+5]=n+3;return r}function T(e){if(e.BYTES_PER_ELEMENT===4)return e instanceof Float32Array?"Float32Array":e instanceof Uint32Array?"Uint32Array":"Int32Array";if(e.BYTES_PER_ELEMENT===2){if(e instanceof Uint16Array)return"Uint16Array"}else if(e.BYTES_PER_ELEMENT===1&&e instanceof Uint8Array)return"Uint8Array";return null}const Ut={Float32Array,Uint32Array,Int32Array,Uint8Array};function Ft(e,r){let t=0,a=0;const n={};for(let s=0;s<e.length;s++)a+=r[s],t+=e[s].length;const o=new ArrayBuffer(t*4);let i=null,l=0;for(let s=0;s<e.length;s++){const f=r[s],c=e[s],p=T(c);n[p]||(n[p]=new Ut[p](o)),i=n[p];for(let h=0;h<c.length;h++){const R=(h/f|0)*a+l,O=h%f;i[R+O]=c[h]}l+=f}return new Float32Array(o)}function jt(e){return e+=e===0?1:0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1}function Wt(e){return!(e&e-1)&&!!e}function zt(e){let r=(e>65535?1:0)<<4;e>>>=r;let t=(e>255?1:0)<<3;return e>>>=t,r|=t,t=(e>15?1:0)<<2,e>>>=t,r|=t,t=(e>3?1:0)<<1,e>>>=t,r|=t,r|e>>1}function Jt(e,r,t){const a=e.length;let n;if(r>=a||t===0)return;t=r+t>a?a-r:t;const o=a-t;for(n=r;n<o;++n)e[n]=e[n+t];e.length=o}function Gt(e){return e===0?0:e<0?-1:1}let Ht=0;function Yt(){return++Ht}const _={};function Qt(e,r,t=3){if(_[r])return;let a=new Error().stack;typeof a>"u"?console.warn("PixiJS Deprecation Warning: ",`${r} | ||
*/Object.defineProperty(exports,"__esModule",{value:!0});var g=require("@pixi/settings"),R=require("eventemitter3"),O=require("earcut"),y=require("url"),u=require("@pixi/constants");function k(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var N=k(R),L=k(O);const E={parse:y.parse,format:y.format,resolve:y.resolve};function d(e){if(typeof e!="string")throw new TypeError(`Path must be a string. Received ${JSON.stringify(e)}`)}function A(e){return e.split("?")[0].split("#")[0]}function S(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function B(e,t,r){return e.replace(new RegExp(S(t),"g"),r)}function q(e,t){let r="",a=0,n=-1,i=0,o;for(let l=0;l<=e.length;++l){if(l<e.length)o=e.charCodeAt(l);else{if(o===47)break;o=47}if(o===47){if(!(n===l-1||i===1))if(n!==l-1&&i===2){if(r.length<2||a!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){const s=r.lastIndexOf("/");if(s!==r.length-1){s===-1?(r="",a=0):(r=r.slice(0,s),a=r.length-1-r.lastIndexOf("/")),n=l,i=0;continue}}else if(r.length===2||r.length===1){r="",a=0,n=l,i=0;continue}}t&&(r.length>0?r+="/..":r="..",a=2)}else r.length>0?r+=`/${e.slice(n+1,l)}`:r=e.slice(n+1,l),a=l-n-1;n=l,i=0}else o===46&&i!==-1?++i:i=-1}return r}const x={toPosix(e){return B(e,"\\","/")},isUrl(e){return/^https?:/.test(this.toPosix(e))},isDataUrl(e){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(e)},hasProtocol(e){return/^[^/:]+:\//.test(this.toPosix(e))},getProtocol(e){d(e),e=this.toPosix(e);let t="";const r=/^file:\/\/\//.exec(e),a=/^[^/:]+:\/\//.exec(e),n=/^[^/:]+:\//.exec(e);if(r||a||n){const i=r?.[0]||a?.[0]||n?.[0];t=i,e=e.slice(i.length)}return t},toAbsolute(e,t,r){if(this.isDataUrl(e))return e;const a=A(this.toPosix(t??g.settings.ADAPTER.getBaseUrl())),n=A(this.toPosix(r??this.rootname(a)));return d(e),e=this.toPosix(e),e.startsWith("/")?x.join(n,e.slice(1)):this.isAbsolute(e)?e:this.join(a,e)},normalize(e){if(e=this.toPosix(e),d(e),e.length===0)return".";let t="";const r=e.startsWith("/");this.hasProtocol(e)&&(t=this.rootname(e),e=e.slice(t.length));const a=e.endsWith("/");return e=q(e,!1),e.length>0&&a&&(e+="/"),r?`/${e}`:t+e},isAbsolute(e){return d(e),e=this.toPosix(e),this.hasProtocol(e)?!0:e.startsWith("/")},join(...e){if(e.length===0)return".";let t;for(let r=0;r<e.length;++r){const a=e[r];if(d(a),a.length>0)if(t===void 0)t=a;else{const n=e[r-1]??"";this.extname(n)?t+=`/../${a}`:t+=`/${a}`}}return t===void 0?".":this.normalize(t)},dirname(e){if(d(e),e.length===0)return".";e=this.toPosix(e);let t=e.charCodeAt(0);const r=t===47;let a=-1,n=!0;const i=this.getProtocol(e),o=e;e=e.slice(i.length);for(let l=e.length-1;l>=1;--l)if(t=e.charCodeAt(l),t===47){if(!n){a=l;break}}else n=!1;return a===-1?r?"/":this.isUrl(o)?i+e:i:r&&a===1?"//":i+e.slice(0,a)},rootname(e){d(e),e=this.toPosix(e);let t="";if(e.startsWith("/")?t="/":t=this.getProtocol(e),this.isUrl(e)){const r=e.indexOf("/",t.length);r!==-1?t=e.slice(0,r):t=e,t.endsWith("/")||(t+="/")}return t},basename(e,t){d(e),t&&d(t),e=this.toPosix(e);let r=0,a=-1,n=!0,i;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let o=t.length-1,l=-1;for(i=e.length-1;i>=0;--i){const s=e.charCodeAt(i);if(s===47){if(!n){r=i+1;break}}else l===-1&&(n=!1,l=i+1),o>=0&&(s===t.charCodeAt(o)?--o===-1&&(a=i):(o=-1,a=l))}return r===a?a=l:a===-1&&(a=e.length),e.slice(r,a)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===47){if(!n){r=i+1;break}}else a===-1&&(n=!1,a=i+1);return a===-1?"":e.slice(r,a)},extname(e){d(e),e=this.toPosix(e);let t=-1,r=0,a=-1,n=!0,i=0;for(let o=e.length-1;o>=0;--o){const l=e.charCodeAt(o);if(l===47){if(!n){r=o+1;break}continue}a===-1&&(n=!1,a=o+1),l===46?t===-1?t=o:i!==1&&(i=1):t!==-1&&(i=-1)}return t===-1||a===-1||i===0||i===1&&t===a-1&&t===r+1?"":e.slice(t,a)},parse(e){d(e);const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;e=this.toPosix(e);let r=e.charCodeAt(0);const a=this.isAbsolute(e);let n;t.root=this.rootname(e),a||this.hasProtocol(e)?n=1:n=0;let i=-1,o=0,l=-1,s=!0,f=e.length-1,c=0;for(;f>=n;--f){if(r=e.charCodeAt(f),r===47){if(!s){o=f+1;break}continue}l===-1&&(s=!1,l=f+1),r===46?i===-1?i=f:c!==1&&(c=1):i!==-1&&(c=-1)}return i===-1||l===-1||c===0||c===1&&i===l-1&&i===o+1?l!==-1&&(o===0&&a?t.base=t.name=e.slice(1,l):t.base=t.name=e.slice(o,l)):(o===0&&a?(t.name=e.slice(1,i),t.base=e.slice(1,l)):(t.name=e.slice(o,i),t.base=e.slice(o,l)),t.ext=e.slice(i,l)),t.dir=this.dirname(e),t},sep:"/",delimiter:":"};g.settings.RETINA_PREFIX=/@([0-9\.]+)x/,g.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;function I(){}function $(){}let w;function U(){return typeof w>"u"&&(w=function(){const e={stencil:!0,failIfMajorPerformanceCaveat:g.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!g.settings.ADAPTER.getWebGLRenderingContext())return!1;const t=g.settings.ADAPTER.createCanvas();let r=t.getContext("webgl",e)||t.getContext("experimental-webgl",e);const a=!!(r&&r.getContextAttributes().stencil);if(r){const n=r.getExtension("WEBGL_lose_context");n&&n.loseContext()}return r=null,a}catch{return!1}}()),w}var F="#f0f8ff",j="#faebd7",W="#00ffff",z="#7fffd4",J="#f0ffff",G="#f5f5dc",H="#ffe4c4",Y="#000000",Q="#ffebcd",V="#0000ff",X="#8a2be2",K="#a52a2a",Z="#deb887",ee="#5f9ea0",te="#7fff00",re="#d2691e",ae="#ff7f50",ne="#6495ed",ie="#fff8dc",oe="#dc143c",le="#00ffff",se="#00008b",fe="#008b8b",ce="#b8860b",ue="#a9a9a9",de="#006400",ge="#a9a9a9",he="#bdb76b",ve="#8b008b",be="#556b2f",me="#ff8c00",pe="#9932cc",ye="#8b0000",we="#e9967a",ke="#8fbc8f",Ee="#483d8b",Ae="#2f4f4f",xe="#2f4f4f",Pe="#00ced1",Ce="#9400d3",De="#ff1493",_e="#00bfff",Te="#696969",Me="#696969",Re="#1e90ff",Oe="#b22222",Ne="#fffaf0",Le="#228b22",Se="#ff00ff",Be="#dcdcdc",qe="#f8f8ff",Ie="#daa520",$e="#ffd700",Ue="#808080",Fe="#008000",je="#adff2f",We="#808080",ze="#f0fff0",Je="#ff69b4",Ge="#cd5c5c",He="#4b0082",Ye="#fffff0",Qe="#f0e68c",Ve="#fff0f5",Xe="#e6e6fa",Ke="#7cfc00",Ze="#fffacd",et="#add8e6",tt="#f08080",rt="#e0ffff",at="#fafad2",nt="#d3d3d3",it="#90ee90",ot="#d3d3d3",lt="#ffb6c1",st="#ffa07a",ft="#20b2aa",ct="#87cefa",ut="#778899",dt="#778899",gt="#b0c4de",ht="#ffffe0",vt="#00ff00",bt="#32cd32",mt="#faf0e6",pt="#ff00ff",yt="#800000",wt="#66cdaa",kt="#0000cd",Et="#ba55d3",At="#9370db",xt="#3cb371",Pt="#7b68ee",Ct="#00fa9a",Dt="#48d1cc",_t="#c71585",Tt="#191970",Mt="#f5fffa",Rt="#ffe4e1",Ot="#ffe4b5",Nt="#ffdead",Lt="#000080",St="#fdf5e6",Bt="#808000",qt="#6b8e23",It="#ffa500",$t="#ff4500",Ut="#da70d6",Ft="#eee8aa",jt="#98fb98",Wt="#afeeee",zt="#db7093",Jt="#ffefd5",Gt="#ffdab9",Ht="#cd853f",Yt="#ffc0cb",Qt="#dda0dd",Vt="#b0e0e6",Xt="#800080",Kt="#663399",Zt="#ff0000",er="#bc8f8f",tr="#4169e1",rr="#8b4513",ar="#fa8072",nr="#f4a460",ir="#2e8b57",or="#fff5ee",lr="#a0522d",sr="#c0c0c0",fr="#87ceeb",cr="#6a5acd",ur="#708090",dr="#708090",gr="#fffafa",hr="#00ff7f",vr="#4682b4",br="#d2b48c",mr="#008080",pr="#d8bfd8",yr="#ff6347",wr="#40e0d0",kr="#ee82ee",Er="#f5deb3",Ar="#ffffff",xr="#f5f5f5",Pr="#ffff00",Cr="#9acd32",Dr={aliceblue:F,antiquewhite:j,aqua:W,aquamarine:z,azure:J,beige:G,bisque:H,black:Y,blanchedalmond:Q,blue:V,blueviolet:X,brown:K,burlywood:Z,cadetblue:ee,chartreuse:te,chocolate:re,coral:ae,cornflowerblue:ne,cornsilk:ie,crimson:oe,cyan:le,darkblue:se,darkcyan:fe,darkgoldenrod:ce,darkgray:ue,darkgreen:de,darkgrey:ge,darkkhaki:he,darkmagenta:ve,darkolivegreen:be,darkorange:me,darkorchid:pe,darkred:ye,darksalmon:we,darkseagreen:ke,darkslateblue:Ee,darkslategray:Ae,darkslategrey:xe,darkturquoise:Pe,darkviolet:Ce,deeppink:De,deepskyblue:_e,dimgray:Te,dimgrey:Me,dodgerblue:Re,firebrick:Oe,floralwhite:Ne,forestgreen:Le,fuchsia:Se,gainsboro:Be,ghostwhite:qe,goldenrod:Ie,gold:$e,gray:Ue,green:Fe,greenyellow:je,grey:We,honeydew:ze,hotpink:Je,indianred:Ge,indigo:He,ivory:Ye,khaki:Qe,lavenderblush:Ve,lavender:Xe,lawngreen:Ke,lemonchiffon:Ze,lightblue:et,lightcoral:tt,lightcyan:rt,lightgoldenrodyellow:at,lightgray:nt,lightgreen:it,lightgrey:ot,lightpink:lt,lightsalmon:st,lightseagreen:ft,lightskyblue:ct,lightslategray:ut,lightslategrey:dt,lightsteelblue:gt,lightyellow:ht,lime:vt,limegreen:bt,linen:mt,magenta:pt,maroon:yt,mediumaquamarine:wt,mediumblue:kt,mediumorchid:Et,mediumpurple:At,mediumseagreen:xt,mediumslateblue:Pt,mediumspringgreen:Ct,mediumturquoise:Dt,mediumvioletred:_t,midnightblue:Tt,mintcream:Mt,mistyrose:Rt,moccasin:Ot,navajowhite:Nt,navy:Lt,oldlace:St,olive:Bt,olivedrab:qt,orange:It,orangered:$t,orchid:Ut,palegoldenrod:Ft,palegreen:jt,paleturquoise:Wt,palevioletred:zt,papayawhip:Jt,peachpuff:Gt,peru:Ht,pink:Yt,plum:Qt,powderblue:Vt,purple:Xt,rebeccapurple:Kt,red:Zt,rosybrown:er,royalblue:tr,saddlebrown:rr,salmon:ar,sandybrown:nr,seagreen:ir,seashell:or,sienna:lr,silver:sr,skyblue:fr,slateblue:cr,slategray:ur,slategrey:dr,snow:gr,springgreen:hr,steelblue:vr,tan:br,teal:mr,thistle:pr,tomato:yr,turquoise:wr,violet:kr,wheat:Er,white:Ar,whitesmoke:xr,yellow:Pr,yellowgreen:Cr};function _r(e,t=[]){return t[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(e&255)/255,t}function Tr(e){let t=e.toString(16);return t="000000".substring(0,6-t.length)+t,`#${t}`}function Mr(e){if(typeof e=="string"&&(e=Dr[e.toLowerCase()]||e,e[0]==="#"&&(e=e.slice(1)),e.length===3)){const[t,r,a]=e;e=t+t+r+r+a+a}return parseInt(e,16)}function Rr(e){return(e[0]*255<<16)+(e[1]*255<<8)+(e[2]*255|0)}function Or(){const e=[],t=[];for(let a=0;a<32;a++)e[a]=a,t[a]=a;e[u.BLEND_MODES.NORMAL_NPM]=u.BLEND_MODES.NORMAL,e[u.BLEND_MODES.ADD_NPM]=u.BLEND_MODES.ADD,e[u.BLEND_MODES.SCREEN_NPM]=u.BLEND_MODES.SCREEN,t[u.BLEND_MODES.NORMAL]=u.BLEND_MODES.NORMAL_NPM,t[u.BLEND_MODES.ADD]=u.BLEND_MODES.ADD_NPM,t[u.BLEND_MODES.SCREEN]=u.BLEND_MODES.SCREEN_NPM;const r=[];return r.push(t),r.push(e),r}const P=Or();function Nr(e,t){return P[t?1:0][e]}function Lr(e,t,r,a){return r=r||new Float32Array(4),a||a===void 0?(r[0]=e[0]*t,r[1]=e[1]*t,r[2]=e[2]*t):(r[0]=e[0],r[1]=e[1],r[2]=e[2]),r[3]=t,r}function Sr(e,t){if(t===1)return(t*255<<24)+e;if(t===0)return 0;let r=e>>16&255,a=e>>8&255,n=e&255;return r=r*t+.5|0,a=a*t+.5|0,n=n*t+.5|0,(t*255<<24)+(r<<16)+(a<<8)+n}function Br(e,t,r,a){return r=r||new Float32Array(4),r[0]=(e>>16&255)/255,r[1]=(e>>8&255)/255,r[2]=(e&255)/255,(a||a===void 0)&&(r[0]*=t,r[1]*=t,r[2]*=t),r[3]=t,r}function qr(e,t=null){const r=e*6;if(t=t||new Uint16Array(r),t.length!==r)throw new Error(`Out buffer length is incorrect, got ${t.length} and expected ${r}`);for(let a=0,n=0;a<r;a+=6,n+=4)t[a+0]=n+0,t[a+1]=n+1,t[a+2]=n+2,t[a+3]=n+0,t[a+4]=n+2,t[a+5]=n+3;return t}function C(e){if(e.BYTES_PER_ELEMENT===4)return e instanceof Float32Array?"Float32Array":e instanceof Uint32Array?"Uint32Array":"Int32Array";if(e.BYTES_PER_ELEMENT===2){if(e instanceof Uint16Array)return"Uint16Array"}else if(e.BYTES_PER_ELEMENT===1&&e instanceof Uint8Array)return"Uint8Array";return null}const Ir={Float32Array,Uint32Array,Int32Array,Uint8Array};function $r(e,t){let r=0,a=0;const n={};for(let s=0;s<e.length;s++)a+=t[s],r+=e[s].length;const i=new ArrayBuffer(r*4);let o=null,l=0;for(let s=0;s<e.length;s++){const f=t[s],c=e[s],m=C(c);n[m]||(n[m]=new Ir[m](i)),o=n[m];for(let h=0;h<c.length;h++){const T=(h/f|0)*a+l,M=h%f;o[T+M]=c[h]}l+=f}return new Float32Array(i)}function Ur(e){return e+=e===0?1:0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1}function Fr(e){return!(e&e-1)&&!!e}function jr(e){let t=(e>65535?1:0)<<4;e>>>=t;let r=(e>255?1:0)<<3;return e>>>=r,t|=r,r=(e>15?1:0)<<2,e>>>=r,t|=r,r=(e>3?1:0)<<1,e>>>=r,t|=r,t|e>>1}function Wr(e,t,r){const a=e.length;let n;if(t>=a||r===0)return;r=t+r>a?a-t:r;const i=a-r;for(n=t;n<i;++n)e[n]=e[n+r];e.length=i}function zr(e){return e===0?0:e<0?-1:1}let Jr=0;function Gr(){return++Jr}const D={};function Hr(e,t,r=3){if(D[t])return;let a=new Error().stack;typeof a>"u"?console.warn("PixiJS Deprecation Warning: ",`${t} | ||
Deprecated since v${e}`):(a=a.split(` | ||
`).splice(t).join(` | ||
`),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",`${r} | ||
Deprecated since v${e}`),console.warn(a),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",`${r} | ||
Deprecated since v${e}`),console.warn(a))),_[r]=!0}const Vt={},v=Object.create(null),b=Object.create(null);function Xt(){let e;for(e in v)v[e].destroy();for(e in b)b[e].destroy()}function Kt(){let e;for(e in v)delete v[e];for(e in b)delete b[e]}class Zt{constructor(r,t,a){this.canvas=u.settings.ADAPTER.createCanvas(),this.context=this.canvas.getContext("2d"),this.resolution=a||u.settings.RESOLUTION,this.resize(r,t)}clear(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)}resize(r,t){this.canvas.width=Math.round(r*this.resolution),this.canvas.height=Math.round(t*this.resolution)}destroy(){this.context=null,this.canvas=null}get width(){return this.canvas.width}set width(r){this.canvas.width=Math.round(r)}get height(){return this.canvas.height}set height(r){this.canvas.height=Math.round(r)}}function ea(e){let r=e.width,t=e.height;const a=e.getContext("2d"),n=a.getImageData(0,0,r,t).data,o=n.length,i={top:null,left:null,right:null,bottom:null};let l=null,s,f,c;for(s=0;s<o;s+=4)n[s+3]!==0&&(f=s/4%r,c=~~(s/4/r),i.top===null&&(i.top=c),(i.left===null||f<i.left)&&(i.left=f),(i.right===null||i.right<f)&&(i.right=f+1),(i.bottom===null||i.bottom<c)&&(i.bottom=c));return i.top!==null&&(r=i.right-i.left,t=i.bottom-i.top+1,l=a.getImageData(i.left,i.top,r,t)),{height:t,width:r,data:l}}const M=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i;function ra(e){const r=M.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]}}let m;function ta(e,r=globalThis.location){if(e.startsWith("data:"))return"";r=r||globalThis.location,m||(m=document.createElement("a")),m.href=e;const t=A.parse(m.href),a=!t.port&&r.port===""||t.port===r.port;return t.hostname!==r.hostname||!a||t.protocol!==r.protocol?"anonymous":""}function aa(e,r=1){const t=u.settings.RETINA_PREFIX.exec(e);return t?parseFloat(t[1]):r}Object.defineProperty(exports,"isMobile",{enumerable:!0,get:function(){return u.isMobile}}),Object.defineProperty(exports,"EventEmitter",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(exports,"earcut",{enumerable:!0,get:function(){return $.default}}),exports.BaseTextureCache=b,exports.CanvasRenderTarget=Zt,exports.DATA_URI=M,exports.ProgramCache=Vt,exports.TextureCache=v,exports.clearTextureCache=Kt,exports.correctBlendMode=St,exports.createIndicesForQuads=It,exports.decomposeDataUri=ra,exports.deprecation=Qt,exports.destroyTextureCache=Xt,exports.determineCrossOrigin=ta,exports.getBufferType=T,exports.getResolutionOfUrl=aa,exports.hex2rgb=Mt,exports.hex2string=Rt,exports.interleaveTypedArrays=Ft,exports.isPow2=Wt,exports.isWebGLSupported=j,exports.log2=zt,exports.nextPow2=jt,exports.path=P,exports.premultiplyBlendMode=D,exports.premultiplyRgba=$t,exports.premultiplyTint=Bt,exports.premultiplyTintToRgba=qt,exports.removeItems=Jt,exports.rgb2hex=Nt,exports.sayHello=F,exports.sign=Gt,exports.skipHello=U,exports.string2hex=Ot,exports.trimCanvas=ea,exports.uid=Yt,exports.url=A; | ||
`).splice(r).join(` | ||
`),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",`${t} | ||
Deprecated since v${e}`),console.warn(a),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",`${t} | ||
Deprecated since v${e}`),console.warn(a))),D[t]=!0}const Yr={},v=Object.create(null),b=Object.create(null);function Qr(){let e;for(e in v)v[e].destroy();for(e in b)b[e].destroy()}function Vr(){let e;for(e in v)delete v[e];for(e in b)delete b[e]}class Xr{constructor(t,r,a){this.canvas=g.settings.ADAPTER.createCanvas(),this.context=this.canvas.getContext("2d"),this.resolution=a||g.settings.RESOLUTION,this.resize(t,r)}clear(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)}resize(t,r){this.canvas.width=Math.round(t*this.resolution),this.canvas.height=Math.round(r*this.resolution)}destroy(){this.context=null,this.canvas=null}get width(){return this.canvas.width}set width(t){this.canvas.width=Math.round(t)}get height(){return this.canvas.height}set height(t){this.canvas.height=Math.round(t)}}function Kr(e){let t=e.width,r=e.height;const a=e.getContext("2d"),n=a.getImageData(0,0,t,r).data,i=n.length,o={top:null,left:null,right:null,bottom:null};let l=null,s,f,c;for(s=0;s<i;s+=4)n[s+3]!==0&&(f=s/4%t,c=~~(s/4/t),o.top===null&&(o.top=c),(o.left===null||f<o.left)&&(o.left=f),(o.right===null||o.right<f)&&(o.right=f+1),(o.bottom===null||o.bottom<c)&&(o.bottom=c));return o.top!==null&&(t=o.right-o.left,r=o.bottom-o.top+1,l=a.getImageData(o.left,o.top,t,r)),{height:r,width:t,data:l}}const _=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i;function Zr(e){const t=_.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]}}let p;function ea(e,t=globalThis.location){if(e.startsWith("data:"))return"";t=t||globalThis.location,p||(p=document.createElement("a")),p.href=e;const r=E.parse(p.href),a=!r.port&&t.port===""||r.port===t.port;return r.hostname!==t.hostname||!a||r.protocol!==t.protocol?"anonymous":""}function ta(e,t=1){const r=g.settings.RETINA_PREFIX.exec(e);return r?parseFloat(r[1]):t}Object.defineProperty(exports,"isMobile",{enumerable:!0,get:function(){return g.isMobile}}),Object.defineProperty(exports,"EventEmitter",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(exports,"earcut",{enumerable:!0,get:function(){return L.default}}),exports.BaseTextureCache=b,exports.CanvasRenderTarget=Xr,exports.DATA_URI=_,exports.ProgramCache=Yr,exports.TextureCache=v,exports.clearTextureCache=Vr,exports.correctBlendMode=Nr,exports.createIndicesForQuads=qr,exports.decomposeDataUri=Zr,exports.deprecation=Hr,exports.destroyTextureCache=Qr,exports.determineCrossOrigin=ea,exports.getBufferType=C,exports.getResolutionOfUrl=ta,exports.hex2rgb=_r,exports.hex2string=Tr,exports.interleaveTypedArrays=$r,exports.isPow2=Fr,exports.isWebGLSupported=U,exports.log2=jr,exports.nextPow2=Ur,exports.path=x,exports.premultiplyBlendMode=P,exports.premultiplyRgba=Lr,exports.premultiplyTint=Sr,exports.premultiplyTintToRgba=Br,exports.removeItems=Wr,exports.rgb2hex=Rr,exports.sayHello=$,exports.sign=zr,exports.skipHello=I,exports.string2hex=Mr,exports.trimCanvas=Kr,exports.uid=Gr,exports.url=E; | ||
//# sourceMappingURL=utils.min.js.map |
@@ -406,11 +406,8 @@ import type { BaseTexture } from '@pixi/core'; | ||
/** | ||
* Logs out the version and renderer information for this running instance of PIXI. | ||
* If you don't want to see this message you can run `PIXI.utils.skipHello()` before | ||
* creating your renderer. Keep in mind that doing that will forever make you a jerk face. | ||
* @static | ||
* @function sayHello | ||
* @memberof PIXI.utils | ||
* @param {string} type - The string renderer type to log. | ||
* @deprecated since 7.0.0 | ||
*/ | ||
export declare function sayHello(type: string): void; | ||
export declare function sayHello(): void; | ||
@@ -427,5 +424,5 @@ /** | ||
/** | ||
* Skips the hello message of renderers that are created after this is run. | ||
* @function skipHello | ||
* @memberof PIXI.utils | ||
* @deprecated since 7.0.0 | ||
*/ | ||
@@ -437,6 +434,8 @@ export declare function skipHello(): void; | ||
* It can handle: | ||
* hex strings starting with #: "#ffffff" | ||
* hex strings starting with 0x: "0xffffff" | ||
* hex strings without prefix: "ffffff" | ||
* css colors: "black" | ||
* - hex strings starting with #: "#ffffff" | ||
* - hex strings starting with 0x: "0xffffff" | ||
* - hex strings without prefix: "ffffff" | ||
* - hex strings (3 characters) with #: "#fff" | ||
* - hex strings (3 characters) without prefix: "fff" | ||
* - css colors: "black" | ||
* @example | ||
@@ -443,0 +442,0 @@ * PIXI.utils.string2hex("#ffffff"); // returns 0xffffff |
{ | ||
"name": "@pixi/utils", | ||
"version": "7.0.0-beta.2", | ||
"version": "7.0.0-beta.3", | ||
"main": "dist/cjs/utils.js", | ||
@@ -39,4 +39,4 @@ "module": "dist/esm/utils.mjs", | ||
"dependencies": { | ||
"@pixi/constants": "7.0.0-beta.2", | ||
"@pixi/settings": "7.0.0-beta.2", | ||
"@pixi/constants": "7.0.0-beta.3", | ||
"@pixi/settings": "7.0.0-beta.3", | ||
"@types/earcut": "^2.1.0", | ||
@@ -50,3 +50,3 @@ "earcut": "^2.2.4", | ||
}, | ||
"gitHead": "b82316094043a2a45a0c305068e5ebe8321f668a" | ||
"gitHead": "8055ae1c16d4c0f8dabda86cafd8e68c356450e8" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
430960
2872
+ Added@pixi/constants@7.0.0-beta.3(transitive)
+ Added@pixi/settings@7.0.0-beta.3(transitive)
+ Added@types/css-font-loading-module@0.0.7(transitive)
- Removed@pixi/constants@7.0.0-beta.2(transitive)
- Removed@pixi/settings@7.0.0-beta.2(transitive)
Updated@pixi/constants@7.0.0-beta.3
Updated@pixi/settings@7.0.0-beta.3