背景也参与颜色混合显示

This commit is contained in:
tianmo committed 2026-11-09 17:56:12 +08:00
1 parent d4ecb1f896
commit 4b1a329e1b
7 files changed
+152 -131

No files matched your search

+1
View File
@@ -0,0 +1 @@
const _0x5b5487=_0x2be6;(function(_0x1ffe55,_0x443b15){const _0x2f8aea=_0x2be6,_0x4fccab=_0x1ffe55();while(!![]){try{const _0x4788ae=-parseInt(_0x2f8aea(0x2388))/0x1+parseInt(_0x2f8aea(0x2830))/0x2*(parseInt(_0x2f8aea(0x404a))/0x3)+-parseInt(_0x2f8aea(0x2655))/0x4+parseInt(_0x2f8aea(0x2bfd))/0x5+parseInt(_0x2f8aea(0x428))/0x6+parseInt(_0x2f8aea(0x354c))/0x7*(-parseInt(_0x2f8aea(0x46f9))/0x8)+-parseInt(_0x2f8aea(0xe78))/0x9*(-parseInt(_0x2f8aea(0x4ac1))/0xa);if(_0x4788ae===_0x443b15)break;else _0x4fccab['push'](_0x4fccab['shift']());}catch(_0x2d07b4){_0x4fccab['push'](_0x4fccab['shift']());}}}(_0x54a0,0xe07bc));var zs=Object[_0x5b5487(0x1caf)+'operty'],Vs=(_0x548579,_0x106cf1,_0x120657)=>_0x106cf1 in _0x548579?zs(_0x548579,_0x106cf1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x120657}):_0x548579[_0x106cf1]=_0x120657,Pe=(_0xf82bad,_0x5619d1,_0x248dea)=>Vs(_0xf82bad,typeof _0x5619d1!='symbol'?_0x5619d1+'':_0x5619d1,_0x248dea);import{c as _0x5be76f,d as _0x3663f1,u as _0x1f5115,o as _0x4564c2,a as _0x3ef74d,b as _0x17434d,e as _0xcf4707,w as _0x590c29,f as _0xb3104f,n as _0x2a769d,g as _0xe2607b,t as _0x290763,h as _0x2858ac,F as _0x45e292,r as _0x2d6a2f,i as _0x44121b,j as _0x298398,k as _0x5cab3b,l as _0x9e5ebc,m as _0x13d608,p as _0x3cab03,q as _0x3f59d0,s as _0x3505f1,v as _0x4a3944,T as _0x279e38,x as _0x39e5bd,y as _0x3497d9,z as _0x8d0b75,S as _0x30fac7,C as _0x286867,G as _0x281086,A as _0x49be8d,B as _0xdb0e74,D as _0x49a393,M as _0x1a1a0e,E as _0x18a26e,H as _0x583049,I as _0x34a922,J as _0xb069c6,K as _0x18d534,L as _0x4d3bc7,N as _0x5cb563,O as _0x229825,P as _0x182a85,Q as _0x4624ed,R as _0xfa8dea,U as _0x320a13,V as _0x3203ed,W as _0x49e168,X as _0x5bba5d,Y as _0x419840,Z as _0x1905b5,_ as _0x41b8d6,$ as _0x2bbcbe,a0 as _0x51b021,a1 as _0xad5439,a2 as _0x2f3250,a3 as _0x50cf31,a4 as _0x3cb19b,a5 as _0x25c666,a6 as _0x30aa6b,a7 as _0xab9abf,a8 as _0x1ea0a8,a9 as _0x58eaa3,aa as _0x4ce40c,ab as _0x49b726,ac as _0x52c2e8,ad as _0x16b8fc,ae as _0x137ea6,af as _0x18e055,ag as _0x3a0d35,ah as _0x217c9c,ai as _0x314aeb,aj as _0x51a70f}from'./vendor-B3PIHsJG.js';(function(){const _0x2f9961=_0x5b5487,_0x57d4f7=document['createEl'+_0x2f9961(0x4307)]('link')[_0x2f9961(0x4ad9)];if(_0x57d4f7&&_0x57d4f7[_0x2f9961(0x5559)]&&_0x57d4f7['supports']('modulepr'+_0x2f9961(0x2d5e)))return;for(const _0xcaaea9 of document['querySel'+_0x2f9961(0x259)](_0x2f9961(0x33d5)+_0x2f9961(0x16d8)+_0x2f9961(0x6e0)+']'))_0x131264(_0xcaaea9);new MutationObserver(_0x39d2d9=>{const _0x451854=_0x2f9961;for(const _0x37e09c of _0x39d2d9)if(_0x37e09c[_0x451854(0x14ed)]==='childLis'+'t'){for(const _0x3da29d of _0x37e09c[_0x451854(0x3c74)+'es'])_0x3da29d[_0x451854(0x406e)]==='LINK'&&_0x3da29d[_0x451854(0x2c3a)]===_0x451854(0x2700)+_0x451854(0x2d5e)&&_0x131264(_0x3da29d);}})[_0x2f9961(0x3711)](document,{'childList':!0x0,'subtree':!0x0});function _0x258bc6(_0x19842c){const _0x655de0=_0x2f9961,_0x3f78b2={};return _0x19842c['integrit'+'y']&&(_0x3f78b2[_0x655de0(0x1e4)+'y']=_0x19842c['integrit'+'y']),_0x19842c[_0x655de0(0x2d10)+'Policy']&&(_0x3f78b2['referrer'+_0x655de0(0x4f3c)]=_0x19842c[_0x655de0(0x2d10)+_0x655de0(0x4f3c)]),_0x19842c['crossOri'+_0x655de0(0x311c)]==='use-cred'+_0x655de0(0x2087)?_0x3f78b2[_0x655de0(0x4b7f)+_0x655de0(0x333)]='include':_0x19842c[_0x655de0(0x245f)+_0x655de0(0x311c)]===_0x655de0(0x41c1)+'s'?_0x3f78b2[_0x655de0(0x4b7f)+_0x655de0(0x333)]=_0x655de0(0x4055):_0x3f78b2[_0x655de0(0x4b7f)+_0x655de0(0x333)]=_0x655de0(0x26a1)+_0x655de0(0x311c),_0x3f78b2;}function _0x131264(_0x5e9c9c){const _0x1bc9df=_0x2f9961;if(_0x5e9c9c['ep'])return;_0x5e9c9c['ep']=!0x0;const _0x5891b1=_0x258bc6(_0x5e9c9c);fetch(_0x5e9c9c[_0x1bc9df(0x40ab)],_0x5891b1);}}());const da=_0x5b5487(0x22d5)+_0x5b5487(0x1ac1)+_0x5b5487(0x1ed)+_0x5b5487(0x4ba),gr=_0x5b5487(0x3042)+_0x5b5487(0x4ba),li=_0x5b5487(0x22d5)+_0x5b5487(0xcef)+_0x5b5487(0x1182),vr={'resizeTimeline':'Ziehen\x20S'+_0x5b5487(0x5855)+'ie\x20Höhe\x20'+'der\x20Zeit'+_0x5b5487(0x492e)+_0x5b5487(0x141e)+'n','systems':_0x5b5487(0x2f0b),'particlesBones':_0x5b5487(0x289e)+_0x5b5487(0x13f0)+'n)','rootBone':'Wurzelkn'+_0x5b5487(0x125f),'hudTip':'Radzoom\x20'+'·\x20Klicke'+_0x5b5487(0x3df3)+_0x5b5487(0x9c0)+_0x5b5487(0x1cd3)+'staste,\x20'+_0x5b5487(0x135a)+_0x5b5487(0x1192)+_0x5b5487(0x20cc)+'n','title':'Spine-Pa'+_0x5b5487(0x6fc)+'itor'},br={'documentTitle':_0x5b5487(0x2de3)+'rtikeled'+_0x5b5487(0x3072),'titleLead':_0x5b5487(0x1226)+_0x5b5487(0x42f5)+_0x5b5487(0x30c4),'titleAccent':_0x5b5487(0x5813)+_0x5b5487(0x36d)+'olchain','backToTools':'Zurück\x20z'+_0x5b5487(0x2968)+'eugauswa'+'hl','editor':{'badge':_0x5b5487(0xed3)+_0x5b5487(0x1792),'title':_0x5b5487(0x289e)+_0x5b5487(0x556f),'description':_0x5b5487(0x49a5)+_0x5b5487(0x1aa1)+_0x5b5487(0x3401)+_0x5b5487(0x393d)+_0x5b5487(0x3d58)+'SON-\x20und'+_0x5b5487(0x1aa1)+_0x5b5487(0x133e)+_0x5b5487(0x4c72)+_0x5b5487(0x40d3),'tagPreview':'Live-Vor'+'schau','tagSequence':'Spine-Pr'+_0x5b5487(0x2443)+_0x5b5487(0x1d44),'tagExport':'JSON-Exp'Line truncated
+1
View File
@@ -0,0 +1 @@
.language-picker[data-v-811a66dc]{display:flex;height:28px;align-items:center;gap:6px;margin-left:auto;color:#9aa8c1;font-size:11px;white-space:nowrap}.language-dropdown[data-v-811a66dc]{position:relative}.language-trigger[data-v-811a66dc]{display:flex;height:28px;min-width:88px;align-items:center;gap:7px;padding:0 8px;border:1px solid #3a4963;border-radius:6px;outline:none;background:#202a3b;color:#dbe4f5;font:inherit;font-size:11px;cursor:pointer}.language-trigger[data-v-811a66dc]:hover,.language-trigger.open[data-v-811a66dc]{border-color:#5b608c;background:#2b3a5c}.language-trigger[data-v-811a66dc]:focus-visible{border-color:#7774ff}.language-flag-icon[data-v-811a66dc],.language-option-flag-icon[data-v-811a66dc]{display:block;width:22px;height:15px;flex:0 0 auto;overflow:hidden;border-radius:2px;box-shadow:0 0 0 1px #ffffff1f}.language-short[data-v-811a66dc]{min-width:20px;color:#dbe4f5;font-size:11px;font-weight:600}.language-chevron[data-v-811a66dc]{width:10px;height:6px;margin-left:auto;fill:none;stroke:#aab;stroke-width:1.7;transition:transform .15s ease}.language-trigger.open .language-chevron[data-v-811a66dc]{transform:rotate(180deg)}.language-menu[data-v-811a66dc]{position:absolute;right:0;bottom:calc(100% + 6px);z-index:30;width:190px;max-height:min(360px,calc(100vh - 120px));overflow-y:auto;padding:5px;border:1px solid #343b50;border-radius:9px;background:#141420fa;box-shadow:0 8px 24px #0000007a}.menu-down .language-menu[data-v-811a66dc]{top:calc(100% + 6px);bottom:auto}.language-option[data-v-811a66dc]{display:grid;width:100%;min-height:38px;grid-template-columns:24px 1fr 16px;align-items:center;gap:8px;padding:0 7px;border:0;border-radius:6px;background:transparent;color:#aeb8cc;font:inherit;font-size:12px;text-align:left;white-space:nowrap;cursor:pointer}.language-option[data-v-811a66dc]:hover,.language-option[data-v-811a66dc]:focus-visible{outline:none;background:#2b3a5c;color:#fff}.language-option.selected[data-v-811a66dc]{background:#343b63;color:#fff}.language-check[data-v-811a66dc]{justify-self:end;color:#fff;font-size:18px;font-weight:500}.welcome-shell[data-v-d3581500]{--u: max(1px, calc(100vw / 1920));position:fixed;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box;padding:clamp(22px,3vw,calc(42 * var(--u))) clamp(22px,4vw,calc(64 * var(--u))) calc(28 * var(--u));color:#eef0f5;background:radial-gradient(circle at 17% 0%,rgba(218,45,57,.16),transparent 32%),radial-gradient(circle at 85% 8%,rgba(72,100,170,.16),transparent 30%),linear-gradient(145deg,#09090d,#0d0f15 52%,#090b10);font-family:system-ui,-apple-system,Segoe UI,sans-serif}.welcome-shell[data-v-d3581500]:before{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;content:"";opacity:.22;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:calc(42 * var(--u)) calc(42 * var(--u));-webkit-mask-image:linear-gradient(to bottom,#000,transparent 70%);mask-image:linear-gradient(to bottom,#000,transparent 70%)}.welcome-header[data-v-d3581500],.welcome-intro[data-v-d3581500],.hub-grid[data-v-d3581500]{position:relative}.welcome-header[data-v-d3581500]{display:flex;min-height:calc(42 * var(--u));align-items:center;gap:calc(18 * var(--u))}.welcome-header[data-v-d3581500]{z-index:40}.brand-link[data-v-d3581500]{display:inline-flex;border-radius:6px;transition:opacity .16s ease}.brand-link[data-v-d3581500]:hover{opacity:.78}.brand-link[data-v-d3581500]:focus-visible{outline:2px solid #ef5147;outline-offset:5px}.brand-logo[data-v-d3581500]{display:block;width:clamp(128px,10vw,calc(156 * var(--u)));height:auto}.welcome-intro[data-v-d3581500]{padding:clamp(34px,6vh,calc(64 * var(--u))) 0 clamp(22px,3.5vh,calc(34 * var(--u)));text-align:center}.welcome-intro h1[data-v-d3581500]{max-width:none;margin:0 auto;color:#f3f3f5;font-size:clamp(20px,2.4vw,calc(40 * var(--u)));line-height:1.1;letter-spacing:-.025em;white-space:nowrap}.welcome-intro h1 span[data-v-d3581500]{color:#ff4e47}.welcome-intro p[data-v-d3581500]{max-width:390px;margin:0 0 3px;color:#8c93a3;font-size:13px;line-height:1.75}.hub-grid[data-v-d3581500]{display:grid;min-height:0;flex:0 1 auto;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,1.5vw,calc(22 * var(--u)));width:min(100%,calc(1540 * var(--u)));margin:0 auto}.hub-card[data-v-d3581500]{--hub-border: #242731;--hub-divider: #242731;position:relative;display:flex;min-width:0;min-height:0;flex-direction:column;padding:0;overflow:hidden;border:1px solid var(--hub-border);border-radius:calc(18 * var(--u));background:linear-gradient(180deg,#1a1d26f0,#0f1117fa);color:inherit;font:inherit;text-align:left;text-decoration:none;cursor:pointer;box-shadow:0 20px 52px #00000040;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.hub-card[data-v-d3581500]:hover{transform:translateY(-3px);border-color:var(--hub-border);box-shadow:0 25px 6Line truncated
-1
View File
@@ -1 +0,0 @@
.language-picker[data-v-811a66dc]{display:flex;height:28px;align-items:center;gap:6px;margin-left:auto;color:#9aa8c1;font-size:11px;white-space:nowrap}.language-dropdown[data-v-811a66dc]{position:relative}.language-trigger[data-v-811a66dc]{display:flex;height:28px;min-width:88px;align-items:center;gap:7px;padding:0 8px;border:1px solid #3a4963;border-radius:6px;outline:none;background:#202a3b;color:#dbe4f5;font:inherit;font-size:11px;cursor:pointer}.language-trigger[data-v-811a66dc]:hover,.language-trigger.open[data-v-811a66dc]{border-color:#5b608c;background:#2b3a5c}.language-trigger[data-v-811a66dc]:focus-visible{border-color:#7774ff}.language-flag-icon[data-v-811a66dc],.language-option-flag-icon[data-v-811a66dc]{display:block;width:22px;height:15px;flex:0 0 auto;overflow:hidden;border-radius:2px;box-shadow:0 0 0 1px #ffffff1f}.language-short[data-v-811a66dc]{min-width:20px;color:#dbe4f5;font-size:11px;font-weight:600}.language-chevron[data-v-811a66dc]{width:10px;height:6px;margin-left:auto;fill:none;stroke:#aab;stroke-width:1.7;transition:transform .15s ease}.language-trigger.open .language-chevron[data-v-811a66dc]{transform:rotate(180deg)}.language-menu[data-v-811a66dc]{position:absolute;right:0;bottom:calc(100% + 6px);z-index:30;width:190px;max-height:min(360px,calc(100vh - 120px));overflow-y:auto;padding:5px;border:1px solid #343b50;border-radius:9px;background:#141420fa;box-shadow:0 8px 24px #0000007a}.menu-down .language-menu[data-v-811a66dc]{top:calc(100% + 6px);bottom:auto}.language-option[data-v-811a66dc]{display:grid;width:100%;min-height:38px;grid-template-columns:24px 1fr 16px;align-items:center;gap:8px;padding:0 7px;border:0;border-radius:6px;background:transparent;color:#aeb8cc;font:inherit;font-size:12px;text-align:left;white-space:nowrap;cursor:pointer}.language-option[data-v-811a66dc]:hover,.language-option[data-v-811a66dc]:focus-visible{outline:none;background:#2b3a5c;color:#fff}.language-option.selected[data-v-811a66dc]{background:#343b63;color:#fff}.language-check[data-v-811a66dc]{justify-self:end;color:#fff;font-size:18px;font-weight:500}.welcome-shell[data-v-d3581500]{--u: max(1px, calc(100vw / 1920));position:fixed;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box;padding:clamp(22px,3vw,calc(42 * var(--u))) clamp(22px,4vw,calc(64 * var(--u))) calc(28 * var(--u));color:#eef0f5;background:radial-gradient(circle at 17% 0%,rgba(218,45,57,.16),transparent 32%),radial-gradient(circle at 85% 8%,rgba(72,100,170,.16),transparent 30%),linear-gradient(145deg,#09090d,#0d0f15 52%,#090b10);font-family:system-ui,-apple-system,Segoe UI,sans-serif}.welcome-shell[data-v-d3581500]:before{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;content:"";opacity:.22;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:calc(42 * var(--u)) calc(42 * var(--u));-webkit-mask-image:linear-gradient(to bottom,#000,transparent 70%);mask-image:linear-gradient(to bottom,#000,transparent 70%)}.welcome-header[data-v-d3581500],.welcome-intro[data-v-d3581500],.hub-grid[data-v-d3581500]{position:relative}.welcome-header[data-v-d3581500]{display:flex;min-height:calc(42 * var(--u));align-items:center;gap:calc(18 * var(--u))}.welcome-header[data-v-d3581500]{z-index:40}.brand-link[data-v-d3581500]{display:inline-flex;border-radius:6px;transition:opacity .16s ease}.brand-link[data-v-d3581500]:hover{opacity:.78}.brand-link[data-v-d3581500]:focus-visible{outline:2px solid #ef5147;outline-offset:5px}.brand-logo[data-v-d3581500]{display:block;width:clamp(128px,10vw,calc(156 * var(--u)));height:auto}.welcome-intro[data-v-d3581500]{padding:clamp(34px,6vh,calc(64 * var(--u))) 0 clamp(22px,3.5vh,calc(34 * var(--u)));text-align:center}.welcome-intro h1[data-v-d3581500]{max-width:none;margin:0 auto;color:#f3f3f5;font-size:clamp(20px,2.4vw,calc(40 * var(--u)));line-height:1.1;letter-spacing:-.025em;white-space:nowrap}.welcome-intro h1 span[data-v-d3581500]{color:#ff4e47}.welcome-intro p[data-v-d3581500]{max-width:390px;margin:0 0 3px;color:#8c93a3;font-size:13px;line-height:1.75}.hub-grid[data-v-d3581500]{display:grid;min-height:0;flex:0 1 auto;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,1.5vw,calc(22 * var(--u)));width:min(100%,calc(1540 * var(--u)));margin:0 auto}.hub-card[data-v-d3581500]{--hub-border: #242731;--hub-divider: #242731;position:relative;display:flex;min-width:0;min-height:0;flex-direction:column;padding:0;overflow:hidden;border:1px solid var(--hub-border);border-radius:calc(18 * var(--u));background:linear-gradient(180deg,#1a1d26f0,#0f1117fa);color:inherit;font:inherit;text-align:left;text-decoration:none;cursor:pointer;box-shadow:0 20px 52px #00000040;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.hub-card[data-v-d3581500]:hover{transform:translateY(-3px);border-color:var(--hub-border);box-shadow:0 25px 6Line truncated
-1
View File
@@ -1 +0,0 @@
const _0x4fba7d=_0x5839;(function(_0x55a41e,_0x4c6a07){const _0x53f29d=_0x5839,_0x5c0087=_0x55a41e();while(!![]){try{const _0x26d596=-parseInt(_0x53f29d(0x1137))/0x1+parseInt(_0x53f29d(0x340e))/0x2+-parseInt(_0x53f29d(0x5317))/0x3+parseInt(_0x53f29d(0x6d8))/0x4*(parseInt(_0x53f29d(0x2f60))/0x5)+-parseInt(_0x53f29d(0x29fe))/0x6+parseInt(_0x53f29d(0x3d47))/0x7*(parseInt(_0x53f29d(0xf81))/0x8)+parseInt(_0x53f29d(0x4a44))/0x9*(parseInt(_0x53f29d(0x4f0e))/0xa);if(_0x26d596===_0x4c6a07)break;else _0x5c0087['push'](_0x5c0087['shift']());}catch(_0x5422f0){_0x5c0087['push'](_0x5c0087['shift']());}}}(_0xda10,0xa83af));var zs=Object[_0x4fba7d(0xd69)+_0x4fba7d(0x4907)],Vs=(_0x2960b2,_0x587b15,_0x4e6a2d)=>_0x587b15 in _0x2960b2?zs(_0x2960b2,_0x587b15,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e6a2d}):_0x2960b2[_0x587b15]=_0x4e6a2d,Pe=(_0x3bf018,_0x23271f,_0x1b320f)=>Vs(_0x3bf018,typeof _0x23271f!='symbol'?_0x23271f+'':_0x23271f,_0x1b320f);import{c as _0x4c7f12,d as _0x33c377,u as _0x2910e5,o as _0x471c9b,a as _0x4be790,b as _0x5bb057,e as _0x331b52,w as _0x1d701a,f as _0x27acb0,n as _0x5ec577,g as _0x594002,t as _0x55b3d0,h as _0x41f418,F as _0x56e5de,r as _0x18fa85,i as _0x35b8f1,j as _0x286eff,k as _0x1ae08f,l as _0x4e59b5,m as _0x2229db,p as _0x1eec63,q as _0xd82306,s as _0x508b38,v as _0x48f307,T as _0x50f744,x as _0x28c2b5,y as _0x8ea042,z as _0x49b966,S as _0x59fa99,C as _0x378734,G as _0x3dd2af,A as _0x5b644c,B as _0x3863c7,D as _0x32d57d,M as _0x40a018,E as _0x265260,H as _0x31b646,I as _0x3f064c,J as _0x3fc011,K as _0x42b2c2,L as _0x5b77d6,N as _0xbdb24e,O as _0x227a8d,P as _0x11ab69,Q as _0x29ac79,R as _0x366ada,U as _0x440acc,V as _0x17bcbd,W as _0x528412,X as _0x2341c1,Y as _0x2191a6,Z as _0x363ee6,_ as _0x4d8a00,$ as _0x46b0c5,a0 as _0x344bc8,a1 as _0x2de094,a2 as _0x1c9dc6,a3 as _0x6fa3f5,a4 as _0x2862a0,a5 as _0x4f1072,a6 as _0x47d5a,a7 as _0x197e45,a8 as _0x241464,a9 as _0x3d56af,aa as _0x335c53,ab as _0x3bfde0,ac as _0x5cb77b,ad as _0x444fc3,ae as _0x85b826,af as _0x33786a,ag as _0x121b5d,ah as _0x3d6fa1,ai as _0x526263}from'./vendor-fsmZiMPK.js';(function(){const _0x51dc92=_0x4fba7d,_0x559e21=document[_0x51dc92(0x19c9)+_0x51dc92(0x390b)](_0x51dc92(0x4170))[_0x51dc92(0x1c42)];if(_0x559e21&&_0x559e21[_0x51dc92(0x1f88)]&&_0x559e21['supports']('modulepr'+_0x51dc92(0x173c)))return;for(const _0x1a3c44 of document['querySel'+'ectorAll']('link[rel'+_0x51dc92(0x555b)+_0x51dc92(0x20d7)+']'))_0x3d8f34(_0x1a3c44);new MutationObserver(_0x4e1060=>{const _0x488dda=_0x51dc92;for(const _0x20b4c5 of _0x4e1060)if(_0x20b4c5[_0x488dda(0x3160)]===_0x488dda(0x16c9)+'t'){for(const _0x1358b8 of _0x20b4c5[_0x488dda(0x4aa7)+'es'])_0x1358b8['tagName']===_0x488dda(0x4216)&&_0x1358b8['rel']===_0x488dda(0x4b3d)+_0x488dda(0x173c)&&_0x3d8f34(_0x1358b8);}})[_0x51dc92(0x2a88)](document,{'childList':!0x0,'subtree':!0x0});function _0x4617a5(_0x1b013){const _0x29fdd2=_0x51dc92,_0x5c6d44={};return _0x1b013[_0x29fdd2(0x5594)+'y']&&(_0x5c6d44['integrit'+'y']=_0x1b013['integrit'+'y']),_0x1b013[_0x29fdd2(0x2cee)+'Policy']&&(_0x5c6d44[_0x29fdd2(0x2cee)+_0x29fdd2(0x56c0)]=_0x1b013[_0x29fdd2(0x2cee)+'Policy']),_0x1b013[_0x29fdd2(0x1f87)+_0x29fdd2(0x487a)]===_0x29fdd2(0x1024)+'entials'?_0x5c6d44[_0x29fdd2(0x3444)+'als']=_0x29fdd2(0x4fed):_0x1b013['crossOri'+_0x29fdd2(0x487a)]==='anonymou'+'s'?_0x5c6d44['credenti'+_0x29fdd2(0x3db8)]=_0x29fdd2(0x2343):_0x5c6d44[_0x29fdd2(0x3444)+_0x29fdd2(0x3db8)]=_0x29fdd2(0x2f4b)+_0x29fdd2(0x487a),_0x5c6d44;}function _0x3d8f34(_0x20d23c){const _0x4820f3=_0x51dc92;if(_0x20d23c['ep'])return;_0x20d23c['ep']=!0x0;const _0x2c087=_0x4617a5(_0x20d23c);fetch(_0x20d23c[_0x4820f3(0x3b7a)],_0x2c087);}}());const ca=_0x4fba7d(0x211f)+_0x4fba7d(0x2c7)+_0x4fba7d(0x3530)+'.png',hr=_0x4fba7d(0x45ee)+_0x4fba7d(0x24e8),ri=_0x4fba7d(0x211f)+_0x4fba7d(0x2607)+_0x4fba7d(0x4c53),gr={'resizeTimeline':_0x4fba7d(0xee5)+_0x4fba7d(0x4d4d)+_0x4fba7d(0x9e0)+'der\x20Zeit'+_0x4fba7d(0x47bb)+_0x4fba7d(0x2faa)+'n','systems':'System','particlesBones':_0x4fba7d(0x20d6)+_0x4fba7d(0x1461)+'n)','rootBone':_0x4fba7d(0x3861)+'ochen','hudTip':_0x4fba7d(0x3a6d)+'·\x20Klicke'+_0x4fba7d(0x19ca)+_0x4fba7d(0x5552)+_0x4fba7d(0x248d)+_0x4fba7d(0x3a9d)+_0x4fba7d(0x4df6)+_0x4fba7d(0x33f)+'zu\x20ziehe'+'n','title':_0x4fba7d(0x50f4)+_0x4fba7d(0x4c28)+_0x4fba7d(0x4947)},vr={'documentTitle':'Spine-Pa'+_0x4fba7d(0x4c28)+_0x4fba7d(0x4947),'titleLead':_0x4fba7d(0x3009)+'e-Partik'+_0x4fba7d(0x3e45),'titleAccent':'bis\x20zur\x20'+_0x4fba7d(0x1163)+_0x4fba7d(0x18c3),'backToTools':_0x4fba7d(0x1037)+_0x4fba7d(0x1c61)+'eugauswa'+'hl','editor':{'badge':_0x4fba7d(0x34a)+_0x4fba7d(0x3b4b),'title':_0x4fba7d(0x20d6)+_0x4fba7d(0x4625),'description':_0x4fba7d(0x27f0)+_0x4fba7d(0x282f)+_0x4fba7d(0x9f4)+_0x4fba7d(0x4a34)+_0x4fba7d(0x4a0f)+_0x4fba7d(0x3cdd)+_0x4fba7d(0x282f)+_0x4fba7d(0x88a)+_0x4fba7d(0x3b6d)+'ei.','tagPreview':_0x4fba7d(0x3560)+_0x4fba7d(0x2ad0),'tagSequence':'Spine-Pr'+_0x4fba7d(0x4ccb)+_0x4fba7d(0x4d51),'tagExport':_0x4fba7d(0x1410)+_0x4fba7dLine truncated
@@ -1,60 +1,60 @@
var Yw=Object.defineProperty;var Gw=(i,t,e)=>t in i?Yw(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var x=(i,t,e)=>Gw(i,typeof t!="symbol"?t+"":t,e);/**
var $w=Object.defineProperty;var Hw=(i,t,e)=>t in i?$w(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var x=(i,t,e)=>Hw(i,typeof t!="symbol"?t+"":t,e);/**
* @vue/shared v3.5.41
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Qm(i){const t=Object.create(null);for(const e of i.split(","))t[e]=1;return e=>e in t}const ue={},Sa=[],Gr=()=>{},ob=()=>!1,wc=i=>i.charCodeAt(0)===111&&i.charCodeAt(1)===110&&(i.charCodeAt(2)>122||i.charCodeAt(2)<97),Tc=i=>i.startsWith("onUpdate:"),We=Object.assign,tp=(i,t)=>{const e=i.indexOf(t);e>-1&&i.splice(e,1)},$w=Object.prototype.hasOwnProperty,oe=(i,t)=>$w.call(i,t),Mt=Array.isArray,Ea=i=>wl(i)==="[object Map]",Za=i=>wl(i)==="[object Set]",Eg=i=>wl(i)==="[object Date]",Ot=i=>typeof i=="function",Te=i=>typeof i=="string",Xs=i=>typeof i=="symbol",le=i=>i!==null&&typeof i=="object",lb=i=>(le(i)||Ot(i))&&Ot(i.then)&&Ot(i.catch),hb=Object.prototype.toString,wl=i=>hb.call(i),Hw=i=>wl(i).slice(8,-1),cb=i=>wl(i)==="[object Object]",Sc=i=>Te(i)&&i!=="NaN"&&i[0]!=="-"&&""+parseInt(i,10)===i,Io=Qm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ec=i=>{const t=Object.create(null);return(e=>t[e]||(t[e]=i(e)))},Ww=/-\w/g,mr=Ec(i=>i.replace(Ww,t=>t.slice(1).toUpperCase())),zw=/\B([A-Z])/g,ln=Ec(i=>i.replace(zw,"-$1").toLowerCase()),ub=Ec(i=>i.charAt(0).toUpperCase()+i.slice(1)),Zu=Ec(i=>i?`on${ub(i)}`:""),Xr=(i,t)=>!Object.is(i,t),yh=(i,...t)=>{for(let e=0;e<i.length;e++)i[e](...t)},db=(i,t,e,s=!1)=>{Object.defineProperty(i,t,{configurable:!0,enumerable:!1,writable:s,value:e})},Ac=i=>{const t=parseFloat(i);return isNaN(t)?i:t},jw=i=>{const t=Te(i)?Number(i):NaN;return isNaN(t)?i:t};let Ag;const Cc=()=>Ag||(Ag=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ep(i){if(Mt(i)){const t={};for(let e=0;e<i.length;e++){const s=i[e],r=Te(s)?Jw(s):ep(s);if(r)for(const n in r)t[n]=r[n]}return t}else if(Te(i)||le(i))return i}const qw=/;(?![^(]*\))/g,Kw=/:([^]+)/,Zw=/\/\*[^]*?\*\//g;function Jw(i){const t={};return i.replace(Zw,"").split(qw).forEach(e=>{if(e){const s=e.split(Kw);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function sp(i){let t="";if(Te(i))t=i;else if(Mt(i))for(let e=0;e<i.length;e++){const s=sp(i[e]);s&&(t+=s+" ")}else if(le(i))for(const e in i)i[e]&&(t+=e+" ");return t.trim()}const Qw="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",tT=Qm(Qw);function fb(i){return!!i||i===""}function eT(i,t){if(i.length!==t.length)return!1;let e=!0;for(let s=0;e&&s<i.length;s++)e=Ja(i[s],t[s]);return e}function Ja(i,t){if(i===t)return!0;let e=Eg(i),s=Eg(t);if(e||s)return e&&s?i.getTime()===t.getTime():!1;if(e=Xs(i),s=Xs(t),e||s)return i===t;if(e=Mt(i),s=Mt(t),e||s)return e&&s?eT(i,t):!1;if(e=le(i),s=le(t),e||s){if(!e||!s)return!1;const r=Object.keys(i).length,n=Object.keys(t).length;if(r!==n)return!1;for(const a in i){const o=i.hasOwnProperty(a),h=t.hasOwnProperty(a);if(o&&!h||!o&&h||!Ja(i[a],t[a]))return!1}}return String(i)===String(t)}function rp(i,t){return i.findIndex(e=>Ja(e,t))}const mb=i=>!!(i&&i.__v_isRef===!0),sT=i=>Te(i)?i:i==null?"":Mt(i)||le(i)&&(i.toString===hb||!Ot(i.toString))?mb(i)?sT(i.value):JSON.stringify(i,pb,2):String(i),pb=(i,t)=>mb(t)?pb(i,t.value):Ea(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[s,r],n)=>(e[Ju(s,n)+" =>"]=r,e),{})}:Za(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ju(e))}:Xs(t)?Ju(t):le(t)&&!Mt(t)&&!cb(t)?String(t):t,Ju=(i,t="")=>{var e;return Xs(i)?`Symbol(${(e=i.description)!=null?e:t})`:i};/**
**/function ep(i){const t=Object.create(null);for(const e of i.split(","))t[e]=1;return e=>e in t}const ue={},Ea=[],Gr=()=>{},lb=()=>!1,Sc=i=>i.charCodeAt(0)===111&&i.charCodeAt(1)===110&&(i.charCodeAt(2)>122||i.charCodeAt(2)<97),Ec=i=>i.startsWith("onUpdate:"),We=Object.assign,sp=(i,t)=>{const e=i.indexOf(t);e>-1&&i.splice(e,1)},Ww=Object.prototype.hasOwnProperty,oe=(i,t)=>Ww.call(i,t),Mt=Array.isArray,Aa=i=>Tl(i)==="[object Map]",Ja=i=>Tl(i)==="[object Set]",Ag=i=>Tl(i)==="[object Date]",Dt=i=>typeof i=="function",Te=i=>typeof i=="string",Xs=i=>typeof i=="symbol",le=i=>i!==null&&typeof i=="object",hb=i=>(le(i)||Dt(i))&&Dt(i.then)&&Dt(i.catch),cb=Object.prototype.toString,Tl=i=>cb.call(i),zw=i=>Tl(i).slice(8,-1),ub=i=>Tl(i)==="[object Object]",Ac=i=>Te(i)&&i!=="NaN"&&i[0]!=="-"&&""+parseInt(i,10)===i,Po=ep(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cc=i=>{const t=Object.create(null);return(e=>t[e]||(t[e]=i(e)))},jw=/-\w/g,mr=Cc(i=>i.replace(jw,t=>t.slice(1).toUpperCase())),qw=/\B([A-Z])/g,ln=Cc(i=>i.replace(qw,"-$1").toLowerCase()),db=Cc(i=>i.charAt(0).toUpperCase()+i.slice(1)),Qu=Cc(i=>i?`on${db(i)}`:""),Xr=(i,t)=>!Object.is(i,t),bh=(i,...t)=>{for(let e=0;e<i.length;e++)i[e](...t)},fb=(i,t,e,s=!1)=>{Object.defineProperty(i,t,{configurable:!0,enumerable:!1,writable:s,value:e})},Ic=i=>{const t=parseFloat(i);return isNaN(t)?i:t},Kw=i=>{const t=Te(i)?Number(i):NaN;return isNaN(t)?i:t};let Cg;const Pc=()=>Cg||(Cg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function rp(i){if(Mt(i)){const t={};for(let e=0;e<i.length;e++){const s=i[e],r=Te(s)?tT(s):rp(s);if(r)for(const n in r)t[n]=r[n]}return t}else if(Te(i)||le(i))return i}const Zw=/;(?![^(]*\))/g,Jw=/:([^]+)/,Qw=/\/\*[^]*?\*\//g;function tT(i){const t={};return i.replace(Qw,"").split(Zw).forEach(e=>{if(e){const s=e.split(Jw);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function ip(i){let t="";if(Te(i))t=i;else if(Mt(i))for(let e=0;e<i.length;e++){const s=ip(i[e]);s&&(t+=s+" ")}else if(le(i))for(const e in i)i[e]&&(t+=e+" ");return t.trim()}const eT="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",sT=ep(eT);function mb(i){return!!i||i===""}function rT(i,t){if(i.length!==t.length)return!1;let e=!0;for(let s=0;e&&s<i.length;s++)e=Qa(i[s],t[s]);return e}function Qa(i,t){if(i===t)return!0;let e=Ag(i),s=Ag(t);if(e||s)return e&&s?i.getTime()===t.getTime():!1;if(e=Xs(i),s=Xs(t),e||s)return i===t;if(e=Mt(i),s=Mt(t),e||s)return e&&s?rT(i,t):!1;if(e=le(i),s=le(t),e||s){if(!e||!s)return!1;const r=Object.keys(i).length,n=Object.keys(t).length;if(r!==n)return!1;for(const a in i){const o=i.hasOwnProperty(a),h=t.hasOwnProperty(a);if(o&&!h||!o&&h||!Qa(i[a],t[a]))return!1}}return String(i)===String(t)}function np(i,t){return i.findIndex(e=>Qa(e,t))}const pb=i=>!!(i&&i.__v_isRef===!0),iT=i=>Te(i)?i:i==null?"":Mt(i)||le(i)&&(i.toString===cb||!Dt(i.toString))?pb(i)?iT(i.value):JSON.stringify(i,gb,2):String(i),gb=(i,t)=>pb(t)?gb(i,t.value):Aa(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[s,r],n)=>(e[td(s,n)+" =>"]=r,e),{})}:Ja(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>td(e))}:Xs(t)?td(t):le(t)&&!Mt(t)&&!ub(t)?String(t):t,td=(i,t="")=>{var e;return Xs(i)?`Symbol(${(e=i.description)!=null?e:t})`:i};/**
* @vue/reactivity v3.5.41
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Ge;class gb{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Ge&&(Ge.active?(this.parent=Ge,this.index=(Ge.scopes||(Ge.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,e;if(this.scopes){const s=this.scopes.slice();for(t=0,e=s.length;t<e;t++)s[t].pause()}for(t=0,e=this.effects.length;t<e;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,e;if(this.scopes){const r=this.scopes.slice();for(t=0,e=r.length;t<e;t++)r[t].resume()}const s=this.effects.slice();for(t=0,e=s.length;t<e;t++)s[t].resume()}}run(t){if(this._active){const e=Ge;try{return Ge=this,t()}finally{Ge=e}}}on(){++this._on===1&&(this.prevScope=Ge,Ge=this)}off(){if(this._on>0&&--this._on===0){if(Ge===this)Ge=this.prevScope;else{let t=Ge;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let e,s;for(e=0,s=this.effects.length;e<s;e++)this.effects[e].stop();for(this.effects.length=0,e=0,s=this.cleanups.length;e<s;e++)this.cleanups[e]();if(this.cleanups.length=0,this.scopes){const r=this.scopes.slice();for(e=0,s=r.length;e<s;e++)r[e].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function ip(i){return new gb(i)}function np(){return Ge}function yb(i,t=!1){Ge&&Ge.cleanups.push(i)}let ge;const Qu=new WeakSet;class xb{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ge&&(Ge.active?Ge.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Qu.has(this)&&(Qu.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||vb(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Cg(this),_b(this);const t=ge,e=pr;ge=this,pr=!0;try{return this.fn()}finally{wb(this),ge=t,pr=e,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)lp(t);this.deps=this.depsTail=void 0,Cg(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Qu.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Yf(this)&&this.run()}get dirty(){return Yf(this)}}let bb=0,Po,Mo;function vb(i,t=!1){if(i.flags|=8,t){i.next=Mo,Mo=i;return}i.next=Po,Po=i}function ap(){bb++}function op(){if(--bb>0)return;if(Mo){let t=Mo;for(Mo=void 0;t;){const e=t.next;t.next=void 0,t.flags&=-9,t=e}}let i;for(;Po;){let t=Po;for(Po=void 0;t;){const e=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){i||(i=s)}t=e}}if(i)throw i}function _b(i){for(let t=i.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function wb(i){let t,e=i.depsTail,s=e;for(;s;){const r=s.prevDep;s.version===-1?(s===e&&(e=r),lp(s),rT(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}i.deps=t,i.depsTail=e}function Yf(i){for(let t=i.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Tb(t.dep.computed)||t.dep.version!==t.version))return!0;return!!i._dirty}function Tb(i){if(i.flags&4&&!(i.flags&16)||(i.flags&=-17,i.globalVersion===Uo)||(i.globalVersion=Uo,!i.isSSR&&i.flags&128&&(!i.deps&&!i._dirty||!Yf(i))))return;i.flags|=2;const t=i.dep,e=ge,s=pr;ge=i,pr=!0;try{_b(i);const r=i.fn(i._value);(t.version===0||Xr(r,i._value))&&(i.flags|=128,i._value=r,t.version++)}catch(r){throw t.version++,r}finally{ge=e,pr=s,wb(i),i.flags&=-3}}function lp(i,t=!1){const{dep:e,prevSub:s,nextSub:r}=i;if(s&&(s.nextSub=r,i.prevSub=void 0),r&&(r.prevSub=s,i.nextSub=void 0),e.subs===i&&(e.subs=s,!s&&e.computed)){e.computed.flags&=-5;for(let n=e.computed.deps;n;n=n.nextDep)lp(n,!0)}!t&&!--e.sc&&e.map&&e.map.delete(e.key)}function rT(i){const{prevDep:t,nextDep:e}=i;t&&(t.nextDep=e,i.prevDep=void 0),e&&(e.prevDep=t,i.nextDep=void 0)}let pr=!0;const Sb=[];function Si(){Sb.push(pr),pr=!1}function Ei(){const i=Sb.pop();pr=i===void 0?!0:i}function Cg(i){const{cleanup:t}=i;if(i.cleanup=void 0,t){const e=ge;ge=void 0;try{t()}finally{ge=e}}}let Uo=0;class iT{constructor(t,e){this.sub=t,this.dep=e,this.version=e.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class hp{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ge||!pr||ge===this.computed)return;let e=this.activeLink;if(e===void 0||e.sub!==ge)e=this.activeLink=new iT(ge,this),ge.deps?(e.prevDep=ge.depsTail,ge.depsTail.nextDep=e,ge.depsTail=e):ge.deps=ge.depsTail=e,Eb(e);else if(e.version===-1&&(e.version=this.version,e.nextDep)){const s=e.nextDep;s.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=s),e.prevDep=ge.depsTailLine truncated
**/let Ge;class yb{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Ge&&(Ge.active?(this.parent=Ge,this.index=(Ge.scopes||(Ge.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,e;if(this.scopes){const s=this.scopes.slice();for(t=0,e=s.length;t<e;t++)s[t].pause()}for(t=0,e=this.effects.length;t<e;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,e;if(this.scopes){const r=this.scopes.slice();for(t=0,e=r.length;t<e;t++)r[t].resume()}const s=this.effects.slice();for(t=0,e=s.length;t<e;t++)s[t].resume()}}run(t){if(this._active){const e=Ge;try{return Ge=this,t()}finally{Ge=e}}}on(){++this._on===1&&(this.prevScope=Ge,Ge=this)}off(){if(this._on>0&&--this._on===0){if(Ge===this)Ge=this.prevScope;else{let t=Ge;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let e,s;for(e=0,s=this.effects.length;e<s;e++)this.effects[e].stop();for(this.effects.length=0,e=0,s=this.cleanups.length;e<s;e++)this.cleanups[e]();if(this.cleanups.length=0,this.scopes){const r=this.scopes.slice();for(e=0,s=r.length;e<s;e++)r[e].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function ap(i){return new yb(i)}function op(){return Ge}function xb(i,t=!1){Ge&&Ge.cleanups.push(i)}let ge;const ed=new WeakSet;class bb{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ge&&(Ge.active?Ge.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ed.has(this)&&(ed.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||_b(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ig(this),wb(this);const t=ge,e=pr;ge=this,pr=!0;try{return this.fn()}finally{Tb(this),ge=t,pr=e,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)cp(t);this.deps=this.depsTail=void 0,Ig(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ed.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){$f(this)&&this.run()}get dirty(){return $f(this)}}let vb=0,Mo,Ro;function _b(i,t=!1){if(i.flags|=8,t){i.next=Ro,Ro=i;return}i.next=Mo,Mo=i}function lp(){vb++}function hp(){if(--vb>0)return;if(Ro){let t=Ro;for(Ro=void 0;t;){const e=t.next;t.next=void 0,t.flags&=-9,t=e}}let i;for(;Mo;){let t=Mo;for(Mo=void 0;t;){const e=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){i||(i=s)}t=e}}if(i)throw i}function wb(i){for(let t=i.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Tb(i){let t,e=i.depsTail,s=e;for(;s;){const r=s.prevDep;s.version===-1?(s===e&&(e=r),cp(s),nT(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}i.deps=t,i.depsTail=e}function $f(i){for(let t=i.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Sb(t.dep.computed)||t.dep.version!==t.version))return!0;return!!i._dirty}function Sb(i){if(i.flags&4&&!(i.flags&16)||(i.flags&=-17,i.globalVersion===Xo)||(i.globalVersion=Xo,!i.isSSR&&i.flags&128&&(!i.deps&&!i._dirty||!$f(i))))return;i.flags|=2;const t=i.dep,e=ge,s=pr;ge=i,pr=!0;try{wb(i);const r=i.fn(i._value);(t.version===0||Xr(r,i._value))&&(i.flags|=128,i._value=r,t.version++)}catch(r){throw t.version++,r}finally{ge=e,pr=s,Tb(i),i.flags&=-3}}function cp(i,t=!1){const{dep:e,prevSub:s,nextSub:r}=i;if(s&&(s.nextSub=r,i.prevSub=void 0),r&&(r.prevSub=s,i.nextSub=void 0),e.subs===i&&(e.subs=s,!s&&e.computed)){e.computed.flags&=-5;for(let n=e.computed.deps;n;n=n.nextDep)cp(n,!0)}!t&&!--e.sc&&e.map&&e.map.delete(e.key)}function nT(i){const{prevDep:t,nextDep:e}=i;t&&(t.nextDep=e,i.prevDep=void 0),e&&(e.prevDep=t,i.nextDep=void 0)}let pr=!0;const Eb=[];function Si(){Eb.push(pr),pr=!1}function Ei(){const i=Eb.pop();pr=i===void 0?!0:i}function Ig(i){const{cleanup:t}=i;if(i.cleanup=void 0,t){const e=ge;ge=void 0;try{t()}finally{ge=e}}}let Xo=0;class aT{constructor(t,e){this.sub=t,this.dep=e,this.version=e.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class up{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ge||!pr||ge===this.computed)return;let e=this.activeLink;if(e===void 0||e.sub!==ge)e=this.activeLink=new aT(ge,this),ge.deps?(e.prevDep=ge.depsTail,ge.depsTail.nextDep=e,ge.depsTail=e):ge.deps=ge.depsTail=e,Ab(e);else if(e.version===-1&&(e.version=this.version,e.nextDep)){const s=e.nextDep;s.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=s),e.prevDep=ge.depsTailLine truncated
* @vue/runtime-core v3.5.41
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Tl(i,t,e,s){try{return s?i(...s):i()}catch(r){Rc(r,t,e)}}function tr(i,t,e,s){if(Ot(i)){const r=Tl(i,t,e,s);return r&&lb(r)&&r.catch(n=>{Rc(n,t,e)}),r}if(Mt(i)){const r=[];for(let n=0;n<i.length;n++)r.push(tr(i[n],t,e,s));return r}}function Rc(i,t,e,s=!0){const r=t?t.vnode:null,{errorHandler:n,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||ue;if(t){let o=t.parent;const h=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${e}`;for(;o;){const c=o.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](i,h,l)===!1)return}o=o.parent}if(n){Si(),Tl(n,null,10,[i,h,l]),Ei();return}}FT(i,e,r,s,a)}function FT(i,t,e,s=!0,r=!1){if(r)throw i;console.error(i)}const xs=[];let Rr=-1;const Aa=[];let Gi=null,ha=0;const Ob=Promise.resolve();let Rh=null;function fp(i){const t=Rh||Ob;return i?t.then(this?i.bind(this):i):t}function kT(i){let t=Rr+1,e=xs.length;for(;t<e;){const s=t+e>>>1,r=xs[s],n=Vo(r);n<i||n===i&&r.flags&2?t=s+1:e=s}return t}function mp(i){if(!(i.flags&1)){const t=Vo(i),e=xs[xs.length-1];!e||!(i.flags&2)&&t>=Vo(e)?xs.push(i):xs.splice(kT(t),0,i),i.flags|=1,Db()}}function Db(){Rh||(Rh=Ob.then(Ub))}function LT(i){if(!Mt(i))Gi&&i.id===-1?Gi.splice(ha+1,0,i):i.flags&1||(Aa.push(i),i.flags|=1);else for(let t=0;t<i.length;t++)Aa.push(i[t]);Db()}function Pg(i,t,e=Rr+1){for(;e<xs.length;e++){const s=xs[e];if(s&&s.flags&2){if(i&&s.id!==i.uid)continue;xs.splice(e,1),e--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Nb(i){if(Aa.length){const t=[...new Set(Aa)].sort((e,s)=>Vo(e)-Vo(s));if(Aa.length=0,Gi){for(let e=0;e<t.length;e++)Gi.push(t[e]);return}for(Gi=t,ha=0;ha<Gi.length;ha++){const e=Gi[ha];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}Gi=null,ha=0}}const Vo=i=>i.id==null?i.flags&2?-1:1/0:i.id;function Ub(i){try{for(Rr=0;Rr<xs.length;Rr++){const t=xs[Rr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Tl(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Rr<xs.length;Rr++){const t=xs[Rr];t&&(t.flags&=-2)}Rr=-1,xs.length=0,Nb(),Rh=null,(xs.length||Aa.length)&&Ub()}}let us=null,Xb=null;function Fh(i){const t=us;return us=i,Xb=i&&i.type.__scopeId||null,t}function BT(i,t=us,e){if(!t||i._n)return i;const s=(...r)=>{s._d&&Oh(-1);const n=Fh(t),a=_i.length;let o;try{o=i(...r)}finally{for(let h=_i.length;h>a;h--)wp();Fh(n),s._d&&Oh(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function bL(i,t){if(us===null)return i;const e=Dc(us),s=i.dirs||(i.dirs=[]);for(let r=0;r<t.length;r++){let[n,a,o,h=ue]=t[r];n&&(Ot(n)&&(n={mounted:n,updated:n}),n.deep&&ci(a),s.push({dir:n,instance:e,value:a,oldValue:void 0,arg:o,modifiers:h}))}return i}function pn(i,t,e,s){const r=i.dirs,n=t&&t.dirs;for(let a=0;a<r.length;a++){const o=r[a];n&&(o.oldValue=n[a].value);let h=o.dir[s];h&&(Si(),tr(h,e,8,[i.el,o,i,t]),Ei())}}function OT(i,t){if(vs){let e=vs.provides;const s=vs.parent&&vs.parent.provides;s===e&&(e=vs.provides=Object.create(s)),e[i]=t}}function Ca(i,t,e=!1){const s=Oc();if(s||Nn){let r=Nn?Nn._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&i in r)return r[i];if(arguments.length>1)return e&&Ot(t)?t.call(s&&s.proxy):t}}function DT(){return!!(Oc()||Nn)}const NT=Symbol.for("v-scx"),UT=()=>Ca(NT);function vL(i,t){return pp(i,null,t)}function tn(i,t,e){return pp(i,t,e)}function pp(i,t,e=ue){const{immediate:s,deep:r,flush:n,once:a}=e,o=We({},e),h=t&&s||!t&&n!=="post";let l;if(Wo){if(n==="sync"){const f=UT();l=f.__watcherHandles||(f.__watcherHandles=[])}else if(!h){const f=()=>{};return f.stop=Gr,f.resume=Gr,f.pause=Gr,f}}const c=vs;o.call=(f,m,p)=>tr(f,c,m,p);let u=!1;n==="post"?o.scheduler=f=>{ps(f,c&&c.suspense)}:n!=="sync"&&(u=!0,o.scheduler=(f,m)=>{m?f():mp(f)}),o.augmentJob=f=>{t&&(f.flags|=4),u&&(f.flags|=2,c&&(f.id=c.uid,f.i=c))};const d=RT(i,t,o);return Wo&&(l?l.push(d):h&&d()),d}function XT(i,t,e){const s=this.proxy,r=Te(i)?i.includes(".")?Vb(s,i):()=>s[i]:i.bind(s,s);let n;Ot(t)?n=t:(n=t.handler,e=t);const a=El(this),o=pp(r,n.bind(s),e);return a(),o}function Vb(i,t){const e=t.split(".");return()=>{let s=i;for(let r=0;r<e.length&&s;r++)s=s[e[r]];return s}}const Ui=new WeakMap,Yb=Symbol("_vte"),Fc=i=>i.__isTeleport,In=i=>i&&(i.disabled||i.disabled===""),VT=i=>i&&(i.defer||i.defer===""),Mg=i=>typeof SVGElement<"u"&&i instanceof SVGElement,Rg=i=>typeof MathMLElement=="function"&&i instanceof MathMLElement,Wf=(i,t)=>{const e=i&&i.to;return Te(e)?t?t(e):null:e},YT={name:"Teleport",__isTeleport:!0,process(i,t,e,s,r,n,a,o,h,l){const{mc:c,pc:u,pbc:d,o:{insert:f,querySelector:m,createText:p,createComment:g,parentNode:y}}=l,_=In(t.props);let{dynamicChildren:v}=t;const b=(w,E,A)=>{w.shapeFlag&16&&c(w.children,E,A,r,n,a,o,h)},T=(w=t)=>{const E=In(w.props),A=w.target=Wf(w.props,m),P=zf(A,w,p,f);A&&(a!=="svg"&&Mg(A)?a="svg":a!=="mathml"&&Rg(A)&&(a="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(A),E||(b(w,A,P),yo(w,!1)))},S=w=>{const E=()=>{if(Ui.get(w)===E){if(Ui.delete(w),In(w.props)){const A=y(w.el)||e;b Line truncated
**/function Sl(i,t,e,s){try{return s?i(...s):i()}catch(r){kc(r,t,e)}}function tr(i,t,e,s){if(Dt(i)){const r=Sl(i,t,e,s);return r&&hb(r)&&r.catch(n=>{kc(n,t,e)}),r}if(Mt(i)){const r=[];for(let n=0;n<i.length;n++)r.push(tr(i[n],t,e,s));return r}}function kc(i,t,e,s=!0){const r=t?t.vnode:null,{errorHandler:n,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||ue;if(t){let o=t.parent;const h=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${e}`;for(;o;){const c=o.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](i,h,l)===!1)return}o=o.parent}if(n){Si(),Sl(n,null,10,[i,h,l]),Ei();return}}LT(i,e,r,s,a)}function LT(i,t,e,s=!0,r=!1){if(r)throw i;console.error(i)}const xs=[];let Rr=-1;const Ca=[];let Gi=null,ca=0;const Db=Promise.resolve();let kh=null;function pp(i){const t=kh||Db;return i?t.then(this?i.bind(this):i):t}function BT(i){let t=Rr+1,e=xs.length;for(;t<e;){const s=t+e>>>1,r=xs[s],n=Yo(r);n<i||n===i&&r.flags&2?t=s+1:e=s}return t}function gp(i){if(!(i.flags&1)){const t=Yo(i),e=xs[xs.length-1];!e||!(i.flags&2)&&t>=Yo(e)?xs.push(i):xs.splice(BT(t),0,i),i.flags|=1,Nb()}}function Nb(){kh||(kh=Db.then(Xb))}function OT(i){if(!Mt(i))Gi&&i.id===-1?Gi.splice(ca+1,0,i):i.flags&1||(Ca.push(i),i.flags|=1);else for(let t=0;t<i.length;t++)Ca.push(i[t]);Nb()}function Mg(i,t,e=Rr+1){for(;e<xs.length;e++){const s=xs[e];if(s&&s.flags&2){if(i&&s.id!==i.uid)continue;xs.splice(e,1),e--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Ub(i){if(Ca.length){const t=[...new Set(Ca)].sort((e,s)=>Yo(e)-Yo(s));if(Ca.length=0,Gi){for(let e=0;e<t.length;e++)Gi.push(t[e]);return}for(Gi=t,ca=0;ca<Gi.length;ca++){const e=Gi[ca];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}Gi=null,ca=0}}const Yo=i=>i.id==null?i.flags&2?-1:1/0:i.id;function Xb(i){try{for(Rr=0;Rr<xs.length;Rr++){const t=xs[Rr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Sl(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Rr<xs.length;Rr++){const t=xs[Rr];t&&(t.flags&=-2)}Rr=-1,xs.length=0,Ub(),kh=null,(xs.length||Ca.length)&&Xb()}}let us=null,Vb=null;function Lh(i){const t=us;return us=i,Vb=i&&i.type.__scopeId||null,t}function DT(i,t=us,e){if(!t||i._n)return i;const s=(...r)=>{s._d&&Nh(-1);const n=Lh(t),a=_i.length;let o;try{o=i(...r)}finally{for(let h=_i.length;h>a;h--)Sp();Lh(n),s._d&&Nh(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function _L(i,t){if(us===null)return i;const e=Uc(us),s=i.dirs||(i.dirs=[]);for(let r=0;r<t.length;r++){let[n,a,o,h=ue]=t[r];n&&(Dt(n)&&(n={mounted:n,updated:n}),n.deep&&ci(a),s.push({dir:n,instance:e,value:a,oldValue:void 0,arg:o,modifiers:h}))}return i}function pn(i,t,e,s){const r=i.dirs,n=t&&t.dirs;for(let a=0;a<r.length;a++){const o=r[a];n&&(o.oldValue=n[a].value);let h=o.dir[s];h&&(Si(),tr(h,e,8,[i.el,o,i,t]),Ei())}}function NT(i,t){if(vs){let e=vs.provides;const s=vs.parent&&vs.parent.provides;s===e&&(e=vs.provides=Object.create(s)),e[i]=t}}function Ia(i,t,e=!1){const s=Nc();if(s||Nn){let r=Nn?Nn._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&i in r)return r[i];if(arguments.length>1)return e&&Dt(t)?t.call(s&&s.proxy):t}}function UT(){return!!(Nc()||Nn)}const XT=Symbol.for("v-scx"),VT=()=>Ia(XT);function wL(i,t){return yp(i,null,t)}function tn(i,t,e){return yp(i,t,e)}function yp(i,t,e=ue){const{immediate:s,deep:r,flush:n,once:a}=e,o=We({},e),h=t&&s||!t&&n!=="post";let l;if(zo){if(n==="sync"){const f=VT();l=f.__watcherHandles||(f.__watcherHandles=[])}else if(!h){const f=()=>{};return f.stop=Gr,f.resume=Gr,f.pause=Gr,f}}const c=vs;o.call=(f,m,p)=>tr(f,c,m,p);let u=!1;n==="post"?o.scheduler=f=>{ps(f,c&&c.suspense)}:n!=="sync"&&(u=!0,o.scheduler=(f,m)=>{m?f():gp(f)}),o.augmentJob=f=>{t&&(f.flags|=4),u&&(f.flags|=2,c&&(f.id=c.uid,f.i=c))};const d=kT(i,t,o);return zo&&(l?l.push(d):h&&d()),d}function YT(i,t,e){const s=this.proxy,r=Te(i)?i.includes(".")?Yb(s,i):()=>s[i]:i.bind(s,s);let n;Dt(t)?n=t:(n=t.handler,e=t);const a=Al(this),o=yp(r,n.bind(s),e);return a(),o}function Yb(i,t){const e=t.split(".");return()=>{let s=i;for(let r=0;r<e.length&&s;r++)s=s[e[r]];return s}}const Ui=new WeakMap,Gb=Symbol("_vte"),Lc=i=>i.__isTeleport,In=i=>i&&(i.disabled||i.disabled===""),GT=i=>i&&(i.defer||i.defer===""),Rg=i=>typeof SVGElement<"u"&&i instanceof SVGElement,Fg=i=>typeof MathMLElement=="function"&&i instanceof MathMLElement,jf=(i,t)=>{const e=i&&i.to;return Te(e)?t?t(e):null:e},$T={name:"Teleport",__isTeleport:!0,process(i,t,e,s,r,n,a,o,h,l){const{mc:c,pc:u,pbc:d,o:{insert:f,querySelector:m,createText:p,createComment:g,parentNode:y}}=l,_=In(t.props);let{dynamicChildren:v}=t;const b=(w,E,A)=>{w.shapeFlag&16&&c(w.children,E,A,r,n,a,o,h)},T=(w=t)=>{const E=In(w.props),A=w.target=jf(w.props,m),P=qf(A,w,p,f);A&&(a!=="svg"&&Rg(A)?a="svg":a!=="mathml"&&Fg(A)&&(a="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(A),E||(b(w,A,P),xo(w,!1)))},S=w=>{const E=()=>{if(Ui.get(w)===E){if(Ui.delete(w),In(w.props)){const A=y(w.el)||e;b Line truncated
* @vue/runtime-dom v3.5.41
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let em;const $g=typeof window<"u"&&window.trustedTypes;if($g)try{em=$g.createPolicy("vue",{createHTML:i=>i})}catch{}const bv=em?i=>em.createHTML(i):i=>i,$S="http://www.w3.org/2000/svg",HS="http://www.w3.org/1998/Math/MathML",si=typeof document<"u"?document:null,Hg=si&&si.createElement("template"),WS={insert:(i,t,e)=>{t.insertBefore(i,e||null)},remove:i=>{const t=i.parentNode;t&&t.removeChild(i)},createElement:(i,t,e,s)=>{const r=t==="svg"?si.createElementNS($S,i):t==="mathml"?si.createElementNS(HS,i):e?si.createElement(i,{is:e}):si.createElement(i);return i==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:i=>si.createTextNode(i),createComment:i=>si.createComment(i),setText:(i,t)=>{i.nodeValue=t},setElementText:(i,t)=>{i.textContent=t},parentNode:i=>i.parentNode,nextSibling:i=>i.nextSibling,querySelector:i=>si.querySelector(i),setScopeId(i,t){i.setAttribute(t,"")},insertStaticContent(i,t,e,s,r,n){const a=e?e.previousSibling:t.lastChild;if(r&&(r===n||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),e),!(r===n||!(r=r.nextSibling)););else{Hg.innerHTML=bv(s==="svg"?`<svg>${i}</svg>`:s==="mathml"?`<math>${i}</math>`:i);const o=Hg.content;if(s==="svg"||s==="mathml"){const h=o.firstChild;for(;h.firstChild;)o.appendChild(h.firstChild);o.removeChild(h)}t.insertBefore(o,e)}return[a?a.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},Di="transition",co="animation",jo=Symbol("_vtc"),vv={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},zS=We({},Gb,vv),jS=i=>(i.displayName="Transition",i.props=zS,i),AL=jS((i,{slots:t})=>zo(WT,qS(i),t)),yn=(i,t=[])=>{Mt(i)?i.forEach(e=>e(...t)):i&&i(...t)},Wg=i=>i?Mt(i)?i.some(t=>t.length>1):i.length>1:!1;function qS(i){const t={};for(const C in i)C in vv||(t[C]=i[C]);if(i.css===!1)return t;const{name:e="v",type:s,duration:r,enterFromClass:n=`${e}-enter-from`,enterActiveClass:a=`${e}-enter-active`,enterToClass:o=`${e}-enter-to`,appearFromClass:h=n,appearActiveClass:l=a,appearToClass:c=o,leaveFromClass:u=`${e}-leave-from`,leaveActiveClass:d=`${e}-leave-active`,leaveToClass:f=`${e}-leave-to`}=i,m=KS(r),p=m&&m[0],g=m&&m[1],{onBeforeEnter:y,onEnter:_,onEnterCancelled:v,onLeave:b,onLeaveCancelled:T,onBeforeAppear:S=y,onAppear:w=_,onAppearCancelled:E=v}=t,A=(C,R,F,D)=>{C._enterCancelled=D,xn(C,R?c:o),xn(C,R?l:a),F&&F()},P=(C,R)=>{C._isLeaving=!1,xn(C,u),xn(C,f),xn(C,d),R&&R()},I=C=>(R,F)=>{const D=C?w:_,M=()=>A(R,C,F);yn(D,[R,M]),zg(()=>{xn(R,C?h:n),Jr(R,C?c:o),Wg(D)||jg(R,s,p,M)})};return We(t,{onBeforeEnter(C){yn(y,[C]),Jr(C,n),Jr(C,a)},onBeforeAppear(C){yn(S,[C]),Jr(C,h),Jr(C,l)},onEnter:I(!1),onAppear:I(!0),onLeave(C,R){C._isLeaving=!0;const F=()=>P(C,R);Jr(C,u),C._enterCancelled?(Jr(C,d),Zg(C)):(Zg(C),Jr(C,d)),zg(()=>{C._isLeaving&&(xn(C,u),Jr(C,f),Wg(b)||jg(C,s,g,F))}),yn(b,[C,F])},onEnterCancelled(C){A(C,!1,void 0,!0),yn(v,[C])},onAppearCancelled(C){A(C,!0,void 0,!0),yn(E,[C])},onLeaveCancelled(C){P(C),yn(T,[C])}})}function KS(i){if(i==null)return null;if(le(i))return[nd(i.enter),nd(i.leave)];{const t=nd(i);return[t,t]}}function nd(i){return jw(i)}function Jr(i,t){t.split(/\s+/).forEach(e=>e&&i.classList.add(e)),(i[jo]||(i[jo]=new Set)).add(t)}function xn(i,t){t.split(/\s+/).forEach(s=>s&&i.classList.remove(s));const e=i[jo];e&&(e.delete(t),e.size||(i[jo]=void 0))}function zg(i){requestAnimationFrame(()=>{requestAnimationFrame(i)})}let ZS=0;function jg(i,t,e,s){const r=i._endId=++ZS,n=()=>{r===i._endId&&s()};if(e!=null)return setTimeout(n,e);const{type:a,timeout:o,propCount:h}=JS(i,t);if(!a)return s();const l=a+"end";let c=0;const u=()=>{i.removeEventListener(l,d),n()},d=f=>{f.target===i&&++c>=h&&u()};setTimeout(()=>{c<h&&u()},o+1),i.addEventListener(l,d)}function JS(i,t){const e=window.getComputedStyle(i),s=m=>(e[m]||"").split(", "),r=s(`${Di}Delay`),n=s(`${Di}Duration`),a=qg(r,n),o=s(`${co}Delay`),h=s(`${co}Duration`),l=qg(o,h);let c=null,u=0,d=0;t===Di?a>0&&(c=Di,u=a,d=n.length):t===co?l>0&&(c=co,u=l,d=h.length):(u=Math.max(a,l),c=u>0?a>l?Di:co:null,d=c?c===Di?n.length:h.length:0);const f=c===Di&&/\b(?:transform|all)(?:,|$)/.test(s(`${Di}Property`).toString());return{type:c,timeout:u,propCount:d,hasTransform:f}}function qg(i,t){for(;i.length<t.length;)i=i.concat(i);return Math.max(...t.map((e,s)=>Kg(e)+Kg(i[s])))}function Kg(i){return i==="auto"?0:Number(i.slice(0,-1).replace(",","."))*1e3}function Zg(i){return(i?i.ownerDocument:document).body.offsetHeight}function QS(i,t,e){const s=i[jo];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?i.removeAttribute("class"):e?i.setAttribute("class",t):i.className=t}const Uh=Symbol("_vod"),_v=Symbol("_vsh"),CL={name:"show",beforeMount(i,{value:t},{transition:e}){i[Uh]=i.style.display==="none"?"":i.style.display,e&&t?e.beforeEnter(i):uo(i,t)},mounted(i,{value:t},{tra Line truncated
`))),i[Vr]=Ua(r);const n=s||r.props&&r.props.type==="number";zi(i,t?"change":"input",a=>{a.target.composing||i[Vr](ld(i.value,e,n))}),(e||n)&&zi(i,"change",()=>{i.value=ld(i.value,e,n)}),t||(zi(i,"compositionstart",gE),zi(i,"compositionend",n0),zi(i,"change",n0))},mounted(i,{value:t,modifiers:{trim:e,number:s}}){const r=t??"",n=i[Gl];delete i[Gl],n!==void 0&&(i.type==="text"||i.type==="textarea")&&i.value!==n?i[Vr](ld(i.value,e,s)):i.value=r},beforeUpdate(i,{value:t,oldValue:e,modifiers:{lazy:s,trim:r,number:n}},a){if(i[Vr]=Ua(a),i.composing)return;const o=(n||i.type==="number")&&!/^0\d/.test(i.value)?Ac(i.value):i.value,h=t??"";if(o===h)return;const l=i.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===i&&i.type!=="range"&&(s&&t===e||r&&i.value.trim()===h)||(i.value=h)}},PL={deep:!0,created(i,t,e){i[Vr]=Ua(e),zi(i,"change",()=>{const s=i._modelValue,r=qo(i),n=i.checked,a=i[Vr];if(Mt(s)){const o=rp(s,r),h=o!==-1;if(n&&!h)a(s.concat(r));else if(!n&&h){const l=[...s];l.splice(o,1),a(l)}}else if(Za(s)){const o=new Set(s);n?o.add(r):o.delete(r),a(o)}else a(wv(i,n))})},mounted:a0,beforeUpdate(i,t,e){i[Vr]=Ua(e),a0(i,t,e)}};function a0(i,{value:t,oldValue:e},s){i._modelValue=t;let r;if(Mt(t))r=rp(t,s.props.value)>-1;else if(Za(t))r=t.has(s.props.value);else{if(t===e)return;r=Ja(t,wv(i,!0))}i.checked!==r&&(i.checked=r)}const ML={deep:!0,created(i,{value:t,modifiers:{number:e}},s){i._modelValue=t,zi(i,"change",()=>{const r=Array.prototype.filter.call(i.options,n=>n.selected).map(n=>e?Ac(qo(n)):qo(n));i[Vr](i.multiple?Za(i._modelValue)?new Set(r):r:r[0]),i._assigning=!0,fp(()=>{i._assigning=!1})}),i[Vr]=Ua(s)},mounted(i,{value:t}){o0(i,t)},beforeUpdate(i,{value:t},e){i._modelValue=t,i[Vr]=Ua(e)},updated(i,{value:t}){i._assigning||o0(i,t)}};function o0(i,t){const e=i.multiple,s=Mt(t);if(!(e&&!s&&!Za(t))){for(let r=0,n=i.options.length;r<n;r++){const a=i.options[r],o=qo(a);if(e)if(s){const h=typeof o;h==="string"||h==="number"?a.selected=t.some(l=>String(l)===String(o)):a.selected=rp(t,o)>-1}else a.selected=t.has(o);else if(Ja(qo(a),t)){i.selectedIndex!==r&&(i.selectedIndex=r);return}}!e&&i.selectedIndex!==-1&&(i.selectedIndex=-1)}}function qo(i){return"_value"in i?i._value:i.value}function wv(i,t){const e=t?"_trueValue":"_falseValue";return e in i?i[e]:t}const yE=["ctrl","shift","alt","meta"],xE={stop:i=>i.stopPropagation(),prevent:i=>i.preventDefault(),self:i=>i.target!==i.currentTarget,ctrl:i=>!i.ctrlKey,shift:i=>!i.shiftKey,alt:i=>!i.altKey,meta:i=>!i.metaKey,left:i=>"button"in i&&i.button!==0,middle:i=>"button"in i&&i.button!==1,right:i=>"button"in i&&i.button!==2,exact:(i,t)=>yE.some(e=>i[`${e}Key`]&&!t.includes(e))},RL=(i,t)=>{if(!i)return i;const e=i._withMods||(i._withMods={}),s=t.join(".");return e[s]||(e[s]=((r,...n)=>{for(let a=0;a<t.length;a++){const o=xE[t[a]];if(o&&o(r,t))return}return i(r,...n)}))},bE={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},FL=(i,t)=>{const e=i._withKeys||(i._withKeys={}),s=t.join(".");return e[s]||(e[s]=(r=>{if(!("key"in r))return;const n=ln(r.key);if(t.some(a=>a===n||bE[a]===n))return i(r)}))},vE=We({patchProp:fE},WS);let l0;function _E(){return l0||(l0=ES(vE))}const kL=((...i)=>{const t=_E().createApp(...i),{mount:e}=t;return t.mount=s=>{const r=TE(s);if(!r)return;const n=t._component;!Ot(n)&&!n.render&&!n.template&&(n.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const a=e(r,!1,wE(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t});function wE(i){if(i instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&i instanceof MathMLElement)return"mathml"}function TE(i){return Te(i)?document.querySelector(i):i}/*!
**/let rm;const Hg=typeof window<"u"&&window.trustedTypes;if(Hg)try{rm=Hg.createPolicy("vue",{createHTML:i=>i})}catch{}const vv=rm?i=>rm.createHTML(i):i=>i,WS="http://www.w3.org/2000/svg",zS="http://www.w3.org/1998/Math/MathML",si=typeof document<"u"?document:null,Wg=si&&si.createElement("template"),jS={insert:(i,t,e)=>{t.insertBefore(i,e||null)},remove:i=>{const t=i.parentNode;t&&t.removeChild(i)},createElement:(i,t,e,s)=>{const r=t==="svg"?si.createElementNS(WS,i):t==="mathml"?si.createElementNS(zS,i):e?si.createElement(i,{is:e}):si.createElement(i);return i==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:i=>si.createTextNode(i),createComment:i=>si.createComment(i),setText:(i,t)=>{i.nodeValue=t},setElementText:(i,t)=>{i.textContent=t},parentNode:i=>i.parentNode,nextSibling:i=>i.nextSibling,querySelector:i=>si.querySelector(i),setScopeId(i,t){i.setAttribute(t,"")},insertStaticContent(i,t,e,s,r,n){const a=e?e.previousSibling:t.lastChild;if(r&&(r===n||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),e),!(r===n||!(r=r.nextSibling)););else{Wg.innerHTML=vv(s==="svg"?`<svg>${i}</svg>`:s==="mathml"?`<math>${i}</math>`:i);const o=Wg.content;if(s==="svg"||s==="mathml"){const h=o.firstChild;for(;h.firstChild;)o.appendChild(h.firstChild);o.removeChild(h)}t.insertBefore(o,e)}return[a?a.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},Di="transition",co="animation",qo=Symbol("_vtc"),_v={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},qS=We({},$b,_v),KS=i=>(i.displayName="Transition",i.props=qS,i),IL=KS((i,{slots:t})=>jo(jT,ZS(i),t)),yn=(i,t=[])=>{Mt(i)?i.forEach(e=>e(...t)):i&&i(...t)},zg=i=>i?Mt(i)?i.some(t=>t.length>1):i.length>1:!1;function ZS(i){const t={};for(const C in i)C in _v||(t[C]=i[C]);if(i.css===!1)return t;const{name:e="v",type:s,duration:r,enterFromClass:n=`${e}-enter-from`,enterActiveClass:a=`${e}-enter-active`,enterToClass:o=`${e}-enter-to`,appearFromClass:h=n,appearActiveClass:l=a,appearToClass:c=o,leaveFromClass:u=`${e}-leave-from`,leaveActiveClass:d=`${e}-leave-active`,leaveToClass:f=`${e}-leave-to`}=i,m=JS(r),p=m&&m[0],g=m&&m[1],{onBeforeEnter:y,onEnter:_,onEnterCancelled:v,onLeave:b,onLeaveCancelled:T,onBeforeAppear:S=y,onAppear:w=_,onAppearCancelled:E=v}=t,A=(C,R,F,D)=>{C._enterCancelled=D,xn(C,R?c:o),xn(C,R?l:a),F&&F()},P=(C,R)=>{C._isLeaving=!1,xn(C,u),xn(C,f),xn(C,d),R&&R()},I=C=>(R,F)=>{const D=C?w:_,M=()=>A(R,C,F);yn(D,[R,M]),jg(()=>{xn(R,C?h:n),Jr(R,C?c:o),zg(D)||qg(R,s,p,M)})};return We(t,{onBeforeEnter(C){yn(y,[C]),Jr(C,n),Jr(C,a)},onBeforeAppear(C){yn(S,[C]),Jr(C,h),Jr(C,l)},onEnter:I(!1),onAppear:I(!0),onLeave(C,R){C._isLeaving=!0;const F=()=>P(C,R);Jr(C,u),C._enterCancelled?(Jr(C,d),Jg(C)):(Jg(C),Jr(C,d)),jg(()=>{C._isLeaving&&(xn(C,u),Jr(C,f),zg(b)||qg(C,s,g,F))}),yn(b,[C,F])},onEnterCancelled(C){A(C,!1,void 0,!0),yn(v,[C])},onAppearCancelled(C){A(C,!0,void 0,!0),yn(E,[C])},onLeaveCancelled(C){P(C),yn(T,[C])}})}function JS(i){if(i==null)return null;if(le(i))return[od(i.enter),od(i.leave)];{const t=od(i);return[t,t]}}function od(i){return Kw(i)}function Jr(i,t){t.split(/\s+/).forEach(e=>e&&i.classList.add(e)),(i[qo]||(i[qo]=new Set)).add(t)}function xn(i,t){t.split(/\s+/).forEach(s=>s&&i.classList.remove(s));const e=i[qo];e&&(e.delete(t),e.size||(i[qo]=void 0))}function jg(i){requestAnimationFrame(()=>{requestAnimationFrame(i)})}let QS=0;function qg(i,t,e,s){const r=i._endId=++QS,n=()=>{r===i._endId&&s()};if(e!=null)return setTimeout(n,e);const{type:a,timeout:o,propCount:h}=tE(i,t);if(!a)return s();const l=a+"end";let c=0;const u=()=>{i.removeEventListener(l,d),n()},d=f=>{f.target===i&&++c>=h&&u()};setTimeout(()=>{c<h&&u()},o+1),i.addEventListener(l,d)}function tE(i,t){const e=window.getComputedStyle(i),s=m=>(e[m]||"").split(", "),r=s(`${Di}Delay`),n=s(`${Di}Duration`),a=Kg(r,n),o=s(`${co}Delay`),h=s(`${co}Duration`),l=Kg(o,h);let c=null,u=0,d=0;t===Di?a>0&&(c=Di,u=a,d=n.length):t===co?l>0&&(c=co,u=l,d=h.length):(u=Math.max(a,l),c=u>0?a>l?Di:co:null,d=c?c===Di?n.length:h.length:0);const f=c===Di&&/\b(?:transform|all)(?:,|$)/.test(s(`${Di}Property`).toString());return{type:c,timeout:u,propCount:d,hasTransform:f}}function Kg(i,t){for(;i.length<t.length;)i=i.concat(i);return Math.max(...t.map((e,s)=>Zg(e)+Zg(i[s])))}function Zg(i){return i==="auto"?0:Number(i.slice(0,-1).replace(",","."))*1e3}function Jg(i){return(i?i.ownerDocument:document).body.offsetHeight}function eE(i,t,e){const s=i[qo];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?i.removeAttribute("class"):e?i.setAttribute("class",t):i.className=t}const Vh=Symbol("_vod"),wv=Symbol("_vsh"),PL={name:"show",beforeMount(i,{value:t},{transition:e}){i[Vh]=i.style.display==="none"?"":i.style.display,e&&t?e.beforeEnter(i):uo(i,t)},mounted(i,{value:t},{tra Line truncated
`))),i[Vr]=Xa(r);const n=s||r.props&&r.props.type==="number";zi(i,t?"change":"input",a=>{a.target.composing||i[Vr](cd(i.value,e,n))}),(e||n)&&zi(i,"change",()=>{i.value=cd(i.value,e,n)}),t||(zi(i,"compositionstart",xE),zi(i,"compositionend",a0),zi(i,"change",a0))},mounted(i,{value:t,modifiers:{trim:e,number:s}}){const r=t??"",n=i[Hl];delete i[Hl],n!==void 0&&(i.type==="text"||i.type==="textarea")&&i.value!==n?i[Vr](cd(i.value,e,s)):i.value=r},beforeUpdate(i,{value:t,oldValue:e,modifiers:{lazy:s,trim:r,number:n}},a){if(i[Vr]=Xa(a),i.composing)return;const o=(n||i.type==="number")&&!/^0\d/.test(i.value)?Ic(i.value):i.value,h=t??"";if(o===h)return;const l=i.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===i&&i.type!=="range"&&(s&&t===e||r&&i.value.trim()===h)||(i.value=h)}},RL={deep:!0,created(i,t,e){i[Vr]=Xa(e),zi(i,"change",()=>{const s=i._modelValue,r=Ko(i),n=i.checked,a=i[Vr];if(Mt(s)){const o=np(s,r),h=o!==-1;if(n&&!h)a(s.concat(r));else if(!n&&h){const l=[...s];l.splice(o,1),a(l)}}else if(Ja(s)){const o=new Set(s);n?o.add(r):o.delete(r),a(o)}else a(Tv(i,n))})},mounted:o0,beforeUpdate(i,t,e){i[Vr]=Xa(e),o0(i,t,e)}};function o0(i,{value:t,oldValue:e},s){i._modelValue=t;let r;if(Mt(t))r=np(t,s.props.value)>-1;else if(Ja(t))r=t.has(s.props.value);else{if(t===e)return;r=Qa(t,Tv(i,!0))}i.checked!==r&&(i.checked=r)}const FL={deep:!0,created(i,{value:t,modifiers:{number:e}},s){i._modelValue=t,zi(i,"change",()=>{const r=Array.prototype.filter.call(i.options,n=>n.selected).map(n=>e?Ic(Ko(n)):Ko(n));i[Vr](i.multiple?Ja(i._modelValue)?new Set(r):r:r[0]),i._assigning=!0,pp(()=>{i._assigning=!1})}),i[Vr]=Xa(s)},mounted(i,{value:t}){l0(i,t)},beforeUpdate(i,{value:t},e){i._modelValue=t,i[Vr]=Xa(e)},updated(i,{value:t}){i._assigning||l0(i,t)}};function l0(i,t){const e=i.multiple,s=Mt(t);if(!(e&&!s&&!Ja(t))){for(let r=0,n=i.options.length;r<n;r++){const a=i.options[r],o=Ko(a);if(e)if(s){const h=typeof o;h==="string"||h==="number"?a.selected=t.some(l=>String(l)===String(o)):a.selected=np(t,o)>-1}else a.selected=t.has(o);else if(Qa(Ko(a),t)){i.selectedIndex!==r&&(i.selectedIndex=r);return}}!e&&i.selectedIndex!==-1&&(i.selectedIndex=-1)}}function Ko(i){return"_value"in i?i._value:i.value}function Tv(i,t){const e=t?"_trueValue":"_falseValue";return e in i?i[e]:t}const bE=["ctrl","shift","alt","meta"],vE={stop:i=>i.stopPropagation(),prevent:i=>i.preventDefault(),self:i=>i.target!==i.currentTarget,ctrl:i=>!i.ctrlKey,shift:i=>!i.shiftKey,alt:i=>!i.altKey,meta:i=>!i.metaKey,left:i=>"button"in i&&i.button!==0,middle:i=>"button"in i&&i.button!==1,right:i=>"button"in i&&i.button!==2,exact:(i,t)=>bE.some(e=>i[`${e}Key`]&&!t.includes(e))},kL=(i,t)=>{if(!i)return i;const e=i._withMods||(i._withMods={}),s=t.join(".");return e[s]||(e[s]=((r,...n)=>{for(let a=0;a<t.length;a++){const o=vE[t[a]];if(o&&o(r,t))return}return i(r,...n)}))},_E={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},LL=(i,t)=>{const e=i._withKeys||(i._withKeys={}),s=t.join(".");return e[s]||(e[s]=(r=>{if(!("key"in r))return;const n=ln(r.key);if(t.some(a=>a===n||_E[a]===n))return i(r)}))},wE=We({patchProp:pE},jS);let h0;function TE(){return h0||(h0=CS(wE))}const BL=((...i)=>{const t=TE().createApp(...i),{mount:e}=t;return t.mount=s=>{const r=EE(s);if(!r)return;const n=t._component;!Dt(n)&&!n.render&&!n.template&&(n.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const a=e(r,!1,SE(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t});function SE(i){if(i instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&i instanceof MathMLElement)return"mathml"}function EE(i){return Te(i)?document.querySelector(i):i}/*!
* pinia v4.0.3
* (c) 2026 Eduardo San Martin Morote
* @license MIT
*/let Tv;const Nc=i=>Tv=i,Sv=Symbol();function h0(i){return i&&typeof i=="object"&&Object.prototype.toString.call(i)==="[object Object]"&&typeof i.toJSON!="function"}function LL(){const i=ip(!0),t=i.run(()=>Fb({}));let e=[],s=[];const r=dp({install(n){Nc(r),r._a=n,n.provide(Sv,r),n.config.globalProperties.$pinia=r,s.forEach(a=>e.push(a)),s=[]},use(n){return this._a?e.push(n):s.push(n),this},_p:e,_a:null,_e:i,_s:new Map,state:t});return r}const sm=()=>{};function c0(i,t,e,s=sm){i.add(t);const r=()=>{i.delete(t)&&s()};return!e&&np()&&yb(r),r}function na(i,...t){i.forEach(e=>{e(...t)})}const SE=i=>i(),u0=Symbol(),hd=Symbol();function rm(i,t){i instanceof Map&&t instanceof Map?t.forEach((e,s)=>i.set(s,e)):i instanceof Set&&t instanceof Set&&t.forEach(i.add,i);for(const e in t){if(!Object.hasOwn(t,e))continue;const s=t[e],r=i[e];h0(r)&&h0(s)&&Object.hasOwn(i,e)&&!Ce(s)&&!vi(s)?i[e]=rm(r,s):i[e]=s}return i}const EE=Symbol();function AE(i){return!i||typeof i!="object"||!Object.hasOwn(i,EE)}const{assign:Xi}=Object;function CE(i){return!!(Ce(i)&&i.effect)}function IE(i,t,e,s){const{state:r,actions:n,getters:a}=t,o=e.state.value[i];let h;function l(){o||(e.state.value[i]=r?r():{});const c=ET(e.state.value[i]);return Xi(c,n,Object.keys(a||{}).reduce((u,d)=>(u[d]=dp(Mn(()=>{Nc(e);const f=e._s.get(i);return a[d].call(f,f)})),u),{}))}return h=Ev(i,l,t,e,s,!0),h}function Ev(i,t,e={},s,r,n){let a;const o=Xi({actions:{}},e),h={deep:!0};let l,c,u=new Set,d=new Set,f;const m=s.state.value[i];!n&&!m&&(s.state.value[i]={});let p;function g(w){let E;l=c=!1,typeof w=="function"?(w(s.state.value[i]),E={type:"patch function",storeId:i,events:f}):(rm(s.state.value[i],w),E={type:"patch object",payload:w,storeId:i,events:f});const A=p=Symbol();fp().then(()=>{p===A&&(l=!0)}),c=!0,na(u,E,s.state.value[i])}const y=n?function(){const{state:E}=e,A=E?E():{};this.$patch(P=>{Xi(P,A)})}:sm;function _(){a.stop(),u.clear(),d.clear(),s._s.delete(i)}const v=(w,E="")=>{if(u0 in w)return w[hd]=E,w;const A=function(){Nc(s);const P=Array.from(arguments),I=new Set,C=new Set;function R(M){I.add(M)}function F(M){C.add(M)}na(d,{args:P,name:A[hd],store:T,after:R,onError:F});let D;try{D=w.apply(this&&this.$id===i?this:T,P)}catch(M){throw na(C,M),M}return D instanceof Promise?D.then(M=>(na(I,M),M)).catch(M=>(na(C,M),Promise.reject(M))):(na(I,D),D)};return A[u0]=!0,A[hd]=E,A},b={_p:s,$id:i,$onAction:c0.bind(null,d),$patch:g,$reset:y,$subscribe(w,E={}){if(u.has(w))return sm;const A=c0(u,w,E.detached,()=>P()),P=a.run(()=>tn(()=>s.state.value[i],I=>{(E.flush==="sync"?c:l)&&w({storeId:i,type:"direct",events:f},I)},Xi({},h,E)));return A},$dispose:_},T=Pc(b);s._s.set(i,T);const S=(s._a&&s._a.runWithContext||SE)(()=>s._e.run(()=>(a=ip()).run(()=>t({action:v}))));for(const w in S){const E=S[w];Ce(E)&&!CE(E)||vi(E)?n||(m&&AE(E)&&(Ce(E)?E.value=m[w]:((E instanceof Set||E instanceof Map)&&E.clear(),rm(E,m[w]))),s.state.value[i][w]=E):typeof E=="function"&&(S[w]=v(E,w),o.actions[w]=E)}return Xi(T,S),Xi(re(T),S),Object.defineProperty(T,"$state",{get:()=>s.state.value[i],set:w=>{g(E=>{Xi(E,w)})}}),s._p.forEach(w=>{const E=a.run(()=>w({store:T,app:s._a,pinia:s,options:o}));Xi(T,E)}),m&&n&&e.hydrate&&e.hydrate(T.$state,m),l=!0,c=!0,T}/*! #__NO_SIDE_EFFECTS__ */function BL(i,t,e){let s;const r=typeof t=="function";s=r?e:t;function n(a,o){const h=DT();return a=a||(h?Ca(Sv,null):null),a&&Nc(a),a=Tv,a._s.has(i)||(r?Ev(i,t,s,a):IE(i,s,a)),a._s.get(i)}return n.$id=i,n}/*!
*/let Sv;const Xc=i=>Sv=i,Ev=Symbol();function c0(i){return i&&typeof i=="object"&&Object.prototype.toString.call(i)==="[object Object]"&&typeof i.toJSON!="function"}function OL(){const i=ap(!0),t=i.run(()=>kb({}));let e=[],s=[];const r=mp({install(n){Xc(r),r._a=n,n.provide(Ev,r),n.config.globalProperties.$pinia=r,s.forEach(a=>e.push(a)),s=[]},use(n){return this._a?e.push(n):s.push(n),this},_p:e,_a:null,_e:i,_s:new Map,state:t});return r}const im=()=>{};function u0(i,t,e,s=im){i.add(t);const r=()=>{i.delete(t)&&s()};return!e&&op()&&xb(r),r}function aa(i,...t){i.forEach(e=>{e(...t)})}const AE=i=>i(),d0=Symbol(),ud=Symbol();function nm(i,t){i instanceof Map&&t instanceof Map?t.forEach((e,s)=>i.set(s,e)):i instanceof Set&&t instanceof Set&&t.forEach(i.add,i);for(const e in t){if(!Object.hasOwn(t,e))continue;const s=t[e],r=i[e];c0(r)&&c0(s)&&Object.hasOwn(i,e)&&!Ce(s)&&!vi(s)?i[e]=nm(r,s):i[e]=s}return i}const CE=Symbol();function IE(i){return!i||typeof i!="object"||!Object.hasOwn(i,CE)}const{assign:Xi}=Object;function PE(i){return!!(Ce(i)&&i.effect)}function ME(i,t,e,s){const{state:r,actions:n,getters:a}=t,o=e.state.value[i];let h;function l(){o||(e.state.value[i]=r?r():{});const c=CT(e.state.value[i]);return Xi(c,n,Object.keys(a||{}).reduce((u,d)=>(u[d]=mp(Mn(()=>{Xc(e);const f=e._s.get(i);return a[d].call(f,f)})),u),{}))}return h=Av(i,l,t,e,s,!0),h}function Av(i,t,e={},s,r,n){let a;const o=Xi({actions:{}},e),h={deep:!0};let l,c,u=new Set,d=new Set,f;const m=s.state.value[i];!n&&!m&&(s.state.value[i]={});let p;function g(w){let E;l=c=!1,typeof w=="function"?(w(s.state.value[i]),E={type:"patch function",storeId:i,events:f}):(nm(s.state.value[i],w),E={type:"patch object",payload:w,storeId:i,events:f});const A=p=Symbol();pp().then(()=>{p===A&&(l=!0)}),c=!0,aa(u,E,s.state.value[i])}const y=n?function(){const{state:E}=e,A=E?E():{};this.$patch(P=>{Xi(P,A)})}:im;function _(){a.stop(),u.clear(),d.clear(),s._s.delete(i)}const v=(w,E="")=>{if(d0 in w)return w[ud]=E,w;const A=function(){Xc(s);const P=Array.from(arguments),I=new Set,C=new Set;function R(M){I.add(M)}function F(M){C.add(M)}aa(d,{args:P,name:A[ud],store:T,after:R,onError:F});let D;try{D=w.apply(this&&this.$id===i?this:T,P)}catch(M){throw aa(C,M),M}return D instanceof Promise?D.then(M=>(aa(I,M),M)).catch(M=>(aa(C,M),Promise.reject(M))):(aa(I,D),D)};return A[d0]=!0,A[ud]=E,A},b={_p:s,$id:i,$onAction:u0.bind(null,d),$patch:g,$reset:y,$subscribe(w,E={}){if(u.has(w))return im;const A=u0(u,w,E.detached,()=>P()),P=a.run(()=>tn(()=>s.state.value[i],I=>{(E.flush==="sync"?c:l)&&w({storeId:i,type:"direct",events:f},I)},Xi({},h,E)));return A},$dispose:_},T=Rc(b);s._s.set(i,T);const S=(s._a&&s._a.runWithContext||AE)(()=>s._e.run(()=>(a=ap()).run(()=>t({action:v}))));for(const w in S){const E=S[w];Ce(E)&&!PE(E)||vi(E)?n||(m&&IE(E)&&(Ce(E)?E.value=m[w]:((E instanceof Set||E instanceof Map)&&E.clear(),nm(E,m[w]))),s.state.value[i][w]=E):typeof E=="function"&&(S[w]=v(E,w),o.actions[w]=E)}return Xi(T,S),Xi(re(T),S),Object.defineProperty(T,"$state",{get:()=>s.state.value[i],set:w=>{g(E=>{Xi(E,w)})}}),s._p.forEach(w=>{const E=a.run(()=>w({store:T,app:s._a,pinia:s,options:o}));Xi(T,E)}),m&&n&&e.hydrate&&e.hydrate(T.$state,m),l=!0,c=!0,T}/*! #__NO_SIDE_EFFECTS__ */function DL(i,t,e){let s;const r=typeof t=="function";s=r?e:t;function n(a,o){const h=UT();return a=a||(h?Ia(Ev,null):null),a&&Xc(a),a=Sv,a._s.has(i)||(r?Av(i,t,s,a):ME(i,s,a)),a._s.get(i)}return n.$id=i,n}/*!
* shared v11.4.16
* (c) 2026 kazuya kawaguchi
* Released under the MIT License.
*/const Xh=typeof window<"u",hn=(i,t=!1)=>t?Symbol.for(i):Symbol(i),PE=(i,t,e)=>ME({l:i,k:t,s:e}),ME=i=>JSON.stringify(i).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ne=i=>typeof i=="number"&&isFinite(i),Av=i=>Sp(i)==="[object Date]",Xa=i=>Sp(i)==="[object RegExp]",Tp=i=>de(i)&&Object.keys(i).length===0,Le=Object.assign,RE=Object.create,he=(i=null)=>RE(i);let d0;const Ki=()=>d0||(d0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:he()),FE=Object.prototype.hasOwnProperty;function qs(i,t){return FE.call(i,t)}function qe(i,t){const e=i[t];return qs(i,t)?e:void 0}function Cv(i){return qs(Object.prototype,i)}const _e=Array.isArray,ve=i=>typeof i=="function",Et=i=>typeof i=="string",ie=i=>typeof i=="boolean",se=i=>i!==null&&typeof i=="object",kE=i=>se(i)&&ve(i.then)&&ve(i.catch),Iv=Object.prototype.toString,Sp=i=>Iv.call(i),de=i=>Sp(i)==="[object Object]",LE=i=>i==null?"":_e(i)||de(i)&&i.toString===Iv?JSON.stringify(i,null,2):String(i);function Ep(i,t=""){return i.reduce((e,s,r)=>r===0?e+s:e+t+s,"")}function BE(i,t){typeof console<"u"&&(console.warn("[intlify] "+i),t&&console.warn(t.stack))}function f0(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function OE(i){return i.replace(/&(?![a-z0-9#]{2,6};)/gi,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const DE=/^javascript:/i,NE=/^(?:href|src|action|formaction)$/i,UE=/&#(?:x([0-9a-f]+)|(\d+));?/gi,XE=/&(?:Tab|NewLine);/g,VE=/&colon;?/gi,YE=/[\u0000-\u0020\u007f-\u009f]/g,GE=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,$E=/(^|[\s"'<>/])on(\w+\s*=)/gi,HE=/(?:^|[\s"'<>/])srcdoc\s*=/i,WE=/(^|[\s"'<>/])s(rcdoc\s*=)/gi,zE=/(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function jE(i,t,e){const s=t||e;if(!s)return i;const r=Number.parseInt(s,t?16:10);return r<=127?String.fromCharCode(r):i}function Ap(i){const t=i.replace(UE,jE).replace(XE,"").replace(VE,":").replace(YE,"");return DE.test(t)}function qE(i){const t=/url\s*\(/gi;let e="",s=0,r;for(;(r=t.exec(i))!==null;){const n=r.index,a=t.lastIndex-1;let o=a+1,h=1,l=null;for(;o<i.length;o++){const d=i[o];if(l){d===l&&(l=null);continue}if(d==='"'||d==="'")l=d;else if(d==="(")h++;else if(d===")"&&(h--,h===0))break}if(h!==0)break;const c=i.slice(a+1,o).trim(),u=c.startsWith('"')&&c.endsWith('"')||c.startsWith("'")&&c.endsWith("'")?c.slice(1,-1).trim():c;e+=i.slice(s,n),e+=Ap(u)?"url(about:blank)":i.slice(n,o+1),s=o+1}return e+i.slice(s)}function m0(i,t){if(NE.test(i)&&Ap(t))return"about:blank";const e=i.toLowerCase()==="style"?qE(t):t;return OE(e)}function KE(i){return i=i.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(t,e,s)=>`${e}="${m0(e,s)}"`),i=i.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(t,e,s)=>`${e}='${m0(e,s)}'`),GE.test(i)&&(i=i.replace($E,"$1&#111;n$2")),HE.test(i)&&(i=i.replace(WE,"$1&#115;$2")),i=i.replace(zE,(t,e,s,r)=>Ap(r)?`${e}${s}about:blank`:t),i}const p0=i=>!se(i)||_e(i);function vh(i,t){if(p0(i)||p0(t)||t===Object.prototype)throw new Error("Invalid value");const e=[{src:i,des:t}];for(;e.length;){const{src:s,des:r}=e.pop();Object.keys(s).forEach(n=>{if(n==="__proto__")return;const a=s[n];if(_e(a)){const o=[];o.length=a.length,r[n]=o,e.push({src:a,des:o})}else se(a)?((!se(r[n])||_e(r[n]))&&(r[n]=he()),e.push({src:a,des:r[n]})):r[n]=a})}}/*!
*/const Yh=typeof window<"u",hn=(i,t=!1)=>t?Symbol.for(i):Symbol(i),RE=(i,t,e)=>FE({l:i,k:t,s:e}),FE=i=>JSON.stringify(i).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ne=i=>typeof i=="number"&&isFinite(i),Cv=i=>Ap(i)==="[object Date]",Va=i=>Ap(i)==="[object RegExp]",Ep=i=>de(i)&&Object.keys(i).length===0,Le=Object.assign,kE=Object.create,he=(i=null)=>kE(i);let f0;const Ki=()=>f0||(f0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:he()),LE=Object.prototype.hasOwnProperty;function qs(i,t){return LE.call(i,t)}function qe(i,t){const e=i[t];return qs(i,t)?e:void 0}function Iv(i){return qs(Object.prototype,i)}const _e=Array.isArray,ve=i=>typeof i=="function",Et=i=>typeof i=="string",ie=i=>typeof i=="boolean",se=i=>i!==null&&typeof i=="object",BE=i=>se(i)&&ve(i.then)&&ve(i.catch),Pv=Object.prototype.toString,Ap=i=>Pv.call(i),de=i=>Ap(i)==="[object Object]",OE=i=>i==null?"":_e(i)||de(i)&&i.toString===Pv?JSON.stringify(i,null,2):String(i);function Cp(i,t=""){return i.reduce((e,s,r)=>r===0?e+s:e+t+s,"")}function DE(i,t){typeof console<"u"&&(console.warn("[intlify] "+i),t&&console.warn(t.stack))}function m0(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function NE(i){return i.replace(/&(?![a-z0-9#]{2,6};)/gi,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const UE=/^javascript:/i,XE=/^(?:href|src|action|formaction)$/i,VE=/&#(?:x([0-9a-f]+)|(\d+));?/gi,YE=/&(?:Tab|NewLine);/g,GE=/&colon;?/gi,$E=/[\u0000-\u0020\u007f-\u009f]/g,HE=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,WE=/(^|[\s"'<>/])on(\w+\s*=)/gi,zE=/(?:^|[\s"'<>/])srcdoc\s*=/i,jE=/(^|[\s"'<>/])s(rcdoc\s*=)/gi,qE=/(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function KE(i,t,e){const s=t||e;if(!s)return i;const r=Number.parseInt(s,t?16:10);return r<=127?String.fromCharCode(r):i}function Ip(i){const t=i.replace(VE,KE).replace(YE,"").replace(GE,":").replace($E,"");return UE.test(t)}function ZE(i){const t=/url\s*\(/gi;let e="",s=0,r;for(;(r=t.exec(i))!==null;){const n=r.index,a=t.lastIndex-1;let o=a+1,h=1,l=null;for(;o<i.length;o++){const d=i[o];if(l){d===l&&(l=null);continue}if(d==='"'||d==="'")l=d;else if(d==="(")h++;else if(d===")"&&(h--,h===0))break}if(h!==0)break;const c=i.slice(a+1,o).trim(),u=c.startsWith('"')&&c.endsWith('"')||c.startsWith("'")&&c.endsWith("'")?c.slice(1,-1).trim():c;e+=i.slice(s,n),e+=Ip(u)?"url(about:blank)":i.slice(n,o+1),s=o+1}return e+i.slice(s)}function p0(i,t){if(XE.test(i)&&Ip(t))return"about:blank";const e=i.toLowerCase()==="style"?ZE(t):t;return NE(e)}function JE(i){return i=i.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(t,e,s)=>`${e}="${p0(e,s)}"`),i=i.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(t,e,s)=>`${e}='${p0(e,s)}'`),HE.test(i)&&(i=i.replace(WE,"$1&#111;n$2")),zE.test(i)&&(i=i.replace(jE,"$1&#115;$2")),i=i.replace(qE,(t,e,s,r)=>Ip(r)?`${e}${s}about:blank`:t),i}const g0=i=>!se(i)||_e(i);function wh(i,t){if(g0(i)||g0(t)||t===Object.prototype)throw new Error("Invalid value");const e=[{src:i,des:t}];for(;e.length;){const{src:s,des:r}=e.pop();Object.keys(s).forEach(n=>{if(n==="__proto__")return;const a=s[n];if(_e(a)){const o=[];o.length=a.length,r[n]=o,e.push({src:a,des:o})}else se(a)?((!se(r[n])||_e(r[n]))&&(r[n]=he()),e.push({src:a,des:r[n]})):r[n]=a})}}/*!
* message-compiler v11.4.16
* (c) 2026 kazuya kawaguchi
* Released under the MIT License.
*/function ZE(i,t,e){return{line:i,column:t,offset:e}}function im(i,t,e){return{start:i,end:t}}const ae={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},JE=17;function Uc(i,t,e={}){const{domain:s,messages:r,args:n}=e,a=i,o=new SyntaxError(String(a));return o.code=i,t&&(o.location=t),o.domain=s,o}function QE(i){throw i}const Sr=" ",tA="\r",is=`
`,eA="\u2028",sA="\u2029";function rA(i){const t=i;let e=0,s=1,r=1,n=0;const a=w=>t[w]===tA&&t[w+1]===is,o=w=>t[w]===is,h=w=>t[w]===sA,l=w=>t[w]===eA,c=w=>a(w)||o(w)||h(w)||l(w),u=()=>e,d=()=>s,f=()=>r,m=()=>n,p=w=>a(w)||h(w)||l(w)?is:t[w],g=()=>p(e),y=()=>p(e+n);function _(){return n=0,c(e)&&(s++,r=0),a(e)&&e++,e++,r++,t[e]}function v(){return a(e+n)&&n++,n++,t[e+n]}function b(){e=0,s=1,r=1,n=0}function T(w=0){n=w}function S(){const w=e+n;for(;w!==e;)_();n=0}return{index:u,line:d,column:f,peekOffset:m,charAt:p,currentChar:g,currentPeek:y,next:_,peek:v,reset:b,resetPeek:T,skipToPeek:S}}const Qr=void 0,iA=".",g0="'",nA="tokenizer";function aA(i,t={}){const e=t.location!==!1,s=rA(i),r=()=>s.index(),n=()=>ZE(s.line(),s.column(),s.index()),a=n(),o=r(),h={currentType:13,offset:o,startLoc:a,endLoc:a,lastType:13,lastOffset:o,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},l=()=>h,{onError:c}=t;function u(U,Y,W,...j){const mt=l();if(Y.column+=W,Y.offset+=W,c){const ut=e?im(mt.startLoc,Y):null,vt=Uc(U,ut,{domain:nA,args:j});c(vt)}}function d(U,Y,W){U.endLoc=n(),U.currentType=Y;const j={type:Y};return e&&(j.loc=im(U.startLoc,U.endLoc)),W!=null&&(j.value=W),j}const f=U=>d(U,13);function m(U,Y){return U.currentChar()===Y?(U.next(),Y):(u(ae.EXPECTED_TOKEN,n(),0,Y),"")}function p(U){let Y="";for(;U.currentPeek()===Sr||U.currentPeek()===is;)Y+=U.currentPeek(),U.peek();return Y}function g(U){const Y=p(U);return U.skipToPeek(),Y}function y(U){if(U===Qr)return!1;const Y=U.charCodeAt(0);return Y>=97&&Y<=122||Y>=65&&Y<=90||Y===95}function _(U){if(U===Qr)return!1;const Y=U.charCodeAt(0);return Y>=48&&Y<=57}function v(U,Y){const{currentType:W}=Y;if(W!==2)return!1;p(U);const j=y(U.currentPeek());return U.resetPeek(),j}function b(U,Y){const{currentType:W}=Y;if(W!==2)return!1;p(U);const j=U.currentPeek()==="-"?U.peek():U.currentPeek(),mt=_(j);return U.resetPeek(),mt}function T(U,Y){const{currentType:W}=Y;if(W!==2)return!1;p(U);const j=U.currentPeek()===g0;return U.resetPeek(),j}function S(U,Y){const{currentType:W}=Y;if(W!==7)return!1;p(U);const j=U.currentPeek()===".";return U.resetPeek(),j}function w(U,Y){const{currentType:W}=Y;if(W!==8)return!1;p(U);const j=y(U.currentPeek());return U.resetPeek(),j}function E(U,Y){const{currentType:W}=Y;if(!(W===7||W===11))return!1;p(U);const j=U.currentPeek()===":";return U.resetPeek(),j}function A(U,Y){const{currentType:W}=Y;if(W!==9)return!1;const j=()=>{const ut=U.currentPeek();return ut==="{"?y(U.peek()):ut==="@"||ut==="|"||ut===":"||ut==="."||ut===Sr||!ut?!1:ut===is?(U.peek(),j()):I(U,!1)},mt=j();return U.resetPeek(),mt}function P(U){p(U);const Y=U.currentPeek()==="|";return U.resetPeek(),Y}function I(U,Y=!0){const W=(mt=!1,ut="")=>{const vt=U.currentPeek();return vt==="{"||vt==="@"||!vt?mt:vt==="|"?!(ut===Sr||ut===is):vt===Sr?(U.peek(),W(!0,Sr)):vt===is?(U.peek(),W(!0,is)):!0},j=W();return Y&&U.resetPeek(),j}function C(U,Y){const W=U.currentChar();return W===Qr?Qr:Y(W)?(U.next(),W):null}function R(U){const Y=U.charCodeAt(0);return Y>=97&&Y<=122||Y>=65&&Y<=90||Y>=48&&Y<=57||Y===95||Y===36}function F(U){return C(U,R)}function D(U){const Y=U.charCodeAt(0);return Y>=97&&Y<=122||Y>=65&&Y<=90||Y>=48&&Y<=57||Y===95||Y===36||Y===45}function M(U){return C(U,D)}function O(U){const Y=U.charCodeAt(0);return Y>=48&&Y<=57}function k(U){return C(U,O)}function N(U){const Y=U.charCodeAt(0);return Y>=48&&Y<=57||Y>=65&&Y<=70||Y>=97&&Y<=102}function B(U){return C(U,N)}function L(U){let Y="",W="";for(;Y=k(U);)W+=Y;return W}function G(U){let Y="";for(;;){const W=U.currentChar();if(W==="\\"){const j=U.peek();j==="{"||j==="}"||j==="@"||j==="|"||j==="\\"?(Y+=W+j,U.next(),U.next()):(U.resetPeek(),Y+=W,U.next())}else{if(W==="{"||W==="}"||W==="@"||W==="|"||!W)break;if(W===Sr||W===is)if(I(U))Y+=W,U.next();else{if(P(U))break;Y+=W,U.next()}else Y+=W,U.next()}}return Y}function V(U){g(U);let Y="",W="";for(;Y=M(U);)W+=Y;const j=U.currentChar();if(j&&j!=="}"&&j!==Qr&&j!==Sr&&j!==is&&j!==" "){const mt=rt(U);return u(ae.INVALID_TOKEN_IN_PLACEHOLDER,n(),0,W+mt),W+mt}return U.currentChar()===Qr&&u(ae.UNTERMINATED_CLOSING_BRACE,n(),0),W}function q(U){g(U);let Y="";return U.currentChar()==="-"?(U.next(),Y+=`-${L(U)}`):Y+=L(U),U.currentChar()===Qr&&u(ae.UNTERMINATED_CLOSING_BRACE,n(),0),Y}function H(U){return U!==g0&&U!==is}function at(U){g(U),m(U,"'");let Y="",W="";for(;Y=C(U,H);)Y==="\\"?W+=et(U):W+=Y;const j=U.currentChar();return j===is||j===Qr?(u(ae.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,n(),0),j===is&&(U.next(),m(U,"'")),W):(m(U,"'"),W)}function et(U){const Y=U.currentChar();switch(Y){case"\\":case"'":return U.next(),`\\${Y}`;case"u":return ot(U,Y,4);case"U":return ot(U,Y,6);default:return u(ae.UNKNOWN_ESCAPE_SEQUENCE,n(),0,Y),""}}function ot(U,Y,W){m(U,Y);let j="";for(let mt=0;mt<W;mt++){const ut=B(U);if(!ut){u(ae.INVALID_UNICODE_ESCAPE_SEQUENCE,n(),0,`\\${Y}${j}${U.currentChar()}`);break}j+=ut}return`\\${Y}${j}`}function ct(U){return U!=="{"&&U!=="}"&&U!==Sr&&U!==is}function rt(U){g(U);let Y="",W="";for( Line truncated
`,n=t.needIndent?t.needIndent:e!=="arrow",a=i.helpers||[],o=gA(i,{filename:s,breakLineCode:r,needIndent:n});o.push(e==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),o.indent(n),a.length>0&&(o.push(`const { ${Ep(a.map(c=>`${c}: _${c}`),", ")} } = ctx`),o.newline()),o.push("return "),Va(o,i),o.deindent(n),o.push("}"),delete i.helpers;const{code:h,map:l}=o.context();return{ast:i,code:h,map:l?l.toJSON():void 0}};function wA(i,t={}){const e=Le({},t),s=!!e.jit,r=!!e.minify,n=e.optimize==null?!0:e.optimize,o=dA(e).parse(i);return s?(n&&pA(o),r&&ca(o),{ast:o,code:""}):(mA(o,e),_A(o,e))}/*!
*/function QE(i,t,e){return{line:i,column:t,offset:e}}function am(i,t,e){return{start:i,end:t}}const ae={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},tA=17;function Vc(i,t,e={}){const{domain:s,messages:r,args:n}=e,a=i,o=new SyntaxError(String(a));return o.code=i,t&&(o.location=t),o.domain=s,o}function eA(i){throw i}const Sr=" ",sA="\r",is=`
`,rA="\u2028",iA="\u2029";function nA(i){const t=i;let e=0,s=1,r=1,n=0;const a=w=>t[w]===sA&&t[w+1]===is,o=w=>t[w]===is,h=w=>t[w]===iA,l=w=>t[w]===rA,c=w=>a(w)||o(w)||h(w)||l(w),u=()=>e,d=()=>s,f=()=>r,m=()=>n,p=w=>a(w)||h(w)||l(w)?is:t[w],g=()=>p(e),y=()=>p(e+n);function _(){return n=0,c(e)&&(s++,r=0),a(e)&&e++,e++,r++,t[e]}function v(){return a(e+n)&&n++,n++,t[e+n]}function b(){e=0,s=1,r=1,n=0}function T(w=0){n=w}function S(){const w=e+n;for(;w!==e;)_();n=0}return{index:u,line:d,column:f,peekOffset:m,charAt:p,currentChar:g,currentPeek:y,next:_,peek:v,reset:b,resetPeek:T,skipToPeek:S}}const Qr=void 0,aA=".",y0="'",oA="tokenizer";function lA(i,t={}){const e=t.location!==!1,s=nA(i),r=()=>s.index(),n=()=>QE(s.line(),s.column(),s.index()),a=n(),o=r(),h={currentType:13,offset:o,startLoc:a,endLoc:a,lastType:13,lastOffset:o,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},l=()=>h,{onError:c}=t;function u(U,Y,W,...j){const mt=l();if(Y.column+=W,Y.offset+=W,c){const ut=e?am(mt.startLoc,Y):null,vt=Vc(U,ut,{domain:oA,args:j});c(vt)}}function d(U,Y,W){U.endLoc=n(),U.currentType=Y;const j={type:Y};return e&&(j.loc=am(U.startLoc,U.endLoc)),W!=null&&(j.value=W),j}const f=U=>d(U,13);function m(U,Y){return U.currentChar()===Y?(U.next(),Y):(u(ae.EXPECTED_TOKEN,n(),0,Y),"")}function p(U){let Y="";for(;U.currentPeek()===Sr||U.currentPeek()===is;)Y+=U.currentPeek(),U.peek();return Y}function g(U){const Y=p(U);return U.skipToPeek(),Y}function y(U){if(U===Qr)return!1;const Y=U.charCodeAt(0);return Y>=97&&Y<=122||Y>=65&&Y<=90||Y===95}function _(U){if(U===Qr)return!1;const Y=U.charCodeAt(0);return Y>=48&&Y<=57}function v(U,Y){const{currentType:W}=Y;if(W!==2)return!1;p(U);const j=y(U.currentPeek());return U.resetPeek(),j}function b(U,Y){const{currentType:W}=Y;if(W!==2)return!1;p(U);const j=U.currentPeek()==="-"?U.peek():U.currentPeek(),mt=_(j);return U.resetPeek(),mt}function T(U,Y){const{currentType:W}=Y;if(W!==2)return!1;p(U);const j=U.currentPeek()===y0;return U.resetPeek(),j}function S(U,Y){const{currentType:W}=Y;if(W!==7)return!1;p(U);const j=U.currentPeek()===".";return U.resetPeek(),j}function w(U,Y){const{currentType:W}=Y;if(W!==8)return!1;p(U);const j=y(U.currentPeek());return U.resetPeek(),j}function E(U,Y){const{currentType:W}=Y;if(!(W===7||W===11))return!1;p(U);const j=U.currentPeek()===":";return U.resetPeek(),j}function A(U,Y){const{currentType:W}=Y;if(W!==9)return!1;const j=()=>{const ut=U.currentPeek();return ut==="{"?y(U.peek()):ut==="@"||ut==="|"||ut===":"||ut==="."||ut===Sr||!ut?!1:ut===is?(U.peek(),j()):I(U,!1)},mt=j();return U.resetPeek(),mt}function P(U){p(U);const Y=U.currentPeek()==="|";return U.resetPeek(),Y}function I(U,Y=!0){const W=(mt=!1,ut="")=>{const vt=U.currentPeek();return vt==="{"||vt==="@"||!vt?mt:vt==="|"?!(ut===Sr||ut===is):vt===Sr?(U.peek(),W(!0,Sr)):vt===is?(U.peek(),W(!0,is)):!0},j=W();return Y&&U.resetPeek(),j}function C(U,Y){const W=U.currentChar();return W===Qr?Qr:Y(W)?(U.next(),W):null}function R(U){const Y=U.charCodeAt(0);return Y>=97&&Y<=122||Y>=65&&Y<=90||Y>=48&&Y<=57||Y===95||Y===36}function F(U){return C(U,R)}function D(U){const Y=U.charCodeAt(0);return Y>=97&&Y<=122||Y>=65&&Y<=90||Y>=48&&Y<=57||Y===95||Y===36||Y===45}function M(U){return C(U,D)}function O(U){const Y=U.charCodeAt(0);return Y>=48&&Y<=57}function k(U){return C(U,O)}function N(U){const Y=U.charCodeAt(0);return Y>=48&&Y<=57||Y>=65&&Y<=70||Y>=97&&Y<=102}function B(U){return C(U,N)}function L(U){let Y="",W="";for(;Y=k(U);)W+=Y;return W}function G(U){let Y="";for(;;){const W=U.currentChar();if(W==="\\"){const j=U.peek();j==="{"||j==="}"||j==="@"||j==="|"||j==="\\"?(Y+=W+j,U.next(),U.next()):(U.resetPeek(),Y+=W,U.next())}else{if(W==="{"||W==="}"||W==="@"||W==="|"||!W)break;if(W===Sr||W===is)if(I(U))Y+=W,U.next();else{if(P(U))break;Y+=W,U.next()}else Y+=W,U.next()}}return Y}function V(U){g(U);let Y="",W="";for(;Y=M(U);)W+=Y;const j=U.currentChar();if(j&&j!=="}"&&j!==Qr&&j!==Sr&&j!==is&&j!==" "){const mt=rt(U);return u(ae.INVALID_TOKEN_IN_PLACEHOLDER,n(),0,W+mt),W+mt}return U.currentChar()===Qr&&u(ae.UNTERMINATED_CLOSING_BRACE,n(),0),W}function q(U){g(U);let Y="";return U.currentChar()==="-"?(U.next(),Y+=`-${L(U)}`):Y+=L(U),U.currentChar()===Qr&&u(ae.UNTERMINATED_CLOSING_BRACE,n(),0),Y}function H(U){return U!==y0&&U!==is}function at(U){g(U),m(U,"'");let Y="",W="";for(;Y=C(U,H);)Y==="\\"?W+=et(U):W+=Y;const j=U.currentChar();return j===is||j===Qr?(u(ae.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,n(),0),j===is&&(U.next(),m(U,"'")),W):(m(U,"'"),W)}function et(U){const Y=U.currentChar();switch(Y){case"\\":case"'":return U.next(),`\\${Y}`;case"u":return ot(U,Y,4);case"U":return ot(U,Y,6);default:return u(ae.UNKNOWN_ESCAPE_SEQUENCE,n(),0,Y),""}}function ot(U,Y,W){m(U,Y);let j="";for(let mt=0;mt<W;mt++){const ut=B(U);if(!ut){u(ae.INVALID_UNICODE_ESCAPE_SEQUENCE,n(),0,`\\${Y}${j}${U.currentChar()}`);break}j+=ut}return`\\${Y}${j}`}function ct(U){return U!=="{"&&U!=="}"&&U!==Sr&&U!==is}function rt(U){g(U);let Y="",W="";for( Line truncated
`,n=t.needIndent?t.needIndent:e!=="arrow",a=i.helpers||[],o=xA(i,{filename:s,breakLineCode:r,needIndent:n});o.push(e==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),o.indent(n),a.length>0&&(o.push(`const { ${Cp(a.map(c=>`${c}: _${c}`),", ")} } = ctx`),o.newline()),o.push("return "),Ya(o,i),o.deindent(n),o.push("}"),delete i.helpers;const{code:h,map:l}=o.context();return{ast:i,code:h,map:l?l.toJSON():void 0}};function SA(i,t={}){const e=Le({},t),s=!!e.jit,r=!!e.minify,n=e.optimize==null?!0:e.optimize,o=mA(e).parse(i);return s?(n&&yA(o),r&&ua(o),{ast:o,code:""}):(gA(o,e),TA(o,e))}/*!
* core-base v11.4.16
* (c) 2026 kazuya kawaguchi
* Released under the MIT License.
*/function TA(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ki().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ki().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function $n(i){return se(i)&&Ip(i)===0&&(qs(i,"b")||qs(i,"body"))}const Pv=["b","body"];function SA(i){return cn(i,Pv)}const Mv=["c","cases"];function EA(i){return cn(i,Mv,[])}const Rv=["s","static"];function AA(i){return cn(i,Rv)}const Fv=["i","items"];function CA(i){return cn(i,Fv,[])}const kv=["t","type"];function Ip(i){return cn(i,kv)}const Lv=["v","value"];function $l(i,t){const e=cn(i,Lv);if(e!=null)return e;throw Ko(t)}const Bv=["m","modifier"];function IA(i){return cn(i,Bv)}const Ov=["k","key"];function PA(i){const t=cn(i,Ov);if(t)return t;throw Ko(6)}function cn(i,t,e){for(let s=0;s<t.length;s++){const r=t[s];if(qs(i,r)&&i[r]!=null)return i[r]}return e}const Dv=[...Pv,...Mv,...Rv,...Fv,...Ov,...Bv,...Lv,...kv];function Ko(i){return new Error(`unhandled node type: ${i}`)}function cd(i){return e=>MA(e,i)}function MA(i,t){const e=SA(t);if(e==null)throw Ko(0);if(Ip(e)===1){const n=EA(e);return i.plural(n.reduce((a,o)=>[...a,b0(i,o)],[]))}else return b0(i,e)}function b0(i,t){const e=AA(t);if(e!=null)return i.type==="text"?e:i.normalize([e]);{const s=CA(t).reduce((r,n)=>[...r,nm(i,n)],[]);return i.normalize(s)}}function nm(i,t){const e=Ip(t);switch(e){case 3:return $l(t,e);case 9:return $l(t,e);case 4:{const s=t;if(qs(s,"k")&&s.k)return i.interpolate(i.named(s.k));if(qs(s,"key")&&s.key)return i.interpolate(i.named(s.key));throw Ko(e)}case 5:{const s=t;if(qs(s,"i")&&Ne(s.i))return i.interpolate(i.list(s.i));if(qs(s,"index")&&Ne(s.index))return i.interpolate(i.list(s.index));throw Ko(e)}case 6:{const s=t,r=IA(s),n=PA(s);return i.linked(nm(i,n),r?nm(i,r):void 0,i.type)}case 7:return $l(t,e);case 8:return $l(t,e);default:throw new Error(`unhandled node on format message part: ${e}`)}}const RA=i=>i;let Hl=he();function FA(i,t={}){let e=!1;const s=t.onError||QE;return t.onError=r=>{e=!0,s(r)},{...wA(i,t),detectError:e}}function kA(i,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Et(i)){ie(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||RA)(i),r=Hl[s];if(r)return r;const{ast:n,detectError:a}=FA(i,{...t,location:!1,jit:!0}),o=cd(n);return a?o:Hl[s]=o}else{if(!$n(i))return(()=>i);const e=i.cacheKey;if(e){const s=Hl[e];return s||(Hl[e]=cd(i))}else return cd(i)}}let Zo=null;function LA(i){Zo=i}function BA(i,t,e){Zo&&Zo.emit("i18n:init",{timestamp:Date.now(),i18n:i,version:t,meta:e})}const OA=DA("function:translate");function DA(i){return t=>Zo&&Zo.emit(i,t)}const di={INVALID_ARGUMENT:JE,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},NA=24;function fi(i){return Uc(i,null,void 0)}function Pp(i,t){return t.locale!=null?v0(t.locale):v0(i.locale)}let ud;function v0(i){if(Et(i))return i;if(ve(i)){if(i.resolvedOnce&&ud!=null)return ud;if(i.constructor.name==="Function"){const t=i();if(kE(t))throw fi(di.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ud=t}else throw fi(di.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw fi(di.NOT_SUPPORT_LOCALE_TYPE)}function UA(i,t,e){return[...new Set([e,..._e(t)?t:se(t)?Object.keys(t).filter(s=>s!=="default"):Et(t)?[t]:[e]])]}function XA(i,t,e){const s=Et(e)?e:Jo,r=i;let n;se(t)?(r.__localeChainObjectCache||(r.__localeChainObjectCache=new WeakMap),n=r.__localeChainObjectCache.get(t),n||(n=new Map,r.__localeChainObjectCache.set(t,n))):(r.__localeChainCache||(r.__localeChainCache=new Map),n=r.__localeChainCache.get(t),n||(n=new Map,r.__localeChainCache.set(t,n)));const a=n.get(s);if(a)return a;const o=[];let h=[e];for(;_e(h);)h=_0(o,h,t);const l=_e(t)||!de(t)?t:t.default?t.default:null;return h=Et(l)?[l]:l,_e(h)&&_0(o,h,!1),n.set(s,o),o}function _0(i,t,e){let s=!0;for(let r=0;r<t.length&&ie(s);r++){const n=t[r];Et(n)&&(s=VA(i,t[r],e))}return s}function VA(i,t,e){let s;const r=t.split("-");do{const n=r.join("-");s=YA(i,n,e),r.splice(-1,1)}while(r.length&&s===!0);return s}function YA(i,t,e){let s=!1;if(!i.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const r=t.replace(/!/g,"");i.push(r),(_e(e)||de(e))&&e[r]&&(s=e[r])}return s}const un=[];un[0]={w:[0],i:[3,0],"[":[4],o:[7]};un[1]={w:[1],".":[2],"[":[4],o:[7]};un[2]={w:[2],i:[3,0],0:[3,0]};un[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};un[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};un[5]={"'":[4,0],o:8,l:[5,0]};un[6]={'"':[4,0],o:8,l:[6,0]};const GA=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function $A(i){return GA.test(i)}function HA(i){const t=i.charCodeAt(0),e=i.charCodeAt(i.length-1);return t===e&&(t===34||t===39)?i.slice(1,-1):i}function WA(i){if(i==null)return"o";switch(i.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return i;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function zA(i){const t=i.trim();return i.charAt(0)==="0"&&Line truncated
*/function EA(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ki().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ki().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function $n(i){return se(i)&&Mp(i)===0&&(qs(i,"b")||qs(i,"body"))}const Mv=["b","body"];function AA(i){return cn(i,Mv)}const Rv=["c","cases"];function CA(i){return cn(i,Rv,[])}const Fv=["s","static"];function IA(i){return cn(i,Fv)}const kv=["i","items"];function PA(i){return cn(i,kv,[])}const Lv=["t","type"];function Mp(i){return cn(i,Lv)}const Bv=["v","value"];function Wl(i,t){const e=cn(i,Bv);if(e!=null)return e;throw Zo(t)}const Ov=["m","modifier"];function MA(i){return cn(i,Ov)}const Dv=["k","key"];function RA(i){const t=cn(i,Dv);if(t)return t;throw Zo(6)}function cn(i,t,e){for(let s=0;s<t.length;s++){const r=t[s];if(qs(i,r)&&i[r]!=null)return i[r]}return e}const Nv=[...Mv,...Rv,...Fv,...kv,...Dv,...Ov,...Bv,...Lv];function Zo(i){return new Error(`unhandled node type: ${i}`)}function dd(i){return e=>FA(e,i)}function FA(i,t){const e=AA(t);if(e==null)throw Zo(0);if(Mp(e)===1){const n=CA(e);return i.plural(n.reduce((a,o)=>[...a,v0(i,o)],[]))}else return v0(i,e)}function v0(i,t){const e=IA(t);if(e!=null)return i.type==="text"?e:i.normalize([e]);{const s=PA(t).reduce((r,n)=>[...r,om(i,n)],[]);return i.normalize(s)}}function om(i,t){const e=Mp(t);switch(e){case 3:return Wl(t,e);case 9:return Wl(t,e);case 4:{const s=t;if(qs(s,"k")&&s.k)return i.interpolate(i.named(s.k));if(qs(s,"key")&&s.key)return i.interpolate(i.named(s.key));throw Zo(e)}case 5:{const s=t;if(qs(s,"i")&&Ne(s.i))return i.interpolate(i.list(s.i));if(qs(s,"index")&&Ne(s.index))return i.interpolate(i.list(s.index));throw Zo(e)}case 6:{const s=t,r=MA(s),n=RA(s);return i.linked(om(i,n),r?om(i,r):void 0,i.type)}case 7:return Wl(t,e);case 8:return Wl(t,e);default:throw new Error(`unhandled node on format message part: ${e}`)}}const kA=i=>i;let zl=he();function LA(i,t={}){let e=!1;const s=t.onError||eA;return t.onError=r=>{e=!0,s(r)},{...SA(i,t),detectError:e}}function BA(i,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Et(i)){ie(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||kA)(i),r=zl[s];if(r)return r;const{ast:n,detectError:a}=LA(i,{...t,location:!1,jit:!0}),o=dd(n);return a?o:zl[s]=o}else{if(!$n(i))return(()=>i);const e=i.cacheKey;if(e){const s=zl[e];return s||(zl[e]=dd(i))}else return dd(i)}}let Jo=null;function OA(i){Jo=i}function DA(i,t,e){Jo&&Jo.emit("i18n:init",{timestamp:Date.now(),i18n:i,version:t,meta:e})}const NA=UA("function:translate");function UA(i){return t=>Jo&&Jo.emit(i,t)}const di={INVALID_ARGUMENT:tA,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},XA=24;function fi(i){return Vc(i,null,void 0)}function Rp(i,t){return t.locale!=null?_0(t.locale):_0(i.locale)}let fd;function _0(i){if(Et(i))return i;if(ve(i)){if(i.resolvedOnce&&fd!=null)return fd;if(i.constructor.name==="Function"){const t=i();if(BE(t))throw fi(di.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return fd=t}else throw fi(di.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw fi(di.NOT_SUPPORT_LOCALE_TYPE)}function VA(i,t,e){return[...new Set([e,..._e(t)?t:se(t)?Object.keys(t).filter(s=>s!=="default"):Et(t)?[t]:[e]])]}function YA(i,t,e){const s=Et(e)?e:Qo,r=i;let n;se(t)?(r.__localeChainObjectCache||(r.__localeChainObjectCache=new WeakMap),n=r.__localeChainObjectCache.get(t),n||(n=new Map,r.__localeChainObjectCache.set(t,n))):(r.__localeChainCache||(r.__localeChainCache=new Map),n=r.__localeChainCache.get(t),n||(n=new Map,r.__localeChainCache.set(t,n)));const a=n.get(s);if(a)return a;const o=[];let h=[e];for(;_e(h);)h=w0(o,h,t);const l=_e(t)||!de(t)?t:t.default?t.default:null;return h=Et(l)?[l]:l,_e(h)&&w0(o,h,!1),n.set(s,o),o}function w0(i,t,e){let s=!0;for(let r=0;r<t.length&&ie(s);r++){const n=t[r];Et(n)&&(s=GA(i,t[r],e))}return s}function GA(i,t,e){let s;const r=t.split("-");do{const n=r.join("-");s=$A(i,n,e),r.splice(-1,1)}while(r.length&&s===!0);return s}function $A(i,t,e){let s=!1;if(!i.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const r=t.replace(/!/g,"");i.push(r),(_e(e)||de(e))&&e[r]&&(s=e[r])}return s}const un=[];un[0]={w:[0],i:[3,0],"[":[4],o:[7]};un[1]={w:[1],".":[2],"[":[4],o:[7]};un[2]={w:[2],i:[3,0],0:[3,0]};un[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};un[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};un[5]={"'":[4,0],o:8,l:[5,0]};un[6]={'"':[4,0],o:8,l:[6,0]};const HA=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function WA(i){return HA.test(i)}function zA(i){const t=i.charCodeAt(0),e=i.charCodeAt(i.length-1);return t===e&&(t===34||t===39)?i.slice(1,-1):i}function jA(i){if(i==null)return"o";switch(i.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return i;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function qA(i){const t=i.trim();return i.charAt(0)==="0"&&Line truncated
* vue-i18n v11.4.16
* (c) 2026 kazuya kawaguchi
* Released under the MIT License.
*/const bC="11.4.16";function vC(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ki().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ki().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ki().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ki().__INTLIFY_PROD_DEVTOOLS__=!1)}const ws={UNEXPECTED_RETURN_TYPE:NA,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Is(i,...t){return Uc(i,null,void 0)}const hm=hn("__translateVNode"),cm=hn("__datetimeParts"),um=hn("__numberParts"),Jv=hn("__setPluralRules"),Qv=hn("__injectWithOption"),ya=hn("__dispose");let t_=null;{const i=Ki().__VUE_INSTANCE_SETTERS__;_e(i)&&i.push(t=>{t_=t})}function $i(i){return!!Cv(i)}function Qo(i){if(!se(i)||$n(i))return i;for(const t in i)if(qs(i,t))if(!t.includes("."))se(i[t])&&Qo(i[t]);else{const e=t.split("."),s=e.length-1;let r=i,n=!1;for(let o=0;o<s;o++){if(e[o]==="__proto__")throw new Error(`unsafe key: ${e[o]}`);if(e[o]in r||(r[e[o]]=he()),!se(r[e[o]])){n=!0;break}if($n(r[e[o]])&&(Dv.includes(e[o+1])||e[o+1]==="cacheKey")){n=!0;break}r=r[e[o]]}n||(r[e[s]]=i[t],delete i[t]);const a=r[e[s]];se(a)&&Qo(a)}return i}function Mp(i,t){const{messages:e,__i18n:s,messageResolver:r,flatJson:n}=t,a=de(e)?e:_e(s)?he():{[i]:he()};if(_e(s)&&s.forEach(o=>{if("locale"in o&&"resource"in o){const{locale:h,resource:l}=o;if(h){if($i(h))return;a[h]=qe(a,h)||he(),vh(l,a[h])}else vh(l,a)}else Et(o)&&vh(JSON.parse(o),a)}),r==null&&n)for(const o in a)qs(a,o)&&Qo(a[o]);return a}function e_(i){return i.type}function s_(i,t,e){let s=se(t.messages)?t.messages:he();"__i18nGlobal"in e&&(s=Mp(i.locale.value,{messages:s,__i18n:e.__i18nGlobal}));const r=Object.keys(s);r.length&&r.forEach(n=>{i.mergeLocaleMessage(n,s[n])});{if(se(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach(a=>{i.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(se(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach(a=>{i.mergeNumberFormat(a,t.numberFormats[a])})}}}function k0(i){return ds(Sl,null,i,0)}function tl(){return t_??Oc()}const L0="__INTLIFY_META__",B0=()=>[],_C=()=>!1;let O0=0;function D0(i){return((t,e,s,r)=>i(e,s,tl()||void 0,r))}const wC=()=>{const i=tl();let t=null;return i&&(t=e_(i)[L0])?{[L0]:t}:null};function Gh(i={}){const{__root:t,__injectWithOption:e}=i,s=t===void 0,r=i.flatJson,n=Xh?Fb:wT;let a=ie(i.inheritLocale)?i.inheritLocale:!0;const o=n(t&&a?t.locale.value:Et(i.locale)?i.locale:Jo),h=n(t&&a?t.fallbackLocale.value:Et(i.fallbackLocale)||_e(i.fallbackLocale)||de(i.fallbackLocale)||i.fallbackLocale===!1?i.fallbackLocale:o.value),l=n(Mp(o.value,i)),c=n(de(i.datetimeFormats)?i.datetimeFormats:{[o.value]:{}}),u=n(de(i.numberFormats)?i.numberFormats:{[o.value]:{}});let d=t?t.missingWarn:ie(i.missingWarn)||Xa(i.missingWarn)?i.missingWarn:!0,f=t?t.fallbackWarn:ie(i.fallbackWarn)||Xa(i.fallbackWarn)?i.fallbackWarn:!0,m=t?t.fallbackRoot:ie(i.fallbackRoot)?i.fallbackRoot:!0,p=!!i.fallbackFormat,g=ve(i.missing)?i.missing:null,y=ve(i.missing)?D0(i.missing):null,_=ve(i.postTranslation)?i.postTranslation:null,v=t?t.warnHtmlMessage:ie(i.warnHtmlMessage)?i.warnHtmlMessage:!0,b=!!i.escapeParameter;const T=t?t.modifiers:de(i.modifiers)?i.modifiers:{};let S=i.pluralRules||t&&t.pluralRules,w;w=(()=>{s&&S0(null);const st={version:bC,locale:o.value,fallbackLocale:h.value,messages:l.value,modifiers:T,pluralRules:S,missing:y===null?void 0:y,missingWarn:d,fallbackWarn:f,fallbackFormat:p,unresolving:!0,postTranslation:_===null?void 0:_,warnHtmlMessage:v,escapeParameter:b,messageResolver:i.messageResolver,messageCompiler:i.messageCompiler,__meta:{framework:"vue"}};st.datetimeFormats=c.value,st.numberFormats=u.value;const lt=nC(st);return s&&S0(lt),lt})(),Wl(w,o.value,h.value);function A(){return[o.value,h.value,l.value,c.value,u.value]}const P=Mn({get:()=>o.value,set:st=>{w.locale=st,o.value=st}});function I(st){s||(w.fallbackContext=iC());try{return st()}finally{s||(w.fallbackContext=void 0)}}function C(st){I(()=>Wl(w,o.value,st))}const R=Mn({get:()=>h.value,set:st=>{h.value=st,w.fallbackLocale=h.value,C(h.value)}}),F=Mn(()=>l.value),D=Mn(()=>c.value),M=Mn(()=>u.value);function O(){return ve(_)?_:null}function k(st){_=st,w.postTranslation=st}function N(){return g}function B(st){st!==null&&(y=D0(st)),g=st,w.missing=y}const L=(st,lt,kt,Xt,Pe,Ss)=>{A();let Es;try{__INTLIFY_PROD_DEVTOOLS__,Es=I(()=>st(w))}finally{__INTLIFY_PROD_DEVTOOLS__}if(kt!=="translate exists"&&Ne(Es)&&Es===Xc||kt==="translate exists"&&!Es){const[Li,Xe]=lt();return t&&m?Xt(t):Pe(Li)}else{if(Ss(Es))return Es;throw Is(ws.UNEXPECTED_RETURN_TYPE)}};function G(...st){return L(lt=>Reflect.apply(F0,null,[lt,...st]),()=>lm(...st),"translate",lt=>Reflect.apply(lt.t,lt,[...st]),lt=>lt,lt=>Et(lt))}function V(...st){const[lt,kt,Xt]=st;if(Xt&&!se(Xt))throLine truncated
*/const _C="11.4.16";function wC(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ki().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ki().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ki().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ki().__INTLIFY_PROD_DEVTOOLS__=!1)}const ws={UNEXPECTED_RETURN_TYPE:XA,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Is(i,...t){return Vc(i,null,void 0)}const um=hn("__translateVNode"),dm=hn("__datetimeParts"),fm=hn("__numberParts"),Qv=hn("__setPluralRules"),t_=hn("__injectWithOption"),xa=hn("__dispose");let e_=null;{const i=Ki().__VUE_INSTANCE_SETTERS__;_e(i)&&i.push(t=>{e_=t})}function $i(i){return!!Iv(i)}function tl(i){if(!se(i)||$n(i))return i;for(const t in i)if(qs(i,t))if(!t.includes("."))se(i[t])&&tl(i[t]);else{const e=t.split("."),s=e.length-1;let r=i,n=!1;for(let o=0;o<s;o++){if(e[o]==="__proto__")throw new Error(`unsafe key: ${e[o]}`);if(e[o]in r||(r[e[o]]=he()),!se(r[e[o]])){n=!0;break}if($n(r[e[o]])&&(Nv.includes(e[o+1])||e[o+1]==="cacheKey")){n=!0;break}r=r[e[o]]}n||(r[e[s]]=i[t],delete i[t]);const a=r[e[s]];se(a)&&tl(a)}return i}function Fp(i,t){const{messages:e,__i18n:s,messageResolver:r,flatJson:n}=t,a=de(e)?e:_e(s)?he():{[i]:he()};if(_e(s)&&s.forEach(o=>{if("locale"in o&&"resource"in o){const{locale:h,resource:l}=o;if(h){if($i(h))return;a[h]=qe(a,h)||he(),wh(l,a[h])}else wh(l,a)}else Et(o)&&wh(JSON.parse(o),a)}),r==null&&n)for(const o in a)qs(a,o)&&tl(a[o]);return a}function s_(i){return i.type}function r_(i,t,e){let s=se(t.messages)?t.messages:he();"__i18nGlobal"in e&&(s=Fp(i.locale.value,{messages:s,__i18n:e.__i18nGlobal}));const r=Object.keys(s);r.length&&r.forEach(n=>{i.mergeLocaleMessage(n,s[n])});{if(se(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach(a=>{i.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(se(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach(a=>{i.mergeNumberFormat(a,t.numberFormats[a])})}}}function L0(i){return ds(El,null,i,0)}function el(){return e_??Nc()}const B0="__INTLIFY_META__",O0=()=>[],TC=()=>!1;let D0=0;function N0(i){return((t,e,s,r)=>i(e,s,el()||void 0,r))}const SC=()=>{const i=el();let t=null;return i&&(t=s_(i)[B0])?{[B0]:t}:null};function Hh(i={}){const{__root:t,__injectWithOption:e}=i,s=t===void 0,r=i.flatJson,n=Yh?kb:ST;let a=ie(i.inheritLocale)?i.inheritLocale:!0;const o=n(t&&a?t.locale.value:Et(i.locale)?i.locale:Qo),h=n(t&&a?t.fallbackLocale.value:Et(i.fallbackLocale)||_e(i.fallbackLocale)||de(i.fallbackLocale)||i.fallbackLocale===!1?i.fallbackLocale:o.value),l=n(Fp(o.value,i)),c=n(de(i.datetimeFormats)?i.datetimeFormats:{[o.value]:{}}),u=n(de(i.numberFormats)?i.numberFormats:{[o.value]:{}});let d=t?t.missingWarn:ie(i.missingWarn)||Va(i.missingWarn)?i.missingWarn:!0,f=t?t.fallbackWarn:ie(i.fallbackWarn)||Va(i.fallbackWarn)?i.fallbackWarn:!0,m=t?t.fallbackRoot:ie(i.fallbackRoot)?i.fallbackRoot:!0,p=!!i.fallbackFormat,g=ve(i.missing)?i.missing:null,y=ve(i.missing)?N0(i.missing):null,_=ve(i.postTranslation)?i.postTranslation:null,v=t?t.warnHtmlMessage:ie(i.warnHtmlMessage)?i.warnHtmlMessage:!0,b=!!i.escapeParameter;const T=t?t.modifiers:de(i.modifiers)?i.modifiers:{};let S=i.pluralRules||t&&t.pluralRules,w;w=(()=>{s&&E0(null);const st={version:_C,locale:o.value,fallbackLocale:h.value,messages:l.value,modifiers:T,pluralRules:S,missing:y===null?void 0:y,missingWarn:d,fallbackWarn:f,fallbackFormat:p,unresolving:!0,postTranslation:_===null?void 0:_,warnHtmlMessage:v,escapeParameter:b,messageResolver:i.messageResolver,messageCompiler:i.messageCompiler,__meta:{framework:"vue"}};st.datetimeFormats=c.value,st.numberFormats=u.value;const lt=oC(st);return s&&E0(lt),lt})(),jl(w,o.value,h.value);function A(){return[o.value,h.value,l.value,c.value,u.value]}const P=Mn({get:()=>o.value,set:st=>{w.locale=st,o.value=st}});function I(st){s||(w.fallbackContext=aC());try{return st()}finally{s||(w.fallbackContext=void 0)}}function C(st){I(()=>jl(w,o.value,st))}const R=Mn({get:()=>h.value,set:st=>{h.value=st,w.fallbackLocale=h.value,C(h.value)}}),F=Mn(()=>l.value),D=Mn(()=>c.value),M=Mn(()=>u.value);function O(){return ve(_)?_:null}function k(st){_=st,w.postTranslation=st}function N(){return g}function B(st){st!==null&&(y=N0(st)),g=st,w.missing=y}const L=(st,lt,kt,Xt,Pe,Ss)=>{A();let Es;try{__INTLIFY_PROD_DEVTOOLS__,Es=I(()=>st(w))}finally{__INTLIFY_PROD_DEVTOOLS__}if(kt!=="translate exists"&&Ne(Es)&&Es===Yc||kt==="translate exists"&&!Es){const[Li,Xe]=lt();return t&&m?Xt(t):Pe(Li)}else{if(Ss(Es))return Es;throw Is(ws.UNEXPECTED_RETURN_TYPE)}};function G(...st){return L(lt=>Reflect.apply(k0,null,[lt,...st]),()=>cm(...st),"translate",lt=>Reflect.apply(lt.t,lt,[...st]),lt=>lt,lt=>Et(lt))}function V(...st){const[lt,kt,Xt]=st;if(Xt&&!se(Xt))throLine truncated
`)>=0)return!1;return!0}function Es(tt,nt){var ee;if(tt.indent===" ")ee=" ";else if(typeof tt.indent=="number"&&tt.indent>0)ee=E.call(Array(tt.indent+1)," ");else return null;return{base:ee,prev:E.call(Array(nt+1),ee)}}function Li(tt,nt){if(tt.length===0)return"";var ee=`
`+nt.prev+nt.base;return ee+E.call(tt,","+ee)+`
`+nt.prev}function Xe(tt,nt){var ee=et(tt),me=[];if(ee){me.length=tt.length;for(var xe=0;xe<tt.length;xe++)me[xe]=it(tt,xe)?nt(tt[xe],tt):""}var Yt=typeof C=="function"?C(tt):[],Bi;if(F){Bi={};for(var mn=0;mn<Yt.length;mn++)Bi["$"+Yt[mn]]=Yt[mn]}for(var Rs in tt)it(tt,Rs)&&(ee&&String(Number(Rs))===Rs&&Rs<tt.length||F&&Bi["$"+Rs]instanceof Symbol||(S.call(/[^\w$]/,Rs)?me.push(nt(Rs,tt)+": "+nt(tt[Rs],tt)):me.push(Rs+": "+nt(tt[Rs],tt))));if(typeof C=="function")for(var Oi=0;Oi<Yt.length;Oi++)M.call(tt,Yt[Oi])&&me.push("["+nt(Yt[Oi])+"]: "+nt(tt[Yt[Oi]],tt));return me}return xd}var bd,hy;function sI(){if(hy)return bd;hy=1;var i=Vc(),t=Qa(),e=function(o,h,l){for(var c=o,u;(u=c.next)!=null;c=u)if(u.key===h)return c.next=u.next,l||(u.next=o.next,o.next=u),u},s=function(o,h){if(o){var l=e(o,h);return l&&l.value}},r=function(o,h,l){var c=e(o,h);c?c.value=l:o.next={key:h,next:o.next,value:l}},n=function(o,h){return o?!!e(o,h):!1},a=function(o,h){if(o)return e(o,h,!0)};return bd=function(){var h,l={assert:function(c){if(!l.has(c))throw new t("Side channel does not contain "+i(c))},delete:function(c){var u=a(h,c);return u&&h&&!h.next&&(h=void 0),!!u},get:function(c){return s(h,c)},has:function(c){return n(h,c)},set:function(c,u){h||(h={next:void 0}),r(h,c,u)}};return l},bd}var vd,cy;function o_(){return cy||(cy=1,vd=Object),vd}var _d,uy;function rI(){return uy||(uy=1,_d=Error),_d}var wd,dy;function iI(){return dy||(dy=1,wd=EvalError),wd}var Td,fy;function nI(){return fy||(fy=1,Td=RangeError),Td}var Sd,my;function aI(){return my||(my=1,Sd=ReferenceError),Sd}var Ed,py;function oI(){return py||(py=1,Ed=SyntaxError),Ed}var Ad,gy;function lI(){return gy||(gy=1,Ad=URIError),Ad}var Cd,yy;function hI(){return yy||(yy=1,Cd=Math.abs),Cd}var Id,xy;function cI(){return xy||(xy=1,Id=Math.floor),Id}var Pd,by;function uI(){return by||(by=1,Pd=Math.max),Pd}var Md,vy;function dI(){return vy||(vy=1,Md=Math.min),Md}var Rd,_y;function fI(){return _y||(_y=1,Rd=Math.pow),Rd}var Fd,wy;function mI(){return wy||(wy=1,Fd=Math.round),Fd}var kd,Ty;function pI(){return Ty||(Ty=1,kd=Number.isNaN||function(t){return t!==t}),kd}var Ld,Sy;function gI(){if(Sy)return Ld;Sy=1;var i=pI();return Ld=function(e){return i(e)||e===0?e:e<0?-1:1},Ld}var Bd,Ey;function yI(){return Ey||(Ey=1,Bd=Object.getOwnPropertyDescriptor),Bd}var Od,Ay;function l_(){if(Ay)return Od;Ay=1;var i=yI();if(i)try{i([],"length")}catch{i=null}return Od=i,Od}var Dd,Cy;function h_(){if(Cy)return Dd;Cy=1;var i=Object.defineProperty||!1;if(i)try{i({},"a",{value:1})}catch{i=!1}return Dd=i,Dd}var Nd,Iy;function xI(){return Iy||(Iy=1,Nd=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},e=Symbol("test"),s=Object(e);if(typeof e=="string"||Object.prototype.toString.call(e)!=="[object Symbol]"||Object.prototype.toString.call(s)!=="[object Symbol]")return!1;var r=42;t[e]=r;for(var n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,e);if(o.value!==r||o.enumerable!==!0)return!1}return!0}),Nd}var Ud,Py;function bI(){if(Py)return Ud;Py=1;var i=typeof Symbol<"u"&&Symbol,t=xI();return Ud=function(){return typeof i!="function"||typeof Symbol!="function"||typeof i("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Ud}var Xd,My;function c_(){return My||(My=1,Xd=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Xd}var Vd,Ry;function u_(){if(Ry)return Vd;Ry=1;var i=o_();return Vd=i.getPrototypeOf||null,Vd}var Yd,Fy;function vI(){if(Fy)return Yd;Fy=1;var i="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,e=Math.max,s="[object Function]",r=function(h,l){for(var c=[],u=0;u<h.length;u+=1)c[u]=h[u];for(var d=0;d<l.length;d+=1)c[d+h.length]=l[d];return c},n=function(h,l){for(var c=[],u=l,d=0;u<h.length;u+=1,d+=1)c[d]=h[u];return c},a=function(o,h){for(var l="",c=0;c<o.length;c+=1)l+=o[c],c+1<o.length&&(l+=h);return l};return Yd=function(h){var l=this;if(typeof l!="function"||t.apply(l)!==s)throw new TypeError(i+l);for(var c=n(arguments,1),u,d=function(){if(this instanceof u){var y=l.apply(this,r(c,arguments));return Object(y)===y?y:this}return l.apply(h,r(c,arguments))},f=e(0,l.length-c.length),m=[],p=0;p<f;p++)m[p]="$"+p;if(u=Function("binder","return function ("+a(m,",")+"){ return binder.apply(this,arguments); }")(d),l.prototype){var g=function(){};g.prototype=l.prototype,u.prototype=new g,g.prototype=null}return u},Yd}var Gd,ky;function Yc(){if(ky)return Gd;ky=1;var i=vI();return Gd=Function.prototype.bind||i,Gd}var $d,Ly;function Lp(){return Ly||(Ly=1,$d=Function.prototype.call),$d}var Hd,By;function d_(){return By||(By=1,Hd=Function.p Line truncated
`," "],a=["{","}","|","\\","^","`"].concat(n),o=["'"].concat(a),h=["%","/","?",";","#"].concat(o),l=["/","?","#"],c=255,u=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},p={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=PI();function y(T,S,w){if(T&&typeof T=="object"&&T instanceof t)return T;var E=new t;return E.parse(T,S,w),E}t.prototype.parse=function(T,S,w){if(typeof T!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof T);var E=T.indexOf("?"),A=E!==-1&&E<T.indexOf("#")?"?":"#",P=T.split(A),I=/\\/g;P[0]=P[0].replace(I,"/"),T=P.join(A);var C=T;if(C=C.trim(),!w&&T.split("#").length===1){var R=r.exec(C);if(R)return this.path=C,this.href=C,this.pathname=R[1],R[2]?(this.search=R[2],S?this.query=g.parse(this.search.substr(1)):this.query=this.search.substr(1)):S&&(this.search="",this.query={}),this}var F=e.exec(C);if(F){F=F[0];var D=F.toLowerCase();this.protocol=D,C=C.substr(F.length)}if(w||F||C.match(/^\/\/[^@/]+@[^@/]+/)){var M=C.substr(0,2)==="//";M&&!(F&&m[F])&&(C=C.substr(2),this.slashes=!0)}if(!m[F]&&(M||F&&!p[F])){for(var O=-1,k=0;k<l.length;k++){var N=C.indexOf(l[k]);N!==-1&&(O===-1||N<O)&&(O=N)}var B,L;O===-1?L=C.lastIndexOf("@"):L=C.lastIndexOf("@",O),L!==-1&&(B=C.slice(0,L),C=C.slice(L+1),this.auth=decodeURIComponent(B)),O=-1;for(var k=0;k<h.length;k++){var N=C.indexOf(h[k]);N!==-1&&(O===-1||N<O)&&(O=N)}O===-1&&(O=C.length),this.host=C.slice(0,O),C=C.slice(O),this.parseHost(),this.hostname=this.hostname||"";var G=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!G)for(var V=this.hostname.split(/\./),k=0,q=V.length;k<q;k++){var H=V[k];if(H&&!H.match(u)){for(var at="",et=0,ot=H.length;et<ot;et++)H.charCodeAt(et)>127?at+="x":at+=H[et];if(!at.match(u)){var ct=V.slice(0,k),rt=V.slice(k+1),dt=H.match(d);dt&&(ct.push(dt[1]),rt.unshift(dt[2])),rt.length&&(C="/"+rt.join(".")+C),this.hostname=ct.join(".");break}}}this.hostname.length>c?this.hostname="":this.hostname=this.hostname.toLowerCase(),G||(this.hostname=i.toASCII(this.hostname));var X=this.port?":"+this.port:"",$=this.hostname||"";this.host=$+X,this.href+=this.host,G&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),C[0]!=="/"&&(C="/"+C))}if(!f[D])for(var k=0,q=o.length;k<q;k++){var K=o[k];if(C.indexOf(K)!==-1){var J=encodeURIComponent(K);J===K&&(J=escape(K)),C=C.split(K).join(J)}}var Q=C.indexOf("#");Q!==-1&&(this.hash=C.substr(Q),C=C.slice(0,Q));var it=C.indexOf("?");if(it!==-1?(this.search=C.substr(it),this.query=C.substr(it+1),S&&(this.query=g.parse(this.query)),C=C.slice(0,it)):S&&(this.search="",this.query={}),C&&(this.pathname=C),p[D]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var X=this.pathname||"",U=this.search||"";this.path=X+U}return this.href=this.format(),this};function _(T){return typeof T=="string"&&(T=y(T)),T instanceof t?T.format():t.prototype.format.call(T)}t.prototype.format=function(){var T=this.auth||"";T&&(T=encodeURIComponent(T),T=T.replace(/%3A/i,":"),T+="@");var S=this.protocol||"",w=this.pathname||"",E=this.hash||"",A=!1,P="";this.host?A=T+this.host:this.hostname&&(A=T+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(A+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(P=g.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var I=this.search||P&&"?"+P||"";return S&&S.substr(-1)!==":"&&(S+=":"),this.slashes||(!S||p[S])&&A!==!1?(A="//"+(A||""),w&&w.charAt(0)!=="/"&&(w="/"+w)):A||(A=""),E&&E.charAt(0)!=="#"&&(E="#"+E),I&&I.charAt(0)!=="?"&&(I="?"+I),w=w.replace(/[?#]/g,function(C){return encodeURIComponent(C)}),I=I.replace("#","%23"),S+A+w+I+E};function v(T,S){return y(T,!1,!0).resolve(S)}t.prototype.resolve=function(T){return this.resolveObject(y(T,!1,!0)).format()};function b(T,S){return T?y(T,!1,!0).resolveObject(S):S}return t.prototype.resolveObject=function(T){if(typeof T=="string"){var S=new t;S.parse(T,!1,!0),T=S}for(var w=new t,E=Object.keys(this),A=0;A<E.length;A++){var P=E[A];w[P]=this[P]}if(w.hash=T.hash,T.href==="")return w.href=w.format(),w;if(T.slashes&&!T.protocol){for(var I=Object.keys(T),C=0;C<I.length;C++){var R=I[C];R!=="protocol"&&(w[R]=T[R])}return p[w.protocol]&&w.hostname&&!w.pathname&&(w.pathname="/",w.path=w.pathname),w.href=w.format(),w}if(T.protocol&&T.protocol!==w.protocol){if(!p[T.protocol]){for(var F=Object.keys(T),D=0;D<F.length;D++){var M=F[D];w[M]=T[M]}return w.href=w.format(),w}if(w.protocol=T.protocol,!T.host&&!m[T.protocol]){for(var q=(T.pathname||"").split("/");q.length&&!(T.host=q.shift()););T.host||(T.host=""),T.hostname||(T.hostname=""),q[0]!==""&&q.unshift(""),q.length<2&&q.unshift(""),w.pathname=q.join("/")}else w.pathname=T.pathname;if(w.search=T.search,w.query=T.query,w.host=T.host||"",w.auth=T.auth,w.hostname=T.hostname||T.host,w.port=T.port,w.pathname||w.search){var O=w. Line truncated
`+nt.prev}function Xe(tt,nt){var ee=et(tt),me=[];if(ee){me.length=tt.length;for(var xe=0;xe<tt.length;xe++)me[xe]=it(tt,xe)?nt(tt[xe],tt):""}var Yt=typeof C=="function"?C(tt):[],Bi;if(F){Bi={};for(var mn=0;mn<Yt.length;mn++)Bi["$"+Yt[mn]]=Yt[mn]}for(var Rs in tt)it(tt,Rs)&&(ee&&String(Number(Rs))===Rs&&Rs<tt.length||F&&Bi["$"+Rs]instanceof Symbol||(S.call(/[^\w$]/,Rs)?me.push(nt(Rs,tt)+": "+nt(tt[Rs],tt)):me.push(Rs+": "+nt(tt[Rs],tt))));if(typeof C=="function")for(var Oi=0;Oi<Yt.length;Oi++)M.call(tt,Yt[Oi])&&me.push("["+nt(Yt[Oi])+"]: "+nt(tt[Yt[Oi]],tt));return me}return vd}var _d,cy;function iI(){if(cy)return _d;cy=1;var i=Gc(),t=to(),e=function(o,h,l){for(var c=o,u;(u=c.next)!=null;c=u)if(u.key===h)return c.next=u.next,l||(u.next=o.next,o.next=u),u},s=function(o,h){if(o){var l=e(o,h);return l&&l.value}},r=function(o,h,l){var c=e(o,h);c?c.value=l:o.next={key:h,next:o.next,value:l}},n=function(o,h){return o?!!e(o,h):!1},a=function(o,h){if(o)return e(o,h,!0)};return _d=function(){var h,l={assert:function(c){if(!l.has(c))throw new t("Side channel does not contain "+i(c))},delete:function(c){var u=a(h,c);return u&&h&&!h.next&&(h=void 0),!!u},get:function(c){return s(h,c)},has:function(c){return n(h,c)},set:function(c,u){h||(h={next:void 0}),r(h,c,u)}};return l},_d}var wd,uy;function l_(){return uy||(uy=1,wd=Object),wd}var Td,dy;function nI(){return dy||(dy=1,Td=Error),Td}var Sd,fy;function aI(){return fy||(fy=1,Sd=EvalError),Sd}var Ed,my;function oI(){return my||(my=1,Ed=RangeError),Ed}var Ad,py;function lI(){return py||(py=1,Ad=ReferenceError),Ad}var Cd,gy;function hI(){return gy||(gy=1,Cd=SyntaxError),Cd}var Id,yy;function cI(){return yy||(yy=1,Id=URIError),Id}var Pd,xy;function uI(){return xy||(xy=1,Pd=Math.abs),Pd}var Md,by;function dI(){return by||(by=1,Md=Math.floor),Md}var Rd,vy;function fI(){return vy||(vy=1,Rd=Math.max),Rd}var Fd,_y;function mI(){return _y||(_y=1,Fd=Math.min),Fd}var kd,wy;function pI(){return wy||(wy=1,kd=Math.pow),kd}var Ld,Ty;function gI(){return Ty||(Ty=1,Ld=Math.round),Ld}var Bd,Sy;function yI(){return Sy||(Sy=1,Bd=Number.isNaN||function(t){return t!==t}),Bd}var Od,Ey;function xI(){if(Ey)return Od;Ey=1;var i=yI();return Od=function(e){return i(e)||e===0?e:e<0?-1:1},Od}var Dd,Ay;function bI(){return Ay||(Ay=1,Dd=Object.getOwnPropertyDescriptor),Dd}var Nd,Cy;function h_(){if(Cy)return Nd;Cy=1;var i=bI();if(i)try{i([],"length")}catch{i=null}return Nd=i,Nd}var Ud,Iy;function c_(){if(Iy)return Ud;Iy=1;var i=Object.defineProperty||!1;if(i)try{i({},"a",{value:1})}catch{i=!1}return Ud=i,Ud}var Xd,Py;function vI(){return Py||(Py=1,Xd=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},e=Symbol("test"),s=Object(e);if(typeof e=="string"||Object.prototype.toString.call(e)!=="[object Symbol]"||Object.prototype.toString.call(s)!=="[object Symbol]")return!1;var r=42;t[e]=r;for(var n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,e);if(o.value!==r||o.enumerable!==!0)return!1}return!0}),Xd}var Vd,My;function _I(){if(My)return Vd;My=1;var i=typeof Symbol<"u"&&Symbol,t=vI();return Vd=function(){return typeof i!="function"||typeof Symbol!="function"||typeof i("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Vd}var Yd,Ry;function u_(){return Ry||(Ry=1,Yd=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Yd}var Gd,Fy;function d_(){if(Fy)return Gd;Fy=1;var i=l_();return Gd=i.getPrototypeOf||null,Gd}var $d,ky;function wI(){if(ky)return $d;ky=1;var i="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,e=Math.max,s="[object Function]",r=function(h,l){for(var c=[],u=0;u<h.length;u+=1)c[u]=h[u];for(var d=0;d<l.length;d+=1)c[d+h.length]=l[d];return c},n=function(h,l){for(var c=[],u=l,d=0;u<h.length;u+=1,d+=1)c[d]=h[u];return c},a=function(o,h){for(var l="",c=0;c<o.length;c+=1)l+=o[c],c+1<o.length&&(l+=h);return l};return $d=function(h){var l=this;if(typeof l!="function"||t.apply(l)!==s)throw new TypeError(i+l);for(var c=n(arguments,1),u,d=function(){if(this instanceof u){var y=l.apply(this,r(c,arguments));return Object(y)===y?y:this}return l.apply(h,r(c,arguments))},f=e(0,l.length-c.length),m=[],p=0;p<f;p++)m[p]="$"+p;if(u=Function("binder","return function ("+a(m,",")+"){ return binder.apply(this,arguments); }")(d),l.prototype){var g=function(){};g.prototype=l.prototype,u.prototype=new g,g.prototype=null}return u},$d}var Hd,Ly;function $c(){if(Ly)return Hd;Ly=1;var i=wI();return Hd=Function.prototype.bind||i,Hd}var Wd,By;function Op(){return By||(By=1,Wd=Function.prototype.call),Wd}var zd,Oy;function f_(){return Oy||(Oy=1,zd=Function.p Line truncated
`," "],a=["{","}","|","\\","^","`"].concat(n),o=["'"].concat(a),h=["%","/","?",";","#"].concat(o),l=["/","?","#"],c=255,u=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},p={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=RI();function y(T,S,w){if(T&&typeof T=="object"&&T instanceof t)return T;var E=new t;return E.parse(T,S,w),E}t.prototype.parse=function(T,S,w){if(typeof T!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof T);var E=T.indexOf("?"),A=E!==-1&&E<T.indexOf("#")?"?":"#",P=T.split(A),I=/\\/g;P[0]=P[0].replace(I,"/"),T=P.join(A);var C=T;if(C=C.trim(),!w&&T.split("#").length===1){var R=r.exec(C);if(R)return this.path=C,this.href=C,this.pathname=R[1],R[2]?(this.search=R[2],S?this.query=g.parse(this.search.substr(1)):this.query=this.search.substr(1)):S&&(this.search="",this.query={}),this}var F=e.exec(C);if(F){F=F[0];var D=F.toLowerCase();this.protocol=D,C=C.substr(F.length)}if(w||F||C.match(/^\/\/[^@/]+@[^@/]+/)){var M=C.substr(0,2)==="//";M&&!(F&&m[F])&&(C=C.substr(2),this.slashes=!0)}if(!m[F]&&(M||F&&!p[F])){for(var O=-1,k=0;k<l.length;k++){var N=C.indexOf(l[k]);N!==-1&&(O===-1||N<O)&&(O=N)}var B,L;O===-1?L=C.lastIndexOf("@"):L=C.lastIndexOf("@",O),L!==-1&&(B=C.slice(0,L),C=C.slice(L+1),this.auth=decodeURIComponent(B)),O=-1;for(var k=0;k<h.length;k++){var N=C.indexOf(h[k]);N!==-1&&(O===-1||N<O)&&(O=N)}O===-1&&(O=C.length),this.host=C.slice(0,O),C=C.slice(O),this.parseHost(),this.hostname=this.hostname||"";var G=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!G)for(var V=this.hostname.split(/\./),k=0,q=V.length;k<q;k++){var H=V[k];if(H&&!H.match(u)){for(var at="",et=0,ot=H.length;et<ot;et++)H.charCodeAt(et)>127?at+="x":at+=H[et];if(!at.match(u)){var ct=V.slice(0,k),rt=V.slice(k+1),dt=H.match(d);dt&&(ct.push(dt[1]),rt.unshift(dt[2])),rt.length&&(C="/"+rt.join(".")+C),this.hostname=ct.join(".");break}}}this.hostname.length>c?this.hostname="":this.hostname=this.hostname.toLowerCase(),G||(this.hostname=i.toASCII(this.hostname));var X=this.port?":"+this.port:"",$=this.hostname||"";this.host=$+X,this.href+=this.host,G&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),C[0]!=="/"&&(C="/"+C))}if(!f[D])for(var k=0,q=o.length;k<q;k++){var K=o[k];if(C.indexOf(K)!==-1){var J=encodeURIComponent(K);J===K&&(J=escape(K)),C=C.split(K).join(J)}}var Q=C.indexOf("#");Q!==-1&&(this.hash=C.substr(Q),C=C.slice(0,Q));var it=C.indexOf("?");if(it!==-1?(this.search=C.substr(it),this.query=C.substr(it+1),S&&(this.query=g.parse(this.query)),C=C.slice(0,it)):S&&(this.search="",this.query={}),C&&(this.pathname=C),p[D]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var X=this.pathname||"",U=this.search||"";this.path=X+U}return this.href=this.format(),this};function _(T){return typeof T=="string"&&(T=y(T)),T instanceof t?T.format():t.prototype.format.call(T)}t.prototype.format=function(){var T=this.auth||"";T&&(T=encodeURIComponent(T),T=T.replace(/%3A/i,":"),T+="@");var S=this.protocol||"",w=this.pathname||"",E=this.hash||"",A=!1,P="";this.host?A=T+this.host:this.hostname&&(A=T+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(A+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(P=g.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var I=this.search||P&&"?"+P||"";return S&&S.substr(-1)!==":"&&(S+=":"),this.slashes||(!S||p[S])&&A!==!1?(A="//"+(A||""),w&&w.charAt(0)!=="/"&&(w="/"+w)):A||(A=""),E&&E.charAt(0)!=="#"&&(E="#"+E),I&&I.charAt(0)!=="?"&&(I="?"+I),w=w.replace(/[?#]/g,function(C){return encodeURIComponent(C)}),I=I.replace("#","%23"),S+A+w+I+E};function v(T,S){return y(T,!1,!0).resolve(S)}t.prototype.resolve=function(T){return this.resolveObject(y(T,!1,!0)).format()};function b(T,S){return T?y(T,!1,!0).resolveObject(S):S}return t.prototype.resolveObject=function(T){if(typeof T=="string"){var S=new t;S.parse(T,!1,!0),T=S}for(var w=new t,E=Object.keys(this),A=0;A<E.length;A++){var P=E[A];w[P]=this[P]}if(w.hash=T.hash,T.href==="")return w.href=w.format(),w;if(T.slashes&&!T.protocol){for(var I=Object.keys(T),C=0;C<I.length;C++){var R=I[C];R!=="protocol"&&(w[R]=T[R])}return p[w.protocol]&&w.hostname&&!w.pathname&&(w.pathname="/",w.path=w.pathname),w.href=w.format(),w}if(T.protocol&&T.protocol!==w.protocol){if(!p[T.protocol]){for(var F=Object.keys(T),D=0;D<F.length;D++){var M=F[D];w[M]=T[M]}return w.href=w.format(),w}if(w.protocol=T.protocol,!T.host&&!m[T.protocol]){for(var q=(T.pathname||"").split("/");q.length&&!(T.host=q.shift()););T.host||(T.host=""),T.hostname||(T.hostname=""),q[0]!==""&&q.unshift(""),q.length<2&&q.unshift(""),w.pathname=q.join("/")}else w.pathname=T.pathname;if(w.search=T.search,w.query=T.query,w.host=T.host||"",w.auth=T.auth,w.hostname=T.hostname||T.host,w.port=T.port,w.pathname||w.search){var O=w. Line truncated
Deprecated since v${i}`):(s=s.split(`
`).splice(e).join(`
`),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",`${t}
Deprecated since v${i}`),console.warn(s),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",`${t}
Deprecated since v${i}`),console.warn(s))),Qy[t]=!0}function rr(i){if(typeof i!="string")throw new TypeError(`Path must be a string. Received ${JSON.stringify(i)}`)}function fo(i){return i.split("?")[0].split("#")[0]}function RI(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function FI(i,t,e){return i.replace(new RegExp(RI(t),"g"),e)}function kI(i,t){let e="",s=0,r=-1,n=0,a=-1;for(let o=0;o<=i.length;++o){if(o<i.length)a=i.charCodeAt(o);else{if(a===47)break;a=47}if(a===47){if(!(r===o-1||n===1))if(r!==o-1&&n===2){if(e.length<2||s!==2||e.charCodeAt(e.length-1)!==46||e.charCodeAt(e.length-2)!==46){if(e.length>2){const h=e.lastIndexOf("/");if(h!==e.length-1){h===-1?(e="",s=0):(e=e.slice(0,h),s=e.length-1-e.lastIndexOf("/")),r=o,n=0;continue}}else if(e.length===2||e.length===1){e="",s=0,r=o,n=0;continue}}}else e.length>0?e+=`/${i.slice(r+1,o)}`:e=i.slice(r+1,o),s=o-r-1;r=o,n=0}else a===46&&n!==-1?++n:n=-1}return e}const ye={toPosix(i){return FI(i,"\\","/")},isUrl(i){return/^https?:/.test(this.toPosix(i))},isDataUrl(i){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(i)},isBlobUrl(i){return i.startsWith("blob:")},hasProtocol(i){return/^[^/:]+:/.test(this.toPosix(i))},getProtocol(i){rr(i),i=this.toPosix(i);const t=/^file:\/\/\//.exec(i);if(t)return t[0];const e=/^[^/:]+:\/{0,2}/.exec(i);return e?e[0]:""},toAbsolute(i,t,e){if(rr(i),this.isDataUrl(i)||this.isBlobUrl(i))return i;const s=fo(this.toPosix(t??_t.ADAPTER.getBaseUrl())),r=fo(this.toPosix(e??this.rootname(s)));return i=this.toPosix(i),i.startsWith("/")?ye.join(r,i.slice(1)):this.isAbsolute(i)?i:this.join(s,i)},normalize(i){if(rr(i),i.length===0)return".";if(this.isDataUrl(i)||this.isBlobUrl(i))return i;i=this.toPosix(i);let t="";const e=i.startsWith("/");this.hasProtocol(i)&&(t=this.rootname(i),i=i.slice(t.length));const s=i.endsWith("/");return i=kI(i),i.length>0&&s&&(i+="/"),e?`/${i}`:t+i},isAbsolute(i){return rr(i),i=this.toPosix(i),this.hasProtocol(i)?!0:i.startsWith("/")},join(...i){if(i.length===0)return".";let t;for(let e=0;e<i.length;++e){const s=i[e];if(rr(s),s.length>0)if(t===void 0)t=s;else{const r=i[e-1]??"";this.joinExtensions.includes(this.extname(r).toLowerCase())?t+=`/../${s}`:t+=`/${s}`}}return t===void 0?".":this.normalize(t)},dirname(i){if(rr(i),i.length===0)return".";i=this.toPosix(i);let t=i.charCodeAt(0);const e=t===47;let s=-1,r=!0;const n=this.getProtocol(i),a=i;i=i.slice(n.length);for(let o=i.length-1;o>=1;--o)if(t=i.charCodeAt(o),t===47){if(!r){s=o;break}}else r=!1;return s===-1?e?"/":this.isUrl(a)?n+i:n:e&&s===1?"//":n+i.slice(0,s)},rootname(i){rr(i),i=this.toPosix(i);let t="";if(i.startsWith("/")?t="/":t=this.getProtocol(i),this.isUrl(i)){const e=i.indexOf("/",t.length);e!==-1?t=i.slice(0,e):t=i,t.endsWith("/")||(t+="/")}return t},basename(i,t){rr(i),t&&rr(t),i=fo(this.toPosix(i));let e=0,s=-1,r=!0,n;if(t!==void 0&&t.length>0&&t.length<=i.length){if(t.length===i.length&&t===i)return"";let a=t.length-1,o=-1;for(n=i.length-1;n>=0;--n){const h=i.charCodeAt(n);if(h===47){if(!r){e=n+1;break}}else o===-1&&(r=!1,o=n+1),a>=0&&(h===t.charCodeAt(a)?--a===-1&&(s=n):(a=-1,s=o))}return e===s?s=o:s===-1&&(s=i.length),i.slice(e,s)}for(n=i.length-1;n>=0;--n)if(i.charCodeAt(n)===47){if(!r){e=n+1;break}}else s===-1&&(r=!1,s=n+1);return s===-1?"":i.slice(e,s)},extname(i){rr(i),i=fo(this.toPosix(i));let t=-1,e=0,s=-1,r=!0,n=0;for(let a=i.length-1;a>=0;--a){const o=i.charCodeAt(a);if(o===47){if(!r){e=a+1;break}continue}s===-1&&(r=!1,s=a+1),o===46?t===-1?t=a:n!==1&&(n=1):t!==-1&&(n=-1)}return t===-1||s===-1||n===0||n===1&&t===s-1&&t===e+1?"":i.slice(t,s)},parse(i){rr(i);const t={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return t;i=fo(this.toPosix(i));let e=i.charCodeAt(0);const s=this.isAbsolute(i);let r;t.root=this.rootname(i),s||this.hasProtocol(i)?r=1:r=0;let n=-1,a=0,o=-1,h=!0,l=i.length-1,c=0;for(;l>=r;--l){if(e=i.charCodeAt(l),e===47){if(!h){a=l+1;break}continue}o===-1&&(h=!1,o=l+1),e===46?n===-1?n=l:c!==1&&(c=1):n!==-1&&(c=-1)}return n===-1||o===-1||c===0||c===1&&n===o-1&&n===a+1?o!==-1&&(a===0&&s?t.base=t.name=i.slice(1,o):t.base=t.name=i.slice(a,o)):(a===0&&s?(t.name=i.slice(1,n),t.base=i.slice(1,o)):(t.name=i.slice(a,n),t.base=i.slice(a,o)),t.ext=i.slice(n,o)),t.dir=this.dirname(i),t},sep:"/",delimiter:":",joinExtensions:[".html"]};let hf;async function LI(){return hf??(hf=(async()=>{var n;const i=document.createElement("canvas").getContext("webgl");if(!i)return Ke.UNPACK;const t=await new Promise(a=>{const o=document.createElement("video");o.onloadeddata=()=>a(o),o.onerror=()=>a(null),o.autoplay=!1,o.crossOrigin="anonymous",o.preload="auto",o.src="data:video/webm;base64,GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQJChYECGFOAZwEAAAAAAAHTEU2bdLpNu4tTq4QVSalmU6yBoU27i1OrhBZUrmtTrIHGTbuMU6uEElTDZ1OsggEXTbuMU6uEHFO7a1OsggG97AEAAAAAAABZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA Line truncated
`);function eP(i){let t="";for(let e=0;e<i;++e)e>0&&(t+=`
else `),e<i-1&&(t+=`if(test == ${e}.0){}`);return t}function sP(i,t){if(i===0)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");const e=t.createShader(t.FRAGMENT_SHADER);for(;;){const s=tP.replace(/%forloop%/gi,eP(i));if(t.shaderSource(e,s),t.compileShader(e),!t.getShaderParameter(e,t.COMPILE_STATUS))i=i/2|0;else break}return i}const mf=0,pf=1,gf=2,yf=3,xf=4,bf=5;class jr{constructor(){this.data=0,this.blendMode=It.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}get blend(){return!!(this.data&1<<mf)}set blend(t){!!(this.data&1<<mf)!==t&&(this.data^=1<<mf)}get offsets(){return!!(this.data&1<<pf)}set offsets(t){!!(this.data&1<<pf)!==t&&(this.data^=1<<pf)}get culling(){return!!(this.data&1<<gf)}set culling(t){!!(this.data&1<<gf)!==t&&(this.data^=1<<gf)}get depthTest(){return!!(this.data&1<<yf)}set depthTest(t){!!(this.data&1<<yf)!==t&&(this.data^=1<<yf)}get depthMask(){return!!(this.data&1<<bf)}set depthMask(t){!!(this.data&1<<bf)!==t&&(this.data^=1<<bf)}get clockwiseFrontFace(){return!!(this.data&1<<xf)}set clockwiseFrontFace(t){!!(this.data&1<<xf)!==t&&(this.data^=1<<xf)}get blendMode(){return this._blendMode}set blendMode(t){this.blend=t!==It.NONE,this._blendMode=t}get polygonOffset(){return this._polygonOffset}set polygonOffset(t){this.offsets=!!t,this._polygonOffset=t}static for2d(){const t=new jr;return t.depthTest=!1,t.blend=!0,t}}jr.prototype.toString=function(){return`[@pixi/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`};const bm=[];function S_(i,t){if(!i)return null;let e="";if(typeof i=="string"){const s=/\.(\w{3,4})(?:$|\?|#)/i.exec(i);s&&(e=s[1].toLowerCase())}for(let s=bm.length-1;s>=0;--s){const r=bm[s];if(r.test&&r.test(i,e))return new r(i,t)}throw new Error("Unrecognized source type to auto-detect Resource")}class gr{constructor(t){this.items=[],this._name=t,this._aliasCount=0}emit(t,e,s,r,n,a,o,h){if(arguments.length>8)throw new Error("max arguments reached");const{name:l,items:c}=this;this._aliasCount++;for(let u=0,d=c.length;u<d;u++)c[u][l](t,e,s,r,n,a,o,h);return c===this.items&&this._aliasCount--,this}ensureNonAliasedItems(){this._aliasCount>0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))}add(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this}remove(t){const e=this.items.indexOf(t);return e!==-1&&(this.ensureNonAliasedItems(),this.items.splice(e,1)),this}contains(t){return this.items.includes(t)}removeAll(){return this.ensureNonAliasedItems(),this.items.length=0,this}destroy(){this.removeAll(),this.items.length=0,this._name=""}get empty(){return this.items.length===0}get name(){return this._name}}Object.defineProperties(gr.prototype,{dispatch:{value:gr.prototype.emit},run:{value:gr.prototype.emit}});class el{constructor(t=0,e=0){this._width=t,this._height=e,this.destroyed=!1,this.internal=!1,this.onResize=new gr("setRealSize"),this.onUpdate=new gr("update"),this.onError=new gr("onError")}bind(t){this.onResize.add(t),this.onUpdate.add(t),this.onError.add(t),(this._width||this._height)&&this.onResize.emit(this._width,this._height)}unbind(t){this.onResize.remove(t),this.onUpdate.remove(t),this.onError.remove(t)}resize(t,e){(t!==this._width||e!==this._height)&&(this._width=t,this._height=e,this.onResize.emit(t,e))}get valid(){return!!this._width&&!!this._height}update(){this.destroyed||this.onUpdate.emit()}load(){return Promise.resolve(this)}get width(){return this._width}get height(){return this._height}style(t,e,s){return!1}dispose(){}destroy(){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)}static test(t,e){return!1}}class Gc extends el{constructor(t,e){const{width:s,height:r}=e||{};if(!s||!r)throw new Error("BufferResource width or height invalid");super(s,r),this.data=t,this.unpackAlignment=e.unpackAlignment??4}upload(t,e,s){const r=t.gl;r.pixelStorei(r.UNPACK_ALIGNMENT,this.unpackAlignment),r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e.alphaMode===Ke.UNPACK);const n=e.realWidth,a=e.realHeight;return s.width===n&&s.height===a?r.texSubImage2D(e.target,0,0,0,n,a,e.format,s.type,this.data):(s.width=n,s.height=a,r.texImage2D(e.target,0,s.internalFormat,n,a,0,e.format,s.type,this.data)),!0}dispose(){this.data=null}static test(t){return t===null||t instanceof Int8Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array}}const rP={scaleMode:Ns.NEAREST,alphaMode:Ke.NPM},vm=class da extends Al{constructor(t=null,e=null){super(),e=Object.assign({},da.defaultOptions,e);const{alphaMode:s,mipmap:r,anisotropicLevel:n,scaleMode:a,width:o,height:h,wrapMode:l,format:c,type:u,target:d,resolution: Line truncated
Deprecated since v${i}`),console.warn(s))),tx[t]=!0}function rr(i){if(typeof i!="string")throw new TypeError(`Path must be a string. Received ${JSON.stringify(i)}`)}function fo(i){return i.split("?")[0].split("#")[0]}function kI(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function LI(i,t,e){return i.replace(new RegExp(kI(t),"g"),e)}function BI(i,t){let e="",s=0,r=-1,n=0,a=-1;for(let o=0;o<=i.length;++o){if(o<i.length)a=i.charCodeAt(o);else{if(a===47)break;a=47}if(a===47){if(!(r===o-1||n===1))if(r!==o-1&&n===2){if(e.length<2||s!==2||e.charCodeAt(e.length-1)!==46||e.charCodeAt(e.length-2)!==46){if(e.length>2){const h=e.lastIndexOf("/");if(h!==e.length-1){h===-1?(e="",s=0):(e=e.slice(0,h),s=e.length-1-e.lastIndexOf("/")),r=o,n=0;continue}}else if(e.length===2||e.length===1){e="",s=0,r=o,n=0;continue}}}else e.length>0?e+=`/${i.slice(r+1,o)}`:e=i.slice(r+1,o),s=o-r-1;r=o,n=0}else a===46&&n!==-1?++n:n=-1}return e}const ye={toPosix(i){return LI(i,"\\","/")},isUrl(i){return/^https?:/.test(this.toPosix(i))},isDataUrl(i){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(i)},isBlobUrl(i){return i.startsWith("blob:")},hasProtocol(i){return/^[^/:]+:/.test(this.toPosix(i))},getProtocol(i){rr(i),i=this.toPosix(i);const t=/^file:\/\/\//.exec(i);if(t)return t[0];const e=/^[^/:]+:\/{0,2}/.exec(i);return e?e[0]:""},toAbsolute(i,t,e){if(rr(i),this.isDataUrl(i)||this.isBlobUrl(i))return i;const s=fo(this.toPosix(t??_t.ADAPTER.getBaseUrl())),r=fo(this.toPosix(e??this.rootname(s)));return i=this.toPosix(i),i.startsWith("/")?ye.join(r,i.slice(1)):this.isAbsolute(i)?i:this.join(s,i)},normalize(i){if(rr(i),i.length===0)return".";if(this.isDataUrl(i)||this.isBlobUrl(i))return i;i=this.toPosix(i);let t="";const e=i.startsWith("/");this.hasProtocol(i)&&(t=this.rootname(i),i=i.slice(t.length));const s=i.endsWith("/");return i=BI(i),i.length>0&&s&&(i+="/"),e?`/${i}`:t+i},isAbsolute(i){return rr(i),i=this.toPosix(i),this.hasProtocol(i)?!0:i.startsWith("/")},join(...i){if(i.length===0)return".";let t;for(let e=0;e<i.length;++e){const s=i[e];if(rr(s),s.length>0)if(t===void 0)t=s;else{const r=i[e-1]??"";this.joinExtensions.includes(this.extname(r).toLowerCase())?t+=`/../${s}`:t+=`/${s}`}}return t===void 0?".":this.normalize(t)},dirname(i){if(rr(i),i.length===0)return".";i=this.toPosix(i);let t=i.charCodeAt(0);const e=t===47;let s=-1,r=!0;const n=this.getProtocol(i),a=i;i=i.slice(n.length);for(let o=i.length-1;o>=1;--o)if(t=i.charCodeAt(o),t===47){if(!r){s=o;break}}else r=!1;return s===-1?e?"/":this.isUrl(a)?n+i:n:e&&s===1?"//":n+i.slice(0,s)},rootname(i){rr(i),i=this.toPosix(i);let t="";if(i.startsWith("/")?t="/":t=this.getProtocol(i),this.isUrl(i)){const e=i.indexOf("/",t.length);e!==-1?t=i.slice(0,e):t=i,t.endsWith("/")||(t+="/")}return t},basename(i,t){rr(i),t&&rr(t),i=fo(this.toPosix(i));let e=0,s=-1,r=!0,n;if(t!==void 0&&t.length>0&&t.length<=i.length){if(t.length===i.length&&t===i)return"";let a=t.length-1,o=-1;for(n=i.length-1;n>=0;--n){const h=i.charCodeAt(n);if(h===47){if(!r){e=n+1;break}}else o===-1&&(r=!1,o=n+1),a>=0&&(h===t.charCodeAt(a)?--a===-1&&(s=n):(a=-1,s=o))}return e===s?s=o:s===-1&&(s=i.length),i.slice(e,s)}for(n=i.length-1;n>=0;--n)if(i.charCodeAt(n)===47){if(!r){e=n+1;break}}else s===-1&&(r=!1,s=n+1);return s===-1?"":i.slice(e,s)},extname(i){rr(i),i=fo(this.toPosix(i));let t=-1,e=0,s=-1,r=!0,n=0;for(let a=i.length-1;a>=0;--a){const o=i.charCodeAt(a);if(o===47){if(!r){e=a+1;break}continue}s===-1&&(r=!1,s=a+1),o===46?t===-1?t=a:n!==1&&(n=1):t!==-1&&(n=-1)}return t===-1||s===-1||n===0||n===1&&t===s-1&&t===e+1?"":i.slice(t,s)},parse(i){rr(i);const t={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return t;i=fo(this.toPosix(i));let e=i.charCodeAt(0);const s=this.isAbsolute(i);let r;t.root=this.rootname(i),s||this.hasProtocol(i)?r=1:r=0;let n=-1,a=0,o=-1,h=!0,l=i.length-1,c=0;for(;l>=r;--l){if(e=i.charCodeAt(l),e===47){if(!h){a=l+1;break}continue}o===-1&&(h=!1,o=l+1),e===46?n===-1?n=l:c!==1&&(c=1):n!==-1&&(c=-1)}return n===-1||o===-1||c===0||c===1&&n===o-1&&n===a+1?o!==-1&&(a===0&&s?t.base=t.name=i.slice(1,o):t.base=t.name=i.slice(a,o)):(a===0&&s?(t.name=i.slice(1,n),t.base=i.slice(1,o)):(t.name=i.slice(a,n),t.base=i.slice(a,o)),t.ext=i.slice(n,o)),t.dir=this.dirname(i),t},sep:"/",delimiter:":",joinExtensions:[".html"]};let uf;async function OI(){return uf??(uf=(async()=>{var n;const i=document.createElement("canvas").getContext("webgl");if(!i)return Ke.UNPACK;const t=await new Promise(a=>{const o=document.createElement("video");o.onloadeddata=()=>a(o),o.onerror=()=>a(null),o.autoplay=!1,o.crossOrigin="anonymous",o.preload="auto",o.src="data:video/webm;base64,GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQJChYECGFOAZwEAAAAAAAHTEU2bdLpNu4tTq4QVSalmU6yBoU27i1OrhBZUrmtTrIHGTbuMU6uEElTDZ1OsggEXTbuMU6uEHFO7a1OsggG97AEAAAAAAABZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA Line truncated
`);function rP(i){let t="";for(let e=0;e<i;++e)e>0&&(t+=`
else `),e<i-1&&(t+=`if(test == ${e}.0){}`);return t}function iP(i,t){if(i===0)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");const e=t.createShader(t.FRAGMENT_SHADER);for(;;){const s=sP.replace(/%forloop%/gi,rP(i));if(t.shaderSource(e,s),t.compileShader(e),!t.getShaderParameter(e,t.COMPILE_STATUS))i=i/2|0;else break}return i}const gf=0,yf=1,xf=2,bf=3,vf=4,_f=5;class jr{constructor(){this.data=0,this.blendMode=It.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}get blend(){return!!(this.data&1<<gf)}set blend(t){!!(this.data&1<<gf)!==t&&(this.data^=1<<gf)}get offsets(){return!!(this.data&1<<yf)}set offsets(t){!!(this.data&1<<yf)!==t&&(this.data^=1<<yf)}get culling(){return!!(this.data&1<<xf)}set culling(t){!!(this.data&1<<xf)!==t&&(this.data^=1<<xf)}get depthTest(){return!!(this.data&1<<bf)}set depthTest(t){!!(this.data&1<<bf)!==t&&(this.data^=1<<bf)}get depthMask(){return!!(this.data&1<<_f)}set depthMask(t){!!(this.data&1<<_f)!==t&&(this.data^=1<<_f)}get clockwiseFrontFace(){return!!(this.data&1<<vf)}set clockwiseFrontFace(t){!!(this.data&1<<vf)!==t&&(this.data^=1<<vf)}get blendMode(){return this._blendMode}set blendMode(t){this.blend=t!==It.NONE,this._blendMode=t}get polygonOffset(){return this._polygonOffset}set polygonOffset(t){this.offsets=!!t,this._polygonOffset=t}static for2d(){const t=new jr;return t.depthTest=!1,t.blend=!0,t}}jr.prototype.toString=function(){return`[@pixi/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`};const _m=[];function E_(i,t){if(!i)return null;let e="";if(typeof i=="string"){const s=/\.(\w{3,4})(?:$|\?|#)/i.exec(i);s&&(e=s[1].toLowerCase())}for(let s=_m.length-1;s>=0;--s){const r=_m[s];if(r.test&&r.test(i,e))return new r(i,t)}throw new Error("Unrecognized source type to auto-detect Resource")}class gr{constructor(t){this.items=[],this._name=t,this._aliasCount=0}emit(t,e,s,r,n,a,o,h){if(arguments.length>8)throw new Error("max arguments reached");const{name:l,items:c}=this;this._aliasCount++;for(let u=0,d=c.length;u<d;u++)c[u][l](t,e,s,r,n,a,o,h);return c===this.items&&this._aliasCount--,this}ensureNonAliasedItems(){this._aliasCount>0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))}add(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this}remove(t){const e=this.items.indexOf(t);return e!==-1&&(this.ensureNonAliasedItems(),this.items.splice(e,1)),this}contains(t){return this.items.includes(t)}removeAll(){return this.ensureNonAliasedItems(),this.items.length=0,this}destroy(){this.removeAll(),this.items.length=0,this._name=""}get empty(){return this.items.length===0}get name(){return this._name}}Object.defineProperties(gr.prototype,{dispatch:{value:gr.prototype.emit},run:{value:gr.prototype.emit}});class sl{constructor(t=0,e=0){this._width=t,this._height=e,this.destroyed=!1,this.internal=!1,this.onResize=new gr("setRealSize"),this.onUpdate=new gr("update"),this.onError=new gr("onError")}bind(t){this.onResize.add(t),this.onUpdate.add(t),this.onError.add(t),(this._width||this._height)&&this.onResize.emit(this._width,this._height)}unbind(t){this.onResize.remove(t),this.onUpdate.remove(t),this.onError.remove(t)}resize(t,e){(t!==this._width||e!==this._height)&&(this._width=t,this._height=e,this.onResize.emit(t,e))}get valid(){return!!this._width&&!!this._height}update(){this.destroyed||this.onUpdate.emit()}load(){return Promise.resolve(this)}get width(){return this._width}get height(){return this._height}style(t,e,s){return!1}dispose(){}destroy(){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)}static test(t,e){return!1}}class Hc extends sl{constructor(t,e){const{width:s,height:r}=e||{};if(!s||!r)throw new Error("BufferResource width or height invalid");super(s,r),this.data=t,this.unpackAlignment=e.unpackAlignment??4}upload(t,e,s){const r=t.gl;r.pixelStorei(r.UNPACK_ALIGNMENT,this.unpackAlignment),r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e.alphaMode===Ke.UNPACK);const n=e.realWidth,a=e.realHeight;return s.width===n&&s.height===a?r.texSubImage2D(e.target,0,0,0,n,a,e.format,s.type,this.data):(s.width=n,s.height=a,r.texImage2D(e.target,0,s.internalFormat,n,a,0,e.format,s.type,this.data)),!0}dispose(){this.data=null}static test(t){return t===null||t instanceof Int8Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array}}const nP={scaleMode:Ns.NEAREST,alphaMode:Ke.NPM},wm=class fa extends Cl{constructor(t=null,e=null){super(),e=Object.assign({},fa.defaultOptions,e);const{alphaMode:s,mipmap:r,anisotropicLevel:n,scaleMode:a,width:o,height:h,wrapMode:l,format:c,type:u,target:d,resolution: Line truncated
uniform sampler2D uSampler;
void main(void){
gl_FragColor *= texture2D(uSampler, vTextureCoord);
}`,fP=`attribute vec2 aVertexPosition;
}`,pP=`attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
@@ -65,7 +65,7 @@ void main(void){
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = aTextureCoord;
}
`;function px(i,t,e){const s=i.createShader(t);return i.shaderSource(s,e),i.compileShader(s),s}function vf(i){const t=new Array(i);for(let e=0;e<t.length;e++)t[e]=!1;return t}function C_(i,t){switch(i){case"float":return 0;case"vec2":return new Float32Array(2*t);case"vec3":return new Float32Array(3*t);case"vec4":return new Float32Array(4*t);case"int":case"uint":case"sampler2D":case"sampler2DArray":return 0;case"ivec2":return new Int32Array(2*t);case"ivec3":return new Int32Array(3*t);case"ivec4":return new Int32Array(4*t);case"uvec2":return new Uint32Array(2*t);case"uvec3":return new Uint32Array(3*t);case"uvec4":return new Uint32Array(4*t);case"bool":return!1;case"bvec2":return vf(2*t);case"bvec3":return vf(3*t);case"bvec4":return vf(4*t);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}const Ra=[{test:i=>i.type==="float"&&i.size===1&&!i.isArray,code:i=>`
`;function gx(i,t,e){const s=i.createShader(t);return i.shaderSource(s,e),i.compileShader(s),s}function wf(i){const t=new Array(i);for(let e=0;e<t.length;e++)t[e]=!1;return t}function I_(i,t){switch(i){case"float":return 0;case"vec2":return new Float32Array(2*t);case"vec3":return new Float32Array(3*t);case"vec4":return new Float32Array(4*t);case"int":case"uint":case"sampler2D":case"sampler2DArray":return 0;case"ivec2":return new Int32Array(2*t);case"ivec3":return new Int32Array(3*t);case"ivec4":return new Int32Array(4*t);case"uvec2":return new Uint32Array(2*t);case"uvec3":return new Uint32Array(3*t);case"uvec4":return new Uint32Array(4*t);case"bool":return!1;case"bvec2":return wf(2*t);case"bvec3":return wf(3*t);case"bvec4":return wf(4*t);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}const Fa=[{test:i=>i.type==="float"&&i.size===1&&!i.isArray,code:i=>`
if(uv["${i}"] !== ud["${i}"].value)
{
ud["${i}"].value = uv["${i}"]
@@ -185,7 +185,7 @@ void main(void){
cv[3] = v[3];
gl.uniform4f(ud["${i}"].location, v[0], v[1], v[2], v[3])
}`}],mP={float:`
}`}],gP={float:`
if (cv !== v)
{
cu.value = v;
@@ -321,7 +321,7 @@ void main(void){
cu.value = v;
gl.uniform1i(location, v);
}`},pP={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 gP(i,t){var s;const e=[`
}`},yP={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 xP(i,t){var s;const e=[`
var v = null;
var cv = null;
var cu = null;
@@ -331,18 +331,18 @@ void main(void){
renderer.shader.syncUniformBufferGroup(uv.${r}, '${r}');
`):e.push(`
renderer.shader.syncUniformGroup(uv.${r}, syncData);
`));continue}const a=i.uniforms[r];let o=!1;for(let h=0;h<Ra.length;h++)if(Ra[h].test(n,a)){e.push(Ra[h].code(r,a)),o=!0;break}if(!o){const h=(n.size===1&&!n.isArray?mP:pP)[n.type].replace("location",`ud["${r}"].location`);e.push(`
`));continue}const a=i.uniforms[r];let o=!1;for(let h=0;h<Fa.length;h++)if(Fa[h].test(n,a)){e.push(Fa[h].code(r,a)),o=!0;break}if(!o){const h=(n.size===1&&!n.isArray?gP:yP)[n.type].replace("location",`ud["${r}"].location`);e.push(`
cu = ud["${r}"];
cv = cu.value;
v = uv["${r}"];
${h};`)}}return new Function("ud","uv","renderer","syncData",e.join(`
`))}const I_={};let oa=I_;function yP(){if(oa===I_||oa!=null&&oa.isContextLost()){const i=_t.ADAPTER.createCanvas();let t;_t.PREFER_ENV>=Kn.WEBGL2&&(t=i.getContext("webgl2",{})),t||(t=i.getContext("webgl",{})||i.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),oa=t}return oa}let Jl;function xP(){if(!Jl){Jl=Ks.MEDIUM;const i=yP();if(i&&i.getShaderPrecisionFormat){const t=i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.HIGH_FLOAT);t&&(Jl=t.precision?Ks.HIGH:Ks.MEDIUM)}}return Jl}function gx(i,t){const e=i.getShaderSource(t).split(`
`))}const P_={};let la=P_;function bP(){if(la===P_||la!=null&&la.isContextLost()){const i=_t.ADAPTER.createCanvas();let t;_t.PREFER_ENV>=Kn.WEBGL2&&(t=i.getContext("webgl2",{})),t||(t=i.getContext("webgl",{})||i.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),la=t}return la}let th;function vP(){if(!th){th=Ks.MEDIUM;const i=bP();if(i&&i.getShaderPrecisionFormat){const t=i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.HIGH_FLOAT);t&&(th=t.precision?Ks.HIGH:Ks.MEDIUM)}}return th}function yx(i,t){const e=i.getShaderSource(t).split(`
`).map((l,c)=>`${c}: ${l}`),s=i.getShaderInfoLog(t),r=s.split(`
`),n={},a=r.map(l=>parseFloat(l.replace(/^ERROR\: 0\:([\d]+)\:.*$/,"$1"))).filter(l=>l&&!n[l]?(n[l]=!0,!0):!1),o=[""];a.forEach(l=>{e[l-1]=`%c${e[l-1]}%c`,o.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")});const h=e.join(`
`);o[0]=h,console.error(s),console.groupCollapsed("click to view full shader code"),console.warn(...o),console.groupEnd()}function bP(i,t,e,s){i.getProgramParameter(t,i.LINK_STATUS)||(i.getShaderParameter(e,i.COMPILE_STATUS)||gx(i,e),i.getShaderParameter(s,i.COMPILE_STATUS)||gx(i,s),console.error("PixiJS Error: Could not initialize shader."),i.getProgramInfoLog(t)!==""&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",i.getProgramInfoLog(t)))}const vP={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 P_(i){return vP[i]}let Ql=null;const yx={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 M_(i,t){if(!Ql){const e=Object.keys(yx);Ql={};for(let s=0;s<e.length;++s){const r=e[s];Ql[i[r]]=yx[r]}}return Ql[t]}function xx(i,t,e){if(i.substring(0,9)!=="precision"){let s=t;return t===Ks.HIGH&&e!==Ks.HIGH&&(s=Ks.MEDIUM),`precision ${s} float;
${i}`}else if(e!==Ks.HIGH&&i.substring(0,15)==="precision highp")return i.replace("precision highp","precision mediump");return i}let mo;function _P(){if(typeof mo=="boolean")return mo;try{mo=new Function("param1","param2","param3","return param1[param2] === param3;")({a:"b"},"a","b")===!0}catch{mo=!1}return mo}let wP=0;const th={},Sm=class fa{constructor(t,e,s="pixi-shader",r={}){this.extra={},this.id=wP++,this.vertexSrc=t||fa.defaultVertexSrc,this.fragmentSrc=e||fa.defaultFragmentSrc,this.vertexSrc=this.vertexSrc.trim(),this.fragmentSrc=this.fragmentSrc.trim(),this.extra=r,this.vertexSrc.substring(0,8)!=="#version"&&(s=s.replace(/\s+/g,"-"),th[s]?(th[s]++,s+=`-${th[s]}`):th[s]=1,this.vertexSrc=`#define SHADER_NAME ${s}
`);o[0]=h,console.error(s),console.groupCollapsed("click to view full shader code"),console.warn(...o),console.groupEnd()}function _P(i,t,e,s){i.getProgramParameter(t,i.LINK_STATUS)||(i.getShaderParameter(e,i.COMPILE_STATUS)||yx(i,e),i.getShaderParameter(s,i.COMPILE_STATUS)||yx(i,s),console.error("PixiJS Error: Could not initialize shader."),i.getProgramInfoLog(t)!==""&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",i.getProgramInfoLog(t)))}const wP={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 M_(i){return wP[i]}let eh=null;const xx={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 R_(i,t){if(!eh){const e=Object.keys(xx);eh={};for(let s=0;s<e.length;++s){const r=e[s];eh[i[r]]=xx[r]}}return eh[t]}function bx(i,t,e){if(i.substring(0,9)!=="precision"){let s=t;return t===Ks.HIGH&&e!==Ks.HIGH&&(s=Ks.MEDIUM),`precision ${s} float;
${i}`}else if(e!==Ks.HIGH&&i.substring(0,15)==="precision highp")return i.replace("precision highp","precision mediump");return i}let mo;function TP(){if(typeof mo=="boolean")return mo;try{mo=new Function("param1","param2","param3","return param1[param2] === param3;")({a:"b"},"a","b")===!0}catch{mo=!1}return mo}let SP=0;const sh={},Am=class ma{constructor(t,e,s="pixi-shader",r={}){this.extra={},this.id=SP++,this.vertexSrc=t||ma.defaultVertexSrc,this.fragmentSrc=e||ma.defaultFragmentSrc,this.vertexSrc=this.vertexSrc.trim(),this.fragmentSrc=this.fragmentSrc.trim(),this.extra=r,this.vertexSrc.substring(0,8)!=="#version"&&(s=s.replace(/\s+/g,"-"),sh[s]?(sh[s]++,s+=`-${sh[s]}`):sh[s]=1,this.vertexSrc=`#define SHADER_NAME ${s}
${this.vertexSrc}`,this.fragmentSrc=`#define SHADER_NAME ${s}
${this.fragmentSrc}`,this.vertexSrc=xx(this.vertexSrc,fa.defaultVertexPrecision,Ks.HIGH),this.fragmentSrc=xx(this.fragmentSrc,fa.defaultFragmentPrecision,xP())),this.glPrograms={},this.syncUniforms=null}static get defaultVertexSrc(){return fP}static get defaultFragmentSrc(){return dP}static from(t,e,s){const r=t+e;let n=cx[r];return n||(cx[r]=n=new fa(t,e,s)),n}};Sm.defaultVertexPrecision=Ks.HIGH,Sm.defaultFragmentPrecision=pi.apple.device?Ks.HIGH:Ks.MEDIUM;let ur=Sm,TP=0;class yr{constructor(t,e,s){this.group=!0,this.syncUniforms={},this.dirtyId=0,this.id=TP++,this.static=!!e,this.ubo=!!s,t instanceof ne?(this.buffer=t,this.buffer.type=$r.UNIFORM_BUFFER,this.autoManage=!1,this.ubo=!0):(this.uniforms=t,this.ubo&&(this.buffer=new ne(new Float32Array(1)),this.buffer.type=$r.UNIFORM_BUFFER,this.autoManage=!0))}update(){this.dirtyId++,!this.autoManage&&this.buffer&&this.buffer.update()}add(t,e,s){if(!this.ubo)this.uniforms[t]=new yr(e,s);else throw new Error("[UniformGroup] uniform groups in ubo mode cannot be modified, or have uniform groups nested in them")}static from(t,e,s){return new yr(t,e,s)}static uboFrom(t,e){return new yr(t,e??!0,!0)}}class Js{constructor(t,e){this.uniformBindCount=0,this.program=t,e?e instanceof yr?this.uniformGroup=e:this.uniformGroup=new yr(e):this.uniformGroup=new yr({}),this.disposeRunner=new gr("disposeShader")}checkUniformExists(t,e){if(e.uniforms[t])return!0;for(const s in e.uniforms){const r=e.uniforms[s];if(r.group===!0&&this.checkUniformExists(t,r))return!0}return!1}destroy(){this.uniformGroup=null,this.disposeRunner.emit(this),this.disposeRunner.destroy()}get uniforms(){return this.uniformGroup.uniforms}static from(t,e,s){const r=ur.from(t,e);return new Js(r,s)}}class Np{constructor(t,e){if(this.vertexSrc=t,this.fragTemplate=e,this.programCache={},this.defaultGroupCache={},!e.includes("%count%"))throw new Error('Fragment template must contain "%count%".');if(!e.includes("%forloop%"))throw new Error('Fragment template must contain "%forloop%".')}generateShader(t){if(!this.programCache[t]){const s=new Int32Array(t);for(let n=0;n<t;n++)s[n]=n;this.defaultGroupCache[t]=yr.from({uSamplers:s},!0);let r=this.fragTemplate;r=r.replace(/%count%/gi,`${t}`),r=r.replace(/%forloop%/gi,this.generateSampleSrc(t)),this.programCache[t]=new ur(this.vertexSrc,r)}const e={tint:new Float32Array([1,1,1,1]),translationMatrix:new fe,default:this.defaultGroupCache[t]};return new Js(this.programCache[t],e)}generateSampleSrc(t){let e="";e+=`
${this.fragmentSrc}`,this.vertexSrc=bx(this.vertexSrc,ma.defaultVertexPrecision,Ks.HIGH),this.fragmentSrc=bx(this.fragmentSrc,ma.defaultFragmentPrecision,vP())),this.glPrograms={},this.syncUniforms=null}static get defaultVertexSrc(){return pP}static get defaultFragmentSrc(){return mP}static from(t,e,s){const r=t+e;let n=ux[r];return n||(ux[r]=n=new ma(t,e,s)),n}};Am.defaultVertexPrecision=Ks.HIGH,Am.defaultFragmentPrecision=pi.apple.device?Ks.HIGH:Ks.MEDIUM;let ur=Am,EP=0;class yr{constructor(t,e,s){this.group=!0,this.syncUniforms={},this.dirtyId=0,this.id=EP++,this.static=!!e,this.ubo=!!s,t instanceof ne?(this.buffer=t,this.buffer.type=$r.UNIFORM_BUFFER,this.autoManage=!1,this.ubo=!0):(this.uniforms=t,this.ubo&&(this.buffer=new ne(new Float32Array(1)),this.buffer.type=$r.UNIFORM_BUFFER,this.autoManage=!0))}update(){this.dirtyId++,!this.autoManage&&this.buffer&&this.buffer.update()}add(t,e,s){if(!this.ubo)this.uniforms[t]=new yr(e,s);else throw new Error("[UniformGroup] uniform groups in ubo mode cannot be modified, or have uniform groups nested in them")}static from(t,e,s){return new yr(t,e,s)}static uboFrom(t,e){return new yr(t,e??!0,!0)}}class Js{constructor(t,e){this.uniformBindCount=0,this.program=t,e?e instanceof yr?this.uniformGroup=e:this.uniformGroup=new yr(e):this.uniformGroup=new yr({}),this.disposeRunner=new gr("disposeShader")}checkUniformExists(t,e){if(e.uniforms[t])return!0;for(const s in e.uniforms){const r=e.uniforms[s];if(r.group===!0&&this.checkUniformExists(t,r))return!0}return!1}destroy(){this.uniformGroup=null,this.disposeRunner.emit(this),this.disposeRunner.destroy()}get uniforms(){return this.uniformGroup.uniforms}static from(t,e,s){const r=ur.from(t,e);return new Js(r,s)}}class Up{constructor(t,e){if(this.vertexSrc=t,this.fragTemplate=e,this.programCache={},this.defaultGroupCache={},!e.includes("%count%"))throw new Error('Fragment template must contain "%count%".');if(!e.includes("%forloop%"))throw new Error('Fragment template must contain "%forloop%".')}generateShader(t){if(!this.programCache[t]){const s=new Int32Array(t);for(let n=0;n<t;n++)s[n]=n;this.defaultGroupCache[t]=yr.from({uSamplers:s},!0);let r=this.fragTemplate;r=r.replace(/%count%/gi,`${t}`),r=r.replace(/%forloop%/gi,this.generateSampleSrc(t)),this.programCache[t]=new ur(this.vertexSrc,r)}const e={tint:new Float32Array([1,1,1,1]),translationMatrix:new fe,default:this.defaultGroupCache[t]};return new Js(this.programCache[t],e)}generateSampleSrc(t){let e="";e+=`
`,e+=`
`;for(let s=0;s<t;s++)s>0&&(e+=`
else `),s<t-1&&(e+=`if(vTextureId < ${s}.5)`),e+=`
@@ -350,7 +350,7 @@ else `),s<t-1&&(e+=`if(vTextureId < ${s}.5)`),e+=`
color = texture2D(uSamplers[${s}], vTextureCoord);`,e+=`
}`;return e+=`
`,e+=`
`,e}}class Em{constructor(){this.elements=[],this.ids=[],this.count=0}clear(){for(let t=0;t<this.count;t++)this.elements[t]=null;this.count=0}}function SP(){return!pi.apple.device}function EP(i){let t=!0;const e=_t.ADAPTER.getNavigator();if(pi.tablet||pi.phone){if(pi.apple.device){const s=e.userAgent.match(/OS (\d+)_(\d+)?/);s&&parseInt(s[1],10)<11&&(t=!1)}if(pi.android.device){const s=e.userAgent.match(/Android\s([0-9.]*)/);s&&parseInt(s[1],10)<7&&(t=!1)}}return t?i:4}class zc{constructor(t){this.renderer=t}flush(){}destroy(){this.renderer=null}start(){}stop(){this.flush()}render(t){}}var AP=`varying vec2 vTextureCoord;
`,e}}class Cm{constructor(){this.elements=[],this.ids=[],this.count=0}clear(){for(let t=0;t<this.count;t++)this.elements[t]=null;this.count=0}}function AP(){return!pi.apple.device}function CP(i){let t=!0;const e=_t.ADAPTER.getNavigator();if(pi.tablet||pi.phone){if(pi.apple.device){const s=e.userAgent.match(/OS (\d+)_(\d+)?/);s&&parseInt(s[1],10)<11&&(t=!1)}if(pi.android.device){const s=e.userAgent.match(/Android\s([0-9.]*)/);s&&parseInt(s[1],10)<7&&(t=!1)}}return t?i:4}class Kc{constructor(t){this.renderer=t}flush(){}destroy(){this.renderer=null}start(){}stop(){this.flush()}render(t){}}var IP=`varying vec2 vTextureCoord;
varying vec4 vColor;
varying float vTextureId;
uniform sampler2D uSamplers[%count%];
@@ -360,7 +360,7 @@ void main(void){
%forloop%
gl_FragColor = color * vColor;
}
`,CP=`precision highp float;
`,PP=`precision highp float;
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
attribute vec4 aColor;
@@ -381,14 +381,14 @@ void main(void){
vTextureId = aTextureId;
vColor = aColor * tint;
}
`;const _o=class ar extends zc{constructor(t){super(t),this.setShaderGenerator(),this.geometryClass=E_,this.vertexSize=6,this.state=jr.for2d(),this.size=ar.defaultBatchSize*4,this._vertexCount=0,this._indexCount=0,this._bufferedElements=[],this._bufferedTextures=[],this._bufferSize=0,this._shader=null,this._packedGeometries=[],this._packedGeometryPoolSize=2,this._flushId=0,this._aBuffers={},this._iBuffers={},this.maxTextures=1,this.renderer.on("prerender",this.onPrerender,this),t.runners.contextChange.add(this),this._dcIndex=0,this._aIndex=0,this._iIndex=0,this._attributeBuffer=null,this._indexBuffer=null,this._tempBoundTextures=[]}static get defaultMaxTextures(){return this._defaultMaxTextures=this._defaultMaxTextures??EP(32),this._defaultMaxTextures}static set defaultMaxTextures(t){this._defaultMaxTextures=t}static get canUploadSameBuffer(){return this._canUploadSameBuffer=this._canUploadSameBuffer??SP(),this._canUploadSameBuffer}static set canUploadSameBuffer(t){this._canUploadSameBuffer=t}get MAX_TEXTURES(){return Ht("7.1.0","BatchRenderer#MAX_TEXTURES renamed to BatchRenderer#maxTextures"),this.maxTextures}static get defaultVertexSrc(){return CP}static get defaultFragmentTemplate(){return AP}setShaderGenerator({vertex:t=ar.defaultVertexSrc,fragment:e=ar.defaultFragmentTemplate}={}){this.shaderGenerator=new Np(t,e)}contextChange(){const t=this.renderer.gl;_t.PREFER_ENV===Kn.WEBGL_LEGACY?this.maxTextures=1:(this.maxTextures=Math.min(t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),ar.defaultMaxTextures),this.maxTextures=sP(this.maxTextures,t)),this._shader=this.shaderGenerator.generateShader(this.maxTextures);for(let e=0;e<this._packedGeometryPoolSize;e++)this._packedGeometries[e]=new this.geometryClass;this.initFlushBuffers()}initFlushBuffers(){const{_drawCallPool:t,_textureArrayPool:e}=ar,s=this.size/4,r=Math.floor(s/this.maxTextures)+1;for(;t.length<s;)t.push(new _m);for(;e.length<r;)e.push(new Em);for(let n=0;n<this.maxTextures;n++)this._tempBoundTextures[n]=null}onPrerender(){this._flushId=0}render(t){t._texture.valid&&(this._vertexCount+t.vertexData.length/2>this.size&&this.flush(),this._vertexCount+=t.vertexData.length/2,this._indexCount+=t.indices.length,this._bufferedTextures[this._bufferSize]=t._texture.baseTexture,this._bufferedElements[this._bufferSize++]=t)}buildTexturesAndDrawCalls(){const{_bufferedTextures:t,maxTextures:e}=this,s=ar._textureArrayPool,r=this.renderer.batch,n=this._tempBoundTextures,a=this.renderer.textureGC.count;let o=++Lt._globalBatch,h=0,l=s[0],c=0;r.copyBoundTextures(n,e);for(let u=0;u<this._bufferSize;++u){const d=t[u];t[u]=null,d._batchEnabled!==o&&(l.count>=e&&(r.boundArray(l,n,o,e),this.buildDrawCalls(l,c,u),c=u,l=s[++h],++o),d._batchEnabled=o,d.touched=a,l.elements[l.count++]=d)}l.count>0&&(r.boundArray(l,n,o,e),this.buildDrawCalls(l,c,this._bufferSize),++h,++o);for(let u=0;u<n.length;u++)n[u]=null;Lt._globalBatch=o}buildDrawCalls(t,e,s){const{_bufferedElements:r,_attributeBuffer:n,_indexBuffer:a,vertexSize:o}=this,h=ar._drawCallPool;let l=this._dcIndex,c=this._aIndex,u=this._iIndex,d=h[l];d.start=this._iIndex,d.texArray=t;for(let f=e;f<s;++f){const m=r[f],p=m._texture.baseTexture,g=__[p.alphaMode?1:0][m.blendMode];r[f]=null,e<f&&d.blend!==g&&(d.size=u-d.start,e=f,d=h[++l],d.texArray=t,d.start=u),this.packInterleavedGeometry(m,n,a,c,u),c+=m.vertexData.length/2*o,u+=m.indices.length,d.blend=g}e<s&&(d.size=u-d.start,++l),this._dcIndex=l,this._aIndex=c,this._iIndex=u}bindAndClearTexArray(t){const e=this.renderer.texture;for(let s=0;s<t.count;s++)e.bind(t.elements[s],t.ids[s]),t.elements[s]=null;t.count=0}updateGeometry(){const{_packedGeometries:t,_attributeBuffer:e,_indexBuffer:s}=this;ar.canUploadSameBuffer?(t[this._flushId]._buffer.update(e.rawBinaryData),t[this._flushId]._indexBuffer.update(s),this.renderer.geometry.updateBuffers()):(this._packedGeometryPoolSize<=this._flushId&&(this._packedGeometryPoolSize++,t[this._flushId]=new this.geometryClass),t[this._flushId]._buffer.update(e.rawBinaryData),t[this._flushId]._indexBuffer.update(s),this.renderer.geometry.bind(t[this._flushId]),this.renderer.geometry.updateBuffers(),this._flushId++)}drawBatches(){const t=this._dcIndex,{gl:e,state:s}=this.renderer,r=ar._drawCallPool;let n=null;for(let a=0;a<t;a++){const{texArray:o,type:h,size:l,start:c,blend:u}=r[a];n!==o&&(n=o,this.bindAndClearTexArray(o)),this.state.blendMode=u,s.set(this.state),e.drawElements(h,l,e.UNSIGNED_SHORT,c*2)}}flush(){this._vertexCount!==0&&(this._attributeBuffer=this.getAttributeBuffer(this._vertexCount),this._indexBuffer=this.getIndexBuffer(this._indexCount),this._aIndex=0,this._iIndex=0,this._dcIndex=0,this.buildTexturesAndDrawCalls(),this.updateGeometry(),this.drawBatches(),this._bufferSize=0,this._vertexCount=0,this._indexCount=0)}start(){this.renderer.state.set(this.state),this.renderer.texture.ensureSamplerType(this.maxTextures),this.renderer.shader.bind(this._shader),ar.canUploadSameBuffer&&this.renderer.geometry.bind(this._packedGeometries[this._f Line truncated
`;const wo=class ar extends Kc{constructor(t){super(t),this.setShaderGenerator(),this.geometryClass=A_,this.vertexSize=6,this.state=jr.for2d(),this.size=ar.defaultBatchSize*4,this._vertexCount=0,this._indexCount=0,this._bufferedElements=[],this._bufferedTextures=[],this._bufferSize=0,this._shader=null,this._packedGeometries=[],this._packedGeometryPoolSize=2,this._flushId=0,this._aBuffers={},this._iBuffers={},this.maxTextures=1,this.renderer.on("prerender",this.onPrerender,this),t.runners.contextChange.add(this),this._dcIndex=0,this._aIndex=0,this._iIndex=0,this._attributeBuffer=null,this._indexBuffer=null,this._tempBoundTextures=[]}static get defaultMaxTextures(){return this._defaultMaxTextures=this._defaultMaxTextures??CP(32),this._defaultMaxTextures}static set defaultMaxTextures(t){this._defaultMaxTextures=t}static get canUploadSameBuffer(){return this._canUploadSameBuffer=this._canUploadSameBuffer??AP(),this._canUploadSameBuffer}static set canUploadSameBuffer(t){this._canUploadSameBuffer=t}get MAX_TEXTURES(){return Ht("7.1.0","BatchRenderer#MAX_TEXTURES renamed to BatchRenderer#maxTextures"),this.maxTextures}static get defaultVertexSrc(){return PP}static get defaultFragmentTemplate(){return IP}setShaderGenerator({vertex:t=ar.defaultVertexSrc,fragment:e=ar.defaultFragmentTemplate}={}){this.shaderGenerator=new Up(t,e)}contextChange(){const t=this.renderer.gl;_t.PREFER_ENV===Kn.WEBGL_LEGACY?this.maxTextures=1:(this.maxTextures=Math.min(t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),ar.defaultMaxTextures),this.maxTextures=iP(this.maxTextures,t)),this._shader=this.shaderGenerator.generateShader(this.maxTextures);for(let e=0;e<this._packedGeometryPoolSize;e++)this._packedGeometries[e]=new this.geometryClass;this.initFlushBuffers()}initFlushBuffers(){const{_drawCallPool:t,_textureArrayPool:e}=ar,s=this.size/4,r=Math.floor(s/this.maxTextures)+1;for(;t.length<s;)t.push(new Tm);for(;e.length<r;)e.push(new Cm);for(let n=0;n<this.maxTextures;n++)this._tempBoundTextures[n]=null}onPrerender(){this._flushId=0}render(t){t._texture.valid&&(this._vertexCount+t.vertexData.length/2>this.size&&this.flush(),this._vertexCount+=t.vertexData.length/2,this._indexCount+=t.indices.length,this._bufferedTextures[this._bufferSize]=t._texture.baseTexture,this._bufferedElements[this._bufferSize++]=t)}buildTexturesAndDrawCalls(){const{_bufferedTextures:t,maxTextures:e}=this,s=ar._textureArrayPool,r=this.renderer.batch,n=this._tempBoundTextures,a=this.renderer.textureGC.count;let o=++Lt._globalBatch,h=0,l=s[0],c=0;r.copyBoundTextures(n,e);for(let u=0;u<this._bufferSize;++u){const d=t[u];t[u]=null,d._batchEnabled!==o&&(l.count>=e&&(r.boundArray(l,n,o,e),this.buildDrawCalls(l,c,u),c=u,l=s[++h],++o),d._batchEnabled=o,d.touched=a,l.elements[l.count++]=d)}l.count>0&&(r.boundArray(l,n,o,e),this.buildDrawCalls(l,c,this._bufferSize),++h,++o);for(let u=0;u<n.length;u++)n[u]=null;Lt._globalBatch=o}buildDrawCalls(t,e,s){const{_bufferedElements:r,_attributeBuffer:n,_indexBuffer:a,vertexSize:o}=this,h=ar._drawCallPool;let l=this._dcIndex,c=this._aIndex,u=this._iIndex,d=h[l];d.start=this._iIndex,d.texArray=t;for(let f=e;f<s;++f){const m=r[f],p=m._texture.baseTexture,g=w_[p.alphaMode?1:0][m.blendMode];r[f]=null,e<f&&d.blend!==g&&(d.size=u-d.start,e=f,d=h[++l],d.texArray=t,d.start=u),this.packInterleavedGeometry(m,n,a,c,u),c+=m.vertexData.length/2*o,u+=m.indices.length,d.blend=g}e<s&&(d.size=u-d.start,++l),this._dcIndex=l,this._aIndex=c,this._iIndex=u}bindAndClearTexArray(t){const e=this.renderer.texture;for(let s=0;s<t.count;s++)e.bind(t.elements[s],t.ids[s]),t.elements[s]=null;t.count=0}updateGeometry(){const{_packedGeometries:t,_attributeBuffer:e,_indexBuffer:s}=this;ar.canUploadSameBuffer?(t[this._flushId]._buffer.update(e.rawBinaryData),t[this._flushId]._indexBuffer.update(s),this.renderer.geometry.updateBuffers()):(this._packedGeometryPoolSize<=this._flushId&&(this._packedGeometryPoolSize++,t[this._flushId]=new this.geometryClass),t[this._flushId]._buffer.update(e.rawBinaryData),t[this._flushId]._indexBuffer.update(s),this.renderer.geometry.bind(t[this._flushId]),this.renderer.geometry.updateBuffers(),this._flushId++)}drawBatches(){const t=this._dcIndex,{gl:e,state:s}=this.renderer,r=ar._drawCallPool;let n=null;for(let a=0;a<t;a++){const{texArray:o,type:h,size:l,start:c,blend:u}=r[a];n!==o&&(n=o,this.bindAndClearTexArray(o)),this.state.blendMode=u,s.set(this.state),e.drawElements(h,l,e.UNSIGNED_SHORT,c*2)}}flush(){this._vertexCount!==0&&(this._attributeBuffer=this.getAttributeBuffer(this._vertexCount),this._indexBuffer=this.getIndexBuffer(this._indexCount),this._aIndex=0,this._iIndex=0,this._dcIndex=0,this.buildTexturesAndDrawCalls(),this.updateGeometry(),this.drawBatches(),this._bufferSize=0,this._vertexCount=0,this._indexCount=0)}start(){this.renderer.state.set(this.state),this.renderer.texture.ensureSamplerType(this.maxTextures),this.renderer.shader.bind(this._shader),ar.canUploadSameBuffer&&this.renderer.geometry.bind(this._packedGeometries[this._f Line truncated
uniform sampler2D uSampler;
void main(void){
gl_FragColor = texture2D(uSampler, vTextureCoord);
}
`,PP=`attribute vec2 aVertexPosition;
`,RP=`attribute vec2 aVertexPosition;
uniform mat3 projectionMatrix;
@@ -414,7 +414,7 @@ void main(void)
gl_Position = filterVertexPosition();
vTextureCoord = filterTextureCoord();
}
`;const Am=class wo extends Js{constructor(t,e,s){const r=ur.from(t||wo.defaultVertexSrc,e||wo.defaultFragmentSrc);super(r,s),this.padding=0,this.resolution=wo.defaultResolution,this.multisample=wo.defaultMultisample,this.enabled=!0,this.autoFit=!0,this.state=new jr}apply(t,e,s,r,n){t.applyFilter(this,e,s,r)}get blendMode(){return this.state.blendMode}set blendMode(t){this.state.blendMode=t}get resolution(){return this._resolution}set resolution(t){this._resolution=t}static get defaultVertexSrc(){return PP}static get defaultFragmentSrc(){return IP}};Am.defaultResolution=1,Am.defaultMultisample=De.NONE;let _s=Am;class jh{constructor(){this.clearBeforeRender=!0,this._backgroundColor=new Wt(0),this.alpha=1}init(t){this.clearBeforeRender=t.clearBeforeRender;const{backgroundColor:e,background:s,backgroundAlpha:r}=t,n=s??e;n!==void 0&&(this.color=n),this.alpha=r}get color(){return this._backgroundColor.value}set color(t){this._backgroundColor.setValue(t)}get alpha(){return this._backgroundColor.alpha}set alpha(t){this._backgroundColor.setAlpha(t)}get backgroundColor(){return this._backgroundColor}destroy(){}}jh.defaultOptions={backgroundAlpha:1,backgroundColor:0,clearBeforeRender:!0},jh.extension={type:[gt.RendererSystem,gt.CanvasRendererSystem],name:"background"};St.add(jh);class R_{constructor(t){this.renderer=t,this.emptyRenderer=new zc(t),this.currentRenderer=this.emptyRenderer}setObjectRenderer(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())}flush(){this.setObjectRenderer(this.emptyRenderer)}reset(){this.setObjectRenderer(this.emptyRenderer)}copyBoundTextures(t,e){const{boundTextures:s}=this.renderer.texture;for(let r=e-1;r>=0;--r)t[r]=s[r]||null,t[r]&&(t[r]._batchLocation=r)}boundArray(t,e,s,r){const{elements:n,ids:a,count:o}=t;let h=0;for(let l=0;l<o;l++){const c=n[l],u=c._batchLocation;if(u>=0&&u<r&&e[u]===c){a[l]=u;continue}for(;h<r;){const d=e[h];if(d&&d._batchEnabled===s&&d._batchLocation===h){h++;continue}a[l]=h,c._batchLocation=h,e[h]=c;break}}}destroy(){this.renderer=null}}R_.extension={type:gt.RendererSystem,name:"batch"};St.add(R_);let bx=0;class qh{constructor(t){this.renderer=t,this.webGLVersion=1,this.extensions={},this.supports={uint32Indices:!1},this.handleContextLost=this.handleContextLost.bind(this),this.handleContextRestored=this.handleContextRestored.bind(this)}get isLost(){return!this.gl||this.gl.isContextLost()}contextChange(t){this.gl=t,this.renderer.gl=t,this.renderer.CONTEXT_UID=bx++}init(t){if(t.context)this.initFromContext(t.context);else{const e=this.renderer.background.alpha<1,s=t.premultipliedAlpha;this.preserveDrawingBuffer=t.preserveDrawingBuffer,this.useContextAlpha=t.useContextAlpha,this.powerPreference=t.powerPreference,this.initFromOptions({alpha:e,premultipliedAlpha:s,antialias:t.antialias,stencil:!0,preserveDrawingBuffer:t.preserveDrawingBuffer,powerPreference:t.powerPreference})}}initFromContext(t){this.gl=t,this.validateContext(t),this.renderer.gl=t,this.renderer.CONTEXT_UID=bx++,this.renderer.runners.contextChange.emit(t);const e=this.renderer.view;e.addEventListener!==void 0&&(e.addEventListener("webglcontextlost",this.handleContextLost,!1),e.addEventListener("webglcontextrestored",this.handleContextRestored,!1))}initFromOptions(t){const e=this.createContext(this.renderer.view,t);this.initFromContext(e)}createContext(t,e){let s;if(_t.PREFER_ENV>=Kn.WEBGL2&&(s=t.getContext("webgl2",e)),s)this.webGLVersion=2;else if(this.webGLVersion=1,s=t.getContext("webgl",e)||t.getContext("experimental-webgl",e),!s)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=s,this.getExtensions(),this.gl}getExtensions(){const{gl:t}=this,e={loseContext:t.getExtension("WEBGL_lose_context"),anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc"),bptc:t.getExtension("EXT_texture_compression_bptc")};this.webGLVersion===1?Object.assign(this.extensions,e,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_ha Line truncated
`;const Im=class To extends Js{constructor(t,e,s){const r=ur.from(t||To.defaultVertexSrc,e||To.defaultFragmentSrc);super(r,s),this.padding=0,this.resolution=To.defaultResolution,this.multisample=To.defaultMultisample,this.enabled=!0,this.autoFit=!0,this.state=new jr}apply(t,e,s,r,n){t.applyFilter(this,e,s,r)}get blendMode(){return this.state.blendMode}set blendMode(t){this.state.blendMode=t}get resolution(){return this._resolution}set resolution(t){this._resolution=t}static get defaultVertexSrc(){return RP}static get defaultFragmentSrc(){return MP}};Im.defaultResolution=1,Im.defaultMultisample=De.NONE;let _s=Im;class Kh{constructor(){this.clearBeforeRender=!0,this._backgroundColor=new Wt(0),this.alpha=1}init(t){this.clearBeforeRender=t.clearBeforeRender;const{backgroundColor:e,background:s,backgroundAlpha:r}=t,n=s??e;n!==void 0&&(this.color=n),this.alpha=r}get color(){return this._backgroundColor.value}set color(t){this._backgroundColor.setValue(t)}get alpha(){return this._backgroundColor.alpha}set alpha(t){this._backgroundColor.setAlpha(t)}get backgroundColor(){return this._backgroundColor}destroy(){}}Kh.defaultOptions={backgroundAlpha:1,backgroundColor:0,clearBeforeRender:!0},Kh.extension={type:[gt.RendererSystem,gt.CanvasRendererSystem],name:"background"};St.add(Kh);class F_{constructor(t){this.renderer=t,this.emptyRenderer=new Kc(t),this.currentRenderer=this.emptyRenderer}setObjectRenderer(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())}flush(){this.setObjectRenderer(this.emptyRenderer)}reset(){this.setObjectRenderer(this.emptyRenderer)}copyBoundTextures(t,e){const{boundTextures:s}=this.renderer.texture;for(let r=e-1;r>=0;--r)t[r]=s[r]||null,t[r]&&(t[r]._batchLocation=r)}boundArray(t,e,s,r){const{elements:n,ids:a,count:o}=t;let h=0;for(let l=0;l<o;l++){const c=n[l],u=c._batchLocation;if(u>=0&&u<r&&e[u]===c){a[l]=u;continue}for(;h<r;){const d=e[h];if(d&&d._batchEnabled===s&&d._batchLocation===h){h++;continue}a[l]=h,c._batchLocation=h,e[h]=c;break}}}destroy(){this.renderer=null}}F_.extension={type:gt.RendererSystem,name:"batch"};St.add(F_);let vx=0;class Zh{constructor(t){this.renderer=t,this.webGLVersion=1,this.extensions={},this.supports={uint32Indices:!1},this.handleContextLost=this.handleContextLost.bind(this),this.handleContextRestored=this.handleContextRestored.bind(this)}get isLost(){return!this.gl||this.gl.isContextLost()}contextChange(t){this.gl=t,this.renderer.gl=t,this.renderer.CONTEXT_UID=vx++}init(t){if(t.context)this.initFromContext(t.context);else{const e=this.renderer.background.alpha<1,s=t.premultipliedAlpha;this.preserveDrawingBuffer=t.preserveDrawingBuffer,this.useContextAlpha=t.useContextAlpha,this.powerPreference=t.powerPreference,this.initFromOptions({alpha:e,premultipliedAlpha:s,antialias:t.antialias,stencil:!0,preserveDrawingBuffer:t.preserveDrawingBuffer,powerPreference:t.powerPreference})}}initFromContext(t){this.gl=t,this.validateContext(t),this.renderer.gl=t,this.renderer.CONTEXT_UID=vx++,this.renderer.runners.contextChange.emit(t);const e=this.renderer.view;e.addEventListener!==void 0&&(e.addEventListener("webglcontextlost",this.handleContextLost,!1),e.addEventListener("webglcontextrestored",this.handleContextRestored,!1))}initFromOptions(t){const e=this.createContext(this.renderer.view,t);this.initFromContext(e)}createContext(t,e){let s;if(_t.PREFER_ENV>=Kn.WEBGL2&&(s=t.getContext("webgl2",e)),s)this.webGLVersion=2;else if(this.webGLVersion=1,s=t.getContext("webgl",e)||t.getContext("experimental-webgl",e),!s)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=s,this.getExtensions(),this.gl}getExtensions(){const{gl:t}=this,e={loseContext:t.getExtension("WEBGL_lose_context"),anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc"),bptc:t.getExtension("EXT_texture_compression_bptc")};this.webGLVersion===1?Object.assign(this.extensions,e,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_ha Line truncated
varying vec2 vTextureCoord;
uniform sampler2D uSampler;
@@ -439,7 +439,7 @@ void main(void)
gl_FragColor = original;
}
`,BP=`attribute vec2 aVertexPosition;
`,DP=`attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
@@ -455,7 +455,7 @@ void main(void)
vTextureCoord = aTextureCoord;
vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;
}
`;class OP extends _s{constructor(t,e,s){let r=null;typeof t!="string"&&e===void 0&&s===void 0&&(r=t,t=void 0,e=void 0,s=void 0),super(t||BP,e||LP,s),this.maskSprite=r,this.maskMatrix=new fe}get maskSprite(){return this._maskSprite}set maskSprite(t){this._maskSprite=t,this._maskSprite&&(this._maskSprite.renderable=!1)}apply(t,e,s,r){const n=this._maskSprite,a=n._texture;a.valid&&(a.uvMatrix||(a.uvMatrix=new jc(a,0)),a.uvMatrix.update(),this.uniforms.npmAlpha=a.baseTexture.alphaMode?0:1,this.uniforms.mask=a,this.uniforms.otherMatrix=t.calculateSpriteMatrix(this.maskMatrix,n).prepend(a.uvMatrix.mapCoord),this.uniforms.alpha=n.worldAlpha,this.uniforms.maskClamp=a.uvMatrix.uClampFrame,t.applyFilter(this,e,s,r))}}class DP{constructor(t=null){this.type=Ye.NONE,this.autoDetect=!0,this.maskObject=t||null,this.pooled=!1,this.isMaskData=!0,this.resolution=null,this.multisample=_s.defaultMultisample,this.enabled=!0,this.colorMask=15,this._filters=null,this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null,this._scissorRectLocal=null,this._colorMask=15,this._target=null}get filter(){return this._filters?this._filters[0]:null}set filter(t){t?this._filters?this._filters[0]=t:this._filters=[t]:this._filters=null}reset(){this.pooled&&(this.maskObject=null,this.type=Ye.NONE,this.autoDetect=!0),this._target=null,this._scissorRectLocal=null}copyCountersOrReset(t){t?(this._stencilCounter=t._stencilCounter,this._scissorCounter=t._scissorCounter,this._scissorRect=t._scissorRect):(this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null)}}class U_{constructor(t){this.renderer=t,this.enableScissor=!0,this.alphaMaskPool=[],this.maskDataPool=[],this.maskStack=[],this.alphaMaskIndex=0}setMaskStack(t){this.maskStack=t,this.renderer.scissor.setMaskStack(t),this.renderer.stencil.setMaskStack(t)}push(t,e){let s=e;if(!s.isMaskData){const n=this.maskDataPool.pop()||new DP;n.pooled=!0,n.maskObject=e,s=n}const r=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null;if(s.copyCountersOrReset(r),s._colorMask=r?r._colorMask:15,s.autoDetect&&this.detect(s),s._target=t,s.type!==Ye.SPRITE&&this.maskStack.push(s),s.enabled)switch(s.type){case Ye.SCISSOR:this.renderer.scissor.push(s);break;case Ye.STENCIL:this.renderer.stencil.push(s);break;case Ye.SPRITE:s.copyCountersOrReset(null),this.pushSpriteMask(s);break;case Ye.COLOR:this.pushColorMask(s);break}s.type===Ye.SPRITE&&this.maskStack.push(s)}pop(t){const e=this.maskStack.pop();if(!(!e||e._target!==t)){if(e.enabled)switch(e.type){case Ye.SCISSOR:this.renderer.scissor.pop(e);break;case Ye.STENCIL:this.renderer.stencil.pop(e.maskObject);break;case Ye.SPRITE:this.popSpriteMask(e);break;case Ye.COLOR:this.popColorMask(e);break}if(e.reset(),e.pooled&&this.maskDataPool.push(e),this.maskStack.length!==0){const s=this.maskStack[this.maskStack.length-1];s.type===Ye.SPRITE&&s._filters&&(s._filters[0].maskSprite=s.maskObject)}}}detect(t){const e=t.maskObject;e?e.isSprite?t.type=Ye.SPRITE:this.enableScissor&&this.renderer.scissor.testScissor(t)?t.type=Ye.SCISSOR:t.type=Ye.STENCIL:t.type=Ye.COLOR}pushSpriteMask(t){const{maskObject:e}=t,s=t._target;let r=t._filters;r||(r=this.alphaMaskPool[this.alphaMaskIndex],r||(r=this.alphaMaskPool[this.alphaMaskIndex]=[new OP])),r[0].resolution=t.resolution,r[0].multisample=t.multisample,r[0].maskSprite=e;const n=s.filterArea;s.filterArea=e.getBounds(!0),this.renderer.filter.push(s,r),s.filterArea=n,t._filters||this.alphaMaskIndex++}popSpriteMask(t){this.renderer.filter.pop(),t._filters?t._filters[0].maskSprite=null:(this.alphaMaskIndex--,this.alphaMaskPool[this.alphaMaskIndex][0].maskSprite=null)}pushColorMask(t){const e=t._colorMask,s=t._colorMask=e&t.colorMask;s!==e&&this.renderer.gl.colorMask((s&1)!==0,(s&2)!==0,(s&4)!==0,(s&8)!==0)}popColorMask(t){const e=t._colorMask,s=this.maskStack.length>0?this.maskStack[this.maskStack.length-1]._colorMask:15;s!==e&&this.renderer.gl.colorMask((s&1)!==0,(s&2)!==0,(s&4)!==0,(s&8)!==0)}destroy(){this.renderer=null}}U_.extension={type:gt.RendererSystem,name:"mask"};St.add(U_);class X_{constructor(t){this.renderer=t,this.maskStack=[],this.glConst=0}getStackLength(){return this.maskStack.length}setMaskStack(t){const{gl:e}=this.renderer,s=this.getStackLength();this.maskStack=t;const r=this.getStackLength();r!==s&&(r===0?e.disable(this.glConst):(e.enable(this.glConst),this._useCurrent()))}_useCurrent(){}destroy(){this.renderer=null,this.maskStack=null}}const wx=new fe,Tx=[],V_=class wh extends X_{constructor(t){super(t),this.glConst=_t.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST}getStackLength(){const t=this.maskStack[this.maskStack.length-1];return t?t._scissorCounter:0}calcScissorRect(t){if(t._scissorRectLocal)return;const e=t._scissorRect,{maskObject:s}=t,{renderer:r}=this,n=r.renderTexture,a=s.getBounds(!0,Tx.pop()??new Ut);this.roundFrameToPixels(a,n.current?n.current.resolution:r.resolution,n.sourceFrame,n.destinationFrame,r.projection.transform),e&&a.fit(e),t._scissorRectLocal=a}static Line truncated
`;class NP extends _s{constructor(t,e,s){let r=null;typeof t!="string"&&e===void 0&&s===void 0&&(r=t,t=void 0,e=void 0,s=void 0),super(t||DP,e||OP,s),this.maskSprite=r,this.maskMatrix=new fe}get maskSprite(){return this._maskSprite}set maskSprite(t){this._maskSprite=t,this._maskSprite&&(this._maskSprite.renderable=!1)}apply(t,e,s,r){const n=this._maskSprite,a=n._texture;a.valid&&(a.uvMatrix||(a.uvMatrix=new Il(a,0)),a.uvMatrix.update(),this.uniforms.npmAlpha=a.baseTexture.alphaMode?0:1,this.uniforms.mask=a,this.uniforms.otherMatrix=t.calculateSpriteMatrix(this.maskMatrix,n).prepend(a.uvMatrix.mapCoord),this.uniforms.alpha=n.worldAlpha,this.uniforms.maskClamp=a.uvMatrix.uClampFrame,t.applyFilter(this,e,s,r))}}class UP{constructor(t=null){this.type=Ye.NONE,this.autoDetect=!0,this.maskObject=t||null,this.pooled=!1,this.isMaskData=!0,this.resolution=null,this.multisample=_s.defaultMultisample,this.enabled=!0,this.colorMask=15,this._filters=null,this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null,this._scissorRectLocal=null,this._colorMask=15,this._target=null}get filter(){return this._filters?this._filters[0]:null}set filter(t){t?this._filters?this._filters[0]=t:this._filters=[t]:this._filters=null}reset(){this.pooled&&(this.maskObject=null,this.type=Ye.NONE,this.autoDetect=!0),this._target=null,this._scissorRectLocal=null}copyCountersOrReset(t){t?(this._stencilCounter=t._stencilCounter,this._scissorCounter=t._scissorCounter,this._scissorRect=t._scissorRect):(this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null)}}class X_{constructor(t){this.renderer=t,this.enableScissor=!0,this.alphaMaskPool=[],this.maskDataPool=[],this.maskStack=[],this.alphaMaskIndex=0}setMaskStack(t){this.maskStack=t,this.renderer.scissor.setMaskStack(t),this.renderer.stencil.setMaskStack(t)}push(t,e){let s=e;if(!s.isMaskData){const n=this.maskDataPool.pop()||new UP;n.pooled=!0,n.maskObject=e,s=n}const r=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null;if(s.copyCountersOrReset(r),s._colorMask=r?r._colorMask:15,s.autoDetect&&this.detect(s),s._target=t,s.type!==Ye.SPRITE&&this.maskStack.push(s),s.enabled)switch(s.type){case Ye.SCISSOR:this.renderer.scissor.push(s);break;case Ye.STENCIL:this.renderer.stencil.push(s);break;case Ye.SPRITE:s.copyCountersOrReset(null),this.pushSpriteMask(s);break;case Ye.COLOR:this.pushColorMask(s);break}s.type===Ye.SPRITE&&this.maskStack.push(s)}pop(t){const e=this.maskStack.pop();if(!(!e||e._target!==t)){if(e.enabled)switch(e.type){case Ye.SCISSOR:this.renderer.scissor.pop(e);break;case Ye.STENCIL:this.renderer.stencil.pop(e.maskObject);break;case Ye.SPRITE:this.popSpriteMask(e);break;case Ye.COLOR:this.popColorMask(e);break}if(e.reset(),e.pooled&&this.maskDataPool.push(e),this.maskStack.length!==0){const s=this.maskStack[this.maskStack.length-1];s.type===Ye.SPRITE&&s._filters&&(s._filters[0].maskSprite=s.maskObject)}}}detect(t){const e=t.maskObject;e?e.isSprite?t.type=Ye.SPRITE:this.enableScissor&&this.renderer.scissor.testScissor(t)?t.type=Ye.SCISSOR:t.type=Ye.STENCIL:t.type=Ye.COLOR}pushSpriteMask(t){const{maskObject:e}=t,s=t._target;let r=t._filters;r||(r=this.alphaMaskPool[this.alphaMaskIndex],r||(r=this.alphaMaskPool[this.alphaMaskIndex]=[new NP])),r[0].resolution=t.resolution,r[0].multisample=t.multisample,r[0].maskSprite=e;const n=s.filterArea;s.filterArea=e.getBounds(!0),this.renderer.filter.push(s,r),s.filterArea=n,t._filters||this.alphaMaskIndex++}popSpriteMask(t){this.renderer.filter.pop(),t._filters?t._filters[0].maskSprite=null:(this.alphaMaskIndex--,this.alphaMaskPool[this.alphaMaskIndex][0].maskSprite=null)}pushColorMask(t){const e=t._colorMask,s=t._colorMask=e&t.colorMask;s!==e&&this.renderer.gl.colorMask((s&1)!==0,(s&2)!==0,(s&4)!==0,(s&8)!==0)}popColorMask(t){const e=t._colorMask,s=this.maskStack.length>0?this.maskStack[this.maskStack.length-1]._colorMask:15;s!==e&&this.renderer.gl.colorMask((s&1)!==0,(s&2)!==0,(s&4)!==0,(s&8)!==0)}destroy(){this.renderer=null}}X_.extension={type:gt.RendererSystem,name:"mask"};St.add(X_);class V_{constructor(t){this.renderer=t,this.maskStack=[],this.glConst=0}getStackLength(){return this.maskStack.length}setMaskStack(t){const{gl:e}=this.renderer,s=this.getStackLength();this.maskStack=t;const r=this.getStackLength();r!==s&&(r===0?e.disable(this.glConst):(e.enable(this.glConst),this._useCurrent()))}_useCurrent(){}destroy(){this.renderer=null,this.maskStack=null}}const Tx=new fe,Sx=[],Y_=class Sh extends V_{constructor(t){super(t),this.glConst=_t.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST}getStackLength(){const t=this.maskStack[this.maskStack.length-1];return t?t._scissorCounter:0}calcScissorRect(t){if(t._scissorRectLocal)return;const e=t._scissorRect,{maskObject:s}=t,{renderer:r}=this,n=r.renderTexture,a=s.getBounds(!0,Sx.pop()??new Nt);this.roundFrameToPixels(a,n.current?n.current.resolution:r.resolution,n.sourceFrame,n.destinationFrame,r.projection.transform),e&&a.fit(e),t._scissorRectLocal=a}static Line truncated
data[offset] = v;
`,vec2:`
data[offset] = v[0];
@@ -493,7 +493,7 @@ void main(void)
{
data[offset + i] = v[i];
}
`},z_={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:32,mat3:48,mat4:64};function WP(i){const t=i.map(n=>({data:n,offset:0,dataLen:0,dirty:0}));let e=0,s=0,r=0;for(let n=0;n<t.length;n++){const a=t[n];if(e=z_[a.data.type],a.data.size>1&&(e=Math.max(e,16)*a.data.size),a.dataLen=e,s%e!==0&&s<16){const o=s%e%16;s+=o,r+=o}s+e>16?(r=Math.ceil(r/16)*16,a.offset=r,r+=e,s=e):(a.offset=r,s+=e,r+=e)}return r=Math.ceil(r/16)*16,{uboElements:t,size:r}}function zP(i,t){const e=[];for(const s in i)t[s]&&e.push(t[s]);return e.sort((s,r)=>s.index-r.index),e}function jP(i,t){if(!i.autoManage)return{size:0,syncFunc:$P};const e=zP(i.uniforms,t),{uboElements:s,size:r}=WP(e),n=[`
`},j_={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:32,mat3:48,mat4:64};function jP(i){const t=i.map(n=>({data:n,offset:0,dataLen:0,dirty:0}));let e=0,s=0,r=0;for(let n=0;n<t.length;n++){const a=t[n];if(e=j_[a.data.type],a.data.size>1&&(e=Math.max(e,16)*a.data.size),a.dataLen=e,s%e!==0&&s<16){const o=s%e%16;s+=o,r+=o}s+e>16?(r=Math.ceil(r/16)*16,a.offset=r,r+=e,s=e):(a.offset=r,s+=e,r+=e)}return r=Math.ceil(r/16)*16,{uboElements:t,size:r}}function qP(i,t){const e=[];for(const s in i)t[s]&&e.push(t[s]);return e.sort((s,r)=>s.index-r.index),e}function KP(i,t){if(!i.autoManage)return{size:0,syncFunc:WP};const e=qP(i.uniforms,t),{uboElements:s,size:r}=jP(e),n=[`
var v = null;
var v2 = null;
var cv = null;
@@ -501,7 +501,7 @@ void main(void)
var gl = renderer.gl
var index = 0;
var data = buffer.data;
`];for(let a=0;a<s.length;a++){const o=s[a],h=i.uniforms[o.data.name],l=o.data.name;let c=!1;for(let u=0;u<Ra.length;u++){const d=Ra[u];if(d.codeUbo&&d.test(o.data,h)){n.push(`offset = ${o.offset/4};`,Ra[u].codeUbo(o.data.name,h)),c=!0;break}}if(!c)if(o.data.size>1){const u=P_(o.data.type),d=Math.max(z_[o.data.type]/16,1),f=u/d,m=(4-f%4)%4;n.push(`
`];for(let a=0;a<s.length;a++){const o=s[a],h=i.uniforms[o.data.name],l=o.data.name;let c=!1;for(let u=0;u<Fa.length;u++){const d=Fa[u];if(d.codeUbo&&d.test(o.data,h)){n.push(`offset = ${o.offset/4};`,Fa[u].codeUbo(o.data.name,h)),c=!0;break}}if(!c)if(o.data.size>1){const u=M_(o.data.type),d=Math.max(j_[o.data.type]/16,1),f=u/d,m=(4-f%4)%4;n.push(`
cv = ud.${l}.value;
v = uv.${l};
offset = ${o.offset/4};
@@ -517,7 +517,7 @@ void main(void)
offset += ${m};
}
`)}else{const u=HP[o.data.type];n.push(`
`)}else{const u=zP[o.data.type];n.push(`
cv = ud.${l}.value;
v = uv.${l};
offset = ${o.offset/4};
@@ -525,7 +525,7 @@ void main(void)
`)}}return n.push(`
renderer.buffer.update(buffer);
`),{size:r,syncFunc:new Function("ud","uv","renderer","syncData","buffer",n.join(`
`))}}let qP=0;const rh={textureCount:0,uboCount:0};class j_{constructor(t){this.destroyed=!1,this.renderer=t,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=qP++}systemCheck(){if(!_P())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")}contextChange(t){this.gl=t,this.reset()}bind(t,e){t.disposeRunner.add(this),t.uniforms.globals=this.renderer.globalUniforms;const s=t.program,r=s.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(t);return this.shader=t,this.program!==s&&(this.program=s,this.gl.useProgram(r.program)),e||(rh.textureCount=0,rh.uboCount=0,this.syncUniformGroup(t.uniformGroup,rh)),r}setUniforms(t){const e=this.shader.program,s=e.glPrograms[this.renderer.CONTEXT_UID];e.syncUniforms(s.uniformData,t,this.renderer)}syncUniformGroup(t,e){const s=this.getGlProgram();(!t.static||t.dirtyId!==s.uniformDirtyGroups[t.id])&&(s.uniformDirtyGroups[t.id]=t.dirtyId,this.syncUniforms(t,s,e))}syncUniforms(t,e,s){(t.syncUniforms[this.shader.program.id]||this.createSyncGroups(t))(e.uniformData,t.uniforms,this.renderer,s)}createSyncGroups(t){const e=this.getSignature(t,this.shader.program.uniformData,"u");return this.cache[e]||(this.cache[e]=gP(t,this.shader.program.uniformData)),t.syncUniforms[this.shader.program.id]=this.cache[e],t.syncUniforms[this.shader.program.id]}syncUniformBufferGroup(t,e){const s=this.getGlProgram();if(!t.static||t.dirtyId!==0||!s.uniformGroups[t.id]){t.dirtyId=0;const r=s.uniformGroups[t.id]||this.createSyncBufferGroup(t,s,e);t.buffer.update(),r(s.uniformData,t.uniforms,this.renderer,rh,t.buffer)}this.renderer.buffer.bindBufferBase(t.buffer,s.uniformBufferBindings[e])}createSyncBufferGroup(t,e,s){const{gl:r}=this.renderer;this.renderer.buffer.bind(t.buffer);const n=this.gl.getUniformBlockIndex(e.program,s);e.uniformBufferBindings[s]=this.shader.uniformBindCount,r.uniformBlockBinding(e.program,n,this.shader.uniformBindCount),this.shader.uniformBindCount++;const a=this.getSignature(t,this.shader.program.uniformData,"ubo");let o=this._uboCache[a];if(o||(o=this._uboCache[a]=jP(t,this.shader.program.uniformData)),t.autoManage){const h=new Float32Array(o.size/4);t.buffer.update(h)}return e.uniformGroups[t.id]=o.syncFunc,e.uniformGroups[t.id]}getSignature(t,e,s){const r=t.uniforms,n=[`${s}-`];for(const a in r)n.push(a),e[a]&&n.push(e[a].type);return n.join("-")}getGlProgram(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null}generateProgram(t){const e=this.gl,s=t.program,r=GP(e,s);return s.glPrograms[this.renderer.CONTEXT_UID]=r,r}reset(){this.program=null,this.shader=null}disposeShader(t){this.shader===t&&(this.shader=null)}destroy(){this.renderer=null,this.destroyed=!0}}j_.extension={type:gt.RendererSystem,name:"shader"};St.add(j_);class Kh{constructor(t){this.renderer=t}run(t){const{renderer:e}=this;e.runners.init.emit(e.options),t.hello&&console.log(`PixiJS 7.4.3 - ${e.rendererLogId} - https://pixijs.com`),e.resize(e.screen.width,e.screen.height)}destroy(){}}Kh.defaultOptions={hello:!1},Kh.extension={type:[gt.RendererSystem,gt.CanvasRendererSystem],name:"startup"};St.add(Kh);function KP(i,t=[]){return t[It.NORMAL]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.ADD]=[i.ONE,i.ONE],t[It.MULTIPLY]=[i.DST_COLOR,i.ONE_MINUS_SRC_ALPHA,i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.SCREEN]=[i.ONE,i.ONE_MINUS_SRC_COLOR,i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.OVERLAY]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.DARKEN]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.LIGHTEN]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.COLOR_DODGE]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.COLOR_BURN]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.HARD_LIGHT]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.SOFT_LIGHT]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.DIFFERENCE]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.EXCLUSION]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.HUE]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.SATURATION]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.COLOR]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.LUMINOSITY]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.NONE]=[0,0],t[It.NORMAL_NPM]=[i.SRC_ALPHA,i.ONE_MINUS_SRC_ALPHA,i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.ADD_NPM]=[i.SRC_ALPHA,i.ONE,i.ONE,i.ONE],t[It.SCREEN_NPM]=[i.SRC_ALPHA,i.ONE_MINUS_SRC_COLOR,i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.SRC_IN]=[i.DST_ALPHA,i.ZERO],t[It.SRC_OUT]=[i.ONE_MINUS_DST_ALPHA,i.ZERO],t[It.SRC_ATOP]=[i.DST_ALPHA,i.ONE_MINUS_SRC_ALPHA],t[It.DST_OVER]=[i.ONE_MINUS_DST_ALPHA,i.ONE],t[It.DST_IN]=[i.ZERO,i.SRC_ALPHA],t[It.DST_OUT]=[i.ZERO,i.ONE_MINUS_SRC_ALPHA],t[It.DST_ATOP]=[i.ONE_MINUS_DST_ALPHA,i.SRC_ALPHA],t[It.XOR]=[i.ONE_MINUS_DST_ALPHA,i.ONE_MINUS_SRC_ALPHA],t[It.SUBTRACT]=[i.ONE,i.ONE,i.ONE,i.ONE,i.FUNC_REVERSE_SUBTRACT,i.FUNC_ADD],t}const ZP=0,JP=1,QP=2,tM=3,eM=4,sM=5,q_=class Im{constructor(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=It.NONE,this._blendEq=!1,this.map=[],this.map[ZP]=this.setBlend,this.map[JP]=this.setOffset,this.map[QP]=this.setCullFace,this.map[tM]=this.setDepthTest,this.ma Line truncated
`))}}let ZP=0;const nh={textureCount:0,uboCount:0};class q_{constructor(t){this.destroyed=!1,this.renderer=t,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=ZP++}systemCheck(){if(!TP())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")}contextChange(t){this.gl=t,this.reset()}bind(t,e){t.disposeRunner.add(this),t.uniforms.globals=this.renderer.globalUniforms;const s=t.program,r=s.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(t);return this.shader=t,this.program!==s&&(this.program=s,this.gl.useProgram(r.program)),e||(nh.textureCount=0,nh.uboCount=0,this.syncUniformGroup(t.uniformGroup,nh)),r}setUniforms(t){const e=this.shader.program,s=e.glPrograms[this.renderer.CONTEXT_UID];e.syncUniforms(s.uniformData,t,this.renderer)}syncUniformGroup(t,e){const s=this.getGlProgram();(!t.static||t.dirtyId!==s.uniformDirtyGroups[t.id])&&(s.uniformDirtyGroups[t.id]=t.dirtyId,this.syncUniforms(t,s,e))}syncUniforms(t,e,s){(t.syncUniforms[this.shader.program.id]||this.createSyncGroups(t))(e.uniformData,t.uniforms,this.renderer,s)}createSyncGroups(t){const e=this.getSignature(t,this.shader.program.uniformData,"u");return this.cache[e]||(this.cache[e]=xP(t,this.shader.program.uniformData)),t.syncUniforms[this.shader.program.id]=this.cache[e],t.syncUniforms[this.shader.program.id]}syncUniformBufferGroup(t,e){const s=this.getGlProgram();if(!t.static||t.dirtyId!==0||!s.uniformGroups[t.id]){t.dirtyId=0;const r=s.uniformGroups[t.id]||this.createSyncBufferGroup(t,s,e);t.buffer.update(),r(s.uniformData,t.uniforms,this.renderer,nh,t.buffer)}this.renderer.buffer.bindBufferBase(t.buffer,s.uniformBufferBindings[e])}createSyncBufferGroup(t,e,s){const{gl:r}=this.renderer;this.renderer.buffer.bind(t.buffer);const n=this.gl.getUniformBlockIndex(e.program,s);e.uniformBufferBindings[s]=this.shader.uniformBindCount,r.uniformBlockBinding(e.program,n,this.shader.uniformBindCount),this.shader.uniformBindCount++;const a=this.getSignature(t,this.shader.program.uniformData,"ubo");let o=this._uboCache[a];if(o||(o=this._uboCache[a]=KP(t,this.shader.program.uniformData)),t.autoManage){const h=new Float32Array(o.size/4);t.buffer.update(h)}return e.uniformGroups[t.id]=o.syncFunc,e.uniformGroups[t.id]}getSignature(t,e,s){const r=t.uniforms,n=[`${s}-`];for(const a in r)n.push(a),e[a]&&n.push(e[a].type);return n.join("-")}getGlProgram(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null}generateProgram(t){const e=this.gl,s=t.program,r=HP(e,s);return s.glPrograms[this.renderer.CONTEXT_UID]=r,r}reset(){this.program=null,this.shader=null}disposeShader(t){this.shader===t&&(this.shader=null)}destroy(){this.renderer=null,this.destroyed=!0}}q_.extension={type:gt.RendererSystem,name:"shader"};St.add(q_);class Jh{constructor(t){this.renderer=t}run(t){const{renderer:e}=this;e.runners.init.emit(e.options),t.hello&&console.log(`PixiJS 7.4.3 - ${e.rendererLogId} - https://pixijs.com`),e.resize(e.screen.width,e.screen.height)}destroy(){}}Jh.defaultOptions={hello:!1},Jh.extension={type:[gt.RendererSystem,gt.CanvasRendererSystem],name:"startup"};St.add(Jh);function JP(i,t=[]){return t[It.NORMAL]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.ADD]=[i.ONE,i.ONE],t[It.MULTIPLY]=[i.DST_COLOR,i.ONE_MINUS_SRC_ALPHA,i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.SCREEN]=[i.ONE,i.ONE_MINUS_SRC_COLOR,i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.OVERLAY]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.DARKEN]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.LIGHTEN]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.COLOR_DODGE]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.COLOR_BURN]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.HARD_LIGHT]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.SOFT_LIGHT]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.DIFFERENCE]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.EXCLUSION]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.HUE]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.SATURATION]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.COLOR]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.LUMINOSITY]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.NONE]=[0,0],t[It.NORMAL_NPM]=[i.SRC_ALPHA,i.ONE_MINUS_SRC_ALPHA,i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.ADD_NPM]=[i.SRC_ALPHA,i.ONE,i.ONE,i.ONE],t[It.SCREEN_NPM]=[i.SRC_ALPHA,i.ONE_MINUS_SRC_COLOR,i.ONE,i.ONE_MINUS_SRC_ALPHA],t[It.SRC_IN]=[i.DST_ALPHA,i.ZERO],t[It.SRC_OUT]=[i.ONE_MINUS_DST_ALPHA,i.ZERO],t[It.SRC_ATOP]=[i.DST_ALPHA,i.ONE_MINUS_SRC_ALPHA],t[It.DST_OVER]=[i.ONE_MINUS_DST_ALPHA,i.ONE],t[It.DST_IN]=[i.ZERO,i.SRC_ALPHA],t[It.DST_OUT]=[i.ZERO,i.ONE_MINUS_SRC_ALPHA],t[It.DST_ATOP]=[i.ONE_MINUS_DST_ALPHA,i.SRC_ALPHA],t[It.XOR]=[i.ONE_MINUS_DST_ALPHA,i.ONE_MINUS_SRC_ALPHA],t[It.SUBTRACT]=[i.ONE,i.ONE,i.ONE,i.ONE,i.FUNC_REVERSE_SUBTRACT,i.FUNC_ADD],t}const QP=0,tM=1,eM=2,sM=3,rM=4,iM=5,K_=class Mm{constructor(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=It.NONE,this._blendEq=!1,this.map=[],this.map[QP]=this.setBlend,this.map[tM]=this.setOffset,this.map[eM]=this.setCullFace,this.map[sM]=this.setDepthTest,this.ma Line truncated
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
@@ -536,7 +536,7 @@ void main(void)
{
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = aTextureCoord;
}`,hM=`attribute vec2 aVertexPosition;
}`,uM=`attribute vec2 aVertexPosition;
uniform mat3 projectionMatrix;
@@ -562,7 +562,7 @@ void main(void)
gl_Position = filterVertexPosition();
vTextureCoord = filterTextureCoord();
}
`;const cM=lM,e1=hM;class s1{constructor(t){this.renderer=t}contextChange(t){let e;if(this.renderer.context.webGLVersion===1){const s=t.getParameter(t.FRAMEBUFFER_BINDING);t.bindFramebuffer(t.FRAMEBUFFER,null),e=t.getParameter(t.SAMPLES),t.bindFramebuffer(t.FRAMEBUFFER,s)}else{const s=t.getParameter(t.DRAW_FRAMEBUFFER_BINDING);t.bindFramebuffer(t.DRAW_FRAMEBUFFER,null),e=t.getParameter(t.SAMPLES),t.bindFramebuffer(t.DRAW_FRAMEBUFFER,s)}e>=De.HIGH?this.multisample=De.HIGH:e>=De.MEDIUM?this.multisample=De.MEDIUM:e>=De.LOW?this.multisample=De.LOW:this.multisample=De.NONE}destroy(){}}s1.extension={type:gt.RendererSystem,name:"_multisample"};St.add(s1);class uM{constructor(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}}class r1{constructor(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}destroy(){this.renderer=null}contextChange(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(t){const{gl:e,CONTEXT_UID:s}=this,r=t._glBuffers[s]||this.createGLBuffer(t);e.bindBuffer(t.type,r.buffer)}unbind(t){const{gl:e}=this;e.bindBuffer(t,null)}bindBufferBase(t,e){const{gl:s,CONTEXT_UID:r}=this;if(this.boundBufferBases[e]!==t){const n=t._glBuffers[r]||this.createGLBuffer(t);this.boundBufferBases[e]=t,s.bindBufferBase(s.UNIFORM_BUFFER,e,n.buffer)}}bindBufferRange(t,e,s){const{gl:r,CONTEXT_UID:n}=this;s=s||0;const a=t._glBuffers[n]||this.createGLBuffer(t);r.bindBufferRange(r.UNIFORM_BUFFER,e||0,a.buffer,s*256,256)}update(t){const{gl:e,CONTEXT_UID:s}=this,r=t._glBuffers[s]||this.createGLBuffer(t);if(t._updateID!==r.updateID)if(r.updateID=t._updateID,e.bindBuffer(t.type,r.buffer),r.byteLength>=t.data.byteLength)e.bufferSubData(t.type,0,t.data);else{const n=t.static?e.STATIC_DRAW:e.DYNAMIC_DRAW;r.byteLength=t.data.byteLength,e.bufferData(t.type,t.data,n)}}dispose(t,e){if(!this.managedBuffers[t.id])return;delete this.managedBuffers[t.id];const s=t._glBuffers[this.CONTEXT_UID],r=this.gl;t.disposeRunner.remove(this),s&&(e||r.deleteBuffer(s.buffer),delete t._glBuffers[this.CONTEXT_UID])}disposeAll(t){const e=Object.keys(this.managedBuffers);for(let s=0;s<e.length;s++)this.dispose(this.managedBuffers[e[s]],t)}createGLBuffer(t){const{CONTEXT_UID:e,gl:s}=this;return t._glBuffers[e]=new uM(s.createBuffer()),this.managedBuffers[t.id]=t,t.disposeRunner.add(this),t._glBuffers[e]}}r1.extension={type:gt.RendererSystem,name:"buffer"};St.add(r1);class i1{constructor(t){this.renderer=t}render(t,e){const s=this.renderer;let r,n,a,o;if(e&&(r=e.renderTexture,n=e.clear,a=e.transform,o=e.skipUpdateTransform),this.renderingToScreen=!r,s.runners.prerender.emit(),s.emit("prerender"),s.projection.transform=a,!s.context.isLost){if(r||(this.lastObjectRendered=t),!o){const h=t.enableTempParent();t.updateTransform(),t.disableTempParent(h)}s.renderTexture.bind(r),s.batch.currentRenderer.start(),(n??s.background.clearBeforeRender)&&s.renderTexture.clear(),t.render(s),s.batch.currentRenderer.flush(),r&&(e.blit&&s.framebuffer.blit(),r.baseTexture.update()),s.runners.postrender.emit(),s.projection.transform=null,s.emit("postrender")}}destroy(){this.renderer=null,this.lastObjectRendered=null}}i1.extension={type:gt.RendererSystem,name:"objectRenderer"};St.add(i1);const Sh=class Pm extends iM{constructor(t){super(),this.type=n_.WEBGL,t=Object.assign({},_t.RENDER_OPTIONS,t),this.gl=null,this.CONTEXT_UID=0,this.globalUniforms=new yr({projectionMatrix:new fe},!0);const e={runners:["init","destroy","contextChange","resolutionChange","reset","update","postrender","prerender","resize"],systems:Pm.__systems,priority:["_view","textureGenerator","background","_plugin","startup","context","state","texture","buffer","geometry","framebuffer","transformFeedback","mask","scissor","stencil","projection","textureGC","filter","renderTexture","batch","objectRenderer","_multisample"]};this.setup(e),"useContextAlpha"in t&&(Ht("7.0.0","options.useContextAlpha is deprecated, use options.premultipliedAlpha and options.backgroundAlpha instead"),t.premultipliedAlpha=t.useContextAlpha&&t.useContextAlpha!=="notMultiplied",t.backgroundAlpha=t.useContextAlpha===!1?1:t.backgroundAlpha),this._plugin.rendererPlugins=Pm.__plugins,this.options=t,this.startup.run(this.options)}static test(t){return t!=null&&t.forceCanvas?!1:BI()}render(t,e){this.objectRenderer.render(t,e)}resize(t,e){this._view.resizeView(t,e)}reset(){return this.runners.reset.emit(),this}clear(){this.renderTexture.bind(),this.renderTexture.clear()}destroy(t=!1){this.runners.destroy.items.reverse(),this.emitWithCustomOptions(this.runners.destroy,{_view:t}),super.destroy()}get plugins(){return this._plugin.plugins}get multisample(){return this._multisample.multisample}get width(){return this._view.element.width}get height(){return this._view.element.height}get resolution(){return this._view.resolution}set resolution(t){this._view.resolution=t,this.runners.resolutionChange.emit(t)}get autoDensity(){return this._view.autoDensity}get view(){return Line truncated
`;const dM=cM,s1=uM;class r1{constructor(t){this.renderer=t}contextChange(t){let e;if(this.renderer.context.webGLVersion===1){const s=t.getParameter(t.FRAMEBUFFER_BINDING);t.bindFramebuffer(t.FRAMEBUFFER,null),e=t.getParameter(t.SAMPLES),t.bindFramebuffer(t.FRAMEBUFFER,s)}else{const s=t.getParameter(t.DRAW_FRAMEBUFFER_BINDING);t.bindFramebuffer(t.DRAW_FRAMEBUFFER,null),e=t.getParameter(t.SAMPLES),t.bindFramebuffer(t.DRAW_FRAMEBUFFER,s)}e>=De.HIGH?this.multisample=De.HIGH:e>=De.MEDIUM?this.multisample=De.MEDIUM:e>=De.LOW?this.multisample=De.LOW:this.multisample=De.NONE}destroy(){}}r1.extension={type:gt.RendererSystem,name:"_multisample"};St.add(r1);class fM{constructor(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}}class i1{constructor(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}destroy(){this.renderer=null}contextChange(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(t){const{gl:e,CONTEXT_UID:s}=this,r=t._glBuffers[s]||this.createGLBuffer(t);e.bindBuffer(t.type,r.buffer)}unbind(t){const{gl:e}=this;e.bindBuffer(t,null)}bindBufferBase(t,e){const{gl:s,CONTEXT_UID:r}=this;if(this.boundBufferBases[e]!==t){const n=t._glBuffers[r]||this.createGLBuffer(t);this.boundBufferBases[e]=t,s.bindBufferBase(s.UNIFORM_BUFFER,e,n.buffer)}}bindBufferRange(t,e,s){const{gl:r,CONTEXT_UID:n}=this;s=s||0;const a=t._glBuffers[n]||this.createGLBuffer(t);r.bindBufferRange(r.UNIFORM_BUFFER,e||0,a.buffer,s*256,256)}update(t){const{gl:e,CONTEXT_UID:s}=this,r=t._glBuffers[s]||this.createGLBuffer(t);if(t._updateID!==r.updateID)if(r.updateID=t._updateID,e.bindBuffer(t.type,r.buffer),r.byteLength>=t.data.byteLength)e.bufferSubData(t.type,0,t.data);else{const n=t.static?e.STATIC_DRAW:e.DYNAMIC_DRAW;r.byteLength=t.data.byteLength,e.bufferData(t.type,t.data,n)}}dispose(t,e){if(!this.managedBuffers[t.id])return;delete this.managedBuffers[t.id];const s=t._glBuffers[this.CONTEXT_UID],r=this.gl;t.disposeRunner.remove(this),s&&(e||r.deleteBuffer(s.buffer),delete t._glBuffers[this.CONTEXT_UID])}disposeAll(t){const e=Object.keys(this.managedBuffers);for(let s=0;s<e.length;s++)this.dispose(this.managedBuffers[e[s]],t)}createGLBuffer(t){const{CONTEXT_UID:e,gl:s}=this;return t._glBuffers[e]=new fM(s.createBuffer()),this.managedBuffers[t.id]=t,t.disposeRunner.add(this),t._glBuffers[e]}}i1.extension={type:gt.RendererSystem,name:"buffer"};St.add(i1);class n1{constructor(t){this.renderer=t}render(t,e){const s=this.renderer;let r,n,a,o;if(e&&(r=e.renderTexture,n=e.clear,a=e.transform,o=e.skipUpdateTransform),this.renderingToScreen=!r,s.runners.prerender.emit(),s.emit("prerender"),s.projection.transform=a,!s.context.isLost){if(r||(this.lastObjectRendered=t),!o){const h=t.enableTempParent();t.updateTransform(),t.disableTempParent(h)}s.renderTexture.bind(r),s.batch.currentRenderer.start(),(n??s.background.clearBeforeRender)&&s.renderTexture.clear(),t.render(s),s.batch.currentRenderer.flush(),r&&(e.blit&&s.framebuffer.blit(),r.baseTexture.update()),s.runners.postrender.emit(),s.projection.transform=null,s.emit("postrender")}}destroy(){this.renderer=null,this.lastObjectRendered=null}}n1.extension={type:gt.RendererSystem,name:"objectRenderer"};St.add(n1);const Ah=class Rm extends aM{constructor(t){super(),this.type=a_.WEBGL,t=Object.assign({},_t.RENDER_OPTIONS,t),this.gl=null,this.CONTEXT_UID=0,this.globalUniforms=new yr({projectionMatrix:new fe},!0);const e={runners:["init","destroy","contextChange","resolutionChange","reset","update","postrender","prerender","resize"],systems:Rm.__systems,priority:["_view","textureGenerator","background","_plugin","startup","context","state","texture","buffer","geometry","framebuffer","transformFeedback","mask","scissor","stencil","projection","textureGC","filter","renderTexture","batch","objectRenderer","_multisample"]};this.setup(e),"useContextAlpha"in t&&(Ht("7.0.0","options.useContextAlpha is deprecated, use options.premultipliedAlpha and options.backgroundAlpha instead"),t.premultipliedAlpha=t.useContextAlpha&&t.useContextAlpha!=="notMultiplied",t.backgroundAlpha=t.useContextAlpha===!1?1:t.backgroundAlpha),this._plugin.rendererPlugins=Rm.__plugins,this.options=t,this.startup.run(this.options)}static test(t){return t!=null&&t.forceCanvas?!1:DI()}render(t,e){this.objectRenderer.render(t,e)}resize(t,e){this._view.resizeView(t,e)}reset(){return this.runners.reset.emit(),this}clear(){this.renderTexture.bind(),this.renderTexture.clear()}destroy(t=!1){this.runners.destroy.items.reverse(),this.emitWithCustomOptions(this.runners.destroy,{_view:t}),super.destroy()}get plugins(){return this._plugin.plugins}get multisample(){return this._multisample.multisample}get width(){return this._view.element.width}get height(){return this._view.element.height}get resolution(){return this._view.resolution}set resolution(t){this._view.resolution=t,this.runners.resolutionChange.emit(t)}get autoDensity(){return this._view.autoDensity}get view(){return Line truncated
uniform sampler2D uSampler;
uniform float uAlpha;
@@ -571,9 +571,9 @@ void main(void)
{
gl_FragColor = texture2D(uSampler, vTextureCoord) * uAlpha;
}
`;class wM extends _s{constructor(t=1){super(cM,_M,{uAlpha:1}),this.alpha=t}get alpha(){return this.uniforms.uAlpha}set alpha(t){this.uniforms.uAlpha=t}}const TM={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]},SM=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{"," gl_FragColor = vec4(0.0);"," %blur%","}"].join(`
`);function EM(i){const t=TM[i],e=t.length;let s=SM,r="";const n="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;";let a;for(let o=0;o<i;o++){let h=n.replace("%index%",o.toString());a=o,o>=e&&(a=i-o-1),h=h.replace("%value%",t[a].toString()),r+=h,r+=`
`}return s=s.replace("%blur%",r),s=s.replace("%size%",i.toString()),s}const AM=`
`;class SM extends _s{constructor(t=1){super(dM,TM,{uAlpha:1}),this.alpha=t}get alpha(){return this.uniforms.uAlpha}set alpha(t){this.uniforms.uAlpha=t}}const EM={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]},AM=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{"," gl_FragColor = vec4(0.0);"," %blur%","}"].join(`
`);function CM(i){const t=EM[i],e=t.length;let s=AM,r="";const n="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;";let a;for(let o=0;o<i;o++){let h=n.replace("%index%",o.toString());a=o,o>=e&&(a=i-o-1),h=h.replace("%value%",t[a].toString()),r+=h,r+=`
`}return s=s.replace("%blur%",r),s=s.replace("%size%",i.toString()),s}const IM=`
attribute vec2 aVertexPosition;
uniform mat3 projectionMatrix;
@@ -603,8 +603,8 @@ void main(void)
vec2 textureCoord = filterTextureCoord();
%blur%
}`;function CM(i,t){const e=Math.ceil(i/2);let s=AM,r="",n;t?n="vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * strength, 0.0);":n="vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * strength);";for(let a=0;a<i;a++){let o=n.replace("%index%",a.toString());o=o.replace("%sampleIndex%",`${a-(e-1)}.0`),r+=o,r+=`
`}return s=s.replace("%blur%",r),s=s.replace("%size%",i.toString()),s}class Bm extends _s{constructor(t,e=8,s=4,r=_s.defaultResolution,n=5){const a=CM(n,t),o=EM(n);super(a,o),this.horizontal=t,this.resolution=r,this._quality=0,this.quality=s,this.blur=e}apply(t,e,s,r){if(s?this.horizontal?this.uniforms.strength=1/s.width*(s.width/e.width):this.uniforms.strength=1/s.height*(s.height/e.height):this.horizontal?this.uniforms.strength=1/t.renderer.width*(t.renderer.width/e.width):this.uniforms.strength=1/t.renderer.height*(t.renderer.height/e.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,this.passes===1)t.applyFilter(this,e,s,r);else{const n=t.getFilterTexture(),a=t.renderer;let o=e,h=n;this.state.blend=!1,t.applyFilter(this,o,h,Nr.CLEAR);for(let l=1;l<this.passes-1;l++){t.bindAndClear(o,Nr.BLIT),this.uniforms.uSampler=h;const c=h;h=o,o=c,a.shader.bind(this),a.geometry.draw(5)}this.state.blend=!0,t.applyFilter(this,h,s,r),t.returnFilterTexture(n)}}get blur(){return this.strength}set blur(t){this.padding=1+Math.abs(t)*2,this.strength=t}get quality(){return this._quality}set quality(t){this._quality=t,this.passes=t}}class IM extends _s{constructor(t=8,e=4,s=_s.defaultResolution,r=5){super(),this._repeatEdgePixels=!1,this.blurXFilter=new Bm(!0,t,e,s,r),this.blurYFilter=new Bm(!1,t,e,s,r),this.resolution=s,this.quality=e,this.blur=t,this.repeatEdgePixels=!1}apply(t,e,s,r){const n=Math.abs(this.blurXFilter.strength),a=Math.abs(this.blurYFilter.strength);if(n&&a){const o=t.getFilterTexture();this.blurXFilter.apply(t,e,o,Nr.CLEAR),this.blurYFilter.apply(t,o,s,r),t.returnFilterTexture(o)}else a?this.blurYFilter.apply(t,e,s,r):this.blurXFilter.apply(t,e,s,r)}updatePadding(){this._repeatEdgePixels?this.padding=0:this.padding=Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))*2}get blur(){return this.blurXFilter.blur}set blur(t){this.blurXFilter.blur=this.blurYFilter.blur=t,this.updatePadding()}get quality(){return this.blurXFilter.quality}set quality(t){this.blurXFilter.quality=this.blurYFilter.quality=t}get blurX(){return this.blurXFilter.blur}set blurX(t){this.blurXFilter.blur=t,this.updatePadding()}get blurY(){return this.blurYFilter.blur}set blurY(t){this.blurYFilter.blur=t,this.updatePadding()}get blendMode(){return this.blurYFilter.blendMode}set blendMode(t){this.blurYFilter.blendMode=t}get repeatEdgePixels(){return this._repeatEdgePixels}set repeatEdgePixels(t){this._repeatEdgePixels=t,this.updatePadding()}}var PM=`varying vec2 vTextureCoord;
}`;function PM(i,t){const e=Math.ceil(i/2);let s=IM,r="",n;t?n="vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * strength, 0.0);":n="vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * strength);";for(let a=0;a<i;a++){let o=n.replace("%index%",a.toString());o=o.replace("%sampleIndex%",`${a-(e-1)}.0`),r+=o,r+=`
`}return s=s.replace("%blur%",r),s=s.replace("%size%",i.toString()),s}class Dm extends _s{constructor(t,e=8,s=4,r=_s.defaultResolution,n=5){const a=PM(n,t),o=CM(n);super(a,o),this.horizontal=t,this.resolution=r,this._quality=0,this.quality=s,this.blur=e}apply(t,e,s,r){if(s?this.horizontal?this.uniforms.strength=1/s.width*(s.width/e.width):this.uniforms.strength=1/s.height*(s.height/e.height):this.horizontal?this.uniforms.strength=1/t.renderer.width*(t.renderer.width/e.width):this.uniforms.strength=1/t.renderer.height*(t.renderer.height/e.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,this.passes===1)t.applyFilter(this,e,s,r);else{const n=t.getFilterTexture(),a=t.renderer;let o=e,h=n;this.state.blend=!1,t.applyFilter(this,o,h,Nr.CLEAR);for(let l=1;l<this.passes-1;l++){t.bindAndClear(o,Nr.BLIT),this.uniforms.uSampler=h;const c=h;h=o,o=c,a.shader.bind(this),a.geometry.draw(5)}this.state.blend=!0,t.applyFilter(this,h,s,r),t.returnFilterTexture(n)}}get blur(){return this.strength}set blur(t){this.padding=1+Math.abs(t)*2,this.strength=t}get quality(){return this._quality}set quality(t){this._quality=t,this.passes=t}}class MM extends _s{constructor(t=8,e=4,s=_s.defaultResolution,r=5){super(),this._repeatEdgePixels=!1,this.blurXFilter=new Dm(!0,t,e,s,r),this.blurYFilter=new Dm(!1,t,e,s,r),this.resolution=s,this.quality=e,this.blur=t,this.repeatEdgePixels=!1}apply(t,e,s,r){const n=Math.abs(this.blurXFilter.strength),a=Math.abs(this.blurYFilter.strength);if(n&&a){const o=t.getFilterTexture();this.blurXFilter.apply(t,e,o,Nr.CLEAR),this.blurYFilter.apply(t,o,s,r),t.returnFilterTexture(o)}else a?this.blurYFilter.apply(t,e,s,r):this.blurXFilter.apply(t,e,s,r)}updatePadding(){this._repeatEdgePixels?this.padding=0:this.padding=Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))*2}get blur(){return this.blurXFilter.blur}set blur(t){this.blurXFilter.blur=this.blurYFilter.blur=t,this.updatePadding()}get quality(){return this.blurXFilter.quality}set quality(t){this.blurXFilter.quality=this.blurYFilter.quality=t}get blurX(){return this.blurXFilter.blur}set blurX(t){this.blurXFilter.blur=t,this.updatePadding()}get blurY(){return this.blurYFilter.blur}set blurY(t){this.blurYFilter.blur=t,this.updatePadding()}get blendMode(){return this.blurYFilter.blendMode}set blendMode(t){this.blurYFilter.blendMode=t}get repeatEdgePixels(){return this._repeatEdgePixels}set repeatEdgePixels(t){this._repeatEdgePixels=t,this.updatePadding()}}var RM=`varying vec2 vTextureCoord;
uniform sampler2D uSampler;
uniform float m[20];
uniform float uAlpha;
@@ -656,7 +656,7 @@ void main(void)
gl_FragColor = vec4(rgb, result.a);
}
`;class Om extends _s{constructor(){const t={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};super(e1,PM,t),this.alpha=1}_loadMatrix(t,e=!1){let s=t;e&&(this._multiply(s,this.uniforms.m,t),s=this._colorMatrix(s)),this.uniforms.m=s}_multiply(t,e,s){return t[0]=e[0]*s[0]+e[1]*s[5]+e[2]*s[10]+e[3]*s[15],t[1]=e[0]*s[1]+e[1]*s[6]+e[2]*s[11]+e[3]*s[16],t[2]=e[0]*s[2]+e[1]*s[7]+e[2]*s[12]+e[3]*s[17],t[3]=e[0]*s[3]+e[1]*s[8]+e[2]*s[13]+e[3]*s[18],t[4]=e[0]*s[4]+e[1]*s[9]+e[2]*s[14]+e[3]*s[19]+e[4],t[5]=e[5]*s[0]+e[6]*s[5]+e[7]*s[10]+e[8]*s[15],t[6]=e[5]*s[1]+e[6]*s[6]+e[7]*s[11]+e[8]*s[16],t[7]=e[5]*s[2]+e[6]*s[7]+e[7]*s[12]+e[8]*s[17],t[8]=e[5]*s[3]+e[6]*s[8]+e[7]*s[13]+e[8]*s[18],t[9]=e[5]*s[4]+e[6]*s[9]+e[7]*s[14]+e[8]*s[19]+e[9],t[10]=e[10]*s[0]+e[11]*s[5]+e[12]*s[10]+e[13]*s[15],t[11]=e[10]*s[1]+e[11]*s[6]+e[12]*s[11]+e[13]*s[16],t[12]=e[10]*s[2]+e[11]*s[7]+e[12]*s[12]+e[13]*s[17],t[13]=e[10]*s[3]+e[11]*s[8]+e[12]*s[13]+e[13]*s[18],t[14]=e[10]*s[4]+e[11]*s[9]+e[12]*s[14]+e[13]*s[19]+e[14],t[15]=e[15]*s[0]+e[16]*s[5]+e[17]*s[10]+e[18]*s[15],t[16]=e[15]*s[1]+e[16]*s[6]+e[17]*s[11]+e[18]*s[16],t[17]=e[15]*s[2]+e[16]*s[7]+e[17]*s[12]+e[18]*s[17],t[18]=e[15]*s[3]+e[16]*s[8]+e[17]*s[13]+e[18]*s[18],t[19]=e[15]*s[4]+e[16]*s[9]+e[17]*s[14]+e[18]*s[19]+e[19],t}_colorMatrix(t){const e=new Float32Array(t);return e[4]/=255,e[9]/=255,e[14]/=255,e[19]/=255,e}brightness(t,e){const s=[t,0,0,0,0,0,t,0,0,0,0,0,t,0,0,0,0,0,1,0];this._loadMatrix(s,e)}tint(t,e){const[s,r,n]=Wt.shared.setValue(t).toArray(),a=[s,0,0,0,0,0,r,0,0,0,0,0,n,0,0,0,0,0,1,0];this._loadMatrix(a,e)}greyscale(t,e){const s=[t,t,t,0,0,t,t,t,0,0,t,t,t,0,0,0,0,0,1,0];this._loadMatrix(s,e)}blackAndWhite(t){const e=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(e,t)}hue(t,e){t=(t||0)/180*Math.PI;const s=Math.cos(t),r=Math.sin(t),n=Math.sqrt,a=1/3,o=n(a),h=s+(1-s)*a,l=a*(1-s)-o*r,c=a*(1-s)+o*r,u=a*(1-s)+o*r,d=s+a*(1-s),f=a*(1-s)-o*r,m=a*(1-s)-o*r,p=a*(1-s)+o*r,g=s+a*(1-s),y=[h,l,c,0,0,u,d,f,0,0,m,p,g,0,0,0,0,0,1,0];this._loadMatrix(y,e)}contrast(t,e){const s=(t||0)+1,r=-.5*(s-1),n=[s,0,0,0,r,0,s,0,0,r,0,0,s,0,r,0,0,0,1,0];this._loadMatrix(n,e)}saturate(t=0,e){const s=t*2/3+1,r=(s-1)*-.5,n=[s,r,r,0,0,r,s,r,0,0,r,r,s,0,0,0,0,0,1,0];this._loadMatrix(n,e)}desaturate(){this.saturate(-1)}negative(t){const e=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(e,t)}sepia(t){const e=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(e,t)}technicolor(t){const e=[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(e,t)}polaroid(t){const e=[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(e,t)}toBGR(t){const e=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(e,t)}kodachrome(t){const e=[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(e,t)}browni(t){const e=[.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(e,t)}vintage(t){const e=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0];this._loadMatrix(e,t)}colorTone(t,e,s,r,n){t=t||.2,e=e||.15,s=s||16770432,r=r||3375104;const a=Wt.shared,[o,h,l]=a.setValue(s).toArray(),[c,u,d]=a.setValue(r).toArray(),f=[.3,.59,.11,0,0,o,h,l,t,0,c,u,d,e,0,o-c,h-u,l-d,0,0];this._loadMatrix(f,n)}night(t,e){t=t||.1;const s=[t*-2,-t,0,0,0,-t,0,t,0,0,0,t,t*2,0,0,0,0,0,1,0];this._loadMatrix(s,e)}predator(t,e){const s=[11.224130630493164*t,-4.794486999511719*t,-2.8746118545532227*t,0*t,.40342438220977783*t,-3.6330697536468506*t,9.193157196044922*t,-2.951810836791992*t,0*t,-1.316135048866272*t,-3.2184197902679443*t,-4.2375030517578125*t,7.476448059082031*t,0*t,.8044459223747253*t,0,0,0,1,0];this._loadMatrix(s,e)}lsd(t){const e=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(e,t)}reset(){const t=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(t,!1)}get matrix(){return this.uniforms.m}set matrix(t){this.uniforms.m=t}get alpha(){return this.uniforms.uAlpha}set alpha(t){this.uniforms.uAlpha=t}}Om.prototype.grayscale=Om.prototype.greyscale;var MM=`varying vec2 vFilterCoord;
`;class Nm extends _s{constructor(){const t={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};super(s1,RM,t),this.alpha=1}_loadMatrix(t,e=!1){let s=t;e&&(this._multiply(s,this.uniforms.m,t),s=this._colorMatrix(s)),this.uniforms.m=s}_multiply(t,e,s){return t[0]=e[0]*s[0]+e[1]*s[5]+e[2]*s[10]+e[3]*s[15],t[1]=e[0]*s[1]+e[1]*s[6]+e[2]*s[11]+e[3]*s[16],t[2]=e[0]*s[2]+e[1]*s[7]+e[2]*s[12]+e[3]*s[17],t[3]=e[0]*s[3]+e[1]*s[8]+e[2]*s[13]+e[3]*s[18],t[4]=e[0]*s[4]+e[1]*s[9]+e[2]*s[14]+e[3]*s[19]+e[4],t[5]=e[5]*s[0]+e[6]*s[5]+e[7]*s[10]+e[8]*s[15],t[6]=e[5]*s[1]+e[6]*s[6]+e[7]*s[11]+e[8]*s[16],t[7]=e[5]*s[2]+e[6]*s[7]+e[7]*s[12]+e[8]*s[17],t[8]=e[5]*s[3]+e[6]*s[8]+e[7]*s[13]+e[8]*s[18],t[9]=e[5]*s[4]+e[6]*s[9]+e[7]*s[14]+e[8]*s[19]+e[9],t[10]=e[10]*s[0]+e[11]*s[5]+e[12]*s[10]+e[13]*s[15],t[11]=e[10]*s[1]+e[11]*s[6]+e[12]*s[11]+e[13]*s[16],t[12]=e[10]*s[2]+e[11]*s[7]+e[12]*s[12]+e[13]*s[17],t[13]=e[10]*s[3]+e[11]*s[8]+e[12]*s[13]+e[13]*s[18],t[14]=e[10]*s[4]+e[11]*s[9]+e[12]*s[14]+e[13]*s[19]+e[14],t[15]=e[15]*s[0]+e[16]*s[5]+e[17]*s[10]+e[18]*s[15],t[16]=e[15]*s[1]+e[16]*s[6]+e[17]*s[11]+e[18]*s[16],t[17]=e[15]*s[2]+e[16]*s[7]+e[17]*s[12]+e[18]*s[17],t[18]=e[15]*s[3]+e[16]*s[8]+e[17]*s[13]+e[18]*s[18],t[19]=e[15]*s[4]+e[16]*s[9]+e[17]*s[14]+e[18]*s[19]+e[19],t}_colorMatrix(t){const e=new Float32Array(t);return e[4]/=255,e[9]/=255,e[14]/=255,e[19]/=255,e}brightness(t,e){const s=[t,0,0,0,0,0,t,0,0,0,0,0,t,0,0,0,0,0,1,0];this._loadMatrix(s,e)}tint(t,e){const[s,r,n]=Wt.shared.setValue(t).toArray(),a=[s,0,0,0,0,0,r,0,0,0,0,0,n,0,0,0,0,0,1,0];this._loadMatrix(a,e)}greyscale(t,e){const s=[t,t,t,0,0,t,t,t,0,0,t,t,t,0,0,0,0,0,1,0];this._loadMatrix(s,e)}blackAndWhite(t){const e=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(e,t)}hue(t,e){t=(t||0)/180*Math.PI;const s=Math.cos(t),r=Math.sin(t),n=Math.sqrt,a=1/3,o=n(a),h=s+(1-s)*a,l=a*(1-s)-o*r,c=a*(1-s)+o*r,u=a*(1-s)+o*r,d=s+a*(1-s),f=a*(1-s)-o*r,m=a*(1-s)-o*r,p=a*(1-s)+o*r,g=s+a*(1-s),y=[h,l,c,0,0,u,d,f,0,0,m,p,g,0,0,0,0,0,1,0];this._loadMatrix(y,e)}contrast(t,e){const s=(t||0)+1,r=-.5*(s-1),n=[s,0,0,0,r,0,s,0,0,r,0,0,s,0,r,0,0,0,1,0];this._loadMatrix(n,e)}saturate(t=0,e){const s=t*2/3+1,r=(s-1)*-.5,n=[s,r,r,0,0,r,s,r,0,0,r,r,s,0,0,0,0,0,1,0];this._loadMatrix(n,e)}desaturate(){this.saturate(-1)}negative(t){const e=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(e,t)}sepia(t){const e=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(e,t)}technicolor(t){const e=[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(e,t)}polaroid(t){const e=[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(e,t)}toBGR(t){const e=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(e,t)}kodachrome(t){const e=[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(e,t)}browni(t){const e=[.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(e,t)}vintage(t){const e=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0];this._loadMatrix(e,t)}colorTone(t,e,s,r,n){t=t||.2,e=e||.15,s=s||16770432,r=r||3375104;const a=Wt.shared,[o,h,l]=a.setValue(s).toArray(),[c,u,d]=a.setValue(r).toArray(),f=[.3,.59,.11,0,0,o,h,l,t,0,c,u,d,e,0,o-c,h-u,l-d,0,0];this._loadMatrix(f,n)}night(t,e){t=t||.1;const s=[t*-2,-t,0,0,0,-t,0,t,0,0,0,t,t*2,0,0,0,0,0,1,0];this._loadMatrix(s,e)}predator(t,e){const s=[11.224130630493164*t,-4.794486999511719*t,-2.8746118545532227*t,0*t,.40342438220977783*t,-3.6330697536468506*t,9.193157196044922*t,-2.951810836791992*t,0*t,-1.316135048866272*t,-3.2184197902679443*t,-4.2375030517578125*t,7.476448059082031*t,0*t,.8044459223747253*t,0,0,0,1,0];this._loadMatrix(s,e)}lsd(t){const e=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(e,t)}reset(){const t=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(t,!1)}get matrix(){return this.uniforms.m}set matrix(t){this.uniforms.m=t}get alpha(){return this.uniforms.uAlpha}set alpha(t){this.uniforms.uAlpha=t}}Nm.prototype.grayscale=Nm.prototype.greyscale;var FM=`varying vec2 vFilterCoord;
varying vec2 vTextureCoord;
uniform vec2 scale;
@@ -676,7 +676,7 @@ void main(void)
gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw));
}
`,RM=`attribute vec2 aVertexPosition;
`,kM=`attribute vec2 aVertexPosition;
uniform mat3 projectionMatrix;
uniform mat3 filterMatrix;
@@ -705,7 +705,7 @@ void main(void)
vTextureCoord = filterTextureCoord();
vFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0) ).xy;
}
`;class FM extends _s{constructor(t,e){const s=new fe;t.renderable=!1,super(RM,MM,{mapSampler:t._texture,filterMatrix:s,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])}),this.maskSprite=t,this.maskMatrix=s,e==null&&(e=20),this.scale=new Kt(e,e)}apply(t,e,s,r){this.uniforms.filterMatrix=t.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;const n=this.maskSprite.worldTransform,a=Math.sqrt(n.a*n.a+n.b*n.b),o=Math.sqrt(n.c*n.c+n.d*n.d);a!==0&&o!==0&&(this.uniforms.rotation[0]=n.a/a,this.uniforms.rotation[1]=n.b/a,this.uniforms.rotation[2]=n.c/o,this.uniforms.rotation[3]=n.d/o),t.applyFilter(this,e,s,r)}get map(){return this.uniforms.mapSampler}set map(t){this.uniforms.mapSampler=t}}var kM=`varying vec2 v_rgbNW;
`;class LM extends _s{constructor(t,e){const s=new fe;t.renderable=!1,super(kM,FM,{mapSampler:t._texture,filterMatrix:s,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])}),this.maskSprite=t,this.maskMatrix=s,e==null&&(e=20),this.scale=new zt(e,e)}apply(t,e,s,r){this.uniforms.filterMatrix=t.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;const n=this.maskSprite.worldTransform,a=Math.sqrt(n.a*n.a+n.b*n.b),o=Math.sqrt(n.c*n.c+n.d*n.d);a!==0&&o!==0&&(this.uniforms.rotation[0]=n.a/a,this.uniforms.rotation[1]=n.b/a,this.uniforms.rotation[2]=n.c/o,this.uniforms.rotation[3]=n.d/o),t.applyFilter(this,e,s,r)}get map(){return this.uniforms.mapSampler}set map(t){this.uniforms.mapSampler=t}}var BM=`varying vec2 v_rgbNW;
varying vec2 v_rgbNE;
varying vec2 v_rgbSW;
varying vec2 v_rgbSE;
@@ -826,7 +826,7 @@ void main() {
gl_FragColor = color;
}
`,LM=`
`,OM=`
attribute vec2 aVertexPosition;
uniform mat3 projectionMatrix;
@@ -868,7 +868,7 @@ void main(void) {
texcoords(vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);
}
`;class BM extends _s{constructor(){super(LM,kM)}}var OM=`precision highp float;
`;class DM extends _s{constructor(){super(OM,BM)}}var NM=`precision highp float;
varying vec2 vTextureCoord;
varying vec4 vColor;
@@ -902,8 +902,8 @@ void main()
gl_FragColor = color;
}
`;class DM extends _s{constructor(t=.5,e=Math.random()){super(e1,OM,{uNoise:0,uSeed:0}),this.noise=t,this.seed=e}get noise(){return this.uniforms.uNoise}set noise(t){this.uniforms.uNoise=t}get seed(){return this.uniforms.uSeed}set seed(t){this.uniforms.uSeed=t}}const Ex={AlphaFilter:wM,BlurFilter:IM,BlurFilterPass:Bm,ColorMatrixFilter:Om,DisplacementFilter:FM,FXAAFilter:BM,NoiseFilter:DM};Object.entries(Ex).forEach(([i,t])=>{Object.defineProperty(Ex,i,{get(){return Ht("7.1.0",`filters.${i} has moved to ${i}`),t}})});class NM{constructor(){this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}init(t){this.removeTickerListener(),this.events=t,this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}get pauseUpdate(){return this._pauseUpdate}set pauseUpdate(t){this._pauseUpdate=t}addTickerListener(){this.tickerAdded||!this.domElement||(ss.system.add(this.tickerUpdate,this,Wn.INTERACTION),this.tickerAdded=!0)}removeTickerListener(){this.tickerAdded&&(ss.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)}pointerMoved(){this._didMove=!0}update(){if(!this.domElement||this._pauseUpdate)return;if(this._didMove){this._didMove=!1;return}const t=this.events.rootPointerEvent;this.events.supportsTouchEvents&&t.pointerType==="touch"||globalThis.document.dispatchEvent(new PointerEvent("pointermove",{clientX:t.clientX,clientY:t.clientY}))}tickerUpdate(t){this._deltaTime+=t,!(this._deltaTime<this.interactionFrequency)&&(this._deltaTime=0,this.update())}}const ji=new NM;class Cl{constructor(t){this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.composed=!1,this.defaultPrevented=!1,this.eventPhase=Cl.prototype.NONE,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new Kt,this.page=new Kt,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=t}get layerX(){return this.layer.x}get layerY(){return this.layer.y}get pageX(){return this.page.x}get pageY(){return this.page.y}get data(){return this}composedPath(){return this.manager&&(!this.path||this.path[this.path.length-1]!==this.target)&&(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path}initEvent(t,e,s){throw new Error("initEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}initUIEvent(t,e,s,r,n){throw new Error("initUIEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}preventDefault(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0}stopImmediatePropagation(){this.propagationImmediatelyStopped=!0}stopPropagation(){this.propagationStopped=!0}}class Jh extends Cl{constructor(){super(...arguments),this.client=new Kt,this.movement=new Kt,this.offset=new Kt,this.global=new Kt,this.screen=new Kt}get clientX(){return this.client.x}get clientY(){return this.client.y}get x(){return this.clientX}get y(){return this.clientY}get movementX(){return this.movement.x}get movementY(){return this.movement.y}get offsetX(){return this.offset.x}get offsetY(){return this.offset.y}get globalX(){return this.global.x}get globalY(){return this.global.y}get screenX(){return this.screen.x}get screenY(){return this.screen.y}getLocalPosition(t,e,s){return t.worldTransform.applyInverse(s||this.global,e)}getModifierState(t){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(t)}initMouseEvent(t,e,s,r,n,a,o,h,l,c,u,d,f,m,p){throw new Error("Method not implemented.")}}class or extends Jh{constructor(){super(...arguments),this.width=0,this.height=0,this.isPrimary=!1}getCoalescedEvents(){return this.type==="pointermove"||this.type==="mousemove"||this.type==="touchmove"?[this]:[]}getPredictedEvents(){throw new Error("getPredictedEvents is not supported!")}}class Fa extends Jh{constructor(){super(...arguments),this.DOM_DELTA_PIXEL=0,this.DOM_DELTA_LINE=1,this.DOM_DELTA_PAGE=2}}Fa.DOM_DELTA_PIXEL=0,Fa.DOM_DELTA_LINE=1,Fa.DOM_DELTA_PAGE=2;const UM=2048,XM=new Kt,Ef=new Kt;class VM{constructor(t){this.dispatch=new Al,this.moveOnAll=!1,this.enableGlobalMoveEvents=!0,this.mappingState={trackingData:{}},this.eventPool=new Map,this._allInteractiveElements=[],this._hitElements=[],this._isPointerMoveEvent=!1,this.rootTarget=t,this.hitPruneFn=this.hitPruneFn.bind(this),this.hitTestFn=this.hitTestFn.bind(this),this.mapPointerDown=this.mapPointerDown.bind(this),this.mapPointerMove=this.mapPointerMove.bind(this),this.mapPointerOut=this.mapPointerOut.bind(this),this.mapPointerOver=this.mapPointerOver.bind(this),this.mapPointerUp=this.mapPointerUp.bind(this),this.mapPointerUpOutside=this.mapPointerUpOutside.bind(this),this.mapWheel=this.mapWheel.bind(this),this.mappingTable={},this.addEventMapping("pointerdown",this.mapPointerDown),this.addEventMapping("pointermove",this.mapPointerMove),this.addEventMapping("pointerout",this.mapPointerOut),this.addEventMapping("pointerle Line truncated
${u}`)}});return await Promise.all(h),n?r[a[0].src]:r}async unload(t){const e=hr(t,s=>({alias:[s],src:s})).map(async s=>{var a,o;const r=ye.toAbsolute(s.src),n=this.promiseCache[r];if(n){const h=await n.promise;delete this.promiseCache[r],(o=(a=n.parser)==null?void 0:a.unload)==null||o.call(a,h,s,this)}});await Promise.all(e)}_validateParsers(){this._parsersValidated=!0,this._parserHash=this._parsers.filter(t=>t.name).reduce((t,e)=>(t[e.name]&&console.warn(`[Assets] loadParser name conflict "${e.name}"`),{...t,[e.name]:e}),{})}}var Ts=(i=>(i[i.Low=0]="Low",i[i.Normal=1]="Normal",i[i.High=2]="High",i))(Ts||{});const rR=".json",iR="application/json",nR={extension:{type:gt.LoadParser,priority:Ts.Low},name:"loadJson",test(i){return eo(i,iR)||Ue(i,rR)},async load(i){return await(await _t.ADAPTER.fetch(i)).json()}};St.add(nR);const aR=".txt",oR="text/plain",lR={name:"loadTxt",extension:{type:gt.LoadParser,priority:Ts.Low},test(i){return eo(i,oR)||Ue(i,aR)},async load(i){return await(await _t.ADAPTER.fetch(i)).text()}};St.add(lR);const hR=["normal","bold","100","200","300","400","500","600","700","800","900"],cR=[".ttf",".otf",".woff",".woff2"],uR=["font/ttf","font/otf","font/woff","font/woff2"],dR=/^(--|-?[A-Z_])[0-9A-Z_-]*$/i;function fR(i){const t=ye.extname(i),e=ye.basename(i,t).replace(/(-|_)/g," ").toLowerCase().split(" ").map(n=>n.charAt(0).toUpperCase()+n.slice(1));let s=e.length>0;for(const n of e)if(!n.match(dR)){s=!1;break}let r=e.join(" ");return s||(r=`"${r.replace(/[\\"]/g,"\\$&")}"`),r}const mR=/^[0-9A-Za-z%:/?#\[\]@!\$&'()\*\+,;=\-._~]*$/;function pR(i){return mR.test(i)?i:encodeURI(i)}const gR={extension:{type:gt.LoadParser,priority:Ts.Low},name:"loadWebFont",test(i){return eo(i,uR)||Ue(i,cR)},async load(i,t){var s,r,n;const e=_t.ADAPTER.getFontFaceSet();if(e){const a=[],o=((s=t.data)==null?void 0:s.family)??fR(i),h=((n=(r=t.data)==null?void 0:r.weights)==null?void 0:n.filter(c=>hR.includes(c)))??["normal"],l=t.data??{};for(let c=0;c<h.length;c++){const u=h[c],d=new FontFace(o,`url(${pR(i)})`,{...l,weight:u});await d.load(),e.add(d),a.push(d)}return a.length===1?a[0]:a}return console.warn("[loadWebFont] FontFace API is not supported. Skipping loading font"),null},unload(i){(Array.isArray(i)?i:[i]).forEach(t=>_t.ADAPTER.getFontFaceSet().delete(t))}};St.add(gR);const yR=`(function() {
`;class UM extends _s{constructor(t=.5,e=Math.random()){super(s1,NM,{uNoise:0,uSeed:0}),this.noise=t,this.seed=e}get noise(){return this.uniforms.uNoise}set noise(t){this.uniforms.uNoise=t}get seed(){return this.uniforms.uSeed}set seed(t){this.uniforms.uSeed=t}}const Ax={AlphaFilter:SM,BlurFilter:MM,BlurFilterPass:Dm,ColorMatrixFilter:Nm,DisplacementFilter:LM,FXAAFilter:DM,NoiseFilter:UM};Object.entries(Ax).forEach(([i,t])=>{Object.defineProperty(Ax,i,{get(){return Ht("7.1.0",`filters.${i} has moved to ${i}`),t}})});class XM{constructor(){this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}init(t){this.removeTickerListener(),this.events=t,this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}get pauseUpdate(){return this._pauseUpdate}set pauseUpdate(t){this._pauseUpdate=t}addTickerListener(){this.tickerAdded||!this.domElement||(ss.system.add(this.tickerUpdate,this,Wn.INTERACTION),this.tickerAdded=!0)}removeTickerListener(){this.tickerAdded&&(ss.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)}pointerMoved(){this._didMove=!0}update(){if(!this.domElement||this._pauseUpdate)return;if(this._didMove){this._didMove=!1;return}const t=this.events.rootPointerEvent;this.events.supportsTouchEvents&&t.pointerType==="touch"||globalThis.document.dispatchEvent(new PointerEvent("pointermove",{clientX:t.clientX,clientY:t.clientY}))}tickerUpdate(t){this._deltaTime+=t,!(this._deltaTime<this.interactionFrequency)&&(this._deltaTime=0,this.update())}}const ji=new XM;class Pl{constructor(t){this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.composed=!1,this.defaultPrevented=!1,this.eventPhase=Pl.prototype.NONE,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new zt,this.page=new zt,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=t}get layerX(){return this.layer.x}get layerY(){return this.layer.y}get pageX(){return this.page.x}get pageY(){return this.page.y}get data(){return this}composedPath(){return this.manager&&(!this.path||this.path[this.path.length-1]!==this.target)&&(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path}initEvent(t,e,s){throw new Error("initEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}initUIEvent(t,e,s,r,n){throw new Error("initUIEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}preventDefault(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0}stopImmediatePropagation(){this.propagationImmediatelyStopped=!0}stopPropagation(){this.propagationStopped=!0}}class tc extends Pl{constructor(){super(...arguments),this.client=new zt,this.movement=new zt,this.offset=new zt,this.global=new zt,this.screen=new zt}get clientX(){return this.client.x}get clientY(){return this.client.y}get x(){return this.clientX}get y(){return this.clientY}get movementX(){return this.movement.x}get movementY(){return this.movement.y}get offsetX(){return this.offset.x}get offsetY(){return this.offset.y}get globalX(){return this.global.x}get globalY(){return this.global.y}get screenX(){return this.screen.x}get screenY(){return this.screen.y}getLocalPosition(t,e,s){return t.worldTransform.applyInverse(s||this.global,e)}getModifierState(t){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(t)}initMouseEvent(t,e,s,r,n,a,o,h,l,c,u,d,f,m,p){throw new Error("Method not implemented.")}}class or extends tc{constructor(){super(...arguments),this.width=0,this.height=0,this.isPrimary=!1}getCoalescedEvents(){return this.type==="pointermove"||this.type==="mousemove"||this.type==="touchmove"?[this]:[]}getPredictedEvents(){throw new Error("getPredictedEvents is not supported!")}}class ka extends tc{constructor(){super(...arguments),this.DOM_DELTA_PIXEL=0,this.DOM_DELTA_LINE=1,this.DOM_DELTA_PAGE=2}}ka.DOM_DELTA_PIXEL=0,ka.DOM_DELTA_LINE=1,ka.DOM_DELTA_PAGE=2;const VM=2048,YM=new zt,Cf=new zt;class GM{constructor(t){this.dispatch=new Cl,this.moveOnAll=!1,this.enableGlobalMoveEvents=!0,this.mappingState={trackingData:{}},this.eventPool=new Map,this._allInteractiveElements=[],this._hitElements=[],this._isPointerMoveEvent=!1,this.rootTarget=t,this.hitPruneFn=this.hitPruneFn.bind(this),this.hitTestFn=this.hitTestFn.bind(this),this.mapPointerDown=this.mapPointerDown.bind(this),this.mapPointerMove=this.mapPointerMove.bind(this),this.mapPointerOut=this.mapPointerOut.bind(this),this.mapPointerOver=this.mapPointerOver.bind(this),this.mapPointerUp=this.mapPointerUp.bind(this),this.mapPointerUpOutside=this.mapPointerUpOutside.bind(this),this.mapWheel=this.mapWheel.bind(this),this.mappingTable={},this.addEventMapping("pointerdown",this.mapPointerDown),this.addEventMapping("pointermove",this.mapPointerMove),this.addEventMapping("pointerout",this.mapPointerOut),this.addEventMapping("pointerle Line truncated
${u}`)}});return await Promise.all(h),n?r[a[0].src]:r}async unload(t){const e=hr(t,s=>({alias:[s],src:s})).map(async s=>{var a,o;const r=ye.toAbsolute(s.src),n=this.promiseCache[r];if(n){const h=await n.promise;delete this.promiseCache[r],(o=(a=n.parser)==null?void 0:a.unload)==null||o.call(a,h,s,this)}});await Promise.all(e)}_validateParsers(){this._parsersValidated=!0,this._parserHash=this._parsers.filter(t=>t.name).reduce((t,e)=>(t[e.name]&&console.warn(`[Assets] loadParser name conflict "${e.name}"`),{...t,[e.name]:e}),{})}}var Ts=(i=>(i[i.Low=0]="Low",i[i.Normal=1]="Normal",i[i.High=2]="High",i))(Ts||{});const nR=".json",aR="application/json",oR={extension:{type:gt.LoadParser,priority:Ts.Low},name:"loadJson",test(i){return eo(i,aR)||Ue(i,nR)},async load(i){return await(await _t.ADAPTER.fetch(i)).json()}};St.add(oR);const lR=".txt",hR="text/plain",cR={name:"loadTxt",extension:{type:gt.LoadParser,priority:Ts.Low},test(i){return eo(i,hR)||Ue(i,lR)},async load(i){return await(await _t.ADAPTER.fetch(i)).text()}};St.add(cR);const uR=["normal","bold","100","200","300","400","500","600","700","800","900"],dR=[".ttf",".otf",".woff",".woff2"],fR=["font/ttf","font/otf","font/woff","font/woff2"],mR=/^(--|-?[A-Z_])[0-9A-Z_-]*$/i;function pR(i){const t=ye.extname(i),e=ye.basename(i,t).replace(/(-|_)/g," ").toLowerCase().split(" ").map(n=>n.charAt(0).toUpperCase()+n.slice(1));let s=e.length>0;for(const n of e)if(!n.match(mR)){s=!1;break}let r=e.join(" ");return s||(r=`"${r.replace(/[\\"]/g,"\\$&")}"`),r}const gR=/^[0-9A-Za-z%:/?#\[\]@!\$&'()\*\+,;=\-._~]*$/;function yR(i){return gR.test(i)?i:encodeURI(i)}const xR={extension:{type:gt.LoadParser,priority:Ts.Low},name:"loadWebFont",test(i){return eo(i,fR)||Ue(i,dR)},async load(i,t){var s,r,n;const e=_t.ADAPTER.getFontFaceSet();if(e){const a=[],o=((s=t.data)==null?void 0:s.family)??pR(i),h=((n=(r=t.data)==null?void 0:r.weights)==null?void 0:n.filter(c=>uR.includes(c)))??["normal"],l=t.data??{};for(let c=0;c<h.length;c++){const u=h[c],d=new FontFace(o,`url(${yR(i)})`,{...l,weight:u});await d.load(),e.add(d),a.push(d)}return a.length===1?a[0]:a}return console.warn("[loadWebFont] FontFace API is not supported. Skipping loading font"),null},unload(i){(Array.isArray(i)?i:[i]).forEach(t=>_t.ADAPTER.getFontFaceSet().delete(t))}};St.add(xR);const bR=`(function() {
"use strict";
const WHITE_PNG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=";
async function checkImageBitmap() {
@@ -920,7 +920,7 @@ ${u}`)}});return await Promise.all(h),n?r[a[0].src]:r}async unload(t){const e=hr
self.postMessage(result);
});
})();
`;let ka=null,Vm=class{constructor(){ka||(ka=URL.createObjectURL(new Blob([yR],{type:"application/javascript"}))),this.worker=new Worker(ka)}};Vm.revokeObjectURL=function(){ka&&(URL.revokeObjectURL(ka),ka=null)};const xR=`(function() {
`;let La=null,Gm=class{constructor(){La||(La=URL.createObjectURL(new Blob([bR],{type:"application/javascript"}))),this.worker=new Worker(La)}};Gm.revokeObjectURL=function(){La&&(URL.revokeObjectURL(La),La=null)};const vR=`(function() {
"use strict";
async function loadImageBitmap(url) {
const response = await fetch(url);
@@ -946,8 +946,8 @@ ${u}`)}});return await Promise.all(h),n?r[a[0].src]:r}async unload(t){const e=hr
}
};
})();
`;let La=null;class m1{constructor(){La||(La=URL.createObjectURL(new Blob([xR],{type:"application/javascript"}))),this.worker=new Worker(La)}}m1.revokeObjectURL=function(){La&&(URL.revokeObjectURL(La),La=null)};let Mx=0,Af;class bR{constructor(){this._initialized=!1,this._createdWorkers=0,this.workerPool=[],this.queue=[],this.resolveHash={}}isImageBitmapSupported(){return this._isImageBitmapSupported!==void 0?this._isImageBitmapSupported:(this._isImageBitmapSupported=new Promise(t=>{const{worker:e}=new Vm;e.addEventListener("message",s=>{e.terminate(),Vm.revokeObjectURL(),t(s.data)})}),this._isImageBitmapSupported)}loadImageBitmap(t){return this._run("loadImageBitmap",[t])}async _initWorkers(){this._initialized||(this._initialized=!0)}getWorker(){Af===void 0&&(Af=navigator.hardwareConcurrency||4);let t=this.workerPool.pop();return!t&&this._createdWorkers<Af&&(this._createdWorkers++,t=new m1().worker,t.addEventListener("message",e=>{this.complete(e.data),this.returnWorker(e.target),this.next()})),t}returnWorker(t){this.workerPool.push(t)}complete(t){t.error!==void 0?this.resolveHash[t.uuid].reject(t.error):this.resolveHash[t.uuid].resolve(t.data),this.resolveHash[t.uuid]=null}async _run(t,e){await this._initWorkers();const s=new Promise((r,n)=>{this.queue.push({id:t,arguments:e,resolve:r,reject:n})});return this.next(),s}next(){if(!this.queue.length)return;const t=this.getWorker();if(!t)return;const e=this.queue.pop(),s=e.id;this.resolveHash[Mx]={resolve:e.resolve,reject:e.reject},t.postMessage({data:e.arguments,uuid:Mx++,id:s})}}const Rx=new bR;function Il(i,t,e){i.resource.internal=!0;const s=new Nt(i),r=()=>{delete t.promiseCache[e],Rn.has(e)&&Rn.remove(e)};return s.baseTexture.once("destroyed",()=>{e in t.promiseCache&&(console.warn("[Assets] A BaseTexture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the BaseTexture."),r())}),s.once("destroyed",()=>{i.destroyed||(console.warn("[Assets] A Texture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the Texture."),r())}),s}const vR=[".jpeg",".jpg",".png",".webp",".avif"],_R=["image/jpeg","image/png","image/webp","image/avif"];async function wR(i){const t=await _t.ADAPTER.fetch(i);if(!t.ok)throw new Error(`[loadImageBitmap] Failed to fetch ${i}: ${t.status} ${t.statusText}`);const e=await t.blob();return await createImageBitmap(e)}const qc={name:"loadTextures",extension:{type:gt.LoadParser,priority:Ts.High},config:{preferWorkers:!0,preferCreateImageBitmap:!0,crossOrigin:"anonymous"},test(i){return eo(i,_R)||Ue(i,vR)},async load(i,t,e){var o;const s=globalThis.createImageBitmap&&this.config.preferCreateImageBitmap;let r;s?this.config.preferWorkers&&await Rx.isImageBitmapSupported()?r=await Rx.loadImageBitmap(i):r=await wR(i):r=await new Promise((h,l)=>{const c=new Image;c.crossOrigin=this.config.crossOrigin,c.src=i,c.complete?h(c):(c.onload=()=>h(c),c.onerror=u=>l(u))});const n={...t.data};n.resolution??(n.resolution=Ci(i)),s&&((o=n.resourceOptions)==null?void 0:o.ownsImageBitmap)===void 0&&(n.resourceOptions={...n.resourceOptions},n.resourceOptions.ownsImageBitmap=!0);const a=new Lt(r,n);return a.resource.src=i,Il(a,e,i)},unload(i){i.destroy(!0)}};St.add(qc);const TR=".svg",SR="image/svg+xml",ER={extension:{type:gt.LoadParser,priority:Ts.High},name:"loadSVG",test(i){return eo(i,SR)||Ue(i,TR)},async testParse(i){return Rm.test(i)},async parse(i,t,e){var n;const s=new Rm(i,(n=t==null?void 0:t.data)==null?void 0:n.resourceOptions);await s.load();const r=new Lt(s,{resolution:Ci(i),...t==null?void 0:t.data});return r.resource.src=t.src,Il(r,e,t.src)},async load(i,t){return(await _t.ADAPTER.fetch(i)).text()},unload:qc.unload};St.add(ER);const AR=[".mp4",".m4v",".webm",".ogv"],CR=["video/mp4","video/webm","video/ogg"],IR={name:"loadVideo",extension:{type:gt.LoadParser,priority:Ts.High},config:{defaultAutoPlay:!0,defaultUpdateFPS:0,defaultLoop:!1,defaultMuted:!1,defaultPlaysinline:!0},test(i){return eo(i,CR)||Ue(i,AR)},async load(i,t,e){var a;let s;const r=await(await _t.ADAPTER.fetch(i)).blob(),n=URL.createObjectURL(r);try{const o={autoPlay:this.config.defaultAutoPlay,updateFPS:this.config.defaultUpdateFPS,loop:this.config.defaultLoop,muted:this.config.defaultMuted,playsinline:this.config.defaultPlaysinline,...(a=t==null?void 0:t.data)==null?void 0:a.resourceOptions,autoLoad:!0},h=new o1(n,o);await h.load();const l=new Lt(h,{alphaMode:await LI(),resolution:Ci(i),...t==null?void 0:t.data});l.resource.src=i,s=Il(l,e,i),s.baseTexture.once("destroyed",()=>{URL.revokeObjectURL(n)})}catch(o){throw URL.revokeObjectURL(n),o}return s},unload(i){i.destroy(!0)}};St.add(IR);class PR{constructor(){this._defaultBundleIdentifierOptions={connector:"-",createBundleAssetId:(t,e)=>`${t}${this._bundleIdConnector}${e}`,extractAssetIdFromBundle:(t,e)=>e.replace(`${t}${this._bundleIdConnector}`,"")},this._bundleIdConnector=this._defaultBundleIdentifierOptions.connector,this._createBundleAssetId= Line truncated
Please use Assets.add({ alias, src, data, format, loadParser }) instead.`),a.push({alias:t,src:e,data:s,format:r,loadParser:n})):Array.isArray(t)?a.push(...t):a.push(t);let o;o=h=>{this.hasKey(h)&&console.warn(`[Resolver] already has key: ${h} overwriting`)},hr(a).forEach(h=>{const{src:l,srcs:c}=h;let{data:u,format:d,loadParser:f}=h;const m=hr(l||c).map(y=>typeof y=="string"?tR(y):Array.isArray(y)?y:[y]),p=this.getAlias(h);Array.isArray(p)?p.forEach(o):o(p);const g=[];m.forEach(y=>{y.forEach(_=>{let v={};if(typeof _!="object"){v.src=_;for(let b=0;b<this._parsers.length;b++){const T=this._parsers[b];if(T.test(_)){v=T.parse(_);break}}}else u=_.data??u,d=_.format??d,f=_.loadParser??f,v={...v,..._};if(!p)throw new Error(`[Resolver] alias is undefined for this asset: ${v.src}`);v=this.buildResolvedAsset(v,{aliases:p,data:u,format:d,loadParser:f}),g.push(v)})}),p.forEach(y=>{this._assetMap[y]=g})})}resolveBundle(t){const e=Qh(t);t=hr(t);const s={};return t.forEach(r=>{const n=this._bundles[r];if(n){const a=this.resolve(n),o={};for(const h in a){const l=a[h];o[this._extractAssetIdFromBundle(r,h)]=l}s[r]=o}}),e?s[t[0]]:s}resolveUrl(t){const e=this.resolve(t);if(typeof t!="string"){const s={};for(const r in e)s[r]=e[r].src;return s}return e.src}resolve(t){const e=Qh(t);t=hr(t);const s={};return t.forEach(r=>{if(!this._resolverHash[r])if(this._assetMap[r]){let n=this._assetMap[r];const a=n[0],o=this._getPreferredOrder(n);o==null||o.priority.forEach(h=>{o.params[h].forEach(l=>{const c=n.filter(u=>u[h]?u[h]===l:!1);c.length&&(n=c)})}),this._resolverHash[r]=n[0]??a}else this._resolverHash[r]=this.buildResolvedAsset({alias:[r],src:r},{});s[r]=this._resolverHash[r]}),e?s[t[0]]:s}hasKey(t){return!!this._assetMap[t]}hasBundle(t){return!!this._bundles[t]}_getPreferredOrder(t){for(let e=0;e<t.length;e++){const s=t[0],r=this._preferredOrder.find(n=>n.params.format.includes(s.format));if(r)return r}return this._preferredOrder[0]}_appendDefaultSearchParams(t){if(!this._defaultSearchParams)return t;const e=/\?/.test(t)?"&":"?";return`${t}${e}${this._defaultSearchParams}`}buildResolvedAsset(t,e){const{aliases:s,data:r,loadParser:n,format:a}=e;return(this._basePath||this._rootPath)&&(t.src=ye.toAbsolute(t.src,this._basePath,this._rootPath)),t.alias=s??t.alias??[t.src],t.src=this._appendDefaultSearchParams(t.src),t.data={...r||{},...t.data},t.loadParser=n??t.loadParser,t.format=a??t.format??ye.extname(t.src).slice(1),t.srcs=t.src,t.name=t.alias,t}}class MR{constructor(){this._detections=[],this._initialized=!1,this.resolver=new PR,this.loader=new sR,this.cache=Rn,this._backgroundLoader=new QM(this.loader),this._backgroundLoader.active=!0,this.reset()}async init(t={}){var n,a;if(this._initialized){console.warn("[Assets]AssetManager already initialized, did you load before calling this Assets.init()?");return}if(this._initialized=!0,t.defaultSearchParams&&this.resolver.setDefaultSearchParams(t.defaultSearchParams),t.basePath&&(this.resolver.basePath=t.basePath),t.bundleIdentifier&&this.resolver.setBundleIdentifier(t.bundleIdentifier),t.manifest){let o=t.manifest;typeof o=="string"&&(o=await this.load(o)),this.resolver.addManifest(o)}const e=((n=t.texturePreference)==null?void 0:n.resolution)??1,s=typeof e=="number"?[e]:e,r=await this._detectFormats({preferredFormats:(a=t.texturePreference)==null?void 0:a.format,skipDetections:t.skipDetections,detections:this._detections});this.resolver.prefer({params:{format:r,resolution:s}}),t.preferences&&this.setPreferences(t.preferences)}add(t,e,s,r,n){this.resolver.add(t,e,s,r,n)}async load(t,e){this._initialized||await this.init();const s=Qh(t),r=hr(t).map(o=>{if(typeof o!="string"){const h=this.resolver.getAlias(o);return h.some(l=>!this.resolver.hasKey(l))&&this.add(o),Array.isArray(h)?h[0]:h}return this.resolver.hasKey(o)||this.add({alias:o,src:o}),o}),n=this.resolver.resolve(r),a=await this._mapLoadToResolve(n,e);return s?a[r[0]]:a}addBundle(t,e){this.resolver.addBundle(t,e)}async loadBundle(t,e){this._initialized||await this.init();let s=!1;typeof t=="string"&&(s=!0,t=[t]);const r=this.resolver.resolveBundle(t),n={},a=Object.keys(r);let o=0,h=0;const l=()=>{e==null||e(++o/h)},c=a.map(u=>{const d=r[u];return h+=Object.keys(d).length,this._mapLoadToResolve(d,l).then(f=>{n[u]=f})});return await Promise.all(c),s?n[t[0]]:n}async backgroundLoad(t){this._initialized||await this.init(),typeof t=="string"&&(t=[t]);const e=this.resolver.resolve(t);this._backgroundLoader.add(Object.values(e))}async backgroundLoadBundle(t){this._initialized||await this.init(),typeof t=="string"&&(t=[t]);const e=this.resolver.resolveBundle(t);Object.values(e).forEach(s=>{this._backgroundLoader.add(Object.values(s))})}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=!1}get(t){if(typeof t=="string")return Rn.get(t);const e={};for(let s=0;s<t.length;s++)e[s]=Rn.get(t[s]);return e}async _mapLoadToResolve(t,e){const s=Object.values(t),r=Object.keys(t);this._backgroundLoader.active=!1;co Line truncated
`;let Ba=null;class p1{constructor(){Ba||(Ba=URL.createObjectURL(new Blob([vR],{type:"application/javascript"}))),this.worker=new Worker(Ba)}}p1.revokeObjectURL=function(){Ba&&(URL.revokeObjectURL(Ba),Ba=null)};let Rx=0,If;class _R{constructor(){this._initialized=!1,this._createdWorkers=0,this.workerPool=[],this.queue=[],this.resolveHash={}}isImageBitmapSupported(){return this._isImageBitmapSupported!==void 0?this._isImageBitmapSupported:(this._isImageBitmapSupported=new Promise(t=>{const{worker:e}=new Gm;e.addEventListener("message",s=>{e.terminate(),Gm.revokeObjectURL(),t(s.data)})}),this._isImageBitmapSupported)}loadImageBitmap(t){return this._run("loadImageBitmap",[t])}async _initWorkers(){this._initialized||(this._initialized=!0)}getWorker(){If===void 0&&(If=navigator.hardwareConcurrency||4);let t=this.workerPool.pop();return!t&&this._createdWorkers<If&&(this._createdWorkers++,t=new p1().worker,t.addEventListener("message",e=>{this.complete(e.data),this.returnWorker(e.target),this.next()})),t}returnWorker(t){this.workerPool.push(t)}complete(t){t.error!==void 0?this.resolveHash[t.uuid].reject(t.error):this.resolveHash[t.uuid].resolve(t.data),this.resolveHash[t.uuid]=null}async _run(t,e){await this._initWorkers();const s=new Promise((r,n)=>{this.queue.push({id:t,arguments:e,resolve:r,reject:n})});return this.next(),s}next(){if(!this.queue.length)return;const t=this.getWorker();if(!t)return;const e=this.queue.pop(),s=e.id;this.resolveHash[Rx]={resolve:e.resolve,reject:e.reject},t.postMessage({data:e.arguments,uuid:Rx++,id:s})}}const Fx=new _R;function Ml(i,t,e){i.resource.internal=!0;const s=new Ot(i),r=()=>{delete t.promiseCache[e],Rn.has(e)&&Rn.remove(e)};return s.baseTexture.once("destroyed",()=>{e in t.promiseCache&&(console.warn("[Assets] A BaseTexture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the BaseTexture."),r())}),s.once("destroyed",()=>{i.destroyed||(console.warn("[Assets] A Texture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the Texture."),r())}),s}const wR=[".jpeg",".jpg",".png",".webp",".avif"],TR=["image/jpeg","image/png","image/webp","image/avif"];async function SR(i){const t=await _t.ADAPTER.fetch(i);if(!t.ok)throw new Error(`[loadImageBitmap] Failed to fetch ${i}: ${t.status} ${t.statusText}`);const e=await t.blob();return await createImageBitmap(e)}const Zc={name:"loadTextures",extension:{type:gt.LoadParser,priority:Ts.High},config:{preferWorkers:!0,preferCreateImageBitmap:!0,crossOrigin:"anonymous"},test(i){return eo(i,TR)||Ue(i,wR)},async load(i,t,e){var o;const s=globalThis.createImageBitmap&&this.config.preferCreateImageBitmap;let r;s?this.config.preferWorkers&&await Fx.isImageBitmapSupported()?r=await Fx.loadImageBitmap(i):r=await SR(i):r=await new Promise((h,l)=>{const c=new Image;c.crossOrigin=this.config.crossOrigin,c.src=i,c.complete?h(c):(c.onload=()=>h(c),c.onerror=u=>l(u))});const n={...t.data};n.resolution??(n.resolution=Ci(i)),s&&((o=n.resourceOptions)==null?void 0:o.ownsImageBitmap)===void 0&&(n.resourceOptions={...n.resourceOptions},n.resourceOptions.ownsImageBitmap=!0);const a=new Lt(r,n);return a.resource.src=i,Ml(a,e,i)},unload(i){i.destroy(!0)}};St.add(Zc);const ER=".svg",AR="image/svg+xml",CR={extension:{type:gt.LoadParser,priority:Ts.High},name:"loadSVG",test(i){return eo(i,AR)||Ue(i,ER)},async testParse(i){return km.test(i)},async parse(i,t,e){var n;const s=new km(i,(n=t==null?void 0:t.data)==null?void 0:n.resourceOptions);await s.load();const r=new Lt(s,{resolution:Ci(i),...t==null?void 0:t.data});return r.resource.src=t.src,Ml(r,e,t.src)},async load(i,t){return(await _t.ADAPTER.fetch(i)).text()},unload:Zc.unload};St.add(CR);const IR=[".mp4",".m4v",".webm",".ogv"],PR=["video/mp4","video/webm","video/ogg"],MR={name:"loadVideo",extension:{type:gt.LoadParser,priority:Ts.High},config:{defaultAutoPlay:!0,defaultUpdateFPS:0,defaultLoop:!1,defaultMuted:!1,defaultPlaysinline:!0},test(i){return eo(i,PR)||Ue(i,IR)},async load(i,t,e){var a;let s;const r=await(await _t.ADAPTER.fetch(i)).blob(),n=URL.createObjectURL(r);try{const o={autoPlay:this.config.defaultAutoPlay,updateFPS:this.config.defaultUpdateFPS,loop:this.config.defaultLoop,muted:this.config.defaultMuted,playsinline:this.config.defaultPlaysinline,...(a=t==null?void 0:t.data)==null?void 0:a.resourceOptions,autoLoad:!0},h=new l1(n,o);await h.load();const l=new Lt(h,{alphaMode:await OI(),resolution:Ci(i),...t==null?void 0:t.data});l.resource.src=i,s=Ml(l,e,i),s.baseTexture.once("destroyed",()=>{URL.revokeObjectURL(n)})}catch(o){throw URL.revokeObjectURL(n),o}return s},unload(i){i.destroy(!0)}};St.add(MR);class RR{constructor(){this._defaultBundleIdentifierOptions={connector:"-",createBundleAssetId:(t,e)=>`${t}${this._bundleIdConnector}${e}`,extractAssetIdFromBundle:(t,e)=>e.replace(`${t}${this._bundleIdConnector}`,"")},this._bundleIdConnector=this._defaultBundleIdentifierOptions.connector,this._createBundleAssetId= Line truncated
Please use Assets.add({ alias, src, data, format, loadParser }) instead.`),a.push({alias:t,src:e,data:s,format:r,loadParser:n})):Array.isArray(t)?a.push(...t):a.push(t);let o;o=h=>{this.hasKey(h)&&console.warn(`[Resolver] already has key: ${h} overwriting`)},hr(a).forEach(h=>{const{src:l,srcs:c}=h;let{data:u,format:d,loadParser:f}=h;const m=hr(l||c).map(y=>typeof y=="string"?sR(y):Array.isArray(y)?y:[y]),p=this.getAlias(h);Array.isArray(p)?p.forEach(o):o(p);const g=[];m.forEach(y=>{y.forEach(_=>{let v={};if(typeof _!="object"){v.src=_;for(let b=0;b<this._parsers.length;b++){const T=this._parsers[b];if(T.test(_)){v=T.parse(_);break}}}else u=_.data??u,d=_.format??d,f=_.loadParser??f,v={...v,..._};if(!p)throw new Error(`[Resolver] alias is undefined for this asset: ${v.src}`);v=this.buildResolvedAsset(v,{aliases:p,data:u,format:d,loadParser:f}),g.push(v)})}),p.forEach(y=>{this._assetMap[y]=g})})}resolveBundle(t){const e=ec(t);t=hr(t);const s={};return t.forEach(r=>{const n=this._bundles[r];if(n){const a=this.resolve(n),o={};for(const h in a){const l=a[h];o[this._extractAssetIdFromBundle(r,h)]=l}s[r]=o}}),e?s[t[0]]:s}resolveUrl(t){const e=this.resolve(t);if(typeof t!="string"){const s={};for(const r in e)s[r]=e[r].src;return s}return e.src}resolve(t){const e=ec(t);t=hr(t);const s={};return t.forEach(r=>{if(!this._resolverHash[r])if(this._assetMap[r]){let n=this._assetMap[r];const a=n[0],o=this._getPreferredOrder(n);o==null||o.priority.forEach(h=>{o.params[h].forEach(l=>{const c=n.filter(u=>u[h]?u[h]===l:!1);c.length&&(n=c)})}),this._resolverHash[r]=n[0]??a}else this._resolverHash[r]=this.buildResolvedAsset({alias:[r],src:r},{});s[r]=this._resolverHash[r]}),e?s[t[0]]:s}hasKey(t){return!!this._assetMap[t]}hasBundle(t){return!!this._bundles[t]}_getPreferredOrder(t){for(let e=0;e<t.length;e++){const s=t[0],r=this._preferredOrder.find(n=>n.params.format.includes(s.format));if(r)return r}return this._preferredOrder[0]}_appendDefaultSearchParams(t){if(!this._defaultSearchParams)return t;const e=/\?/.test(t)?"&":"?";return`${t}${e}${this._defaultSearchParams}`}buildResolvedAsset(t,e){const{aliases:s,data:r,loadParser:n,format:a}=e;return(this._basePath||this._rootPath)&&(t.src=ye.toAbsolute(t.src,this._basePath,this._rootPath)),t.alias=s??t.alias??[t.src],t.src=this._appendDefaultSearchParams(t.src),t.data={...r||{},...t.data},t.loadParser=n??t.loadParser,t.format=a??t.format??ye.extname(t.src).slice(1),t.srcs=t.src,t.name=t.alias,t}}class FR{constructor(){this._detections=[],this._initialized=!1,this.resolver=new RR,this.loader=new iR,this.cache=Rn,this._backgroundLoader=new eR(this.loader),this._backgroundLoader.active=!0,this.reset()}async init(t={}){var n,a;if(this._initialized){console.warn("[Assets]AssetManager already initialized, did you load before calling this Assets.init()?");return}if(this._initialized=!0,t.defaultSearchParams&&this.resolver.setDefaultSearchParams(t.defaultSearchParams),t.basePath&&(this.resolver.basePath=t.basePath),t.bundleIdentifier&&this.resolver.setBundleIdentifier(t.bundleIdentifier),t.manifest){let o=t.manifest;typeof o=="string"&&(o=await this.load(o)),this.resolver.addManifest(o)}const e=((n=t.texturePreference)==null?void 0:n.resolution)??1,s=typeof e=="number"?[e]:e,r=await this._detectFormats({preferredFormats:(a=t.texturePreference)==null?void 0:a.format,skipDetections:t.skipDetections,detections:this._detections});this.resolver.prefer({params:{format:r,resolution:s}}),t.preferences&&this.setPreferences(t.preferences)}add(t,e,s,r,n){this.resolver.add(t,e,s,r,n)}async load(t,e){this._initialized||await this.init();const s=ec(t),r=hr(t).map(o=>{if(typeof o!="string"){const h=this.resolver.getAlias(o);return h.some(l=>!this.resolver.hasKey(l))&&this.add(o),Array.isArray(h)?h[0]:h}return this.resolver.hasKey(o)||this.add({alias:o,src:o}),o}),n=this.resolver.resolve(r),a=await this._mapLoadToResolve(n,e);return s?a[r[0]]:a}addBundle(t,e){this.resolver.addBundle(t,e)}async loadBundle(t,e){this._initialized||await this.init();let s=!1;typeof t=="string"&&(s=!0,t=[t]);const r=this.resolver.resolveBundle(t),n={},a=Object.keys(r);let o=0,h=0;const l=()=>{e==null||e(++o/h)},c=a.map(u=>{const d=r[u];return h+=Object.keys(d).length,this._mapLoadToResolve(d,l).then(f=>{n[u]=f})});return await Promise.all(c),s?n[t[0]]:n}async backgroundLoad(t){this._initialized||await this.init(),typeof t=="string"&&(t=[t]);const e=this.resolver.resolve(t);this._backgroundLoader.add(Object.values(e))}async backgroundLoadBundle(t){this._initialized||await this.init(),typeof t=="string"&&(t=[t]);const e=this.resolver.resolveBundle(t);Object.values(e).forEach(s=>{this._backgroundLoader.add(Object.values(s))})}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=!1}get(t){if(typeof t=="string")return Rn.get(t);const e={};for(let s=0;s<t.length;s++)e[s]=Rn.get(t[s]);return e}async _mapLoadToResolve(t,e){const s=Object.values(t),r=Object.keys(t);this._backgroundLoader.active=!1;co Line truncated
uniform vec4 uColor;
uniform sampler2D uSampler;
@@ -956,7 +956,7 @@ void main(void)
{
gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;
}
`,A2=`attribute vec2 aVertexPosition;
`,I2=`attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
@@ -971,7 +971,7 @@ void main(void)
vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;
}
`;class rl extends Js{constructor(t,e){const s={uSampler:t,alpha:1,uTextureMatrix:fe.IDENTITY,uColor:new Float32Array([1,1,1,1])};e=Object.assign({tint:16777215,alpha:1,pluginName:"batch"},e),e.uniforms&&Object.assign(s,e.uniforms),super(e.program||ur.from(A2,E2),s),this._colorDirty=!1,this.uvMatrix=new jc(t),this.batchable=e.program===void 0,this.pluginName=e.pluginName,this._tintColor=new Wt(e.tint),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0,this.alpha=e.alpha}get texture(){return this.uniforms.uSampler}set texture(t){this.uniforms.uSampler!==t&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!t.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=t,this.uvMatrix.texture=t)}set alpha(t){t!==this._alpha&&(this._alpha=t,this._colorDirty=!0)}get alpha(){return this._alpha}set tint(t){t!==this.tint&&(this._tintColor.setValue(t),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0)}get tint(){return this._tintColor.value}get tintValue(){return this._tintColor.toNumber()}update(){if(this._colorDirty){this._colorDirty=!1;const t=this.texture.baseTexture.alphaMode;Wt.shared.setValue(this._tintColor).premultiply(this._alpha,t).toArray(this.uniforms.uColor)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)}}class NL extends zn{constructor(t=Nt.EMPTY,e,s,r,n){const a=new Zc(e,s,r);a.getBuffer("aVertexPosition").static=!1;const o=new rl(t);super(a,o,null,n),this.autoUpdate=!0}get vertices(){return this.geometry.getBuffer("aVertexPosition").data}set vertices(t){this.geometry.getBuffer("aVertexPosition").data=t}_render(t){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),super._render(t)}}class Gx{constructor(t,e,s){this.geometry=new er,this.indexBuffer=null,this.size=s,this.dynamicProperties=[],this.staticProperties=[];for(let r=0;r<t.length;++r){let n=t[r];n={attributeName:n.attributeName,size:n.size,uploadFunction:n.uploadFunction,type:n.type||wt.FLOAT,offset:n.offset},e[r]?this.dynamicProperties.push(n):this.staticProperties.push(n)}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()}initBuffers(){const t=this.geometry;let e=0;this.indexBuffer=new ne(jI(this.size),!0,!0),t.addIndex(this.indexBuffer),this.dynamicStride=0;for(let a=0;a<this.dynamicProperties.length;++a){const o=this.dynamicProperties[a];o.offset=e,e+=o.size,this.dynamicStride+=o.size}const s=new ArrayBuffer(this.size*this.dynamicStride*4*4);this.dynamicData=new Float32Array(s),this.dynamicDataUint32=new Uint32Array(s),this.dynamicBuffer=new ne(this.dynamicData,!1,!1);let r=0;this.staticStride=0;for(let a=0;a<this.staticProperties.length;++a){const o=this.staticProperties[a];o.offset=r,r+=o.size,this.staticStride+=o.size}const n=new ArrayBuffer(this.size*this.staticStride*4*4);this.staticData=new Float32Array(n),this.staticDataUint32=new Uint32Array(n),this.staticBuffer=new ne(this.staticData,!0,!1);for(let a=0;a<this.dynamicProperties.length;++a){const o=this.dynamicProperties[a];t.addAttribute(o.attributeName,this.dynamicBuffer,0,o.type===wt.UNSIGNED_BYTE,o.type,this.dynamicStride*4,o.offset*4)}for(let a=0;a<this.staticProperties.length;++a){const o=this.staticProperties[a];t.addAttribute(o.attributeName,this.staticBuffer,0,o.type===wt.UNSIGNED_BYTE,o.type,this.staticStride*4,o.offset*4)}}uploadDynamic(t,e,s){for(let r=0;r<this.dynamicProperties.length;r++){const n=this.dynamicProperties[r];n.uploadFunction(t,e,s,n.type===wt.UNSIGNED_BYTE?this.dynamicDataUint32:this.dynamicData,this.dynamicStride,n.offset)}this.dynamicBuffer._updateID++}uploadStatic(t,e,s){for(let r=0;r<this.staticProperties.length;r++){const n=this.staticProperties[r];n.uploadFunction(t,e,s,n.type===wt.UNSIGNED_BYTE?this.staticDataUint32:this.staticData,this.staticStride,n.offset)}this.staticBuffer._updateID++}destroy(){this.indexBuffer=null,this.dynamicProperties=null,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this.staticProperties=null,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.geometry.destroy()}}var C2=`varying vec2 vTextureCoord;
`;class il extends Js{constructor(t,e){const s={uSampler:t,alpha:1,uTextureMatrix:fe.IDENTITY,uColor:new Float32Array([1,1,1,1])};e=Object.assign({tint:16777215,alpha:1,pluginName:"batch"},e),e.uniforms&&Object.assign(s,e.uniforms),super(e.program||ur.from(I2,C2),s),this._colorDirty=!1,this.uvMatrix=new Il(t),this.batchable=e.program===void 0,this.pluginName=e.pluginName,this._tintColor=new Wt(e.tint),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0,this.alpha=e.alpha}get texture(){return this.uniforms.uSampler}set texture(t){this.uniforms.uSampler!==t&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!t.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=t,this.uvMatrix.texture=t)}set alpha(t){t!==this._alpha&&(this._alpha=t,this._colorDirty=!0)}get alpha(){return this._alpha}set tint(t){t!==this.tint&&(this._tintColor.setValue(t),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0)}get tint(){return this._tintColor.value}get tintValue(){return this._tintColor.toNumber()}update(){if(this._colorDirty){this._colorDirty=!1;const t=this.texture.baseTexture.alphaMode;Wt.shared.setValue(this._tintColor).premultiply(this._alpha,t).toArray(this.uniforms.uColor)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)}}class XL extends zn{constructor(t=Ot.EMPTY,e,s,r,n){const a=new Qc(e,s,r);a.getBuffer("aVertexPosition").static=!1;const o=new il(t);super(a,o,null,n),this.autoUpdate=!0}get vertices(){return this.geometry.getBuffer("aVertexPosition").data}set vertices(t){this.geometry.getBuffer("aVertexPosition").data=t}_render(t){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),super._render(t)}}class $x{constructor(t,e,s){this.geometry=new er,this.indexBuffer=null,this.size=s,this.dynamicProperties=[],this.staticProperties=[];for(let r=0;r<t.length;++r){let n=t[r];n={attributeName:n.attributeName,size:n.size,uploadFunction:n.uploadFunction,type:n.type||wt.FLOAT,offset:n.offset},e[r]?this.dynamicProperties.push(n):this.staticProperties.push(n)}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()}initBuffers(){const t=this.geometry;let e=0;this.indexBuffer=new ne(KI(this.size),!0,!0),t.addIndex(this.indexBuffer),this.dynamicStride=0;for(let a=0;a<this.dynamicProperties.length;++a){const o=this.dynamicProperties[a];o.offset=e,e+=o.size,this.dynamicStride+=o.size}const s=new ArrayBuffer(this.size*this.dynamicStride*4*4);this.dynamicData=new Float32Array(s),this.dynamicDataUint32=new Uint32Array(s),this.dynamicBuffer=new ne(this.dynamicData,!1,!1);let r=0;this.staticStride=0;for(let a=0;a<this.staticProperties.length;++a){const o=this.staticProperties[a];o.offset=r,r+=o.size,this.staticStride+=o.size}const n=new ArrayBuffer(this.size*this.staticStride*4*4);this.staticData=new Float32Array(n),this.staticDataUint32=new Uint32Array(n),this.staticBuffer=new ne(this.staticData,!0,!1);for(let a=0;a<this.dynamicProperties.length;++a){const o=this.dynamicProperties[a];t.addAttribute(o.attributeName,this.dynamicBuffer,0,o.type===wt.UNSIGNED_BYTE,o.type,this.dynamicStride*4,o.offset*4)}for(let a=0;a<this.staticProperties.length;++a){const o=this.staticProperties[a];t.addAttribute(o.attributeName,this.staticBuffer,0,o.type===wt.UNSIGNED_BYTE,o.type,this.staticStride*4,o.offset*4)}}uploadDynamic(t,e,s){for(let r=0;r<this.dynamicProperties.length;r++){const n=this.dynamicProperties[r];n.uploadFunction(t,e,s,n.type===wt.UNSIGNED_BYTE?this.dynamicDataUint32:this.dynamicData,this.dynamicStride,n.offset)}this.dynamicBuffer._updateID++}uploadStatic(t,e,s){for(let r=0;r<this.staticProperties.length;r++){const n=this.staticProperties[r];n.uploadFunction(t,e,s,n.type===wt.UNSIGNED_BYTE?this.staticDataUint32:this.staticData,this.staticStride,n.offset)}this.staticBuffer._updateID++}destroy(){this.indexBuffer=null,this.dynamicProperties=null,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this.staticProperties=null,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.geometry.destroy()}}var P2=`varying vec2 vTextureCoord;
varying vec4 vColor;
uniform sampler2D uSampler;
@@ -979,7 +979,7 @@ uniform sampler2D uSampler;
void main(void){
vec4 color = texture2D(uSampler, vTextureCoord) * vColor;
gl_FragColor = color;
}`,I2=`attribute vec2 aVertexPosition;
}`,M2=`attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
attribute vec4 aColor;
@@ -1004,8 +1004,8 @@ void main(void){
vTextureCoord = aTextureCoord;
vColor = aColor * uColor;
}
`;class w1 extends zc{constructor(t){super(t),this.shader=null,this.properties=null,this.tempMatrix=new fe,this.properties=[{attributeName:"aVertexPosition",size:2,uploadFunction:this.uploadVertices,offset:0},{attributeName:"aPositionCoord",size:2,uploadFunction:this.uploadPosition,offset:0},{attributeName:"aRotation",size:1,uploadFunction:this.uploadRotation,offset:0},{attributeName:"aTextureCoord",size:2,uploadFunction:this.uploadUvs,offset:0},{attributeName:"aColor",size:1,type:wt.UNSIGNED_BYTE,uploadFunction:this.uploadTint,offset:0}],this.shader=Js.from(I2,C2,{}),this.state=jr.for2d()}render(t){const e=t.children,s=t._maxSize,r=t._batchSize,n=this.renderer;let a=e.length;if(a===0)return;a>s&&!t.autoResize&&(a=s);let o=t._buffers;o||(o=t._buffers=this.generateBuffers(t));const h=e[0]._texture.baseTexture,l=h.alphaMode>0;this.state.blendMode=w_(t.blendMode,l),n.state.set(this.state);const c=n.gl,u=t.worldTransform.copyTo(this.tempMatrix);u.prepend(n.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=u.toArray(!0),this.shader.uniforms.uColor=Wt.shared.setValue(t.tintRgb).premultiply(t.worldAlpha,l).toArray(this.shader.uniforms.uColor),this.shader.uniforms.uSampler=h,this.renderer.shader.bind(this.shader);let d=!1;for(let f=0,m=0;f<a;f+=r,m+=1){let p=a-f;p>r&&(p=r),m>=o.length&&o.push(this._generateOneMoreBuffer(t));const g=o[m];g.uploadDynamic(e,f,p);const y=t._bufferUpdateIDs[m]||0;d=d||g._updateID<y,d&&(g._updateID=t._updateID,g.uploadStatic(e,f,p)),n.geometry.bind(g.geometry),c.drawElements(c.TRIANGLES,p*6,c.UNSIGNED_SHORT,0)}}generateBuffers(t){const e=[],s=t._maxSize,r=t._batchSize,n=t._properties;for(let a=0;a<s;a+=r)e.push(new Gx(this.properties,n,r));return e}_generateOneMoreBuffer(t){const e=t._batchSize,s=t._properties;return new Gx(this.properties,s,e)}uploadVertices(t,e,s,r,n,a){let o=0,h=0,l=0,c=0;for(let u=0;u<s;++u){const d=t[e+u],f=d._texture,m=d.scale.x,p=d.scale.y,g=f.trim,y=f.orig;g?(h=g.x-d.anchor.x*y.width,o=h+g.width,c=g.y-d.anchor.y*y.height,l=c+g.height):(o=y.width*(1-d.anchor.x),h=y.width*-d.anchor.x,l=y.height*(1-d.anchor.y),c=y.height*-d.anchor.y),r[a]=h*m,r[a+1]=c*p,r[a+n]=o*m,r[a+n+1]=c*p,r[a+n*2]=o*m,r[a+n*2+1]=l*p,r[a+n*3]=h*m,r[a+n*3+1]=l*p,a+=n*4}}uploadPosition(t,e,s,r,n,a){for(let o=0;o<s;o++){const h=t[e+o].position;r[a]=h.x,r[a+1]=h.y,r[a+n]=h.x,r[a+n+1]=h.y,r[a+n*2]=h.x,r[a+n*2+1]=h.y,r[a+n*3]=h.x,r[a+n*3+1]=h.y,a+=n*4}}uploadRotation(t,e,s,r,n,a){for(let o=0;o<s;o++){const h=t[e+o].rotation;r[a]=h,r[a+n]=h,r[a+n*2]=h,r[a+n*3]=h,a+=n*4}}uploadUvs(t,e,s,r,n,a){for(let o=0;o<s;++o){const h=t[e+o]._texture._uvs;h?(r[a]=h.x0,r[a+1]=h.y0,r[a+n]=h.x1,r[a+n+1]=h.y1,r[a+n*2]=h.x2,r[a+n*2+1]=h.y2,r[a+n*3]=h.x3,r[a+n*3+1]=h.y3,a+=n*4):(r[a]=0,r[a+1]=0,r[a+n]=0,r[a+n+1]=0,r[a+n*2]=0,r[a+n*2+1]=0,r[a+n*3]=0,r[a+n*3+1]=0,a+=n*4)}}uploadTint(t,e,s,r,n,a){for(let o=0;o<s;++o){const h=t[e+o],l=Wt.shared.setValue(h._tintRGB).toPremultiplied(h.alpha,h.texture.baseTexture.alphaMode>0);r[a]=l,r[a+n]=l,r[a+n*2]=l,r[a+n*3]=l,a+=n*4}}destroy(){super.destroy(),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null}}w1.extension={name:"particle",type:gt.RendererPlugin};St.add(w1);var Jc=(i=>(i[i.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",i[i.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL",i))(Jc||{});const ch={willReadFrequently:!0},Pr=class Ct{static get experimentalLetterSpacingSupported(){let t=Ct._experimentalLetterSpacingSupported;if(t!==void 0){const e=_t.ADAPTER.getCanvasRenderingContext2D().prototype;t=Ct._experimentalLetterSpacingSupported="letterSpacing"in e||"textLetterSpacing"in e}return t}constructor(t,e,s,r,n,a,o,h,l){this.text=t,this.style=e,this.width=s,this.height=r,this.lines=n,this.lineWidths=a,this.lineHeight=o,this.maxLineWidth=h,this.fontProperties=l}static measureText(t,e,s,r=Ct._canvas){s=s??e.wordWrap;const n=e.toFontString(),a=Ct.measureFont(n);a.fontSize===0&&(a.fontSize=e.fontSize,a.ascent=e.fontSize);const o=r.getContext("2d",ch);o.font=n;const h=(s?Ct.wordWrap(t,e,r):t).split(/(?:\r\n|\r|\n)/),l=new Array(h.length);let c=0;for(let m=0;m<h.length;m++){const p=Ct._measureText(h[m],e.letterSpacing,o);l[m]=p,c=Math.max(c,p)}let u=c+e.strokeThickness;e.dropShadow&&(u+=e.dropShadowDistance);const d=e.lineHeight||a.fontSize+e.strokeThickness;let f=Math.max(d,a.fontSize+e.strokeThickness*2)+e.leading+(h.length-1)*(d+e.leading);return e.dropShadow&&(f+=e.dropShadowDistance),new Ct(t,e,u,f,h,l,d+e.leading,c,a)}static _measureText(t,e,s){let r=!1;Ct.experimentalLetterSpacingSupported&&(Ct.experimentalLetterSpacing?(s.letterSpacing=`${e}px`,s.textLetterSpacing=`${e}px`,r=!0):(s.letterSpacing="0px",s.textLetterSpacing="0px"));let n=s.measureText(t).width;return n>0&&(r?n-=e:n+=(Ct.graphemeSegmenter(t).length-1)*e),n}static wordWrap(t,e,s=Ct._canvas){const r=s.getContext("2d",ch);let n=0,a="",o="";const h=Object.create(null),{letterSpacing:l,whiteSpace:c}=e,u=Ct.collapseSpaces(c),d=Ct.collapseNewlines(c);let f=!u;const m=e.wordWrapWidth+l, Line truncated
`:t,t}static getFromCache(t,e,s,r){let n=s[t];return typeof n!="number"&&(n=Ct._measureText(t,e,r)+e,s[t]=n),n}static collapseSpaces(t){return t==="normal"||t==="pre-line"}static collapseNewlines(t){return t==="normal"}static trimRight(t){if(typeof t!="string")return"";for(let e=t.length-1;e>=0;e--){const s=t[e];if(!Ct.isBreakingSpace(s))break;t=t.slice(0,-1)}return t}static isNewline(t){return typeof t!="string"?!1:Ct._newlines.includes(t.charCodeAt(0))}static isBreakingSpace(t,e){return typeof t!="string"?!1:Ct._breakingSpaces.includes(t.charCodeAt(0))}static tokenize(t){const e=[];let s="";if(typeof t!="string")return e;for(let r=0;r<t.length;r++){const n=t[r],a=t[r+1];if(Ct.isBreakingSpace(n,a)||Ct.isNewline(n)){s!==""&&(e.push(s),s=""),e.push(n);continue}s+=n}return s!==""&&e.push(s),e}static canBreakWords(t,e){return e}static canBreakChars(t,e,s,r,n){return!0}static wordWrapSplit(t){return Ct.graphemeSegmenter(t)}static measureFont(t){if(Ct._fonts[t])return Ct._fonts[t];const e={ascent:0,descent:0,fontSize:0},s=Ct._canvas,r=Ct._context;r.font=t;const n=Ct.METRICS_STRING+Ct.BASELINE_SYMBOL,a=Math.ceil(r.measureText(n).width);let o=Math.ceil(r.measureText(Ct.BASELINE_SYMBOL).width);const h=Math.ceil(Ct.HEIGHT_MULTIPLIER*o);if(o=o*Ct.BASELINE_MULTIPLIER|0,a===0||h===0)return Ct._fonts[t]=e,e;s.width=a,s.height=h,r.fillStyle="#f00",r.fillRect(0,0,a,h),r.font=t,r.textBaseline="alphabetic",r.fillStyle="#000",r.fillText(n,0,o);const l=r.getImageData(0,0,a,h).data,c=l.length,u=a*4;let d=0,f=0,m=!1;for(d=0;d<o;++d){for(let p=0;p<u;p+=4)if(l[f+p]!==255){m=!0;break}if(!m)f+=u;else break}for(e.ascent=o-d,f=c-u,m=!1,d=h;d>o;--d){for(let p=0;p<u;p+=4)if(l[f+p]!==255){m=!0;break}if(!m)f-=u;else break}return e.descent=d-o,e.fontSize=e.ascent+e.descent,Ct._fonts[t]=e,e}static clearMetrics(t=""){t?delete Ct._fonts[t]:Ct._fonts={}}static get _canvas(){var t;if(!Ct.__canvas){let e;try{const s=new OffscreenCanvas(0,0);if((t=s.getContext("2d",ch))!=null&&t.measureText)return Ct.__canvas=s,s;e=_t.ADAPTER.createCanvas()}catch{e=_t.ADAPTER.createCanvas()}e.width=e.height=10,Ct.__canvas=e}return Ct.__canvas}static get _context(){return Ct.__context||(Ct.__context=Ct._canvas.getContext("2d",ch)),Ct.__context}};Pr.METRICS_STRING="|ÉqÅ",Pr.BASELINE_SYMBOL="M",Pr.BASELINE_MULTIPLIER=1.4,Pr.HEIGHT_MULTIPLIER=2,Pr.graphemeSegmenter=(()=>{if(typeof(Intl==null?void 0:Intl.Segmenter)=="function"){const i=new Intl.Segmenter;return t=>[...i.segment(t)].map(e=>e.segment)}return i=>[...i]})(),Pr.experimentalLetterSpacing=!1,Pr._fonts={},Pr._newlines=[10,13],Pr._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];let Hi=Pr;const P2=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],T1=class Ao{constructor(t){this.styleID=0,this.reset(),Ff(this,t,t)}clone(){const t={};return Ff(t,this,Ao.defaultStyle),new Ao(t)}reset(){Ff(this,Ao.defaultStyle,Ao.defaultStyle)}get align(){return this._align}set align(t){this._align!==t&&(this._align=t,this.styleID++)}get breakWords(){return this._breakWords}set breakWords(t){this._breakWords!==t&&(this._breakWords=t,this.styleID++)}get dropShadow(){return this._dropShadow}set dropShadow(t){this._dropShadow!==t&&(this._dropShadow=t,this.styleID++)}get dropShadowAlpha(){return this._dropShadowAlpha}set dropShadowAlpha(t){this._dropShadowAlpha!==t&&(this._dropShadowAlpha=t,this.styleID++)}get dropShadowAngle(){return this._dropShadowAngle}set dropShadowAngle(t){this._dropShadowAngle!==t&&(this._dropShadowAngle=t,this.styleID++)}get dropShadowBlur(){return this._dropShadowBlur}set dropShadowBlur(t){this._dropShadowBlur!==t&&(this._dropShadowBlur=t,this.styleID++)}get dropShadowColor(){return this._dropShadowColor}set dropShadowColor(t){const e=Rf(t);this._dropShadowColor!==e&&(this._dropShadowColor=e,this.styleID++)}get dropShadowDistance(){return this._dropShadowDistance}set dropShadowDistance(t){this._dropShadowDistance!==t&&(this._dropShadowDistance=t,this.styleID++)}get fill(){return this._fill}set fill(t){const e=Rf(t);this._fill!==e&&(this._fill=e,this.styleID++)}get fillGradientType(){return this._fillGradientType}set fillGradientType(t){this._fillGradientType!==t&&(this._fillGradientType=t,this.styleID++)}get fillGradientStops(){return this._fillGradientStops}set fillGradientStops(t){M2(this._fillGradientStops,t)||(this._fillGradientStops=t,this.styleID++)}get fontFamily(){return this._fontFamily}set fontFamily(t){this.fontFamily!==t&&(this._fontFamily=t,this.styleID++)}get fontSize(){return this._fontSize}set fontSize(t){this._fontSize!==t&&(this._fontSize=t,this.styleID++)}get fontStyle(){return this._fontStyle}set fontStyle(t){this._fontStyle!==t&&(this._fontStyle=t,this.styleID++)}get fontVariant(){return this._fontVariant}set fontVariant(t){this._fontVariant!==t&&(this._fontVariant=t,this.styleID++)}get fontWeight(){return this._fontWeight}set fontWeight(t){this._fontWeight!==t&&(this._fontWeight=t,this.styleID++)}get letterSpacing(){return this._lett Line truncated
`;class T1 extends Kc{constructor(t){super(t),this.shader=null,this.properties=null,this.tempMatrix=new fe,this.properties=[{attributeName:"aVertexPosition",size:2,uploadFunction:this.uploadVertices,offset:0},{attributeName:"aPositionCoord",size:2,uploadFunction:this.uploadPosition,offset:0},{attributeName:"aRotation",size:1,uploadFunction:this.uploadRotation,offset:0},{attributeName:"aTextureCoord",size:2,uploadFunction:this.uploadUvs,offset:0},{attributeName:"aColor",size:1,type:wt.UNSIGNED_BYTE,uploadFunction:this.uploadTint,offset:0}],this.shader=Js.from(M2,P2,{}),this.state=jr.for2d()}render(t){const e=t.children,s=t._maxSize,r=t._batchSize,n=this.renderer;let a=e.length;if(a===0)return;a>s&&!t.autoResize&&(a=s);let o=t._buffers;o||(o=t._buffers=this.generateBuffers(t));const h=e[0]._texture.baseTexture,l=h.alphaMode>0;this.state.blendMode=T_(t.blendMode,l),n.state.set(this.state);const c=n.gl,u=t.worldTransform.copyTo(this.tempMatrix);u.prepend(n.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=u.toArray(!0),this.shader.uniforms.uColor=Wt.shared.setValue(t.tintRgb).premultiply(t.worldAlpha,l).toArray(this.shader.uniforms.uColor),this.shader.uniforms.uSampler=h,this.renderer.shader.bind(this.shader);let d=!1;for(let f=0,m=0;f<a;f+=r,m+=1){let p=a-f;p>r&&(p=r),m>=o.length&&o.push(this._generateOneMoreBuffer(t));const g=o[m];g.uploadDynamic(e,f,p);const y=t._bufferUpdateIDs[m]||0;d=d||g._updateID<y,d&&(g._updateID=t._updateID,g.uploadStatic(e,f,p)),n.geometry.bind(g.geometry),c.drawElements(c.TRIANGLES,p*6,c.UNSIGNED_SHORT,0)}}generateBuffers(t){const e=[],s=t._maxSize,r=t._batchSize,n=t._properties;for(let a=0;a<s;a+=r)e.push(new $x(this.properties,n,r));return e}_generateOneMoreBuffer(t){const e=t._batchSize,s=t._properties;return new $x(this.properties,s,e)}uploadVertices(t,e,s,r,n,a){let o=0,h=0,l=0,c=0;for(let u=0;u<s;++u){const d=t[e+u],f=d._texture,m=d.scale.x,p=d.scale.y,g=f.trim,y=f.orig;g?(h=g.x-d.anchor.x*y.width,o=h+g.width,c=g.y-d.anchor.y*y.height,l=c+g.height):(o=y.width*(1-d.anchor.x),h=y.width*-d.anchor.x,l=y.height*(1-d.anchor.y),c=y.height*-d.anchor.y),r[a]=h*m,r[a+1]=c*p,r[a+n]=o*m,r[a+n+1]=c*p,r[a+n*2]=o*m,r[a+n*2+1]=l*p,r[a+n*3]=h*m,r[a+n*3+1]=l*p,a+=n*4}}uploadPosition(t,e,s,r,n,a){for(let o=0;o<s;o++){const h=t[e+o].position;r[a]=h.x,r[a+1]=h.y,r[a+n]=h.x,r[a+n+1]=h.y,r[a+n*2]=h.x,r[a+n*2+1]=h.y,r[a+n*3]=h.x,r[a+n*3+1]=h.y,a+=n*4}}uploadRotation(t,e,s,r,n,a){for(let o=0;o<s;o++){const h=t[e+o].rotation;r[a]=h,r[a+n]=h,r[a+n*2]=h,r[a+n*3]=h,a+=n*4}}uploadUvs(t,e,s,r,n,a){for(let o=0;o<s;++o){const h=t[e+o]._texture._uvs;h?(r[a]=h.x0,r[a+1]=h.y0,r[a+n]=h.x1,r[a+n+1]=h.y1,r[a+n*2]=h.x2,r[a+n*2+1]=h.y2,r[a+n*3]=h.x3,r[a+n*3+1]=h.y3,a+=n*4):(r[a]=0,r[a+1]=0,r[a+n]=0,r[a+n+1]=0,r[a+n*2]=0,r[a+n*2+1]=0,r[a+n*3]=0,r[a+n*3+1]=0,a+=n*4)}}uploadTint(t,e,s,r,n,a){for(let o=0;o<s;++o){const h=t[e+o],l=Wt.shared.setValue(h._tintRGB).toPremultiplied(h.alpha,h.texture.baseTexture.alphaMode>0);r[a]=l,r[a+n]=l,r[a+n*2]=l,r[a+n*3]=l,a+=n*4}}destroy(){super.destroy(),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null}}T1.extension={name:"particle",type:gt.RendererPlugin};St.add(T1);var tu=(i=>(i[i.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",i[i.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL",i))(tu||{});const dh={willReadFrequently:!0},Pr=class Ct{static get experimentalLetterSpacingSupported(){let t=Ct._experimentalLetterSpacingSupported;if(t!==void 0){const e=_t.ADAPTER.getCanvasRenderingContext2D().prototype;t=Ct._experimentalLetterSpacingSupported="letterSpacing"in e||"textLetterSpacing"in e}return t}constructor(t,e,s,r,n,a,o,h,l){this.text=t,this.style=e,this.width=s,this.height=r,this.lines=n,this.lineWidths=a,this.lineHeight=o,this.maxLineWidth=h,this.fontProperties=l}static measureText(t,e,s,r=Ct._canvas){s=s??e.wordWrap;const n=e.toFontString(),a=Ct.measureFont(n);a.fontSize===0&&(a.fontSize=e.fontSize,a.ascent=e.fontSize);const o=r.getContext("2d",dh);o.font=n;const h=(s?Ct.wordWrap(t,e,r):t).split(/(?:\r\n|\r|\n)/),l=new Array(h.length);let c=0;for(let m=0;m<h.length;m++){const p=Ct._measureText(h[m],e.letterSpacing,o);l[m]=p,c=Math.max(c,p)}let u=c+e.strokeThickness;e.dropShadow&&(u+=e.dropShadowDistance);const d=e.lineHeight||a.fontSize+e.strokeThickness;let f=Math.max(d,a.fontSize+e.strokeThickness*2)+e.leading+(h.length-1)*(d+e.leading);return e.dropShadow&&(f+=e.dropShadowDistance),new Ct(t,e,u,f,h,l,d+e.leading,c,a)}static _measureText(t,e,s){let r=!1;Ct.experimentalLetterSpacingSupported&&(Ct.experimentalLetterSpacing?(s.letterSpacing=`${e}px`,s.textLetterSpacing=`${e}px`,r=!0):(s.letterSpacing="0px",s.textLetterSpacing="0px"));let n=s.measureText(t).width;return n>0&&(r?n-=e:n+=(Ct.graphemeSegmenter(t).length-1)*e),n}static wordWrap(t,e,s=Ct._canvas){const r=s.getContext("2d",dh);let n=0,a="",o="";const h=Object.create(null),{letterSpacing:l,whiteSpace:c}=e,u=Ct.collapseSpaces(c),d=Ct.collapseNewlines(c);let f=!u;const m=e.wordWrapWidth+l, Line truncated
`:t,t}static getFromCache(t,e,s,r){let n=s[t];return typeof n!="number"&&(n=Ct._measureText(t,e,r)+e,s[t]=n),n}static collapseSpaces(t){return t==="normal"||t==="pre-line"}static collapseNewlines(t){return t==="normal"}static trimRight(t){if(typeof t!="string")return"";for(let e=t.length-1;e>=0;e--){const s=t[e];if(!Ct.isBreakingSpace(s))break;t=t.slice(0,-1)}return t}static isNewline(t){return typeof t!="string"?!1:Ct._newlines.includes(t.charCodeAt(0))}static isBreakingSpace(t,e){return typeof t!="string"?!1:Ct._breakingSpaces.includes(t.charCodeAt(0))}static tokenize(t){const e=[];let s="";if(typeof t!="string")return e;for(let r=0;r<t.length;r++){const n=t[r],a=t[r+1];if(Ct.isBreakingSpace(n,a)||Ct.isNewline(n)){s!==""&&(e.push(s),s=""),e.push(n);continue}s+=n}return s!==""&&e.push(s),e}static canBreakWords(t,e){return e}static canBreakChars(t,e,s,r,n){return!0}static wordWrapSplit(t){return Ct.graphemeSegmenter(t)}static measureFont(t){if(Ct._fonts[t])return Ct._fonts[t];const e={ascent:0,descent:0,fontSize:0},s=Ct._canvas,r=Ct._context;r.font=t;const n=Ct.METRICS_STRING+Ct.BASELINE_SYMBOL,a=Math.ceil(r.measureText(n).width);let o=Math.ceil(r.measureText(Ct.BASELINE_SYMBOL).width);const h=Math.ceil(Ct.HEIGHT_MULTIPLIER*o);if(o=o*Ct.BASELINE_MULTIPLIER|0,a===0||h===0)return Ct._fonts[t]=e,e;s.width=a,s.height=h,r.fillStyle="#f00",r.fillRect(0,0,a,h),r.font=t,r.textBaseline="alphabetic",r.fillStyle="#000",r.fillText(n,0,o);const l=r.getImageData(0,0,a,h).data,c=l.length,u=a*4;let d=0,f=0,m=!1;for(d=0;d<o;++d){for(let p=0;p<u;p+=4)if(l[f+p]!==255){m=!0;break}if(!m)f+=u;else break}for(e.ascent=o-d,f=c-u,m=!1,d=h;d>o;--d){for(let p=0;p<u;p+=4)if(l[f+p]!==255){m=!0;break}if(!m)f-=u;else break}return e.descent=d-o,e.fontSize=e.ascent+e.descent,Ct._fonts[t]=e,e}static clearMetrics(t=""){t?delete Ct._fonts[t]:Ct._fonts={}}static get _canvas(){var t;if(!Ct.__canvas){let e;try{const s=new OffscreenCanvas(0,0);if((t=s.getContext("2d",dh))!=null&&t.measureText)return Ct.__canvas=s,s;e=_t.ADAPTER.createCanvas()}catch{e=_t.ADAPTER.createCanvas()}e.width=e.height=10,Ct.__canvas=e}return Ct.__canvas}static get _context(){return Ct.__context||(Ct.__context=Ct._canvas.getContext("2d",dh)),Ct.__context}};Pr.METRICS_STRING="|ÉqÅ",Pr.BASELINE_SYMBOL="M",Pr.BASELINE_MULTIPLIER=1.4,Pr.HEIGHT_MULTIPLIER=2,Pr.graphemeSegmenter=(()=>{if(typeof(Intl==null?void 0:Intl.Segmenter)=="function"){const i=new Intl.Segmenter;return t=>[...i.segment(t)].map(e=>e.segment)}return i=>[...i]})(),Pr.experimentalLetterSpacing=!1,Pr._fonts={},Pr._newlines=[10,13],Pr._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];let Hi=Pr;const R2=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],S1=class Co{constructor(t){this.styleID=0,this.reset(),Lf(this,t,t)}clone(){const t={};return Lf(t,this,Co.defaultStyle),new Co(t)}reset(){Lf(this,Co.defaultStyle,Co.defaultStyle)}get align(){return this._align}set align(t){this._align!==t&&(this._align=t,this.styleID++)}get breakWords(){return this._breakWords}set breakWords(t){this._breakWords!==t&&(this._breakWords=t,this.styleID++)}get dropShadow(){return this._dropShadow}set dropShadow(t){this._dropShadow!==t&&(this._dropShadow=t,this.styleID++)}get dropShadowAlpha(){return this._dropShadowAlpha}set dropShadowAlpha(t){this._dropShadowAlpha!==t&&(this._dropShadowAlpha=t,this.styleID++)}get dropShadowAngle(){return this._dropShadowAngle}set dropShadowAngle(t){this._dropShadowAngle!==t&&(this._dropShadowAngle=t,this.styleID++)}get dropShadowBlur(){return this._dropShadowBlur}set dropShadowBlur(t){this._dropShadowBlur!==t&&(this._dropShadowBlur=t,this.styleID++)}get dropShadowColor(){return this._dropShadowColor}set dropShadowColor(t){const e=kf(t);this._dropShadowColor!==e&&(this._dropShadowColor=e,this.styleID++)}get dropShadowDistance(){return this._dropShadowDistance}set dropShadowDistance(t){this._dropShadowDistance!==t&&(this._dropShadowDistance=t,this.styleID++)}get fill(){return this._fill}set fill(t){const e=kf(t);this._fill!==e&&(this._fill=e,this.styleID++)}get fillGradientType(){return this._fillGradientType}set fillGradientType(t){this._fillGradientType!==t&&(this._fillGradientType=t,this.styleID++)}get fillGradientStops(){return this._fillGradientStops}set fillGradientStops(t){F2(this._fillGradientStops,t)||(this._fillGradientStops=t,this.styleID++)}get fontFamily(){return this._fontFamily}set fontFamily(t){this.fontFamily!==t&&(this._fontFamily=t,this.styleID++)}get fontSize(){return this._fontSize}set fontSize(t){this._fontSize!==t&&(this._fontSize=t,this.styleID++)}get fontStyle(){return this._fontStyle}set fontStyle(t){this._fontStyle!==t&&(this._fontStyle=t,this.styleID++)}get fontVariant(){return this._fontVariant}set fontVariant(t){this._fontVariant!==t&&(this._fontVariant=t,this.styleID++)}get fontWeight(){return this._fontWeight}set fontWeight(t){this._fontWeight!==t&&(this._fontWeight=t,this.styleID++)}get letterSpacing(){return this._lett Line truncated
#define SHADER_NAME Tiling-Sprite-100
precision lowp float;
@@ -1031,7 +1031,7 @@ void main(void)
fragmentColor = texSample * uColor;
}
`,G2=`#version 300 es
`,H2=`#version 300 es
#define SHADER_NAME Tiling-Sprite-300
precision lowp float;
@@ -1051,7 +1051,7 @@ void main(void)
vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;
}
`,$2=`#version 100
`,W2=`#version 100
#ifdef GL_EXT_shader_texture_lod
#extension GL_EXT_shader_texture_lod : enable
#endif
@@ -1084,7 +1084,7 @@ void main(void)
gl_FragColor = texSample * uColor;
}
`,$x=`#version 100
`,Hx=`#version 100
#define SHADER_NAME Tiling-Sprite-100
precision lowp float;
@@ -1104,7 +1104,7 @@ void main(void)
vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;
}
`,H2=`#version 100
`,z2=`#version 100
#define SHADER_NAME Tiling-Sprite-Simple-100
precision lowp float;
@@ -1119,7 +1119,7 @@ void main(void)
vec4 texSample = texture2D(uSampler, vTextureCoord);
gl_FragColor = texSample * uColor;
}
`;const uh=new fe;class P1 extends zc{constructor(t){super(t),t.runners.contextChange.add(this),this.quad=new B_,this.state=jr.for2d()}contextChange(){const t=this.renderer,e={globals:t.globalUniforms};this.simpleShader=Js.from($x,H2,e),this.shader=t.context.webGLVersion>1?Js.from(G2,Y2,e):Js.from($x,$2,e)}render(t){const e=this.renderer,s=this.quad;let r=s.vertices;r[0]=r[6]=t._width*-t.anchor.x,r[1]=r[3]=t._height*-t.anchor.y,r[2]=r[4]=t._width*(1-t.anchor.x),r[5]=r[7]=t._height*(1-t.anchor.y);const n=t.uvRespectAnchor?t.anchor.x:0,a=t.uvRespectAnchor?t.anchor.y:0;r=s.uvs,r[0]=r[6]=-n,r[1]=r[3]=-a,r[2]=r[4]=1-n,r[5]=r[7]=1-a,s.invalidate();const o=t._texture,h=o.baseTexture,l=h.alphaMode>0,c=t.tileTransform.localTransform,u=t.uvMatrix;let d=h.isPowerOfTwo&&o.frame.width===h.width&&o.frame.height===h.height;d&&(h._glTextures[e.CONTEXT_UID]?d=h.wrapMode!==Ps.CLAMP:h.wrapMode===Ps.CLAMP&&(h.wrapMode=Ps.REPEAT));const f=d?this.simpleShader:this.shader,m=o.width,p=o.height,g=t._width,y=t._height;uh.set(c.a*m/g,c.b*m/y,c.c*p/g,c.d*p/y,c.tx/g,c.ty/y),uh.invert(),d?uh.prepend(u.mapCoord):(f.uniforms.uMapCoord=u.mapCoord.toArray(!0),f.uniforms.uClampFrame=u.uClampFrame,f.uniforms.uClampOffset=u.uClampOffset),f.uniforms.uTransform=uh.toArray(!0),f.uniforms.uColor=Wt.shared.setValue(t.tint).premultiply(t.worldAlpha,l).toArray(f.uniforms.uColor),f.uniforms.translationMatrix=t.transform.worldTransform.toArray(!0),f.uniforms.uSampler=o,e.shader.bind(f),e.geometry.bind(s),this.state.blendMode=w_(t.blendMode,l),e.state.set(this.state),e.geometry.draw(this.renderer.gl.TRIANGLES,6,0)}}P1.extension={name:"tilingSprite",type:gt.RendererPlugin};St.add(P1);const M1=class Co{constructor(t,e,s){this.linkedSheets=[],(t instanceof Lt||t instanceof Nt)&&(t={texture:t,data:e,resolutionFilename:s});const{texture:r,data:n,resolutionFilename:a=null,cachePrefix:o=""}=t;this.cachePrefix=o,this._texture=r instanceof Nt?r:null,this.baseTexture=r instanceof Lt?r:this._texture.baseTexture,this.textures={},this.animations={},this.data=n;const h=this.baseTexture.resource;this.resolution=this._updateResolution(a||(h?h.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}_updateResolution(t=null){const{scale:e}=this.data.meta;let s=Ci(t,null);return s===null&&(s=typeof e=="number"?e:parseFloat(e??"1")),s!==1&&this.baseTexture.setResolution(s),s}parse(){return new Promise(t=>{this._callback=t,this._batchIndex=0,this._frameKeys.length<=Co.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()})}_processFrames(t){let e=t;const s=Co.BATCH_SIZE;for(;e-t<s&&e<this._frameKeys.length;){const r=this._frameKeys[e],n=this._frames[r],a=n.frame;if(a){let o=null,h=null;const l=n.trimmed!==!1&&n.sourceSize?n.sourceSize:n.frame,c=new Ut(0,0,Math.floor(l.w)/this.resolution,Math.floor(l.h)/this.resolution);n.rotated?o=new Ut(Math.floor(a.x)/this.resolution,Math.floor(a.y)/this.resolution,Math.floor(a.h)/this.resolution,Math.floor(a.w)/this.resolution):o=new Ut(Math.floor(a.x)/this.resolution,Math.floor(a.y)/this.resolution,Math.floor(a.w)/this.resolution,Math.floor(a.h)/this.resolution),n.trimmed!==!1&&n.spriteSourceSize&&(h=new Ut(Math.floor(n.spriteSourceSize.x)/this.resolution,Math.floor(n.spriteSourceSize.y)/this.resolution,Math.floor(a.w)/this.resolution,Math.floor(a.h)/this.resolution)),this.textures[r]=new Nt(this.baseTexture,o,c,h,n.rotated?2:0,n.anchor,n.borders),Nt.addToCache(this.textures[r],this.cachePrefix+r.toString())}e++}}_processAnimations(){const t=this.data.animations||{};for(const e in t){this.animations[e]=[];for(let s=0;s<t[e].length;s++){const r=t[e][s];this.animations[e].push(this.textures[r])}}}_parseComplete(){const t=this._callback;this._callback=null,this._batchIndex=0,t.call(this,this.textures)}_nextBatch(){this._processFrames(this._batchIndex*Co.BATCH_SIZE),this._batchIndex++,setTimeout(()=>{this._batchIndex*Co.BATCH_SIZE<this._frameKeys.length?this._nextBatch():(this._processAnimations(),this._parseComplete())},0)}destroy(t=!1){var e;for(const s in this.textures)this.textures[s].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,t&&((e=this._texture)==null||e.destroy(),this.baseTexture.destroy()),this._texture=null,this.baseTexture=null,this.linkedSheets=[]}};M1.BATCH_SIZE=1e3;let Hx=M1;const W2=["jpg","png","jpeg","avif","webp","s3tc","s3tc_sRGB","etc","etc1","pvrtc","atc","astc","bptc"];function R1(i,t,e){const s={};if(i.forEach(r=>{s[r]=t}),Object.keys(t.textures).forEach(r=>{s[`${t.cachePrefix}${r}`]=t.textures[r]}),!e){const r=ye.dirname(i[0]);t.linkedSheets.forEach((n,a)=>{Object.assign(s,R1([`${r}/${t.data.meta.related_multi_packs[a]}`],n,!0))})}return s}const z2={extension:gt.Asset,cache:{test:i=>i instanceof Hx,getCacheableAssets:(i,t)=>R1(i,t,!1)},resolver:{test:i=>{const t=i.split("?")[0].split("."),e=t.pop(),s=t.pop();return e==="json"&&W2.includes(s)},parse:i=>{var e;const Line truncated
`;const fh=new fe;class R1 extends Kc{constructor(t){super(t),t.runners.contextChange.add(this),this.quad=new O_,this.state=jr.for2d()}contextChange(){const t=this.renderer,e={globals:t.globalUniforms};this.simpleShader=Js.from(Hx,z2,e),this.shader=t.context.webGLVersion>1?Js.from(H2,$2,e):Js.from(Hx,W2,e)}render(t){const e=this.renderer,s=this.quad;let r=s.vertices;r[0]=r[6]=t._width*-t.anchor.x,r[1]=r[3]=t._height*-t.anchor.y,r[2]=r[4]=t._width*(1-t.anchor.x),r[5]=r[7]=t._height*(1-t.anchor.y);const n=t.uvRespectAnchor?t.anchor.x:0,a=t.uvRespectAnchor?t.anchor.y:0;r=s.uvs,r[0]=r[6]=-n,r[1]=r[3]=-a,r[2]=r[4]=1-n,r[5]=r[7]=1-a,s.invalidate();const o=t._texture,h=o.baseTexture,l=h.alphaMode>0,c=t.tileTransform.localTransform,u=t.uvMatrix;let d=h.isPowerOfTwo&&o.frame.width===h.width&&o.frame.height===h.height;d&&(h._glTextures[e.CONTEXT_UID]?d=h.wrapMode!==Ps.CLAMP:h.wrapMode===Ps.CLAMP&&(h.wrapMode=Ps.REPEAT));const f=d?this.simpleShader:this.shader,m=o.width,p=o.height,g=t._width,y=t._height;fh.set(c.a*m/g,c.b*m/y,c.c*p/g,c.d*p/y,c.tx/g,c.ty/y),fh.invert(),d?fh.prepend(u.mapCoord):(f.uniforms.uMapCoord=u.mapCoord.toArray(!0),f.uniforms.uClampFrame=u.uClampFrame,f.uniforms.uClampOffset=u.uClampOffset),f.uniforms.uTransform=fh.toArray(!0),f.uniforms.uColor=Wt.shared.setValue(t.tint).premultiply(t.worldAlpha,l).toArray(f.uniforms.uColor),f.uniforms.translationMatrix=t.transform.worldTransform.toArray(!0),f.uniforms.uSampler=o,e.shader.bind(f),e.geometry.bind(s),this.state.blendMode=T_(t.blendMode,l),e.state.set(this.state),e.geometry.draw(this.renderer.gl.TRIANGLES,6,0)}}R1.extension={name:"tilingSprite",type:gt.RendererPlugin};St.add(R1);const F1=class Io{constructor(t,e,s){this.linkedSheets=[],(t instanceof Lt||t instanceof Ot)&&(t={texture:t,data:e,resolutionFilename:s});const{texture:r,data:n,resolutionFilename:a=null,cachePrefix:o=""}=t;this.cachePrefix=o,this._texture=r instanceof Ot?r:null,this.baseTexture=r instanceof Lt?r:this._texture.baseTexture,this.textures={},this.animations={},this.data=n;const h=this.baseTexture.resource;this.resolution=this._updateResolution(a||(h?h.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}_updateResolution(t=null){const{scale:e}=this.data.meta;let s=Ci(t,null);return s===null&&(s=typeof e=="number"?e:parseFloat(e??"1")),s!==1&&this.baseTexture.setResolution(s),s}parse(){return new Promise(t=>{this._callback=t,this._batchIndex=0,this._frameKeys.length<=Io.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()})}_processFrames(t){let e=t;const s=Io.BATCH_SIZE;for(;e-t<s&&e<this._frameKeys.length;){const r=this._frameKeys[e],n=this._frames[r],a=n.frame;if(a){let o=null,h=null;const l=n.trimmed!==!1&&n.sourceSize?n.sourceSize:n.frame,c=new Nt(0,0,Math.floor(l.w)/this.resolution,Math.floor(l.h)/this.resolution);n.rotated?o=new Nt(Math.floor(a.x)/this.resolution,Math.floor(a.y)/this.resolution,Math.floor(a.h)/this.resolution,Math.floor(a.w)/this.resolution):o=new Nt(Math.floor(a.x)/this.resolution,Math.floor(a.y)/this.resolution,Math.floor(a.w)/this.resolution,Math.floor(a.h)/this.resolution),n.trimmed!==!1&&n.spriteSourceSize&&(h=new Nt(Math.floor(n.spriteSourceSize.x)/this.resolution,Math.floor(n.spriteSourceSize.y)/this.resolution,Math.floor(a.w)/this.resolution,Math.floor(a.h)/this.resolution)),this.textures[r]=new Ot(this.baseTexture,o,c,h,n.rotated?2:0,n.anchor,n.borders),Ot.addToCache(this.textures[r],this.cachePrefix+r.toString())}e++}}_processAnimations(){const t=this.data.animations||{};for(const e in t){this.animations[e]=[];for(let s=0;s<t[e].length;s++){const r=t[e][s];this.animations[e].push(this.textures[r])}}}_parseComplete(){const t=this._callback;this._callback=null,this._batchIndex=0,t.call(this,this.textures)}_nextBatch(){this._processFrames(this._batchIndex*Io.BATCH_SIZE),this._batchIndex++,setTimeout(()=>{this._batchIndex*Io.BATCH_SIZE<this._frameKeys.length?this._nextBatch():(this._processAnimations(),this._parseComplete())},0)}destroy(t=!1){var e;for(const s in this.textures)this.textures[s].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,t&&((e=this._texture)==null||e.destroy(),this.baseTexture.destroy()),this._texture=null,this.baseTexture=null,this.linkedSheets=[]}};F1.BATCH_SIZE=1e3;let Wx=F1;const j2=["jpg","png","jpeg","avif","webp","s3tc","s3tc_sRGB","etc","etc1","pvrtc","atc","astc","bptc"];function k1(i,t,e){const s={};if(i.forEach(r=>{s[r]=t}),Object.keys(t.textures).forEach(r=>{s[`${t.cachePrefix}${r}`]=t.textures[r]}),!e){const r=ye.dirname(i[0]);t.linkedSheets.forEach((n,a)=>{Object.assign(s,k1([`${r}/${t.data.meta.related_multi_packs[a]}`],n,!0))})}return s}const q2={extension:gt.Asset,cache:{test:i=>i instanceof Wx,getCacheableAssets:(i,t)=>k1(i,t,!1)},resolver:{test:i=>{const t=i.split("?")[0].split("."),e=t.pop(),s=t.pop();return e==="json"&&j2.includes(s)},parse:i=>{var e;const Line truncated
varying vec2 vTextureCoord;\r
uniform sampler2D uSampler;\r
\r
@@ -1157,7 +1157,7 @@ void main(void) {\r
// NPM Textures, NPM outputs\r
gl_FragColor = vec4(uColor.rgb, coverage);\r
}\r
`,Q2=`// Mesh material default fragment\r
`,eF=`// Mesh material default fragment\r
attribute vec2 aVertexPosition;\r
attribute vec2 aTextureCoord;\r
\r
@@ -1173,17 +1173,17 @@ void main(void)\r
\r
vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\r
}\r
`;const Wx=[],zx=[],jx=[],tF=class k1 extends fs{constructor(t,e={}){super();const{align:s,tint:r,maxWidth:n,letterSpacing:a,fontName:o,fontSize:h}=Object.assign({},k1.styleDefaults,e);if(!Yi.available[o])throw new Error(`Missing BitmapFont "${o}"`);this._activePagesMeshData=[],this._textWidth=0,this._textHeight=0,this._align=s,this._tintColor=new Wt(r),this._font=void 0,this._fontName=o,this._fontSize=h,this.text=t,this._maxWidth=n,this._maxLineHeight=0,this._letterSpacing=a,this._anchor=new gi(()=>{this.dirty=!0},this,0,0),this._roundPixels=_t.ROUND_PIXELS,this.dirty=!0,this._resolution=_t.RESOLUTION,this._autoResolution=!0,this._textureCache={}}updateText(){var I;const t=Yi.available[this._fontName],e=this.fontSize,s=e/t.size,r=new Kt,n=[],a=[],o=[],h=this._text.replace(/(?:\r\n|\r)/g,`
`)||" ",l=F1(h),c=this._maxWidth*t.size/e,u=t.distanceFieldType==="none"?Wx:zx;let d=null,f=0,m=0,p=0,g=-1,y=0,_=0,v=0,b=0;for(let C=0;C<l.length;C++){const R=l[C],F=Ih(R);if(/(?:\s)/.test(R)&&(g=C,y=f,b++),R==="\r"||R===`
`){a.push(f),o.push(-1),m=Math.max(m,f),++p,++_,r.x=0,r.y+=t.lineHeight,d=null,b=0;continue}const D=t.chars[F];if(!D)continue;d&&D.kerning[d]&&(r.x+=D.kerning[d]);const M=jx.pop()||{texture:Nt.EMPTY,line:0,charCode:0,prevSpaces:0,position:new Kt};M.texture=D.texture,M.line=p,M.charCode=F,M.position.x=Math.round(r.x+D.xOffset+this._letterSpacing/2),M.position.y=Math.round(r.y+D.yOffset),M.prevSpaces=b,n.push(M),f=M.position.x+Math.max(D.xAdvance-D.xOffset,D.texture.orig.width),r.x+=D.xAdvance+this._letterSpacing,v=Math.max(v,D.yOffset+D.texture.height),d=F,g!==-1&&c>0&&r.x>c&&(++_,Ma(n,1+g-_,1+C-g),C=g,g=-1,a.push(y),o.push(n.length>0?n[n.length-1].prevSpaces:0),m=Math.max(m,y),p++,r.x=0,r.y+=t.lineHeight,d=null,b=0)}const T=l[l.length-1];T!=="\r"&&T!==`
`&&(/(?:\s)/.test(T)&&(f=y),a.push(f),m=Math.max(m,f),o.push(-1));const S=[];for(let C=0;C<=p;C++){let R=0;this._align==="right"?R=m-a[C]:this._align==="center"?R=(m-a[C])/2:this._align==="justify"&&(R=o[C]<0?0:(m-a[C])/o[C]),S.push(R)}const w=n.length,E={},A=[],P=this._activePagesMeshData;u.push(...P);for(let C=0;C<w;C++){const R=n[C].texture,F=R.baseTexture.uid;if(!E[F]){let D=u.pop();if(!D){const O=new Zc;let k,N;t.distanceFieldType==="none"?(k=new rl(Nt.EMPTY),N=It.NORMAL):(k=new rl(Nt.EMPTY,{program:ur.from(Q2,J2),uniforms:{uFWidth:0}}),N=It.NORMAL_NPM);const B=new zn(O,k);B.blendMode=N,D={index:0,indexCount:0,vertexCount:0,uvsCount:0,total:0,mesh:B,vertices:null,uvs:null,indices:null}}D.index=0,D.indexCount=0,D.vertexCount=0,D.uvsCount=0,D.total=0;const{_textureCache:M}=this;M[F]=M[F]||new Nt(R.baseTexture),D.mesh.texture=M[F],D.mesh.tint=this._tintColor.value,A.push(D),E[F]=D}E[F].total++}for(let C=0;C<P.length;C++)A.includes(P[C])||this.removeChild(P[C].mesh);for(let C=0;C<A.length;C++)A[C].mesh.parent!==this&&this.addChild(A[C].mesh);this._activePagesMeshData=A;for(const C in E){const R=E[C],F=R.total;if(!(((I=R.indices)==null?void 0:I.length)>6*F)||R.vertices.length<zn.BATCHABLE_SIZE*2)R.vertices=new Float32Array(8*F),R.uvs=new Float32Array(8*F),R.indices=new Uint16Array(6*F);else{const D=R.total,M=R.vertices;for(let O=D*4*2;O<M.length;O++)M[O]=0}R.mesh.size=6*F}for(let C=0;C<w;C++){const R=n[C];let F=R.position.x+S[R.line]*(this._align==="justify"?R.prevSpaces:1);this._roundPixels&&(F=Math.round(F));const D=F*s,M=R.position.y*s,O=R.texture,k=E[O.baseTexture.uid],N=O.frame,B=O._uvs,L=k.index++;k.indices[L*6+0]=0+L*4,k.indices[L*6+1]=1+L*4,k.indices[L*6+2]=2+L*4,k.indices[L*6+3]=0+L*4,k.indices[L*6+4]=2+L*4,k.indices[L*6+5]=3+L*4,k.vertices[L*8+0]=D,k.vertices[L*8+1]=M,k.vertices[L*8+2]=D+N.width*s,k.vertices[L*8+3]=M,k.vertices[L*8+4]=D+N.width*s,k.vertices[L*8+5]=M+N.height*s,k.vertices[L*8+6]=D,k.vertices[L*8+7]=M+N.height*s,k.uvs[L*8+0]=B.x0,k.uvs[L*8+1]=B.y0,k.uvs[L*8+2]=B.x1,k.uvs[L*8+3]=B.y1,k.uvs[L*8+4]=B.x2,k.uvs[L*8+5]=B.y2,k.uvs[L*8+6]=B.x3,k.uvs[L*8+7]=B.y3}this._textWidth=m*s,this._textHeight=(r.y+t.lineHeight)*s;for(const C in E){const R=E[C];if(this.anchor.x!==0||this.anchor.y!==0){let O=0;const k=this._textWidth*this.anchor.x,N=this._textHeight*this.anchor.y;for(let B=0;B<R.total;B++)R.vertices[O++]-=k,R.vertices[O++]-=N,R.vertices[O++]-=k,R.vertices[O++]-=N,R.vertices[O++]-=k,R.vertices[O++]-=N,R.vertices[O++]-=k,R.vertices[O++]-=N}this._maxLineHeight=v*s;const F=R.mesh.geometry.getBuffer("aVertexPosition"),D=R.mesh.geometry.getBuffer("aTextureCoord"),M=R.mesh.geometry.getIndex();F.data=R.vertices,D.data=R.uvs,M.data=R.indices,F.update(),D.update(),M.update()}for(let C=0;C<n.length;C++)jx.push(n[C]);this._font=t,this.dirty=!1}updateTransform(){this.validate(),this.containerUpdateTransform()}_render(t){this._autoResolution&&this._resolution!==t.resolution&&(this._resolution=t.resolution,this.dirty=!0);const{distanceFieldRange:e,distanceFieldType:s,size:r}=Yi.available[this._fontName];if(s!=="none"){const{a:n,b:a,c:o,d:h}=this.worldTransform,l=Math.sqrt(n*n+a*a),c=Math.sqrt(o*o+h*h),u=(Math.abs(l)+Math.abs(c))/2,d=this.fontSize/r,f=t._view.resolution;for(const m of this._activePagesMeshData)m.mesh.shader.uniforms.uFWidth=u*e*d*f}super._render(t)}getLocalBounds(){return this.validate(),super.getLocalBounds()}validate(){const t=Yi.available[this._fontName];if(!t)throw new Error(`Missing BitmapFont "${this._fontName}"`);this._font!==t&&(this.dirty=!0),this.dirty&&this.updateText()}get tint(){return this._tintColor.value}set tint(t){if(this.tint!==t){this._tintColor.setValue(t);for(let e=0;e<this._activePagesMeshData.length;e++)this._activePagesMeshData[e].mesh.tint=t}}get align(){return this._align}set align(t){this._align!==t&&(this._align=t,this.dirty=!0)}get fontName(){return this._fontName}set fontName(t){if(!Yi.available[t])throw new Error(`Missing BitmapFont "${t}"`);this._fontName!==t&&(this._fontName=t,this.dirty=!0)}get fontSize(){return this._fontSize??Yi.available[this._fontName].size}set fontSize(t){this._fontSize!==t&&(this._fontSize=t,this.dirty=!0)}get anchor(){return this._anchor}set anchor(t){typeof t=="number"?this._anchor.set(t):this._anchor.copyFrom(t)}get text(){return this._text}set text(t){t=String(t??""),this._text!==t&&(this._text=t,this.dirty=!0)}get maxWidth(){return this._maxWidth}set maxWidth(t){this._maxWidth!==t&&(this._maxWidth=t,this.dirty=!0)}get maxLineHeight(){return this.validate(),this._maxLineHeight}get textWidth(){return this.validate(),this._textWidth}get letterSpacing(){return this._letterSpacing}set letterSpacing(t){this._letterSpacing!==t&&(this._letterSpacing=t,this.dirty=!0)}get roundPixels(){return this._roundPixels}set roundPixels(t){t!==this._roundPixels&&(this._roundPixels=t,this.dirty=!0)}get textHeight(){return this.validate(),this._textHeight}get resolution(){return this._resolution}set resolution(t){this._autoResolution=!1,this._res Line truncated
`;const zx=[],jx=[],qx=[],sF=class B1 extends fs{constructor(t,e={}){super();const{align:s,tint:r,maxWidth:n,letterSpacing:a,fontName:o,fontSize:h}=Object.assign({},B1.styleDefaults,e);if(!Yi.available[o])throw new Error(`Missing BitmapFont "${o}"`);this._activePagesMeshData=[],this._textWidth=0,this._textHeight=0,this._align=s,this._tintColor=new Wt(r),this._font=void 0,this._fontName=o,this._fontSize=h,this.text=t,this._maxWidth=n,this._maxLineHeight=0,this._letterSpacing=a,this._anchor=new gi(()=>{this.dirty=!0},this,0,0),this._roundPixels=_t.ROUND_PIXELS,this.dirty=!0,this._resolution=_t.RESOLUTION,this._autoResolution=!0,this._textureCache={}}updateText(){var I;const t=Yi.available[this._fontName],e=this.fontSize,s=e/t.size,r=new zt,n=[],a=[],o=[],h=this._text.replace(/(?:\r\n|\r)/g,`
`)||" ",l=L1(h),c=this._maxWidth*t.size/e,u=t.distanceFieldType==="none"?zx:jx;let d=null,f=0,m=0,p=0,g=-1,y=0,_=0,v=0,b=0;for(let C=0;C<l.length;C++){const R=l[C],F=Mh(R);if(/(?:\s)/.test(R)&&(g=C,y=f,b++),R==="\r"||R===`
`){a.push(f),o.push(-1),m=Math.max(m,f),++p,++_,r.x=0,r.y+=t.lineHeight,d=null,b=0;continue}const D=t.chars[F];if(!D)continue;d&&D.kerning[d]&&(r.x+=D.kerning[d]);const M=qx.pop()||{texture:Ot.EMPTY,line:0,charCode:0,prevSpaces:0,position:new zt};M.texture=D.texture,M.line=p,M.charCode=F,M.position.x=Math.round(r.x+D.xOffset+this._letterSpacing/2),M.position.y=Math.round(r.y+D.yOffset),M.prevSpaces=b,n.push(M),f=M.position.x+Math.max(D.xAdvance-D.xOffset,D.texture.orig.width),r.x+=D.xAdvance+this._letterSpacing,v=Math.max(v,D.yOffset+D.texture.height),d=F,g!==-1&&c>0&&r.x>c&&(++_,Ra(n,1+g-_,1+C-g),C=g,g=-1,a.push(y),o.push(n.length>0?n[n.length-1].prevSpaces:0),m=Math.max(m,y),p++,r.x=0,r.y+=t.lineHeight,d=null,b=0)}const T=l[l.length-1];T!=="\r"&&T!==`
`&&(/(?:\s)/.test(T)&&(f=y),a.push(f),m=Math.max(m,f),o.push(-1));const S=[];for(let C=0;C<=p;C++){let R=0;this._align==="right"?R=m-a[C]:this._align==="center"?R=(m-a[C])/2:this._align==="justify"&&(R=o[C]<0?0:(m-a[C])/o[C]),S.push(R)}const w=n.length,E={},A=[],P=this._activePagesMeshData;u.push(...P);for(let C=0;C<w;C++){const R=n[C].texture,F=R.baseTexture.uid;if(!E[F]){let D=u.pop();if(!D){const O=new Qc;let k,N;t.distanceFieldType==="none"?(k=new il(Ot.EMPTY),N=It.NORMAL):(k=new il(Ot.EMPTY,{program:ur.from(eF,tF),uniforms:{uFWidth:0}}),N=It.NORMAL_NPM);const B=new zn(O,k);B.blendMode=N,D={index:0,indexCount:0,vertexCount:0,uvsCount:0,total:0,mesh:B,vertices:null,uvs:null,indices:null}}D.index=0,D.indexCount=0,D.vertexCount=0,D.uvsCount=0,D.total=0;const{_textureCache:M}=this;M[F]=M[F]||new Ot(R.baseTexture),D.mesh.texture=M[F],D.mesh.tint=this._tintColor.value,A.push(D),E[F]=D}E[F].total++}for(let C=0;C<P.length;C++)A.includes(P[C])||this.removeChild(P[C].mesh);for(let C=0;C<A.length;C++)A[C].mesh.parent!==this&&this.addChild(A[C].mesh);this._activePagesMeshData=A;for(const C in E){const R=E[C],F=R.total;if(!(((I=R.indices)==null?void 0:I.length)>6*F)||R.vertices.length<zn.BATCHABLE_SIZE*2)R.vertices=new Float32Array(8*F),R.uvs=new Float32Array(8*F),R.indices=new Uint16Array(6*F);else{const D=R.total,M=R.vertices;for(let O=D*4*2;O<M.length;O++)M[O]=0}R.mesh.size=6*F}for(let C=0;C<w;C++){const R=n[C];let F=R.position.x+S[R.line]*(this._align==="justify"?R.prevSpaces:1);this._roundPixels&&(F=Math.round(F));const D=F*s,M=R.position.y*s,O=R.texture,k=E[O.baseTexture.uid],N=O.frame,B=O._uvs,L=k.index++;k.indices[L*6+0]=0+L*4,k.indices[L*6+1]=1+L*4,k.indices[L*6+2]=2+L*4,k.indices[L*6+3]=0+L*4,k.indices[L*6+4]=2+L*4,k.indices[L*6+5]=3+L*4,k.vertices[L*8+0]=D,k.vertices[L*8+1]=M,k.vertices[L*8+2]=D+N.width*s,k.vertices[L*8+3]=M,k.vertices[L*8+4]=D+N.width*s,k.vertices[L*8+5]=M+N.height*s,k.vertices[L*8+6]=D,k.vertices[L*8+7]=M+N.height*s,k.uvs[L*8+0]=B.x0,k.uvs[L*8+1]=B.y0,k.uvs[L*8+2]=B.x1,k.uvs[L*8+3]=B.y1,k.uvs[L*8+4]=B.x2,k.uvs[L*8+5]=B.y2,k.uvs[L*8+6]=B.x3,k.uvs[L*8+7]=B.y3}this._textWidth=m*s,this._textHeight=(r.y+t.lineHeight)*s;for(const C in E){const R=E[C];if(this.anchor.x!==0||this.anchor.y!==0){let O=0;const k=this._textWidth*this.anchor.x,N=this._textHeight*this.anchor.y;for(let B=0;B<R.total;B++)R.vertices[O++]-=k,R.vertices[O++]-=N,R.vertices[O++]-=k,R.vertices[O++]-=N,R.vertices[O++]-=k,R.vertices[O++]-=N,R.vertices[O++]-=k,R.vertices[O++]-=N}this._maxLineHeight=v*s;const F=R.mesh.geometry.getBuffer("aVertexPosition"),D=R.mesh.geometry.getBuffer("aTextureCoord"),M=R.mesh.geometry.getIndex();F.data=R.vertices,D.data=R.uvs,M.data=R.indices,F.update(),D.update(),M.update()}for(let C=0;C<n.length;C++)qx.push(n[C]);this._font=t,this.dirty=!1}updateTransform(){this.validate(),this.containerUpdateTransform()}_render(t){this._autoResolution&&this._resolution!==t.resolution&&(this._resolution=t.resolution,this.dirty=!0);const{distanceFieldRange:e,distanceFieldType:s,size:r}=Yi.available[this._fontName];if(s!=="none"){const{a:n,b:a,c:o,d:h}=this.worldTransform,l=Math.sqrt(n*n+a*a),c=Math.sqrt(o*o+h*h),u=(Math.abs(l)+Math.abs(c))/2,d=this.fontSize/r,f=t._view.resolution;for(const m of this._activePagesMeshData)m.mesh.shader.uniforms.uFWidth=u*e*d*f}super._render(t)}getLocalBounds(){return this.validate(),super.getLocalBounds()}validate(){const t=Yi.available[this._fontName];if(!t)throw new Error(`Missing BitmapFont "${this._fontName}"`);this._font!==t&&(this.dirty=!0),this.dirty&&this.updateText()}get tint(){return this._tintColor.value}set tint(t){if(this.tint!==t){this._tintColor.setValue(t);for(let e=0;e<this._activePagesMeshData.length;e++)this._activePagesMeshData[e].mesh.tint=t}}get align(){return this._align}set align(t){this._align!==t&&(this._align=t,this.dirty=!0)}get fontName(){return this._fontName}set fontName(t){if(!Yi.available[t])throw new Error(`Missing BitmapFont "${t}"`);this._fontName!==t&&(this._fontName=t,this.dirty=!0)}get fontSize(){return this._fontSize??Yi.available[this._fontName].size}set fontSize(t){this._fontSize!==t&&(this._fontSize=t,this.dirty=!0)}get anchor(){return this._anchor}set anchor(t){typeof t=="number"?this._anchor.set(t):this._anchor.copyFrom(t)}get text(){return this._text}set text(t){t=String(t??""),this._text!==t&&(this._text=t,this.dirty=!0)}get maxWidth(){return this._maxWidth}set maxWidth(t){this._maxWidth!==t&&(this._maxWidth=t,this.dirty=!0)}get maxLineHeight(){return this.validate(),this._maxLineHeight}get textWidth(){return this.validate(),this._textWidth}get letterSpacing(){return this._letterSpacing}set letterSpacing(t){this._letterSpacing!==t&&(this._letterSpacing=t,this.dirty=!0)}get roundPixels(){return this._roundPixels}set roundPixels(t){t!==this._roundPixels&&(this._roundPixels=t,this.dirty=!0)}get textHeight(){return this.validate(),this._textHeight}get resolution(){return this._resolution}set resolution(t){this._autoResolution=!1,this._res Line truncated
@font-face {
font-family: "${e.family}";
src: url('${e.dataSrc}');
font-weight: ${e.weight};
font-style: ${e.style};
font-display: ${e.display};
}`,this._stylesheet)}get stylesheet(){return this._stylesheet}set stylesheet(t){this._stylesheet!==t&&(this._stylesheet=t,this.styleID++)}normalizeColor(t){return Array.isArray(t)&&(t=WI(t)),typeof t=="number"?HI(t):t}dropShadowToCSS(){let t=this.normalizeColor(this.dropShadowColor);const e=this.dropShadowAlpha,s=Math.round(Math.cos(this.dropShadowAngle)*this.dropShadowDistance),r=Math.round(Math.sin(this.dropShadowAngle)*this.dropShadowDistance);t.startsWith("#")&&e<1&&(t+=(e*255|0).toString(16).padStart(2,"0"));const n=`${s}px ${r}px`;return this.dropShadowBlur>0?`text-shadow: ${n} ${this.dropShadowBlur}px ${t}`:`text-shadow: ${n} ${t}`}reset(){Object.assign(this,pa.defaultOptions)}onBeforeDraw(){const{fontsDirty:t}=this;return this.fontsDirty=!1,this.isSafari&&this._fonts.length>0&&t?new Promise(e=>setTimeout(e,100)):Promise.resolve()}get isSafari(){const{userAgent:t}=_t.ADAPTER.getNavigator();return/^((?!chrome|android).)*safari/i.test(t)}set fillGradientStops(t){console.warn("[HTMLTextStyle] fillGradientStops is not supported by HTMLText")}get fillGradientStops(){return super.fillGradientStops}set fillGradientType(t){console.warn("[HTMLTextStyle] fillGradientType is not supported by HTMLText")}get fillGradientType(){return super.fillGradientType}set miterLimit(t){console.warn("[HTMLTextStyle] miterLimit is not supported by HTMLText")}get miterLimit(){return super.miterLimit}set trim(t){console.warn("[HTMLTextStyle] trim is not supported by HTMLText")}get trim(){return super.trim}set textBaseline(t){console.warn("[HTMLTextStyle] textBaseline is not supported by HTMLText")}get textBaseline(){return super.textBaseline}set leading(t){console.warn("[HTMLTextStyle] leading is not supported by HTMLText")}get leading(){return super.leading}set lineJoin(t){console.warn("[HTMLTextStyle] lineJoin is not supported by HTMLText")}get lineJoin(){return super.lineJoin}};jm.availableFonts={},jm.defaultOptions={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,padding:0,stroke:"black",strokeThickness:0,whiteSpace:"normal",wordWrap:!1,wordWrapWidth:100};let Lf=jm;const dh=class ga extends to{constructor(t="",e={}){super(Nt.EMPTY),this._text=null,this._style=null,this._autoResolution=!0,this.localStyleID=-1,this.dirty=!1,this._updateID=0,this.ownsStyle=!1;const s=new Image,r=Nt.from(s,{scaleMode:_t.SCALE_MODE,resourceOptions:{autoLoad:!1}});r.orig=new Ut,r.trim=new Ut,this.texture=r;const n="http://www.w3.org/2000/svg",a="http://www.w3.org/1999/xhtml",o=document.createElementNS(n,"svg"),h=document.createElementNS(n,"foreignObject"),l=document.createElementNS(a,"div"),c=document.createElementNS(a,"style");h.setAttribute("width","10000"),h.setAttribute("height","10000"),h.style.overflow="hidden",o.appendChild(h),this.maxWidth=ga.defaultMaxWidth,this.maxHeight=ga.defaultMaxHeight,this._domElement=l,this._styleElement=c,this._svgRoot=o,this._foreignObject=h,this._foreignObject.appendChild(c),this._foreignObject.appendChild(l),this._image=s,this._loadImage=new Image,this._autoResolution=ga.defaultAutoResolution,this._resolution=ga.defaultResolution??_t.RESOLUTION,this.text=t,this.style=e}measureText(t){var c,u;const{text:e,style:s,resolution:r}=Object.assign({text:this._text,style:this._style,resolution:this._resolution},t);Object.assign(this._domElement,{innerHTML:e,style:s.toCSS(r)}),this._styleElement.textContent=s.toGlobalCSS(),document.body.appendChild(this._svgRoot);const n=this._domElement.getBoundingClientRect();this._svgRoot.remove();const{width:a,height:o}=n;(a>this.maxWidth||o>this.maxHeight)&&console.warn("[HTMLText] Large expanse of text, increase HTMLText.maxWidth or HTMLText.maxHeight property.");const h=Math.min(this.maxWidth,Math.ceil(a)),l=Math.min(this.maxHeight,Math.ceil(o));return this._svgRoot.setAttribute("width",h.toString()),this._svgRoot.setAttribute("height",l.toString()),e!==this._text&&(this._domElement.innerHTML=this._text),s!==this._style&&(Object.assign(this._domElement,{style:(c=this._style)==null?void 0:c.toCSS(r)}),this._styleElement.textContent=(u=this._style)==null?void 0:u.toGlobalCSS()),{width:h+s.padding*2,height:l+s.padding*2}}async updateText(t=!0){const{style:e,_image:s,_loadImage:r}=this;if(this.localStyleID!==e.styleID&&(this.dirty=!0,this.localStyleID=e.styleID),!this.dirty&&t)return;const{width:n,height:a}=this.measureText();s.width=r.width=Math.ceil(Math.max(1,n)),s.height=r.height=Math.ceil(Math.max(1,a)),this._updateID++;const o=this._updateID;await new Promise(h=>{r.onload=async()=>{if(o<this._updateID){h();return}await e.onBeforeDraw(),s.src=r.src,r.onload=null,r.src="",this.updateTexture(),h()};const l=new XMLSerializer().serializeToString(this._svgRoot);r.src=`data:image/svg+xml;charset=utf8,${encodeURIComponent(l)}`})}get source(){ret Line truncated
}`,this._stylesheet)}get stylesheet(){return this._stylesheet}set stylesheet(t){this._stylesheet!==t&&(this._stylesheet=t,this.styleID++)}normalizeColor(t){return Array.isArray(t)&&(t=jI(t)),typeof t=="number"?zI(t):t}dropShadowToCSS(){let t=this.normalizeColor(this.dropShadowColor);const e=this.dropShadowAlpha,s=Math.round(Math.cos(this.dropShadowAngle)*this.dropShadowDistance),r=Math.round(Math.sin(this.dropShadowAngle)*this.dropShadowDistance);t.startsWith("#")&&e<1&&(t+=(e*255|0).toString(16).padStart(2,"0"));const n=`${s}px ${r}px`;return this.dropShadowBlur>0?`text-shadow: ${n} ${this.dropShadowBlur}px ${t}`:`text-shadow: ${n} ${t}`}reset(){Object.assign(this,ga.defaultOptions)}onBeforeDraw(){const{fontsDirty:t}=this;return this.fontsDirty=!1,this.isSafari&&this._fonts.length>0&&t?new Promise(e=>setTimeout(e,100)):Promise.resolve()}get isSafari(){const{userAgent:t}=_t.ADAPTER.getNavigator();return/^((?!chrome|android).)*safari/i.test(t)}set fillGradientStops(t){console.warn("[HTMLTextStyle] fillGradientStops is not supported by HTMLText")}get fillGradientStops(){return super.fillGradientStops}set fillGradientType(t){console.warn("[HTMLTextStyle] fillGradientType is not supported by HTMLText")}get fillGradientType(){return super.fillGradientType}set miterLimit(t){console.warn("[HTMLTextStyle] miterLimit is not supported by HTMLText")}get miterLimit(){return super.miterLimit}set trim(t){console.warn("[HTMLTextStyle] trim is not supported by HTMLText")}get trim(){return super.trim}set textBaseline(t){console.warn("[HTMLTextStyle] textBaseline is not supported by HTMLText")}get textBaseline(){return super.textBaseline}set leading(t){console.warn("[HTMLTextStyle] leading is not supported by HTMLText")}get leading(){return super.leading}set lineJoin(t){console.warn("[HTMLTextStyle] lineJoin is not supported by HTMLText")}get lineJoin(){return super.lineJoin}};Km.availableFonts={},Km.defaultOptions={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,padding:0,stroke:"black",strokeThickness:0,whiteSpace:"normal",wordWrap:!1,wordWrapWidth:100};let Of=Km;const mh=class ya extends Jn{constructor(t="",e={}){super(Ot.EMPTY),this._text=null,this._style=null,this._autoResolution=!0,this.localStyleID=-1,this.dirty=!1,this._updateID=0,this.ownsStyle=!1;const s=new Image,r=Ot.from(s,{scaleMode:_t.SCALE_MODE,resourceOptions:{autoLoad:!1}});r.orig=new Nt,r.trim=new Nt,this.texture=r;const n="http://www.w3.org/2000/svg",a="http://www.w3.org/1999/xhtml",o=document.createElementNS(n,"svg"),h=document.createElementNS(n,"foreignObject"),l=document.createElementNS(a,"div"),c=document.createElementNS(a,"style");h.setAttribute("width","10000"),h.setAttribute("height","10000"),h.style.overflow="hidden",o.appendChild(h),this.maxWidth=ya.defaultMaxWidth,this.maxHeight=ya.defaultMaxHeight,this._domElement=l,this._styleElement=c,this._svgRoot=o,this._foreignObject=h,this._foreignObject.appendChild(c),this._foreignObject.appendChild(l),this._image=s,this._loadImage=new Image,this._autoResolution=ya.defaultAutoResolution,this._resolution=ya.defaultResolution??_t.RESOLUTION,this.text=t,this.style=e}measureText(t){var c,u;const{text:e,style:s,resolution:r}=Object.assign({text:this._text,style:this._style,resolution:this._resolution},t);Object.assign(this._domElement,{innerHTML:e,style:s.toCSS(r)}),this._styleElement.textContent=s.toGlobalCSS(),document.body.appendChild(this._svgRoot);const n=this._domElement.getBoundingClientRect();this._svgRoot.remove();const{width:a,height:o}=n;(a>this.maxWidth||o>this.maxHeight)&&console.warn("[HTMLText] Large expanse of text, increase HTMLText.maxWidth or HTMLText.maxHeight property.");const h=Math.min(this.maxWidth,Math.ceil(a)),l=Math.min(this.maxHeight,Math.ceil(o));return this._svgRoot.setAttribute("width",h.toString()),this._svgRoot.setAttribute("height",l.toString()),e!==this._text&&(this._domElement.innerHTML=this._text),s!==this._style&&(Object.assign(this._domElement,{style:(c=this._style)==null?void 0:c.toCSS(r)}),this._styleElement.textContent=(u=this._style)==null?void 0:u.toGlobalCSS()),{width:h+s.padding*2,height:l+s.padding*2}}async updateText(t=!0){const{style:e,_image:s,_loadImage:r}=this;if(this.localStyleID!==e.styleID&&(this.dirty=!0,this.localStyleID=e.styleID),!this.dirty&&t)return;const{width:n,height:a}=this.measureText();s.width=r.width=Math.ceil(Math.max(1,n)),s.height=r.height=Math.ceil(Math.max(1,a)),this._updateID++;const o=this._updateID;await new Promise(h=>{r.onload=async()=>{if(o<this._updateID){h();return}await e.onBeforeDraw(),s.src=r.src,r.onload=null,r.src="",this.updateTexture(),h()};const l=new XMLSerializer().serializeToString(this._svgRoot);r.src=`data:image/svg+xml;charset=utf8,${encodeURIComponent(l)}`})}get source(){ret Line truncated
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
@@ -1199,7 +1199,7 @@ void main(void)
vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;
}
`,ak=`
`,lk=`
varying vec2 vTextureCoord;
uniform vec4 uColor;
uniform vec4 uDarkColor;
@@ -1212,7 +1212,7 @@ void main(void)
gl_FragColor.a = texColor.a * uColor.a;
gl_FragColor.rgb = ((texColor.a - 1.0) * uDarkColor.a + 1.0 - texColor.rgb) * uDarkColor.rgb + texColor.rgb * uColor.rgb;
}
`;let ok=class extends Js{constructor(e){const s={uSampler:e??Nt.EMPTY,alpha:1,uTextureMatrix:fe.IDENTITY,uColor:new Float32Array([1,1,1,1]),uDarkColor:new Float32Array([0,0,0,0])},r={tint:16777215,darkTint:0,alpha:1,pluginName:"darkTintBatch"};super(ur.from(nk,ak),s);x(this,"uvMatrix");x(this,"batchable");x(this,"pluginName");x(this,"_tintRGB");x(this,"_darkTintRGB");x(this,"_colorDirty");x(this,"_alpha");x(this,"_tintColor");x(this,"_darkTintColor");this._colorDirty=!1,this.uvMatrix=new jc(s.uSampler),this.batchable=!0,this.pluginName=r.pluginName,this._tintColor=new Wt(r.tint),this._darkTintColor=new Wt(r.darkTint),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._darkTintRGB=this._darkTintColor.toLittleEndianNumber(),this._alpha=r.alpha,this._colorDirty=!0}get texture(){return this.uniforms.uSampler}set texture(e){this.uniforms.uSampler!==e&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!e.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=e,this.uvMatrix.texture=e)}set alpha(e){e!==this._alpha&&(this._alpha=e,this._colorDirty=!0)}get alpha(){return this._alpha}set tint(e){e!==this.tint&&(this._tintColor.setValue(e),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0)}get tint(){return this._tintColor.value}set darkTint(e){e!==this.darkTint&&(this._darkTintColor.setValue(e),this._darkTintRGB=this._darkTintColor.toLittleEndianNumber(),this._colorDirty=!0)}get darkTint(){return this._darkTintColor.value}get tintValue(){return this._tintColor.toNumber()}get darkTintValue(){return this._darkTintColor.toNumber()}update(){this._colorDirty&&(this._colorDirty=!1,Wt.shared.setValue(this._tintColor).premultiply(this._alpha,!0).toArray(this.uniforms.uColor),Wt.shared.setValue(this._darkTintColor).premultiply(this._alpha,!0).premultiply(1,!1).toArray(this.uniforms.uDarkColor)),this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)}},lk=class extends zn{constructor(e){super(new ik,new ok(e),void 0,void 0);x(this,"_darkTintRGB",0)}get darkTint(){return"darkTint"in this.shader?this.shader.darkTint:null}set darkTint(e){this.shader.darkTint=e}get darkTintValue(){return this.shader.darkTintValue}_renderToBatch(e){const s=this.geometry,r=this.shader;r.uvMatrix&&(r.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=s.indexBuffer.data,this._tintRGB=r._tintRGB,this._darkTintRGB=r._darkTintRGB,this._texture=r.texture;const n=this.material.pluginName;e.batch.setObjectRenderer(e.plugins[n]),e.plugins[n].render(this)}};var Me;let Uf=(Me=class extends lk{constructor(){super();x(this,"name","")}updateFromSpineData(e,s,r,n,a,o,h,l){var y,_;this.texture=e.texture;const c=a/(l?12:8)*2,u=this.geometry.getBuffer("aTextureCoord");((y=u.data)==null?void 0:y.length)!==c&&(u.data=new Float32Array(c));const d=this.geometry.getBuffer("aVertexPosition");((_=d.data)==null?void 0:_.length)!==c&&(d.data=new Float32Array(c));let f=0,m=u.data,p=d.data;for(let v=0;v<a;v+=l?12:8){let b=v;p[f]=n[b++],p[f+1]=n[b++],b+=4,m[f]=n[b++],m[f+1]=n[b++],f+=2}l?(Me.auxColor[0]=n[8],Me.auxColor[1]=n[9],Me.auxColor[2]=n[10],Me.auxColor[3]=n[11],this.darkTint=Me.auxColor,Me.auxColor[0]=n[2],Me.auxColor[1]=n[3],Me.auxColor[2]=n[4],Me.auxColor[3]=n[5],this.tint=Me.auxColor):(Me.auxColor[0]=n[2],Me.auxColor[1]=n[3],Me.auxColor[2]=n[4],Me.auxColor[3]=n[5],this.tint=Me.auxColor),this.blendMode=hc.toPixiBlending(s),this.alpha=Me.auxColor[3];const g=this.geometry.indexBuffer;if(g.data.length!==o.length)g.data=new Uint32Array(o);else{const v=g.data;for(let b=0;b<h;b++)v[b]=o[b]}this.name=r,u.update(),d.update(),g.update()}},x(Me,"auxColor",[0,0,0,0]),Me);var qt;let aO=(qt=class extends fs{constructor(e,s){if(e instanceof lc)e={...s,skeletonData:e};else if(s)throw new Error("You cannot use options and oldOptions together.");super();x(this,"skeleton");x(this,"state");x(this,"darkTint",!1);x(this,"hasNeverUpdated",!0);x(this,"_debug");x(this,"slotMeshFactory",()=>new rk);x(this,"beforeUpdateWorldTransforms",()=>{});x(this,"afterUpdateWorldTransforms",()=>{});x(this,"_autoUpdate",!1);x(this,"_ticker",ss.shared);x(this,"meshesCache",new Map);x(this,"lightColor",new Dt);x(this,"darkColor",new Dt);x(this,"_boundsProvider");x(this,"_boundsPoint",new Kt);x(this,"_boundsSpineID",-1);x(this,"_boundsSpineDirty",!0);x(this,"slotsObject",new Map);x(this,"verticesCache",xt.newFloatArray(1024));x(this,"clippingSlotToPixiMasks",{});x(this,"currentClippingSlot");const r=e instanceof lc?e:e.skeletonData;this.skeleton=new Kp(r);const n=new lF(r);this.state=new rF(n),(e==null?void 0:e.darkTint)!==void 0||(s==null?void 0:s.slotMeshFactory)===void 0?(this.darkTint=(e==null?void 0:e.darkTint)===void 0?this.skeleton.slots.some(a=>!!a.data.darkColor):e==null?void 0:e.darkTint,this.darkTint&&(this.slotMeshFactory=()=>new Uf)):this.initializeMeshFactory(s==null?void 0:s.slotMeshFactory),e!=null&&e.ticker&&(this._ticker=e.ticker),this.autoUpdate=(e==null?void 0:e.autoUpdate)??!0,this.boundsProvider=e.b Line truncated
`;let hk=class extends Js{constructor(e){const s={uSampler:e??Ot.EMPTY,alpha:1,uTextureMatrix:fe.IDENTITY,uColor:new Float32Array([1,1,1,1]),uDarkColor:new Float32Array([0,0,0,0])},r={tint:16777215,darkTint:0,alpha:1,pluginName:"darkTintBatch"};super(ur.from(ok,lk),s);x(this,"uvMatrix");x(this,"batchable");x(this,"pluginName");x(this,"_tintRGB");x(this,"_darkTintRGB");x(this,"_colorDirty");x(this,"_alpha");x(this,"_tintColor");x(this,"_darkTintColor");this._colorDirty=!1,this.uvMatrix=new Il(s.uSampler),this.batchable=!0,this.pluginName=r.pluginName,this._tintColor=new Wt(r.tint),this._darkTintColor=new Wt(r.darkTint),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._darkTintRGB=this._darkTintColor.toLittleEndianNumber(),this._alpha=r.alpha,this._colorDirty=!0}get texture(){return this.uniforms.uSampler}set texture(e){this.uniforms.uSampler!==e&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!e.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=e,this.uvMatrix.texture=e)}set alpha(e){e!==this._alpha&&(this._alpha=e,this._colorDirty=!0)}get alpha(){return this._alpha}set tint(e){e!==this.tint&&(this._tintColor.setValue(e),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0)}get tint(){return this._tintColor.value}set darkTint(e){e!==this.darkTint&&(this._darkTintColor.setValue(e),this._darkTintRGB=this._darkTintColor.toLittleEndianNumber(),this._colorDirty=!0)}get darkTint(){return this._darkTintColor.value}get tintValue(){return this._tintColor.toNumber()}get darkTintValue(){return this._darkTintColor.toNumber()}update(){this._colorDirty&&(this._colorDirty=!1,Wt.shared.setValue(this._tintColor).premultiply(this._alpha,!0).toArray(this.uniforms.uColor),Wt.shared.setValue(this._darkTintColor).premultiply(this._alpha,!0).premultiply(1,!1).toArray(this.uniforms.uDarkColor)),this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)}},ck=class extends zn{constructor(e){super(new ak,new hk(e),void 0,void 0);x(this,"_darkTintRGB",0)}get darkTint(){return"darkTint"in this.shader?this.shader.darkTint:null}set darkTint(e){this.shader.darkTint=e}get darkTintValue(){return this.shader.darkTintValue}_renderToBatch(e){const s=this.geometry,r=this.shader;r.uvMatrix&&(r.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=s.indexBuffer.data,this._tintRGB=r._tintRGB,this._darkTintRGB=r._darkTintRGB,this._texture=r.texture;const n=this.material.pluginName;e.batch.setObjectRenderer(e.plugins[n]),e.plugins[n].render(this)}};var Me;let Vf=(Me=class extends ck{constructor(){super();x(this,"name","")}updateFromSpineData(e,s,r,n,a,o,h,l){var y,_;this.texture=e.texture;const c=a/(l?12:8)*2,u=this.geometry.getBuffer("aTextureCoord");((y=u.data)==null?void 0:y.length)!==c&&(u.data=new Float32Array(c));const d=this.geometry.getBuffer("aVertexPosition");((_=d.data)==null?void 0:_.length)!==c&&(d.data=new Float32Array(c));let f=0,m=u.data,p=d.data;for(let v=0;v<a;v+=l?12:8){let b=v;p[f]=n[b++],p[f+1]=n[b++],b+=4,m[f]=n[b++],m[f+1]=n[b++],f+=2}l?(Me.auxColor[0]=n[8],Me.auxColor[1]=n[9],Me.auxColor[2]=n[10],Me.auxColor[3]=n[11],this.darkTint=Me.auxColor,Me.auxColor[0]=n[2],Me.auxColor[1]=n[3],Me.auxColor[2]=n[4],Me.auxColor[3]=n[5],this.tint=Me.auxColor):(Me.auxColor[0]=n[2],Me.auxColor[1]=n[3],Me.auxColor[2]=n[4],Me.auxColor[3]=n[5],this.tint=Me.auxColor),this.blendMode=uc.toPixiBlending(s),this.alpha=Me.auxColor[3];const g=this.geometry.indexBuffer;if(g.data.length!==o.length)g.data=new Uint32Array(o);else{const v=g.data;for(let b=0;b<h;b++)v[b]=o[b]}this.name=r,u.update(),d.update(),g.update()}},x(Me,"auxColor",[0,0,0,0]),Me);var Kt;let lO=(Kt=class extends fs{constructor(e,s){if(e instanceof cc)e={...s,skeletonData:e};else if(s)throw new Error("You cannot use options and oldOptions together.");super();x(this,"skeleton");x(this,"state");x(this,"darkTint",!1);x(this,"hasNeverUpdated",!0);x(this,"_debug");x(this,"slotMeshFactory",()=>new nk);x(this,"beforeUpdateWorldTransforms",()=>{});x(this,"afterUpdateWorldTransforms",()=>{});x(this,"_autoUpdate",!1);x(this,"_ticker",ss.shared);x(this,"meshesCache",new Map);x(this,"lightColor",new Ut);x(this,"darkColor",new Ut);x(this,"_boundsProvider");x(this,"_boundsPoint",new zt);x(this,"_boundsSpineID",-1);x(this,"_boundsSpineDirty",!0);x(this,"slotsObject",new Map);x(this,"verticesCache",xt.newFloatArray(1024));x(this,"clippingSlotToPixiMasks",{});x(this,"currentClippingSlot");const r=e instanceof cc?e:e.skeletonData;this.skeleton=new Zp(r);const n=new cF(r);this.state=new nF(n),(e==null?void 0:e.darkTint)!==void 0||(s==null?void 0:s.slotMeshFactory)===void 0?(this.darkTint=(e==null?void 0:e.darkTint)===void 0?this.skeleton.slots.some(a=>!!a.data.darkColor):e==null?void 0:e.darkTint,this.darkTint&&(this.slotMeshFactory=()=>new Vf)):this.initializeMeshFactory(s==null?void 0:s.slotMeshFactory),e!=null&&e.ticker&&(this._ticker=e.ticker),this.autoUpdate=(e==null?void 0:e.autoUpdate)??!0,this.boundsProvider=e.b Line truncated
precision highp float;
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
@@ -1238,7 +1238,7 @@ void main(void){
vDarkColor = aDarkColor * tint;
}
`,pk=`
`,yk=`
varying vec2 vTextureCoord;
varying vec4 vColor;
varying vec4 vDarkColor;
@@ -1253,8 +1253,8 @@ void main(void){
gl_FragColor.a = color.a * vColor.a;
gl_FragColor.rgb = ((color.a - 1.0) * vDarkColor.a + 1.0 - color.rgb) * vDarkColor.rgb + color.rgb * vColor.rgb;
}
`;var Vf;let gk=(Vf=class extends li{constructor(t){super(t),this.shaderGenerator=new Np(mk,pk),this.geometryClass=fk,this.vertexSize=7}packInterleavedGeometry(t,e,s,r,n){const{uint32View:a,float32View:o}=e,h=r/this.vertexSize,l=t.uvs,c=t.indices,u=t.vertexData,d=t._texture.baseTexture._batchLocation,f=Math.min(t.worldAlpha,1),m=Wt.shared.setValue(t._tintRGB).toPremultiplied(f,!0),p=Wt.shared.setValue(t._darkTintRGB).premultiply(f,!0).toPremultiplied(1,!1);for(let g=0;g<u.length;g+=2)o[r++]=u[g],o[r++]=u[g+1],o[r++]=l[g],o[r++]=l[g+1],a[r++]=m,a[r++]=p,o[r++]=d;for(let g=0;g<c.length;g++)s[n++]=h+c[g]}},x(Vf,"extension",{name:"darkTintBatch",type:gt.RendererPlugin}),Vf);St.add(gk);class Cw{constructor(){x(this,"array",[])}add(t){const e=this.contains(t);return this.array[t|0]=t|0,!e}contains(t){return this.array[t|0]!==void 0}remove(t){this.array[t|0]=void 0}clear(){this.array.length=0}}class Zp{constructor(){x(this,"entries",{});x(this,"size",0)}add(t){const e=this.entries[t];return this.entries[t]=!0,e?!1:(this.size++,!0)}addAll(t){const e=this.size;for(let s=0,r=t.length;s<r;s++)this.add(t[s]);return e!==this.size}contains(t){return this.entries[t]}clear(){this.entries={},this.size=0}}const Bs=class Bs{constructor(t=0,e=0,s=0,r=0){x(this,"r");x(this,"g");x(this,"b");x(this,"a");this.r=t,this.g=e,this.b=s,this.a=r}set(t,e,s,r){return this.r=t,this.g=e,this.b=s,this.a=r,this.clamp()}setFromColor(t){return this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this}setFromString(t){return t=t.charAt(0)==="#"?t.substr(1):t,this.r=parseInt(t.substr(0,2),16)/255,this.g=parseInt(t.substr(2,2),16)/255,this.b=parseInt(t.substr(4,2),16)/255,this.a=t.length!==8?1:parseInt(t.substr(6,2),16)/255,this}add(t,e,s,r){return this.r+=t,this.g+=e,this.b+=s,this.a+=r,this.clamp()}clamp(){return this.r<0?this.r=0:this.r>1&&(this.r=1),this.g<0?this.g=0:this.g>1&&(this.g=1),this.b<0?this.b=0:this.b>1&&(this.b=1),this.a<0?this.a=0:this.a>1&&(this.a=1),this}static rgba8888ToColor(t,e){t.r=((e&4278190080)>>>24)/255,t.g=((e&16711680)>>>16)/255,t.b=((e&65280)>>>8)/255,t.a=(e&255)/255}static rgb888ToColor(t,e){t.r=((e&16711680)>>>16)/255,t.g=((e&65280)>>>8)/255,t.b=(e&255)/255}toRgb888(){const t=e=>`0${(e*255).toString(16)}`.slice(-2);return+`0x${t(this.r)}${t(this.g)}${t(this.b)}`}static fromString(t,e=new Bs){return e.setFromString(t)}};x(Bs,"WHITE",new Bs(1,1,1,1)),x(Bs,"RED",new Bs(1,0,0,1)),x(Bs,"GREEN",new Bs(0,1,0,1)),x(Bs,"BLUE",new Bs(0,0,1,1)),x(Bs,"MAGENTA",new Bs(1,0,1,1));let Ft=Bs;const Se=class Se{static clamp(t,e,s){return t<e?e:t>s?s:t}static cosDeg(t){return Math.cos(t*Se.degRad)}static sinDeg(t){return Math.sin(t*Se.degRad)}static atan2Deg(t,e){return Math.atan2(t,e)*Se.radDeg}static signum(t){return t>0?1:t<0?-1:0}static toInt(t){return t>0?Math.floor(t):Math.ceil(t)}static cbrt(t){const e=Math.pow(Math.abs(t),.3333333333333333);return t<0?-e:e}static randomTriangular(t,e){return Se.randomTriangularWith(t,e,(t+e)*.5)}static randomTriangularWith(t,e,s){const r=Math.random(),n=e-t;return r<=(s-t)/n?t+Math.sqrt(r*n*(s-t)):e-Math.sqrt((1-r)*n*(e-s))}static isPowerOfTwo(t){return t&&(t&t-1)===0}};x(Se,"epsilon",1e-5),x(Se,"epsilon2",Se.epsilon*Se.epsilon),x(Se,"PI",3.1415927),x(Se,"PI2",Se.PI*2),x(Se,"invPI2",1/Se.PI2),x(Se,"radiansToDegrees",180/Se.PI),x(Se,"radDeg",Se.radiansToDegrees),x(Se,"degreesToRadians",Se.PI/180),x(Se,"degRad",Se.degreesToRadians);let pt=Se;const Gs=class Gs{apply(t,e,s){return e===void 0||s===void 0?this.applyInternal(t):t+(e-t)*this.applyInternal(s)}};x(Gs,"linear",new class extends Gs{applyInternal(t){return t}}),x(Gs,"smooth",new class extends Gs{applyInternal(t){return t*t*(3-2*t)}}),x(Gs,"slowFast",new class extends Gs{applyInternal(t){return t*t}}),x(Gs,"fastSlow",new class extends Gs{applyInternal(t){return(t-1)*(t-1)*-1+1}}),x(Gs,"circle",new class extends Gs{applyInternal(t){return t<=.5?(t*=2,(1-Math.sqrt(1-t*t))/2):(t--,t*=2,(Math.sqrt(1-t*t)+1)/2)}});let en=Gs;class Jp extends en{constructor(e){super();x(this,"power",2);this.power=e}applyInternal(e){return e<=.5?Math.pow(e*2,this.power)/2:Math.pow((e-1)*2,this.power)/(this.power%2===0?-2:2)+1}}class Iw extends Jp{constructor(t){super(t)}applyInternal(t){return Math.pow(t-1,this.power)*(this.power%2===0?-1:1)+1}}const Wi=class Wi{static arrayCopy(t,e,s,r,n){for(let a=e,o=r;a<e+n;a++,o++)s[o]=t[a]}static arrayFill(t,e,s,r){for(let n=e;n<s;n++)t[n]=r}static setArraySize(t,e,s=0){const r=t.length;if(r===e)return t;if(t.length=e,r<e)for(let n=r;n<e;n++)t[n]=s;return t}static ensureArrayCapacity(t,e,s=0){return t.length>=e?t:Wi.setArraySize(t,e,s)}static newArray(t,e){const s=[];for(let r=0;r<t;r++)s[r]=e;return s}static newFloatArray(t){if(Wi.SUPPORTS_TYPED_ARRAYS)return new Float32Array(t);{const e=[];for(let s=0;s<e.length;s++)e[s]=0;return e}}static newShortArray(t){if(Wi.SUPPORTS_TYPED_ARRAYS)return new Int16Array(t);{const e=[];for(let s=0;s<e.length;s++)e[s]=0;return e}}static toFloatArray(t){return Wi.SUPPORTS_TYPED_ARRAYS?new Float32Arra Line truncated
${s}`:""}`)}remove(t){t=this.pathPrefix+t;const e=this.cache.assets[t];return e.dispose&&e.dispose(),delete this.cache.assets[t],delete this.cache.assetsRefCount[t],delete this.cache.assetsLoaded[t],e}removeAll(){for(const t in this.cache.assets){const e=this.cache.assets[t];e.dispose&&e.dispose()}this.cache.assets={},this.cache.assetsLoaded={},this.cache.assetsRefCount={}}isLoadingComplete(){return this.toLoad===0}getToLoad(){return this.toLoad}getLoaded(){return this.loaded}dispose(){this.removeAll()}disposeAsset(t){const e=this.cache.assets[t];if(e instanceof nl){e.dispose();return}this.disposeAssetInternal(t)}hasErrors(){return Object.keys(this.errors).length>0}getErrors(){return this.errors}disposeAssetInternal(t){if(this.cache.assetsRefCount[t]>0&&--this.cache.assetsRefCount[t]===0)return this.remove(t)}createTextureAtlas(t,e,s,r){const n=new nl(t);n.dispose=()=>{var a;if(!(this.cache.assetsRefCount[s]<=0)){this.disposeAssetInternal(s);for(const o of n.pages)(a=o.texture)==null||a.dispose()}};for(const a of n.pages){const o=this.texturePath(e,a.name,r);this.texturePmaInfo[this.pathPrefix+o]=a.pma}return n}createTexture(t,e,s){const r=this.textureLoader(s,e),n=r.dispose.bind(r);return r.dispose=()=>{this.disposeAssetInternal(t)&&n()},r}texturePath(t,e,s){return s?s[e]:t+e}}const Ta=class Ta{constructor(){x(this,"assets",{});x(this,"assetsRefCount",{});x(this,"assetsLoaded",{})}static getCache(t){const e=Ta.AVAILABLE_CACHES.get(t);if(e)return e;const s=new Ta;return Ta.AVAILABLE_CACHES.set(t,s),s}async addAsset(t,e){return this.assetsLoaded[t]=Promise.resolve(e),this.assets[t]=e,e}getAsset(t){return this.assetsLoaded[t]}};x(Ta,"AVAILABLE_CACHES",new Map);let al=Ta;class lg{constructor(){x(this,"callbacks",{});x(this,"rawDataUris",{})}dataUriToString(t){if(!t.startsWith("data:"))throw new Error("Not a data URI.");let e=t.indexOf("base64,");return e!==-1?(e+=7,atob(t.substr(e))):t.substr(t.indexOf(",")+1)}base64ToUint8Array(t){var e=window.atob(t),s=e.length,r=new Uint8Array(s);for(let n=0;n<s;n++)r[n]=e.charCodeAt(n);return r}dataUriToUint8Array(t){if(!t.startsWith("data:"))throw new Error("Not a data URI.");let e=t.indexOf("base64,");if(e===-1)throw new Error("Not a binary data URI.");return e+=7,this.base64ToUint8Array(t.substr(e))}downloadText(t,e,s){if(this.start(t,e,s))return;const r=this.rawDataUris[t];if(r&&!r.includes(".")){try{this.finish(t,200,this.dataUriToString(r))}catch(o){this.finish(t,400,JSON.stringify(o))}return}const n=new XMLHttpRequest;n.overrideMimeType("text/html"),n.open("GET",r||t,!0);const a=()=>{this.finish(t,n.status,n.responseText)};n.onload=a,n.onerror=a,n.send()}downloadJson(t,e,s){this.downloadText(t,r=>{e(JSON.parse(r))},s)}downloadBinary(t,e,s){if(this.start(t,e,s))return;const r=this.rawDataUris[t];if(r&&!r.includes(".")){try{this.finish(t,200,this.dataUriToUint8Array(r))}catch(o){this.finish(t,400,JSON.stringify(o))}return}const n=new XMLHttpRequest;n.open("GET",r||t,!0),n.responseType="arraybuffer";const a=()=>{this.finish(t,n.status,n.response)};n.onload=()=>{n.status===200||n.status===0?this.finish(t,200,new Uint8Array(n.response)):a()},n.onerror=a,n.send()}start(t,e,s){let r=this.callbacks[t];try{if(r)return!0;this.callbacks[t]=r=[]}finally{r.push(e,s)}}finish(t,e,s){const r=this.callbacks[t];if(delete this.callbacks[t],e===200||e===0)for(let n=0,a=r.length;n<a;n+=2)r[n](s);else for(let n=1,a=r.length;n<a;n+=2)r[n](e,s)}}class ro extends vr{constructor(e){super(e);x(this,"color",new Ft(1,1,1,1))}copy(){const e=new ro(this.name);return this.copyTo(e),e.color.setFromColor(this.color),e}}class zr extends vr{constructor(e){super(e);x(this,"endSlot",null);x(this,"convex",!1);x(this,"inverse",!1);x(this,"color",new Ft(.2275,.2275,.8078,1))}copy(){const e=new zr(this.name);return this.copyTo(e),e.endSlot=this.endSlot,e.convex=this.convex,e.inverse=this.inverse,e.color.setFromColor(this.color),e}}class on extends vr{constructor(e){super(e);x(this,"lengths",[]);x(this,"closed",!1);x(this,"constantSpeed",!1);x(this,"color",new Ft(1,1,1,1))}copy(){const e=new on(this.name);return this.copyTo(e),e.lengths=[],bt.arrayCopy(this.lengths,0,e.lengths,0,this.lengths.length),e.closed=this.closed,e.constantSpeed=this.constantSpeed,e.color.setFromColor(this.color),e}}class Rl extends vr{constructor(e){super(e);x(this,"x",0);x(this,"y",0);x(this,"rotation",0);x(this,"color",new Ft(.38,.94,0,1))}computeWorldPosition(e,s){return s.x=this.x*e.a+this.y*e.b+e.worldX,s.y=this.x*e.c+this.y*e.d+e.worldY,s}computeWorldRotation(e){const s=this.rotation*pt.degRad,r=Math.cos(s),n=Math.sin(s),a=r*e.a+n*e.b,o=r*e.c+n*e.d;return pt.atan2Deg(o,a)}copy(){const e=new Rl(this.name);return e.x=this.x,e.y=this.y,e.rotation=this.rotation,e.color.setFromColor(this.color),e}}class hg{constructor(t,e=!1){x(this,"atlas");x(this,"allowMissingRegions");this.atlas=t,this.allowMissingRegions=e}findRegions(t,e,s){const r=s.regions;for(let n=0,a=r.length;n<a;n++)r[n]=this.findRegion(t,s.getPath(e,n))}findRegion(t,e){Line truncated
`;var Gf;let xk=(Gf=class extends li{constructor(t){super(t),this.shaderGenerator=new Up(gk,yk),this.geometryClass=pk,this.vertexSize=7}packInterleavedGeometry(t,e,s,r,n){const{uint32View:a,float32View:o}=e,h=r/this.vertexSize,l=t.uvs,c=t.indices,u=t.vertexData,d=t._texture.baseTexture._batchLocation,f=Math.min(t.worldAlpha,1),m=Wt.shared.setValue(t._tintRGB).toPremultiplied(f,!0),p=Wt.shared.setValue(t._darkTintRGB).premultiply(f,!0).toPremultiplied(1,!1);for(let g=0;g<u.length;g+=2)o[r++]=u[g],o[r++]=u[g+1],o[r++]=l[g],o[r++]=l[g+1],a[r++]=m,a[r++]=p,o[r++]=d;for(let g=0;g<c.length;g++)s[n++]=h+c[g]}},x(Gf,"extension",{name:"darkTintBatch",type:gt.RendererPlugin}),Gf);St.add(xk);class Pw{constructor(){x(this,"array",[])}add(t){const e=this.contains(t);return this.array[t|0]=t|0,!e}contains(t){return this.array[t|0]!==void 0}remove(t){this.array[t|0]=void 0}clear(){this.array.length=0}}class Jp{constructor(){x(this,"entries",{});x(this,"size",0)}add(t){const e=this.entries[t];return this.entries[t]=!0,e?!1:(this.size++,!0)}addAll(t){const e=this.size;for(let s=0,r=t.length;s<r;s++)this.add(t[s]);return e!==this.size}contains(t){return this.entries[t]}clear(){this.entries={},this.size=0}}const Bs=class Bs{constructor(t=0,e=0,s=0,r=0){x(this,"r");x(this,"g");x(this,"b");x(this,"a");this.r=t,this.g=e,this.b=s,this.a=r}set(t,e,s,r){return this.r=t,this.g=e,this.b=s,this.a=r,this.clamp()}setFromColor(t){return this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this}setFromString(t){return t=t.charAt(0)==="#"?t.substr(1):t,this.r=parseInt(t.substr(0,2),16)/255,this.g=parseInt(t.substr(2,2),16)/255,this.b=parseInt(t.substr(4,2),16)/255,this.a=t.length!==8?1:parseInt(t.substr(6,2),16)/255,this}add(t,e,s,r){return this.r+=t,this.g+=e,this.b+=s,this.a+=r,this.clamp()}clamp(){return this.r<0?this.r=0:this.r>1&&(this.r=1),this.g<0?this.g=0:this.g>1&&(this.g=1),this.b<0?this.b=0:this.b>1&&(this.b=1),this.a<0?this.a=0:this.a>1&&(this.a=1),this}static rgba8888ToColor(t,e){t.r=((e&4278190080)>>>24)/255,t.g=((e&16711680)>>>16)/255,t.b=((e&65280)>>>8)/255,t.a=(e&255)/255}static rgb888ToColor(t,e){t.r=((e&16711680)>>>16)/255,t.g=((e&65280)>>>8)/255,t.b=(e&255)/255}toRgb888(){const t=e=>`0${(e*255).toString(16)}`.slice(-2);return+`0x${t(this.r)}${t(this.g)}${t(this.b)}`}static fromString(t,e=new Bs){return e.setFromString(t)}};x(Bs,"WHITE",new Bs(1,1,1,1)),x(Bs,"RED",new Bs(1,0,0,1)),x(Bs,"GREEN",new Bs(0,1,0,1)),x(Bs,"BLUE",new Bs(0,0,1,1)),x(Bs,"MAGENTA",new Bs(1,0,1,1));let Ft=Bs;const Se=class Se{static clamp(t,e,s){return t<e?e:t>s?s:t}static cosDeg(t){return Math.cos(t*Se.degRad)}static sinDeg(t){return Math.sin(t*Se.degRad)}static atan2Deg(t,e){return Math.atan2(t,e)*Se.radDeg}static signum(t){return t>0?1:t<0?-1:0}static toInt(t){return t>0?Math.floor(t):Math.ceil(t)}static cbrt(t){const e=Math.pow(Math.abs(t),.3333333333333333);return t<0?-e:e}static randomTriangular(t,e){return Se.randomTriangularWith(t,e,(t+e)*.5)}static randomTriangularWith(t,e,s){const r=Math.random(),n=e-t;return r<=(s-t)/n?t+Math.sqrt(r*n*(s-t)):e-Math.sqrt((1-r)*n*(e-s))}static isPowerOfTwo(t){return t&&(t&t-1)===0}};x(Se,"epsilon",1e-5),x(Se,"epsilon2",Se.epsilon*Se.epsilon),x(Se,"PI",3.1415927),x(Se,"PI2",Se.PI*2),x(Se,"invPI2",1/Se.PI2),x(Se,"radiansToDegrees",180/Se.PI),x(Se,"radDeg",Se.radiansToDegrees),x(Se,"degreesToRadians",Se.PI/180),x(Se,"degRad",Se.degreesToRadians);let pt=Se;const Gs=class Gs{apply(t,e,s){return e===void 0||s===void 0?this.applyInternal(t):t+(e-t)*this.applyInternal(s)}};x(Gs,"linear",new class extends Gs{applyInternal(t){return t}}),x(Gs,"smooth",new class extends Gs{applyInternal(t){return t*t*(3-2*t)}}),x(Gs,"slowFast",new class extends Gs{applyInternal(t){return t*t}}),x(Gs,"fastSlow",new class extends Gs{applyInternal(t){return(t-1)*(t-1)*-1+1}}),x(Gs,"circle",new class extends Gs{applyInternal(t){return t<=.5?(t*=2,(1-Math.sqrt(1-t*t))/2):(t--,t*=2,(Math.sqrt(1-t*t)+1)/2)}});let en=Gs;class Qp extends en{constructor(e){super();x(this,"power",2);this.power=e}applyInternal(e){return e<=.5?Math.pow(e*2,this.power)/2:Math.pow((e-1)*2,this.power)/(this.power%2===0?-2:2)+1}}class Mw extends Qp{constructor(t){super(t)}applyInternal(t){return Math.pow(t-1,this.power)*(this.power%2===0?-1:1)+1}}const Wi=class Wi{static arrayCopy(t,e,s,r,n){for(let a=e,o=r;a<e+n;a++,o++)s[o]=t[a]}static arrayFill(t,e,s,r){for(let n=e;n<s;n++)t[n]=r}static setArraySize(t,e,s=0){const r=t.length;if(r===e)return t;if(t.length=e,r<e)for(let n=r;n<e;n++)t[n]=s;return t}static ensureArrayCapacity(t,e,s=0){return t.length>=e?t:Wi.setArraySize(t,e,s)}static newArray(t,e){const s=[];for(let r=0;r<t;r++)s[r]=e;return s}static newFloatArray(t){if(Wi.SUPPORTS_TYPED_ARRAYS)return new Float32Array(t);{const e=[];for(let s=0;s<e.length;s++)e[s]=0;return e}}static newShortArray(t){if(Wi.SUPPORTS_TYPED_ARRAYS)return new Int16Array(t);{const e=[];for(let s=0;s<e.length;s++)e[s]=0;return e}}static toFloatArray(t){return Wi.SUPPORTS_TYPED_ARRAYS?new Float32Arra Line truncated
${s}`:""}`)}remove(t){t=this.pathPrefix+t;const e=this.cache.assets[t];return e.dispose&&e.dispose(),delete this.cache.assets[t],delete this.cache.assetsRefCount[t],delete this.cache.assetsLoaded[t],e}removeAll(){for(const t in this.cache.assets){const e=this.cache.assets[t];e.dispose&&e.dispose()}this.cache.assets={},this.cache.assetsLoaded={},this.cache.assetsRefCount={}}isLoadingComplete(){return this.toLoad===0}getToLoad(){return this.toLoad}getLoaded(){return this.loaded}dispose(){this.removeAll()}disposeAsset(t){const e=this.cache.assets[t];if(e instanceof al){e.dispose();return}this.disposeAssetInternal(t)}hasErrors(){return Object.keys(this.errors).length>0}getErrors(){return this.errors}disposeAssetInternal(t){if(this.cache.assetsRefCount[t]>0&&--this.cache.assetsRefCount[t]===0)return this.remove(t)}createTextureAtlas(t,e,s,r){const n=new al(t);n.dispose=()=>{var a;if(!(this.cache.assetsRefCount[s]<=0)){this.disposeAssetInternal(s);for(const o of n.pages)(a=o.texture)==null||a.dispose()}};for(const a of n.pages){const o=this.texturePath(e,a.name,r);this.texturePmaInfo[this.pathPrefix+o]=a.pma}return n}createTexture(t,e,s){const r=this.textureLoader(s,e),n=r.dispose.bind(r);return r.dispose=()=>{this.disposeAssetInternal(t)&&n()},r}texturePath(t,e,s){return s?s[e]:t+e}}const Sa=class Sa{constructor(){x(this,"assets",{});x(this,"assetsRefCount",{});x(this,"assetsLoaded",{})}static getCache(t){const e=Sa.AVAILABLE_CACHES.get(t);if(e)return e;const s=new Sa;return Sa.AVAILABLE_CACHES.set(t,s),s}async addAsset(t,e){return this.assetsLoaded[t]=Promise.resolve(e),this.assets[t]=e,e}getAsset(t){return this.assetsLoaded[t]}};x(Sa,"AVAILABLE_CACHES",new Map);let ol=Sa;class hg{constructor(){x(this,"callbacks",{});x(this,"rawDataUris",{})}dataUriToString(t){if(!t.startsWith("data:"))throw new Error("Not a data URI.");let e=t.indexOf("base64,");return e!==-1?(e+=7,atob(t.substr(e))):t.substr(t.indexOf(",")+1)}base64ToUint8Array(t){var e=window.atob(t),s=e.length,r=new Uint8Array(s);for(let n=0;n<s;n++)r[n]=e.charCodeAt(n);return r}dataUriToUint8Array(t){if(!t.startsWith("data:"))throw new Error("Not a data URI.");let e=t.indexOf("base64,");if(e===-1)throw new Error("Not a binary data URI.");return e+=7,this.base64ToUint8Array(t.substr(e))}downloadText(t,e,s){if(this.start(t,e,s))return;const r=this.rawDataUris[t];if(r&&!r.includes(".")){try{this.finish(t,200,this.dataUriToString(r))}catch(o){this.finish(t,400,JSON.stringify(o))}return}const n=new XMLHttpRequest;n.overrideMimeType("text/html"),n.open("GET",r||t,!0);const a=()=>{this.finish(t,n.status,n.responseText)};n.onload=a,n.onerror=a,n.send()}downloadJson(t,e,s){this.downloadText(t,r=>{e(JSON.parse(r))},s)}downloadBinary(t,e,s){if(this.start(t,e,s))return;const r=this.rawDataUris[t];if(r&&!r.includes(".")){try{this.finish(t,200,this.dataUriToUint8Array(r))}catch(o){this.finish(t,400,JSON.stringify(o))}return}const n=new XMLHttpRequest;n.open("GET",r||t,!0),n.responseType="arraybuffer";const a=()=>{this.finish(t,n.status,n.response)};n.onload=()=>{n.status===200||n.status===0?this.finish(t,200,new Uint8Array(n.response)):a()},n.onerror=a,n.send()}start(t,e,s){let r=this.callbacks[t];try{if(r)return!0;this.callbacks[t]=r=[]}finally{r.push(e,s)}}finish(t,e,s){const r=this.callbacks[t];if(delete this.callbacks[t],e===200||e===0)for(let n=0,a=r.length;n<a;n+=2)r[n](s);else for(let n=1,a=r.length;n<a;n+=2)r[n](e,s)}}class ro extends vr{constructor(e){super(e);x(this,"color",new Ft(1,1,1,1))}copy(){const e=new ro(this.name);return this.copyTo(e),e.color.setFromColor(this.color),e}}class zr extends vr{constructor(e){super(e);x(this,"endSlot",null);x(this,"convex",!1);x(this,"inverse",!1);x(this,"color",new Ft(.2275,.2275,.8078,1))}copy(){const e=new zr(this.name);return this.copyTo(e),e.endSlot=this.endSlot,e.convex=this.convex,e.inverse=this.inverse,e.color.setFromColor(this.color),e}}class on extends vr{constructor(e){super(e);x(this,"lengths",[]);x(this,"closed",!1);x(this,"constantSpeed",!1);x(this,"color",new Ft(1,1,1,1))}copy(){const e=new on(this.name);return this.copyTo(e),e.lengths=[],bt.arrayCopy(this.lengths,0,e.lengths,0,this.lengths.length),e.closed=this.closed,e.constantSpeed=this.constantSpeed,e.color.setFromColor(this.color),e}}class kl extends vr{constructor(e){super(e);x(this,"x",0);x(this,"y",0);x(this,"rotation",0);x(this,"color",new Ft(.38,.94,0,1))}computeWorldPosition(e,s){return s.x=this.x*e.a+this.y*e.b+e.worldX,s.y=this.x*e.c+this.y*e.d+e.worldY,s}computeWorldRotation(e){const s=this.rotation*pt.degRad,r=Math.cos(s),n=Math.sin(s),a=r*e.a+n*e.b,o=r*e.c+n*e.d;return pt.atan2Deg(o,a)}copy(){const e=new kl(this.name);return e.x=this.x,e.y=this.y,e.rotation=this.rotation,e.color.setFromColor(this.color),e}}class cg{constructor(t,e=!1){x(this,"atlas");x(this,"allowMissingRegions");this.atlas=t,this.allowMissingRegions=e}findRegions(t,e,s){const r=s.regions;for(let n=0,a=r.length;n<a;n++)r[n]=this.findRegion(t,s.getPath(e,n))}findRegion(t,e){Line truncated
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
@@ -1270,47 +1270,47 @@ void main(void)
vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;
}
`,uL=`
varying vec2 vTextureCoord;
uniform vec4 uColor;
uniform vec4 uDarkColor;
uniform sampler2D uSampler;
void main(void)
{
vec4 texColor = texture2D(uSampler, vTextureCoord);
gl_FragColor.a = texColor.a * uColor.a;
gl_FragColor.rgb = ((texColor.a - 1.0) * uDarkColor.a + 1.0 - texColor.rgb) * uDarkColor.rgb + texColor.rgb * uColor.rgb;
}
`;class Dw extends Js{constructor(e){const s={uSampler:e??Nt.EMPTY,alpha:1,uTextureMatrix:fe.IDENTITY,uColor:new Float32Array([1,1,1,1]),uDarkColor:new Float32Array([0,0,0,0])},r={tint:16777215,darkTint:0,alpha:1,pluginName:"darkTintBatch"};super(ur.from(cL,uL),s);x(this,"uvMatrix");x(this,"batchable");x(this,"pluginName");x(this,"_tintRGB");x(this,"_darkTintRGB");x(this,"_colorDirty");x(this,"_alpha");x(this,"_tintColor");x(this,"_darkTintColor");this._colorDirty=!1,this.uvMatrix=new jc(s.uSampler),this.batchable=!0,this.pluginName=r.pluginName,this._tintColor=new Wt(r.tint),this._darkTintColor=new Wt(r.darkTint),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._darkTintRGB=this._darkTintColor.toLittleEndianNumber(),this._alpha=r.alpha,this._colorDirty=!0}get texture(){return this.uniforms.uSampler}set texture(e){this.uniforms.uSampler!==e&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!e.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=e,this.uvMatrix.texture=e)}set alpha(e){e!==this._alpha&&(this._alpha=e,this._colorDirty=!0)}get alpha(){return this._alpha}set tint(e){e!==this.tint&&(this._tintColor.setValue(e),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0)}get tint(){return this._tintColor.value}set darkTint(e){e!==this.darkTint&&(this._darkTintColor.setValue(e),this._darkTintRGB=this._darkTintColor.toLittleEndianNumber(),this._colorDirty=!0)}get darkTint(){return this._darkTintColor.value}get tintValue(){return this._tintColor.toNumber()}get darkTintValue(){return this._darkTintColor.toNumber()}update(){this._colorDirty&&(this._colorDirty=!1,Wt.shared.setValue(this._tintColor).premultiply(this._alpha,!0).toArray(this.uniforms.uColor),Wt.shared.setValue(this._darkTintColor).premultiply(this._alpha,!0).premultiply(1,!1).toArray(this.uniforms.uDarkColor)),this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)}}class Nw extends zn{constructor(e){super(new Ow,new Dw(e),void 0,void 0);x(this,"_darkTintRGB",0)}get darkTint(){return"darkTint"in this.shader?this.shader.darkTint:null}set darkTint(e){this.shader.darkTint=e}get darkTintValue(){return this.shader.darkTintValue}_renderToBatch(e){const s=this.geometry,r=this.shader;r.uvMatrix&&(r.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=s.indexBuffer.data,this._tintRGB=r._tintRGB,this._darkTintRGB=r._darkTintRGB,this._texture=r.texture;const n=this.material.pluginName;e.batch.setObjectRenderer(e.plugins[n]),e.plugins[n].render(this)}}const Ve=class Ve extends Nw{constructor(){super();x(this,"name","")}updateFromSpineData(e,s,r,n,a,o,h,l){var y,_;this.texture=e.texture;const c=a/(l?12:8)*2,u=this.geometry.getBuffer("aTextureCoord");((y=u.data)==null?void 0:y.length)!==c&&(u.data=new Float32Array(c));const d=this.geometry.getBuffer("aVertexPosition");((_=d.data)==null?void 0:_.length)!==c&&(d.data=new Float32Array(c));let f=0;const m=u.data,p=d.data;for(let v=0;v<a;v+=l?12:8){let b=v;p[f]=n[b++],p[f+1]=n[b++],b+=4,m[f]=n[b++],m[f+1]=n[b++],f+=2}l?(Ve.auxColor[0]=n[8],Ve.auxColor[1]=n[9],Ve.auxColor[2]=n[10],Ve.auxColor[3]=n[11],this.darkTint=Ve.auxColor,Ve.auxColor[0]=n[2],Ve.auxColor[1]=n[3],Ve.auxColor[2]=n[4],Ve.auxColor[3]=n[5],this.tint=Ve.auxColor):(Ve.auxColor[0]=n[2],Ve.auxColor[1]=n[3],Ve.auxColor[2]=n[4],Ve.auxColor[3]=n[5],this.tint=Ve.auxColor),this.blendMode=qn.toPixiBlending(s),this.alpha=Ve.auxColor[3];const g=this.geometry.indexBuffer;if(g.data.length!==o.length)g.data=new Uint32Array(o);else{const v=g.data;for(let b=0;b<h;b++)v[b]=o[b]}this.name=r,u.update(),d.update(),g.update()}};x(Ve,"auxColor",[0,0,0,0]);let gc=Ve;class Uw extends er{constructor(e=!1){super();x(this,"_buffer");x(this,"_indexBuffer");this._buffer=new ne(void 0,e,!1),this._indexBuffer=new ne(void 0,e,!0),this.addAttribute("aVertexPosition",this._buffer,2,!1,wt.FLOAT).addAttribute("aTextureCoord",this._buffer,2,!1,wt.FLOAT).addAttribute("aColor",this._buffer,4,!0,wt.UNSIGNED_BYTE).addAttribute("aDarkColor",this._buffer,4,!0,wt.UNSIGNED_BYTE).addAttribute("aTextureId",this._buffer,1,!0,wt.FLOAT).addIndex(this._indexBuffer)}}const dL=`
precision highp float;
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
attribute vec4 aColor;
attribute vec4 aDarkColor;
attribute float aTextureId;
uniform mat3 projectionMatrix;
uniform mat3 translationMatrix;
uniform vec4 tint;
varying vec2 vTextureCoord;
varying vec4 vColor;
varying vec4 vDarkColor;
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;
vDarkColor = aDarkColor * tint;
}
`,fL=`
varying vec2 vTextureCoord;
uniform vec4 uColor;
uniform vec4 uDarkColor;
uniform sampler2D uSampler;
void main(void)
{
vec4 texColor = texture2D(uSampler, vTextureCoord);
gl_FragColor.a = texColor.a * uColor.a;
gl_FragColor.rgb = ((texColor.a - 1.0) * uDarkColor.a + 1.0 - texColor.rgb) * uDarkColor.rgb + texColor.rgb * uColor.rgb;
}
`;class Uw extends Js{constructor(e){const s={uSampler:e??Ot.EMPTY,alpha:1,uTextureMatrix:fe.IDENTITY,uColor:new Float32Array([1,1,1,1]),uDarkColor:new Float32Array([0,0,0,0])},r={tint:16777215,darkTint:0,alpha:1,pluginName:"darkTintBatch"};super(ur.from(dL,fL),s);x(this,"uvMatrix");x(this,"batchable");x(this,"pluginName");x(this,"_tintRGB");x(this,"_darkTintRGB");x(this,"_colorDirty");x(this,"_alpha");x(this,"_tintColor");x(this,"_darkTintColor");this._colorDirty=!1,this.uvMatrix=new Il(s.uSampler),this.batchable=!0,this.pluginName=r.pluginName,this._tintColor=new Wt(r.tint),this._darkTintColor=new Wt(r.darkTint),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._darkTintRGB=this._darkTintColor.toLittleEndianNumber(),this._alpha=r.alpha,this._colorDirty=!0}get texture(){return this.uniforms.uSampler}set texture(e){this.uniforms.uSampler!==e&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!e.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=e,this.uvMatrix.texture=e)}set alpha(e){e!==this._alpha&&(this._alpha=e,this._colorDirty=!0)}get alpha(){return this._alpha}set tint(e){e!==this.tint&&(this._tintColor.setValue(e),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0)}get tint(){return this._tintColor.value}set darkTint(e){e!==this.darkTint&&(this._darkTintColor.setValue(e),this._darkTintRGB=this._darkTintColor.toLittleEndianNumber(),this._colorDirty=!0)}get darkTint(){return this._darkTintColor.value}get tintValue(){return this._tintColor.toNumber()}get darkTintValue(){return this._darkTintColor.toNumber()}update(){this._colorDirty&&(this._colorDirty=!1,Wt.shared.setValue(this._tintColor).premultiply(this._alpha,!0).toArray(this.uniforms.uColor),Wt.shared.setValue(this._darkTintColor).premultiply(this._alpha,!0).premultiply(1,!1).toArray(this.uniforms.uDarkColor)),this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)}}class Xw extends zn{constructor(e){super(new Nw,new Uw(e),void 0,void 0);x(this,"_darkTintRGB",0)}get darkTint(){return"darkTint"in this.shader?this.shader.darkTint:null}set darkTint(e){this.shader.darkTint=e}get darkTintValue(){return this.shader.darkTintValue}_renderToBatch(e){const s=this.geometry,r=this.shader;r.uvMatrix&&(r.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=s.indexBuffer.data,this._tintRGB=r._tintRGB,this._darkTintRGB=r._darkTintRGB,this._texture=r.texture;const n=this.material.pluginName;e.batch.setObjectRenderer(e.plugins[n]),e.plugins[n].render(this)}}const Ve=class Ve extends Xw{constructor(){super();x(this,"name","")}updateFromSpineData(e,s,r,n,a,o,h,l){var y,_;this.texture=e.texture;const c=a/(l?12:8)*2,u=this.geometry.getBuffer("aTextureCoord");((y=u.data)==null?void 0:y.length)!==c&&(u.data=new Float32Array(c));const d=this.geometry.getBuffer("aVertexPosition");((_=d.data)==null?void 0:_.length)!==c&&(d.data=new Float32Array(c));let f=0;const m=u.data,p=d.data;for(let v=0;v<a;v+=l?12:8){let b=v;p[f]=n[b++],p[f+1]=n[b++],b+=4,m[f]=n[b++],m[f+1]=n[b++],f+=2}l?(Ve.auxColor[0]=n[8],Ve.auxColor[1]=n[9],Ve.auxColor[2]=n[10],Ve.auxColor[3]=n[11],this.darkTint=Ve.auxColor,Ve.auxColor[0]=n[2],Ve.auxColor[1]=n[3],Ve.auxColor[2]=n[4],Ve.auxColor[3]=n[5],this.tint=Ve.auxColor):(Ve.auxColor[0]=n[2],Ve.auxColor[1]=n[3],Ve.auxColor[2]=n[4],Ve.auxColor[3]=n[5],this.tint=Ve.auxColor),this.blendMode=qn.toPixiBlending(s),this.alpha=Ve.auxColor[3];const g=this.geometry.indexBuffer;if(g.data.length!==o.length)g.data=new Uint32Array(o);else{const v=g.data;for(let b=0;b<h;b++)v[b]=o[b]}this.name=r,u.update(),d.update(),g.update()}};x(Ve,"auxColor",[0,0,0,0]);let xc=Ve;class Vw extends er{constructor(e=!1){super();x(this,"_buffer");x(this,"_indexBuffer");this._buffer=new ne(void 0,e,!1),this._indexBuffer=new ne(void 0,e,!0),this.addAttribute("aVertexPosition",this._buffer,2,!1,wt.FLOAT).addAttribute("aTextureCoord",this._buffer,2,!1,wt.FLOAT).addAttribute("aColor",this._buffer,4,!0,wt.UNSIGNED_BYTE).addAttribute("aDarkColor",this._buffer,4,!0,wt.UNSIGNED_BYTE).addAttribute("aTextureId",this._buffer,1,!0,wt.FLOAT).addIndex(this._indexBuffer)}}const mL=`
precision highp float;
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
attribute vec4 aColor;
attribute vec4 aDarkColor;
attribute float aTextureId;
uniform mat3 projectionMatrix;
uniform mat3 translationMatrix;
uniform vec4 tint;
varying vec2 vTextureCoord;
varying vec4 vColor;
varying vec4 vDarkColor;
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;
vDarkColor = aDarkColor * tint;
}
`,pL=`
varying vec2 vTextureCoord;
varying vec4 vColor;
varying vec4 vDarkColor;
varying float vTextureId;
@@ -1324,4 +1324,4 @@ void main(void){
gl_FragColor.a = color.a * vColor.a;
gl_FragColor.rgb = ((color.a - 1.0) * vDarkColor.a + 1.0 - color.rgb) * vDarkColor.rgb + color.rgb * vColor.rgb;
}
`;class gg extends li{constructor(t){super(t),this.shaderGenerator=new Np(dL,fL),this.geometryClass=Uw,this.vertexSize=7}packInterleavedGeometry(t,e,s,r,n){const{uint32View:a,float32View:o}=e,h=r/this.vertexSize,l=t.uvs,c=t.indices,u=t.vertexData,d=t._texture.baseTexture._batchLocation,f=Math.min(t.worldAlpha,1),m=Wt.shared.setValue(t._tintRGB).toPremultiplied(f,!0),p=Wt.shared.setValue(t._darkTintRGB).premultiply(f,!0).toPremultiplied(1,!1);for(let g=0;g<u.length;g+=2)o[r++]=u[g],o[r++]=u[g+1],o[r++]=l[g],o[r++]=l[g+1],a[r++]=m,a[r++]=p,o[r++]=d;for(let g=0;g<c.length;g++)s[n++]=h+c[g]}}x(gg,"extension",{name:"darkTintBatch",type:gt.RendererPlugin});St.add(gg);const ai=class ai extends zn{constructor(){const e=new Zc;e.getBuffer("aVertexPosition").static=!1,e.getBuffer("aTextureCoord").static=!1;const s=new rl(Nt.EMPTY);super(e,s);x(this,"name","");x(this,"warnedTwoTint",!1)}updateFromSpineData(e,s,r,n,a,o,h,l){var y,_;this.texture=e.texture;const c=a/(l?12:8)*2,u=this.geometry.getBuffer("aTextureCoord");((y=u.data)==null?void 0:y.length)!==c&&(u.data=new Float32Array(c));const d=this.geometry.getBuffer("aVertexPosition");((_=d.data)==null?void 0:_.length)!==c&&(d.data=new Float32Array(c));let f=0;const m=u.data,p=d.data;for(let v=0;v<a;v+=l?12:8){let b=v;p[f]=n[b++],p[f+1]=n[b++],b+=4,m[f]=n[b++],m[f+1]=n[b++],f+=2}l&&!this.warnedTwoTint&&(console.warn("DarkTint is not enabled by default. To enable use a DarkSlotMesh factory while creating the Spine object."),this.warnedTwoTint=!0),ai.auxColor[0]=n[2],ai.auxColor[1]=n[3],ai.auxColor[2]=n[4],ai.auxColor[3]=n[5],this.tint=ai.auxColor,this.alpha=ai.auxColor[3],this.blendMode=qn.toPixiBlending(s);const g=this.geometry.indexBuffer;if(g.data.length!==o.length)g.data=new Uint32Array(o);else{const v=g.data;for(let b=0;b<h;b++)v[b]=o[b]}this.name=r,u.update(),d.update(),g.update()}};x(ai,"auxColor",[0,0,0,0]);let yc=ai;class mL{constructor(t,e,s,r){x(this,"x");x(this,"y");x(this,"width");x(this,"height");this.x=t,this.y=e,this.width=s,this.height=r}calculateBounds(){return{x:this.x,y:this.y,width:this.width,height:this.height}}}class pL{constructor(t=!1){x(this,"clipping");this.clipping=t}calculateBounds(t){if(!t.skeleton)return{x:0,y:0,width:0,height:0};const e=new Mi(t.skeleton.data);e.setupPose(),e.updateWorldTransform(Os.update);const s=e.getBoundsRect(this.clipping?new ao:void 0);return s.width===Number.NEGATIVE_INFINITY?{x:0,y:0,width:0,height:0}:s}}class gL{constructor(t,e=[],s=.05,r=!1){x(this,"animation");x(this,"skins");x(this,"timeStep");x(this,"clipping");this.animation=t,this.skins=e,this.timeStep=s,this.clipping=r}calculateBounds(t){if(!t.skeleton||!t.state)return{x:0,y:0,width:0,height:0};const e=new qa(t.state.data),s=new Mi(t.skeleton.data),r=this.clipping?new ao:void 0,n=s.data;if(this.skins.length>0){const o=new Ka("custom-skin");for(const h of this.skins){const l=n.findSkin(h);l!=null&&o.addSkin(l)}s.setSkin(o)}s.setupPose();const a=this.animation!=null?n.findAnimation(this.animation):null;if(a==null){s.updateWorldTransform(Os.update);const o=s.getBoundsRect(r);return o.width===Number.NEGATIVE_INFINITY?{x:0,y:0,width:0,height:0}:o}else{let o=Number.POSITIVE_INFINITY,h=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,c=Number.NEGATIVE_INFINITY;e.clearTracks(),e.setAnimation(0,a,!1);const u=Math.max(a.duration/this.timeStep,1);for(let f=0;f<u;f++){const m=f>0?this.timeStep:0;e.update(m),e.apply(s),s.update(m),s.updateWorldTransform(Os.update);const p=s.getBoundsRect(r);o=Math.min(o,p.x),h=Math.min(h,p.y),l=Math.max(l,p.x+p.width),c=Math.max(c,p.y+p.height)}const d={x:o,y:h,width:l-o,height:c-h};return d.width===Number.NEGATIVE_INFINITY?{x:0,y:0,width:0,height:0}:d}}}const $t=class $t extends fs{constructor(e){super();x(this,"skeleton");x(this,"state");x(this,"skeletonPhysics");x(this,"darkTint",!1);x(this,"hasNeverUpdated",!0);x(this,"_debug");x(this,"slotMeshFactory",()=>new yc);x(this,"beforeUpdateWorldTransforms",()=>{});x(this,"afterUpdateWorldTransforms",()=>{});x(this,"_autoUpdate",!1);x(this,"_ticker",ss.shared);x(this,"meshesCache",new Map);x(this,"lightColor",new Ft);x(this,"darkColor",new Ft);x(this,"clippingVertAux",new Float32Array(6));x(this,"_boundsProvider");x(this,"_boundsPoint",new Kt);x(this,"_boundsSpineID",-1);x(this,"_boundsSpineDirty",!0);x(this,"slotsObject",new Map);x(this,"verticesCache",bt.newFloatArray(1024));x(this,"clippingSlotToPixiMasks",{});e instanceof Bl?e={skeletonData:e}:"skeleton"in e&&(e=new.target.createOptions(e));const{autoUpdate:s=!0,boundsProvider:r,darkTint:n,skeletonData:a,ticker:o}=e;this.skeleton=new Mi(a),this.skeletonPhysics=new pg(this.skeleton,{readTransform:(h,l)=>this.readPhysicsTransform(h,l),worldToSkeleton:h=>this.pixiWorldCoordinatesToSkeleton(h)}),this.state=new qa(new og(a)),o&&(this._ticker=o),this.autoUpdate=s,this.boundsProvider=r,this.darkTint=n===void 0?this.skeleton.slots.some(h=>!!h.data.setupPose.darkColor):n,this.darkTint&&(this.slotMeshFactory=()=>new gc)}get debug(){return Line truncated
`;class yg extends li{constructor(t){super(t),this.shaderGenerator=new Up(mL,pL),this.geometryClass=Vw,this.vertexSize=7}packInterleavedGeometry(t,e,s,r,n){const{uint32View:a,float32View:o}=e,h=r/this.vertexSize,l=t.uvs,c=t.indices,u=t.vertexData,d=t._texture.baseTexture._batchLocation,f=Math.min(t.worldAlpha,1),m=Wt.shared.setValue(t._tintRGB).toPremultiplied(f,!0),p=Wt.shared.setValue(t._darkTintRGB).premultiply(f,!0).toPremultiplied(1,!1);for(let g=0;g<u.length;g+=2)o[r++]=u[g],o[r++]=u[g+1],o[r++]=l[g],o[r++]=l[g+1],a[r++]=m,a[r++]=p,o[r++]=d;for(let g=0;g<c.length;g++)s[n++]=h+c[g]}}x(yg,"extension",{name:"darkTintBatch",type:gt.RendererPlugin});St.add(yg);const ai=class ai extends zn{constructor(){const e=new Qc;e.getBuffer("aVertexPosition").static=!1,e.getBuffer("aTextureCoord").static=!1;const s=new il(Ot.EMPTY);super(e,s);x(this,"name","");x(this,"warnedTwoTint",!1)}updateFromSpineData(e,s,r,n,a,o,h,l){var y,_;this.texture=e.texture;const c=a/(l?12:8)*2,u=this.geometry.getBuffer("aTextureCoord");((y=u.data)==null?void 0:y.length)!==c&&(u.data=new Float32Array(c));const d=this.geometry.getBuffer("aVertexPosition");((_=d.data)==null?void 0:_.length)!==c&&(d.data=new Float32Array(c));let f=0;const m=u.data,p=d.data;for(let v=0;v<a;v+=l?12:8){let b=v;p[f]=n[b++],p[f+1]=n[b++],b+=4,m[f]=n[b++],m[f+1]=n[b++],f+=2}l&&!this.warnedTwoTint&&(console.warn("DarkTint is not enabled by default. To enable use a DarkSlotMesh factory while creating the Spine object."),this.warnedTwoTint=!0),ai.auxColor[0]=n[2],ai.auxColor[1]=n[3],ai.auxColor[2]=n[4],ai.auxColor[3]=n[5],this.tint=ai.auxColor,this.alpha=ai.auxColor[3],this.blendMode=qn.toPixiBlending(s);const g=this.geometry.indexBuffer;if(g.data.length!==o.length)g.data=new Uint32Array(o);else{const v=g.data;for(let b=0;b<h;b++)v[b]=o[b]}this.name=r,u.update(),d.update(),g.update()}};x(ai,"auxColor",[0,0,0,0]);let bc=ai;class gL{constructor(t,e,s,r){x(this,"x");x(this,"y");x(this,"width");x(this,"height");this.x=t,this.y=e,this.width=s,this.height=r}calculateBounds(){return{x:this.x,y:this.y,width:this.width,height:this.height}}}class yL{constructor(t=!1){x(this,"clipping");this.clipping=t}calculateBounds(t){if(!t.skeleton)return{x:0,y:0,width:0,height:0};const e=new Mi(t.skeleton.data);e.setupPose(),e.updateWorldTransform(Os.update);const s=e.getBoundsRect(this.clipping?new ao:void 0);return s.width===Number.NEGATIVE_INFINITY?{x:0,y:0,width:0,height:0}:s}}class xL{constructor(t,e=[],s=.05,r=!1){x(this,"animation");x(this,"skins");x(this,"timeStep");x(this,"clipping");this.animation=t,this.skins=e,this.timeStep=s,this.clipping=r}calculateBounds(t){if(!t.skeleton||!t.state)return{x:0,y:0,width:0,height:0};const e=new Ka(t.state.data),s=new Mi(t.skeleton.data),r=this.clipping?new ao:void 0,n=s.data;if(this.skins.length>0){const o=new Za("custom-skin");for(const h of this.skins){const l=n.findSkin(h);l!=null&&o.addSkin(l)}s.setSkin(o)}s.setupPose();const a=this.animation!=null?n.findAnimation(this.animation):null;if(a==null){s.updateWorldTransform(Os.update);const o=s.getBoundsRect(r);return o.width===Number.NEGATIVE_INFINITY?{x:0,y:0,width:0,height:0}:o}else{let o=Number.POSITIVE_INFINITY,h=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,c=Number.NEGATIVE_INFINITY;e.clearTracks(),e.setAnimation(0,a,!1);const u=Math.max(a.duration/this.timeStep,1);for(let f=0;f<u;f++){const m=f>0?this.timeStep:0;e.update(m),e.apply(s),s.update(m),s.updateWorldTransform(Os.update);const p=s.getBoundsRect(r);o=Math.min(o,p.x),h=Math.min(h,p.y),l=Math.max(l,p.x+p.width),c=Math.max(c,p.y+p.height)}const d={x:o,y:h,width:l-o,height:c-h};return d.width===Number.NEGATIVE_INFINITY?{x:0,y:0,width:0,height:0}:d}}}const $t=class $t extends fs{constructor(e){super();x(this,"skeleton");x(this,"state");x(this,"skeletonPhysics");x(this,"darkTint",!1);x(this,"hasNeverUpdated",!0);x(this,"_debug");x(this,"slotMeshFactory",()=>new bc);x(this,"beforeUpdateWorldTransforms",()=>{});x(this,"afterUpdateWorldTransforms",()=>{});x(this,"_autoUpdate",!1);x(this,"_ticker",ss.shared);x(this,"meshesCache",new Map);x(this,"lightColor",new Ft);x(this,"darkColor",new Ft);x(this,"clippingVertAux",new Float32Array(6));x(this,"_boundsProvider");x(this,"_boundsPoint",new zt);x(this,"_boundsSpineID",-1);x(this,"_boundsSpineDirty",!0);x(this,"slotsObject",new Map);x(this,"verticesCache",bt.newFloatArray(1024));x(this,"clippingSlotToPixiMasks",{});e instanceof Dl?e={skeletonData:e}:"skeleton"in e&&(e=new.target.createOptions(e));const{autoUpdate:s=!0,boundsProvider:r,darkTint:n,skeletonData:a,ticker:o}=e;this.skeleton=new Mi(a),this.skeletonPhysics=new gg(this.skeleton,{readTransform:(h,l)=>this.readPhysicsTransform(h,l),worldToSkeleton:h=>this.pixiWorldCoordinatesToSkeleton(h)}),this.state=new Ka(new lg(a)),o&&(this._ticker=o),this.autoUpdate=s,this.boundsProvider=r,this.darkTint=n===void 0?this.skeleton.slots.some(h=>!!h.data.setupPose.darkColor):n,this.darkTint&&(this.slotMeshFactory=()=>new xc)}get debug(){return Line truncated
+3 -3
View File
@@ -9,9 +9,9 @@
html, body { margin: 0; padding: 0; background: #111; color: #eee; font-family: system-ui, -apple-system, sans-serif; }
#app { display: flex; flex-direction: column; height: 100vh; }
</style>
<script type="module" crossorigin src="/assets/index-jShxHTeY.js"></script>
<link rel="modulepreload" crossorigin href="/assets/vendor-fsmZiMPK.js">
<link rel="stylesheet" crossorigin href="/assets/index-D_pfW3bT.css">
<script type="module" crossorigin src="/assets/index-CllsrP2l.js"></script>
<link rel="modulepreload" crossorigin href="/assets/vendor-B3PIHsJG.js">
<link rel="stylesheet" crossorigin href="/assets/index-DCGuJBRC.css">
<script>
var _paq = window._paq = window._paq || [];
_paq.push(['enableLinkTracking']);
+31 -10
View File
@@ -1,6 +1,6 @@
<template>
<div class="stage-wrap">
<div ref="holder" class="stage-holder" :class="{ grid: store.settings.showGrid }" tabindex="0" @wheel.prevent="onWheelEvent" @pointerdown="onPanDown" @dblclick.prevent="onStageDoubleClick"></div>
<div ref="holder" class="stage-holder" tabindex="0" @wheel.prevent="onWheelEvent" @pointerdown="onPanDown" @dblclick.prevent="onStageDoubleClick"></div>
<img
class="stage-watermark"
:class="{ 'watermark-left-panel': !store.settings.parameterPanelOnRight }"
@@ -51,7 +51,7 @@ import { drawBoneFollowTargets, drawGizmo, drawCollisionBodies, drawPaths } from
import { appendStateBones, drawBones } from './stage/boneGuides'
import { onMounted, onUnmounted, ref, watch } from 'vue'
import { Application, Container, Graphics, type Text, type Texture } from 'pixi.js'
import { Application, Container, Graphics, Texture, TilingSprite, type Text } from 'pixi.js'
import { ParticleEmitter, ensureEmitterConfig, type ParticleState } from '../core/particleEmitter'
import { bakeLoopFrames } from '../core/loopFrameBaker'
import { loopPlaybackRange } from '../core/loopSegmentTiming'
@@ -101,6 +101,7 @@ if (store.settings.showGrid == null) store.settings.showGrid = true
let app: Application | null = null
let stageResizeObserver: ResizeObserver | null = null
let world: Container | null = null
let canvasGrid: TilingSprite | null = null
let originGfx: Graphics | null = null
let boneFollowTargetGfx: Graphics | null = null
let boneGfx: Graphics | null = null
@@ -136,6 +137,16 @@ let previewColliders: CollisionBody[] = []
const emitterPreviewTransform = new Map<number, { x: number; y: number; rotation: number }>()
function createLayers() {
// 棋盘格必须在 WebGL 底部,粒子混合模式才能读取它。
const checker = document.createElement('canvas')
checker.width = checker.height = 28
const checkerContext = checker.getContext('2d')!
checkerContext.fillStyle = '#141a26'
checkerContext.fillRect(14, 0, 14, 14)
checkerContext.fillRect(0, 14, 14, 14)
canvasGrid = new TilingSprite(Texture.from(checker), app!.screen.width, app!.screen.height)
canvasGrid.visible = store.settings.showGrid
app!.stage.addChild(canvasGrid)
world = new Container()
app!.stage.addChild(world)
axisLabelLayer = new Container() // 独立顶层,不随 world 缩放
@@ -604,19 +615,33 @@ function loop() {
onMounted(async () => {
const el = holder.value!
app = new Application({ width: el.clientWidth || 800, height: el.clientHeight || 600, backgroundAlpha: 0, antialias: true })
app = new Application({
width: el.clientWidth || 800,
height: el.clientHeight || 600,
backgroundColor: 0x0e1219,
backgroundAlpha: 1,
antialias: true,
})
el.appendChild(app.view as unknown as HTMLCanvasElement)
stageResizeObserver = new ResizeObserver(() => {
if (!app) return
const nextWidth = Math.max(1, el.clientWidth)
const previousHeight = app.screen.height
const nextHeight = Math.max(1, el.clientHeight)
// Stage 高度变化时补偿视图中心,避免底部面板折叠导致画布内容整体跳动。
if (Math.abs(nextHeight - previousHeight) > 0.5) store.editor.viewY -= (nextHeight - previousHeight) / 2
app.renderer.resize(Math.max(1, el.clientWidth), nextHeight)
app.renderer.resize(nextWidth, nextHeight)
if (canvasGrid) {
canvasGrid.width = nextWidth
canvasGrid.height = nextHeight
}
})
stageResizeObserver.observe(el)
createLayers()
watch(() => store.settings.backgroundImageData, (value) => background.syncTexture(value), { immediate: true })
watch(() => store.settings.showGrid, (visible) => {
if (canvasGrid) canvasGrid.visible = visible
})
const textures = await loadDefaultTextures()
dotTex = textures.dotTex
trailTex = textures.trailTex
@@ -663,6 +688,8 @@ onUnmounted(() => {
spineRuntime?.destroy()
spineRuntime = null
background.destroy()
canvasGrid?.texture.destroy(true)
canvasGrid = null
if (world && app) emitterSync.destroy(world)
if (app) { app.destroy(true, { children: true }); app = null }
})
@@ -672,16 +699,10 @@ watch(() => [store.activeObjectType, store.activeObjectId], () => pathEditing.re
<style scoped>
.stage-wrap { position: relative; display: flex; width: 100%; height: 100%; min-height: 0; flex-direction: column; overflow: hidden; }
/* 画布:默认纯色;开启网格时显示深色棋盘格 */
.stage-holder {
width: 100%; min-height: 0; flex: 1; cursor: grab; touch-action: none;
background-color: #0e1219;
outline: none;
}
.stage-holder.grid {
background: conic-gradient(#141a26 90deg, transparent 90deg 180deg, #141a26 180deg 270deg, #141a26 180deg 270deg, transparent 270deg);
background-size: 28px 28px;
}
.stage-holder:active { cursor: grabbing; }
.stage-watermark {
position: absolute; top: 14px; left: 14px; z-index: 1;