1621 lines
922 KiB
JavaScript
1621 lines
922 KiB
JavaScript
|
const gx=function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}};gx();const yx="modulepreload",Xp={},bx="/",xu=function(e,r){return!r||r.length===0?e():Promise.all(r.map(n=>{if(n=`${bx}${n}`,n in Xp)return;Xp[n]=!0;const i=n.endsWith(".css"),o=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${o}`))return;const a=document.createElement("link");if(a.rel=i?"stylesheet":yx,i||(a.as="script",a.crossOrigin=""),a.href=n,document.head.appendChild(a),i)return new Promise((s,l)=>{a.addEventListener("load",s),a.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>e())};function Zu(t,e){const r=Object.create(null),n=t.split(",");for(let i=0;i<n.length;i++)r[n[i]]=!0;return e?i=>!!r[i.toLowerCase()]:i=>!!r[i]}const _x="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",xx=Zu(_x),Tx="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",wx=Zu(Tx);function py(t){return!!t||t===""}function ce(t){if(Ct(t)){const e={};for(let r=0;r<t.length;r++){const n=t[r],i=Ke(n)?Cx(n):ce(n);if(i)for(const o in i)e[o]=i[o]}return e}else{if(Ke(t))return t;if(rr(t))return t}}const Ex=/;(?![^(]*\))/g,Ix=/:(.+)/;function Cx(t){const e={};return t.split(Ex).forEach(r=>{if(r){const n=r.split(Ix);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Qt(t){let e="";if(Ke(t))e=t;else if(Ct(t))for(let r=0;r<t.length;r++){const n=Qt(t[r]);n&&(e+=n+" ")}else if(rr(t))for(const r in t)t[r]&&(e+=r+" ");return e.trim()}function vy(t){if(!t)return null;let{class:e,style:r}=t;return e&&!Ke(e)&&(t.class=Qt(e)),r&&(t.style=ce(r)),t}function Rx(t,e){if(t.length!==e.length)return!1;let r=!0;for(let n=0;r&&n<t.length;n++)r=Hi(t[n],e[n]);return r}function Hi(t,e){if(t===e)return!0;let r=zp(t),n=zp(e);if(r||n)return r&&n?t.getTime()===e.getTime():!1;if(r=Es(t),n=Es(e),r||n)return t===e;if(r=Ct(t),n=Ct(e),r||n)return r&&n?Rx(t,e):!1;if(r=rr(t),n=rr(e),r||n){if(!r||!n)return!1;const i=Object.keys(t).length,o=Object.keys(e).length;if(i!==o)return!1;for(const a in t){const s=t.hasOwnProperty(a),l=e.hasOwnProperty(a);if(s&&!l||!s&&l||!Hi(t[a],e[a]))return!1}}return String(t)===String(e)}function qu(t,e){return t.findIndex(r=>Hi(r,e))}const re=t=>Ke(t)?t:t==null?"":Ct(t)||rr(t)&&(t.toString===gy||!zt(t.toString))?JSON.stringify(t,my,2):String(t),my=(t,e)=>e&&e.__v_isRef?my(t,e.value):ha(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,i])=>(r[`${n} =>`]=i,r),{})}:Fo(e)?{[`Set(${e.size})`]:[...e.values()]}:rr(e)&&!Ct(e)&&!yy(e)?String(e):e,Ee={},fa=[],xn=()=>{},Nx=()=>!1,Px=/^on[^a-z]/,qs=t=>Px.test(t),Td=t=>t.startsWith("onUpdate:"),er=Object.assign,wd=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},Sx=Object.prototype.hasOwnProperty,me=(t,e)=>Sx.call(t,e),Ct=Array.isArray,ha=t=>Js(t)==="[object Map]",Fo=t=>Js(t)==="[object Set]",zp=t=>Js(t)==="[object Date]",zt=t=>typeof t=="function",Ke=t=>typeof t=="string",Es=t=>typeof t=="symbol",rr=t=>t!==null&&typeof t=="object",Ed=t=>rr(t)&&zt(t.then)&&zt(t.catch),gy=Object.prototype.toString,Js=t=>gy.call(t),Ax=t=>Js(t).slice(8,-1),yy=t=>Js(t)==="[object Object]",Id=t=>Ke(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,as=Zu(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ju=t=>{const e
|
||
|
`),i]);else{const o=[`[Vue warn]: ${t}`,...e];i.length&&o.push(`
|
||
|
`,...TT(i)),console.warn(...o)}Mo()}function xT(){let t=ls[ls.length-1];if(!t)return[];const e=[];for(;t;){const r=e[0];r&&r.vnode===t?r.recurseCount++:e.push({vnode:t,recurseCount:0});const n=t.component&&t.component.parent;t=n&&n.vnode}return e}function TT(t){const e=[];return t.forEach((r,n)=>{e.push(...n===0?[]:[`
|
||
|
`],...wT(r))}),e}function wT({vnode:t,recurseCount:e}){const r=e>0?`... (${e} recursive calls)`:"",n=t.component?t.component.parent==null:!1,i=` at <${Ib(t.component,t.type,n)}`,o=">"+r;return t.props?[i,...ET(t.props),o]:[i+o]}function ET(t){const e=[],r=Object.keys(t);return r.slice(0,3).forEach(n=>{e.push(...Fy(n,t[n]))}),r.length>3&&e.push(" ..."),e}function Fy(t,e,r){return Ke(e)?(e=JSON.stringify(e),r?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?r?e:[`${t}=${e}`]:oe(e)?(e=Fy(t,ue(e.value),!0),r?e:[`${t}=Ref<`,e,">"]):zt(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=ue(e),r?e:[`${t}=`,e])}function Bn(t,e,r,n){let i;try{i=n?t(...n):t()}catch(o){Bo(o,e,r)}return i}function Yr(t,e,r,n){if(zt(t)){const o=Bn(t,e,r,n);return o&&Ed(o)&&o.catch(a=>{Bo(a,e,r)}),o}const i=[];for(let o=0;o<t.length;o++)i.push(Yr(t[o],e,r,n));return i}function Bo(t,e,r,n=!0){const i=e?e.vnode:null;if(e){let o=e.parent;const a=e.proxy,s=r;for(;o;){const u=o.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](t,a,s)===!1)return}o=o.parent}const l=e.appContext.config.errorHandler;if(l){Bn(l,null,10,[t,a,s]);return}}IT(t,r,i,n)}function IT(t,e,r,n=!0){console.error(t)}let Eu=!1,zf=!1;const jr=[];let ei=0;const us=[];let Qa=null,Zo=0;const cs=[];let Ci=null,qo=0;const Ly=Promise.resolve();let Ld=null,Wf=null;function cr(t){const e=Ld||Ly;return t?e.then(this?t.bind(this):t):e}function CT(t){let e=ei+1,r=jr.length;for(;e<r;){const n=e+r>>>1;Cs(jr[n])<t?e=n+1:r=n}return e}function Md(t){(!jr.length||!jr.includes(t,Eu&&t.allowRecurse?ei+1:ei))&&t!==Wf&&(t.id==null?jr.push(t):jr.splice(CT(t.id),0,t),My())}function My(){!Eu&&!zf&&(zf=!0,Ld=Ly.then(ky))}function RT(t){const e=jr.indexOf(t);e>ei&&jr.splice(e,1)}function By(t,e,r,n){Ct(t)?r.push(...t):(!e||!e.includes(t,t.allowRecurse?n+1:n))&&r.push(t),My()}function NT(t){By(t,Qa,us,Zo)}function Bd(t){By(t,Ci,cs,qo)}function ic(t,e=null){if(us.length){for(Wf=e,Qa=[...new Set(us)],us.length=0,Zo=0;Zo<Qa.length;Zo++)Qa[Zo]();Qa=null,Zo=0,Wf=null,ic(t,e)}}function Iu(t){if(ic(),cs.length){const e=[...new Set(cs)];if(cs.length=0,Ci){Ci.push(...e);return}for(Ci=e,Ci.sort((r,n)=>Cs(r)-Cs(n)),qo=0;qo<Ci.length;qo++)Ci[qo]();Ci=null,qo=0}}const Cs=t=>t.id==null?1/0:t.id;function ky(t){zf=!1,Eu=!0,ic(t),jr.sort((r,n)=>Cs(r)-Cs(n));const e=xn;try{for(ei=0;ei<jr.length;ei++){const r=jr[ei];r&&r.active!==!1&&Bn(r,null,14)}}finally{ei=0,jr.length=0,Iu(),Eu=!1,Ld=null,(jr.length||us.length||cs.length)&&ky(t)}}let Jo,_l=[];function Gy(t,e){var r,n;Jo=t,Jo?(Jo.enabled=!0,_l.forEach(({event:i,args:o})=>Jo.emit(i,...o)),_l=[]):typeof window!="undefined"&&window.HTMLElement&&!(!((n=(r=window.navigator)===null||r===void 0?void 0:r.userAgent)===null||n===void 0)&&n.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{Gy(o,e)}),setTimeout(()=>{Jo||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,_l=[])},3e3)):_l=[]}function PT(t,e,...r){if(t.isUnmounted)return;const n=t.vnode.props||Ee;let i=r;const o=e.startsWith("update:"),a=o&&e.slice(7);if(a&&a in n){const c=`${a==="modelValue"?"model":a}Modifiers`,{number:f,trim:h}=n[c]||Ee;h&&(i=r.map(d=>d.trim())),f&&(i=r.map(Vi))}let s,l=n[s=ss(e)]||n[s=ss(Kr(e))];!l&&o&&(l=n[s=ss(Mn(e))]),l&&Yr(l,t,6,i);const u=n[s+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[s])return;t.emitted[s]=!0,Yr(u,t,6,i)}}function Dy(t,e,r=!1){const n=e.emitsCache,i=n.get(t);if(i!==void 0)return i;const o=t.emits;let a={},s=!1;if(!zt(t)){const l=u=>{const c=Dy(u,e,!0);c&&(s=!0,er(a,c))};!r&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!o&&!s?(n.set(t,null),null):(Ct(o)?o.forEach(l=>a[l]=null):er(a,o),n.set(t,a),a)}function oc(t,e){return!t||!qs(e)?!1:(e=e.slice(2).replace(/Once$/,""),me(t,e[0].toLowerCase()+e.slice(1))||me(t,Mn(e))||me(t,e))}let Ir=null,ac=null;function Rs(t){const e=Ir;return Ir=t,ac=t&&t.type.__scopeId||null,e}function Cn(t){ac=t}function Rn(){ac=null}const ST=t=>Bt;function Bt(t,e=Ir,r){if(!e||t._n)return t;const n=(...i)=>{n._d&&th(-1);const o=Rs(e),a=t(...i);return Rs(o),n._d&&th(
|
||
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||
|
*
|
||
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||
|
* Released under the MIT License.
|
||
|
*/function Fv(t){return Object.prototype.toString.call(t)==="[object Object]"}function _E(t){var e,r;return Fv(t)===!1?!1:(e=t.constructor,e===void 0?!0:(r=e.prototype,!(Fv(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}const lr=Symbol("ProxyState"),Qo=Symbol("ProxyPath");function pr(t,e={}){const r=e;let n=!1;function i(){return n||(Object.assign(r,t(r)),n=!0),r}return new Proxy(r,{get(o,a){return a===lr?i():i()[a]},set(o,a,s){return i()[a]=s,!0},has(o,a){return a===lr?!0:Reflect.has(i(),a)},ownKeys(){return Reflect.ownKeys(i())},getOwnPropertyDescriptor(o,a){return n||(Object.assign(r,t(r)),n=!0),Object.getOwnPropertyDescriptor(o,a)}})}var Le=window.state=Sa({lastTenTicks:[],hasNaN:!1,NaNPath:[]});const n_=zn({id:"",devSpeed:null,name:"",tabs:[],time:-1,autosave:!0,offlineProd:!0,offlineTime:null,timePlayed:0,keepGoing:!1,modID:"",modVersion:"",layers:{}});function i_(t){return JSON.stringify(t,(e,r)=>E(r))}const o_={get(t,e){var n;if(e===lr||e===Qo)return t[e];const r=t[lr][e];if(e!=="value"&&(_E(r)||Array.isArray(r))){if(r!==((n=t[e])==null?void 0:n[lr])){const i=[...t[Qo],e];t[e]=new Proxy({[lr]:r,[Qo]:i},o_)}return t[e]}return r},set(t,e,r,n){if(!Le.hasNaN&&(typeof r=="number"&&isNaN(r)||r instanceof O&&(isNaN(r.sign)||isNaN(r.layer)||isNaN(r.mag)))){const i=t[lr][e];if(!(typeof i=="number"&&isNaN(i)||i instanceof O&&(isNaN(i.sign)||isNaN(i.layer)||isNaN(i.mag))))throw n_.autosave=!1,Le.hasNaN=!0,Le.NaNPath=[...t[Qo],e],Le.NaNReceiver=n,console.error("Attempted to set NaN value",[...t[Qo],e],t[lr]),"Attempted to set NaN value. See above for details"}return t[lr][e]=r,!0},ownKeys(t){return Reflect.ownKeys(t[lr])},has(t,e){return Reflect.has(t[lr],e)},getOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t[lr],e)}};var wt=window.player=new Proxy({[lr]:n_,[Qo]:["player"]},o_);let a_=()=>({events:{},emit(t,...e){(this.events[t]||[]).forEach(r=>r(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(r=>r!==e)}});const vr=a_();let ta=null,ps=null;function Ou(){const t=Date.now();let e=(t-wt.time)/1e3;wt.time=t;const r=e;if(Le.lastTenTicks.push(r),Le.lastTenTicks.length>10&&(Le.lastTenTicks=Le.lastTenTicks.slice(1)),!((ps==null?void 0:ps.value)&&!wt.keepGoing)&&!Le.hasNaN&&(e=Math.max(e,0),wt.devSpeed!==0)){if(wt.offlineTime!=null){if(O.gt(wt.offlineTime,Ie.offlineLimit*3600)&&(wt.offlineTime=Ie.offlineLimit*3600),O.gt(wt.offlineTime,0)&&wt.devSpeed!==0){const n=Math.max(wt.offlineTime/10,e);wt.offlineTime=wt.offlineTime-n,e+=n}else wt.devSpeed===0&&(wt.offlineTime+=e);(!wt.offlineProd||O.lt(wt.offlineTime,0))&&(wt.offlineTime=null)}e=Math.min(e,Ie.maxTickLength),wt.devSpeed!=null&&(e*=wt.devSpeed),Number.isFinite(e)||(e=1e308),!O.eq(e,0)&&(wt.timePlayed+=e,Number.isFinite(wt.timePlayed)||(wt.timePlayed=1e308),vr.emit("update",e,r),Pe.unthrottled?(requestAnimationFrame(Ou),ta!=null&&(clearInterval(ta),ta=null)):ta==null&&(ta=setInterval(Ou,50)))}}async function xE(){ps=(await xu(()=>Promise.resolve().then(function(){return vx}),void 0)).hasWon,ze(ps,t=>{t&&vr.emit("gameWon")}),Pe.unthrottled?requestAnimationFrame(Ou):ta=setInterval(Ou,50)}var TE=Object.freeze(Object.defineProperty({__proto__:null,globalBus:vr,startGameLoop:xE},Symbol.toStringTag,{value:"Module"})),cu=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function wE(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function s_(t){if(t.__esModule)return t;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach(function(r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}),e}var l_={exports:{}};(function(t){var e=function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",o={};function a(l,u){if(!o[l]){o[l]={};for(var c=0;c<l.length;c++)o
|
||
|
`,t),await To(va())}}function va(){const t=fu(),e=u_({id:t});return pn(e),Pe.saves.push(t),e}function fu(){let t,e=0;do t=`${Ie.id}-${e++}`;while(localStorage.getItem(t));return t}async function To(t){console.info("Loading save",t);const{layers:e,removeLayer:r,addLayer:n}=await xu(()=>Promise.resolve().then(function(){return zE}),void 0),{fixOldSave:i,getInitialLayers:o}=await xu(()=>Promise.resolve().then(function(){return vx}),void 0);for(const a in e){const s=e[a];s&&r(s)}o(t).forEach(a=>n(a,t)),t=u_(t),t.offlineProd&&t.time&&(t.offlineTime==null&&(t.offlineTime=0),t.offlineTime+=(Date.now()-t.time)/1e3),t.time=Date.now(),t.modVersion!==Ie.versionNumber&&i(t.modVersion,t),Object.assign(wt,t),Pe.active=wt.id}setInterval(()=>{wt.autosave&&pn()},1e3);window.onbeforeunload=()=>{wt.autosave&&pn()};window.save=pn;const IE=window.hardReset=async()=>{await To(va())},Ps=zn({active:"",saves:[],showTPS:!0,theme:Kd.Nordic,unthrottled:!1});ze(Ps,t=>{const e=Oi.compressToUTF16(JSON.stringify(t));localStorage.setItem(Ie.id,e)},{deep:!0});var Pe=window.settings=Ps;function CE(){try{let t=localStorage.getItem(Ie.id);if(t!=null&&t!==""){if(t[0]!=="{")if(t[0]==="e")t=decodeURIComponent(escape(atob(t)));else if(t[0]==="\u1BE1")t=Oi.decompressFromUTF16(t);else{console.warn("Unable to determine settings encoding",t);return}const e=JSON.parse(t);typeof e=="object"&&Object.assign(Ps,e)}vr.emit("loadSettings",Ps)}catch{}}window.hardResetSettings=()=>{const t={active:"",saves:[],showTPS:!0,theme:Kd.Nordic};vr.emit("loadSettings",t),Object.assign(Ps,t),IE()};const c_=zn([]);function f_(t){c_.push(t)}const h_=zn([]);function RE(t){h_.push(t)}const NE=zn([]),PE={class:"table"},hu=Pt({__name:"Column",setup(t){const e=tt(()=>gi[Pe.theme].mergeAdjacent);return(r,n)=>(B(),Q("div",PE,[U("div",{class:Qt(["col",{mergeAdjacent:E(e)}])},[He(r.$slots,"default")],2)]))}}),SE={class:"table"},vs=Pt({__name:"Row",setup(t){const e=tt(()=>gi[Pe.theme].mergeAdjacent);return(r,n)=>(B(),Q("div",SE,[U("div",{class:Qt(["row",{mergeAdjacent:E(e)}])},[He(r.$slots,"default")],2)]))}});function d_(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!wn(t)}function te(t,e="span"){return typeof t=="function"?Pt({render:t}):typeof t=="string"?t.length>0?(t=t.trim(),t.charAt(0)!=="<"&&(t=`<${e}>${t}</${e}>`),Pt({template:t})):Pt({render:()=>({})}):t}function Ge(t){if(on(t))return typeof t=="function"?t():te(t);const e=t[ir];return P(e,t[fr](),null)}function hn(...t){let e;return P(vs,null,d_(e=t.map(Ge))?e:{default:()=>[e]})}function AE(...t){let e;return P(hu,null,d_(e=t.map(Ge))?e:{default:()=>[e]})}function oi(t){if(on(t))return typeof t=="function"?t():typeof t=="string"?P(Ot,null,[t]):P(t,null,null);const e=t[ir];return P(e,t[fr](),null)}function on(t){return typeof t=="string"?!0:typeof t=="object"?t==null?!1:"render"in t||"component"in t:typeof t=="function"&&t[vc]===!0}function Zd(t,e){const r=It(null),n=It(void 0);function i(s){r.value||(r.value=setInterval(a,250)),n.value=s}function o(){r.value&&(clearInterval(r.value),r.value=null)}function a(){e&&e.value?e.value():t&&t.value&&t.value(n.value)}return Aa(o),{start:i,stop:o,handleHolding:a}}function Ca(t,e="div"){const r=Gr();return Xe(()=>{r.value=te(Be(t),e)}),r}function ko(t,e="div"){const r=Gr(null);return Xe(()=>{const n=Be(t);r.value=n==null?null:te(n,e)}),r}function OE(t){return tt(()=>Be(t))}function Be(t){return E(E(t))}function nt(...t){return t.includes(Object)||t.push(Object),t}var ne=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r};const UE=Pt({__name:"Context",emits:["updateNodes"],setup(t,{emit:e}){var c;const r=It({}),n=new ResizeObserver(s),i=It(null);Wn(()=>{const f=i.value;f!=null&&n.observe(f)});let o=!0,a=It((c=i.value)==null?void 0:c.getBoundingClientRect());function s(){i.value!=null&&o&&(o=!1,cr(()=>{var f;a.value=(f=i.value)==null?void 0:f.getBoundingClientRect(),Object.values(r.value).filter(h=>h).forEach(h=>h.rect=h.element.getBoundingClientRect()),e("updateNodes",r.value),o=!0}))}document.fonts.ready.then(s);const l={attributes:!1,chil
|
||
|
`).slice(3,5).map(e=>e.trim()).join(`
|
||
|
`))||""}function nr(t){const e=oe(t)?t:It(t);return e[Ss]=e,e[As]=oe(t)?t.value:t,e[Uu]=$E(),e[v_]=!1,vn.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",e,`
|
||
|
Created at:
|
||
|
`+e[Uu]):ma[vn[vn.length-1]].add(e),e}vr.on("addLayer",(t,e)=>{const r=[],n=(i,o=[])=>{let a=!1;return Object.keys(i).forEach(s=>{const l=i[s];if(l&&typeof l=="object")if(Ss in l){if(a=!0,l[v_]){console.warn("Deleted persistent ref present in returned object. Ignoring...",l,`
|
||
|
Created at:
|
||
|
`+l[Uu]);return}ma[t.id].delete(lr in l?l[lr]:l);const u=o.reduce((f,h)=>(h in f||(f[h]={}),f[h]),e),c=u[s];u[s]=l[Ss],ki(u)?c!=null?u[s]=c:u[s]=l[As]:c!=null?u[s].value=c:u[s].value=l[As]}else!(l instanceof O)&&!oe(l)&&!r.includes(l)&&(typeof l.type=="symbol"&&r.push(l),n(l,[...o,s])&&(Ct(l)&&!Ct(i)?console.warn("Found array that contains persistent values when adding layer. Keep in mind changing the order of elements in the array will mess with existing player saves.",lr in i?i[lr]:i,s):a=!0))}),a};n(t),ma[t.id].forEach(i=>{console.error(`Created persistent ref in ${t.id} without registering it to the layer! Make sure to include everything persistent in the returned object`,i,`
|
||
|
Created at:
|
||
|
`+i[Uu])}),ma[t.id].clear()});const qd=Symbol("RegisterNode"),Jd=Symbol("UnregisterNode"),Qd=Symbol("Nodes"),tp=Symbol("Bounds"),kr=Sa({});window.layers=kr;const ma={},vn=[];function ol(t,e){return pr(()=>{const r={},n=r.emitter=a_();if(r.on=n.on.bind(n),r.emit=n.emit.bind(n),r.nodes=It({}),r.id=t,vn.push(t),ma[t]=new Set,r.minimized=nr(!1),Object.assign(r,e.call(r)),vn[vn.length-1]==null||vn[vn.length-1]!==t)throw`Adding layers stack in invalid state. This should not happen
|
||
|
Stack: ${vn}
|
||
|
Trying to pop ${r.id}`;return vn.pop(),J(r,"color"),J(r,"display"),J(r,"name"),ve(r,"name",r.id),J(r,"minWidth"),ve(r,"minWidth",600),J(r,"minimizable"),ve(r,"minimizable",!0),r})}function m_(t,e){if(console.info("Adding layer",t.id),kr[t.id]){console.error("Attempted to add layer with same ID as existing layer",t.id,kr[t.id]);return}ve(e,"layers",{}),e.layers[t.id]==null&&(e.layers[t.id]={}),kr[t.id]=t,vr.emit("addLayer",t,e.layers[t.id])}function jE(t){return kr[t]}function g_(t){console.info("Removing layer",t.id),vr.emit("removeLayer",t),kr[t.id]=void 0}function XE(t){g_(t),m_(t,wt)}function y_(t){const e=It(!1);return{openModal:()=>e.value=!0,modal:le(()=>P(Ki,{modelValue:e.value,"onUpdate:modelValue":r=>e.value=r},{header:()=>P("h2",null,[E(t.name)]),body:E(t.display)}))}}vr.on("update",function(e){Object.values(kr).forEach(r=>{r==null||r.emit("preUpdate",e)}),Object.values(kr).forEach(r=>{r==null||r.emit("update",e)}),Object.values(kr).forEach(r=>{r==null||r.emit("postUpdate",e)})});var zE=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:qd,UnregisterNodeInjectionKey:Jd,NodesInjectionKey:Qd,BoundsInjectionKey:tp,layers:kr,persistentRefs:ma,addingLayers:vn,createLayer:ol,addLayer:m_,getLayer:jE,removeLayer:g_,reloadLayer:XE,setupLayerModal:y_},Symbol.toStringTag,{value:"Module"}));const WE=Pt({components:{Context:p_},props:{index:{type:Number,required:!0},tab:{type:Function,required:!0},display:{type:nt(Object,String,Function),required:!0},minimized:{type:Object,required:!0},minWidth:{type:nt(Number,String),required:!0},name:{type:nt(String),required:!0},color:nt(String),minimizable:nt(Boolean),nodes:{type:Object,required:!0}},setup(t){const{display:e,index:r,minimized:n,minWidth:i,tab:o}=Ae(t),a=Ca(e),s=tt(()=>Ie.allowGoBack&&r.value>0&&!n.value);function l(){wt.tabs.splice(E(t.index),1/0)}cr(()=>c(n.value,E(i.value))),ze([n,OE(i)],([f,h])=>c(f,h));function u(f){t.nodes.value=f}function c(f,h){const d=typeof h=="number"||Number.isNaN(parseInt(h))?h+"px":h,p=o.value();p!=null&&(f?(p.style.flexGrow="0",p.style.flexShrink="0",p.style.width="60px",p.style.minWidth=p.style.flexBasis="",p.style.margin="0"):(p.style.flexGrow="",p.style.flexShrink="",p.style.width="",p.style.minWidth=p.style.flexBasis=d,p.style.margin=""))}return{component:a,showGoBack:s,updateNodes:u,unref:E,goBack:l}}});function YE(t,e,r,n,i,o){const a=Re("Context");return B(),Q("div",{class:"layer-container",style:ce({"--layer-color":t.unref(t.color)})},[t.showGoBack?(B(),Q("button",{key:0,class:"goBack",onClick:e[0]||(e[0]=(...s)=>t.goBack&&t.goBack(...s))},"\u2190")):yt("",!0),t.minimized.value?(B(),Q("button",{key:1,class:"layer-tab minimized",onClick:e[1]||(e[1]=s=>t.minimized.value=!1)},[U("div",null,re(t.unref(t.name)),1)])):(B(),Q("div",{key:2,class:Qt(["layer-tab",{showGoBack:t.showGoBack}])},[P(a,{onUpdateNodes:t.updateNodes},{default:Bt(()=>[(B(),Rt(Te(t.component)))]),_:1},8,["onUpdateNodes"])],2)),t.unref(t.minimizable)?(B(),Q("button",{key:3,class:"minimize",onClick:e[2]||(e[2]=s=>t.minimized.value=!0)}," \u25BC ")):yt("",!0)],4)}var KE=ne(WE,[["render",YE],["__scopeId","data-v-34c9d881"]]);const b_=t=>(Cn("data-v-4b4bda40"),t=t(),Rn(),t),ZE=b_(()=>U("h2",null,"Changelog",-1)),qE=b_(()=>U("details",{open:""},[U("summary",null,[dt("v0.0 Initial Commit - "),U("time",null,"2021-09-04")]),dt(" This is the first release :D "),U("ul",null,[U("li",{class:"feature"},"Did everything"),U("li",{class:"fix"},"Had some fun"),U("li",{class:"breaking"},"Removed everything"),U("li",{class:"balancing"},"Created some bugs to fix later")])],-1)),JE=Pt({__name:"Changelog",setup(t,{expose:e}){const r=It(!1);return e({open(){r.value=!0}}),(n,i)=>(B(),Rt(Ki,{modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=o=>r.value=o)},{header:Bt(()=>[ZE]),body:Bt(()=>[qE]),_:1},8,["modelValue"]))}});var QE=ne(JE,[["__scopeId","data-v-4b4bda40"]]);const tI=Pt({props:{element:nt(Object),display:{type:nt(Object,String,Function),required:!0},style:nt(Object,String,Array),classes:nt(Object),direction:nt(String),xoffset:nt(String),yoffset:nt(String)
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function __(t,e){if(t){if(typeof t=="string")return sh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sh(t,e):void 0}}function sh(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function bo(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=__(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var l=r.next();return a=l.done,l},e:function(l){s=!0,o=l},f:function(){try{a||r.return==null||r.return()}finally{if(s)throw o}}}}var lh={inheritAttrs:!1,name:"vue-input",props:{autocomplete:{required:!1,type:String},modelValue:{required:!0,type:String},placeholder:{required:!0,type:String},disabled:{required:!0,type:Boolean},tabindex:{required:!0,type:Number},autofocus:{required:!0,type:Boolean},comboboxUid:{required:!0,type:Number}},emits:["update:modelValue","input","change","focus","blur","escape"],setup:function(t,e){var r=It(null);return Wn(function(){t.autofocus&&r.value.focus()}),nl(function(){t.autofocus&&r.value.focus()}),{handleInput:function(n){e.emit("input",n),e.emit("update:modelValue",n.target.value)},handleChange:function(n){e.emit("change",n),e.emit("update:modelValue",n.target.value)},handleFocus:function(n){e.emit("focus",n)},handleBlur:function(n){e.emit("blur",n)},input:r,handleEscape:function(n){r.value.blur(),e.emit("escape",n)}}}},bI={class:"vue-input"},_I=["autocomplete","modelValue","placeholder","disabled","tabindex","autofocus","aria-controls","aria-labelledby"];lh.render=function(t,e,r,n,i,o){return B(),Q("div",bI,[He(t.$slots,"prepend"),U("input",{ref:"input",autocomplete:r.autocomplete,modelValue:r.modelValue,placeholder:r.placeholder,disabled:r.disabled,onInput:e[0]||(e[0]=function(){return n.handleInput&&n.handleInput.apply(n,arguments)}),onChange:e[1]||(e[1]=function(){return n.handleChange&&n.handleChange.apply(n,arguments)}),onFocus:e[2]||(e[2]=function(){return n.handleFocus&&n.handleFocus.apply(n,arguments)}),onBlur:e[3]||(e[3]=function(){return n.handleBlur&&n.handleBlur.apply(n,arguments)}),onKeyup:e[4]||(e[4]=yo(mr(function(){return n.handleEscape&&n.handleEscape.apply(n,arguments)},["exact"]),["esc"])),tabindex:r.tabindex,autofocus:r.autofocus,"aria-autocomplete":"list","aria-controls":"vs".concat(r.comboboxUid,"-listbox"),"aria-labelledby":"vs".concat(r.comboboxUid,"-combobox")},null,40,_I),He(t.$slots,"append")])},lh.__file="src/components/input.vue";var uh={inheritAttrs:!1,name:"vue-tags",props:{modelValue:{required:!0,type:Array,validator:function(t){return t.every(function(e){return ep(e.key)!==void 0&&e.label!==void 0&&typeof e.selected=="boolean"})}},collapseTags:{type:Boolean}},emits:["click"],setup:function(t,e){return{dataAttrs:en("dataAttrs"),handleClick:function(r){e.emit("click",r)}}}};uh.render=function(t,e,r,n,i,o){return B(),Q("ul",yr({class:["vue-tags",{collapsed:r.collapseTags}],onMousedown:e[0]||(e[0]=mr(function(){},["prevent"])),tabindex:"-1",onClick:e[1]||(e[1]=function(){return n.handleClick&&n.handleClick.apply(n,arguments)})},n.dataAttrs),[(B(!0),Q(Ot,null,Hn(r.modelValue,function(a){return B(),Q(Ot,{key:a.key},[a.group?yt("v-if",!0):(B(),Q("li",{key:0,class:Qt(["vue-tag",{selected:a.selected}])},[He(t.$slots,"default",{option:a},function(){return[U("span",null,re(a.label),1)]})],2))],64)}),128))],16)},uh.__file="src/components/tags.vue";var ch={inheritAttrs:!1,name:"vue-dropdown",props:{modelValue:{required:!0,type:Array,validator:function(t){return t.every(function(e){return ep(e.key)!==void 0&&e.label!==void 0&&typeof e.selected=="boolean"})}},comboboxUid:{required:!0,type:Number},maxHeight:{required:!0},highlightedOriginalIndex:{required:!0}},emits:["click-item","mouseenter"],setup:function(t,e){return{dataAttrs:en("dataAttrs"),handleClickItem:function(r,n){n.disabled||e.emit("click-item",r,n)},handleMouseenter:function(r,n){e.emit("mouseenter",r,n)}}}},xI=["id","aria-multiselectable","aria-busy","aria-disabled"],TI=["onClick","onMouseenter","id","aria-selected","aria-disabled"];ch.render=function(t,e,r,n,i,o){return B(),Q("ul",yr({class:"vue-dropdown",style:{maxHeight:r.maxHeight+"px"},onMousedown:e[0]||(e[0]=mr(function(){},["prevent"]))},n.dataAttrs,{role:"listbox",id:"vs".concat(r.comboboxUid,"-listbox"),"aria-multiselectable":n.dataAttrs["data-multiple"],"aria-busy":n.dataAttrs["data-loading"],"aria-d
|
||
|
* Sortable 1.14.0
|
||
|
* @author RubaXa <trash@rubaxa.org>
|
||
|
* @author owenm <owen23355@gmail.com>
|
||
|
* @license MIT
|
||
|
*/function Mv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function $n(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Mv(Object(r),!0).forEach(function(n){HI(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mv(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function du(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?du=function(e){return typeof e}:du=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},du(t)}function HI(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function an(){return an=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},an.apply(this,arguments)}function VI(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}function $I(t,e){if(t==null)return{};var r=VI(t,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],!(e.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,n)||(r[n]=t[n]))}return r}function jI(t){return XI(t)||zI(t)||WI(t)||YI()}function XI(t){if(Array.isArray(t))return fh(t)}function zI(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function WI(t,e){if(!!t){if(typeof t=="string")return fh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fh(t,e)}}function fh(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function YI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var KI="1.14.0";function ai(t){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(t)}var yi=ai(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),al=ai(/Edge/i),Bv=ai(/firefox/i),ms=ai(/safari/i)&&!ai(/chrome/i)&&!ai(/android/i),E_=ai(/iP(ad|od|hone)/i),ZI=ai(/chrome/i)&&ai(/android/i),I_={capture:!1,passive:!1};function de(t,e,r){t.addEventListener(e,r,!yi&&I_)}function se(t,e,r){t.removeEventListener(e,r,!yi&&I_)}function Lu(t,e){if(!!e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function qI(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function mn(t,e,r,n){if(t){r=r||document;do{if(e!=null&&(e[0]===">"?t.parentNode===r&&Lu(t,e):Lu(t,e))||n&&t===r)return t;if(t===r)break}while(t=qI(t))}return null}var kv=/\s+/g;function $e(t,e,r){if(t&&e)if(t.classList)t.classList[r?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(kv," ").replace(" "+e+" "," ");t.className=(n+(r?" "+e:"")).replace(kv," ")}}function Nt(t,e,r){var n=t&&t.style;if(n){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(r=t.currentStyle),e===void 0?r:r[e];!(e in n)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),n[e]=r+(typeof r=="string"?"":"px")}}function Ro(t,e){var r="";if(typeof t=="string")r=t;else do{var n=Nt(t,"transform");n&&n!=="none"&&(r=n+" "+r)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(r)}function C_(t,e,r){if(t){var n=t.getElementsByTagName(e),i=0,o=n.length;if(r)for(;i<o;i++)r(n[i],i);return n}return[]}function kn(){var t=document.scrollingElement;return t||document.documentElement}function De(t,e,r,n,i){if(!(!t.getBoundingClientRect&&t!==window)){var o,a,s,l,u,c,f;if(t!==window&&t.parentNode&&t!==kn()?(o=t.getBoundingClientRect(),a=o.top,s=o.left,l=o.bottom,u=o.right,c=o.height,f=o.width):(a=0,s=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(e||r)&&t!==window&&(i=i||t.parentNode,!yi))do if(i&&i.getBoundingClientRect&&(Nt(i,"transform")!=="none"||r&&Nt(i,"position")!=="static")){var h=i.getBoundingClientRect();a-=h.top+parseInt(Nt(i,"border-top-width")),s-=h.left+parseInt(Nt(i,"border-left-width")),l=a+o.height,u=s+o.width;break}while(i=i.parentNode);if(n&&t!==window){var d=Ro(i||t),p=d&&d.a,v=d&&d.d;d&&(a/=v,s/=p,f/=p,c/=v,l=a+c,u=s+f)}return{top:a,left:s,bottom:l,right:u,width:f,height:c}}}function Gv(t,e,r){for(var n=Ui(t,!0),i=De(t)[e];n;){var o=De(n)[r],a=void 0;if(r==="top"||r==="left"?a=i>=o:a=i<=o,!a)return n;if(n===kn())break;n=Ui(n,!1)}return!1}function Ra(t,e,r,n){for(var i=0,o=0,a=t.children;o<a.length;){if(a[o].style.display!=="none"&&a[o]!==jt.ghost&&(n||a[o]!==jt.dragged)&&mn(a[o],r.draggable,t,!1)){if(i===e)return a[o];i++}o++}return null}function np(t,e){for(var r=t.lastElementChild;r&&(r===jt.ghost||Nt(r,"display")==="none"||e&&!Lu(r,e));)r=r.previousElementSibling;return r||null}function Je(t,e){var r=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==jt.clone&&(!e||Lu(t,e))&&r++;return r}function Dv(t){var e=0,r=0,n=kn();if(t)do{var i=Ro(t),o=i.a,a=i.d;e+=t.scrollLeft*o,r+=t.scrollTop*a}while(t!==n&&(t=t.parentNode));return[e,r]}function JI(t,e){for(var r in t)if(!!t.hasOwnProperty(r)){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t[r][n])return Number(r)}return-1}function Ui(t,e){if(!t||!t.getBoundingClientRect)return kn();var r=t,n=!1;do if(r.clientWidth<r.scrollWidth||r.clientHeight<r.scrollHeight){var i=Nt(r);if(r.clientWidth<r.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||r.clientHeight<r.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!r.getBoundingClientRect||r===document.body)return kn();if(n||e)return
|
||
|
`)&&(C="(?: "+C+")",L=" "+L,S++),T=new RegExp("^(?:"+C+")",I)),p&&(T=new RegExp("^"+C+"$(?!\\s)",I)),h&&(b=g.lastIndex),w=u.call(R?T:g,L),R?w?(w.input=w.input.slice(S),w[0]=w[0].slice(S),w.index=g.lastIndex,g.lastIndex+=w[0].length):g.lastIndex=0:h&&w&&(g.lastIndex=g.global?w.index+w[0].length:b),p&&w&&w.length>1&&c.call(w[0],T,function(){for(x=1;x<arguments.length-2;x++)arguments[x]===void 0&&(w[x]=void 0)}),w}),i.exports=f},"94ca":function(i,o,a){var s=a("d039"),l=/#|\.prototype\./,u=function(p,v){var m=f[c(p)];return m==d?!0:m==h?!1:typeof v=="function"?s(v):!!v},c=u.normalize=function(p){return String(p).replace(l,".").toLowerCase()},f=u.data={},h=u.NATIVE="N",d=u.POLYFILL="P";i.exports=u},"99af":function(i,o,a){var s=a("23e7"),l=a("d039"),u=a("e8b5"),c=a("861d"),f=a("7b0b"),h=a("50c4"),d=a("8418"),p=a("65f0"),v=a("1dde"),m=a("b622"),y=a("2d00"),g=m("isConcatSpreadable"),b=9007199254740991,T="Maximum allowed index exceeded",w=y>=51||!l(function(){var C=[];return C[g]=!1,C.concat()[0]!==C}),x=v("concat"),R=function(C){if(!c(C))return!1;var S=C[g];return S!==void 0?!!S:u(C)},I=!w||!x;s({target:"Array",proto:!0,forced:I},{concat:function(S){var L=f(this),H=p(L,0),G=0,k,Y,D,K,ht;for(k=-1,D=arguments.length;k<D;k++)if(ht=k===-1?L:arguments[k],R(ht)){if(K=h(ht.length),G+K>b)throw TypeError(T);for(Y=0;Y<K;Y++,G++)Y in ht&&d(H,G,ht[Y])}else{if(G>=b)throw TypeError(T);d(H,G++,ht)}return H.length=G,H}})},"9bdd":function(i,o,a){var s=a("825a");i.exports=function(l,u,c,f){try{return f?u(s(c)[0],c[1]):u(c)}catch(d){var h=l.return;throw h!==void 0&&s(h.call(l)),d}}},"9bf2":function(i,o,a){var s=a("83ab"),l=a("0cfb"),u=a("825a"),c=a("c04e"),f=Object.defineProperty;o.f=s?f:function(d,p,v){if(u(d),p=c(p,!0),u(v),l)try{return f(d,p,v)}catch{}if("get"in v||"set"in v)throw TypeError("Accessors not supported");return"value"in v&&(d[p]=v.value),d}},"9ed3":function(i,o,a){var s=a("ae93").IteratorPrototype,l=a("7c73"),u=a("5c6c"),c=a("d44e"),f=a("3f8c"),h=function(){return this};i.exports=function(d,p,v){var m=p+" Iterator";return d.prototype=l(s,{next:u(1,v)}),c(d,m,!1,!0),f[m]=h,d}},"9f7f":function(i,o,a){var s=a("d039");function l(u,c){return RegExp(u,c)}o.UNSUPPORTED_Y=s(function(){var u=l("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),o.BROKEN_CARET=s(function(){var u=l("^r","gy");return u.lastIndex=2,u.exec("str")!=null})},a2bf:function(i,o,a){var s=a("e8b5"),l=a("50c4"),u=a("0366"),c=function(f,h,d,p,v,m,y,g){for(var b=v,T=0,w=y?u(y,g,3):!1,x;T<p;){if(T in d){if(x=w?w(d[T],T,h):d[T],m>0&&s(x))b=c(f,h,x,l(x.length),b,m-1)-1;else{if(b>=9007199254740991)throw TypeError("Exceed the acceptable array length");f[b]=x}b++}T++}return b};i.exports=c},a352:function(i,o){i.exports=n},a434:function(i,o,a){var s=a("23e7"),l=a("23cb"),u=a("a691"),c=a("50c4"),f=a("7b0b"),h=a("65f0"),d=a("8418"),p=a("1dde"),v=a("ae40"),m=p("splice"),y=v("splice",{ACCESSORS:!0,0:0,1:2}),g=Math.max,b=Math.min,T=9007199254740991,w="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!m||!y},{splice:function(R,I){var C=f(this),S=c(C.length),L=l(R,S),H=arguments.length,G,k,Y,D,K,ht;if(H===0?G=k=0:H===1?(G=0,k=S-L):(G=H-2,k=b(g(u(I),0),S-L)),S+G-k>T)throw TypeError(w);for(Y=h(C,k),D=0;D<k;D++)K=L+D,K in C&&d(Y,D,C[K]);if(Y.length=k,G<k){for(D=L;D<S-k;D++)K=D+k,ht=D+G,K in C?C[ht]=C[K]:delete C[ht];for(D=S;D>S-k+G;D--)delete C[D-1]}else if(G>k)for(D=S-k;D>L;D--)K=D+k-1,ht=D+G-1,K in C?C[ht]=C[K]:delete C[ht];for(D=0;D<G;D++)C[D+L]=arguments[D+2];return C.length=S-k+G,Y}})},a4d3:function(i,o,a){var s=a("23e7"),l=a("da84"),u=a("d066"),c=a("c430"),f=a("83ab"),h=a("4930"),d=a("fdbf"),p=a("d039"),v=a("5135"),m=a("e8b5"),y=a("861d"),g=a("825a"),b=a("7b0b"),T=a("fc6a"),w=a("c04e"),x=a("5c6c"),R=a("7c73"),I=a("df75"),C=a("241c"),S=a("057f"),L=a("7418"),H=a("06cf"),G=a("9bf2"),k=a("d1e7"),Y=a("9112"),D=a("6eeb"),K=a("5692"),ht=a("f772"),bt=a("d012"),W=a("90e3"),ft=a("b622"),gt=a("e538"),_t=a("746f"),V=a("d44e"),Z=a("69f3"),lt=a("b727").forEach,ut=ht("hidden"),Gt="Symbol",it="prototype",kt=ft("toPrimitive"),Vt=Z.set,Xt=Z.getterFor(Gt),N=Object[it],A=l.Symbol,$=u
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g(F,M){return d(F)||p(F,M)||m(F,M)||y()}function b(F){if(Array.isArray(F))return v(F)}function T(F){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(F))return Array.from(F)}function w(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x(F){return b(F)||T(F)||m(F)||w()}var R=a("a352"),I=a.n(R);function C(F){F.parentElement!==null&&F.parentElement.removeChild(F)}function S(F,M,z){var ot=z===0?F.children[0]:F.children[z-1].nextSibling;F.insertBefore(M,ot)}var L=a("dbf1");a("13d5"),a("4fad"),a("ac1f"),a("5319");function H(F){var M=Object.create(null);return function(ot){var Tt=M[ot];return Tt||(M[ot]=F(ot))}}var G=/-(\w)/g,k=H(function(F){return F.replace(G,function(M,z){return z.toUpperCase()})});a("5db7"),a("73d9");var Y=["Start","Add","Remove","Update","End"],D=["Choose","Unchoose","Sort","Filter","Clone"],K=["Move"],ht=[K,Y,D].flatMap(function(F){return F}).map(function(F){return"on".concat(F)}),bt={manage:K,manageAndEmit:Y,emit:D};function W(F){return ht.indexOf(F)!==-1}a("caad"),a("2ca0");var ft=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function gt(F){return ft.includes(F)}function _t(F){return["transition-group","TransitionGroup"].includes(F)}function V(F){return["id","class","role","style"].includes(F)||F.startsWith("data-")||F.startsWith("aria-")||F.startsWith("on")}function Z(F){return F.reduce(function(M,z){var ot=g(z,2),Tt=ot[0],Lt=ot[1];return M[Tt]=Lt,M},{})}function lt(F){var M=F.$attrs,z=F.componentData,ot=z===void 0?{}:z,Tt=Z(Object.entries(M).filter(function(Lt){var Kt=g(Lt,2),Yt=Kt[0];return Kt[1],V(Yt)}));return h(h({},Tt),ot)}function ut(F){var M=F.$attrs,z=F.callBackBuilder,ot=Z(Gt(M));Object.entries(z).forEach(function(Lt){var Kt=g(Lt,2),Yt=Kt[0],xe=Kt[1];bt[Yt].forEach(function($t){ot["on".concat($t)]=xe($t)})});var Tt="[data-draggable]".concat(ot.draggable||"");return h(h({},ot),{},{draggable:Tt})}function Gt(F){return Object.entries(F).filter(function(M){var z=g(M,2),ot=z[0];return z[1],!V(ot)}).map(function(M){var z=g(M,2),ot=z[0],Tt=z[1];return[k(ot),Tt]}).filter(function(M){var z=g(M,2),ot=z[0];return z[1],!W(ot)})}a("c740");function it(F,M){if(!(F instanceof M))throw new TypeError("Cannot call a class as a function")}function kt(F,M){for(var z=0;z<M.length;z++){var ot=M[z];ot.enumerable=ot.enumerable||!1,ot.configurable=!0,"value"in ot&&(ot.writable=!0),Object.defineProperty(F,ot.key,ot)}}function Vt(F,M,z){return M&&kt(F.prototype,M),z&&kt(F,z),F}var Xt=function(M){var z=M.el;return z},N=function(M,z){return M.__draggable_context=z},A=function(M){return M.__draggable_context},$=function(){function F(M){var z=M.nodes,ot=z.header,Tt=z.default,Lt=z.footer,Kt=M.root,Yt=M.realList;it(this,F),this.defaultNodes=Tt,this.children=[].concat(x(ot),x(Tt),x(Lt)),this.externalComponent=Kt.externalComponent,this.rootTransition=Kt.transition,this.tag=Kt.tag,this.realList=Yt}return Vt(F,[{key:"render",value:function(z,ot){var Tt=this.tag,Lt=this.children,Kt=this._isRootComponent,Yt=Kt?{default:function(){return Lt}}:Lt;return z(Tt,ot,Yt)}},{key:"updated",value:function(){var z=this.defaultNodes,ot=this.realList;z.forEach(function(Tt,Lt){N(Xt(Tt),{element:ot[Lt],index:Lt})})}},{key:"getUnderlyingVm",value:function(z){return A(z)}},{key:"getVmIndexFromDomIndex",value:function(z,ot){var Tt=this.defaultNodes,Lt=Tt.length,Kt=ot.children,Yt=Kt.item(z);if(Yt===null)return Lt;var xe=A(Yt);if(xe)return xe.index;if(Lt===0)return 0;var $t=Xt(Tt[0]),At=x(Kt).fi
|
||
|
* vue-textarea-autosize v1.1.1
|
||
|
* (c) 2019 Saymon
|
||
|
* Released under the MIT License.
|
||
|
*/var IC={name:"TextareaAutosize",props:{value:{type:[String,Number],default:""},autosize:{type:Boolean,default:!0},minHeight:{type:[Number],default:null},maxHeight:{type:[Number],default:null},important:{type:[Boolean,Array],default:!1}},data:function(){return{val:null,maxHeightScroll:!1,height:"auto"}},computed:{computedStyles:function(){return this.autosize?{resize:this.isResizeImportant?"none !important":"none",height:this.height,overflow:this.maxHeightScroll?"auto":this.isOverflowImportant?"hidden !important":"hidden"}:{}},isResizeImportant:function(){var e=this.important;return e===!0||Array.isArray(e)&&e.includes("resize")},isOverflowImportant:function(){var e=this.important;return e===!0||Array.isArray(e)&&e.includes("overflow")},isHeightImportant:function(){var e=this.important;return e===!0||Array.isArray(e)&&e.includes("height")}},watch:{value:function(e){this.val=e},val:function(e){this.$nextTick(this.resize),this.$emit("input",e)},minHeight:function(){this.$nextTick(this.resize)},maxHeight:function(){this.$nextTick(this.resize)},autosize:function(e){e&&this.resize()}},methods:{resize:function(){var e=this,r=this.isHeightImportant?"important":"";return this.height="auto".concat(r?" !important":""),this.$nextTick(function(){var n=e.$el.scrollHeight+1;e.minHeight&&(n=n<e.minHeight?e.minHeight:n),e.maxHeight&&(n>e.maxHeight?(n=e.maxHeight,e.maxHeightScroll=!0):e.maxHeightScroll=!1);var i=n+"px";e.height="".concat(i).concat(r?" !important":"")}),this}},created:function(){this.val=this.value},mounted:function(){this.resize()}};function CC(t,e,r,n,i,o,a,s,l,u){typeof a!="boolean"&&(l=s,s=a,a=!1);var c=typeof r=="function"?r.options:r;t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,i&&(c.functional=!0)),n&&(c._scopeId=n);var f;if(o?(f=function(v){v=v||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!v&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(v=__VUE_SSR_CONTEXT__),e&&e.call(this,l(v)),v&&v._registeredComponents&&v._registeredComponents.add(o)},c._ssrRegister=f):e&&(f=a?function(){e.call(this,u(this.$root.$options.shadowRoot))}:function(p){e.call(this,s(p))}),f)if(c.functional){var h=c.render;c.render=function(v,m){return f.call(m),h(v,m)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,f):[f]}return r}var RC=CC;const NC=IC;var PC=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("textarea",{directives:[{name:"model",rawName:"v-model",value:t.val,expression:"val"}],style:t.computedStyles,domProps:{value:t.val},on:{focus:t.resize,input:function(n){n.target.composing||(t.val=n.target.value)}}})},SC=[];const AC=void 0,OC=void 0,UC=void 0,FC=!1;var LC=RC({render:PC,staticRenderFns:SC},AC,NC,OC,FC,UC,void 0,void 0),MC="1.1.1",BC=function(e){e.component("TextareaAutosize",LC)},L_={install:BC,version:MC};typeof window!="undefined"&&window.Vue&&window.Vue.use(L_);const kC=["onSubmit"],GC={class:"field"},DC={key:0,class:"field-title"},HC=["placeholder"],VC=Pt({__name:"Text",props:{title:null,modelValue:null,textArea:{type:Boolean},placeholder:null,maxHeight:null},emits:["update:modelValue","submit"],setup(t,{emit:e}){const n=Ae(t),i=tt(()=>{var l;return((l=n.title)==null?void 0:l.value)&&te(E(n.title.value),"span")}),o=It(null);Wn(()=>{var l;(l=o.value)==null||l.focus()});const a=tt({get(){return E(n.modelValue)||""},set(l){e("update:modelValue",l)}});function s(){e("submit")}return(l,u)=>(B(),Q("form",{onSubmit:mr(s,["prevent"])},[U("div",GC,[E(i)?(B(),Q("span",DC,[(B(),Rt(Te(E(i))))])):yt("",!0),t.textArea?(B(),Rt(E(L_),{key:1,modelValue:E(a),"onUpdate:modelValue":u[0]||(u[0]=c=>oe(a)?a.value=c:null),placeholder:t.placeholder,maxHeight:t.maxHeight,onBlur:s,ref_key:"field",ref:o},null,8,["modelValue","placeholder","maxHeight"])):Oa((B(),Q("input",{key:2,type:"text","onUpdate:modelValue":u[1]||(u[1]=c=>oe(a)?a.value=c:null),placeholder:t.placeholder,class:Qt({fullWidth:!t.title}),onBlur:s,ref_key:"field",ref:o},null,42,HC)),[[Ea,E(a)]])])],40,kC))}});var sp=ne(VC,[["__scopeId","data-v-d74adb0a"]]);const $C={key:0}
|
||
|
${T}
|
||
|
${b}`)}}return u[g]}ze(r,g=>{g&&Object.keys(u).forEach(b=>delete u[b])});const f=tt(()=>Pe.saves.reduce((g,b)=>(g[b]=c(b),g),{}));function h(g){let b;switch(wt.id===g?b=i_(wt[lr]):b=JSON.stringify(f.value[g]),Ie.exportEncoding){default:console.warn(`Unknown save encoding: ${Ie.exportEncoding}. Defaulting to lz`);case"lz":b=Oi.compressToUTF16(b);break;case"base64":b=btoa(unescape(encodeURIComponent(b)));break;case"plain":break}const T=document.createElement("textarea");T.value=b,document.body.appendChild(T),T.select(),T.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(T)}function d(g){wt.id===g&&pn();const b={...f.value[g],id:fu()};pn(b),Pe.saves.push(b.id)}function p(g){Pe.saves=Pe.saves.filter(b=>b!==g),localStorage.removeItem(g),u[g]=void 0}function v(g){f.value[wt.id].time=wt.time,pn(),u[wt.id]=void 0,To(f.value[g]),u[g]=void 0}function m(g){if(a.value=g,cr(()=>{a.value=null}),g[0]!=="{")if(g[0]==="e")g=decodeURIComponent(escape(atob(g)));else if(g[0]==="\u1BE1")g=Oi.decompressFromUTF16(g);else{console.warn("Unable to determine preset encoding",g);return}const b=JSON.parse(g);b.id=fu(),pn(b),Pe.saves.push(b.id),v(b.id)}function y(g,b){const T=f.value[g];T&&(T.name=b,wt.id===g?(wt.name=b,pn()):(pn(T),u[g]=void 0))}return(g,b)=>(B(),Rt(Ki,{modelValue:r.value,"onUpdate:modelValue":b[4]||(b[4]=T=>r.value=T),ref_key:"modal",ref:n},{header:Bt(()=>[mR]),body:Bt(({shown:T})=>[T?(B(),Rt(E(EC),{key:0,list:E(Pe).saves,handle:".handle",itemKey:w=>w},{item:Bt(({element:w})=>[P(vR,{save:E(f)[w],onOpen:x=>v(w),onExport:x=>h(w),onEditName:x=>y(w,x),onDuplicate:x=>d(w),onDelete:x=>p(w)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):yt("",!0)]),footer:Bt(()=>[U("div",gR,[P(sp,{modelValue:o.value,"onUpdate:modelValue":b[0]||(b[0]=T=>o.value=T),title:"Import Save",placeholder:"Paste your save here!",class:Qt({importingFailed:i.value})},null,8,["modelValue","class"]),U("div",yR,[bR,U("div",_R,[U("button",{class:"button",onClick:b[1]||(b[1]=T=>v(E(va)().id))},"New Game"),Object.keys(E(l)).length>0?(B(),Rt(rp,{key:0,options:E(l),modelValue:a.value,"onUpdate:modelValue":b[2]||(b[2]=T=>m(T)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):yt("",!0)])]),U("div",xR,[TR,U("button",{class:"button modal-default-button",onClick:b[3]||(b[3]=T=>r.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var M_=ne(wR,[["__scopeId","data-v-3b9991aa"]]);const qr=t=>(Cn("data-v-4a3f8425"),t=t(),Rn(),t),ER=["src","alt"],IR={key:1,class:"title"},CR=qr(()=>U("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),RR={class:"discord"},NR={class:"discord-links"},PR={key:0},SR=["href"],AR=qr(()=>U("li",null,[U("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),OR=qr(()=>U("li",null,[U("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),UR={href:"https://forums.moddingtree.com/",target:"_blank"},FR=qr(()=>U("span",{class:"material-icons"},"forum",-1)),LR=qr(()=>U("span",{class:"material-icons"},"info",-1)),MR=qr(()=>U("span",{class:"material-icons"},"library_books",-1)),BR=qr(()=>U("span",{class:"material-icons"},"settings",-1)),kR=qr(()=>U("span",{class:"material-icons"},"library_books",-1)),GR=qr(()=>U("span",{class:"material-icons"},"settings",-1)),DR=qr(()=>U("span",{class:"material-icons"},"info",-1)),HR={href:"https://forums.moddingtree.com/",target:"_blank"},VR=qr(()=>U("span",{class:"material-icons"},"forum",-1)),$R={class:"discord"},jR={class:"discord-links"},XR={key:0},zR=["href"],WR=qr(()=>U("li",null,[U("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),YR=qr(()=>U("li",null,[U("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),KR=Pt({__name:"Nav",setup(t){const e=It(null),r=It(null),n=It(null),i=It(null),{useHeader:o,banner:a,title:s,discordName:l,discordLink:u,versionNumber:c}=Ie;function f(){window.open(u,"mywindow")}return(h,d)=>(B(),Q(Ot,null,[E(o)?(B(),Q("div",yr({key:
|
||
|
* @pixi/settings - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/settings is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/var Un=eS(globalThis.navigator);function rS(t){var e=!0;if(Un.tablet||Un.phone){if(Un.apple.device){var r=navigator.userAgent.match(/OS (\d+)_(\d+)?/);if(r){var n=parseInt(r[1],10);n<11&&(e=!1)}}if(Un.android.device){var r=navigator.userAgent.match(/Android\s([0-9.]*)/);if(r){var n=parseInt(r[1],10);n<7&&(e=!1)}}}return e?t:4}function nS(){return!Un.apple.device}/*!
|
||
|
* @pixi/constants - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/constants is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/var cm;(function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"})(cm||(cm={}));var fm;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"})(fm||(fm={}));var hm;(function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"})(hm||(hm={}));var dm;(function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"})(dm||(dm={}));var pm;(function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(pm||(pm={}));var vm;(function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(vm||(vm={}));var mm;(function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(mm||(mm={}));var gm;(function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"})(gm||(gm={}));var ym;(function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"})(ym||(ym={}));var yh;(function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"})(yh||(yh={}));var bh;(function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(bh||(bh={}));var _h;(function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"})(_h||(_h={}));var bm;(function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(bm||(bm={}));var _m;(function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BL
|
||
|
* @pixi/constants - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/constants is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/var di;(function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"})(di||(di={}));var Ls;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"})(Ls||(Ls={}));var Hu;(function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"})(Hu||(Hu={}));var Ut;(function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"})(Ut||(Ut={}));var _n;(function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(_n||(_n={}));var pt;(function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(pt||(pt={}));var No;(function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(No||(No={}));var Mt;(function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"})(Mt||(Mt={}));var Vu;(function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"})(Vu||(Vu={}));var ii;(function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"})(ii||(ii={}));var li;(function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(li||(li={}));var pi;(function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"})(pi||(pi={}));var En;(function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(En||(En={}));var Si;(function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BL
|
||
|
`," "],AS=["{","}","|","\\","^","`"].concat(SS),Nh=["'"].concat(AS),Em=["%","/","?",";","#"].concat(Nh),Im=["/","?","#"],OS=255,Cm=/^[+a-z0-9A-Z_-]{0,63}$/,US=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,FS={javascript:!0,"javascript:":!0},Ph={javascript:!0,"javascript:":!0},ga={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Sh=Gs;function xc(t,e,r){if(t&&Pn.isObject(t)&&t instanceof Tn)return t;var n=new Tn;return n.parse(t,e,r),n}Tn.prototype.parse=function(t,e,r){if(!Pn.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),i=n!==-1&&n<t.indexOf("#")?"?":"#",o=t.split(i),a=/\\/g;o[0]=o[0].replace(a,"/"),t=o.join(i);var s=t;if(s=s.trim(),!r&&t.split("#").length===1){var l=PS.exec(s);if(l)return this.path=s,this.href=s,this.pathname=l[1],l[2]?(this.search=l[2],e?this.query=Sh.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var u=RS.exec(s);if(u){u=u[0];var c=u.toLowerCase();this.protocol=c,s=s.substr(u.length)}if(r||u||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var f=s.substr(0,2)==="//";f&&!(u&&Ph[u])&&(s=s.substr(2),this.slashes=!0)}if(!Ph[u]&&(f||u&&!ga[u])){for(var h=-1,d=0;d<Im.length;d++){var p=s.indexOf(Im[d]);p!==-1&&(h===-1||p<h)&&(h=p)}var v,m;h===-1?m=s.lastIndexOf("@"):m=s.lastIndexOf("@",h),m!==-1&&(v=s.slice(0,m),s=s.slice(m+1),this.auth=decodeURIComponent(v)),h=-1;for(var d=0;d<Em.length;d++){var p=s.indexOf(Em[d]);p!==-1&&(h===-1||p<h)&&(h=p)}h===-1&&(h=s.length),this.host=s.slice(0,h),s=s.slice(h),this.parseHost(),this.hostname=this.hostname||"";var y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y)for(var g=this.hostname.split(/\./),d=0,b=g.length;d<b;d++){var T=g[d];if(!!T&&!T.match(Cm)){for(var w="",x=0,R=T.length;x<R;x++)T.charCodeAt(x)>127?w+="x":w+=T[x];if(!w.match(Cm)){var I=g.slice(0,d),C=g.slice(d+1),S=T.match(US);S&&(I.push(S[1]),C.unshift(S[2])),C.length&&(s="/"+C.join(".")+s),this.hostname=I.join(".");break}}}this.hostname.length>OS?this.hostname="":this.hostname=this.hostname.toLowerCase(),y||(this.hostname=wS.toASCII(this.hostname));var L=this.port?":"+this.port:"",H=this.hostname||"";this.host=H+L,this.href+=this.host,y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),s[0]!=="/"&&(s="/"+s))}if(!FS[c])for(var d=0,b=Nh.length;d<b;d++){var G=Nh[d];if(s.indexOf(G)!==-1){var k=encodeURIComponent(G);k===G&&(k=escape(G)),s=s.split(G).join(k)}}var Y=s.indexOf("#");Y!==-1&&(this.hash=s.substr(Y),s=s.slice(0,Y));var D=s.indexOf("?");if(D!==-1?(this.search=s.substr(D),this.query=s.substr(D+1),e&&(this.query=Sh.parse(this.query)),s=s.slice(0,D)):e&&(this.search="",this.query={}),s&&(this.pathname=s),ga[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var L=this.pathname||"",K=this.search||"";this.path=L+K}return this.href=this.format(),this};function LS(t){return Pn.isString(t)&&(t=xc(t)),t instanceof Tn?t.format():Tn.prototype.format.call(t)}Tn.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=t+this.host:this.hostname&&(i=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&Pn.isObject(this.query)&&Object.keys(this.query).length&&(o=Sh.stringify(this.query));var a=this.search||o&&"?"+o||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||ga[e])&&i!==!1?(i="//"+(i||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):i||(i=""),n&&n.charAt(0)!=="#"&&(n="#"+n),a&&a.charAt(0)!=="?"&&(a="?"+a),r=r.replace(/[?#]/g,function(s){return encodeURIComponent(s)}),a=a.replace("#","%23"),e+i+r+a+n};function MS(t,e){return xc(t,!1,!0).resolve(e)}Tn.prototype.resolve=function(t){return this.resolveObject(xc(t,!1,!0)).format()};Tn.prototype.resolveObject=function(t){if(Pn.isString(t)){var e=new Tn;e.parse(t,!1,!0),t=e}for(var r=new Tn,n=Object.keys(this),i=0;i<n.length;i++){var o=n[i];r[o]=this[o]}if(r.hash=t.hash,t.href=
|
||
|
* @pixi/utils - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/utils is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/var sa={parse:ES,format:CS,resolve:IS};Ft.RETINA_PREFIX=/@([0-9\.]+)x/;Ft.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var Rm=!1,Nm="6.4.2";function BS(t){var e;if(!Rm){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var r=[`
|
||
|
%c %c %c PixiJS `+Nm+" - \u2730 "+t+` \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;"];(e=globalThis.console).log.apply(e,r)}else globalThis.console&&globalThis.console.log("PixiJS "+Nm+" - "+t+" - http://www.pixijs.com/");Rm=!0}}var tf;function kS(){return typeof tf=="undefined"&&(tf=function(){var e={stencil:!0,failIfMajorPerformanceCaveat:Ft.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!globalThis.WebGLRenderingContext)return!1;var r=document.createElement("canvas"),n=r.getContext("webgl",e)||r.getContext("experimental-webgl",e),i=!!(n&&n.getContextAttributes().stencil);if(n){var o=n.getExtension("WEBGL_lose_context");o&&o.loseContext()}return n=null,i}catch{return!1}}()),tf}var GS="#f0f8ff",DS="#faebd7",HS="#00ffff",VS="#7fffd4",$S="#f0ffff",jS="#f5f5dc",XS="#ffe4c4",zS="#000000",WS="#ffebcd",YS="#0000ff",KS="#8a2be2",ZS="#a52a2a",qS="#deb887",JS="#5f9ea0",QS="#7fff00",tA="#d2691e",eA="#ff7f50",rA="#6495ed",nA="#fff8dc",iA="#dc143c",oA="#00ffff",aA="#00008b",sA="#008b8b",lA="#b8860b",uA="#a9a9a9",cA="#006400",fA="#a9a9a9",hA="#bdb76b",dA="#8b008b",pA="#556b2f",vA="#ff8c00",mA="#9932cc",gA="#8b0000",yA="#e9967a",bA="#8fbc8f",_A="#483d8b",xA="#2f4f4f",TA="#2f4f4f",wA="#00ced1",EA="#9400d3",IA="#ff1493",CA="#00bfff",RA="#696969",NA="#696969",PA="#1e90ff",SA="#b22222",AA="#fffaf0",OA="#228b22",UA="#ff00ff",FA="#dcdcdc",LA="#f8f8ff",MA="#daa520",BA="#ffd700",kA="#808080",GA="#008000",DA="#adff2f",HA="#808080",VA="#f0fff0",$A="#ff69b4",jA="#cd5c5c",XA="#4b0082",zA="#fffff0",WA="#f0e68c",YA="#fff0f5",KA="#e6e6fa",ZA="#7cfc00",qA="#fffacd",JA="#add8e6",QA="#f08080",tO="#e0ffff",eO="#fafad2",rO="#d3d3d3",nO="#90ee90",iO="#d3d3d3",oO="#ffb6c1",aO="#ffa07a",sO="#20b2aa",lO="#87cefa",uO="#778899",cO="#778899",fO="#b0c4de",hO="#ffffe0",dO="#00ff00",pO="#32cd32",vO="#faf0e6",mO="#ff00ff",gO="#800000",yO="#66cdaa",bO="#0000cd",_O="#ba55d3",xO="#9370db",TO="#3cb371",wO="#7b68ee",EO="#00fa9a",IO="#48d1cc",CO="#c71585",RO="#191970",NO="#f5fffa",PO="#ffe4e1",SO="#ffe4b5",AO="#ffdead",OO="#000080",UO="#fdf5e6",FO="#808000",LO="#6b8e23",MO="#ffa500",BO="#ff4500",kO="#da70d6",GO="#eee8aa",DO="#98fb98",HO="#afeeee",VO="#db7093",$O="#ffefd5",jO="#ffdab9",XO="#cd853f",zO="#ffc0cb",WO="#dda0dd",YO="#b0e0e6",KO="#800080",ZO="#663399",qO="#ff0000",JO="#bc8f8f",QO="#4169e1",t3="#8b4513",e3="#fa8072",r3="#f4a460",n3="#2e8b57",i3="#fff5ee",o3="#a0522d",a3="#c0c0c0",s3="#87ceeb",l3="#6a5acd",u3="#708090",c3="#708090",f3="#fffafa",h3="#00ff7f",d3="#4682b4",p3="#d2b48c",v3="#008080",m3="#d8bfd8",g3="#ff6347",y3="#40e0d0",b3="#ee82ee",_3="#f5deb3",x3="#ffffff",T3="#f5f5f5",w3="#ffff00",E3="#9acd32",I3={aliceblue:GS,antiquewhite:DS,aqua:HS,aquamarine:VS,azure:$S,beige:jS,bisque:XS,black:zS,blanchedalmond:WS,blue:YS,blueviolet:KS,brown:ZS,burlywood:qS,cadetblue:JS,chartreuse:QS,chocolate:tA,coral:eA,cornflowerblue:rA,cornsilk:nA,crimson:iA,cyan:oA,darkblue:aA,darkcyan:sA,darkgoldenrod:lA,darkgray:uA,darkgreen:cA,darkgrey:fA,darkkhaki:hA,darkmagenta:dA,darkolivegreen:pA,darkorange:vA,darkorchid:mA,darkred:gA,darksalmon:yA,darkseagreen:bA,darkslateblue:_A,darkslategray:xA,darkslategrey:TA,darkturquoise:wA,darkviolet:EA,deeppink:IA,deepskyblue:CA,dimgray:RA,dimgrey:NA,dodgerblue:PA,firebrick:SA,floralwhite:AA,forestgreen:OA,fuchsia:UA,gainsboro:FA,ghostwhite:LA,goldenrod:MA,gold:BA,gray:kA,green:GA,greenyellow:DA,grey:HA,honeydew:VA,hotpink:$A,indianred:jA,indigo:XA,ivory:zA,khaki:WA,lavenderblush:YA,lavender:KA,lawngreen:ZA,lemonchiffon:qA,lightblue:JA,lightcoral:QA,lightcyan:tO,lightgoldenrodyellow:eO,lightgray:rO,lightgreen:nO,lightgrey:iO,lightpink:oO,lightsalmon:aO,lightseagreen:sO,lightskyblue:lO,lightslategray:uO,lightslategrey:cO,lightsteelblue:fO,lightyellow:hO,lime:dO,limegreen:pO,linen:vO,magenta:mO,maroon:gO,mediumaquamarine:yO,mediumblue:b
|
||
|
Deprecated since v`+t):(n=n.split(`
|
||
|
`).splice(r).join(`
|
||
|
`),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",e+`
|
||
|
Deprecated since v`+t),console.warn(n),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",e+`
|
||
|
Deprecated since v`+t),console.warn(n))),Am[e]=!0}}var Om={},ti=Object.create(null),oo=Object.create(null),Um=function(){function t(e,r,n){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.resolution=n||Ft.RESOLUTION,this.resize(e,r)}return t.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},t.prototype.resize=function(e,r){this.canvas.width=Math.round(e*this.resolution),this.canvas.height=Math.round(r*this.resolution)},t.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(t.prototype,"width",{get:function(){return this.canvas.width},set:function(e){this.canvas.width=Math.round(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.canvas.height},set:function(e){this.canvas.height=Math.round(e)},enumerable:!1,configurable:!0}),t}();function S3(t){var e=t.width,r=t.height,n=t.getContext("2d"),i=n.getImageData(0,0,e,r),o=i.data,a=o.length,s={top:null,left:null,right:null,bottom:null},l=null,u,c,f;for(u=0;u<a;u+=4)o[u+3]!==0&&(c=u/4%e,f=~~(u/4/e),s.top===null&&(s.top=f),(s.left===null||c<s.left)&&(s.left=c),(s.right===null||s.right<c)&&(s.right=c+1),(s.bottom===null||s.bottom<f)&&(s.bottom=f));return s.top!==null&&(e=s.right-s.left,r=s.bottom-s.top+1,l=n.getImageData(s.left,s.top,e,r)),{height:r,width:e,data:l}}var Ll;function A3(t,e){if(e===void 0&&(e=globalThis.location),t.indexOf("data:")===0)return"";e=e||globalThis.location,Ll||(Ll=document.createElement("a")),Ll.href=t;var r=sa.parse(Ll.href),n=!r.port&&e.port===""||r.port===e.port;return r.hostname!==e.hostname||!n||r.protocol!==e.protocol?"anonymous":""}function ju(t,e){var r=Ft.RETINA_PREFIX.exec(t);return r?parseFloat(r[1]):e!==void 0?e:1}/*!
|
||
|
* @pixi/runner - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/runner is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/var wr=function(){function t(e){this.items=[],this._name=e,this._aliasCount=0}return t.prototype.emit=function(e,r,n,i,o,a,s,l){if(arguments.length>8)throw new Error("max arguments reached");var u=this,c=u.name,f=u.items;this._aliasCount++;for(var h=0,d=f.length;h<d;h++)f[h][c](e,r,n,i,o,a,s,l);return f===this.items&&this._aliasCount--,this},t.prototype.ensureNonAliasedItems=function(){this._aliasCount>0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},t.prototype.add=function(e){return e[this._name]&&(this.ensureNonAliasedItems(),this.remove(e),this.items.push(e)),this},t.prototype.remove=function(e){var r=this.items.indexOf(e);return r!==-1&&(this.ensureNonAliasedItems(),this.items.splice(r,1)),this},t.prototype.contains=function(e){return this.items.indexOf(e)!==-1},t.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},t.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(t.prototype,"empty",{get:function(){return this.items.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),t}();Object.defineProperties(wr.prototype,{dispatch:{value:wr.prototype.emit},run:{value:wr.prototype.emit}});/*!
|
||
|
* @pixi/ticker - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/ticker is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/Ft.TARGET_FPMS=.06;var vi;(function(t){t[t.INTERACTION=50]="INTERACTION",t[t.HIGH=25]="HIGH",t[t.NORMAL=0]="NORMAL",t[t.LOW=-25]="LOW",t[t.UTILITY=-50]="UTILITY"})(vi||(vi={}));var ef=function(){function t(e,r,n,i){r===void 0&&(r=null),n===void 0&&(n=0),i===void 0&&(i=!1),this.next=null,this.previous=null,this._destroyed=!1,this.fn=e,this.context=r,this.priority=n,this.once=i}return t.prototype.match=function(e,r){return r===void 0&&(r=null),this.fn===e&&this.context===r},t.prototype.emit=function(e){this.fn&&(this.context?this.fn.call(this.context,e):this.fn(e));var r=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),r},t.prototype.connect=function(e){this.previous=e,e.next&&(e.next.previous=this),this.next=e.next,e.next=this},t.prototype.destroy=function(e){e===void 0&&(e=!1),this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var r=this.next;return this.next=e?null:r,this.previous=null,r},t}(),gr=function(){function t(){var e=this;this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new ef(null,null,1/0),this.deltaMS=1/Ft.TARGET_FPMS,this.elapsedMS=1/Ft.TARGET_FPMS,this._tick=function(r){e._requestId=null,e.started&&(e.update(r),e.started&&e._requestId===null&&e._head.next&&(e._requestId=requestAnimationFrame(e._tick)))}}return t.prototype._requestIfNeeded=function(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},t.prototype._cancelIfNeeded=function(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)},t.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},t.prototype.add=function(e,r,n){return n===void 0&&(n=vi.NORMAL),this._addListener(new ef(e,r,n))},t.prototype.addOnce=function(e,r,n){return n===void 0&&(n=vi.NORMAL),this._addListener(new ef(e,r,n,!0))},t.prototype._addListener=function(e){var r=this._head.next,n=this._head;if(!r)e.connect(n);else{for(;r;){if(e.priority>r.priority){e.connect(n);break}n=r,r=r.next}e.previous||e.connect(n)}return this._startIfPossible(),this},t.prototype.remove=function(e,r){for(var n=this._head.next;n;)n.match(e,r)?n=n.destroy():n=n.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(t.prototype,"count",{get:function(){if(!this._head)return 0;for(var e=0,r=this._head;r=r.next;)e++;return e},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},t.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},t.prototype.destroy=function(){if(!this._protected){this.stop();for(var e=this._head.next;e;)e=e.destroy(!0);this._head.destroy(),this._head=null}},t.prototype.update=function(e){e===void 0&&(e=performance.now());var r;if(e>this.lastTime){if(r=this.elapsedMS=e-this.lastTime,r>this._maxElapsedMS&&(r=this._maxElapsedMS),r*=this.speed,this._minElapsedMS){var n=e-this._lastFrame|0;if(n<this._minElapsedMS)return;this._lastFrame=e-n%this._minElapsedMS}this.deltaMS=r,this.deltaTime=this.deltaMS*Ft.TARGET_FPMS;for(var i=this._head,o=i.next;o;)o=o.emit(this.deltaTime);i.next||this._cancelIfNeeded()}else this.deltaTime=this.deltaMS=this.elapsedMS=0;this.lastTime=e},Object.defineProperty(t.prototype,"FPS",{get:function(){return 1e3/this.elapsedMS},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minFPS",{get:function(){return 1e3/this._maxElapsedMS},set:function(e){var r=Math.min(this.maxFPS,e),n=Math.min(Math.max(0,r)/1e3,Ft.TARGET_FPMS);this._maxElapsedMS=1/n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxFPS",{get:function(){return this._minElapsedMS?Math.round(1e3/this._minElapsedMS):0},set:function(e){if(e===0)this._minElapsedMS=0;else{var r=Math.max(this.minFPS,e);this._minElapsedMS
|
||
|
* @pixi/math - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/math is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/var Xu=Math.PI*2,E1=180/Math.PI,I1=Math.PI/180,Ye;(function(t){t[t.POLY=0]="POLY",t[t.RECT=1]="RECT",t[t.CIRC=2]="CIRC",t[t.ELIP=3]="ELIP",t[t.RREC=4]="RREC"})(Ye||(Ye={}));var _e=function(){function t(e,r){e===void 0&&(e=0),r===void 0&&(r=0),this.x=0,this.y=0,this.x=e,this.y=r}return t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.copyFrom=function(e){return this.set(e.x,e.y),this},t.prototype.copyTo=function(e){return e.set(this.x,this.y),e},t.prototype.equals=function(e){return e.x===this.x&&e.y===this.y},t.prototype.set=function(e,r){return e===void 0&&(e=0),r===void 0&&(r=e),this.x=e,this.y=r,this},t.prototype.toString=function(){return"[@pixi/math:Point x="+this.x+" y="+this.y+"]"},t}(),Ml=[new _e,new _e,new _e,new _e],fe=function(){function t(e,r,n,i){e===void 0&&(e=0),r===void 0&&(r=0),n===void 0&&(n=0),i===void 0&&(i=0),this.x=Number(e),this.y=Number(r),this.width=Number(n),this.height=Number(i),this.type=Ye.RECT}return Object.defineProperty(t.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t,"EMPTY",{get:function(){return new t(0,0,0,0)},enumerable:!1,configurable:!0}),t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copyFrom=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},t.prototype.copyTo=function(e){return e.x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e},t.prototype.contains=function(e,r){return this.width<=0||this.height<=0?!1:e>=this.x&&e<this.x+this.width&&r>=this.y&&r<this.y+this.height},t.prototype.intersects=function(e,r){if(!r){var n=this.x<e.x?e.x:this.x,i=this.right>e.right?e.right:this.right;if(i<=n)return!1;var o=this.y<e.y?e.y:this.y,a=this.bottom>e.bottom?e.bottom:this.bottom;return a>o}var s=this.left,l=this.right,u=this.top,c=this.bottom;if(l<=s||c<=u)return!1;var f=Ml[0].set(e.left,e.top),h=Ml[1].set(e.left,e.bottom),d=Ml[2].set(e.right,e.top),p=Ml[3].set(e.right,e.bottom);if(d.x<=f.x||h.y<=f.y)return!1;var v=Math.sign(r.a*r.d-r.b*r.c);if(v===0||(r.apply(f,f),r.apply(h,h),r.apply(d,d),r.apply(p,p),Math.max(f.x,h.x,d.x,p.x)<=s||Math.min(f.x,h.x,d.x,p.x)>=l||Math.max(f.y,h.y,d.y,p.y)<=u||Math.min(f.y,h.y,d.y,p.y)>=c))return!1;var m=v*(h.y-f.y),y=v*(f.x-h.x),g=m*s+y*u,b=m*l+y*u,T=m*s+y*c,w=m*l+y*c;if(Math.max(g,b,T,w)<=m*f.x+y*f.y||Math.min(g,b,T,w)>=m*p.x+y*p.y)return!1;var x=v*(f.y-d.y),R=v*(d.x-f.x),I=x*s+R*u,C=x*l+R*u,S=x*s+R*c,L=x*l+R*c;return!(Math.max(I,C,S,L)<=x*f.x+R*f.y||Math.min(I,C,S,L)>=x*p.x+R*p.y)},t.prototype.pad=function(e,r){return e===void 0&&(e=0),r===void 0&&(r=e),this.x-=e,this.y-=r,this.width+=e*2,this.height+=r*2,this},t.prototype.fit=function(e){var r=Math.max(this.x,e.x),n=Math.min(this.x+this.width,e.x+e.width),i=Math.max(this.y,e.y),o=Math.min(this.y+this.height,e.y+e.height);return this.x=r,this.width=Math.max(n-r,0),this.y=i,this.height=Math.max(o-i,0),this},t.prototype.ceil=function(e,r){e===void 0&&(e=1),r===void 0&&(r=.001);var n=Math.ceil((this.x+this.width-r)*e)/e,i=Math.ceil((this.y+this.height-r)*e)/e;return this.x=Math.floor((this.x+r)*e)/e,this.y=Math.floor((this.y+r)*e)/e,this.width=n-this.x,this.height=i-this.y,this},t.prototype.enlarge=function(e){var r=Math.min(this.x,e.x),n=Math.max(this.x+this.width,e.x+e.width),i=Math.min(this.y,e.y),o=Math.max(this.y+this.height,e.y+e.height);return this.x=r,this.width=n-r,this.y=i,this.height=o-i,this},t.prototype.toString=function(){return"[@pixi/math:Rectangle x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},t}(),U3=function(){function t(e,r,n){e===void 0&&(e=0),r===void 0&&(r=0),n===void 0&&(n=0),this.x=e,this.y=r,this.radius=n,this.type=Ye.CIRC}return t.prototype.clone=function(){
|
||
|
* @pixi/core - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/core is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/Ft.PREFER_ENV=Un.any?di.WEBGL:di.WEBGL2;Ft.STRICT_TEXTURE_CACHE=!1;var Oh=[];function R1(t,e){if(!t)return null;var r="";if(typeof t=="string"){var n=/\.(\w{3,4})(?:$|\?|#)/i.exec(t);n&&(r=n[1].toLowerCase())}for(var i=Oh.length-1;i>=0;--i){var o=Oh[i];if(o.test&&o.test(t,r))return new o(t,e)}throw new Error("Unrecognized source type to auto-detect Resource")}/*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** */var Uh=function(t,e){return Uh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Uh(t,e)};function Fe(t,e){Uh(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Fh=function(){return Fh=Object.assign||function(e){for(var r=arguments,n,i=1,o=arguments.length;i<o;i++){n=r[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Fh.apply(this,arguments)};function B3(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&(r[n[i]]=t[n[i]]);return r}var Hs=function(){function t(e,r){e===void 0&&(e=0),r===void 0&&(r=0),this._width=e,this._height=r,this.destroyed=!1,this.internal=!1,this.onResize=new wr("setRealSize"),this.onUpdate=new wr("update"),this.onError=new wr("onError")}return t.prototype.bind=function(e){this.onResize.add(e),this.onUpdate.add(e),this.onError.add(e),(this._width||this._height)&&this.onResize.emit(this._width,this._height)},t.prototype.unbind=function(e){this.onResize.remove(e),this.onUpdate.remove(e),this.onError.remove(e)},t.prototype.resize=function(e,r){(e!==this._width||r!==this._height)&&(this._width=e,this._height=r,this.onResize.emit(e,r))},Object.defineProperty(t.prototype,"valid",{get:function(){return!!this._width&&!!this._height},enumerable:!1,configurable:!0}),t.prototype.update=function(){this.destroyed||this.onUpdate.emit()},t.prototype.load=function(){return Promise.resolve(this)},Object.defineProperty(t.prototype,"width",{get:function(){return this._width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},enumerable:!1,configurable:!0}),t.prototype.style=function(e,r,n){return!1},t.prototype.dispose=function(){},t.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)},t.test=function(e,r){return!1},t}(),ul=function(t){Fe(e,t);function e(r,n){var i=this,o=n||{},a=o.width,s=o.height;if(!a||!s)throw new Error("BufferResource width or height invalid");return i=t.call(this,a,s)||this,i.data=r,i}return e.prototype.upload=function(r,n,i){var o=r.gl;o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.alphaMode===En.UNPACK);var a=n.realWidth,s=n.realHeight;return i.width===a&&i.height===s?o.texSubImage2D(n.target,0,0,0,a,s,n.format,i.type,this.data):(i.width=a,i.height=s,o.texImage2D(n.target,0,i.internalFormat,a,s,0,n.format,i.type,this.data)),!0},e.prototype.dispose=function(){this.data=null},e.test=function(r){return r instanceof Float32Array||r instanceof Uint8Array||r instanceof Uint32Array},e}(Hs),k3={scaleMode:ii.NEAREST,format:pt.RGBA,alphaMode:En.NPM},ge=function(t){Fe(e,t);function e(r,n){r===void 0&&(r=null),n===void 0&&(n=null);var i=t.call(this)||this;n=n||{};var o=n.alphaMode,a=n.mipmap,s=n.anisotropicLevel,l=n.scaleMode,u=n.width,c=n.height,f=n.wrapMode,h=n.format,d=n.type,p=n.target,v=n.resolution,m=n.resourceOptions;return r&&!(r instanceof Hs)&&(r=R1(r,m),r.internal=!0),i.resolution=v||Ft.RESOLUTION,i.width=Math.round((u||0)*i.resolution)/i.resolution,i.height=Math.round((c||0)*i.resolution)/i.resolution,i._mipmap=a!==void 0?a:Ft.MIPMAP_TEXTURES,i.anisotropicLevel=s!==void 0?s:Ft.ANISOTROPIC_LEVEL,i._wrapMode=f||Ft.WRAP_MODE,i._scaleMode=l!==void 0?l:Ft.SCALE_MODE,i.format=h||pt.RGBA,i.type=d||Mt.UNSIGNED_BYTE,i.target=p||No.TEXTURE_2D,i.alphaMode=o!==void 0?o:En.UNPACK,i.uid=Oo(),i.touched=0,i.isPowerOfTwo=!1,i._refreshPOT(),i._glTextures={},i.dirtyId=0,i.dirtyStyleId=0,i.cacheId=null,i.valid=u>0&&c>0,i.textureCacheIds=[],i.destroyed=!1,i.resource=null,i._batchEnabled=0,i._batchLocation=0,i.parentTextureArray=null,i.setReso
|
||
|
`).map(function(u,c){return c+": "+u}),n=t.getShaderInfoLog(e),i=n.split(`
|
||
|
`),o={},a=i.map(function(u){return parseFloat(u.replace(/^ERROR\: 0\:([\d]+)\:.*$/,"$1"))}).filter(function(u){return u&&!o[u]?(o[u]=!0,!0):!1}),s=[""];a.forEach(function(u){r[u-1]="%c"+r[u-1]+"%c",s.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")});var l=r.join(`
|
||
|
`);s[0]=l,console.error(n),console.groupCollapsed("click to view full shader code"),console.warn.apply(console,s),console.groupEnd()}function l4(t,e,r,n){t.getProgramParameter(e,t.LINK_STATUS)||(t.getShaderParameter(r,t.COMPILE_STATUS)||Gm(t,r),t.getShaderParameter(n,t.COMPILE_STATUS)||Gm(t,n),console.error("PixiJS Error: Could not initialize shader."),t.getProgramInfoLog(e)!==""&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",t.getProgramInfoLog(e)))}function of(t){for(var e=new Array(t),r=0;r<e.length;r++)e[r]=!1;return e}function F1(t,e){switch(t){case"float":return 0;case"vec2":return new Float32Array(2*e);case"vec3":return new Float32Array(3*e);case"vec4":return new Float32Array(4*e);case"int":case"uint":case"sampler2D":case"sampler2DArray":return 0;case"ivec2":return new Int32Array(2*e);case"ivec3":return new Int32Array(3*e);case"ivec4":return new Int32Array(4*e);case"uvec2":return new Uint32Array(2*e);case"uvec3":return new Uint32Array(3*e);case"uvec4":return new Uint32Array(4*e);case"bool":return!1;case"bvec2":return of(2*e);case"bvec3":return of(3*e);case"bvec4":return of(4*e);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}var L1={},ja=L1;function u4(){if(ja===L1||ja&&ja.isContextLost()){var t=document.createElement("canvas"),e=void 0;Ft.PREFER_ENV>=di.WEBGL2&&(e=t.getContext("webgl2",{})),e||(e=t.getContext("webgl",{})||t.getContext("experimental-webgl",{}),e?e.getExtension("WEBGL_draw_buffers"):e=null),ja=e}return ja}var Dl;function c4(){if(!Dl){Dl=Fn.MEDIUM;var t=u4();if(t&&t.getShaderPrecisionFormat){var e=t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT);Dl=e.precision?Fn.HIGH:Fn.MEDIUM}}return Dl}function Dm(t,e,r){if(t.substring(0,9)!=="precision"){var n=e;return e===Fn.HIGH&&r!==Fn.HIGH&&(n=Fn.MEDIUM),"precision "+n+` float;
|
||
|
`+t}else if(r!==Fn.HIGH&&t.substring(0,15)==="precision highp")return t.replace("precision highp","precision mediump");return t}var f4={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function M1(t){return f4[t]}var Hl=null,Hm={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function B1(t,e){if(!Hl){var r=Object.keys(Hm);Hl={};for(var n=0;n<r.length;++n){var i=r[n];Hl[t[i]]=Hm[i]}}return Hl[e]}var ya=[{test:function(t){return t.type==="float"&&t.size===1},code:function(t){return`
|
||
|
if(uv["`+t+'"] !== ud["'+t+`"].value)
|
||
|
{
|
||
|
ud["`+t+'"].value = uv["'+t+`"]
|
||
|
gl.uniform1f(ud["`+t+'"].location, uv["'+t+`"])
|
||
|
}
|
||
|
`}},{test:function(t){return(t.type==="sampler2D"||t.type==="samplerCube"||t.type==="sampler2DArray")&&t.size===1&&!t.isArray},code:function(t){return`t = syncData.textureCount++;
|
||
|
|
||
|
renderer.texture.bind(uv["`+t+`"], t);
|
||
|
|
||
|
if(ud["`+t+`"].value !== t)
|
||
|
{
|
||
|
ud["`+t+`"].value = t;
|
||
|
gl.uniform1i(ud["`+t+`"].location, t);
|
||
|
; // eslint-disable-line max-len
|
||
|
}`}},{test:function(t,e){return t.type==="mat3"&&t.size===1&&e.a!==void 0},code:function(t){return`
|
||
|
gl.uniformMatrix3fv(ud["`+t+'"].location, false, uv["'+t+`"].toArray(true));
|
||
|
`},codeUbo:function(t){return`
|
||
|
var `+t+"_matrix = uv."+t+`.toArray(true);
|
||
|
|
||
|
data[offset] = `+t+`_matrix[0];
|
||
|
data[offset+1] = `+t+`_matrix[1];
|
||
|
data[offset+2] = `+t+`_matrix[2];
|
||
|
|
||
|
data[offset + 4] = `+t+`_matrix[3];
|
||
|
data[offset + 5] = `+t+`_matrix[4];
|
||
|
data[offset + 6] = `+t+`_matrix[5];
|
||
|
|
||
|
data[offset + 8] = `+t+`_matrix[6];
|
||
|
data[offset + 9] = `+t+`_matrix[7];
|
||
|
data[offset + 10] = `+t+`_matrix[8];
|
||
|
`}},{test:function(t,e){return t.type==="vec2"&&t.size===1&&e.x!==void 0},code:function(t){return`
|
||
|
cv = ud["`+t+`"].value;
|
||
|
v = uv["`+t+`"];
|
||
|
|
||
|
if(cv[0] !== v.x || cv[1] !== v.y)
|
||
|
{
|
||
|
cv[0] = v.x;
|
||
|
cv[1] = v.y;
|
||
|
gl.uniform2f(ud["`+t+`"].location, v.x, v.y);
|
||
|
}`},codeUbo:function(t){return`
|
||
|
v = uv.`+t+`;
|
||
|
|
||
|
data[offset] = v.x;
|
||
|
data[offset+1] = v.y;
|
||
|
`}},{test:function(t){return t.type==="vec2"&&t.size===1},code:function(t){return`
|
||
|
cv = ud["`+t+`"].value;
|
||
|
v = uv["`+t+`"];
|
||
|
|
||
|
if(cv[0] !== v[0] || cv[1] !== v[1])
|
||
|
{
|
||
|
cv[0] = v[0];
|
||
|
cv[1] = v[1];
|
||
|
gl.uniform2f(ud["`+t+`"].location, v[0], v[1]);
|
||
|
}
|
||
|
`}},{test:function(t,e){return t.type==="vec4"&&t.size===1&&e.width!==void 0},code:function(t){return`
|
||
|
cv = ud["`+t+`"].value;
|
||
|
v = uv["`+t+`"];
|
||
|
|
||
|
if(cv[0] !== v.x || cv[1] !== v.y || cv[2] !== v.width || cv[3] !== v.height)
|
||
|
{
|
||
|
cv[0] = v.x;
|
||
|
cv[1] = v.y;
|
||
|
cv[2] = v.width;
|
||
|
cv[3] = v.height;
|
||
|
gl.uniform4f(ud["`+t+`"].location, v.x, v.y, v.width, v.height)
|
||
|
}`},codeUbo:function(t){return`
|
||
|
v = uv.`+t+`;
|
||
|
|
||
|
data[offset] = v.x;
|
||
|
data[offset+1] = v.y;
|
||
|
data[offset+2] = v.width;
|
||
|
data[offset+3] = v.height;
|
||
|
`}},{test:function(t){return t.type==="vec4"&&t.size===1},code:function(t){return`
|
||
|
cv = ud["`+t+`"].value;
|
||
|
v = uv["`+t+`"];
|
||
|
|
||
|
if(cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
|
||
|
{
|
||
|
cv[0] = v[0];
|
||
|
cv[1] = v[1];
|
||
|
cv[2] = v[2];
|
||
|
cv[3] = v[3];
|
||
|
|
||
|
gl.uniform4f(ud["`+t+`"].location, v[0], v[1], v[2], v[3])
|
||
|
}`}}],h4={float:`
|
||
|
if (cv !== v)
|
||
|
{
|
||
|
cu.value = v;
|
||
|
gl.uniform1f(location, v);
|
||
|
}`,vec2:`
|
||
|
if (cv[0] !== v[0] || cv[1] !== v[1])
|
||
|
{
|
||
|
cv[0] = v[0];
|
||
|
cv[1] = v[1];
|
||
|
|
||
|
gl.uniform2f(location, v[0], v[1])
|
||
|
}`,vec3:`
|
||
|
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
|
||
|
{
|
||
|
cv[0] = v[0];
|
||
|
cv[1] = v[1];
|
||
|
cv[2] = v[2];
|
||
|
|
||
|
gl.uniform3f(location, v[0], v[1], v[2])
|
||
|
}`,vec4:`
|
||
|
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
|
||
|
{
|
||
|
cv[0] = v[0];
|
||
|
cv[1] = v[1];
|
||
|
cv[2] = v[2];
|
||
|
cv[3] = v[3];
|
||
|
|
||
|
gl.uniform4f(location, v[0], v[1], v[2], v[3]);
|
||
|
}`,int:`
|
||
|
if (cv !== v)
|
||
|
{
|
||
|
cu.value = v;
|
||
|
|
||
|
gl.uniform1i(location, v);
|
||
|
}`,ivec2:`
|
||
|
if (cv[0] !== v[0] || cv[1] !== v[1])
|
||
|
{
|
||
|
cv[0] = v[0];
|
||
|
cv[1] = v[1];
|
||
|
|
||
|
gl.uniform2i(location, v[0], v[1]);
|
||
|
}`,ivec3:`
|
||
|
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
|
||
|
{
|
||
|
cv[0] = v[0];
|
||
|
cv[1] = v[1];
|
||
|
cv[2] = v[2];
|
||
|
|
||
|
gl.uniform3i(location, v[0], v[1], v[2]);
|
||
|
}`,ivec4:`
|
||
|
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
|
||
|
{
|
||
|
cv[0] = v[0];
|
||
|
cv[1] = v[1];
|
||
|
cv[2] = v[2];
|
||
|
cv[3] = v[3];
|
||
|
|
||
|
gl.uniform4i(location, v[0], v[1], v[2], v[3]);
|
||
|
}`,uint:`
|
||
|
if (cv !== v)
|
||
|
{
|
||
|
cu.value = v;
|
||
|
|
||
|
gl.uniform1ui(location, v);
|
||
|
}`,uvec2:`
|
||
|
if (cv[0] !== v[0] || cv[1] !== v[1])
|
||
|
{
|
||
|
cv[0] = v[0];
|
||
|
cv[1] = v[1];
|
||
|
|
||
|
gl.uniform2ui(location, v[0], v[1]);
|
||
|
}`,uvec3:`
|
||
|
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
|
||
|
{
|
||
|
cv[0] = v[0];
|
||
|
cv[1] = v[1];
|
||
|
cv[2] = v[2];
|
||
|
|
||
|
gl.uniform3ui(location, v[0], v[1], v[2]);
|
||
|
}`,uvec4:`
|
||
|
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
|
||
|
{
|
||
|
cv[0] = v[0];
|
||
|
cv[1] = v[1];
|
||
|
cv[2] = v[2];
|
||
|
cv[3] = v[3];
|
||
|
|
||
|
gl.uniform4ui(location, v[0], v[1], v[2], v[3]);
|
||
|
}`,bool:`
|
||
|
if (cv !== v)
|
||
|
{
|
||
|
cu.value = v;
|
||
|
gl.uniform1i(location, v);
|
||
|
}`,bvec2:`
|
||
|
if (cv[0] != v[0] || cv[1] != v[1])
|
||
|
{
|
||
|
cv[0] = v[0];
|
||
|
cv[1] = v[1];
|
||
|
|
||
|
gl.uniform2i(location, v[0], v[1]);
|
||
|
}`,bvec3:`
|
||
|
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
|
||
|
{
|
||
|
cv[0] = v[0];
|
||
|
cv[1] = v[1];
|
||
|
cv[2] = v[2];
|
||
|
|
||
|
gl.uniform3i(location, v[0], v[1], v[2]);
|
||
|
}`,bvec4:`
|
||
|
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
|
||
|
{
|
||
|
cv[0] = v[0];
|
||
|
cv[1] = v[1];
|
||
|
cv[2] = v[2];
|
||
|
cv[3] = v[3];
|
||
|
|
||
|
gl.uniform4i(location, v[0], v[1], v[2], v[3]);
|
||
|
}`,mat2:"gl.uniformMatrix2fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",sampler2D:"gl.uniform1i(location, v)",samplerCube:"gl.uniform1i(location, v)",sampler2DArray:"gl.uniform1i(location, v)"},d4={float:"gl.uniform1fv(location, v)",vec2:"gl.uniform2fv(location, v)",vec3:"gl.uniform3fv(location, v)",vec4:"gl.uniform4fv(location, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat2:"gl.uniformMatrix2fv(location, false, v)",int:"gl.uniform1iv(location, v)",ivec2:"gl.uniform2iv(location, v)",ivec3:"gl.uniform3iv(location, v)",ivec4:"gl.uniform4iv(location, v)",uint:"gl.uniform1uiv(location, v)",uvec2:"gl.uniform2uiv(location, v)",uvec3:"gl.uniform3uiv(location, v)",uvec4:"gl.uniform4uiv(location, v)",bool:"gl.uniform1iv(location, v)",bvec2:"gl.uniform2iv(location, v)",bvec3:"gl.uniform3iv(location, v)",bvec4:"gl.uniform4iv(location, v)",sampler2D:"gl.uniform1iv(location, v)",samplerCube:"gl.uniform1iv(location, v)",sampler2DArray:"gl.uniform1iv(location, v)"};function p4(t,e){var r,n=[`
|
||
|
var v = null;
|
||
|
var cv = null;
|
||
|
var cu = null;
|
||
|
var t = 0;
|
||
|
var gl = renderer.gl;
|
||
|
`];for(var i in t.uniforms){var o=e[i];if(!o){!((r=t.uniforms[i])===null||r===void 0)&&r.group&&(t.uniforms[i].ubo?n.push(`
|
||
|
renderer.shader.syncUniformBufferGroup(uv.`+i+", '"+i+`');
|
||
|
`):n.push(`
|
||
|
renderer.shader.syncUniformGroup(uv.`+i+`, syncData);
|
||
|
`));continue}for(var a=t.uniforms[i],s=!1,l=0;l<ya.length;l++)if(ya[l].test(o,a)){n.push(ya[l].code(i,a)),s=!0;break}if(!s){var u=o.size===1?h4:d4,c=u[o.type].replace("location",'ud["'+i+'"].location');n.push(`
|
||
|
cu = ud["`+i+`"];
|
||
|
cv = cu.value;
|
||
|
v = uv["`+i+`"];
|
||
|
`+c+";")}}return new Function("ud","uv","renderer","syncData",n.join(`
|
||
|
`))}var v4=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join(`
|
||
|
`);function m4(t){for(var e="",r=0;r<t;++r)r>0&&(e+=`
|
||
|
else `),r<t-1&&(e+="if(test == "+r+".0){}");return e}function g4(t,e){if(t===0)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");for(var r=e.createShader(e.FRAGMENT_SHADER);;){var n=v4.replace(/%forloop%/gi,m4(t));if(e.shaderSource(r,n),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS))t=t/2|0;else break}return t}var Xa;function y4(){if(typeof Xa=="boolean")return Xa;try{var t=new Function("param1","param2","param3","return param1[param2] === param3;");Xa=t({a:"b"},"a","b")===!0}catch{Xa=!1}return Xa}var b4=`varying vec2 vTextureCoord;
|
||
|
|
||
|
uniform sampler2D uSampler;
|
||
|
|
||
|
void main(void){
|
||
|
gl_FragColor *= texture2D(uSampler, vTextureCoord);
|
||
|
}`,_4=`attribute vec2 aVertexPosition;
|
||
|
attribute vec2 aTextureCoord;
|
||
|
|
||
|
uniform mat3 projectionMatrix;
|
||
|
|
||
|
varying vec2 vTextureCoord;
|
||
|
|
||
|
void main(void){
|
||
|
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
vTextureCoord = aTextureCoord;
|
||
|
}
|
||
|
`,x4=0,Vl={},fl=function(){function t(e,r,n){n===void 0&&(n="pixi-shader"),this.id=x4++,this.vertexSrc=e||t.defaultVertexSrc,this.fragmentSrc=r||t.defaultFragmentSrc,this.vertexSrc=this.vertexSrc.trim(),this.fragmentSrc=this.fragmentSrc.trim(),this.vertexSrc.substring(0,8)!=="#version"&&(n=n.replace(/\s+/g,"-"),Vl[n]?(Vl[n]++,n+="-"+Vl[n]):Vl[n]=1,this.vertexSrc="#define SHADER_NAME "+n+`
|
||
|
`+this.vertexSrc,this.fragmentSrc="#define SHADER_NAME "+n+`
|
||
|
`+this.fragmentSrc,this.vertexSrc=Dm(this.vertexSrc,Ft.PRECISION_VERTEX,Fn.HIGH),this.fragmentSrc=Dm(this.fragmentSrc,Ft.PRECISION_FRAGMENT,c4())),this.glPrograms={},this.syncUniforms=null}return Object.defineProperty(t,"defaultVertexSrc",{get:function(){return _4},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultFragmentSrc",{get:function(){return b4},enumerable:!1,configurable:!0}),t.from=function(e,r,n){var i=e+r,o=Om[i];return o||(Om[i]=o=new t(e,r,n)),o},t}(),Di=function(){function t(e,r){this.uniformBindCount=0,this.program=e,r?r instanceof Po?this.uniformGroup=r:this.uniformGroup=new Po(r):this.uniformGroup=new Po({})}return t.prototype.checkUniformExists=function(e,r){if(r.uniforms[e])return!0;for(var n in r.uniforms){var i=r.uniforms[n];if(i.group&&this.checkUniformExists(e,i))return!0}return!1},t.prototype.destroy=function(){this.uniformGroup=null},Object.defineProperty(t.prototype,"uniforms",{get:function(){return this.uniformGroup.uniforms},enumerable:!1,configurable:!0}),t.from=function(e,r,n){var i=fl.from(e,r);return new t(i,n)},t}(),af=0,sf=1,lf=2,uf=3,cf=4,ff=5,Do=function(){function t(){this.data=0,this.blendMode=Ut.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}return Object.defineProperty(t.prototype,"blend",{get:function(){return!!(this.data&1<<af)},set:function(e){!!(this.data&1<<af)!==e&&(this.data^=1<<af)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"offsets",{get:function(){return!!(this.data&1<<sf)},set:function(e){!!(this.data&1<<sf)!==e&&(this.data^=1<<sf)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"culling",{get:function(){return!!(this.data&1<<lf)},set:function(e){!!(this.data&1<<lf)!==e&&(this.data^=1<<lf)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"depthTest",{get:function(){return!!(this.data&1<<uf)},set:function(e){!!(this.data&1<<uf)!==e&&(this.data^=1<<uf)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"depthMask",{get:function(){return!!(this.data&1<<ff)},set:function(e){!!(this.data&1<<ff)!==e&&(this.data^=1<<ff)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clockwiseFrontFace",{get:function(){return!!(this.data&1<<cf)},set:function(e){!!(this.data&1<<cf)!==e&&(this.data^=1<<cf)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blendMode",{get:function(){return this._blendMode},set:function(e){this.blend=e!==Ut.NONE,this._blendMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"polygonOffset",{get:function(){return this._polygonOffset},set:function(e){this.offsets=!!e,this._polygonOffset=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[@pixi/core:State "+("blendMode="+this.blendMode+" ")+("clockwiseFrontFace="+this.clockwiseFrontFace+" ")+("culling="+this.culling+" ")+("depthMask="+this.depthMask+" ")+("polygonOffset="+this.polygonOffset)+"]"},t.for2d=function(){var e=new t;return e.depthTest=!1,e.blend=!0,e},t}(),T4=`attribute vec2 aVertexPosition;
|
||
|
|
||
|
uniform mat3 projectionMatrix;
|
||
|
|
||
|
varying vec2 vTextureCoord;
|
||
|
|
||
|
uniform vec4 inputSize;
|
||
|
uniform vec4 outputFrame;
|
||
|
|
||
|
vec4 filterVertexPosition( void )
|
||
|
{
|
||
|
vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;
|
||
|
|
||
|
return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
|
||
|
}
|
||
|
|
||
|
vec2 filterTextureCoord( void )
|
||
|
{
|
||
|
return aVertexPosition * (outputFrame.zw * inputSize.zw);
|
||
|
}
|
||
|
|
||
|
void main(void)
|
||
|
{
|
||
|
gl_Position = filterVertexPosition();
|
||
|
vTextureCoord = filterTextureCoord();
|
||
|
}
|
||
|
`,w4=`varying vec2 vTextureCoord;
|
||
|
|
||
|
uniform sampler2D uSampler;
|
||
|
|
||
|
void main(void){
|
||
|
gl_FragColor = texture2D(uSampler, vTextureCoord);
|
||
|
}
|
||
|
`,Zi=function(t){Fe(e,t);function e(r,n,i){var o=this,a=fl.from(r||e.defaultVertexSrc,n||e.defaultFragmentSrc);return o=t.call(this,a,i)||this,o.padding=0,o.resolution=Ft.FILTER_RESOLUTION,o.multisample=Ft.FILTER_MULTISAMPLE,o.enabled=!0,o.autoFit=!0,o.state=new Do,o}return e.prototype.apply=function(r,n,i,o,a){r.applyFilter(this,n,i,o)},Object.defineProperty(e.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(r){this.state.blendMode=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resolution",{get:function(){return this._resolution},set:function(r){this._resolution=r},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultVertexSrc",{get:function(){return T4},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultFragmentSrc",{get:function(){return w4},enumerable:!1,configurable:!0}),e}(Di),E4=`attribute vec2 aVertexPosition;
|
||
|
attribute vec2 aTextureCoord;
|
||
|
|
||
|
uniform mat3 projectionMatrix;
|
||
|
uniform mat3 otherMatrix;
|
||
|
|
||
|
varying vec2 vMaskCoord;
|
||
|
varying vec2 vTextureCoord;
|
||
|
|
||
|
void main(void)
|
||
|
{
|
||
|
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
||
|
vTextureCoord = aTextureCoord;
|
||
|
vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;
|
||
|
}
|
||
|
`,I4=`varying vec2 vMaskCoord;
|
||
|
varying vec2 vTextureCoord;
|
||
|
|
||
|
uniform sampler2D uSampler;
|
||
|
uniform sampler2D mask;
|
||
|
uniform float alpha;
|
||
|
uniform float npmAlpha;
|
||
|
uniform vec4 maskClamp;
|
||
|
|
||
|
void main(void)
|
||
|
{
|
||
|
float clip = step(3.5,
|
||
|
step(maskClamp.x, vMaskCoord.x) +
|
||
|
step(maskClamp.y, vMaskCoord.y) +
|
||
|
step(vMaskCoord.x, maskClamp.z) +
|
||
|
step(vMaskCoord.y, maskClamp.w));
|
||
|
|
||
|
vec4 original = texture2D(uSampler, vTextureCoord);
|
||
|
vec4 masky = texture2D(mask, vMaskCoord);
|
||
|
float alphaMul = 1.0 - npmAlpha * (1.0 - masky.a);
|
||
|
|
||
|
original *= (alphaMul * masky.r * alpha * clip);
|
||
|
|
||
|
gl_FragColor = original;
|
||
|
}
|
||
|
`,Vm=new or,vp=function(){function t(e,r){this._texture=e,this.mapCoord=new or,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,this.clampMargin=typeof r=="undefined"?.5:r,this.isSimple=!1}return Object.defineProperty(t.prototype,"texture",{get:function(){return this._texture},set:function(e){this._texture=e,this._textureID=-1},enumerable:!1,configurable:!0}),t.prototype.multiplyUvs=function(e,r){r===void 0&&(r=e);for(var n=this.mapCoord,i=0;i<e.length;i+=2){var o=e[i],a=e[i+1];r[i]=o*n.a+a*n.c+n.tx,r[i+1]=o*n.b+a*n.d+n.ty}return r},t.prototype.update=function(e){var r=this._texture;if(!r||!r.valid||!e&&this._textureID===r._updateID)return!1;this._textureID=r._updateID,this._updateID++;var n=r._uvs;this.mapCoord.set(n.x1-n.x0,n.y1-n.y0,n.x3-n.x0,n.y3-n.y0,n.x0,n.y0);var i=r.orig,o=r.trim;o&&(Vm.set(i.width/o.width,0,0,i.height/o.height,-o.x/o.width,-o.y/o.height),this.mapCoord.append(Vm));var a=r.baseTexture,s=this.uClampFrame,l=this.clampMargin/a.resolution,u=this.clampOffset;return s[0]=(r._frame.x+l+u)/a.width,s[1]=(r._frame.y+l+u)/a.height,s[2]=(r._frame.x+r._frame.width-l+u)/a.width,s[3]=(r._frame.y+r._frame.height-l+u)/a.height,this.uClampOffset[0]=u/a.realWidth,this.uClampOffset[1]=u/a.realHeight,this.isSimple=r._frame.width===a.width&&r._frame.height===a.height&&r.rotate===0,!0},t}(),C4=function(t){Fe(e,t);function e(r,n,i){var o=this,a=null;return typeof r!="string"&&n===void 0&&i===void 0&&(a=r,r=void 0,n=void 0,i=void 0),o=t.call(this,r||E4,n||I4,i)||this,o.maskSprite=a,o.maskMatrix=new or,o}return Object.defineProperty(e.prototype,"maskSprite",{get:function(){return this._maskSprite},set:function(r){this._maskSprite=r,this._maskSprite&&(this._maskSprite.renderable=!1)},enumerable:!1,configurable:!0}),e.prototype.apply=function(r,n,i,o){var a=this._maskSprite,s=a._texture;!s.valid||(s.uvMatrix||(s.uvMatrix=new vp(s,0)),s.uvMatrix.update(),this.uniforms.npmAlpha=s.baseTexture.alphaMode?0:1,this.uniforms.mask=s,this.uniforms.otherMatrix=r.calculateSpriteMatrix(this.maskMatrix,a).prepend(s.uvMatrix.mapCoord),this.uniforms.alpha=a.worldAlpha,this.uniforms.maskClamp=s.uvMatrix.uClampFrame,r.applyFilter(this,n,i,o))},e}(Zi),R4=function(){function t(e){this.renderer=e,this.enableScissor=!0,this.alphaMaskPool=[],this.maskDataPool=[],this.maskStack=[],this.alphaMaskIndex=0}return t.prototype.setMaskStack=function(e){this.maskStack=e,this.renderer.scissor.setMaskStack(e),this.renderer.stencil.setMaskStack(e)},t.prototype.push=function(e,r){var n=r;if(!n.isMaskData){var i=this.maskDataPool.pop()||new s4;i.pooled=!0,i.maskObject=r,n=i}var o=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null;if(n.copyCountersOrReset(o),n.autoDetect&&this.detect(n),n._target=e,n.type!==Tr.SPRITE&&this.maskStack.push(n),n.enabled)switch(n.type){case Tr.SCISSOR:this.renderer.scissor.push(n);break;case Tr.STENCIL:this.renderer.stencil.push(n);break;case Tr.SPRITE:n.copyCountersOrReset(null),this.pushSpriteMask(n);break}n.type===Tr.SPRITE&&this.maskStack.push(n)},t.prototype.pop=function(e){var r=this.maskStack.pop();if(!(!r||r._target!==e)){if(r.enabled)switch(r.type){case Tr.SCISSOR:this.renderer.scissor.pop();break;case Tr.STENCIL:this.renderer.stencil.pop(r.maskObject);break;case Tr.SPRITE:this.popSpriteMask(r);break}if(r.reset(),r.pooled&&this.maskDataPool.push(r),this.maskStack.length!==0){var n=this.maskStack[this.maskStack.length-1];n.type===Tr.SPRITE&&n._filters&&(n._filters[0].maskSprite=n.maskObject)}}},t.prototype.detect=function(e){var r=e.maskObject;r.isSprite?e.type=Tr.SPRITE:this.enableScissor&&this.renderer.scissor.testScissor(e)?e.type=Tr.SCISSOR:e.type=Tr.STENCIL},t.prototype.pushSpriteMask=function(e){var r,n,i=e.maskObject,o=e._target,a=e._filters;a||(a=this.alphaMaskPool[this.alphaMaskIndex],a||(a=this.alphaMaskPool[this.alphaMaskIndex]=[new C4]));var s=this.renderer,l=s.renderTexture,u,c;if(l.current){var f=l.current;u=e.resolution||f.resolution,c=(r=e.multisample)!==null&&r!==void 0?r:f.multisample}else u=e.resolution||s
|
||
|
data[offset] = v;
|
||
|
`,vec2:`
|
||
|
data[offset] = v[0];
|
||
|
data[offset+1] = v[1];
|
||
|
`,vec3:`
|
||
|
data[offset] = v[0];
|
||
|
data[offset+1] = v[1];
|
||
|
data[offset+2] = v[2];
|
||
|
|
||
|
`,vec4:`
|
||
|
data[offset] = v[0];
|
||
|
data[offset+1] = v[1];
|
||
|
data[offset+2] = v[2];
|
||
|
data[offset+3] = v[3];
|
||
|
`,mat2:`
|
||
|
data[offset] = v[0];
|
||
|
data[offset+1] = v[1];
|
||
|
|
||
|
data[offset+4] = v[2];
|
||
|
data[offset+5] = v[3];
|
||
|
`,mat3:`
|
||
|
data[offset] = v[0];
|
||
|
data[offset+1] = v[1];
|
||
|
data[offset+2] = v[2];
|
||
|
|
||
|
data[offset + 4] = v[3];
|
||
|
data[offset + 5] = v[4];
|
||
|
data[offset + 6] = v[5];
|
||
|
|
||
|
data[offset + 8] = v[6];
|
||
|
data[offset + 9] = v[7];
|
||
|
data[offset + 10] = v[8];
|
||
|
`,mat4:`
|
||
|
for(var i = 0; i < 16; i++)
|
||
|
{
|
||
|
data[offset + i] = v[i];
|
||
|
}
|
||
|
`},G1={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:16*2,mat3:16*3,mat4:16*4};function F4(t){for(var e=t.map(function(l){return{data:l,offset:0,dataLen:0,dirty:0}}),r=0,n=0,i=0,o=0;o<e.length;o++){var a=e[o];if(r=G1[a.data.type],a.data.size>1&&(r=Math.max(r,16)*a.data.size),a.dataLen=r,n%r!==0&&n<16){var s=n%r%16;n+=s,i+=s}n+r>16?(i=Math.ceil(i/16)*16,a.offset=i,i+=r,n=r):(a.offset=i,n+=r,i+=r)}return i=Math.ceil(i/16)*16,{uboElements:e,size:i}}function L4(t,e){var r=[];for(var n in t)e[n]&&r.push(e[n]);return r.sort(function(i,o){return i.index-o.index}),r}function M4(t,e){if(!t.autoManage)return{size:0,syncFunc:O4};for(var r=L4(t.uniforms,e),n=F4(r),i=n.uboElements,o=n.size,a=[`
|
||
|
var v = null;
|
||
|
var v2 = null;
|
||
|
var cv = null;
|
||
|
var t = 0;
|
||
|
var gl = renderer.gl
|
||
|
var index = 0;
|
||
|
var data = buffer.data;
|
||
|
`],s=0;s<i.length;s++){for(var l=i[s],u=t.uniforms[l.data.name],c=l.data.name,f=!1,h=0;h<ya.length;h++){var d=ya[h];if(d.codeUbo&&d.test(l.data,u)){a.push("offset = "+l.offset/4+";",ya[h].codeUbo(l.data.name,u)),f=!0;break}}if(!f)if(l.data.size>1){var p=M1(l.data.type),v=Math.max(G1[l.data.type]/16,1),m=p/v,y=(4-m%4)%4;a.push(`
|
||
|
cv = ud.`+c+`.value;
|
||
|
v = uv.`+c+`;
|
||
|
offset = `+l.offset/4+`;
|
||
|
|
||
|
t = 0;
|
||
|
|
||
|
for(var i=0; i < `+l.data.size*v+`; i++)
|
||
|
{
|
||
|
for(var j = 0; j < `+m+`; j++)
|
||
|
{
|
||
|
data[offset++] = v[t++];
|
||
|
}
|
||
|
offset += `+y+`;
|
||
|
}
|
||
|
|
||
|
`)}else{var g=U4[l.data.type];a.push(`
|
||
|
cv = ud.`+c+`.value;
|
||
|
v = uv.`+c+`;
|
||
|
offset = `+l.offset/4+`;
|
||
|
`+g+`;
|
||
|
`)}}return a.push(`
|
||
|
renderer.buffer.update(buffer);
|
||
|
`),{size:o,syncFunc:new Function("ud","uv","renderer","syncData","buffer",a.join(`
|
||
|
`))}}var B4=function(){function t(e,r){this.program=e,this.uniformData=r,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return t.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},t}();function k4(t,e){for(var r={},n=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES),i=0;i<n;i++){var o=e.getActiveAttrib(t,i);if(o.name.indexOf("gl_")!==0){var a=B1(e,o.type),s={type:a,name:o.name,size:M1(a),location:e.getAttribLocation(t,o.name)};r[o.name]=s}}return r}function G4(t,e){for(var r={},n=e.getProgramParameter(t,e.ACTIVE_UNIFORMS),i=0;i<n;i++){var o=e.getActiveUniform(t,i),a=o.name.replace(/\[.*?\]$/,""),s=!!o.name.match(/\[.*?\]$/),l=B1(e,o.type);r[a]={name:a,index:i,type:l,size:o.size,isArray:s,value:F1(l,o.size)}}return r}function D4(t,e){var r=km(t,t.VERTEX_SHADER,e.vertexSrc),n=km(t,t.FRAGMENT_SHADER,e.fragmentSrc),i=t.createProgram();if(t.attachShader(i,r),t.attachShader(i,n),t.linkProgram(i),t.getProgramParameter(i,t.LINK_STATUS)||l4(t,i,r,n),e.attributeData=k4(i,t),e.uniformData=G4(i,t),!/^[ \t]*#[ \t]*version[ \t]+300[ \t]+es[ \t]*$/m.test(e.vertexSrc)){var o=Object.keys(e.attributeData);o.sort(function(c,f){return c>f?1:-1});for(var a=0;a<o.length;a++)e.attributeData[o[a]].location=a,t.bindAttribLocation(i,a,o[a]);t.linkProgram(i)}t.deleteShader(r),t.deleteShader(n);var s={};for(var a in e.uniformData){var l=e.uniformData[a];s[a]={location:t.getUniformLocation(i,a),value:F1(l.type,l.size)}}var u=new B4(i,s);return u}var H4=0,$l={textureCount:0,uboCount:0},V4=function(){function t(e){this.destroyed=!1,this.renderer=e,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=H4++}return t.prototype.systemCheck=function(){if(!y4())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")},t.prototype.contextChange=function(e){this.gl=e,this.reset()},t.prototype.bind=function(e,r){e.uniforms.globals=this.renderer.globalUniforms;var n=e.program,i=n.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(e);return this.shader=e,this.program!==n&&(this.program=n,this.gl.useProgram(i.program)),r||($l.textureCount=0,$l.uboCount=0,this.syncUniformGroup(e.uniformGroup,$l)),i},t.prototype.setUniforms=function(e){var r=this.shader.program,n=r.glPrograms[this.renderer.CONTEXT_UID];r.syncUniforms(n.uniformData,e,this.renderer)},t.prototype.syncUniformGroup=function(e,r){var n=this.getGlProgram();(!e.static||e.dirtyId!==n.uniformDirtyGroups[e.id])&&(n.uniformDirtyGroups[e.id]=e.dirtyId,this.syncUniforms(e,n,r))},t.prototype.syncUniforms=function(e,r,n){var i=e.syncUniforms[this.shader.program.id]||this.createSyncGroups(e);i(r.uniformData,e.uniforms,this.renderer,n)},t.prototype.createSyncGroups=function(e){var r=this.getSignature(e,this.shader.program.uniformData,"u");return this.cache[r]||(this.cache[r]=p4(e,this.shader.program.uniformData)),e.syncUniforms[this.shader.program.id]=this.cache[r],e.syncUniforms[this.shader.program.id]},t.prototype.syncUniformBufferGroup=function(e,r){var n=this.getGlProgram();if(!e.static||e.dirtyId!==0||!n.uniformGroups[e.id]){e.dirtyId=0;var i=n.uniformGroups[e.id]||this.createSyncBufferGroup(e,n,r);e.buffer.update(),i(n.uniformData,e.uniforms,this.renderer,$l,e.buffer)}this.renderer.buffer.bindBufferBase(e.buffer,n.uniformBufferBindings[r])},t.prototype.createSyncBufferGroup=function(e,r,n){var i=this.renderer.gl;this.renderer.buffer.bind(e.buffer);var o=this.gl.getUniformBlockIndex(r.program,n);r.uniformBufferBindings[n]=this.shader.uniformBindCount,i.uniformBlockBinding(r.program,o,this.shader.uniformBindCount),this.shader.uniformBindCount++;var a=this.getSignature(e,this.shader.program.uniformData,"ubo"),s=this._uboCache[a];if(s||(s=this._uboCache[a]=M4(e,this.shader.program.uniformData)),e.autoManage){var l=new Float32Array(s.size/4);e.buffer.update(l)}return r.uniformGroups[e.id]=s.syncFunc,r.uniformGroups[e.id]},t.prototype.getSignature=function(e,r,n
|
||
|
attribute vec2 aTextureCoord;
|
||
|
|
||
|
uniform mat3 projectionMatrix;
|
||
|
|
||
|
varying vec2 vTextureCoord;
|
||
|
|
||
|
void main(void)
|
||
|
{
|
||
|
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
vTextureCoord = aTextureCoord;
|
||
|
}`,oU=`attribute vec2 aVertexPosition;
|
||
|
|
||
|
uniform mat3 projectionMatrix;
|
||
|
|
||
|
varying vec2 vTextureCoord;
|
||
|
|
||
|
uniform vec4 inputSize;
|
||
|
uniform vec4 outputFrame;
|
||
|
|
||
|
vec4 filterVertexPosition( void )
|
||
|
{
|
||
|
vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;
|
||
|
|
||
|
return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
|
||
|
}
|
||
|
|
||
|
vec2 filterTextureCoord( void )
|
||
|
{
|
||
|
return aVertexPosition * (outputFrame.zw * inputSize.zw);
|
||
|
}
|
||
|
|
||
|
void main(void)
|
||
|
{
|
||
|
gl_Position = filterVertexPosition();
|
||
|
vTextureCoord = filterTextureCoord();
|
||
|
}
|
||
|
`,aU=iU,D1=oU,Mh=function(){function t(){this.texArray=null,this.blend=0,this.type=_n.TRIANGLES,this.start=0,this.size=0,this.data=null}return t}(),Bh=function(){function t(){this.elements=[],this.ids=[],this.count=0}return t.prototype.clear=function(){for(var e=0;e<this.count;e++)this.elements[e]=null;this.count=0},t}(),kh=function(){function t(e){typeof e=="number"?this.rawBinaryData=new ArrayBuffer(e):e instanceof Uint8Array?this.rawBinaryData=e.buffer:this.rawBinaryData=e,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData)}return Object.defineProperty(t.prototype,"int8View",{get:function(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uint8View",{get:function(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"int16View",{get:function(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uint16View",{get:function(){return this._uint16View||(this._uint16View=new Uint16Array(this.rawBinaryData)),this._uint16View},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"int32View",{get:function(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View},enumerable:!1,configurable:!0}),t.prototype.view=function(e){return this[e+"View"]},t.prototype.destroy=function(){this.rawBinaryData=null,this._int8View=null,this._uint8View=null,this._int16View=null,this._uint16View=null,this._int32View=null,this.uint32View=null,this.float32View=null},t.sizeOf=function(e){switch(e){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw new Error(e+" isn't a valid view type")}},t}(),sU=function(t){Fe(e,t);function e(r){var n=t.call(this,r)||this;return n.shaderGenerator=null,n.geometryClass=null,n.vertexSize=null,n.state=Do.for2d(),n.size=Ft.SPRITE_BATCH_SIZE*4,n._vertexCount=0,n._indexCount=0,n._bufferedElements=[],n._bufferedTextures=[],n._bufferSize=0,n._shader=null,n._packedGeometries=[],n._packedGeometryPoolSize=2,n._flushId=0,n._aBuffers={},n._iBuffers={},n.MAX_TEXTURES=1,n.renderer.on("prerender",n.onPrerender,n),r.runners.contextChange.add(n),n._dcIndex=0,n._aIndex=0,n._iIndex=0,n._attributeBuffer=null,n._indexBuffer=null,n._tempBoundTextures=[],n}return e.prototype.contextChange=function(){var r=this.renderer.gl;Ft.PREFER_ENV===di.WEBGL_LEGACY?this.MAX_TEXTURES=1:(this.MAX_TEXTURES=Math.min(r.getParameter(r.MAX_TEXTURE_IMAGE_UNITS),Ft.SPRITE_MAX_TEXTURES),this.MAX_TEXTURES=g4(this.MAX_TEXTURES,r)),this._shader=this.shaderGenerator.generateShader(this.MAX_TEXTURES);for(var n=0;n<this._packedGeometryPoolSize;n++)this._packedGeometries[n]=new this.geometryClass;this.initFlushBuffers()},e.prototype.initFlushBuffers=function(){for(var r=e._drawCallPool,n=e._textureArrayPool,i=this.size/4,o=Math.floor(i/this.MAX_TEXTURES)+1;r.length<i;)r.push(new Mh);for(;n.length<o;)n.push(new Bh);for(var a=0;a<this.MAX_TEXTURES;a++)this._tempBoundTextures[a]=null},e.prototype.onPrerender=function(){this._flushId=0},e.prototype.render=function(r){!r._texture.valid||(this._vertexCount+r.vertexData.length/2>this.size&&this.flush(),this._vertexCount+=r.vertexData.length/2,this._indexCount+=r.indices.length,this._bufferedTextures[this._bufferSize]=r._texture.baseTexture,this._bufferedElements[this._bufferSize++]=r)},e.prototype.buildTexturesAndDrawCalls=function(){var r=this,n=r._bufferedTextures,i=r.MAX_TEXTURES,o=e._textureArrayPool,a=this.renderer.batch,s=this._tempBoundTextures,l=this.renderer.textureGC.count,u=++ge._globalBatch,c=0,f=o[0],h=0;a.copyBoundTextures(s,i);for(var d=0;d<this._bufferSize;++d){var p=n[d];n[d]=null,p._batchEnabled!==u&&(f.count>=i&&(a.boundArray(f,s,u,i),this.buildDrawCalls(f,h,d),h=d,f=o[++c],++u),p._batchEnabled=u,p.touched=l,
|
||
|
`,r+=`
|
||
|
`;for(var n=0;n<e;n++)n>0&&(r+=`
|
||
|
else `),n<e-1&&(r+="if(vTextureId < "+n+".5)"),r+=`
|
||
|
{`,r+=`
|
||
|
color = texture2D(uSamplers[`+n+"], vTextureCoord);",r+=`
|
||
|
}`;return r+=`
|
||
|
`,r+=`
|
||
|
`,r},t}(),H1=function(t){Fe(e,t);function e(r){r===void 0&&(r=!1);var n=t.call(this)||this;return n._buffer=new hr(null,r,!1),n._indexBuffer=new hr(null,r,!0),n.addAttribute("aVertexPosition",n._buffer,2,!1,Mt.FLOAT).addAttribute("aTextureCoord",n._buffer,2,!1,Mt.FLOAT).addAttribute("aColor",n._buffer,4,!0,Mt.UNSIGNED_BYTE).addAttribute("aTextureId",n._buffer,1,!0,Mt.FLOAT).addIndex(n._indexBuffer),n}return e}(cl),jm=`precision highp float;
|
||
|
attribute vec2 aVertexPosition;
|
||
|
attribute vec2 aTextureCoord;
|
||
|
attribute vec4 aColor;
|
||
|
attribute float aTextureId;
|
||
|
|
||
|
uniform mat3 projectionMatrix;
|
||
|
uniform mat3 translationMatrix;
|
||
|
uniform vec4 tint;
|
||
|
|
||
|
varying vec2 vTextureCoord;
|
||
|
varying vec4 vColor;
|
||
|
varying float vTextureId;
|
||
|
|
||
|
void main(void){
|
||
|
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
||
|
vTextureCoord = aTextureCoord;
|
||
|
vTextureId = aTextureId;
|
||
|
vColor = aColor * tint;
|
||
|
}
|
||
|
`,Xm=`varying vec2 vTextureCoord;
|
||
|
varying vec4 vColor;
|
||
|
varying float vTextureId;
|
||
|
uniform sampler2D uSamplers[%count%];
|
||
|
|
||
|
void main(void){
|
||
|
vec4 color;
|
||
|
%forloop%
|
||
|
gl_FragColor = color * vColor;
|
||
|
}
|
||
|
`,uU=function(){function t(){}return t.create=function(e){var r=Object.assign({vertex:jm,fragment:Xm,geometryClass:H1,vertexSize:6},e),n=r.vertex,i=r.fragment,o=r.vertexSize,a=r.geometryClass;return function(s){Fe(l,s);function l(u){var c=s.call(this,u)||this;return c.shaderGenerator=new lU(n,i),c.geometryClass=a,c.vertexSize=o,c}return l}(sU)},Object.defineProperty(t,"defaultVertexSrc",{get:function(){return jm},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultFragmentTemplate",{get:function(){return Xm},enumerable:!1,configurable:!0}),t}(),cU=uU.create();/*!
|
||
|
* @pixi/display - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/display is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/Ft.SORTABLE_CHILDREN=!1;var Vs=function(){function t(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}return t.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},t.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},t.prototype.getRectangle=function(e){return this.minX>this.maxX||this.minY>this.maxY?fe.EMPTY:(e=e||new fe(0,0,1,1),e.x=this.minX,e.y=this.minY,e.width=this.maxX-this.minX,e.height=this.maxY-this.minY,e)},t.prototype.addPoint=function(e){this.minX=Math.min(this.minX,e.x),this.maxX=Math.max(this.maxX,e.x),this.minY=Math.min(this.minY,e.y),this.maxY=Math.max(this.maxY,e.y)},t.prototype.addPointMatrix=function(e,r){var n=e.a,i=e.b,o=e.c,a=e.d,s=e.tx,l=e.ty,u=n*r.x+o*r.y+s,c=i*r.x+a*r.y+l;this.minX=Math.min(this.minX,u),this.maxX=Math.max(this.maxX,u),this.minY=Math.min(this.minY,c),this.maxY=Math.max(this.maxY,c)},t.prototype.addQuad=function(e){var r=this.minX,n=this.minY,i=this.maxX,o=this.maxY,a=e[0],s=e[1];r=a<r?a:r,n=s<n?s:n,i=a>i?a:i,o=s>o?s:o,a=e[2],s=e[3],r=a<r?a:r,n=s<n?s:n,i=a>i?a:i,o=s>o?s:o,a=e[4],s=e[5],r=a<r?a:r,n=s<n?s:n,i=a>i?a:i,o=s>o?s:o,a=e[6],s=e[7],r=a<r?a:r,n=s<n?s:n,i=a>i?a:i,o=s>o?s:o,this.minX=r,this.minY=n,this.maxX=i,this.maxY=o},t.prototype.addFrame=function(e,r,n,i,o){this.addFrameMatrix(e.worldTransform,r,n,i,o)},t.prototype.addFrameMatrix=function(e,r,n,i,o){var a=e.a,s=e.b,l=e.c,u=e.d,c=e.tx,f=e.ty,h=this.minX,d=this.minY,p=this.maxX,v=this.maxY,m=a*r+l*n+c,y=s*r+u*n+f;h=m<h?m:h,d=y<d?y:d,p=m>p?m:p,v=y>v?y:v,m=a*i+l*n+c,y=s*i+u*n+f,h=m<h?m:h,d=y<d?y:d,p=m>p?m:p,v=y>v?y:v,m=a*r+l*o+c,y=s*r+u*o+f,h=m<h?m:h,d=y<d?y:d,p=m>p?m:p,v=y>v?y:v,m=a*i+l*o+c,y=s*i+u*o+f,h=m<h?m:h,d=y<d?y:d,p=m>p?m:p,v=y>v?y:v,this.minX=h,this.minY=d,this.maxX=p,this.maxY=v},t.prototype.addVertexData=function(e,r,n){for(var i=this.minX,o=this.minY,a=this.maxX,s=this.maxY,l=r;l<n;l+=2){var u=e[l],c=e[l+1];i=u<i?u:i,o=c<o?c:o,a=u>a?u:a,s=c>s?c:s}this.minX=i,this.minY=o,this.maxX=a,this.maxY=s},t.prototype.addVertices=function(e,r,n,i){this.addVerticesMatrix(e.worldTransform,r,n,i)},t.prototype.addVerticesMatrix=function(e,r,n,i,o,a){o===void 0&&(o=0),a===void 0&&(a=o);for(var s=e.a,l=e.b,u=e.c,c=e.d,f=e.tx,h=e.ty,d=this.minX,p=this.minY,v=this.maxX,m=this.maxY,y=n;y<i;y+=2){var g=r[y],b=r[y+1],T=s*g+u*b+f,w=c*b+l*g+h;d=Math.min(d,T-o),v=Math.max(v,T+o),p=Math.min(p,w-a),m=Math.max(m,w+a)}this.minX=d,this.minY=p,this.maxX=v,this.maxY=m},t.prototype.addBounds=function(e){var r=this.minX,n=this.minY,i=this.maxX,o=this.maxY;this.minX=e.minX<r?e.minX:r,this.minY=e.minY<n?e.minY:n,this.maxX=e.maxX>i?e.maxX:i,this.maxY=e.maxY>o?e.maxY:o},t.prototype.addBoundsMask=function(e,r){var n=e.minX>r.minX?e.minX:r.minX,i=e.minY>r.minY?e.minY:r.minY,o=e.maxX<r.maxX?e.maxX:r.maxX,a=e.maxY<r.maxY?e.maxY:r.maxY;if(n<=o&&i<=a){var s=this.minX,l=this.minY,u=this.maxX,c=this.maxY;this.minX=n<s?n:s,this.minY=i<l?i:l,this.maxX=o>u?o:u,this.maxY=a>c?a:c}},t.prototype.addBoundsMatrix=function(e,r){this.addFrameMatrix(r,e.minX,e.minY,e.maxX,e.maxY)},t.prototype.addBoundsArea=function(e,r){var n=e.minX>r.x?e.minX:r.x,i=e.minY>r.y?e.minY:r.y,o=e.maxX<r.x+r.width?e.maxX:r.x+r.width,a=e.maxY<r.y+r.height?e.maxY:r.y+r.height;if(n<=o&&i<=a){var s=this.minX,l=this.minY,u=this.maxX,c=this.maxY;this.minX=n<s?n:s,this.minY=i<l?i:l,this.maxX=o>u?o:u,this.maxY=a>c?a:c}},t.prototype.pad=function(e,r){e===void 0&&(e=0),r===void 0&&(r=e),this.isEmpty()||(this.minX-=e,this.maxX+=e,this.minY-=r,this.maxY+=r)},t.prototype.addFramePad=function(e,r,n,i,o,a){e-=o,r-=a,n+=o,i+=a,this.minX=this.minX<e?this.minX:e,this.maxX=this.maxX>n?this.maxX:n,this.minY=this.minY<r?this.minY:r,this.maxY=this.maxY>i?this.maxY:i},t}();/*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** */var Gh=function(t,e){return Gh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Gh(t,e)};function mp(t,e){Gh(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var ar=function(t){mp(e,t);function e(){var r=t.call(this)||this;return r.tempDisplayObjectParent=null,r.transform=new pp,r.alpha=1,r.visible=!0,r.renderable=!0,r.cullable=!1,r.cullArea=null,r.parent=null,r.worldAlpha=1,r._lastSortedIndex=0,r._zIndex=0,r.filterArea=null,r.filters=null,r._enabledFilters=null,r._bounds=new Vs,r._localBounds=null,r._boundsID=0,r._boundsRect=null,r._localBoundsRect=null,r._mask=null,r._maskRefCount=0,r._destroyed=!1,r.isSprite=!1,r.isMask=!1,r}return e.mixin=function(r){for(var n=Object.keys(r),i=0;i<n.length;++i){var o=n[i];Object.defineProperty(e.prototype,o,Object.getOwnPropertyDescriptor(r,o))}},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!1,configurable:!0}),e.prototype._recursivePostUpdateTransform=function(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)},e.prototype.updateTransform=function(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha},e.prototype.getBounds=function(r,n){return r||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),n||(this._boundsRect||(this._boundsRect=new fe),n=this._boundsRect),this._bounds.getRectangle(n)},e.prototype.getLocalBounds=function(r){r||(this._localBoundsRect||(this._localBoundsRect=new fe),r=this._localBoundsRect),this._localBounds||(this._localBounds=new Vs);var n=this.transform,i=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform;var o=this._bounds,a=this._boundsID;this._bounds=this._localBounds;var s=this.getBounds(!1,r);return this.parent=i,this.transform=n,this._bounds=o,this._bounds.updateID+=this._boundsID-a,s},e.prototype.toGlobal=function(r,n,i){return i===void 0&&(i=!1),i||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(r,n)},e.prototype.toLocal=function(r,n,i,o){return n&&(r=n.toGlobal(r,i,o)),o||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(r,i)},e.prototype.setParent=function(r){if(!r||!r.addChild)throw new Error("setParent: Argument must be a Container");return r.addChild(this),r},e.prototype.setTransform=function(r,n,i,o,a,s,l,u,c){return r===void 0&&(r=0),n===void 0&&(n=0),i===void 0&&(i=1),o===void 0&&(o=1),a===void 0&&(a=0),s===void 0&&(s=0),l===void 0&&(l=0),u===void 0&&(u=0),c===void 0&&(c=0),this.position.x=r,this.position.y=n,this.scale.x=i||1,this.scale.y=o||1,this.rotation=a,this.skew.x=s,this.skew.y=l,this.pivot.x=u,this.pivot.y=c,this},e.prototype.destroy=function(r){this.parent&&this.parent.removeChild(this),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.interactive=!1,this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()},Object.defineProperty(e.prototype,"_tempDisplayObjectParent",{get:function(){return this.tempDisplayObjectParent===null&&(this.tempDisplayObjectParent=new V1),this.tempDisplayObjectParent},enumerable:!1,configurable:!0}),e.prototype.enableTempPar
|
||
|
* @pixi/constants - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/constants is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/var zm;(function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"})(zm||(zm={}));var Wm;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"})(Wm||(Wm={}));var Ym;(function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"})(Ym||(Ym={}));var Km;(function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"})(Km||(Km={}));var Zm;(function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(Zm||(Zm={}));var qm;(function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(qm||(qm={}));var Jm;(function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(Jm||(Jm={}));var Qm;(function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"})(Qm||(Qm={}));var tg;(function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"})(tg||(tg={}));var eg;(function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"})(eg||(eg={}));var rg;(function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(rg||(rg={}));var ng;(function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"})(ng||(ng={}));var ig;(function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(ig||(ig={}));var og;(function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BL
|
||
|
* @pixi/sprite - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/sprite is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*//*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** */var Hh=function(t,e){return Hh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Hh(t,e)};function hU(t,e){Hh(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Wa=new _e,dU=new Uint16Array([0,1,2,0,2,3]),La=function(t){hU(e,t);function e(r){var n=t.call(this)||this;return n._anchor=new ua(n._onAnchorUpdate,n,r?r.defaultAnchor.x:0,r?r.defaultAnchor.y:0),n._texture=null,n._width=0,n._height=0,n._tint=null,n._tintRGB=null,n.tint=16777215,n.blendMode=Ut.NORMAL,n._cachedTint=16777215,n.uvs=null,n.texture=r||Wt.EMPTY,n.vertexData=new Float32Array(8),n.vertexTrimmedData=null,n._transformID=-1,n._textureID=-1,n._transformTrimmedID=-1,n._textureTrimmedID=-1,n.indices=dU,n.pluginName="batch",n.isSprite=!0,n._roundPixels=Ft.ROUND_PIXELS,n}return e.prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=la(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=la(this.scale.y)*this._height/this._texture.orig.height)},e.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},e.prototype.calculateVertices=function(){var r=this._texture;if(!(this._transformID===this.transform._worldID&&this._textureID===r._updateID)){this._textureID!==r._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=r._updateID;var n=this.transform.worldTransform,i=n.a,o=n.b,a=n.c,s=n.d,l=n.tx,u=n.ty,c=this.vertexData,f=r.trim,h=r.orig,d=this._anchor,p=0,v=0,m=0,y=0;if(f?(v=f.x-d._x*h.width,p=v+f.width,y=f.y-d._y*h.height,m=y+f.height):(v=-d._x*h.width,p=v+h.width,y=-d._y*h.height,m=y+h.height),c[0]=i*v+a*y+l,c[1]=s*y+o*v+u,c[2]=i*p+a*y+l,c[3]=s*y+o*p+u,c[4]=i*p+a*m+l,c[5]=s*m+o*p+u,c[6]=i*v+a*m+l,c[7]=s*m+o*v+u,this._roundPixels)for(var g=Ft.RESOLUTION,b=0;b<c.length;++b)c[b]=Math.round((c[b]*g|0)/g)}},e.prototype.calculateTrimmedVertices=function(){if(!this.vertexTrimmedData)this.vertexTrimmedData=new Float32Array(8);else if(this._transformTrimmedID===this.transform._worldID&&this._textureTrimmedID===this._texture._updateID)return;this._transformTrimmedID=this.transform._worldID,this._textureTrimmedID=this._texture._updateID;var r=this._texture,n=this.vertexTrimmedData,i=r.orig,o=this._anchor,a=this.transform.worldTransform,s=a.a,l=a.b,u=a.c,c=a.d,f=a.tx,h=a.ty,d=-o._x*i.width,p=d+i.width,v=-o._y*i.height,m=v+i.height;n[0]=s*d+u*v+f,n[1]=c*v+l*d+h,n[2]=s*p+u*v+f,n[3]=c*v+l*p+h,n[4]=s*p+u*m+f,n[5]=c*m+l*p+h,n[6]=s*d+u*m+f,n[7]=c*m+l*d+h},e.prototype._render=function(r){this.calculateVertices(),r.batch.setObjectRenderer(r.plugins[this.pluginName]),r.plugins[this.pluginName].render(this)},e.prototype._calculateBounds=function(){var r=this._texture.trim,n=this._texture.orig;!r||r.width===n.width&&r.height===n.height?(this.calculateVertices(),this._bounds.addQuad(this.vertexData)):(this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData))},e.prototype.getLocalBounds=function(r){return this.children.length===0?(this._localBounds||(this._localBounds=new Vs),this._localBounds.minX=this._texture.orig.width*-this._anchor._x,this._localBounds.minY=this._texture.orig.height*-this._anchor._y,this._localBounds.maxX=this._texture.orig.width*(1-this._anchor._x),this._localBounds.maxY=this._texture.orig.height*(1-this._anchor._y),r||(this._localBoundsRect||(this._localBoundsRect=new fe),r=this._localBoundsRect),this._localBounds.getRectangle(r)):t.prototype.getLocalBounds.call(this,r)},e.prototype.containsPoint=function(r){this.worldTransform.applyInverse(r,Wa);var n=this._texture.orig.width,i=this._texture.orig.height,o=-n*this.anchor.x,a=0;return Wa.x>=o&&Wa.x<o+n&&(a=-i*this.anchor.y,Wa.y>=a&&Wa.y<a+i)},e.prototype.destroy=function(r){t.prototype.destroy.call(this,r),this._texture.off("update",this._onTextureUpdate,this),this._anc
|
||
|
* @pixi/particle-emitter - v5.0.7
|
||
|
* Compiled Fri, 27 May 2022 02:00:12 UTC
|
||
|
*
|
||
|
* @pixi/particle-emitter is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/class Ln{constructor(e,r,n){this.value=e,this.time=r,this.next=null,this.isStepped=!1,n?this.ease=typeof n=="function"?n:X1(n):this.ease=null}static createList(e){if("list"in e){const n=e.list;let i;const{value:o,time:a}=n[0],s=i=new Ln(typeof o=="string"?jl(o):o,a,e.ease);if(n.length>2||n.length===2&&n[1].value!==o)for(let l=1;l<n.length;++l){const{value:u,time:c}=n[l];i.next=new Ln(typeof u=="string"?jl(u):u,c),i=i.next}return s.isStepped=!!e.isStepped,s}const r=new Ln(typeof e.start=="string"?jl(e.start):e.start,0);return e.end!==e.start&&(r.next=new Ln(typeof e.end=="string"?jl(e.end):e.end,1)),r}}let $s=Wt.from;const An=Math.PI/180;function ci(t,e){if(!t)return;const r=Math.sin(t),n=Math.cos(t),i=e.x*n-e.y*r,o=e.x*r+e.y*n;e.x=i,e.y=o}function wc(t,e,r){return t<<16|e<<8|r}function $1(t){return Math.sqrt(t.x*t.x+t.y*t.y)}function pU(t){const e=1/$1(t);t.x*=e,t.y*=e}function j1(t,e){t.x*=e,t.y*=e}function jl(t,e){e||(e={}),t.charAt(0)==="#"?t=t.substr(1):t.indexOf("0x")===0&&(t=t.substr(2));let r;return t.length===8&&(r=t.substr(0,2),t=t.substr(2)),e.r=parseInt(t.substr(0,2),16),e.g=parseInt(t.substr(2,2),16),e.b=parseInt(t.substr(4,2),16),r&&(e.a=parseInt(r,16)),e}function X1(t){const e=t.length,r=1/e;return function(n){const i=e*n|0,o=(n-i*r)*e,a=t[i]||t[e-1];return a.s+o*(2*(1-o)*(a.cp-a.s)+o*(a.e-a.s))}}function vU(t){return t?(t=t.toUpperCase().replace(/ /g,"_"),Ut[t]||Ut.NORMAL):Ut.NORMAL}class pf extends La{constructor(e){super(),this.prevChild=this.nextChild=null,this.emitter=e,this.config={},this.anchor.x=this.anchor.y=.5,this.maxLife=0,this.age=0,this.agePercent=0,this.oneOverLife=0,this.next=null,this.prev=null,this.init=this.init,this.kill=this.kill}init(e){this.maxLife=e,this.age=this.agePercent=0,this.rotation=0,this.position.x=this.position.y=0,this.scale.x=this.scale.y=1,this.tint=16777215,this.alpha=1,this.oneOverLife=1/this.maxLife,this.visible=!0}kill(){this.emitter.recycle(this)}destroy(){this.parent&&this.parent.removeChild(this),this.emitter=this.next=this.prev=null,super.destroy()}}var Ue;(function(t){t[t.Spawn=0]="Spawn",t[t.Normal=2]="Normal",t[t.Late=5]="Late"})(Ue||(Ue={}));const vf=gr.shared,so=Symbol("Position particle per emitter position");class Ce{constructor(e,r){this.initBehaviors=[],this.updateBehaviors=[],this.recycleBehaviors=[],this.minLifetime=0,this.maxLifetime=0,this.customEase=null,this._frequency=1,this.spawnChance=1,this.maxParticles=1e3,this.emitterLifetime=-1,this.spawnPos=new _e,this.particlesPerWave=1,this.rotation=0,this.ownerPos=new _e,this._prevEmitterPos=new _e,this._prevPosIsValid=!1,this._posChanged=!1,this._parent=null,this.addAtBack=!1,this.particleCount=0,this._emit=!1,this._spawnTimer=0,this._emitterLife=-1,this._activeParticlesFirst=null,this._activeParticlesLast=null,this._poolFirst=null,this._origConfig=null,this._autoUpdate=!1,this._destroyWhenComplete=!1,this._completeCallback=null,this.parent=e,r&&this.init(r),this.recycle=this.recycle,this.update=this.update,this.rotate=this.rotate,this.updateSpawnPos=this.updateSpawnPos,this.updateOwnerPos=this.updateOwnerPos}static registerBehavior(e){Ce.knownBehaviors[e.type]=e}get frequency(){return this._frequency}set frequency(e){typeof e=="number"&&e>0?this._frequency=e:this._frequency=1}get parent(){return this._parent}set parent(e){this.cleanup(),this._parent=e}init(e){if(!e)return;this.cleanup(),this._origConfig=e,this.minLifetime=e.lifetime.min,this.maxLifetime=e.lifetime.max,e.ease?this.customEase=typeof e.ease=="function"?e.ease:X1(e.ease):this.customEase=null,this.particlesPerWave=1,e.particlesPerWave&&e.particlesPerWave>1&&(this.particlesPerWave=e.particlesPerWave),this.frequency=e.frequency,this.spawnChance=typeof e.spawnChance=="number"&&e.spawnChance>0?e.spawnChance:1,this.emitterLifetime=e.emitterLifetime||-1,this.maxParticles=e.maxParticles>0?e.maxParticles:1e3,this.addAtBack=!!e.addAtBack,this.rotation=0,this.ownerPos.set(0),e.pos?this.spawnPos.copyFrom(e.pos):this.spawnPos.set(0),this._prevEmitterPos.copyFrom(this.spawnPos),this._prevPosIsValid=!1,this._spawnTimer=0,this.emit=e.emit===void 0?!0:
|
||
|
object-assign
|
||
|
(c) Sindre Sorhus
|
||
|
@license MIT
|
||
|
*/var cg=Object.getOwnPropertySymbols,AU=Object.prototype.hasOwnProperty,OU=Object.prototype.propertyIsEnumerable;function UU(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function FU(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(e).map(function(o){return e[o]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var LU=FU()?Object.assign:function(t,e){for(var r,n=UU(t),i,o=1;o<arguments.length;o++){r=Object(arguments[o]);for(var a in r)AU.call(r,a)&&(n[a]=r[a]);if(cg){i=cg(r);for(var s=0;s<i.length;s++)OU.call(r,i[s])&&(n[i[s]]=r[i[s]])}}return n};/*!
|
||
|
* @pixi/polyfill - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/polyfill is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/typeof globalThis=="undefined"&&(typeof self!="undefined"?self.globalThis=self:typeof global!="undefined"&&(global.globalThis=global));globalThis.Promise||(globalThis.Promise=tr);Object.assign||(Object.assign=LU);var MU=16;Date.now&&Date.prototype.getTime||(Date.now=function(){return new Date().getTime()});if(!(globalThis.performance&&globalThis.performance.now)){var BU=Date.now();globalThis.performance||(globalThis.performance={}),globalThis.performance.now=function(){return Date.now()-BU}}var mf=Date.now(),fg=["ms","moz","webkit","o"];for(var gf=0;gf<fg.length&&!globalThis.requestAnimationFrame;++gf){var yf=fg[gf];globalThis.requestAnimationFrame=globalThis[yf+"RequestAnimationFrame"],globalThis.cancelAnimationFrame=globalThis[yf+"CancelAnimationFrame"]||globalThis[yf+"CancelRequestAnimationFrame"]}globalThis.requestAnimationFrame||(globalThis.requestAnimationFrame=function(t){if(typeof t!="function")throw new TypeError(t+"is not a function");var e=Date.now(),r=MU+mf-e;return r<0&&(r=0),mf=e,globalThis.self.setTimeout(function(){mf=Date.now(),t(performance.now())},r)});globalThis.cancelAnimationFrame||(globalThis.cancelAnimationFrame=function(t){return clearTimeout(t)});Math.sign||(Math.sign=function(e){return e=Number(e),e===0||isNaN(e)?e:e>0?1:-1});Number.isInteger||(Number.isInteger=function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e});globalThis.ArrayBuffer||(globalThis.ArrayBuffer=Array);globalThis.Float32Array||(globalThis.Float32Array=Array);globalThis.Uint32Array||(globalThis.Uint32Array=Array);globalThis.Uint16Array||(globalThis.Uint16Array=Array);globalThis.Uint8Array||(globalThis.Uint8Array=Array);globalThis.Int32Array||(globalThis.Int32Array=Array);/*!
|
||
|
* @pixi/accessibility - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/accessibility is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/var kU={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:null,accessibleType:"button",accessiblePointerEvents:"auto",accessibleChildren:!0,renderId:-1};ar.mixin(kU);var GU=9,Xl=100,DU=0,HU=0,hg=2,dg=1,VU=-1e3,$U=-1e3,jU=2,XU=function(){function t(e){this.debug=!1,this._isActive=!1,this._isMobileAccessibility=!1,this.pool=[],this.renderId=0,this.children=[],this.androidUpdateCount=0,this.androidUpdateFrequency=500,this._hookDiv=null,(Un.tablet||Un.phone)&&this.createTouchHook();var r=document.createElement("div");r.style.width=Xl+"px",r.style.height=Xl+"px",r.style.position="absolute",r.style.top=DU+"px",r.style.left=HU+"px",r.style.zIndex=hg.toString(),this.div=r,this.renderer=e,this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),globalThis.addEventListener("keydown",this._onKeyDown,!1)}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this._isActive},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMobileAccessibility",{get:function(){return this._isMobileAccessibility},enumerable:!1,configurable:!0}),t.prototype.createTouchHook=function(){var e=this,r=document.createElement("button");r.style.width=dg+"px",r.style.height=dg+"px",r.style.position="absolute",r.style.top=VU+"px",r.style.left=$U+"px",r.style.zIndex=jU.toString(),r.style.backgroundColor="#FF0000",r.title="select to enable accessibility for this content",r.addEventListener("focus",function(){e._isMobileAccessibility=!0,e.activate(),e.destroyTouchHook()}),document.body.appendChild(r),this._hookDiv=r},t.prototype.destroyTouchHook=function(){!this._hookDiv||(document.body.removeChild(this._hookDiv),this._hookDiv=null)},t.prototype.activate=function(){var e;this._isActive||(this._isActive=!0,globalThis.document.addEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),(e=this.renderer.view.parentNode)===null||e===void 0||e.appendChild(this.div))},t.prototype.deactivate=function(){var e;!this._isActive||this._isMobileAccessibility||(this._isActive=!1,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),(e=this.div.parentNode)===null||e===void 0||e.removeChild(this.div))},t.prototype.updateAccessibleObjects=function(e){if(!(!e.visible||!e.accessibleChildren)){e.accessible&&e.interactive&&(e._accessibleActive||this.addChild(e),e.renderId=this.renderId);var r=e.children;if(r)for(var n=0;n<r.length;n++)this.updateAccessibleObjects(r[n])}},t.prototype.update=function(){var e=performance.now();if(!(Un.android.device&&e<this.androidUpdateCount)&&(this.androidUpdateCount=e+this.androidUpdateFrequency,!!this.renderer.renderingToScreen)){this.renderer._lastObjectRendered&&this.updateAccessibleObjects(this.renderer._lastObjectRendered);var r=this.renderer.view.getBoundingClientRect(),n=r.left,i=r.top,o=r.width,a=r.height,s=this.renderer,l=s.width,u=s.height,c=s.resolution,f=o/l*c,h=a/u*c,d=this.div;d.style.left=n+"px",d.style.top=i+"px",d.style.width=l+"px",d.style.height=u+"px";for(var p=0;p<this.children.length;p++){var v=this.children[p];if(v.renderId!==this.renderId)v._accessibleActive=!1,ui(this.children,p,1),this.div.removeChild(v._accessibleDiv),this.pool.push(v._accessibleDiv),v._accessibleDiv=null,p--;else{d=v._accessibleDiv;var m=v.hitArea,y=v.worldTransform;v.hitArea?(d.style.left=(y.tx+m.x*y.a)*f+"px",d.style.top=(y.ty+m.y*y.d)*h+"px",d.style.width=m.width*y.a*f+"px",d.style.height=m.height*y.d*h+"px"):(m=v.getBounds(),this.capHitArea(m),d.style.left=m.x*f+"px",d.style.top=m.y*h+"px",d.style.width=m.width*f+"px",d.style.height=m.height*h+"px",d.title!==v.accessibleTitle&&v.accessibleTitle!==null&&(d.title=v.accessibleTitle),d.getAttribute("aria-label")!==v.accessibleHint&&v.accessibleHint!==null&&d.setAttribute("aria-label",v.accessibleHint)),(v.accessibleTitle!==d.title||v.tabIndex!==d.tabIndex)&&(d.titl
|
||
|
* @pixi/interaction - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/interaction is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/var pg=function(){function t(){this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0,this.global=new _e,this.target=null,this.originalEvent=null,this.identifier=null,this.isPrimary=!1,this.button=0,this.buttons=0,this.width=0,this.height=0,this.tiltX=0,this.tiltY=0,this.pointerType=null,this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0}return Object.defineProperty(t.prototype,"pointerId",{get:function(){return this.identifier},enumerable:!1,configurable:!0}),t.prototype.getLocalPosition=function(e,r,n){return e.worldTransform.applyInverse(n||this.global,r)},t.prototype.copyEvent=function(e){"isPrimary"in e&&e.isPrimary&&(this.isPrimary=!0),this.button="button"in e&&e.button;var r="buttons"in e&&e.buttons;this.buttons=Number.isInteger(r)?r:"which"in e&&e.which,this.width="width"in e&&e.width,this.height="height"in e&&e.height,this.tiltX="tiltX"in e&&e.tiltX,this.tiltY="tiltY"in e&&e.tiltY,this.pointerType="pointerType"in e&&e.pointerType,this.pressure="pressure"in e&&e.pressure,this.rotationAngle="rotationAngle"in e&&e.rotationAngle,this.twist="twist"in e&&e.twist||0,this.tangentialPressure="tangentialPressure"in e&&e.tangentialPressure||0},t.prototype.reset=function(){this.isPrimary=!1},t}();/*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** */var jh=function(t,e){return jh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},jh(t,e)};function zU(t,e){jh(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var WU=function(){function t(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}return t.prototype.stopPropagation=function(){this.stopped=!0,this.stopPropagationHint=!0,this.stopsPropagatingAt=this.currentTarget},t.prototype.reset=function(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.currentTarget=null,this.target=null},t}(),bf=function(){function t(e){this._pointerId=e,this._flags=t.FLAGS.NONE}return t.prototype._doSet=function(e,r){r?this._flags=this._flags|e:this._flags=this._flags&~e},Object.defineProperty(t.prototype,"pointerId",{get:function(){return this._pointerId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"flags",{get:function(){return this._flags},set:function(e){this._flags=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"none",{get:function(){return this._flags===t.FLAGS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"over",{get:function(){return(this._flags&t.FLAGS.OVER)!==0},set:function(e){this._doSet(t.FLAGS.OVER,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightDown",{get:function(){return(this._flags&t.FLAGS.RIGHT_DOWN)!==0},set:function(e){this._doSet(t.FLAGS.RIGHT_DOWN,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftDown",{get:function(){return(this._flags&t.FLAGS.LEFT_DOWN)!==0},set:function(e){this._doSet(t.FLAGS.LEFT_DOWN,e)},enumerable:!1,configurable:!0}),t.FLAGS=Object.freeze({NONE:0,OVER:1<<0,LEFT_DOWN:1<<1,RIGHT_DOWN:1<<2}),t}(),YU=function(){function t(){this._tempPoint=new _e}return t.prototype.recursiveFindHit=function(e,r,n,i,o){if(!r||!r.visible)return!1;var a=e.data.global;o=r.interactive||o;var s=!1,l=o,u=!0;if(r.hitArea?(i&&(r.worldTransform.applyInverse(a,this._tempPoint),r.hitArea.contains(this._tempPoint.x,this._tempPoint.y)?s=!0:(i=!1,u=!1)),l=!1):r._mask&&i&&(r._mask.containsPoint&&r._mask.containsPoint(a)||(i=!1)),u&&r.interactiveChildren&&r.children)for(var c=r.children,f=c.length-1;f>=0;f--){var h=c[f],d=this.recursiveFindHit(e,h,n,i,l);if(d){if(!h.parent)continue;l=!1,d&&(e.target&&(i=!1),s=!0)}}return o&&(i&&!e.target&&!r.hitArea&&r.containsPoint&&r.containsPoint(a)&&(s=!0),r.interactive&&(s&&!e.target&&(e.target=r),n&&n(e,r,!!s))),s},t.prototype.findHit=function(e,r,n,i){this.recursiveFindHit(e,r,n,i,!1)},t}(),KU={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return this.cursor==="pointer"},set buttonMode(t){t?this.cursor="pointer":this.cursor==="pointer"&&(this.cursor=null)},cursor:null,get trackedPointers(){return this._trackedPointers===void 0&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0};ar.mixin(KU);var zl=1,Wl={target:null,data:{global:null}},ZU=function(t){zU(e,t);function e(r,n){var i=t.call(this)||this;return n=n||{},i.renderer=r,i.autoPreventDefault=n.autoPreventDefault!==void 0?n.autoPreventDefault:!0,i.interactionFrequency=n.interactionFrequency||10,i.mouse=new pg,i.mouse.identifier=zl,i.mouse.global.set(-999999),i.activeInteractionData={},i.activeInteractionData[zl]=i.mouse,i.interactionDataPool=[],i.eventData=new WU,i.interactionDOMElement=null,i.moveWhenInside=!1,i.eventsAdded=!1,i.tickerAdded=!1,i.mouseOverRenderer=!("PointerEvent"in globalThis),i.supportsTouchEvents="ontouchstart"in globalThis,i.supportsPointerEvents=!!globalThis.PointerEvent,i.onPointerUp=i.onPointerUp.bind(i),i.processPointerUp=i.processPointerUp.bind(i),i.onPointerCancel=i.onPointerCancel.bind(i),i.processPointerCancel=i.processPointerCancel.bind(i),i.onPointerDown=i.onPointerDown.bind(i),i.processPo
|
||
|
* @pixi/app - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/app is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/var Ic=function(){function t(e){var r=this;this.stage=new jn,e=Object.assign({forceCanvas:!1},e),this.renderer=nU(e),t._plugins.forEach(function(n){n.init.call(r,e)})}return t.registerPlugin=function(e){t._plugins.push(e)},t.prototype.render=function(){this.renderer.render(this.stage)},Object.defineProperty(t.prototype,"view",{get:function(){return this.renderer.view},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"screen",{get:function(){return this.renderer.screen},enumerable:!1,configurable:!0}),t.prototype.destroy=function(e,r){var n=this,i=t._plugins.slice(0);i.reverse(),i.forEach(function(o){o.destroy.call(n)}),this.stage.destroy(r),this.stage=null,this.renderer.destroy(e),this.renderer=null},t._plugins=[],t}(),qU=function(){function t(){}return t.init=function(e){var r=this;Object.defineProperty(this,"resizeTo",{set:function(n){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=n,n&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get:function(){return this._resizeTo}}),this.queueResize=function(){!r._resizeTo||(r.cancelResize(),r._resizeId=requestAnimationFrame(function(){return r.resize()}))},this.cancelResize=function(){r._resizeId&&(cancelAnimationFrame(r._resizeId),r._resizeId=null)},this.resize=function(){if(!!r._resizeTo){r.cancelResize();var n,i;if(r._resizeTo===globalThis.window)n=globalThis.innerWidth,i=globalThis.innerHeight;else{var o=r._resizeTo,a=o.clientWidth,s=o.clientHeight;n=a,i=s}r.renderer.resize(n,i)}},this._resizeId=null,this._resizeTo=null,this.resizeTo=e.resizeTo||null},t.destroy=function(){globalThis.removeEventListener("resize",this.queueResize),this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null},t}();Ic.registerPlugin(qU);/*!
|
||
|
* @pixi/extract - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/extract is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/var _f=/iPhone/i,vg=/iPod/i,mg=/iPad/i,gg=/\biOS-universal(?:.+)Mac\b/i,xf=/\bAndroid(?:.+)Mobile\b/i,yg=/Android/i,zo=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Yl=/Silk/i,qn=/Windows Phone/i,bg=/\bWindows(?:.+)ARM\b/i,_g=/BlackBerry/i,xg=/BB10/i,Tg=/Opera Mini/i,wg=/\b(CriOS|Chrome)(?:.+)Mobile/i,Eg=/Mobile(?:.+)Firefox\b/i,Ig=function(t){return typeof t!="undefined"&&t.platform==="MacIntel"&&typeof t.maxTouchPoints=="number"&&t.maxTouchPoints>1&&typeof MSStream=="undefined"};function JU(t){return function(e){return e.test(t)}}function QU(t){var e={userAgent:"",platform:"",maxTouchPoints:0};!t&&typeof navigator!="undefined"?e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof t=="string"?e.userAgent=t:t&&t.userAgent&&(e={userAgent:t.userAgent,platform:t.platform,maxTouchPoints:t.maxTouchPoints||0});var r=e.userAgent,n=r.split("[FBAN");typeof n[1]!="undefined"&&(r=n[0]),n=r.split("Twitter"),typeof n[1]!="undefined"&&(r=n[0]);var i=JU(r),o={apple:{phone:i(_f)&&!i(qn),ipod:i(vg),tablet:!i(_f)&&(i(mg)||Ig(e))&&!i(qn),universal:i(gg),device:(i(_f)||i(vg)||i(mg)||i(gg)||Ig(e))&&!i(qn)},amazon:{phone:i(zo),tablet:!i(zo)&&i(Yl),device:i(zo)||i(Yl)},android:{phone:!i(qn)&&i(zo)||!i(qn)&&i(xf),tablet:!i(qn)&&!i(zo)&&!i(xf)&&(i(Yl)||i(yg)),device:!i(qn)&&(i(zo)||i(Yl)||i(xf)||i(yg))||i(/\bokhttp\b/i)},windows:{phone:i(qn),tablet:i(bg),device:i(qn)||i(bg)},other:{blackberry:i(_g),blackberry10:i(xg),opera:i(Tg),firefox:i(Eg),chrome:i(wg),device:i(_g)||i(xg)||i(Tg)||i(Eg)||i(wg)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}/*!
|
||
|
* @pixi/settings - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/settings is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/var ca=QU(globalThis.navigator);function t5(t){var e=!0;if(ca.tablet||ca.phone){if(ca.apple.device){var r=navigator.userAgent.match(/OS (\d+)_(\d+)?/);if(r){var n=parseInt(r[1],10);n<11&&(e=!1)}}if(ca.android.device){var r=navigator.userAgent.match(/Android\s([0-9.]*)/);if(r){var n=parseInt(r[1],10);n<7&&(e=!1)}}}return e?t:4}function e5(){return!ca.apple.device}/*!
|
||
|
* @pixi/constants - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/constants is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/var Cg;(function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"})(Cg||(Cg={}));var Rg;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"})(Rg||(Rg={}));var Ng;(function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"})(Ng||(Ng={}));var Pg;(function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"})(Pg||(Pg={}));var Sg;(function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(Sg||(Sg={}));var Ag;(function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(Ag||(Ag={}));var Og;(function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(Og||(Og={}));var Ug;(function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"})(Ug||(Ug={}));var Fg;(function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"})(Fg||(Fg={}));var Xh;(function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"})(Xh||(Xh={}));var zh;(function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(zh||(zh={}));var Wh;(function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"})(Wh||(Wh={}));var Lg;(function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(Lg||(Lg={}));var Mg;(function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BL
|
||
|
* @pixi/display - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/display is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/q1.SORTABLE_CHILDREN=!1;var Gg=function(){function t(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}return t.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},t.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},t.prototype.getRectangle=function(e){return this.minX>this.maxX||this.minY>this.maxY?fe.EMPTY:(e=e||new fe(0,0,1,1),e.x=this.minX,e.y=this.minY,e.width=this.maxX-this.minX,e.height=this.maxY-this.minY,e)},t.prototype.addPoint=function(e){this.minX=Math.min(this.minX,e.x),this.maxX=Math.max(this.maxX,e.x),this.minY=Math.min(this.minY,e.y),this.maxY=Math.max(this.maxY,e.y)},t.prototype.addPointMatrix=function(e,r){var n=e.a,i=e.b,o=e.c,a=e.d,s=e.tx,l=e.ty,u=n*r.x+o*r.y+s,c=i*r.x+a*r.y+l;this.minX=Math.min(this.minX,u),this.maxX=Math.max(this.maxX,u),this.minY=Math.min(this.minY,c),this.maxY=Math.max(this.maxY,c)},t.prototype.addQuad=function(e){var r=this.minX,n=this.minY,i=this.maxX,o=this.maxY,a=e[0],s=e[1];r=a<r?a:r,n=s<n?s:n,i=a>i?a:i,o=s>o?s:o,a=e[2],s=e[3],r=a<r?a:r,n=s<n?s:n,i=a>i?a:i,o=s>o?s:o,a=e[4],s=e[5],r=a<r?a:r,n=s<n?s:n,i=a>i?a:i,o=s>o?s:o,a=e[6],s=e[7],r=a<r?a:r,n=s<n?s:n,i=a>i?a:i,o=s>o?s:o,this.minX=r,this.minY=n,this.maxX=i,this.maxY=o},t.prototype.addFrame=function(e,r,n,i,o){this.addFrameMatrix(e.worldTransform,r,n,i,o)},t.prototype.addFrameMatrix=function(e,r,n,i,o){var a=e.a,s=e.b,l=e.c,u=e.d,c=e.tx,f=e.ty,h=this.minX,d=this.minY,p=this.maxX,v=this.maxY,m=a*r+l*n+c,y=s*r+u*n+f;h=m<h?m:h,d=y<d?y:d,p=m>p?m:p,v=y>v?y:v,m=a*i+l*n+c,y=s*i+u*n+f,h=m<h?m:h,d=y<d?y:d,p=m>p?m:p,v=y>v?y:v,m=a*r+l*o+c,y=s*r+u*o+f,h=m<h?m:h,d=y<d?y:d,p=m>p?m:p,v=y>v?y:v,m=a*i+l*o+c,y=s*i+u*o+f,h=m<h?m:h,d=y<d?y:d,p=m>p?m:p,v=y>v?y:v,this.minX=h,this.minY=d,this.maxX=p,this.maxY=v},t.prototype.addVertexData=function(e,r,n){for(var i=this.minX,o=this.minY,a=this.maxX,s=this.maxY,l=r;l<n;l+=2){var u=e[l],c=e[l+1];i=u<i?u:i,o=c<o?c:o,a=u>a?u:a,s=c>s?c:s}this.minX=i,this.minY=o,this.maxX=a,this.maxY=s},t.prototype.addVertices=function(e,r,n,i){this.addVerticesMatrix(e.worldTransform,r,n,i)},t.prototype.addVerticesMatrix=function(e,r,n,i,o,a){o===void 0&&(o=0),a===void 0&&(a=o);for(var s=e.a,l=e.b,u=e.c,c=e.d,f=e.tx,h=e.ty,d=this.minX,p=this.minY,v=this.maxX,m=this.maxY,y=n;y<i;y+=2){var g=r[y],b=r[y+1],T=s*g+u*b+f,w=c*b+l*g+h;d=Math.min(d,T-o),v=Math.max(v,T+o),p=Math.min(p,w-a),m=Math.max(m,w+a)}this.minX=d,this.minY=p,this.maxX=v,this.maxY=m},t.prototype.addBounds=function(e){var r=this.minX,n=this.minY,i=this.maxX,o=this.maxY;this.minX=e.minX<r?e.minX:r,this.minY=e.minY<n?e.minY:n,this.maxX=e.maxX>i?e.maxX:i,this.maxY=e.maxY>o?e.maxY:o},t.prototype.addBoundsMask=function(e,r){var n=e.minX>r.minX?e.minX:r.minX,i=e.minY>r.minY?e.minY:r.minY,o=e.maxX<r.maxX?e.maxX:r.maxX,a=e.maxY<r.maxY?e.maxY:r.maxY;if(n<=o&&i<=a){var s=this.minX,l=this.minY,u=this.maxX,c=this.maxY;this.minX=n<s?n:s,this.minY=i<l?i:l,this.maxX=o>u?o:u,this.maxY=a>c?a:c}},t.prototype.addBoundsMatrix=function(e,r){this.addFrameMatrix(r,e.minX,e.minY,e.maxX,e.maxY)},t.prototype.addBoundsArea=function(e,r){var n=e.minX>r.x?e.minX:r.x,i=e.minY>r.y?e.minY:r.y,o=e.maxX<r.x+r.width?e.maxX:r.x+r.width,a=e.maxY<r.y+r.height?e.maxY:r.y+r.height;if(n<=o&&i<=a){var s=this.minX,l=this.minY,u=this.maxX,c=this.maxY;this.minX=n<s?n:s,this.minY=i<l?i:l,this.maxX=o>u?o:u,this.maxY=a>c?a:c}},t.prototype.pad=function(e,r){e===void 0&&(e=0),r===void 0&&(r=e),this.isEmpty()||(this.minX-=e,this.maxX+=e,this.minY-=r,this.maxY+=r)},t.prototype.addFramePad=function(e,r,n,i,o,a){e-=o,r-=a,n+=o,i+=a,this.minX=this.minX<e?this.minX:e,this.maxX=this.maxX>n?this.maxX:n,this.minY=this.minY<r?this.minY:r,this.maxY=this.maxY>i?this.maxY:i},t}();/*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** */var Zh=function(t,e){return Zh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Zh(t,e)};function Dp(t,e){Zh(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Xs=function(t){Dp(e,t);function e(){var r=t.call(this)||this;return r.tempDisplayObjectParent=null,r.transform=new pp,r.alpha=1,r.visible=!0,r.renderable=!0,r.cullable=!1,r.cullArea=null,r.parent=null,r.worldAlpha=1,r._lastSortedIndex=0,r._zIndex=0,r.filterArea=null,r.filters=null,r._enabledFilters=null,r._bounds=new Gg,r._localBounds=null,r._boundsID=0,r._boundsRect=null,r._localBoundsRect=null,r._mask=null,r._maskRefCount=0,r._destroyed=!1,r.isSprite=!1,r.isMask=!1,r}return e.mixin=function(r){for(var n=Object.keys(r),i=0;i<n.length;++i){var o=n[i];Object.defineProperty(e.prototype,o,Object.getOwnPropertyDescriptor(r,o))}},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!1,configurable:!0}),e.prototype._recursivePostUpdateTransform=function(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)},e.prototype.updateTransform=function(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha},e.prototype.getBounds=function(r,n){return r||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),n||(this._boundsRect||(this._boundsRect=new fe),n=this._boundsRect),this._bounds.getRectangle(n)},e.prototype.getLocalBounds=function(r){r||(this._localBoundsRect||(this._localBoundsRect=new fe),r=this._localBoundsRect),this._localBounds||(this._localBounds=new Gg);var n=this.transform,i=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform;var o=this._bounds,a=this._boundsID;this._bounds=this._localBounds;var s=this.getBounds(!1,r);return this.parent=i,this.transform=n,this._bounds=o,this._bounds.updateID+=this._boundsID-a,s},e.prototype.toGlobal=function(r,n,i){return i===void 0&&(i=!1),i||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(r,n)},e.prototype.toLocal=function(r,n,i,o){return n&&(r=n.toGlobal(r,i,o)),o||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(r,i)},e.prototype.setParent=function(r){if(!r||!r.addChild)throw new Error("setParent: Argument must be a Container");return r.addChild(this),r},e.prototype.setTransform=function(r,n,i,o,a,s,l,u,c){return r===void 0&&(r=0),n===void 0&&(n=0),i===void 0&&(i=1),o===void 0&&(o=1),a===void 0&&(a=0),s===void 0&&(s=0),l===void 0&&(l=0),u===void 0&&(u=0),c===void 0&&(c=0),this.position.x=r,this.position.y=n,this.scale.x=i||1,this.scale.y=o||1,this.rotation=a,this.skew.x=s,this.skew.y=l,this.pivot.x=u,this.pivot.y=c,this},e.prototype.destroy=function(r){this.parent&&this.parent.removeChild(this),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.interactive=!1,this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()},Object.defineProperty(e.prototype,"_tempDisplayObjectParent",{get:function(){return this.tempDisplayObjectParent===null&&(this.tempDisplayObjectParent=new r5),this.tempDisplayObjectParent},enumerable:!1,configurable:!0}),e.prototype.enableTempPar
|
||
|
* @pixi/constants - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/constants is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/var Dg;(function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"})(Dg||(Dg={}));var Hg;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"})(Hg||(Hg={}));var Vg;(function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"})(Vg||(Vg={}));var $g;(function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"})($g||($g={}));var jg;(function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(jg||(jg={}));var Xg;(function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(Xg||(Xg={}));var zg;(function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(zg||(zg={}));var Wg;(function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"})(Wg||(Wg={}));var Yg;(function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"})(Yg||(Yg={}));var Kg;(function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"})(Kg||(Kg={}));var Zg;(function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(Zg||(Zg={}));var qg;(function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"})(qg||(qg={}));var Jg;(function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(Jg||(Jg={}));var Qg;(function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BL
|
||
|
* @pixi/loaders - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/loaders is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/var Kl=function(){function t(e,r,n){r===void 0&&(r=!1),this._fn=e,this._once=r,this._thisArg=n,this._next=this._prev=this._owner=null}return t.prototype.detach=function(){return this._owner===null?!1:(this._owner.detach(this),!0)},t}();function a0(t,e){return t._head?(t._tail._next=e,e._prev=t._tail,t._tail=e):(t._head=e,t._tail=e),e._owner=t,e}var ni=function(){function t(){this._head=this._tail=void 0}return t.prototype.handlers=function(e){e===void 0&&(e=!1);var r=this._head;if(e)return!!r;for(var n=[];r;)n.push(r),r=r._next;return n},t.prototype.has=function(e){if(!(e instanceof Kl))throw new Error("MiniSignal#has(): First arg must be a SignalBinding object.");return e._owner===this},t.prototype.dispatch=function(){for(var e=arguments,r=[],n=0;n<arguments.length;n++)r[n]=e[n];var i=this._head;if(!i)return!1;for(;i;)i._once&&this.detach(i),i._fn.apply(i._thisArg,r),i=i._next;return!0},t.prototype.add=function(e,r){if(r===void 0&&(r=null),typeof e!="function")throw new Error("MiniSignal#add(): First arg must be a Function.");return a0(this,new Kl(e,!1,r))},t.prototype.once=function(e,r){if(r===void 0&&(r=null),typeof e!="function")throw new Error("MiniSignal#once(): First arg must be a Function.");return a0(this,new Kl(e,!0,r))},t.prototype.detach=function(e){if(!(e instanceof Kl))throw new Error("MiniSignal#detach(): First arg must be a SignalBinding object.");return e._owner!==this?this:(e._prev&&(e._prev._next=e._next),e._next&&(e._next._prev=e._prev),e===this._head?(this._head=e._next,e._next===null&&(this._tail=null)):e===this._tail&&(this._tail=e._prev,this._tail._next=null),e._owner=null,this)},t.prototype.detachAll=function(){var e=this._head;if(!e)return this;for(this._head=this._tail=null;e;)e._owner=null,e=e._next;return this},t}();function J1(t,e){e=e||{};for(var r={key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},n=r.parser[e.strictMode?"strict":"loose"].exec(t),i={},o=14;o--;)i[r.key[o]]=n[o]||"";return i[r.q.name]={},i[r.key[12]].replace(r.q.parser,function(a,s,l){s&&(i[r.q.name][s]=l)}),i}var wf,Zl=null,o5=0,s0=200,a5=204,s5=1223,l5=2;function l0(){}function u0(t,e,r){e&&e.indexOf(".")===0&&(e=e.substring(1)),e&&(t[e]=r)}function Ef(t){return t.toString().replace("object ","")}var Qe=function(){function t(e,r,n){if(this._dequeue=l0,this._onLoadBinding=null,this._elementTimer=0,this._boundComplete=null,this._boundOnError=null,this._boundOnProgress=null,this._boundOnTimeout=null,this._boundXhrOnError=null,this._boundXhrOnTimeout=null,this._boundXhrOnAbort=null,this._boundXhrOnLoad=null,typeof e!="string"||typeof r!="string")throw new Error("Both name and url are required for constructing a resource.");n=n||{},this._flags=0,this._setFlag(t.STATUS_FLAGS.DATA_URL,r.indexOf("data:")===0),this.name=e,this.url=r,this.extension=this._getExtension(),this.data=null,this.crossOrigin=n.crossOrigin===!0?"anonymous":n.crossOrigin,this.timeout=n.timeout||0,this.loadType=n.loadType||this._determineLoadType(),this.xhrType=n.xhrType,this.metadata=n.metadata||{},this.error=null,this.xhr=null,this.children=[],this.type=t.TYPE.UNKNOWN,this.progressChunk=0,this._dequeue=l0,this._onLoadBinding=null,this._elementTimer=0,this._boundComplete=this.complete.bind(this),this._boundOnError=this._onError.bind(this),this._boundOnProgress=this._onProgress.bind(this),this._boundOnTimeout=this._onTimeout.bind(this),this._boundXhrOnError=this._xhrOnError.bind(this),this._boundXhrOnTimeout=this._xhrOnTimeout.bind(this),this._boundXhrOnAbort=this._xhrOnAbort.bind(this),this._boundXhrOnLoad=this._xhrOnLoad.bind(this),this.onStart=new ni,this.onProgress
|
||
|
* @pixi/compressed-textures - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/compressed-textures is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/var Se,ee;(function(t){t[t.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",t[t.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT=35917]="COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT",t[t.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT=35918]="COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT",t[t.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT=35919]="COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT",t[t.COMPRESSED_SRGB_S3TC_DXT1_EXT=35916]="COMPRESSED_SRGB_S3TC_DXT1_EXT",t[t.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",t[t.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",t[t.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",t[t.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",t[t.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",t[t.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",t[t.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",t[t.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",t[t.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",t[t.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",t[t.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",t[t.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",t[t.COMPRESSED_RGB_PVRTC_2BPPV1_IMG=35841]="COMPRESSED_RGB_PVRTC_2BPPV1_IMG",t[t.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=35843]="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",t[t.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL",t[t.COMPRESSED_RGB_ATC_WEBGL=35986]="COMPRESSED_RGB_ATC_WEBGL",t[t.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=35986]="COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL",t[t.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=34798]="COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL"})(ee||(ee={}));var zu=(Se={},Se[ee.COMPRESSED_RGB_S3TC_DXT1_EXT]=.5,Se[ee.COMPRESSED_RGBA_S3TC_DXT1_EXT]=.5,Se[ee.COMPRESSED_RGBA_S3TC_DXT3_EXT]=1,Se[ee.COMPRESSED_RGBA_S3TC_DXT5_EXT]=1,Se[ee.COMPRESSED_SRGB_S3TC_DXT1_EXT]=.5,Se[ee.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT]=.5,Se[ee.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT]=1,Se[ee.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT]=1,Se[ee.COMPRESSED_R11_EAC]=.5,Se[ee.COMPRESSED_SIGNED_R11_EAC]=.5,Se[ee.COMPRESSED_RG11_EAC]=1,Se[ee.COMPRESSED_SIGNED_RG11_EAC]=1,Se[ee.COMPRESSED_RGB8_ETC2]=.5,Se[ee.COMPRESSED_RGBA8_ETC2_EAC]=1,Se[ee.COMPRESSED_SRGB8_ETC2]=.5,Se[ee.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC]=1,Se[ee.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2]=.5,Se[ee.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2]=.5,Se[ee.COMPRESSED_RGB_PVRTC_4BPPV1_IMG]=.5,Se[ee.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG]=.5,Se[ee.COMPRESSED_RGB_PVRTC_2BPPV1_IMG]=.25,Se[ee.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG]=.25,Se[ee.COMPRESSED_RGB_ETC1_WEBGL]=.5,Se[ee.COMPRESSED_RGB_ATC_WEBGL]=.5,Se[ee.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL]=1,Se[ee.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL]=1,Se);/*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** */var Jh=function(t,e){return Jh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Jh(t,e)};function Q1(t,e){Jh(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function g5(t,e,r,n){return new(r||(r=Promise))(function(i,o){function a(u){try{l(n.next(u))}catch(c){o(c)}}function s(u){try{l(n.throw(u))}catch(c){o(c)}}function l(u){u.done?i(u.value):new r(function(c){c(u.value)}).then(a,s)}l((n=n.apply(t,e||[])).next())})}function y5(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1],o=u;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(u);break}o[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(c){u=[6,c],i=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var b5=function(t){Q1(e,t);function e(r,n){n===void 0&&(n={width:1,height:1,autoLoad:!0});var i=this,o,a;return typeof r=="string"?(o=r,a=new Uint8Array):(o=null,a=r),i=t.call(this,a,n)||this,i.origin=o,i.buffer=a?new kh(a):null,i.origin&&n.autoLoad!==!1&&i.load(),a&&a.length&&(i.loaded=!0,i.onBlobLoaded(i.buffer.rawBinaryData)),i}return e.prototype.onBlobLoaded=function(r){},e.prototype.load=function(){return g5(this,void 0,Promise,function(){var r,n,i;return y5(this,function(o){switch(o.label){case 0:return[4,fetch(this.origin)];case 1:return r=o.sent(),[4,r.blob()];case 2:return n=o.sent(),[4,n.arrayBuffer()];case 3:return i=o.sent(),this.data=new Uint32Array(i),this.buffer=new kh(i),this.loaded=!0,this.onBlobLoaded(i),this.update(),[2,this]}})})},e}(ul),Qh=function(t){Q1(e,t);function e(r,n){var i=t.call(this,r,n)||this;return i.format=n.format,i.levels=n.levels||1,i._width=n.width,i._height=n.height,i._extension=e._formatToExtension(i.format),(n.levelBuffers||i.buffer)&&(i._levelBuffers=n.levelBuffers||e._createLevelBuffers(r instanceof Uint8Array?r:i.buffer.uint8View,i.format,i.levels,4,4,i.width,i.height)),i}return e.prototype.upload=function(r,n,i){var o=r.gl,a=r.context.extensions[this._extension];if(!a)throw new Error(this._extension+" textures are not supported on the current machine");if(!this._levelBuffers)return!1;for(var s=0,l=this.levels;s<l;s++){var u=this._levelBuffers[s],c=u.levelID,f=u.levelWidth,h=u.levelHeight,d=u.levelBuffer;o.compressedTexImage2D(o.TEXTURE_2D,c,this.format,f,h,0,d)}return!0},e.prototype.onBlobLoaded=function(){this._levelBuffers=e._createLevelBuffers(this.buffer.uint8View,this.format,this.levels,4,4,this.width,this.height)},e._formatToExtension=function(r){if(r>=33776&&r<=33779)return"s3tc";if(r>=37488&&r<=37497)return"etc";if(r>=35840&&r<=35843)return"pvrtc";if(r>=36196)return"etc1";if(r>=35986&&r<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")},e._createLevelBuffers=function(r,n,i,o,a,s,l){for(var u=new Array(i),c=r.byteOffset,f=s,h=l,d=f+o-1&~(o-1),p=h+a-1&~(a-1),v=d*p*zu[n],m=0;m<i;m++)u[m]={levelID:m,levelWidth:i>1?f:d,levelHeight:i>1?h:p,levelBuffer:new Uint8Array(r.buffer,c,v)},c+=v,f=f>>1||1,h=h>>1||1,d=f+o-1&~(o-1),p=h+a-1&~(a-1),v=d*p*zu[n];return u},e}(b5),_5=function(){function t(){}return t.use=function(e,r){var n=e.data,i=this;if(e.type===Qe.TYP
|
||
|
* @pixi/particle-container - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/particle-container is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*//*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** */var ed=function(t,e){return ed=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},ed(t,e)};function ex(t,e){ed(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}(function(t){ex(e,t);function e(r,n,i,o){r===void 0&&(r=1500),i===void 0&&(i=16384),o===void 0&&(o=!1);var a=t.call(this)||this,s=16384;return i>s&&(i=s),a._properties=[!1,!0,!1,!1,!1],a._maxSize=r,a._batchSize=i,a._buffers=null,a._bufferUpdateIDs=[],a._updateID=0,a.interactiveChildren=!1,a.blendMode=Ut.NORMAL,a.autoResize=o,a.roundPixels=!0,a.baseTexture=null,a.setProperties(n),a._tint=0,a.tintRgb=new Float32Array(4),a.tint=16777215,a}return e.prototype.setProperties=function(r){r&&(this._properties[0]="vertices"in r||"scale"in r?!!r.vertices||!!r.scale:this._properties[0],this._properties[1]="position"in r?!!r.position:this._properties[1],this._properties[2]="rotation"in r?!!r.rotation:this._properties[2],this._properties[3]="uvs"in r?!!r.uvs:this._properties[3],this._properties[4]="tint"in r||"alpha"in r?!!r.tint||!!r.alpha:this._properties[4])},e.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},Object.defineProperty(e.prototype,"tint",{get:function(){return this._tint},set:function(r){this._tint=r,Na(r,this.tintRgb)},enumerable:!1,configurable:!0}),e.prototype.render=function(r){var n=this;!this.visible||this.worldAlpha<=0||!this.children.length||!this.renderable||(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.valid||this.baseTexture.once("update",function(){return n.onChildrenChange(0)})),r.batch.setObjectRenderer(r.plugins.particle),r.plugins.particle.render(this))},e.prototype.onChildrenChange=function(r){for(var n=Math.floor(r/this._batchSize);this._bufferUpdateIDs.length<n;)this._bufferUpdateIDs.push(0);this._bufferUpdateIDs[n]=++this._updateID},e.prototype.dispose=function(){if(this._buffers){for(var r=0;r<this._buffers.length;++r)this._buffers[r].destroy();this._buffers=null}},e.prototype.destroy=function(r){t.prototype.destroy.call(this,r),this.dispose(),this._properties=null,this._buffers=null,this._bufferUpdateIDs=null},e})(jn);var d0=function(){function t(e,r,n){this.geometry=new cl,this.indexBuffer=null,this.size=n,this.dynamicProperties=[],this.staticProperties=[];for(var i=0;i<e.length;++i){var o=e[i];o={attributeName:o.attributeName,size:o.size,uploadFunction:o.uploadFunction,type:o.type||Mt.FLOAT,offset:o.offset},r[i]?this.dynamicProperties.push(o):this.staticProperties.push(o)}this.staticStride=0,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.dynamicStride=0,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this._updateID=0,this.initBuffers()}return t.prototype.initBuffers=function(){var e=this.geometry,r=0;this.indexBuffer=new hr(N3(this.size),!0,!0),e.addIndex(this.indexBuffer),this.dynamicStride=0;for(var n=0;n<this.dynamicProperties.length;++n){var i=this.dynamicProperties[n];i.offset=r,r+=i.size,this.dynamicStride+=i.size}var o=new ArrayBuffer(this.size*this.dynamicStride*4*4);this.dynamicData=new Float32Array(o),this.dynamicDataUint32=new Uint32Array(o),this.dynamicBuffer=new hr(this.dynamicData,!1,!1);var a=0;this.staticStride=0;for(var n=0;n<this.staticProperties.length;++n){var i=this.staticProperties[n];i.offset=a,a+=i.size,this.staticStride+=i.size}var s=new ArrayBuffer(this.size*this.staticStride*4*4);this.staticData=new Float32Array(s),this.staticDataUint32=new Uint32Array(s),this.staticBuffer=new hr(this.staticData,!0,!1);for(var n=0;n<this.dynamicProperties.length;++n){var i=this.dynamicProperties[n];e.addAttribute(i.attributeName,this.dynamicBuffer,0,i.type===Mt.UNSIGNED_BYTE,i.type,this.dynamicStride*4,i.offset*4)}for(var n=0;n<this.staticProperties.length;++n){var i=this.staticProperties[n];e.addAttribute(i.attributeName,this.staticBuffer,0,i.type===Mt.UNSIGNED_BYTE,i.type,
|
||
|
varying vec4 vColor;
|
||
|
|
||
|
uniform sampler2D uSampler;
|
||
|
|
||
|
void main(void){
|
||
|
vec4 color = texture2D(uSampler, vTextureCoord) * vColor;
|
||
|
gl_FragColor = color;
|
||
|
}`,$5=`attribute vec2 aVertexPosition;
|
||
|
attribute vec2 aTextureCoord;
|
||
|
attribute vec4 aColor;
|
||
|
|
||
|
attribute vec2 aPositionCoord;
|
||
|
attribute float aRotation;
|
||
|
|
||
|
uniform mat3 translationMatrix;
|
||
|
uniform vec4 uColor;
|
||
|
|
||
|
varying vec2 vTextureCoord;
|
||
|
varying vec4 vColor;
|
||
|
|
||
|
void main(void){
|
||
|
float x = (aVertexPosition.x) * cos(aRotation) - (aVertexPosition.y) * sin(aRotation);
|
||
|
float y = (aVertexPosition.x) * sin(aRotation) + (aVertexPosition.y) * cos(aRotation);
|
||
|
|
||
|
vec2 v = vec2(x, y);
|
||
|
v = v + aPositionCoord;
|
||
|
|
||
|
gl_Position = vec4((translationMatrix * vec3(v, 1.0)).xy, 0.0, 1.0);
|
||
|
|
||
|
vTextureCoord = aTextureCoord;
|
||
|
vColor = aColor * uColor;
|
||
|
}
|
||
|
`,j5=function(t){ex(e,t);function e(r){var n=t.call(this,r)||this;return n.shader=null,n.properties=null,n.tempMatrix=new or,n.properties=[{attributeName:"aVertexPosition",size:2,uploadFunction:n.uploadVertices,offset:0},{attributeName:"aPositionCoord",size:2,uploadFunction:n.uploadPosition,offset:0},{attributeName:"aRotation",size:1,uploadFunction:n.uploadRotation,offset:0},{attributeName:"aTextureCoord",size:2,uploadFunction:n.uploadUvs,offset:0},{attributeName:"aColor",size:1,type:Mt.UNSIGNED_BYTE,uploadFunction:n.uploadTint,offset:0}],n.shader=Di.from($5,V5,{}),n.state=Do.for2d(),n}return e.prototype.render=function(r){var n=r.children,i=r._maxSize,o=r._batchSize,a=this.renderer,s=n.length;if(s!==0){s>i&&!r.autoResize&&(s=i);var l=r._buffers;l||(l=r._buffers=this.generateBuffers(r));var u=n[0]._texture.baseTexture;this.state.blendMode=x1(r.blendMode,u.alphaMode),a.state.set(this.state);var c=a.gl,f=r.worldTransform.copyTo(this.tempMatrix);f.prepend(a.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=f.toArray(!0),this.shader.uniforms.uColor=R3(r.tintRgb,r.worldAlpha,this.shader.uniforms.uColor,u.alphaMode),this.shader.uniforms.uSampler=u,this.renderer.shader.bind(this.shader);for(var h=!1,d=0,p=0;d<s;d+=o,p+=1){var v=s-d;v>o&&(v=o),p>=l.length&&l.push(this._generateOneMoreBuffer(r));var m=l[p];m.uploadDynamic(n,d,v);var y=r._bufferUpdateIDs[p]||0;h=h||m._updateID<y,h&&(m._updateID=r._updateID,m.uploadStatic(n,d,v)),a.geometry.bind(m.geometry),c.drawElements(c.TRIANGLES,v*6,c.UNSIGNED_SHORT,0)}}},e.prototype.generateBuffers=function(r){for(var n=[],i=r._maxSize,o=r._batchSize,a=r._properties,s=0;s<i;s+=o)n.push(new d0(this.properties,a,o));return n},e.prototype._generateOneMoreBuffer=function(r){var n=r._batchSize,i=r._properties;return new d0(this.properties,i,n)},e.prototype.uploadVertices=function(r,n,i,o,a,s){for(var l=0,u=0,c=0,f=0,h=0;h<i;++h){var d=r[n+h],p=d._texture,v=d.scale.x,m=d.scale.y,y=p.trim,g=p.orig;y?(u=y.x-d.anchor.x*g.width,l=u+y.width,f=y.y-d.anchor.y*g.height,c=f+y.height):(l=g.width*(1-d.anchor.x),u=g.width*-d.anchor.x,c=g.height*(1-d.anchor.y),f=g.height*-d.anchor.y),o[s]=u*v,o[s+1]=f*m,o[s+a]=l*v,o[s+a+1]=f*m,o[s+a*2]=l*v,o[s+a*2+1]=c*m,o[s+a*3]=u*v,o[s+a*3+1]=c*m,s+=a*4}},e.prototype.uploadPosition=function(r,n,i,o,a,s){for(var l=0;l<i;l++){var u=r[n+l].position;o[s]=u.x,o[s+1]=u.y,o[s+a]=u.x,o[s+a+1]=u.y,o[s+a*2]=u.x,o[s+a*2+1]=u.y,o[s+a*3]=u.x,o[s+a*3+1]=u.y,s+=a*4}},e.prototype.uploadRotation=function(r,n,i,o,a,s){for(var l=0;l<i;l++){var u=r[n+l].rotation;o[s]=u,o[s+a]=u,o[s+a*2]=u,o[s+a*3]=u,s+=a*4}},e.prototype.uploadUvs=function(r,n,i,o,a,s){for(var l=0;l<i;++l){var u=r[n+l]._texture._uvs;u?(o[s]=u.x0,o[s+1]=u.y0,o[s+a]=u.x1,o[s+a+1]=u.y1,o[s+a*2]=u.x2,o[s+a*2+1]=u.y2,o[s+a*3]=u.x3,o[s+a*3+1]=u.y3,s+=a*4):(o[s]=0,o[s+1]=0,o[s+a]=0,o[s+a+1]=0,o[s+a*2]=0,o[s+a*2+1]=0,o[s+a*3]=0,o[s+a*3+1]=0,s+=a*4)}},e.prototype.uploadTint=function(r,n,i,o,a,s){for(var l=0;l<i;++l){var u=r[n+l],c=u._texture.baseTexture.alphaMode>0,f=u.alpha,h=f<1&&c?dp(u._tintRGB,f):u._tintRGB+(f*255<<24);o[s]=h,o[s+a]=h,o[s+a*2]=h,o[s+a*3]=h,s+=a*4}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null},e}(Tc);/*!
|
||
|
* @pixi/graphics - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/graphics is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/var Fi;(function(t){t.MITER="miter",t.BEVEL="bevel",t.ROUND="round"})(Fi||(Fi={}));var Li;(function(t){t.BUTT="butt",t.ROUND="round",t.SQUARE="square"})(Li||(Li={}));var zs={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(t,e){if(e===void 0&&(e=20),!this.adaptive||!t||isNaN(t))return e;var r=Math.ceil(t/this.maxLength);return r<this.minSegments?r=this.minSegments:r>this.maxSegments&&(r=this.maxSegments),r}},rx=function(){function t(){this.color=16777215,this.alpha=1,this.texture=Wt.WHITE,this.matrix=null,this.visible=!1,this.reset()}return t.prototype.clone=function(){var e=new t;return e.color=this.color,e.alpha=this.alpha,e.texture=this.texture,e.matrix=this.matrix,e.visible=this.visible,e},t.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=Wt.WHITE,this.matrix=null,this.visible=!1},t.prototype.destroy=function(){this.texture=null,this.matrix=null},t}();/*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** */var rd=function(t,e){return rd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},rd(t,e)};function Hp(t,e){rd(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function p0(t,e){var r,n;e===void 0&&(e=!1);var i=t.length;if(!(i<6)){for(var o=0,a=0,s=t[i-2],l=t[i-1];a<i;a+=2){var u=t[a],c=t[a+1];o+=(u-s)*(c+l),s=u,l=c}if(!e&&o>0||e&&o<=0)for(var f=i/2,a=f+f%2;a<i;a+=2){var h=i-a-2,d=i-a-1,p=a,v=a+1;r=[t[p],t[h]],t[h]=r[0],t[p]=r[1],n=[t[v],t[d]],t[d]=n[0],t[v]=n[1]}}}var nx={build:function(t){t.points=t.shape.points.slice()},triangulate:function(t,e){var r=t.points,n=t.holes,i=e.points,o=e.indices;if(r.length>=6){p0(r,!1);for(var a=[],s=0;s<n.length;s++){var l=n[s];p0(l.points,!0),a.push(r.length/2),r=r.concat(l.points)}var u=g1(r,a,2);if(!u)return;for(var c=i.length/2,s=0;s<u.length;s+=3)o.push(u[s]+c),o.push(u[s+1]+c),o.push(u[s+2]+c);for(var s=0;s<r.length;s++)i.push(r[s])}}},Wu={build:function(t){var e=t.points,r,n,i,o,a,s;if(t.type===Ye.CIRC){var l=t.shape;r=l.x,n=l.y,a=s=l.radius,i=o=0}else if(t.type===Ye.ELIP){var u=t.shape;r=u.x,n=u.y,a=u.width,s=u.height,i=o=0}else{var c=t.shape,f=c.width/2,h=c.height/2;r=c.x+f,n=c.y+h,a=s=Math.max(0,Math.min(c.radius,Math.min(f,h))),i=f-a,o=h-s}if(!(a>=0&&s>=0&&i>=0&&o>=0)){e.length=0;return}var d=Math.ceil(2.3*Math.sqrt(a+s)),p=d*8+(i?4:0)+(o?4:0);if(e.length=p,p!==0){if(d===0){e.length=8,e[0]=e[6]=r+i,e[1]=e[3]=n+o,e[2]=e[4]=r-i,e[5]=e[7]=n-o;return}var v=0,m=d*4+(i?2:0)+2,y=m,g=p;{var b=i+a,T=o,w=r+b,x=r-b,R=n+T;if(e[v++]=w,e[v++]=R,e[--m]=R,e[--m]=x,o){var I=n-T;e[y++]=x,e[y++]=I,e[--g]=I,e[--g]=w}}for(var C=1;C<d;C++){var S=Math.PI/2*(C/d),b=i+Math.cos(S)*a,T=o+Math.sin(S)*s,w=r+b,x=r-b,R=n+T,I=n-T;e[v++]=w,e[v++]=R,e[--m]=R,e[--m]=x,e[y++]=x,e[y++]=I,e[--g]=I,e[--g]=w}{var b=i,T=o+s,w=r+b,x=r-b,R=n+T,I=n-T;e[v++]=w,e[v++]=R,e[--g]=I,e[--g]=w,i&&(e[v++]=x,e[v++]=R,e[--g]=I,e[--g]=x)}}},triangulate:function(t,e){var r=t.points,n=e.points,i=e.indices,o=n.length/2,a=o,s,l;if(t.type!==Ye.RREC){var u=t.shape;s=u.x,l=u.y}else{var c=t.shape;s=c.x+c.width/2,l=c.y+c.height/2}var f=t.matrix;n.push(t.matrix?f.a*s+f.c*l+f.tx:s,t.matrix?f.b*s+f.d*l+f.ty:l),o++,n.push(r[0],r[1]);for(var h=2;h<r.length;h+=2)n.push(r[h],r[h+1]),i.push(o++,a,o);i.push(a+1,a,o)}},X5={build:function(t){var e=t.shape,r=e.x,n=e.y,i=e.width,o=e.height,a=t.points;a.length=0,a.push(r,n,r+i,n,r+i,n+o,r,n+o)},triangulate:function(t,e){var r=t.points,n=e.points,i=n.length/2;n.push(r[0],r[1],r[2],r[3],r[6],r[7],r[4],r[5]),e.indices.push(i,i+1,i+2,i+1,i+2,i+3)}};function Wo(t,e,r){var n=e-t;return t+n*r}function tu(t,e,r,n,i,o,a){a===void 0&&(a=[]);for(var s=20,l=a,u=0,c=0,f=0,h=0,d=0,p=0,v=0,m=0;v<=s;++v)m=v/s,u=Wo(t,r,m),c=Wo(e,n,m),f=Wo(r,i,m),h=Wo(n,o,m),d=Wo(u,f,m),p=Wo(c,h,m),!(v===0&&l[l.length-2]===d&&l[l.length-1]===p)&&l.push(d,p);return l}var z5={build:function(t){if(Yu.nextRoundedRectBehavior){Wu.build(t);return}var e=t.shape,r=t.points,n=e.x,i=e.y,o=e.width,a=e.height,s=Math.max(0,Math.min(e.radius,Math.min(o,a)/2));r.length=0,s?(tu(n,i+s,n,i,n+s,i,r),tu(n+o-s,i,n+o,i,n+o,i+s,r),tu(n+o,i+a-s,n+o,i+a,n+o-s,i+a,r),tu(n+s,i+a,n,i+a,n,i+a-s,r)):r.push(n,i,n+o,i,n+o,i+a,n,i+a)},triangulate:function(t,e){if(Yu.nextRoundedRectBehavior){Wu.triangulate(t,e);return}for(var r=t.points,n=e.points,i=e.indices,o=n.length/2,a=g1(r,null,2),s=0,l=a.length;s<l;s+=3)i.push(a[s]+o),i.push(a[s+1]+o),i.push(a[s+2]+o);for(var s=0,l=r.length;s<l;s++)n.push(r[s],r[++s])}};function v0(t,e,r,n,i,o,a,s){var l=t-r*i,u=e-n*i,c=t+r*o,f=e+n*o,h,d;a?(h=n,d=-r):(h=-n,d=r);var p=l+h,v=u+d,m=c+h,y=f+d;return s.push(p,v),s.push(m,y),2}function Yo(t,e,r,n,i,o,a,s){var l=r-t,u=n-e,c=Math.atan2(l,u),f=Math.atan2(i-t,o-e);s&&c<f?c+=Math.PI*2:!s&&c>f&&(f+=Math.PI*2);var h=c,d=f-c,p=Math.abs(d),v=Math.sqrt(l*l+u*u),m=(15*p*Math.sqrt(v)/Math.PI>>0)+1,y=d/m;if(h+=y,s){a.push(t,e),a.push(r,n);for(var g=1,b=h;g<m;g++,b+=y)
|
||
|
* @pixi/text - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/text is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*//*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** */var nd=function(t,e){return nd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},nd(t,e)};function rF(t,e){nd(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Ws;(function(t){t[t.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",t[t.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL"})(Ws||(Ws={}));var Af={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:Ws.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100,leading:0},nF=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],Pa=function(){function t(e){this.styleID=0,this.reset(),Uf(this,e,e)}return t.prototype.clone=function(){var e={};return Uf(e,this,Af),new t(e)},t.prototype.reset=function(){Uf(this,Af,Af)},Object.defineProperty(t.prototype,"align",{get:function(){return this._align},set:function(e){this._align!==e&&(this._align=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"breakWords",{get:function(){return this._breakWords},set:function(e){this._breakWords!==e&&(this._breakWords=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadow",{get:function(){return this._dropShadow},set:function(e){this._dropShadow!==e&&(this._dropShadow=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowAlpha",{get:function(){return this._dropShadowAlpha},set:function(e){this._dropShadowAlpha!==e&&(this._dropShadowAlpha=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowAngle",{get:function(){return this._dropShadowAngle},set:function(e){this._dropShadowAngle!==e&&(this._dropShadowAngle=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowBlur",{get:function(){return this._dropShadowBlur},set:function(e){this._dropShadowBlur!==e&&(this._dropShadowBlur=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowColor",{get:function(){return this._dropShadowColor},set:function(e){var r=Of(e);this._dropShadowColor!==r&&(this._dropShadowColor=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowDistance",{get:function(){return this._dropShadowDistance},set:function(e){this._dropShadowDistance!==e&&(this._dropShadowDistance=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fill",{get:function(){return this._fill},set:function(e){var r=Of(e);this._fill!==r&&(this._fill=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fillGradientType",{get:function(){return this._fillGradientType},set:function(e){this._fillGradientType!==e&&(this._fillGradientType=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fillGradientStops",{get:function(){return this._fillGradientStops},set:function(e){iF(this._fillGradientStops,e)||(this._fillGradientStops=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(e){this.fontFamily!==e&&(this._fontFamily=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontSize",{get:function(){return this._fontSize},set:function(e){this._fontSize!==e&&(this._fontSize=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(e){this._fontStyle!==e&&(this._fontStyle=
|
||
|
`:e,e},t.getFromCache=function(e,r,n,i){var o=n[e];if(typeof o!="number"){var a=e.length*r;o=i.measureText(e).width+a,n[e]=o}return o},t.collapseSpaces=function(e){return e==="normal"||e==="pre-line"},t.collapseNewlines=function(e){return e==="normal"},t.trimRight=function(e){if(typeof e!="string")return"";for(var r=e.length-1;r>=0;r--){var n=e[r];if(!t.isBreakingSpace(n))break;e=e.slice(0,-1)}return e},t.isNewline=function(e){return typeof e!="string"?!1:t._newlines.indexOf(e.charCodeAt(0))>=0},t.isBreakingSpace=function(e,r){return typeof e!="string"?!1:t._breakingSpaces.indexOf(e.charCodeAt(0))>=0},t.tokenize=function(e){var r=[],n="";if(typeof e!="string")return r;for(var i=0;i<e.length;i++){var o=e[i],a=e[i+1];if(t.isBreakingSpace(o,a)||t.isNewline(o)){n!==""&&(r.push(n),n=""),r.push(o);continue}n+=o}return n!==""&&r.push(n),r},t.canBreakWords=function(e,r){return r},t.canBreakChars=function(e,r,n,i,o){return!0},t.wordWrapSplit=function(e){return e.split("")},t.measureFont=function(e){if(t._fonts[e])return t._fonts[e];var r={ascent:0,descent:0,fontSize:0},n=t._canvas,i=t._context;i.font=e;var o=t.METRICS_STRING+t.BASELINE_SYMBOL,a=Math.ceil(i.measureText(o).width),s=Math.ceil(i.measureText(t.BASELINE_SYMBOL).width),l=Math.ceil(t.HEIGHT_MULTIPLIER*s);s=s*t.BASELINE_MULTIPLIER|0,n.width=a,n.height=l,i.fillStyle="#f00",i.fillRect(0,0,a,l),i.font=e,i.textBaseline="alphabetic",i.fillStyle="#000",i.fillText(o,0,s);var u=i.getImageData(0,0,a,l).data,c=u.length,f=a*4,h=0,d=0,p=!1;for(h=0;h<s;++h){for(var v=0;v<f;v+=4)if(u[d+v]!==255){p=!0;break}if(!p)d+=f;else break}for(r.ascent=s-h,d=c-f,p=!1,h=l;h>s;--h){for(var v=0;v<f;v+=4)if(u[d+v]!==255){p=!0;break}if(!p)d-=f;else break}return r.descent=h-s,r.fontSize=r.ascent+r.descent,t._fonts[e]=r,r},t.clearMetrics=function(e){e===void 0&&(e=""),e?delete t._fonts[e]:t._fonts={}},Object.defineProperty(t,"_canvas",{get:function(){if(!t.__canvas){var e=void 0;try{var r=new OffscreenCanvas(0,0),n=r.getContext("2d");if(n&&n.measureText)return t.__canvas=r,r;e=document.createElement("canvas")}catch{e=document.createElement("canvas")}e.width=e.height=10,t.__canvas=e}return t.__canvas},enumerable:!1,configurable:!0}),Object.defineProperty(t,"_context",{get:function(){return t.__context||(t.__context=t._canvas.getContext("2d")),t.__context},enumerable:!1,configurable:!0}),t}();Kn._fonts={};Kn.METRICS_STRING="|\xC9q\xC5";Kn.BASELINE_SYMBOL="M";Kn.BASELINE_MULTIPLIER=1.4;Kn.HEIGHT_MULTIPLIER=2;Kn._newlines=[10,13];Kn._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];var oF={texture:!0,children:!1,baseTexture:!0},ix=function(t){rF(e,t);function e(r,n,i){var o=this,a=!1;i||(i=document.createElement("canvas"),a=!0),i.width=3,i.height=3;var s=Wt.from(i);return s.orig=new fe,s.trim=new fe,o=t.call(this,s)||this,o._ownCanvas=a,o.canvas=i,o.context=o.canvas.getContext("2d"),o._resolution=Ft.RESOLUTION,o._autoResolution=!0,o._text=null,o._style=null,o._styleListener=null,o._font="",o.text=r,o.style=n,o.localStyleID=-1,o}return e.prototype.updateText=function(r){var n=this._style;if(this.localStyleID!==n.styleID&&(this.dirty=!0,this.localStyleID=n.styleID),!(!this.dirty&&r)){this._font=this._style.toFontString();var i=this.context,o=Kn.measureText(this._text||" ",this._style,this._style.wordWrap,this.canvas),a=o.width,s=o.height,l=o.lines,u=o.lineHeight,c=o.lineWidths,f=o.maxLineWidth,h=o.fontProperties;this.canvas.width=Math.ceil(Math.ceil(Math.max(1,a)+n.padding*2)*this._resolution),this.canvas.height=Math.ceil(Math.ceil(Math.max(1,s)+n.padding*2)*this._resolution),i.scale(this._resolution,this._resolution),i.clearRect(0,0,this.canvas.width,this.canvas.height),i.font=this._font,i.lineWidth=n.strokeThickness,i.textBaseline=n.textBaseline,i.lineJoin=n.lineJoin,i.miterLimit=n.miterLimit;for(var d,p,v=n.dropShadow?2:1,m=0;m<v;++m){var y=n.dropShadow&&m===0,g=y?Math.ceil(Math.max(1,s)+n.padding*2):0,b=g*this._resolution;if(y){i.fillStyle="black",i.strokeStyle="black";var T=n.dropShadowColor,w=Na(typeof T=="number"?T:b1(T)),x=n.dropShadowBlur*this._resolution,R=n.dropSha
|
||
|
* @pixi/prepare - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/prepare is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/Ft.UPLOADS_PER_FRAME=4;/*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** */var id=function(t,e){return id=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},id(t,e)};function aF(t,e){id(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var sF=function(){function t(e){this.maxItemsPerFrame=e,this.itemsLeft=0}return t.prototype.beginFrame=function(){this.itemsLeft=this.maxItemsPerFrame},t.prototype.allowedToUpload=function(){return this.itemsLeft-- >0},t}();function lF(t,e){var r=!1;if(t&&t._textures&&t._textures.length){for(var n=0;n<t._textures.length;n++)if(t._textures[n]instanceof Wt){var i=t._textures[n].baseTexture;e.indexOf(i)===-1&&(e.push(i),r=!0)}}return r}function uF(t,e){if(t.baseTexture instanceof ge){var r=t.baseTexture;return e.indexOf(r)===-1&&e.push(r),!0}return!1}function cF(t,e){if(t._texture&&t._texture instanceof Wt){var r=t._texture.baseTexture;return e.indexOf(r)===-1&&e.push(r),!0}return!1}function fF(t,e){return e instanceof ix?(e.updateText(!0),!0):!1}function hF(t,e){if(e instanceof Pa){var r=e.toFontString();return Kn.measureFont(r),!0}return!1}function dF(t,e){if(t instanceof ix){e.indexOf(t.style)===-1&&e.push(t.style),e.indexOf(t)===-1&&e.push(t);var r=t._texture.baseTexture;return e.indexOf(r)===-1&&e.push(r),!0}return!1}function pF(t,e){return t instanceof Pa?(e.indexOf(t)===-1&&e.push(t),!0):!1}var vF=function(){function t(e){var r=this;this.limiter=new sF(Ft.UPLOADS_PER_FRAME),this.renderer=e,this.uploadHookHelper=null,this.queue=[],this.addHooks=[],this.uploadHooks=[],this.completes=[],this.ticking=!1,this.delayedTick=function(){!r.queue||r.prepareItems()},this.registerFindHook(dF),this.registerFindHook(pF),this.registerFindHook(lF),this.registerFindHook(uF),this.registerFindHook(cF),this.registerUploadHook(fF),this.registerUploadHook(hF)}return t.prototype.upload=function(e,r){typeof e=="function"&&(r=e,e=null),e&&this.add(e),this.queue.length?(r&&this.completes.push(r),this.ticking||(this.ticking=!0,gr.system.addOnce(this.tick,this,vi.UTILITY))):r&&r()},t.prototype.tick=function(){setTimeout(this.delayedTick,0)},t.prototype.prepareItems=function(){for(this.limiter.beginFrame();this.queue.length&&this.limiter.allowedToUpload();){var e=this.queue[0],r=!1;if(e&&!e._destroyed){for(var n=0,i=this.uploadHooks.length;n<i;n++)if(this.uploadHooks[n](this.uploadHookHelper,e)){this.queue.shift(),r=!0;break}}r||this.queue.shift()}if(this.queue.length)gr.system.addOnce(this.tick,this,vi.UTILITY);else{this.ticking=!1;var o=this.completes.slice(0);this.completes.length=0;for(var n=0,i=o.length;n<i;n++)o[n]()}},t.prototype.registerFindHook=function(e){return e&&this.addHooks.push(e),this},t.prototype.registerUploadHook=function(e){return e&&this.uploadHooks.push(e),this},t.prototype.add=function(e){for(var r=0,n=this.addHooks.length;r<n&&!this.addHooks[r](e,this.queue);r++);if(e instanceof jn)for(var r=e.children.length-1;r>=0;r--)this.add(e.children[r]);return this},t.prototype.destroy=function(){this.ticking&&gr.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null},t}();function ox(t,e){return e instanceof ge?(e._glTextures[t.CONTEXT_UID]||t.texture.bind(e),!0):!1}function mF(t,e){if(!(e instanceof Yu))return!1;var r=e.geometry;e.finishPoly(),r.updateBatches();for(var n=r.batches,i=0;i<n.length;i++){var o=n[i].style.texture;o&&ox(t,o.baseTexture)}return r.batchable||t.geometry.bind(r,e._resolveDirectShader(t)),!0}function gF(t,e){return t instanceof Yu?(e.push(t),!0):!1}var yF=function(t){aF(e,t);function e(r){var n=t.call(this,r)||this;return n.uploadHookHelper=n.renderer,n.registerFindHook(gF),n.registerUploadHook(ox),n.registerUploadHook(mF),n}return e}(vF);/*!
|
||
|
* @pixi/spritesheet - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/spritesheet is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/var bF=function(){function t(e,r,n){n===void 0&&(n=null),this._texture=e instanceof Wt?e:null,this.baseTexture=e instanceof ge?e:this._texture.baseTexture,this.textures={},this.animations={},this.data=r;var i=this.baseTexture.resource;this.resolution=this._updateResolution(n||(i?i.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}return t.prototype._updateResolution=function(e){e===void 0&&(e=null);var r=this.data.meta.scale,n=ju(e,null);return n===null&&(n=r!==void 0?parseFloat(r):1),n!==1&&this.baseTexture.setResolution(n),n},t.prototype.parse=function(e){this._batchIndex=0,this._callback=e,this._frameKeys.length<=t.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()},t.prototype._processFrames=function(e){for(var r=e,n=t.BATCH_SIZE;r-e<n&&r<this._frameKeys.length;){var i=this._frameKeys[r],o=this._frames[i],a=o.frame;if(a){var s=null,l=null,u=o.trimmed!==!1&&o.sourceSize?o.sourceSize:o.frame,c=new fe(0,0,Math.floor(u.w)/this.resolution,Math.floor(u.h)/this.resolution);o.rotated?s=new fe(Math.floor(a.x)/this.resolution,Math.floor(a.y)/this.resolution,Math.floor(a.h)/this.resolution,Math.floor(a.w)/this.resolution):s=new fe(Math.floor(a.x)/this.resolution,Math.floor(a.y)/this.resolution,Math.floor(a.w)/this.resolution,Math.floor(a.h)/this.resolution),o.trimmed!==!1&&o.spriteSourceSize&&(l=new fe(Math.floor(o.spriteSourceSize.x)/this.resolution,Math.floor(o.spriteSourceSize.y)/this.resolution,Math.floor(a.w)/this.resolution,Math.floor(a.h)/this.resolution)),this.textures[i]=new Wt(this.baseTexture,s,c,l,o.rotated?2:0,o.anchor),Wt.addToCache(this.textures[i],i)}r++}},t.prototype._processAnimations=function(){var e=this.data.animations||{};for(var r in e){this.animations[r]=[];for(var n=0;n<e[r].length;n++){var i=e[r][n];this.animations[r].push(this.textures[i])}}},t.prototype._parseComplete=function(){var e=this._callback;this._callback=null,this._batchIndex=0,e.call(this,this.textures)},t.prototype._nextBatch=function(){var e=this;this._processFrames(this._batchIndex*t.BATCH_SIZE),this._batchIndex++,setTimeout(function(){e._batchIndex*t.BATCH_SIZE<e._frameKeys.length?e._nextBatch():(e._processAnimations(),e._parseComplete())},0)},t.prototype.destroy=function(e){var r;e===void 0&&(e=!1);for(var n in this.textures)this.textures[n].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,e&&((r=this._texture)===null||r===void 0||r.destroy(),this.baseTexture.destroy()),this._texture=null,this.baseTexture=null},t.BATCH_SIZE=1e3,t}(),_F=function(){function t(){}return t.use=function(e,r){var n,i,o=this,a=e.name+"_image";if(!e.data||e.type!==Qe.TYPE.JSON||!e.data.frames||o.resources[a]){r();return}var s=(i=(n=e.data)===null||n===void 0?void 0:n.meta)===null||i===void 0?void 0:i.related_multi_packs;if(Array.isArray(s))for(var l=function(p){if(typeof p!="string")return"continue";var v=p.replace(".json",""),m=sa.resolve(e.url.replace(o.baseUrl,""),p);if(o.resources[v]||Object.values(o.resources).some(function(g){return sa.format(sa.parse(g.url))===m}))return"continue";var y={crossOrigin:e.crossOrigin,loadType:Qe.LOAD_TYPE.XHR,xhrType:Qe.XHR_RESPONSE_TYPE.JSON,parentResource:e,metadata:e.metadata};o.add(v,m,y)},u=0,c=s;u<c.length;u++){var f=c[u];l(f)}var h={crossOrigin:e.crossOrigin,metadata:e.metadata.imageMetadata,parentResource:e},d=t.getResourcePath(e,o.baseUrl);o.add(a,d,h,function(v){if(v.error){r(v.error);return}var m=new bF(v.texture,e.data,e.url);m.parse(function(){e.spritesheet=m,e.textures=m.textures,r()})})},t.getResourcePath=function(e,r){return e.isDataUrl?e.data.meta.image:sa.resolve(e.url.replace(r,""),e.data.meta.image)},t}();/*!
|
||
|
* @pixi/sprite-tiling - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/sprite-tiling is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*//*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** */var od=function(t,e){return od=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},od(t,e)};function ax(t,e){od(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Za=new _e;(function(t){ax(e,t);function e(r,n,i){n===void 0&&(n=100),i===void 0&&(i=100);var o=t.call(this,r)||this;return o.tileTransform=new pp,o._width=n,o._height=i,o.uvMatrix=o.texture.uvMatrix||new vp(r),o.pluginName="tilingSprite",o.uvRespectAnchor=!1,o}return Object.defineProperty(e.prototype,"clampMargin",{get:function(){return this.uvMatrix.clampMargin},set:function(r){this.uvMatrix.clampMargin=r,this.uvMatrix.update(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tileScale",{get:function(){return this.tileTransform.scale},set:function(r){this.tileTransform.scale.copyFrom(r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tilePosition",{get:function(){return this.tileTransform.position},set:function(r){this.tileTransform.position.copyFrom(r)},enumerable:!1,configurable:!0}),e.prototype._onTextureUpdate=function(){this.uvMatrix&&(this.uvMatrix.texture=this._texture),this._cachedTint=16777215},e.prototype._render=function(r){var n=this._texture;!n||!n.valid||(this.tileTransform.updateLocalTransform(),this.uvMatrix.update(),r.batch.setObjectRenderer(r.plugins[this.pluginName]),r.plugins[this.pluginName].render(this))},e.prototype._calculateBounds=function(){var r=this._width*-this._anchor._x,n=this._height*-this._anchor._y,i=this._width*(1-this._anchor._x),o=this._height*(1-this._anchor._y);this._bounds.addFrame(this.transform,r,n,i,o)},e.prototype.getLocalBounds=function(r){return this.children.length===0?(this._bounds.minX=this._width*-this._anchor._x,this._bounds.minY=this._height*-this._anchor._y,this._bounds.maxX=this._width*(1-this._anchor._x),this._bounds.maxY=this._height*(1-this._anchor._y),r||(this._localBoundsRect||(this._localBoundsRect=new fe),r=this._localBoundsRect),this._bounds.getRectangle(r)):t.prototype.getLocalBounds.call(this,r)},e.prototype.containsPoint=function(r){this.worldTransform.applyInverse(r,Za);var n=this._width,i=this._height,o=-n*this.anchor._x;if(Za.x>=o&&Za.x<o+n){var a=-i*this.anchor._y;if(Za.y>=a&&Za.y<a+i)return!0}return!1},e.prototype.destroy=function(r){t.prototype.destroy.call(this,r),this.tileTransform=null,this.uvMatrix=null},e.from=function(r,n){var i=r instanceof Wt?r:Wt.from(r,n);return new e(i,n.width,n.height)},Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(r){this._width=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(r){this._height=r},enumerable:!1,configurable:!0}),e})(La);var xF=`#version 100
|
||
|
#define SHADER_NAME Tiling-Sprite-Simple-100
|
||
|
|
||
|
precision lowp float;
|
||
|
|
||
|
varying vec2 vTextureCoord;
|
||
|
|
||
|
uniform sampler2D uSampler;
|
||
|
uniform vec4 uColor;
|
||
|
|
||
|
void main(void)
|
||
|
{
|
||
|
vec4 texSample = texture2D(uSampler, vTextureCoord);
|
||
|
gl_FragColor = texSample * uColor;
|
||
|
}
|
||
|
`,x0=`#version 100
|
||
|
#define SHADER_NAME Tiling-Sprite-100
|
||
|
|
||
|
precision lowp float;
|
||
|
|
||
|
attribute vec2 aVertexPosition;
|
||
|
attribute vec2 aTextureCoord;
|
||
|
|
||
|
uniform mat3 projectionMatrix;
|
||
|
uniform mat3 translationMatrix;
|
||
|
uniform mat3 uTransform;
|
||
|
|
||
|
varying vec2 vTextureCoord;
|
||
|
|
||
|
void main(void)
|
||
|
{
|
||
|
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
||
|
vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;
|
||
|
}
|
||
|
`,TF=`#version 100
|
||
|
#ifdef GL_EXT_shader_texture_lod
|
||
|
#extension GL_EXT_shader_texture_lod : enable
|
||
|
#endif
|
||
|
#define SHADER_NAME Tiling-Sprite-100
|
||
|
|
||
|
precision lowp float;
|
||
|
|
||
|
varying vec2 vTextureCoord;
|
||
|
|
||
|
uniform sampler2D uSampler;
|
||
|
uniform vec4 uColor;
|
||
|
uniform mat3 uMapCoord;
|
||
|
uniform vec4 uClampFrame;
|
||
|
uniform vec2 uClampOffset;
|
||
|
|
||
|
void main(void)
|
||
|
{
|
||
|
vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);
|
||
|
coord = (uMapCoord * vec3(coord, 1.0)).xy;
|
||
|
vec2 unclamped = coord;
|
||
|
coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);
|
||
|
|
||
|
#ifdef GL_EXT_shader_texture_lod
|
||
|
vec4 texSample = unclamped == coord
|
||
|
? texture2D(uSampler, coord)
|
||
|
: texture2DLodEXT(uSampler, coord, 0);
|
||
|
#else
|
||
|
vec4 texSample = texture2D(uSampler, coord);
|
||
|
#endif
|
||
|
|
||
|
gl_FragColor = texSample * uColor;
|
||
|
}
|
||
|
`,wF=`#version 300 es
|
||
|
#define SHADER_NAME Tiling-Sprite-300
|
||
|
|
||
|
precision lowp float;
|
||
|
|
||
|
in vec2 aVertexPosition;
|
||
|
in vec2 aTextureCoord;
|
||
|
|
||
|
uniform mat3 projectionMatrix;
|
||
|
uniform mat3 translationMatrix;
|
||
|
uniform mat3 uTransform;
|
||
|
|
||
|
out vec2 vTextureCoord;
|
||
|
|
||
|
void main(void)
|
||
|
{
|
||
|
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
||
|
vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;
|
||
|
}
|
||
|
`,EF=`#version 300 es
|
||
|
#define SHADER_NAME Tiling-Sprite-100
|
||
|
|
||
|
precision lowp float;
|
||
|
|
||
|
in vec2 vTextureCoord;
|
||
|
|
||
|
out vec4 fragmentColor;
|
||
|
|
||
|
uniform sampler2D uSampler;
|
||
|
uniform vec4 uColor;
|
||
|
uniform mat3 uMapCoord;
|
||
|
uniform vec4 uClampFrame;
|
||
|
uniform vec2 uClampOffset;
|
||
|
|
||
|
void main(void)
|
||
|
{
|
||
|
vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);
|
||
|
coord = (uMapCoord * vec3(coord, 1.0)).xy;
|
||
|
vec2 unclamped = coord;
|
||
|
coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);
|
||
|
|
||
|
vec4 texSample = texture(uSampler, coord, unclamped == coord ? 0.0f : -32.0f);// lod-bias very negative to force lod 0
|
||
|
|
||
|
fragmentColor = texSample * uColor;
|
||
|
}
|
||
|
`,ru=new or,IF=function(t){ax(e,t);function e(r){var n=t.call(this,r)||this;return r.runners.contextChange.add(n),n.quad=new U1,n.state=Do.for2d(),n}return e.prototype.contextChange=function(){var r=this.renderer,n={globals:r.globalUniforms};this.simpleShader=Di.from(x0,xF,n),this.shader=r.context.webGLVersion>1?Di.from(wF,EF,n):Di.from(x0,TF,n)},e.prototype.render=function(r){var n=this.renderer,i=this.quad,o=i.vertices;o[0]=o[6]=r._width*-r.anchor.x,o[1]=o[3]=r._height*-r.anchor.y,o[2]=o[4]=r._width*(1-r.anchor.x),o[5]=o[7]=r._height*(1-r.anchor.y);var a=r.uvRespectAnchor?r.anchor.x:0,s=r.uvRespectAnchor?r.anchor.y:0;o=i.uvs,o[0]=o[6]=-a,o[1]=o[3]=-s,o[2]=o[4]=1-a,o[5]=o[7]=1-s,i.invalidate();var l=r._texture,u=l.baseTexture,c=r.tileTransform.localTransform,f=r.uvMatrix,h=u.isPowerOfTwo&&l.frame.width===u.width&&l.frame.height===u.height;h&&(u._glTextures[n.CONTEXT_UID]?h=u.wrapMode!==li.CLAMP:u.wrapMode===li.CLAMP&&(u.wrapMode=li.REPEAT));var d=h?this.simpleShader:this.shader,p=l.width,v=l.height,m=r._width,y=r._height;ru.set(c.a*p/m,c.b*p/y,c.c*v/m,c.d*v/y,c.tx/m,c.ty/y),ru.invert(),h?ru.prepend(f.mapCoord):(d.uniforms.uMapCoord=f.mapCoord.toArray(!0),d.uniforms.uClampFrame=f.uClampFrame,d.uniforms.uClampOffset=f.uClampOffset),d.uniforms.uTransform=ru.toArray(!0),d.uniforms.uColor=T1(r.tint,r.worldAlpha,d.uniforms.uColor,u.alphaMode),d.uniforms.translationMatrix=r.transform.worldTransform.toArray(!0),d.uniforms.uSampler=l,n.shader.bind(d),n.geometry.bind(i),this.state.blendMode=x1(r.blendMode,u.alphaMode),n.state.set(this.state),n.geometry.draw(this.renderer.gl.TRIANGLES,6,0)},e}(Tc);/*!
|
||
|
* @pixi/mesh - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/mesh is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*//*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** */var ad=function(t,e){return ad=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},ad(t,e)};function Vp(t,e){ad(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var CF=function(){function t(e,r){this.uvBuffer=e,this.uvMatrix=r,this.data=null,this._bufferUpdateId=-1,this._textureUpdateId=-1,this._updateID=0}return t.prototype.update=function(e){if(!(!e&&this._bufferUpdateId===this.uvBuffer._updateID&&this._textureUpdateId===this.uvMatrix._updateID)){this._bufferUpdateId=this.uvBuffer._updateID,this._textureUpdateId=this.uvMatrix._updateID;var r=this.uvBuffer.data;(!this.data||this.data.length!==r.length)&&(this.data=new Float32Array(r.length)),this.uvMatrix.multiplyUvs(r,this.data),this._updateID++}},t}(),Ff=new _e,T0=new bu,Ys=function(t){Vp(e,t);function e(r,n,i,o){o===void 0&&(o=_n.TRIANGLES);var a=t.call(this)||this;return a.geometry=r,a.shader=n,a.state=i||Do.for2d(),a.drawMode=o,a.start=0,a.size=0,a.uvs=null,a.indices=null,a.vertexData=new Float32Array(1),a.vertexDirty=-1,a._transformID=-1,a._roundPixels=Ft.ROUND_PIXELS,a.batchUvs=null,a}return Object.defineProperty(e.prototype,"geometry",{get:function(){return this._geometry},set:function(r){this._geometry!==r&&(this._geometry&&(this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose()),this._geometry=r,this._geometry&&this._geometry.refCount++,this.vertexDirty=-1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uvBuffer",{get:function(){return this.geometry.buffers[1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"verticesBuffer",{get:function(){return this.geometry.buffers[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"material",{get:function(){return this.shader},set:function(r){this.shader=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(r){this.state.blendMode=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(r){this._roundPixels!==r&&(this._transformID=-1),this._roundPixels=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tint",{get:function(){return"tint"in this.shader?this.shader.tint:null},set:function(r){this.shader.tint=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"texture",{get:function(){return"texture"in this.shader?this.shader.texture:null},set:function(r){this.shader.texture=r},enumerable:!1,configurable:!0}),e.prototype._render=function(r){var n=this.geometry.buffers[0].data,i=this.shader;i.batchable&&this.drawMode===_n.TRIANGLES&&n.length<e.BATCHABLE_SIZE*2?this._renderToBatch(r):this._renderDefault(r)},e.prototype._renderDefault=function(r){var n=this.shader;n.alpha=this.worldAlpha,n.update&&n.update(),r.batch.flush(),n.uniforms.translationMatrix=this.transform.worldTransform.toArray(!0),r.shader.bind(n),r.state.set(this.state),r.geometry.bind(this.geometry,n),r.geometry.draw(this.drawMode,this.size,this.start,this.geometry.instanceCount)},e.prototype._renderToBatch=function(r){var n=this.geometry,i=this.shader;i.uvMatrix&&(i.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=n.indexBuffer.data,this._tintRGB=i._tintRGB,this._texture=i.texture;var o=this.material.pluginName;r.batch.setObjectRenderer(r.plugins[o]),r.plugins[o].render(this)},e.prototype.calculateVertices=function(){var r=this.geometry,n=r.buffers[0],i=n.data,o=n._updateID;if(!(o===this.vertexDirty&&this._transformID===this.transform._worldID)){this._transformID=this.transform._worldID,this.vertexData.length!==i.length&&(this.vertexData=new Float32Array(i.length));for(var a=this.transform.worldTransform,s=a.a,l=a.b,u=a.c,c=a.d,f=a.tx,h=a.ty,d=this.vertexData,p=0;p<d.length/2;p++){var v=i[p*2],m=i[p*2+1];d[p*2]=s*v+u*m+f,d[p
|
||
|
uniform vec4 uColor;
|
||
|
|
||
|
uniform sampler2D uSampler;
|
||
|
|
||
|
void main(void)
|
||
|
{
|
||
|
gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;
|
||
|
}
|
||
|
`,NF=`attribute vec2 aVertexPosition;
|
||
|
attribute vec2 aTextureCoord;
|
||
|
|
||
|
uniform mat3 projectionMatrix;
|
||
|
uniform mat3 translationMatrix;
|
||
|
uniform mat3 uTextureMatrix;
|
||
|
|
||
|
varying vec2 vTextureCoord;
|
||
|
|
||
|
void main(void)
|
||
|
{
|
||
|
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
||
|
vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;
|
||
|
}
|
||
|
`,Ks=function(t){Vp(e,t);function e(r,n){var i=this,o={uSampler:r,alpha:1,uTextureMatrix:or.IDENTITY,uColor:new Float32Array([1,1,1,1])};return n=Object.assign({tint:16777215,alpha:1,pluginName:"batch"},n),n.uniforms&&Object.assign(o,n.uniforms),i=t.call(this,n.program||fl.from(NF,RF),o)||this,i._colorDirty=!1,i.uvMatrix=new vp(r),i.batchable=n.program===void 0,i.pluginName=n.pluginName,i.tint=n.tint,i.alpha=n.alpha,i}return Object.defineProperty(e.prototype,"texture",{get:function(){return this.uniforms.uSampler},set:function(r){this.uniforms.uSampler!==r&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!r.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=r,this.uvMatrix.texture=r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this._alpha},set:function(r){r!==this._alpha&&(this._alpha=r,this._colorDirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tint",{get:function(){return this._tint},set:function(r){r!==this._tint&&(this._tint=r,this._tintRGB=(r>>16)+(r&65280)+((r&255)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),e.prototype.update=function(){if(this._colorDirty){this._colorDirty=!1;var r=this.texture.baseTexture;T1(this._tint,this._alpha,this.uniforms.uColor,r.alphaMode)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)},e}(Di),Cc=function(t){Vp(e,t);function e(r,n,i){var o=t.call(this)||this,a=new hr(r),s=new hr(n,!0),l=new hr(i,!0,!0);return o.addAttribute("aVertexPosition",a,2,!1,Mt.FLOAT).addAttribute("aTextureCoord",s,2,!1,Mt.FLOAT).addIndex(l),o._updateId=-1,o}return Object.defineProperty(e.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0}),e}(cl);/*!
|
||
|
* @pixi/text-bitmap - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/text-bitmap is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*//*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** */var sd=function(t,e){return sd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},sd(t,e)};function PF(t,e){sd(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Ku=function(){function t(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]}return t}(),SF=function(){function t(){}return t.test=function(e){return typeof e=="string"&&e.indexOf("info face=")===0},t.parse=function(e){var r=e.match(/^[a-z]+\s+.+$/gm),n={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(var i in r){var o=r[i].match(/^[a-z]+/gm)[0],a=r[i].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),s={};for(var l in a){var u=a[l].split("="),c=u[0],f=u[1].replace(/"/gm,""),h=parseFloat(f),d=isNaN(h)?f:h;s[c]=d}n[o].push(s)}var p=new Ku;return n.info.forEach(function(v){return p.info.push({face:v.face,size:parseInt(v.size,10)})}),n.common.forEach(function(v){return p.common.push({lineHeight:parseInt(v.lineHeight,10)})}),n.page.forEach(function(v){return p.page.push({id:parseInt(v.id,10),file:v.file})}),n.char.forEach(function(v){return p.char.push({id:parseInt(v.id,10),page:parseInt(v.page,10),x:parseInt(v.x,10),y:parseInt(v.y,10),width:parseInt(v.width,10),height:parseInt(v.height,10),xoffset:parseInt(v.xoffset,10),yoffset:parseInt(v.yoffset,10),xadvance:parseInt(v.xadvance,10)})}),n.kerning.forEach(function(v){return p.kerning.push({first:parseInt(v.first,10),second:parseInt(v.second,10),amount:parseInt(v.amount,10)})}),n.distanceField.forEach(function(v){return p.distanceField.push({distanceRange:parseInt(v.distanceRange,10),fieldType:v.fieldType})}),p},t}(),ld=function(){function t(){}return t.test=function(e){return e instanceof XMLDocument&&e.getElementsByTagName("page").length&&e.getElementsByTagName("info")[0].getAttribute("face")!==null},t.parse=function(e){for(var r=new Ku,n=e.getElementsByTagName("info"),i=e.getElementsByTagName("common"),o=e.getElementsByTagName("page"),a=e.getElementsByTagName("char"),s=e.getElementsByTagName("kerning"),l=e.getElementsByTagName("distanceField"),u=0;u<n.length;u++)r.info.push({face:n[u].getAttribute("face"),size:parseInt(n[u].getAttribute("size"),10)});for(var u=0;u<i.length;u++)r.common.push({lineHeight:parseInt(i[u].getAttribute("lineHeight"),10)});for(var u=0;u<o.length;u++)r.page.push({id:parseInt(o[u].getAttribute("id"),10)||0,file:o[u].getAttribute("file")});for(var u=0;u<a.length;u++){var c=a[u];r.char.push({id:parseInt(c.getAttribute("id"),10),page:parseInt(c.getAttribute("page"),10)||0,x:parseInt(c.getAttribute("x"),10),y:parseInt(c.getAttribute("y"),10),width:parseInt(c.getAttribute("width"),10),height:parseInt(c.getAttribute("height"),10),xoffset:parseInt(c.getAttribute("xoffset"),10),yoffset:parseInt(c.getAttribute("yoffset"),10),xadvance:parseInt(c.getAttribute("xadvance"),10)})}for(var u=0;u<s.length;u++)r.kerning.push({first:parseInt(s[u].getAttribute("first"),10),second:parseInt(s[u].getAttribute("second"),10),amount:parseInt(s[u].getAttribute("amount"),10)});for(var u=0;u<l.length;u++)r.distanceField.push({fieldType:l[u].getAttribute("fieldType"),distanceRange:parseInt(l[u].getAttribute("distanceRange"),10)});return r},t}(),AF=function(){function t(){}return t.test=function(e){if(typeof e=="string"&&e.indexOf("<font>")>-1){var r=new globalThis.DOMParser().parseFromString(e,"text/xml");return ld.test(r)}return!1},t.parse=function(e){var r=new globalThis.DOMParser().parseFromString(e,"text/xml");return ld.parse(r)},t}(),Lf=[SF,ld,AF];function sx(t){for(var e=0;e<Lf.length;e++)if(Lf[e].test(t))return Lf[e];return null}function OF(t,e,r,n,i,o){var a=r.fill;if(Array.isArray(a)){if(a.length===1)return a[0]}else return a;var s,l=r.dropShadow?r.dropShadowDistance:0,u=r.padding||0,c=t.width/n-l-u*2,f=t.height/n-l-u*2,h=a.slice(),d=r.fillGradientStops.slice();if(!d.length)for(var p=h.length+1,v=1;v<p;++
|
||
|
varying vec2 vTextureCoord;\r
|
||
|
uniform sampler2D uSampler;\r
|
||
|
\r
|
||
|
// Tint\r
|
||
|
uniform vec4 uColor;\r
|
||
|
\r
|
||
|
// on 2D applications fwidth is screenScale / glyphAtlasScale * distanceFieldRange\r
|
||
|
uniform float uFWidth;\r
|
||
|
\r
|
||
|
void main(void) {\r
|
||
|
\r
|
||
|
// To stack MSDF and SDF we need a non-pre-multiplied-alpha texture.\r
|
||
|
vec4 texColor = texture2D(uSampler, vTextureCoord);\r
|
||
|
\r
|
||
|
// MSDF\r
|
||
|
float median = texColor.r + texColor.g + texColor.b -\r
|
||
|
min(texColor.r, min(texColor.g, texColor.b)) -\r
|
||
|
max(texColor.r, max(texColor.g, texColor.b));\r
|
||
|
// SDF\r
|
||
|
median = min(median, texColor.a);\r
|
||
|
\r
|
||
|
float screenPxDistance = uFWidth * (median - 0.5);\r
|
||
|
float alpha = clamp(screenPxDistance + 0.5, 0.0, 1.0);\r
|
||
|
\r
|
||
|
// NPM Textures, NPM outputs\r
|
||
|
gl_FragColor = vec4(uColor.rgb, uColor.a * alpha);\r
|
||
|
\r
|
||
|
}\r
|
||
|
`,MF=`// Mesh material default fragment\r
|
||
|
attribute vec2 aVertexPosition;\r
|
||
|
attribute vec2 aTextureCoord;\r
|
||
|
\r
|
||
|
uniform mat3 projectionMatrix;\r
|
||
|
uniform mat3 translationMatrix;\r
|
||
|
uniform mat3 uTextureMatrix;\r
|
||
|
\r
|
||
|
varying vec2 vTextureCoord;\r
|
||
|
\r
|
||
|
void main(void)\r
|
||
|
{\r
|
||
|
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\r
|
||
|
\r
|
||
|
vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\r
|
||
|
}\r
|
||
|
`,BF=[],kF=[],w0=[];(function(t){PF(e,t);function e(r,n){n===void 0&&(n={});var i=t.call(this)||this;i._tint=16777215;var o=Object.assign({},e.styleDefaults,n),a=o.align,s=o.tint,l=o.maxWidth,u=o.letterSpacing,c=o.fontName,f=o.fontSize;if(!ra.available[c])throw new Error('Missing BitmapFont "'+c+'"');return i._activePagesMeshData=[],i._textWidth=0,i._textHeight=0,i._align=a,i._tint=s,i._fontName=c,i._fontSize=f||ra.available[c].size,i.text=r,i._maxWidth=l,i._maxLineHeight=0,i._letterSpacing=u,i._anchor=new ua(function(){i.dirty=!0},i,0,0),i._roundPixels=Ft.ROUND_PIXELS,i.dirty=!0,i._resolution=Ft.RESOLUTION,i._autoResolution=!0,i._textureCache={},i}return e.prototype.updateText=function(){for(var r,n=ra.available[this._fontName],i=this._fontSize/n.size,o=new _e,a=[],s=[],l=[],u=this._text.replace(/(?:\r\n|\r)/g,`
|
||
|
`)||" ",c=lx(u),f=this._maxWidth*n.size/this._fontSize,h=n.distanceFieldType==="none"?BF:kF,d=null,p=0,v=0,m=0,y=-1,g=0,b=0,T=0,w=0,x=0;x<c.length;x++){var R=c[x],I=_u(R);if(/(?:\s)/.test(R)&&(y=x,g=p,w++),R==="\r"||R===`
|
||
|
`){s.push(p),l.push(-1),v=Math.max(v,p),++m,++b,o.x=0,o.y+=n.lineHeight,d=null,w=0;continue}var C=n.chars[I];if(!!C){d&&C.kerning[d]&&(o.x+=C.kerning[d]);var S=w0.pop()||{texture:Wt.EMPTY,line:0,charCode:0,prevSpaces:0,position:new _e};S.texture=C.texture,S.line=m,S.charCode=I,S.position.x=o.x+C.xOffset+this._letterSpacing/2,S.position.y=o.y+C.yOffset,S.prevSpaces=w,a.push(S),p=S.position.x+Math.max(C.xAdvance,C.texture.orig.width),o.x+=C.xAdvance+this._letterSpacing,T=Math.max(T,C.yOffset+C.texture.height),d=I,y!==-1&&f>0&&o.x>f&&(++b,ui(a,1+y-b,1+x-y),x=y,y=-1,s.push(g),l.push(a.length>0?a[a.length-1].prevSpaces:0),v=Math.max(v,g),m++,o.x=0,o.y+=n.lineHeight,d=null,w=0)}}var L=c[c.length-1];L!=="\r"&&L!==`
|
||
|
`&&(/(?:\s)/.test(L)&&(p=g),s.push(p),v=Math.max(v,p),l.push(-1));for(var H=[],x=0;x<=m;x++){var G=0;this._align==="right"?G=v-s[x]:this._align==="center"?G=(v-s[x])/2:this._align==="justify"&&(G=l[x]<0?0:(v-s[x])/l[x]),H.push(G)}for(var k=a.length,Y={},D=[],K=this._activePagesMeshData,x=0;x<K.length;x++)h.push(K[x]);for(var x=0;x<k;x++){var ht=a[x].texture,bt=ht.baseTexture.uid;if(!Y[bt]){var W=h.pop();if(!W){var ft=new Cc,gt=void 0,_t=void 0;n.distanceFieldType==="none"?(gt=new Ks(Wt.EMPTY),_t=Ut.NORMAL):(gt=new Ks(Wt.EMPTY,{program:fl.from(MF,LF),uniforms:{uFWidth:0}}),_t=Ut.NORMAL_NPM);var V=new Ys(ft,gt);V.blendMode=_t,W={index:0,indexCount:0,vertexCount:0,uvsCount:0,total:0,mesh:V,vertices:null,uvs:null,indices:null}}W.index=0,W.indexCount=0,W.vertexCount=0,W.uvsCount=0,W.total=0;var Z=this._textureCache;Z[bt]=Z[bt]||new Wt(ht.baseTexture),W.mesh.texture=Z[bt],W.mesh.tint=this._tint,D.push(W),Y[bt]=W}Y[bt].total++}for(var x=0;x<K.length;x++)D.indexOf(K[x])===-1&&this.removeChild(K[x].mesh);for(var x=0;x<D.length;x++)D[x].mesh.parent!==this&&this.addChild(D[x].mesh);this._activePagesMeshData=D;for(var x in Y){var W=Y[x],lt=W.total;if(!(((r=W.indices)===null||r===void 0?void 0:r.length)>6*lt)||W.vertices.length<Ys.BATCHABLE_SIZE*2)W.vertices=new Float32Array(4*2*lt),W.uvs=new Float32Array(4*2*lt),W.indices=new Uint16Array(6*lt);else for(var ut=W.total,Gt=W.vertices,it=ut*4*2;it<Gt.length;it++)Gt[it]=0;W.mesh.size=6*lt}for(var x=0;x<k;x++){var R=a[x],kt=R.position.x+H[R.line]*(this._align==="justify"?R.prevSpaces:1);this._roundPixels&&(kt=Math.round(kt));var Vt=kt*i,Xt=R.position.y*i,ht=R.texture,N=Y[ht.baseTexture.uid],A=ht.frame,$=ht._uvs,j=N.index++;N.indices[j*6+0]=0+j*4,N.indices[j*6+1]=1+j*4,N.indices[j*6+2]=2+j*4,N.indices[j*6+3]=0+j*4,N.indices[j*6+4]=2+j*4,N.indices[j*6+5]=3+j*4,N.vertices[j*8+0]=Vt,N.vertices[j*8+1]=Xt,N.vertices[j*8+2]=Vt+A.width*i,N.vertices[j*8+3]=Xt,N.vertices[j*8+4]=Vt+A.width*i,N.vertices[j*8+5]=Xt+A.height*i,N.vertices[j*8+6]=Vt,N.vertices[j*8+7]=Xt+A.height*i,N.uvs[j*8+0]=$.x0,N.uvs[j*8+1]=$.y0,N.uvs[j*8+2]=$.x1,N.uvs[j*8+3]=$.y1,N.uvs[j*8+4]=$.x2,N.uvs[j*8+5]=$.y2,N.uvs[j*8+6]=$.x3,N.uvs[j*8+7]=$.y3}this._textWidth=v*i,this._textHeight=(o.y+n.lineHeight)*i;for(var x in Y){var W=Y[x];if(this.anchor.x!==0||this.anchor.y!==0)for(var q=0,st=this._textWidth*this.anchor.x,mt=this._textHeight*this.anchor.y,at=0;at<W.total;at++)W.vertices[q++]-=st,W.vertices[q++]-=mt,W.vertices[q++]-=st,W.vertices[q++]-=mt,W.vertices[q++]-=st,W.vertices[q++]-=mt,W.vertices[q++]-=st,W.vertices[q++]-=mt;this._maxLineHeight=T*i;var ct=W.mesh.geometry.getBuffer("aVertexPosition"),rt=W.mesh.geometry.getBuffer("aTextureCoord"),Et=W.mesh.geometry.getIndex();ct.data=W.vertices,rt.data=W.uvs,Et.data=W.indices,ct.update(),rt.update(),Et.update()}for(var x=0;x<a.length;x++)w0.push(a[x])},e.prototype.updateTransform=function(){this.validate(),this.containerUpdateTransform()},e.prototype._render=function(r){this._autoResolution&&this._resolution!==r.resolution&&(this._resolution=r.resolution,this.dirty=!0);var n=ra.available[this._fontName],i=n.distanceFieldRange,o=n.distanceFieldType,a=n.size;if(o!=="none")for(var s=this.worldTransform,l=s.a,u=s.b,c=s.c,f=s.d,h=Math.sqrt(l*l+u*u),d=Math.sqrt(c*c+f*f),p=(Math.abs(h)+Math.abs(d))/2,v=this._fontSize/a,m=0,y=this._activePagesMeshData;m<y.length;m++){var g=y[m];g.mesh.shader.uniforms.uFWidth=p*i*v*this._resolution}t.prototype._render.call(this,r)},e.prototype.getLocalBounds=function(){return this.validate(),t.prototype.getLocalBounds.call(this)},e.prototype.validate=function(){this.dirty&&(this.updateText(),this.dirty=!1)},Object.defineProperty(e.prototype,"tint",{get:function(){return this._tint},set:function(r){if(this._tint!==r){this._tint=r;for(var n=0;n<this._activePagesMeshData.length;n++)this._activePagesMeshData[n].mesh.tint=r}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this._align},set:function(r){this._align!==r&&(this._align=r,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,
|
||
|
* @pixi/filter-alpha - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/filter-alpha is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*//*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** */var ud=function(t,e){return ud=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},ud(t,e)};function DF(t,e){ud(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var HF=`varying vec2 vTextureCoord;
|
||
|
|
||
|
uniform sampler2D uSampler;
|
||
|
uniform float uAlpha;
|
||
|
|
||
|
void main(void)
|
||
|
{
|
||
|
gl_FragColor = texture2D(uSampler, vTextureCoord) * uAlpha;
|
||
|
}
|
||
|
`;(function(t){DF(e,t);function e(r){r===void 0&&(r=1);var n=t.call(this,aU,HF,{uAlpha:1})||this;return n.alpha=r,n}return Object.defineProperty(e.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(r){this.uniforms.uAlpha=r},enumerable:!1,configurable:!0}),e})(Zi);/*!
|
||
|
* @pixi/filter-blur - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/filter-blur is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*//*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** */var cd=function(t,e){return cd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},cd(t,e)};function ux(t,e){cd(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var VF=`
|
||
|
attribute vec2 aVertexPosition;
|
||
|
|
||
|
uniform mat3 projectionMatrix;
|
||
|
|
||
|
uniform float strength;
|
||
|
|
||
|
varying vec2 vBlurTexCoords[%size%];
|
||
|
|
||
|
uniform vec4 inputSize;
|
||
|
uniform vec4 outputFrame;
|
||
|
|
||
|
vec4 filterVertexPosition( void )
|
||
|
{
|
||
|
vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;
|
||
|
|
||
|
return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
|
||
|
}
|
||
|
|
||
|
vec2 filterTextureCoord( void )
|
||
|
{
|
||
|
return aVertexPosition * (outputFrame.zw * inputSize.zw);
|
||
|
}
|
||
|
|
||
|
void main(void)
|
||
|
{
|
||
|
gl_Position = filterVertexPosition();
|
||
|
|
||
|
vec2 textureCoord = filterTextureCoord();
|
||
|
%blur%
|
||
|
}`;function $F(t,e){var r=Math.ceil(t/2),n=VF,i="",o;e?o="vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * strength, 0.0);":o="vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * strength);";for(var a=0;a<t;a++){var s=o.replace("%index%",a.toString());s=s.replace("%sampleIndex%",a-(r-1)+".0"),i+=s,i+=`
|
||
|
`}return n=n.replace("%blur%",i),n=n.replace("%size%",t.toString()),n}var jF={5:[.153388,.221461,.250301],7:[.071303,.131514,.189879,.214607],9:[.028532,.067234,.124009,.179044,.20236],11:[.0093,.028002,.065984,.121703,.175713,.198596],13:[.002406,.009255,.027867,.065666,.121117,.174868,.197641],15:[489e-6,.002403,.009246,.02784,.065602,.120999,.174697,.197448]},XF=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{"," gl_FragColor = vec4(0.0);"," %blur%","}"].join(`
|
||
|
`);function zF(t){for(var e=jF[t],r=e.length,n=XF,i="",o="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;",a,s=0;s<t;s++){var l=o.replace("%index%",s.toString());a=s,s>=r&&(a=t-s-1),l=l.replace("%value%",e[a].toString()),i+=l,i+=`
|
||
|
`}return n=n.replace("%blur%",i),n=n.replace("%size%",t.toString()),n}/*!
|
||
|
* @pixi/constants - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/constants is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/var E0;(function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"})(E0||(E0={}));var I0;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"})(I0||(I0={}));var C0;(function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"})(C0||(C0={}));var R0;(function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"})(R0||(R0={}));var N0;(function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(N0||(N0={}));var P0;(function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(P0||(P0={}));var S0;(function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(S0||(S0={}));var A0;(function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"})(A0||(A0={}));var O0;(function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"})(O0||(O0={}));var U0;(function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"})(U0||(U0={}));var F0;(function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(F0||(F0={}));var L0;(function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"})(L0||(L0={}));var M0;(function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(M0||(M0={}));var Zs;(function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BL
|
||
|
* @pixi/filter-color-matrix - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/filter-color-matrix is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*//*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** */var fd=function(t,e){return fd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},fd(t,e)};function WF(t,e){fd(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var YF=`varying vec2 vTextureCoord;
|
||
|
uniform sampler2D uSampler;
|
||
|
uniform float m[20];
|
||
|
uniform float uAlpha;
|
||
|
|
||
|
void main(void)
|
||
|
{
|
||
|
vec4 c = texture2D(uSampler, vTextureCoord);
|
||
|
|
||
|
if (uAlpha == 0.0) {
|
||
|
gl_FragColor = c;
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
// Un-premultiply alpha before applying the color matrix. See issue #3539.
|
||
|
if (c.a > 0.0) {
|
||
|
c.rgb /= c.a;
|
||
|
}
|
||
|
|
||
|
vec4 result;
|
||
|
|
||
|
result.r = (m[0] * c.r);
|
||
|
result.r += (m[1] * c.g);
|
||
|
result.r += (m[2] * c.b);
|
||
|
result.r += (m[3] * c.a);
|
||
|
result.r += m[4];
|
||
|
|
||
|
result.g = (m[5] * c.r);
|
||
|
result.g += (m[6] * c.g);
|
||
|
result.g += (m[7] * c.b);
|
||
|
result.g += (m[8] * c.a);
|
||
|
result.g += m[9];
|
||
|
|
||
|
result.b = (m[10] * c.r);
|
||
|
result.b += (m[11] * c.g);
|
||
|
result.b += (m[12] * c.b);
|
||
|
result.b += (m[13] * c.a);
|
||
|
result.b += m[14];
|
||
|
|
||
|
result.a = (m[15] * c.r);
|
||
|
result.a += (m[16] * c.g);
|
||
|
result.a += (m[17] * c.b);
|
||
|
result.a += (m[18] * c.a);
|
||
|
result.a += m[19];
|
||
|
|
||
|
vec3 rgb = mix(c.rgb, result.rgb, uAlpha);
|
||
|
|
||
|
// Premultiply alpha again.
|
||
|
rgb *= result.a;
|
||
|
|
||
|
gl_FragColor = vec4(rgb, result.a);
|
||
|
}
|
||
|
`,$0=function(t){WF(e,t);function e(){var r=this,n={m:new Float32Array([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]),uAlpha:1};return r=t.call(this,D1,YF,n)||this,r.alpha=1,r}return e.prototype._loadMatrix=function(r,n){n===void 0&&(n=!1);var i=r;n&&(this._multiply(i,this.uniforms.m,r),i=this._colorMatrix(i)),this.uniforms.m=i},e.prototype._multiply=function(r,n,i){return r[0]=n[0]*i[0]+n[1]*i[5]+n[2]*i[10]+n[3]*i[15],r[1]=n[0]*i[1]+n[1]*i[6]+n[2]*i[11]+n[3]*i[16],r[2]=n[0]*i[2]+n[1]*i[7]+n[2]*i[12]+n[3]*i[17],r[3]=n[0]*i[3]+n[1]*i[8]+n[2]*i[13]+n[3]*i[18],r[4]=n[0]*i[4]+n[1]*i[9]+n[2]*i[14]+n[3]*i[19]+n[4],r[5]=n[5]*i[0]+n[6]*i[5]+n[7]*i[10]+n[8]*i[15],r[6]=n[5]*i[1]+n[6]*i[6]+n[7]*i[11]+n[8]*i[16],r[7]=n[5]*i[2]+n[6]*i[7]+n[7]*i[12]+n[8]*i[17],r[8]=n[5]*i[3]+n[6]*i[8]+n[7]*i[13]+n[8]*i[18],r[9]=n[5]*i[4]+n[6]*i[9]+n[7]*i[14]+n[8]*i[19]+n[9],r[10]=n[10]*i[0]+n[11]*i[5]+n[12]*i[10]+n[13]*i[15],r[11]=n[10]*i[1]+n[11]*i[6]+n[12]*i[11]+n[13]*i[16],r[12]=n[10]*i[2]+n[11]*i[7]+n[12]*i[12]+n[13]*i[17],r[13]=n[10]*i[3]+n[11]*i[8]+n[12]*i[13]+n[13]*i[18],r[14]=n[10]*i[4]+n[11]*i[9]+n[12]*i[14]+n[13]*i[19]+n[14],r[15]=n[15]*i[0]+n[16]*i[5]+n[17]*i[10]+n[18]*i[15],r[16]=n[15]*i[1]+n[16]*i[6]+n[17]*i[11]+n[18]*i[16],r[17]=n[15]*i[2]+n[16]*i[7]+n[17]*i[12]+n[18]*i[17],r[18]=n[15]*i[3]+n[16]*i[8]+n[17]*i[13]+n[18]*i[18],r[19]=n[15]*i[4]+n[16]*i[9]+n[17]*i[14]+n[18]*i[19]+n[19],r},e.prototype._colorMatrix=function(r){var n=new Float32Array(r);return n[4]/=255,n[9]/=255,n[14]/=255,n[19]/=255,n},e.prototype.brightness=function(r,n){var i=[r,0,0,0,0,0,r,0,0,0,0,0,r,0,0,0,0,0,1,0];this._loadMatrix(i,n)},e.prototype.tint=function(r,n){var i=r>>16&255,o=r>>8&255,a=r&255,s=[i/255,0,0,0,0,0,o/255,0,0,0,0,0,a/255,0,0,0,0,0,1,0];this._loadMatrix(s,n)},e.prototype.greyscale=function(r,n){var i=[r,r,r,0,0,r,r,r,0,0,r,r,r,0,0,0,0,0,1,0];this._loadMatrix(i,n)},e.prototype.blackAndWhite=function(r){var n=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(n,r)},e.prototype.hue=function(r,n){r=(r||0)/180*Math.PI;var i=Math.cos(r),o=Math.sin(r),a=Math.sqrt,s=1/3,l=a(s),u=i+(1-i)*s,c=s*(1-i)-l*o,f=s*(1-i)+l*o,h=s*(1-i)+l*o,d=i+s*(1-i),p=s*(1-i)-l*o,v=s*(1-i)-l*o,m=s*(1-i)+l*o,y=i+s*(1-i),g=[u,c,f,0,0,h,d,p,0,0,v,m,y,0,0,0,0,0,1,0];this._loadMatrix(g,n)},e.prototype.contrast=function(r,n){var i=(r||0)+1,o=-.5*(i-1),a=[i,0,0,0,o,0,i,0,0,o,0,0,i,0,o,0,0,0,1,0];this._loadMatrix(a,n)},e.prototype.saturate=function(r,n){r===void 0&&(r=0);var i=r*2/3+1,o=(i-1)*-.5,a=[i,o,o,0,0,o,i,o,0,0,o,o,i,0,0,0,0,0,1,0];this._loadMatrix(a,n)},e.prototype.desaturate=function(){this.saturate(-1)},e.prototype.negative=function(r){var n=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(n,r)},e.prototype.sepia=function(r){var n=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(n,r)},e.prototype.technicolor=function(r){var n=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0];this._loadMatrix(n,r)},e.prototype.polaroid=function(r){var n=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0];this._loadMatrix(n,r)},e.prototype.toBGR=function(r){var n=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(n,r)},e.prototype.kodachrome=function(r){var n=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0];this._loadMatrix(n,r)},e.prototype.browni=function(r){var n=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0];this._loadMatrix(n,r)},e.prototype.vintage=function(r){var n=[.6279345635605994,.32
|
||
|
* @pixi/filter-displacement - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/filter-displacement is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*//*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** */var hd=function(t,e){return hd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},hd(t,e)};function KF(t,e){hd(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var ZF=`varying vec2 vFilterCoord;
|
||
|
varying vec2 vTextureCoord;
|
||
|
|
||
|
uniform vec2 scale;
|
||
|
uniform mat2 rotation;
|
||
|
uniform sampler2D uSampler;
|
||
|
uniform sampler2D mapSampler;
|
||
|
|
||
|
uniform highp vec4 inputSize;
|
||
|
uniform vec4 inputClamp;
|
||
|
|
||
|
void main(void)
|
||
|
{
|
||
|
vec4 map = texture2D(mapSampler, vFilterCoord);
|
||
|
|
||
|
map -= 0.5;
|
||
|
map.xy = scale * inputSize.zw * (rotation * map.xy);
|
||
|
|
||
|
gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw));
|
||
|
}
|
||
|
`,qF=`attribute vec2 aVertexPosition;
|
||
|
|
||
|
uniform mat3 projectionMatrix;
|
||
|
uniform mat3 filterMatrix;
|
||
|
|
||
|
varying vec2 vTextureCoord;
|
||
|
varying vec2 vFilterCoord;
|
||
|
|
||
|
uniform vec4 inputSize;
|
||
|
uniform vec4 outputFrame;
|
||
|
|
||
|
vec4 filterVertexPosition( void )
|
||
|
{
|
||
|
vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;
|
||
|
|
||
|
return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
|
||
|
}
|
||
|
|
||
|
vec2 filterTextureCoord( void )
|
||
|
{
|
||
|
return aVertexPosition * (outputFrame.zw * inputSize.zw);
|
||
|
}
|
||
|
|
||
|
void main(void)
|
||
|
{
|
||
|
gl_Position = filterVertexPosition();
|
||
|
vTextureCoord = filterTextureCoord();
|
||
|
vFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0) ).xy;
|
||
|
}
|
||
|
`;(function(t){KF(e,t);function e(r,n){var i=this,o=new or;return r.renderable=!1,i=t.call(this,qF,ZF,{mapSampler:r._texture,filterMatrix:o,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])})||this,i.maskSprite=r,i.maskMatrix=o,n==null&&(n=20),i.scale=new _e(n,n),i}return e.prototype.apply=function(r,n,i,o){this.uniforms.filterMatrix=r.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;var a=this.maskSprite.worldTransform,s=Math.sqrt(a.a*a.a+a.b*a.b),l=Math.sqrt(a.c*a.c+a.d*a.d);s!==0&&l!==0&&(this.uniforms.rotation[0]=a.a/s,this.uniforms.rotation[1]=a.b/s,this.uniforms.rotation[2]=a.c/l,this.uniforms.rotation[3]=a.d/l),r.applyFilter(this,n,i,o)},Object.defineProperty(e.prototype,"map",{get:function(){return this.uniforms.mapSampler},set:function(r){this.uniforms.mapSampler=r},enumerable:!1,configurable:!0}),e})(Zi);/*!
|
||
|
* @pixi/filter-fxaa - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/filter-fxaa is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*//*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** */var dd=function(t,e){return dd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},dd(t,e)};function JF(t,e){dd(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var QF=`
|
||
|
attribute vec2 aVertexPosition;
|
||
|
|
||
|
uniform mat3 projectionMatrix;
|
||
|
|
||
|
varying vec2 v_rgbNW;
|
||
|
varying vec2 v_rgbNE;
|
||
|
varying vec2 v_rgbSW;
|
||
|
varying vec2 v_rgbSE;
|
||
|
varying vec2 v_rgbM;
|
||
|
|
||
|
varying vec2 vFragCoord;
|
||
|
|
||
|
uniform vec4 inputSize;
|
||
|
uniform vec4 outputFrame;
|
||
|
|
||
|
vec4 filterVertexPosition( void )
|
||
|
{
|
||
|
vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;
|
||
|
|
||
|
return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
|
||
|
}
|
||
|
|
||
|
void texcoords(vec2 fragCoord, vec2 inverseVP,
|
||
|
out vec2 v_rgbNW, out vec2 v_rgbNE,
|
||
|
out vec2 v_rgbSW, out vec2 v_rgbSE,
|
||
|
out vec2 v_rgbM) {
|
||
|
v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP;
|
||
|
v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP;
|
||
|
v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP;
|
||
|
v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP;
|
||
|
v_rgbM = vec2(fragCoord * inverseVP);
|
||
|
}
|
||
|
|
||
|
void main(void) {
|
||
|
|
||
|
gl_Position = filterVertexPosition();
|
||
|
|
||
|
vFragCoord = aVertexPosition * outputFrame.zw;
|
||
|
|
||
|
texcoords(vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);
|
||
|
}
|
||
|
`,tL=`varying vec2 v_rgbNW;
|
||
|
varying vec2 v_rgbNE;
|
||
|
varying vec2 v_rgbSW;
|
||
|
varying vec2 v_rgbSE;
|
||
|
varying vec2 v_rgbM;
|
||
|
|
||
|
varying vec2 vFragCoord;
|
||
|
uniform sampler2D uSampler;
|
||
|
uniform highp vec4 inputSize;
|
||
|
|
||
|
|
||
|
/**
|
||
|
Basic FXAA implementation based on the code on geeks3d.com with the
|
||
|
modification that the texture2DLod stuff was removed since it's
|
||
|
unsupported by WebGL.
|
||
|
|
||
|
--
|
||
|
|
||
|
From:
|
||
|
https://github.com/mitsuhiko/webgl-meincraft
|
||
|
|
||
|
Copyright (c) 2011 by Armin Ronacher.
|
||
|
|
||
|
Some rights reserved.
|
||
|
|
||
|
Redistribution and use in source and binary forms, with or without
|
||
|
modification, are permitted provided that the following conditions are
|
||
|
met:
|
||
|
|
||
|
* Redistributions of source code must retain the above copyright
|
||
|
notice, this list of conditions and the following disclaimer.
|
||
|
|
||
|
* Redistributions in binary form must reproduce the above
|
||
|
copyright notice, this list of conditions and the following
|
||
|
disclaimer in the documentation and/or other materials provided
|
||
|
with the distribution.
|
||
|
|
||
|
* The names of the contributors may not be used to endorse or
|
||
|
promote products derived from this software without specific
|
||
|
prior written permission.
|
||
|
|
||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||
|
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||
|
*/
|
||
|
|
||
|
#ifndef FXAA_REDUCE_MIN
|
||
|
#define FXAA_REDUCE_MIN (1.0/ 128.0)
|
||
|
#endif
|
||
|
#ifndef FXAA_REDUCE_MUL
|
||
|
#define FXAA_REDUCE_MUL (1.0 / 8.0)
|
||
|
#endif
|
||
|
#ifndef FXAA_SPAN_MAX
|
||
|
#define FXAA_SPAN_MAX 8.0
|
||
|
#endif
|
||
|
|
||
|
//optimized version for mobile, where dependent
|
||
|
//texture reads can be a bottleneck
|
||
|
vec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 inverseVP,
|
||
|
vec2 v_rgbNW, vec2 v_rgbNE,
|
||
|
vec2 v_rgbSW, vec2 v_rgbSE,
|
||
|
vec2 v_rgbM) {
|
||
|
vec4 color;
|
||
|
vec3 rgbNW = texture2D(tex, v_rgbNW).xyz;
|
||
|
vec3 rgbNE = texture2D(tex, v_rgbNE).xyz;
|
||
|
vec3 rgbSW = texture2D(tex, v_rgbSW).xyz;
|
||
|
vec3 rgbSE = texture2D(tex, v_rgbSE).xyz;
|
||
|
vec4 texColor = texture2D(tex, v_rgbM);
|
||
|
vec3 rgbM = texColor.xyz;
|
||
|
vec3 luma = vec3(0.299, 0.587, 0.114);
|
||
|
float lumaNW = dot(rgbNW, luma);
|
||
|
float lumaNE = dot(rgbNE, luma);
|
||
|
float lumaSW = dot(rgbSW, luma);
|
||
|
float lumaSE = dot(rgbSE, luma);
|
||
|
float lumaM = dot(rgbM, luma);
|
||
|
float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE)));
|
||
|
float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE)));
|
||
|
|
||
|
mediump vec2 dir;
|
||
|
dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));
|
||
|
dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE));
|
||
|
|
||
|
float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) *
|
||
|
(0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN);
|
||
|
|
||
|
float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce);
|
||
|
dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX),
|
||
|
max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),
|
||
|
dir * rcpDirMin)) * inverseVP;
|
||
|
|
||
|
vec3 rgbA = 0.5 * (
|
||
|
texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz +
|
||
|
texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz);
|
||
|
vec3 rgbB = rgbA * 0.5 + 0.25 * (
|
||
|
texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz +
|
||
|
texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz);
|
||
|
|
||
|
float lumaB = dot(rgbB, luma);
|
||
|
if ((lumaB < lumaMin) || (lumaB > lumaMax))
|
||
|
color = vec4(rgbA, texColor.a);
|
||
|
else
|
||
|
color = vec4(rgbB, texColor.a);
|
||
|
return color;
|
||
|
}
|
||
|
|
||
|
void main() {
|
||
|
|
||
|
vec4 color;
|
||
|
|
||
|
color = fxaa(uSampler, vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);
|
||
|
|
||
|
gl_FragColor = color;
|
||
|
}
|
||
|
`;(function(t){JF(e,t);function e(){return t.call(this,QF,tL)||this}return e})(Zi);/*!
|
||
|
* @pixi/filter-noise - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/filter-noise is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*//*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** */var pd=function(t,e){return pd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},pd(t,e)};function eL(t,e){pd(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var rL=`precision highp float;
|
||
|
|
||
|
varying vec2 vTextureCoord;
|
||
|
varying vec4 vColor;
|
||
|
|
||
|
uniform float uNoise;
|
||
|
uniform float uSeed;
|
||
|
uniform sampler2D uSampler;
|
||
|
|
||
|
float rand(vec2 co)
|
||
|
{
|
||
|
return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);
|
||
|
}
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
vec4 color = texture2D(uSampler, vTextureCoord);
|
||
|
float randomValue = rand(gl_FragCoord.xy * uSeed);
|
||
|
float diff = (randomValue - 0.5) * uNoise;
|
||
|
|
||
|
// Un-premultiply alpha before applying the color matrix. See issue #3539.
|
||
|
if (color.a > 0.0) {
|
||
|
color.rgb /= color.a;
|
||
|
}
|
||
|
|
||
|
color.r += diff;
|
||
|
color.g += diff;
|
||
|
color.b += diff;
|
||
|
|
||
|
// Premultiply alpha again.
|
||
|
color.rgb *= color.a;
|
||
|
|
||
|
gl_FragColor = color;
|
||
|
}
|
||
|
`;(function(t){eL(e,t);function e(r,n){r===void 0&&(r=.5),n===void 0&&(n=Math.random());var i=t.call(this,D1,rL,{uNoise:0,uSeed:0})||this;return i.noise=r,i.seed=n,i}return Object.defineProperty(e.prototype,"noise",{get:function(){return this.uniforms.uNoise},set:function(r){this.uniforms.uNoise=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"seed",{get:function(){return this.uniforms.uSeed},set:function(r){this.uniforms.uSeed=r},enumerable:!1,configurable:!0}),e})(Zi);/*!
|
||
|
* @pixi/mixin-cache-as-bitmap - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/mixin-cache-as-bitmap is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*//*!
|
||
|
* @pixi/constants - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/constants is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/var j0;(function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"})(j0||(j0={}));var X0;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"})(X0||(X0={}));var z0;(function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"})(z0||(z0={}));var W0;(function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"})(W0||(W0={}));var Y0;(function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(Y0||(Y0={}));var K0;(function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(K0||(K0={}));var Z0;(function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(Z0||(Z0={}));var q0;(function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"})(q0||(q0={}));var J0;(function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"})(J0||(J0={}));var Q0;(function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"})(Q0||(Q0={}));var ty;(function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(ty||(ty={}));var ey;(function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"})(ey||(ey={}));var ry;(function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(ry||(ry={}));var ny;(function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BL
|
||
|
* @pixi/mixin-get-child-by-name - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/mixin-get-child-by-name is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/ar.prototype.name=null;jn.prototype.getChildByName=function(e,r){for(var n=0,i=this.children.length;n<i;n++)if(this.children[n].name===e)return this.children[n];if(r)for(var n=0,i=this.children.length;n<i;n++){var o=this.children[n];if(!!o.getChildByName){var a=this.children[n].getChildByName(e,!0);if(a)return a}}return null};/*!
|
||
|
* @pixi/mixin-get-global-position - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/mixin-get-global-position is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/ar.prototype.getGlobalPosition=function(e,r){return e===void 0&&(e=new _e),r===void 0&&(r=!1),this.parent?this.parent.toGlobal(this.position,e,r):(e.x=this.position.x,e.y=this.position.y),e};/*!
|
||
|
* @pixi/mesh-extras - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/mesh-extras is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*//*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** */var md=function(t,e){return md=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},md(t,e)};function Ma(t,e){md(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var iL=function(t){Ma(e,t);function e(r,n,i,o){r===void 0&&(r=100),n===void 0&&(n=100),i===void 0&&(i=10),o===void 0&&(o=10);var a=t.call(this)||this;return a.segWidth=i,a.segHeight=o,a.width=r,a.height=n,a.build(),a}return e.prototype.build=function(){for(var r=this.segWidth*this.segHeight,n=[],i=[],o=[],a=this.segWidth-1,s=this.segHeight-1,l=this.width/a,u=this.height/s,c=0;c<r;c++){var f=c%this.segWidth,h=c/this.segWidth|0;n.push(f*l,h*u),i.push(f/a,h/s)}for(var d=a*s,c=0;c<d;c++){var p=c%a,v=c/a|0,m=v*this.segWidth+p,y=v*this.segWidth+p+1,g=(v+1)*this.segWidth+p,b=(v+1)*this.segWidth+p+1;o.push(m,y,g,y,b,g)}this.buffers[0].data=new Float32Array(n),this.buffers[1].data=new Float32Array(i),this.indexBuffer.data=new Uint16Array(o),this.buffers[0].update(),this.buffers[1].update(),this.indexBuffer.update()},e}(Cc),oL=function(t){Ma(e,t);function e(r,n,i){r===void 0&&(r=200),i===void 0&&(i=0);var o=t.call(this,new Float32Array(n.length*4),new Float32Array(n.length*4),new Uint16Array((n.length-1)*6))||this;return o.points=n,o._width=r,o.textureScale=i,o.build(),o}return Object.defineProperty(e.prototype,"width",{get:function(){return this._width},enumerable:!1,configurable:!0}),e.prototype.build=function(){var r=this.points;if(!!r){var n=this.getBuffer("aVertexPosition"),i=this.getBuffer("aTextureCoord"),o=this.getIndex();if(!(r.length<1)){n.data.length/4!==r.length&&(n.data=new Float32Array(r.length*4),i.data=new Float32Array(r.length*4),o.data=new Uint16Array((r.length-1)*6));var a=i.data,s=o.data;a[0]=0,a[1]=0,a[2]=0,a[3]=1;for(var l=0,u=r[0],c=this._width*this.textureScale,f=r.length,h=0;h<f;h++){var d=h*4;if(this.textureScale>0){var p=u.x-r[h].x,v=u.y-r[h].y,m=Math.sqrt(p*p+v*v);u=r[h],l+=m/c}else l=h/(f-1);a[d]=l,a[d+1]=0,a[d+2]=l,a[d+3]=1}for(var y=0,h=0;h<f-1;h++){var d=h*2;s[y++]=d,s[y++]=d+1,s[y++]=d+2,s[y++]=d+2,s[y++]=d+1,s[y++]=d+3}i.update(),o.update(),this.updateVertices()}}},e.prototype.updateVertices=function(){var r=this.points;if(!(r.length<1)){for(var n=r[0],i,o=0,a=0,s=this.buffers[0].data,l=r.length,u=0;u<l;u++){var c=r[u],f=u*4;u<r.length-1?i=r[u+1]:i=c,a=-(i.x-n.x),o=i.y-n.y;var h=Math.sqrt(o*o+a*a),d=this.textureScale>0?this.textureScale*this._width/2:this._width/2;o/=h,a/=h,o*=d,a*=d,s[f]=c.x+o,s[f+1]=c.y+a,s[f+2]=c.x-o,s[f+3]=c.y-a,n=c}this.buffers[0].update()}},e.prototype.update=function(){this.textureScale>0?this.build():this.updateVertices()},e}(Cc);(function(t){Ma(e,t);function e(r,n,i){i===void 0&&(i=0);var o=this,a=new oL(r.height,n,i),s=new Ks(r);return i>0&&(r.baseTexture.wrapMode=li.REPEAT),o=t.call(this,a,s)||this,o.autoUpdate=!0,o}return e.prototype._render=function(r){var n=this.geometry;(this.autoUpdate||n._width!==this.shader.texture.height)&&(n._width=this.shader.texture.height,n.update()),t.prototype._render.call(this,r)},e})(Ys);var aL=function(t){Ma(e,t);function e(r,n,i){var o=this,a=new iL(r.width,r.height,n,i),s=new Ks(Wt.WHITE);return o=t.call(this,a,s)||this,o.texture=r,o.autoResize=!0,o}return e.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID;var r=this.geometry,n=this.shader.texture,i=n.width,o=n.height;this.autoResize&&(r.width!==i||r.height!==o)&&(r.width=this.shader.texture.width,r.height=this.shader.texture.height,r.build())},Object.defineProperty(e.prototype,"texture",{get:function(){return this.shader.texture},set:function(r){this.shader.texture!==r&&(this.shader.texture=r,this._textureID=-1,r.baseTexture.valid?this.textureUpdated():r.once("update",this.textureUpdated,this))},enumerable:!1,configurable:!0}),e.prototype._render=function(r){this._textureID!==this.shader.texture._updateID&&this.textureUpdated(),t.prototype._render.call(this,r)},e
|
||
|
* @pixi/sprite-animated - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* @pixi/sprite-animated is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*//*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** */var gd=function(t,e){return gd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},gd(t,e)};function sL(t,e){gd(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}(function(t){sL(e,t);function e(r,n){n===void 0&&(n=!0);var i=t.call(this,r[0]instanceof Wt?r[0]:r[0].texture)||this;return i._textures=null,i._durations=null,i._autoUpdate=n,i._isConnectedToTicker=!1,i.animationSpeed=1,i.loop=!0,i.updateAnchor=!1,i.onComplete=null,i.onFrameChange=null,i.onLoop=null,i._currentTime=0,i._playing=!1,i._previousFrame=null,i.textures=r,i}return e.prototype.stop=function(){!this._playing||(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(gr.shared.remove(this.update,this),this._isConnectedToTicker=!1))},e.prototype.play=function(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(gr.shared.add(this.update,this,vi.HIGH),this._isConnectedToTicker=!0))},e.prototype.gotoAndStop=function(r){this.stop();var n=this.currentFrame;this._currentTime=r,n!==this.currentFrame&&this.updateTexture()},e.prototype.gotoAndPlay=function(r){var n=this.currentFrame;this._currentTime=r,n!==this.currentFrame&&this.updateTexture(),this.play()},e.prototype.update=function(r){if(!!this._playing){var n=this.animationSpeed*r,i=this.currentFrame;if(this._durations!==null){var o=this._currentTime%1*this._durations[this.currentFrame];for(o+=n/60*1e3;o<0;)this._currentTime--,o+=this._durations[this.currentFrame];var a=Math.sign(this.animationSpeed*r);for(this._currentTime=Math.floor(this._currentTime);o>=this._durations[this.currentFrame];)o-=this._durations[this.currentFrame]*a,this._currentTime+=a;this._currentTime+=o/this._durations[this.currentFrame]}else this._currentTime+=n;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):i!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFrame<i?this.onLoop():this.animationSpeed<0&&this.currentFrame>i&&this.onLoop()),this.updateTexture())}},e.prototype.updateTexture=function(){var r=this.currentFrame;this._previousFrame!==r&&(this._previousFrame=r,this._texture=this._textures[r],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))},e.prototype.destroy=function(r){this.stop(),t.prototype.destroy.call(this,r),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},e.fromFrames=function(r){for(var n=[],i=0;i<r.length;++i)n.push(Wt.from(r[i]));return new e(n)},e.fromImages=function(r){for(var n=[],i=0;i<r.length;++i)n.push(Wt.from(r[i]));return new e(n)},Object.defineProperty(e.prototype,"totalFrames",{get:function(){return this._textures.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textures",{get:function(){return this._textures},set:function(r){if(r[0]instanceof Wt)this._textures=r,this._durations=null;else{this._textures=[],this._durations=[];for(var n=0;n<r.length;n++)this._textures.push(r[n].texture),this._durations.push(r[n].time)}this._previousFrame=null,this.gotoAndStop(0),this.updateTexture()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentFrame",{get:function(){var r=Math.floor(this._currentTime)%this._textures.length;return r<0&&(r+=this._textures.length),r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"playing",{get:function(){return this._playing},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(r){r!==this._autoUpdate&&(this._autoUpdate=r,!this._autoUpdate&&this._isConnectedToTicker?(gr.shared.r
|
||
|
* pixi.js - v6.4.2
|
||
|
* Compiled Thu, 02 Jun 2022 15:39:26 UTC
|
||
|
*
|
||
|
* pixi.js is licensed under the MIT License.
|
||
|
* http://www.opensource.org/licenses/mit-license
|
||
|
*/qi.registerPlugin("accessibility",XU);qi.registerPlugin("extract",i5);qi.registerPlugin("interaction",ZU);qi.registerPlugin("particle",j5);qi.registerPlugin("prepare",yF);qi.registerPlugin("batch",cU);qi.registerPlugin("tilingSprite",IF);Xn.registerPlugin(GF);Xn.registerPlugin(_5);Xn.registerPlugin(B5);Xn.registerPlugin(H5);Xn.registerPlugin(_F);Ic.registerPlugin(O3);Ic.registerPlugin(h5);var lL=Pt({props:{style:nt(String,Object,Array),classes:nt(Object),onInit:{type:Function,required:!0},id:{type:String,required:!0},onContainerResized:Function,onHotReload:Function},setup(t){const e=It(null),r=new ResizeObserver(o),n=It(null);Wn(()=>{var s;const a=n.value;a!=null&&(r.observe(a),e.value=new Ic({resizeTo:a,backgroundAlpha:0}),(s=n.value)==null||s.appendChild(e.value.view),t.onInit(e.value)),o(),t.onHotReload&&cr(t.onHotReload)}),il(()=>{var a;(a=e.value)==null||a.destroy()});let i=!0;function o(){i&&(i=!1,cr(()=>{var a;n.value!=null&&t.onContainerResized&&(t.onContainerResized(n.value.getBoundingClientRect()),(a=e.value)==null||a.resize()),i=!0}))}return document.fonts.ready.then(o),{unref:E,resizeListener:n}}});function uL(t,e,r,n,i,o){return B(),Q("div",{ref:"resizeListener",class:Qt(["resize-listener",t.unref(t.classes)]),style:ce(t.unref(t.style))},null,6)}var cL=ne(lL,[["render",uL],["__scopeId","data-v-f218157a"]]);const fL=Symbol("Particles");function hL(t){return pr(()=>{var i,o;const e=(i=t==null?void 0:t())!=null?i:{};e.id=Sr("particles-"),e.type=fL,e[ir]=cL,e.app=Gr(null),e.addEmitter=a=>{const s=e;return s.app.value?Promise.resolve(new Ce(s.app.value.stage,a)):new Promise(l=>{r.push({resolve:l,config:a})})};let r=[];function n(a){e.app.value=a,r.forEach(({resolve:s,config:l})=>s(new Ce(a.stage,l))),r=[]}return e.onContainerResized=(o=e.onContainerResized)==null?void 0:o.bind(e),e[fr]=function(){const{id:a,style:s,classes:l,onContainerResized:u,onHotReload:c}=this;return{id:a,style:E(s),classes:l,onContainerResized:u,onHotReload:c,onInit:n}},e})}window.upgradeConfig=EU;const dL=Symbol("Reset");function fx(t){return pr(()=>{const e=t();return e.id=Sr("reset-"),e.type=dL,e.reset=function(){var n;const r=i=>{i&&typeof i=="object"&&(Ss in i?i[Ss].value=i[As]:!(i instanceof O)&&!oe(i)&&Object.values(i).forEach(o=>r(o)))};E(e.thingsToReset).forEach(r),vr.emit("reset",e),(n=e.onReset)==null||n.call(e)},J(e,"thingsToReset"),e})}const iu={};vr.on("removeLayer",t=>{var e;(e=iu[t.id])==null||e.call(iu),iu[t.id]=void 0});const hx=Pt({__name:"Resource",props:{resource:null,color:null},setup(t){const e=t,r=tt(()=>hi(e.resource));return(n,i)=>(B(),Q("h2",{style:ce({color:t.color,"text-shadow":"0px 0px 10px "+t.color})},re(E(r)),5))}}),pL={key:0},vL={key:1},mL=dt(", "),gL=U("br",null,null,-1),yL=U("br",null,null,-1),dx=Pt({__name:"MainDisplay",props:{resource:null,color:null,classes:null,style:null,effectDisplay:null},setup(t){const r=Ae(t),n=ko(r.effectDisplay),i=tt(()=>O.lt(r.resource.value,"1e1000"));return(o,a)=>(B(),Q("div",null,[E(i)?(B(),Q("span",pL,"You have ")):yt("",!0),P(hx,{resource:t.resource,color:t.color||"white"},null,8,["resource","color"]),dt(" "+re(t.resource.displayName),1),E(n)?(B(),Q("span",vL,[mL,(B(),Rt(Te(E(n))))])):yt("",!0),gL,yL]))}});function yd(t,e){return J(e,"display"),J(e,"classes"),J(e,"style"),J(e,"direction"),ve(e,"direction",Ne.Up),J(e,"xoffset"),J(e,"yoffset"),cr(()=>{e.pinnable&&("pinned"in t?(console.error("Cannot add pinnable tooltip to element that already has a property called 'pinned'"),e.pinnable=!1):t.pinned=e.pinned=nr(!1));const r=t[ir];t[ir]=Me;const n=t[fr].bind(t);t[fr]=function(){const{display:o,classes:a,style:s,direction:l,xoffset:u,yoffset:c,pinned:f}=this;return{element:{[ir]:r,[fr]:n},display:o,classes:a,style:E(s),direction:l,xoffset:u,yoffset:c,pinned:f}}.bind(e)}),e}function bL(t,e,r){const n=nn(t),i=nn(e),o=r==null?void 0:nn(r);return{apply:a=>O.add(a,E(n)),revert:a=>O.sub(a,E(n)),enabled:o,description:e==null?void 0:le(()=>P("div",{class:"modifier-container"},[P("span",{class:"modifier-amount"},[O.gte(E(n),0)?"+":"",je(E(n))]),E(i)?P("span",{class:"modifier-descr
|
||
|
|
||
|
Reward: The dinosaur is now your friend (you can max Farm Points).`,shouldEarn:function(){return O.gte(On.points.value,1)},onComplete(){console.log("Bork bork bork!")}})),s=[i,o,a],l=BP(()=>({rows:2,cols:2,getStartState(c){return c},getStyle(c,f){return{backgroundColor:`#${Number(f)*1234%999999}`}},getTitle(c){let f="";return c==="101"?f="top":c==="102"?f="bottom":c==="201"?f="left":c==="202"&&(f="right"),le(()=>P(Me,yr({display:JSON.stringify(this.cells[c].style)},{[f]:!0}),{default:()=>[P("h3",null,[dt("Gridable #"),c])]}))},getDisplay(c,f){return String(f)},getCanClick(){return O.eq(we.points.value,10)},onClick(c,f){this.cells[c].state=Number(f)+1}})),u=le(()=>{let c,f,h;return P(Ot,null,[P(vs,null,{default:()=>[P(Me,{display:i.tooltip,bottom:!0},Gf(c=Ge(i))?c:{default:()=>[c]}),P(Me,{display:o.tooltip,bottom:!0},Gf(f=Ge(o))?f:{default:()=>[f]}),P(Me,{display:a.tooltip,bottom:!0},Gf(h=Ge(a))?h:{default:()=>[h]})]}),hn(l)])});return{id:fy,color:t,name:e,points:r,achievements:s,grid:l,treeNode:n,display:u}}),we=ol("main",()=>{const t=Os(10),e=k_(t),r=iN(t),n=tt(()=>{if(!dn.generatorUpgrade.bought.value)return new O(0);let l=new O(3.19);return dn.lollipopMultiplierUpgrade.bought.value&&(l=l.times(dn.lollipopMultiplierEffect.value)),l});vr.on("update",l=>{t.value=O.add(t.value,O.times(n.value,l))});const i=sN(t,n),{openModal:o,modal:a}=y_(_d),s=D_(()=>({nodes:[[dn.treeNode],[On.treeNode,dn.spook]],leftSideNodes:[_d.treeNode,dn.h],branches:[{startNode:On.treeNode,endNode:dn.treeNode,stroke:"blue","stroke-width":"25px",style:{filter:"blur(5px)"}}],onReset(){t.value=ue(this.resettingNode.value)===ue(dn.treeNode)?0:10,e.value=t.value,r.value=t.value},resetPropagation:EN}));return{name:"Tree",display:le(()=>P(Ot,null,[wt.devSpeed===0?P("div",null,[dt("Game Paused")]):null,wt.devSpeed&&wt.devSpeed!==1?P("div",null,[dt("Dev Speed: "),je(wt.devSpeed),dt("x")]):null,wt.offlineTime?P("div",null,[dt("Offline Time: "),pc(wt.offlineTime)]):null,P("div",null,[O.lt(t.value,"1e1000")?P("span",null,[dt("You have ")]):null,P("h2",null,[je(t.value)]),O.lt(t.value,"1e1e6")?P("span",null,[dt(" points")]):null]),O.gt(n.value,0)?P("div",null,[dt("("),i.value,dt(")")]):null,P(Fr,null,null),P("button",{onClick:o},[dt("open achievements")]),Ge(a),Ge(s),P(nN,{height:"200px",style:"margin: 10px auto; display: block"},null)])),points:t,best:e,total:r,oomps:i,tree:s,showAchievements:o}}),w6=t=>[we,On,dn,_d],jp=tt(()=>O.gt(we.points.value,25));function E6(t,e){}var vx=Object.freeze(Object.defineProperty({__proto__:null,main:we,getInitialLayers:w6,hasWon:jp,fixOldSave:E6},Symbol.toStringTag,{value:"Module"}));const dl=t=>(Cn("data-v-4a50ce42"),t=t(),Rn(),t),I6={class:"game-over-modal-header"},C6=["src","alt"],R6={class:"game-over-modal-title"},N6=dl(()=>U("h2",null,"Congratulations!",-1)),P6={key:0},S6=dl(()=>U("br",null,null,-1)),A6=dl(()=>U("div",null," Please check the Discord to discuss the game or to check for new content updates! ",-1)),O6=dl(()=>U("br",null,null,-1)),U6=["href"],F6=dl(()=>U("span",{class:"material-icons game-over-modal-discord"},"discord",-1)),L6=Pt({__name:"GameOverScreen",setup(t){const{title:e,logo:r,discordName:n,discordLink:i,versionNumber:o,versionTitle:a}=Ie,s=tt(()=>pc(wt.timePlayed)),l=tt(()=>jp.value&&!wt.keepGoing),u=Mr(wt,"autosave");function c(){wt.keepGoing=!0}function f(){To(va())}return(h,d)=>(B(),Rt(Ki,{"model-value":E(l)},{header:Bt(()=>[U("div",I6,[E(r)?(B(),Q("img",{key:0,class:"game-over-modal-logo",src:E(r),alt:E(e)},null,8,C6)):yt("",!0),U("div",R6,[N6,U("h4",null,"You've beaten "+re(E(e))+" v"+re(E(o))+": "+re(E(a)),1)])])]),body:Bt(({shown:p})=>[p?(B(),Q("div",P6,[U("div",null,"It took you "+re(E(s))+" to beat the game.",1),S6,A6,O6,U("div",null,[U("a",{href:E(i),class:"game-over-modal-discord-link"},[F6,dt(" "+re(E(n)),1)],8,U6)]),P(Xr,{title:"Autosave",modelValue:E(u),"onUpdate:modelValue":d[0]||(d[0]=v=>oe(u)?u.value=v:null)},null,8,["modelValue"])])):yt("",!0)]),footer:Bt(()=>[U("div",{class:"game-over-footer"},[U("button",{onClick:c,class:"button"},"Keep Going"),U("button",{onClick:f,class:"button d
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return(r=t[Symbol.iterator]()).next.bind(r)}try{self["workbox:core:6.5.2"]&&_()}catch{}var Df=function(){var t=this;this.promise=new Promise(function(e,r){t.resolve=e,t.reject=r})};function Hf(t,e){var r=location.href;return new URL(t,r).href===new URL(e,r).href}var qa=function(t,e){this.type=t,Object.assign(this,e)};function su(t,e,r){return r?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}function tM(){}var eM={type:"SKIP_WAITING"};function dy(t,e){if(!e)return t&&t.then?t.then(tM):Promise.resolve()}var rM=function(t){var e,r;function n(s,l){var u,c;return l===void 0&&(l={}),(u=t.call(this)||this).nn={},u.tn=0,u.rn=new Df,u.en=new Df,u.on=new Df,u.un=0,u.an=new Set,u.cn=function(){var f=u.fn,h=f.installing;u.tn>0||!Hf(h.scriptURL,u.sn.toString())||performance.now()>u.un+6e4?(u.vn=h,f.removeEventListener("updatefound",u.cn)):(u.hn=h,u.an.add(h),u.rn.resolve(h)),++u.tn,h.addEventListener("statechange",u.ln)},u.ln=function(f){var h=u.fn,d=f.target,p=d.state,v=d===u.vn,m={sw:d,isExternal:v,originalEvent:f};!v&&u.mn&&(m.isUpdate=!0),u.dispatchEvent(new qa(p,m)),p==="installed"?u.wn=self.setTimeout(function(){p==="installed"&&h.waiting===d&&u.dispatchEvent(new qa("waiting",m))},200):p==="activating"&&(clearTimeout(u.wn),v||u.en.resolve(d))},u.dn=function(f){var h=u.hn,d=h!==navigator.serviceWorker.controller;u.dispatchEvent(new qa("controlling",{isExternal:d,originalEvent:f,sw:h,isUpdate:u.mn})),d||u.on.resolve(h)},u.gn=(c=function(f){var h=f.data,d=f.ports,p=f.source;return su(u.getSW(),function(){u.an.has(p)&&u.dispatchEvent(new qa("message",{data:h,originalEvent:f,ports:d,sw:p}))})},function(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];try{return Promise.resolve(c.apply(this,f))}catch(d){return Promise.reject(d)}}),u.sn=s,u.nn=l,navigator.serviceWorker.addEventListener("message",u.gn),u}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i,o,a=n.prototype;return a.register=function(s){var l=(s===void 0?{}:s).immediate,u=l!==void 0&&l;try{var c=this;return function(f,h){var d=f();return d&&d.then?d.then(h):h(d)}(function(){if(!u&&document.readyState!=="complete")return dy(new Promise(function(f){return window.addEventListener("load",f)}))},function(){return c.mn=Boolean(navigator.serviceWorker.controller),c.yn=c.pn(),su(c.bn(),function(f){c.fn=f,c.yn&&(c.hn=c.yn,c.en.resolve(c.yn),c.on.resolve(c.yn),c.yn.addEventListener("statechange",c.ln,{once:!0}));var h=c.fn.waiting;return h&&Hf(h.scriptURL,c.sn.toString())&&(c.hn=h,Promise.resolve().then(function(){c.dispatchEvent(new qa("waiting",{sw:h,wasWaitingBeforeRegister:!0}))}).then(function(){})),c.hn&&(c.rn.resolve(c.hn),c.an.add(c.hn)),c.fn.addEventListener("updatefound",c.cn),navigator.serviceWorker.addEventListener("controllerchange",c.dn),c.fn})})}catch(f){return Promise.reject(f)}},a.update=function(){try{return this.fn?dy(this.fn.update()):void 0}catch(s){return Promise.reject(s)}},a.getSW=function(){return this.hn!==void 0?Promise.resolve(this.hn):this.rn.promise},a.messageSW=function(s){try{return su(this.getSW(),function(l){return xd(l,s)})}catch(l){return Promise.reject(l)}},a.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&xd(this.fn.waiting,eM)},a.pn=function(){var s=navigator.serviceWorker.controller;return s&&Hf(s.scriptURL,this.sn.toString())?s:void 0},a.bn=function(){try{var s=this;return function(l,u){try{var c=l()}catch(f){return u(f)}return c&&c.then?c.then(void 0,u):c}(function(){return su(navigator.serviceWorker.register(s.sn,s.nn),function(l){return s.un=performance.now(),l})},function(l){throw l})}catch(l){return Promise.reject(l)}},i=n,(o=[{key:"active",get:function(){return this.en.promise}},{key:"controlling",get:function(){return this.on.promise}}])&&J6(i.prototype,o),n}(function(){function t(){this.Pn=new Map}var e=t.prototype;return e.addEventListener=function(r,n){this.Sn(r).add(n)},e.removeEventListener=function(r,n){this.Sn(r).delete(n)},e.dispatchEvent=function(r){r.target=this;for(var
|
||
|
Learn more at www.moddingtree.com`,"font-weight: bold; font-size: 24px; color: #A3BE8C; background: #2E3440; padding: 4px 8px; border-radius: 8px;","padding: 4px;"),await EE();const{globalBus:t,startGameLoop:e}=await xu(()=>Promise.resolve().then(function(){return TE}),void 0),r=window.vue=Yd(q6);t.emit("setupVue",r),r.mount("#app"),cr(()=>{const n=cp(),{updateServiceWorker:i}=iM({onNeedRefresh(){n.info("New content available, click or reload to update.",{timeout:!1,closeOnClick:!1,draggable:!1,icon:{iconClass:"material-icons",iconChildren:"refresh",iconTag:"i"},rtl:!1,onClick(){i()}})},onOfflineReady(){n.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(o){o&&setInterval(o.update,60*60*1e3)}})}),e()});window.projInfo=Ie;
|