位置修正

This commit is contained in:
tianmo committed 2026-10-27 16:06:22 +08:00
1 parent 67bf3921cc
commit 5f7e30063b
6 files changed
+67 -47

No files matched your search

@@ -1,2 +1,2 @@
var ft=Object.defineProperty;var gt=(W,t,e)=>t in W?ft(W,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):W[t]=e;var T=(W,t,e)=>gt(W,typeof t!="symbol"?t+"":t,e);import{f as ht,R as pt,N as dt,ac as ut,Z as mt,b4 as yt,O as rt,b5 as at,U as D,B as Tt}from"./index-dYQL5usi.js";import{$ as Rt,a0 as Yt,a1 as Ft,a2 as Et,y as _t,a3 as Ot,a4 as kt,a5 as Xt,a6 as Bt,a7 as Nt,a8 as Dt,a9 as $t,aa as zt,ab as Wt,ad as qt,H as Gt,ae as Jt,af as Ht,ag as Zt,ah as Kt,ai as Qt,aj as jt,ak as te,al as ee,am as se,an as ne,ao as ie,ap as oe,aq as re,ar as ae,as as le,at as ce,au as he,av as pe,aw as de,ax as ue,ay as fe,az as ge,aA as me,aB as ye,aC as Te,aD as be,aE as we,aF as xe,aG as Ae,aH as Pe,aI as Ie,aJ as Ce,aK as Ve,aL as Le,aM as Se,aN as Me,aO as ve,aP as Ue,aQ as Re,aR as Ye,aS as Fe,aT as Ee,x as _e,aU as Oe,aV as ke,aW as Xe,aX as Be,aY as Ne,aZ as De,a_ as $e,a$ as ze,b0 as We,b1 as qe,b2 as Ge,b3 as Je,b6 as He,b7 as Ze,b8 as Ke,b9 as Qe,ba as je,bb as ts,bc as es,bd as ss,be as ns,bf as is,bg as os,bh as rs,bi as as,bj as ls,bk as cs,bl as hs,bm as ps,bn as ds,bo as us,bp as fs,bq as gs,br as ms,bs as ys,bt as Ts,bu as bs,w as ws,X as xs,J as As,Y as Ps,z as Is,bv as Cs,bw as Vs,bx as Ls,by as Ss,bz as Ms,bA as vs,bB as Us,bC as Rs,bD as Ys,bE as Fs,bF as Es,bG as _s,T as Os,bH as ks,bI as Xs,b as Bs,bJ as Ns,c as Ds,bK as $s,bL as zs,bM as Ws,bN as qs,bO as Gs,bP as Js,bQ as Hs,bR as Zs,bS as Ks,bT as Qs,bU as js,bV as tn,bW as en,bX as sn,bY as nn,bZ as on,b_ as rn,V as an,b$ as ln,c0 as cn,c1 as hn,c2 as pn,c3 as dn}from"./index-dYQL5usi.js";class It{constructor(t){T(this,"skeletonData");T(this,"animationToMixTime",{});T(this,"defaultMix",0);if(!t)throw new Error("skeletonData cannot be null.");this.skeletonData=t}setMix(t,e,n){return typeof t=="string"?this.setMix1(t,e,n):this.setMix2(t,e,n)}setMix1(t,e,n){const s=this.skeletonData.findAnimation(t);if(!s)throw new Error(`Animation not found: ${t}`);const i=this.skeletonData.findAnimation(e);if(!i)throw new Error(`Animation not found: ${e}`);this.setMix2(s,i,n)}setMix2(t,e,n){if(!t)throw new Error("from cannot be null.");if(!e)throw new Error("to cannot be null.");const s=`${t.name}.${e.name}`;this.animationToMixTime[s]=n}getMix(t,e){const n=`${t.name}.${e.name}`,s=this.animationToMixTime[n];return s===void 0?this.defaultMix:s}}class Ct{constructor(t,e="",n=new bt,s=new lt){T(this,"textureLoader");T(this,"pathPrefix");T(this,"downloader");T(this,"cache");T(this,"errors",{});T(this,"toLoad",0);T(this,"loaded",0);T(this,"texturePmaInfo",{});this.textureLoader=t,this.pathPrefix=e,this.downloader=n,this.cache=s}start(t){return this.toLoad++,this.pathPrefix+t}success(t,e,n){this.toLoad--,this.loaded++,this.cache.assets[e]=n,this.cache.assetsRefCount[e]=(this.cache.assetsRefCount[e]||0)+1,t&&t(e,n)}error(t,e,n){this.toLoad--,this.loaded++,this.errors[e]=n,t&&t(e,n)}loadAll(){return new Promise((e,n)=>{const s=()=>{if(this.isLoadingComplete()){this.hasErrors()?n(this.errors):e(this);return}requestAnimationFrame(s)};requestAnimationFrame(s)})}setRawDataURI(t,e){this.downloader.rawDataUris[this.pathPrefix+t]=e}loadBinary(t,e=()=>{},n=()=>{}){t=this.start(t),!this.reuseAssets(t,e,n)&&(this.cache.assetsLoaded[t]=new Promise((s,i)=>{this.downloader.downloadBinary(t,o=>{this.success(e,t,o),s(o)},(o,r)=>{const l=`Couldn't load binary ${t}: status ${o}, ${r}`;this.error(n,t,l),i(l)})}))}loadText(t,e=()=>{},n=()=>{}){t=this.start(t),this.downloader.downloadText(t,s=>{this.success(e,t,s)},(s,i)=>{this.error(n,t,`Couldn't load text ${t}: status ${s}, ${i}`)})}loadJson(t,e=()=>{},n=()=>{}){t=this.start(t),!this.reuseAssets(t,e,n)&&(this.cache.assetsLoaded[t]=new Promise((s,i)=>{this.downloader.downloadJson(t,o=>{this.success(e,t,o),s(o)},(o,r)=>{const l=`Couldn't load JSON ${t}: status ${o}, ${r}`;this.error(n,t,l),i(l)})}))}reuseAssets(t,e=()=>{},n=()=>{}){const s=this.cache.getAsset(t),i=s!==void 0;return i&&(this.cache.assetsLoaded[t]=s.then(o=>(o=o instanceof Image||o instanceof ImageBitmap?this.textureLoader(o):o,this.success(e,t,o),o)).catch(o=>{this.error(n,t,o)})),i}loadTexture(t,e=()=>{},n=()=>{}){if(t=this.start(t),this.reuseAssets(t,e,n))return;const s=this.texturePmaInfo[t];this.cache.assetsLoaded[t]=new Promise((i,o)=>{if(!!!(typeof window<"u"&&typeof navigator<"u"&&window.document))fetch(t,{mode:"cors"}).then(c=>{if(c.ok)return c.blob();const a=`Couldn't load image: ${t}`;this.error(n,t,`Couldn't load image: ${t}`),o(a)}).then(c=>c?createImageBitmap(c,{premultiplyAlpha:"none",colorSpaceConversion:"none"}):null).then(c=>{if(c){const a=this.createTexture(t,s,c);this.success(e,t,a),i(a)}});else{const c=new Image;c.crossOrigin="anonymous",c.onload=()=>{const a=this.createTexture(t,s,c);this.success(e,t,a),i(a)},c.onerror=()=>{const a=`Couldn't load image: ${t}`;this.error(n,t,a),o(a)},this.downloader.rawDataUris[t]&&(t=this.downloader.rawDataUris[t]),c.src=t}})}loadTextureAtlas(t,e=()=>{},n=()=>{},s){const i=t.lastIndexOf("/"),o=i>=0?t.substring(0,i+1)Line truncated
var ft=Object.defineProperty;var gt=(W,t,e)=>t in W?ft(W,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):W[t]=e;var T=(W,t,e)=>gt(W,typeof t!="symbol"?t+"":t,e);import{f as ht,R as pt,N as dt,ac as ut,Z as mt,b4 as yt,O as rt,b5 as at,U as D,B as Tt}from"./index-Bt9Riflf.js";import{$ as Rt,a0 as Yt,a1 as Ft,a2 as Et,y as _t,a3 as Ot,a4 as kt,a5 as Xt,a6 as Bt,a7 as Nt,a8 as Dt,a9 as $t,aa as zt,ab as Wt,ad as qt,H as Gt,ae as Jt,af as Ht,ag as Zt,ah as Kt,ai as Qt,aj as jt,ak as te,al as ee,am as se,an as ne,ao as ie,ap as oe,aq as re,ar as ae,as as le,at as ce,au as he,av as pe,aw as de,ax as ue,ay as fe,az as ge,aA as me,aB as ye,aC as Te,aD as be,aE as we,aF as xe,aG as Ae,aH as Pe,aI as Ie,aJ as Ce,aK as Ve,aL as Le,aM as Se,aN as Me,aO as ve,aP as Ue,aQ as Re,aR as Ye,aS as Fe,aT as Ee,x as _e,aU as Oe,aV as ke,aW as Xe,aX as Be,aY as Ne,aZ as De,a_ as $e,a$ as ze,b0 as We,b1 as qe,b2 as Ge,b3 as Je,b6 as He,b7 as Ze,b8 as Ke,b9 as Qe,ba as je,bb as ts,bc as es,bd as ss,be as ns,bf as is,bg as os,bh as rs,bi as as,bj as ls,bk as cs,bl as hs,bm as ps,bn as ds,bo as us,bp as fs,bq as gs,br as ms,bs as ys,bt as Ts,bu as bs,w as ws,X as xs,J as As,Y as Ps,z as Is,bv as Cs,bw as Vs,bx as Ls,by as Ss,bz as Ms,bA as vs,bB as Us,bC as Rs,bD as Ys,bE as Fs,bF as Es,bG as _s,T as Os,bH as ks,bI as Xs,b as Bs,bJ as Ns,c as Ds,bK as $s,bL as zs,bM as Ws,bN as qs,bO as Gs,bP as Js,bQ as Hs,bR as Zs,bS as Ks,bT as Qs,bU as js,bV as tn,bW as en,bX as sn,bY as nn,bZ as on,b_ as rn,V as an,b$ as ln,c0 as cn,c1 as hn,c2 as pn,c3 as dn}from"./index-Bt9Riflf.js";class It{constructor(t){T(this,"skeletonData");T(this,"animationToMixTime",{});T(this,"defaultMix",0);if(!t)throw new Error("skeletonData cannot be null.");this.skeletonData=t}setMix(t,e,n){return typeof t=="string"?this.setMix1(t,e,n):this.setMix2(t,e,n)}setMix1(t,e,n){const s=this.skeletonData.findAnimation(t);if(!s)throw new Error(`Animation not found: ${t}`);const i=this.skeletonData.findAnimation(e);if(!i)throw new Error(`Animation not found: ${e}`);this.setMix2(s,i,n)}setMix2(t,e,n){if(!t)throw new Error("from cannot be null.");if(!e)throw new Error("to cannot be null.");const s=`${t.name}.${e.name}`;this.animationToMixTime[s]=n}getMix(t,e){const n=`${t.name}.${e.name}`,s=this.animationToMixTime[n];return s===void 0?this.defaultMix:s}}class Ct{constructor(t,e="",n=new bt,s=new lt){T(this,"textureLoader");T(this,"pathPrefix");T(this,"downloader");T(this,"cache");T(this,"errors",{});T(this,"toLoad",0);T(this,"loaded",0);T(this,"texturePmaInfo",{});this.textureLoader=t,this.pathPrefix=e,this.downloader=n,this.cache=s}start(t){return this.toLoad++,this.pathPrefix+t}success(t,e,n){this.toLoad--,this.loaded++,this.cache.assets[e]=n,this.cache.assetsRefCount[e]=(this.cache.assetsRefCount[e]||0)+1,t&&t(e,n)}error(t,e,n){this.toLoad--,this.loaded++,this.errors[e]=n,t&&t(e,n)}loadAll(){return new Promise((e,n)=>{const s=()=>{if(this.isLoadingComplete()){this.hasErrors()?n(this.errors):e(this);return}requestAnimationFrame(s)};requestAnimationFrame(s)})}setRawDataURI(t,e){this.downloader.rawDataUris[this.pathPrefix+t]=e}loadBinary(t,e=()=>{},n=()=>{}){t=this.start(t),!this.reuseAssets(t,e,n)&&(this.cache.assetsLoaded[t]=new Promise((s,i)=>{this.downloader.downloadBinary(t,o=>{this.success(e,t,o),s(o)},(o,r)=>{const l=`Couldn't load binary ${t}: status ${o}, ${r}`;this.error(n,t,l),i(l)})}))}loadText(t,e=()=>{},n=()=>{}){t=this.start(t),this.downloader.downloadText(t,s=>{this.success(e,t,s)},(s,i)=>{this.error(n,t,`Couldn't load text ${t}: status ${s}, ${i}`)})}loadJson(t,e=()=>{},n=()=>{}){t=this.start(t),!this.reuseAssets(t,e,n)&&(this.cache.assetsLoaded[t]=new Promise((s,i)=>{this.downloader.downloadJson(t,o=>{this.success(e,t,o),s(o)},(o,r)=>{const l=`Couldn't load JSON ${t}: status ${o}, ${r}`;this.error(n,t,l),i(l)})}))}reuseAssets(t,e=()=>{},n=()=>{}){const s=this.cache.getAsset(t),i=s!==void 0;return i&&(this.cache.assetsLoaded[t]=s.then(o=>(o=o instanceof Image||o instanceof ImageBitmap?this.textureLoader(o):o,this.success(e,t,o),o)).catch(o=>{this.error(n,t,o)})),i}loadTexture(t,e=()=>{},n=()=>{}){if(t=this.start(t),this.reuseAssets(t,e,n))return;const s=this.texturePmaInfo[t];this.cache.assetsLoaded[t]=new Promise((i,o)=>{if(!!!(typeof window<"u"&&typeof navigator<"u"&&window.document))fetch(t,{mode:"cors"}).then(c=>{if(c.ok)return c.blob();const a=`Couldn't load image: ${t}`;this.error(n,t,`Couldn't load image: ${t}`),o(a)}).then(c=>c?createImageBitmap(c,{premultiplyAlpha:"none",colorSpaceConversion:"none"}):null).then(c=>{if(c){const a=this.createTexture(t,s,c);this.success(e,t,a),i(a)}});else{const c=new Image;c.crossOrigin="anonymous",c.onload=()=>{const a=this.createTexture(t,s,c);this.success(e,t,a),i(a)},c.onerror=()=>{const a=`Couldn't load image: ${t}`;this.error(n,t,a),o(a)},this.downloader.rawDataUris[t]&&(t=this.downloader.rawDataUris[t]),c.src=t}})}loadTextureAtlas(t,e=()=>{},n=()=>{},s){const i=t.lastIndexOf("/"),o=i>=0?t.substring(0,i+1)Line truncated
${n}`:""}`)}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 ht){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,n,s){const i=new ht(t);i.dispose=()=>{var o;if(!(this.cache.assetsRefCount[n]<=0)){this.disposeAssetInternal(n);for(const r of i.pages)(o=r.texture)==null||o.dispose()}};for(const o of i.pages){const r=this.texturePath(e,o.name,s);this.texturePmaInfo[this.pathPrefix+r]=o.pma}return i}createTexture(t,e,n){const s=this.textureLoader(n,e),i=s.dispose.bind(s);return s.dispose=()=>{this.disposeAssetInternal(t)&&i()},s}texturePath(t,e,n){return n?n[e]:t+e}}const nt=class nt{constructor(){T(this,"assets",{});T(this,"assetsRefCount",{});T(this,"assetsLoaded",{})}static getCache(t){const e=nt.AVAILABLE_CACHES.get(t);if(e)return e;const n=new nt;return nt.AVAILABLE_CACHES.set(t,n),n}async addAsset(t,e){return this.assetsLoaded[t]=Promise.resolve(e),this.assets[t]=e,e}getAsset(t){return this.assetsLoaded[t]}};T(nt,"AVAILABLE_CACHES",new Map);let lt=nt;class bt{constructor(){T(this,"callbacks",{});T(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),n=e.length,s=new Uint8Array(n);for(let i=0;i<n;i++)s[i]=e.charCodeAt(i);return s}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,n){if(this.start(t,e,n))return;const s=this.rawDataUris[t];if(s&&!s.includes(".")){try{this.finish(t,200,this.dataUriToString(s))}catch(r){this.finish(t,400,JSON.stringify(r))}return}const i=new XMLHttpRequest;i.overrideMimeType("text/html"),i.open("GET",s||t,!0);const o=()=>{this.finish(t,i.status,i.responseText)};i.onload=o,i.onerror=o,i.send()}downloadJson(t,e,n){this.downloadText(t,s=>{e(JSON.parse(s))},n)}downloadBinary(t,e,n){if(this.start(t,e,n))return;const s=this.rawDataUris[t];if(s&&!s.includes(".")){try{this.finish(t,200,this.dataUriToUint8Array(s))}catch(r){this.finish(t,400,JSON.stringify(r))}return}const i=new XMLHttpRequest;i.open("GET",s||t,!0),i.responseType="arraybuffer";const o=()=>{this.finish(t,i.status,i.response)};i.onload=()=>{i.status===200||i.status===0?this.finish(t,200,new Uint8Array(i.response)):o()},i.onerror=o,i.send()}start(t,e,n){let s=this.callbacks[t];try{if(s)return!0;this.callbacks[t]=s=[]}finally{s.push(e,n)}}finish(t,e,n){const s=this.callbacks[t];if(delete this.callbacks[t],e===200||e===0)for(let i=0,o=s.length;i<o;i+=2)s[i](n);else for(let i=1,o=s.length;i<o;i+=2)s[i](e,n)}}class Vt{constructor(t,e=!1){T(this,"atlas");T(this,"allowMissingRegions");this.atlas=t,this.allowMissingRegions=e}findRegions(t,e,n){const s=n.regions;for(let i=0,o=s.length;i<o;i++)s[i]=this.findRegion(t,n.getPath(e,i))}findRegion(t,e){const n=this.atlas.findRegion(e);if(!n&&!this.allowMissingRegions)throw new Error(`Region not found in atlas: ${e} (attachment: ${t})`);return n}newRegionAttachment(t,e,n,s,i){return this.findRegions(n,s,i),new pt(n,i)}newMeshAttachment(t,e,n,s,i){return this.findRegions(n,s,i),new dt(n,i)}newBoundingBoxAttachment(t,e,n){return new ut(n)}newPathAttachment(t,e,n){return new mt(n)}newPointAttachment(t,e,n){return new yt(n)}newClippingAttachment(t,e,n){return new rt(n)}}class Lt{constructor(){T(this,"minX",0);T(this,"minY",0);T(this,"maxX",0);T(this,"maxY",0);T(this,"boundingBoxes",[]);T(this,"polygons",[]);T(this,"polygonPool",new at(()=>D.newFloatArray(16)))}update(t,e){if(!t)throw new Error("skeleton cannot be null.");const n=this.boundingBoxes,s=this.polygons,i=this.polygonPool,o=t.slots,r=o.length;n.length=0,i.freeAll(s),s.length=0;for(let l=0;l<r;l++){const c=o[l];if(!c.bone.active)continue;const a=c.appliedPose.attachment;if(a instanceof ut){n.push(a);let h=i.obtain();h.length!==a.worldVerticesLength&&(h=D.newFloatArray(a.worldVerticesLength)),s.push(h),a.computeWorldVertices(t,c,0,a.worldVerticesLength,h,0,2)}}e?this.aabbCompute():(this.minX=Number.POSITIVE_INFINITY,this.minY=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.maxY=Number.NEGATIVE_INFINITY)}aabbCompute(){let t=Number.POSITIVE_INFLine truncated
@@ -1,37 +1,37 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Czc7CHAB.js","assets/index-Cq95D0sH.js"])))=>i.map(i=>d[i]);
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CPqyDMc2.js","assets/index-7TEaXqdY.js"])))=>i.map(i=>d[i]);
var FE=Object.defineProperty;var LE=(i,e,t)=>e in i?FE(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var A=(i,e,t)=>LE(i,typeof e!="symbol"?e+"":e,t);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function t(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(s){if(s.ep)return;s.ep=!0;const r=t(s);fetch(s.href,r)}})();/**
* @vue/shared v3.5.41
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function mg(i){const e=Object.create(null);for(const t of i.split(","))e[t]=1;return t=>t in e}const jt={},Ma=[],Fs=()=>{},n1=()=>!1,Xu=i=>i.charCodeAt(0)===111&&i.charCodeAt(1)===110&&(i.charCodeAt(2)>122||i.charCodeAt(2)<97),Yu=i=>i.startsWith("onUpdate:"),_n=Object.assign,gg=(i,e)=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)},DE=Object.prototype.hasOwnProperty,$t=(i,e)=>DE.call(i,e),et=Array.isArray,Pa=i=>yc(i)==="[object Map]",Qa=i=>yc(i)==="[object Set]",Cv=i=>yc(i)==="[object Date]",dt=i=>typeof i=="function",sn=i=>typeof i=="string",Ai=i=>typeof i=="symbol",Ut=i=>i!==null&&typeof i=="object",i1=i=>(Ut(i)||dt(i))&&dt(i.then)&&dt(i.catch),s1=Object.prototype.toString,yc=i=>s1.call(i),OE=i=>yc(i).slice(8,-1),r1=i=>yc(i)==="[object Object]",zu=i=>sn(i)&&i!=="NaN"&&i[0]!=="-"&&""+parseInt(i,10)===i,Ll=mg(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ju=i=>{const e=Object.create(null);return(t=>e[t]||(e[t]=i(t)))},NE=/-\w/g,Zi=ju(i=>i.replace(NE,e=>e.slice(1).toUpperCase())),$E=/\B([A-Z])/g,ro=ju(i=>i.replace($E,"-$1").toLowerCase()),o1=ju(i=>i.charAt(0).toUpperCase()+i.slice(1)),kh=ju(i=>i?`on${o1(i)}`:""),Es=(i,e)=>!Object.is(i,e),Ad=(i,...e)=>{for(let t=0;t<i.length;t++)i[t](...e)},a1=(i,e,t,n=!1)=>{Object.defineProperty(i,e,{configurable:!0,enumerable:!1,writable:n,value:t})},Hu=i=>{const e=parseFloat(i);return isNaN(e)?i:e},BE=i=>{const e=sn(i)?Number(i):NaN;return isNaN(e)?i:e};let Av;const Gu=()=>Av||(Av=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Yt(i){if(et(i)){const e={};for(let t=0;t<i.length;t++){const n=i[t],s=sn(n)?YE(n):Yt(n);if(s)for(const r in s)e[r]=s[r]}return e}else if(sn(i)||Ut(i))return i}const UE=/;(?![^(]*\))/g,VE=/:([^]+)/,XE=/\/\*[^]*?\*\//g;function YE(i){const e={};return i.replace(XE,"").split(UE).forEach(t=>{if(t){const n=t.split(VE);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Me(i){let e="";if(sn(i))e=i;else if(et(i))for(let t=0;t<i.length;t++){const n=Me(i[t]);n&&(e+=n+" ")}else if(Ut(i))for(const t in i)i[t]&&(e+=t+" ");return e.trim()}const zE="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",jE=mg(zE);function l1(i){return!!i||i===""}function HE(i,e){if(i.length!==e.length)return!1;let t=!0;for(let n=0;t&&n<i.length;n++)t=el(i[n],e[n]);return t}function el(i,e){if(i===e)return!0;let t=Cv(i),n=Cv(e);if(t||n)return t&&n?i.getTime()===e.getTime():!1;if(t=Ai(i),n=Ai(e),t||n)return i===e;if(t=et(i),n=et(e),t||n)return t&&n?HE(i,e):!1;if(t=Ut(i),n=Ut(e),t||n){if(!t||!n)return!1;const s=Object.keys(i).length,r=Object.keys(e).length;if(s!==r)return!1;for(const o in i){const a=i.hasOwnProperty(o),c=e.hasOwnProperty(o);if(a&&!c||!a&&c||!el(i[o],e[o]))return!1}}return String(i)===String(e)}function vg(i,e){return i.findIndex(t=>el(t,e))}const c1=i=>!!(i&&i.__v_isRef===!0),F=i=>sn(i)?i:i==null?"":et(i)||Ut(i)&&(i.toString===s1||!dt(i.toString))?c1(i)?F(i.value):JSON.stringify(i,d1,2):String(i),d1=(i,e)=>c1(e)?d1(i,e.value):Pa(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[n,s],r)=>(t[Ih(n,r)+" =>"]=s,t),{})}:Qa(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>Ih(t))}:Ai(e)?Ih(e):Ut(e)&&!et(e)&&!r1(e)?String(e):e,Ih=(i,e="")=>{var t;return Ai(i)?`Symbol(${(t=i.description)!=null?t:e})`:i};/**
**/function mg(i){const e=Object.create(null);for(const t of i.split(","))e[t]=1;return t=>t in e}const jt={},Pa=[],Fs=()=>{},n1=()=>!1,Xu=i=>i.charCodeAt(0)===111&&i.charCodeAt(1)===110&&(i.charCodeAt(2)>122||i.charCodeAt(2)<97),Yu=i=>i.startsWith("onUpdate:"),_n=Object.assign,gg=(i,e)=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)},DE=Object.prototype.hasOwnProperty,$t=(i,e)=>DE.call(i,e),et=Array.isArray,ka=i=>yc(i)==="[object Map]",el=i=>yc(i)==="[object Set]",Cv=i=>yc(i)==="[object Date]",dt=i=>typeof i=="function",sn=i=>typeof i=="string",Ti=i=>typeof i=="symbol",Ut=i=>i!==null&&typeof i=="object",i1=i=>(Ut(i)||dt(i))&&dt(i.then)&&dt(i.catch),s1=Object.prototype.toString,yc=i=>s1.call(i),OE=i=>yc(i).slice(8,-1),r1=i=>yc(i)==="[object Object]",zu=i=>sn(i)&&i!=="NaN"&&i[0]!=="-"&&""+parseInt(i,10)===i,Ll=mg(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ju=i=>{const e=Object.create(null);return(t=>e[t]||(e[t]=i(t)))},NE=/-\w/g,Zi=ju(i=>i.replace(NE,e=>e.slice(1).toUpperCase())),$E=/\B([A-Z])/g,ro=ju(i=>i.replace($E,"-$1").toLowerCase()),o1=ju(i=>i.charAt(0).toUpperCase()+i.slice(1)),kh=ju(i=>i?`on${o1(i)}`:""),Es=(i,e)=>!Object.is(i,e),Ad=(i,...e)=>{for(let t=0;t<i.length;t++)i[t](...e)},a1=(i,e,t,n=!1)=>{Object.defineProperty(i,e,{configurable:!0,enumerable:!1,writable:n,value:t})},Hu=i=>{const e=parseFloat(i);return isNaN(e)?i:e},BE=i=>{const e=sn(i)?Number(i):NaN;return isNaN(e)?i:e};let Av;const Gu=()=>Av||(Av=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Yt(i){if(et(i)){const e={};for(let t=0;t<i.length;t++){const n=i[t],s=sn(n)?YE(n):Yt(n);if(s)for(const r in s)e[r]=s[r]}return e}else if(sn(i)||Ut(i))return i}const UE=/;(?![^(]*\))/g,VE=/:([^]+)/,XE=/\/\*[^]*?\*\//g;function YE(i){const e={};return i.replace(XE,"").split(UE).forEach(t=>{if(t){const n=t.split(VE);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Me(i){let e="";if(sn(i))e=i;else if(et(i))for(let t=0;t<i.length;t++){const n=Me(i[t]);n&&(e+=n+" ")}else if(Ut(i))for(const t in i)i[t]&&(e+=t+" ");return e.trim()}const zE="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",jE=mg(zE);function l1(i){return!!i||i===""}function HE(i,e){if(i.length!==e.length)return!1;let t=!0;for(let n=0;t&&n<i.length;n++)t=tl(i[n],e[n]);return t}function tl(i,e){if(i===e)return!0;let t=Cv(i),n=Cv(e);if(t||n)return t&&n?i.getTime()===e.getTime():!1;if(t=Ti(i),n=Ti(e),t||n)return i===e;if(t=et(i),n=et(e),t||n)return t&&n?HE(i,e):!1;if(t=Ut(i),n=Ut(e),t||n){if(!t||!n)return!1;const s=Object.keys(i).length,r=Object.keys(e).length;if(s!==r)return!1;for(const o in i){const a=i.hasOwnProperty(o),c=e.hasOwnProperty(o);if(a&&!c||!a&&c||!tl(i[o],e[o]))return!1}}return String(i)===String(e)}function vg(i,e){return i.findIndex(t=>tl(t,e))}const c1=i=>!!(i&&i.__v_isRef===!0),F=i=>sn(i)?i:i==null?"":et(i)||Ut(i)&&(i.toString===s1||!dt(i.toString))?c1(i)?F(i.value):JSON.stringify(i,d1,2):String(i),d1=(i,e)=>c1(e)?d1(i,e.value):ka(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[n,s],r)=>(t[Ih(n,r)+" =>"]=s,t),{})}:el(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>Ih(t))}:Ti(e)?Ih(e):Ut(e)&&!et(e)&&!r1(e)?String(e):e,Ih=(i,e="")=>{var t;return Ti(i)?`Symbol(${(t=i.description)!=null?t:e})`:i};/**
* @vue/reactivity v3.5.41
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let An;class u1{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&An&&(An.active?(this.parent=An,this.index=(An.scopes||(An.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){const n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){const s=this.scopes.slice();for(e=0,t=s.length;e<t;e++)s[e].resume()}const n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){const t=An;try{return An=this,e()}finally{An=t}}}on(){++this._on===1&&(this.prevScope=An,An=this)}off(){if(this._on>0&&--this._on===0){if(An===this)An=this.prevScope;else{let e=An;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){const s=this.scopes.slice();for(t=0,n=s.length;t<n;t++)s[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function bg(i){return new u1(i)}function yg(){return An}function h1(i,e=!1){An&&An.cleanups.push(i)}let qt;const Rh=new WeakSet;class f1{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,An&&(An.active?An.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Rh.has(this)&&(Rh.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||m1(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Tv(this),g1(this);const e=qt,t=Qi;qt=this,Qi=!0;try{return this.fn()}finally{v1(this),qt=e,Qi=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Sg(e);this.deps=this.depsTail=void 0,Tv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Rh.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){kp(this)&&this.run()}get dirty(){return kp(this)}}let p1=0,Dl,Ol;function m1(i,e=!1){if(i.flags|=8,e){i.next=Ol,Ol=i;return}i.next=Dl,Dl=i}function xg(){p1++}function wg(){if(--p1>0)return;if(Ol){let e=Ol;for(Ol=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let i;for(;Dl;){let e=Dl;for(Dl=void 0;e;){const t=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){i||(i=n)}e=t}}if(i)throw i}function g1(i){for(let e=i.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function v1(i){let e,t=i.depsTail,n=t;for(;n;){const s=n.prevDep;n.version===-1?(n===t&&(t=s),Sg(n),GE(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=s}i.deps=e,i.depsTail=t}function kp(i){for(let e=i.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(b1(e.dep.computed)||e.dep.version!==e.version))return!0;return!!i._dirty}function b1(i){if(i.flags&4&&!(i.flags&16)||(i.flags&=-17,i.globalVersion===Wl)||(i.globalVersion=Wl,!i.isSSR&&i.flags&128&&(!i.deps&&!i._dirty||!kp(i))))return;i.flags|=2;const e=i.dep,t=qt,n=Qi;qt=i,Qi=!0;try{g1(i);const s=i.fn(i._value);(e.version===0||Es(s,i._value))&&(i.flags|=128,i._value=s,e.version++)}catch(s){throw e.version++,s}finally{qt=t,Qi=n,v1(i),i.flags&=-3}}function Sg(i,e=!1){const{dep:t,prevSub:n,nextSub:s}=i;if(n&&(n.nextSub=s,i.prevSub=void 0),s&&(s.prevSub=n,i.nextSub=void 0),t.subs===i&&(t.subs=n,!n&&t.computed)){t.computed.flags&=-5;for(let r=t.computed.deps;r;r=r.nextDep)Sg(r,!0)}!e&&!--t.sc&&t.map&&t.map.delete(t.key)}function GE(i){const{prevDep:e,nextDep:t}=i;e&&(e.nextDep=t,i.prevDep=void 0),t&&(t.prevDep=e,i.nextDep=void 0)}let Qi=!0;const y1=[];function mr(){y1.push(Qi),Qi=!1}function gr(){const i=y1.pop();Qi=i===void 0?!0:i}function Tv(i){const{cleanup:e}=i;if(i.cleanup=void 0,e){const t=qt;qt=void 0;try{e()}finally{qt=t}}}let Wl=0;class WE{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Cg{constructor(e){this.computed=e,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(e){if(!qt||!Qi||qt===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==qt)t=this.activeLink=new WE(qt,this),qt.deps?(t.prevDep=qt.depsTail,qt.depsTail.nextDep=t,qt.depsTail=t):qt.deps=qt.depsTail=t,x1(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const n=t.nextDep;n.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=n),t.prevDep=qt.depsTailLine truncated
**/let An;class u1{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&An&&(An.active?(this.parent=An,this.index=(An.scopes||(An.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){const n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){const s=this.scopes.slice();for(e=0,t=s.length;e<t;e++)s[e].resume()}const n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){const t=An;try{return An=this,e()}finally{An=t}}}on(){++this._on===1&&(this.prevScope=An,An=this)}off(){if(this._on>0&&--this._on===0){if(An===this)An=this.prevScope;else{let e=An;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){const s=this.scopes.slice();for(t=0,n=s.length;t<n;t++)s[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function bg(i){return new u1(i)}function yg(){return An}function h1(i,e=!1){An&&An.cleanups.push(i)}let qt;const Rh=new WeakSet;class f1{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,An&&(An.active?An.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Rh.has(this)&&(Rh.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||m1(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Tv(this),g1(this);const e=qt,t=Qi;qt=this,Qi=!0;try{return this.fn()}finally{v1(this),qt=e,Qi=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Sg(e);this.deps=this.depsTail=void 0,Tv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Rh.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){kp(this)&&this.run()}get dirty(){return kp(this)}}let p1=0,Dl,Ol;function m1(i,e=!1){if(i.flags|=8,e){i.next=Ol,Ol=i;return}i.next=Dl,Dl=i}function xg(){p1++}function wg(){if(--p1>0)return;if(Ol){let e=Ol;for(Ol=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let i;for(;Dl;){let e=Dl;for(Dl=void 0;e;){const t=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){i||(i=n)}e=t}}if(i)throw i}function g1(i){for(let e=i.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function v1(i){let e,t=i.depsTail,n=t;for(;n;){const s=n.prevDep;n.version===-1?(n===t&&(t=s),Sg(n),GE(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=s}i.deps=e,i.depsTail=t}function kp(i){for(let e=i.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(b1(e.dep.computed)||e.dep.version!==e.version))return!0;return!!i._dirty}function b1(i){if(i.flags&4&&!(i.flags&16)||(i.flags&=-17,i.globalVersion===Wl)||(i.globalVersion=Wl,!i.isSSR&&i.flags&128&&(!i.deps&&!i._dirty||!kp(i))))return;i.flags|=2;const e=i.dep,t=qt,n=Qi;qt=i,Qi=!0;try{g1(i);const s=i.fn(i._value);(e.version===0||Es(s,i._value))&&(i.flags|=128,i._value=s,e.version++)}catch(s){throw e.version++,s}finally{qt=t,Qi=n,v1(i),i.flags&=-3}}function Sg(i,e=!1){const{dep:t,prevSub:n,nextSub:s}=i;if(n&&(n.nextSub=s,i.prevSub=void 0),s&&(s.prevSub=n,i.nextSub=void 0),t.subs===i&&(t.subs=n,!n&&t.computed)){t.computed.flags&=-5;for(let r=t.computed.deps;r;r=r.nextDep)Sg(r,!0)}!e&&!--t.sc&&t.map&&t.map.delete(t.key)}function GE(i){const{prevDep:e,nextDep:t}=i;e&&(e.nextDep=t,i.prevDep=void 0),t&&(t.prevDep=e,i.nextDep=void 0)}let Qi=!0;const y1=[];function mr(){y1.push(Qi),Qi=!1}function gr(){const i=y1.pop();Qi=i===void 0?!0:i}function Tv(i){const{cleanup:e}=i;if(i.cleanup=void 0,e){const t=qt;qt=void 0;try{e()}finally{qt=t}}}let Wl=0;class WE{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Cg{constructor(e){this.computed=e,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(e){if(!qt||!Qi||qt===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==qt)t=this.activeLink=new WE(qt,this),qt.deps?(t.prevDep=qt.depsTail,qt.depsTail.nextDep=t,qt.depsTail=t):qt.deps=qt.depsTail=t,x1(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const n=t.nextDep;n.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=n),t.prevDep=qt.depsTailLine truncated
* @vue/runtime-core v3.5.41
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function xc(i,e,t,n){try{return n?i(...n):i()}catch(s){Ku(s,e,t)}}function $i(i,e,t,n){if(dt(i)){const s=xc(i,e,t,n);return s&&i1(s)&&s.catch(r=>{Ku(r,e,t)}),s}if(et(i)){const s=[];for(let r=0;r<i.length;r++)s.push($i(i[r],e,t,n));return s}}function Ku(i,e,t,n=!0){const s=e?e.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||jt;if(e){let a=e.parent;const c=e.proxy,l=`https://vuejs.org/error-reference/#runtime-${t}`;for(;a;){const d=a.ec;if(d){for(let u=0;u<d.length;u++)if(d[u](i,c,l)===!1)return}a=a.parent}if(r){mr(),xc(r,null,10,[i,c,l]),gr();return}}S_(i,t,s,n,o)}function S_(i,e,t,n=!0,s=!1){if(s)throw i;console.error(i)}const ii=[];let vs=-1;const ka=[];let Or=null,pa=0;const P1=Promise.resolve();let zd=null;function tl(i){const e=zd||P1;return i?e.then(this?i.bind(this):i):e}function C_(i){let e=vs+1,t=ii.length;for(;e<t;){const n=e+t>>>1,s=ii[n],r=Kl(s);r<i||r===i&&s.flags&2?e=n+1:t=n}return e}function Eg(i){if(!(i.flags&1)){const e=Kl(i),t=ii[ii.length-1];!t||!(i.flags&2)&&e>=Kl(t)?ii.push(i):ii.splice(C_(e),0,i),i.flags|=1,k1()}}function k1(){zd||(zd=P1.then(R1))}function A_(i){if(!et(i))Or&&i.id===-1?Or.splice(pa+1,0,i):i.flags&1||(ka.push(i),i.flags|=1);else for(let e=0;e<i.length;e++)ka.push(i[e]);k1()}function _v(i,e,t=vs+1){for(;t<ii.length;t++){const n=ii[t];if(n&&n.flags&2){if(i&&n.id!==i.uid)continue;ii.splice(t,1),t--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function I1(i){if(ka.length){const e=[...new Set(ka)].sort((t,n)=>Kl(t)-Kl(n));if(ka.length=0,Or){for(let t=0;t<e.length;t++)Or.push(e[t]);return}for(Or=e,pa=0;pa<Or.length;pa++){const t=Or[pa];t.flags&4&&(t.flags&=-2),t.flags&8||t(),t.flags&=-2}Or=null,pa=0}}const Kl=i=>i.id==null?i.flags&2?-1:1/0:i.id;function R1(i){try{for(vs=0;vs<ii.length;vs++){const e=ii[vs];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),xc(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;vs<ii.length;vs++){const e=ii[vs];e&&(e.flags&=-2)}vs=-1,ii.length=0,I1(),zd=null,(ii.length||ka.length)&&R1()}}let qn=null,F1=null;function jd(i){const e=qn;return qn=i,F1=i&&i.type.__scopeId||null,e}function Ju(i,e=qn,t){if(!e||i._n)return i;const n=(...s)=>{n._d&&qd(-1);const r=jd(e),o=hr.length;let a;try{a=i(...s)}finally{for(let c=hr.length;c>o;c--)Ig();jd(r),n._d&&qd(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function pe(i,e){if(qn===null)return i;const t=sh(qn),n=i.dirs||(i.dirs=[]);for(let s=0;s<e.length;s++){let[r,o,a,c=jt]=e[s];r&&(dt(r)&&(r={mounted:r,updated:r}),r.deep&&er(o),n.push({dir:r,instance:t,value:o,oldValue:void 0,arg:a,modifiers:c}))}return i}function fo(i,e,t,n){const s=i.dirs,r=e&&e.dirs;for(let o=0;o<s.length;o++){const a=s[o];r&&(a.oldValue=r[o].value);let c=a.dir[n];c&&(mr(),$i(c,t,8,[i.el,a,i,e]),gr())}}function L1(i,e){if(si){let t=si.provides;const n=si.parent&&si.parent.provides;n===t&&(t=si.provides=Object.create(n)),t[i]=e}}function No(i,e,t=!1){const n=ih();if(n||$o){let s=$o?$o._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(s&&i in s)return s[i];if(arguments.length>1)return t&&dt(e)?e.call(n&&n.proxy):e}}function T_(){return!!(ih()||$o)}const E_=Symbol.for("v-scx"),__=()=>No(E_);function ma(i,e){return _g(i,null,e)}function Vt(i,e,t){return _g(i,e,t)}function _g(i,e,t=jt){const{immediate:n,deep:s,flush:r,once:o}=t,a=_n({},t),c=e&&n||!e&&r!=="post";let l;if(tc){if(r==="sync"){const f=__();l=f.__watcherHandles||(f.__watcherHandles=[])}else if(!c){const f=()=>{};return f.stop=Fs,f.resume=Fs,f.pause=Fs,f}}const d=si;a.call=(f,p,m)=>$i(f,d,p,m);let u=!1;r==="post"?a.scheduler=f=>{ei(f,d&&d.suspense)}:r!=="sync"&&(u=!0,a.scheduler=(f,p)=>{p?f():Eg(f)}),a.augmentJob=f=>{e&&(f.flags|=4),u&&(f.flags|=2,d&&(f.id=d.uid,f.i=d))};const h=w_(i,e,a);return tc&&(l?l.push(h):c&&h()),h}function M_(i,e,t){const n=this.proxy,s=sn(i)?i.includes(".")?D1(n,i):()=>n[i]:i.bind(n,n);let r;dt(e)?r=e:(r=e.handler,t=e);const o=Sc(this),a=_g(s,r.bind(n),t);return o(),a}function D1(i,e){const t=e.split(".");return()=>{let n=i;for(let s=0;s<t.length&&n;s++)n=n[t[s]];return n}}const Ir=new WeakMap,O1=Symbol("_vte"),Zu=i=>i.__isTeleport,Eo=i=>i&&(i.disabled||i.disabled===""),P_=i=>i&&(i.defer||i.defer===""),Mv=i=>typeof SVGElement<"u"&&i instanceof SVGElement,Pv=i=>typeof MathMLElement=="function"&&i instanceof MathMLElement,Lp=(i,e)=>{const t=i&&i.to;return sn(t)?e?e(t):null:t},k_={name:"Teleport",__isTeleport:!0,process(i,e,t,n,s,r,o,a,c,l){const{mc:d,pc:u,pbc:h,o:{insert:f,querySelector:p,createText:m,createComment:g,parentNode:v}}=l,y=Eo(e.props);let{dynamicChildren:b}=e;const x=(S,C,M)=>{S.shapeFlag&16&&d(S.children,C,M,s,r,o,a,c)},T=(S=e)=>{const C=Eo(S.props),M=S.target=Lp(S.props,p),k=Dp(M,S,m,f);M&&(o!=="svg"&&Mv(M)?o="svg":o!=="mathml"&&Pv(M)&&(o="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(M),C||(x(S,M,k),Cl(S,!1)))},E=S=>{const C=()=>{if(Ir.get(S)===C){if(Ir.delete(S),Eo(S.props)){const M=v(S.el)||t;x Line truncated
**/function xc(i,e,t,n){try{return n?i(...n):i()}catch(s){Ku(s,e,t)}}function $i(i,e,t,n){if(dt(i)){const s=xc(i,e,t,n);return s&&i1(s)&&s.catch(r=>{Ku(r,e,t)}),s}if(et(i)){const s=[];for(let r=0;r<i.length;r++)s.push($i(i[r],e,t,n));return s}}function Ku(i,e,t,n=!0){const s=e?e.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||jt;if(e){let a=e.parent;const c=e.proxy,l=`https://vuejs.org/error-reference/#runtime-${t}`;for(;a;){const d=a.ec;if(d){for(let u=0;u<d.length;u++)if(d[u](i,c,l)===!1)return}a=a.parent}if(r){mr(),xc(r,null,10,[i,c,l]),gr();return}}S_(i,t,s,n,o)}function S_(i,e,t,n=!0,s=!1){if(s)throw i;console.error(i)}const ii=[];let vs=-1;const Ia=[];let Or=null,ma=0;const P1=Promise.resolve();let zd=null;function nl(i){const e=zd||P1;return i?e.then(this?i.bind(this):i):e}function C_(i){let e=vs+1,t=ii.length;for(;e<t;){const n=e+t>>>1,s=ii[n],r=Kl(s);r<i||r===i&&s.flags&2?e=n+1:t=n}return e}function Eg(i){if(!(i.flags&1)){const e=Kl(i),t=ii[ii.length-1];!t||!(i.flags&2)&&e>=Kl(t)?ii.push(i):ii.splice(C_(e),0,i),i.flags|=1,k1()}}function k1(){zd||(zd=P1.then(R1))}function A_(i){if(!et(i))Or&&i.id===-1?Or.splice(ma+1,0,i):i.flags&1||(Ia.push(i),i.flags|=1);else for(let e=0;e<i.length;e++)Ia.push(i[e]);k1()}function _v(i,e,t=vs+1){for(;t<ii.length;t++){const n=ii[t];if(n&&n.flags&2){if(i&&n.id!==i.uid)continue;ii.splice(t,1),t--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function I1(i){if(Ia.length){const e=[...new Set(Ia)].sort((t,n)=>Kl(t)-Kl(n));if(Ia.length=0,Or){for(let t=0;t<e.length;t++)Or.push(e[t]);return}for(Or=e,ma=0;ma<Or.length;ma++){const t=Or[ma];t.flags&4&&(t.flags&=-2),t.flags&8||t(),t.flags&=-2}Or=null,ma=0}}const Kl=i=>i.id==null?i.flags&2?-1:1/0:i.id;function R1(i){try{for(vs=0;vs<ii.length;vs++){const e=ii[vs];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),xc(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;vs<ii.length;vs++){const e=ii[vs];e&&(e.flags&=-2)}vs=-1,ii.length=0,I1(),zd=null,(ii.length||Ia.length)&&R1()}}let qn=null,F1=null;function jd(i){const e=qn;return qn=i,F1=i&&i.type.__scopeId||null,e}function Ju(i,e=qn,t){if(!e||i._n)return i;const n=(...s)=>{n._d&&qd(-1);const r=jd(e),o=hr.length;let a;try{a=i(...s)}finally{for(let c=hr.length;c>o;c--)Ig();jd(r),n._d&&qd(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function pe(i,e){if(qn===null)return i;const t=sh(qn),n=i.dirs||(i.dirs=[]);for(let s=0;s<e.length;s++){let[r,o,a,c=jt]=e[s];r&&(dt(r)&&(r={mounted:r,updated:r}),r.deep&&er(o),n.push({dir:r,instance:t,value:o,oldValue:void 0,arg:a,modifiers:c}))}return i}function fo(i,e,t,n){const s=i.dirs,r=e&&e.dirs;for(let o=0;o<s.length;o++){const a=s[o];r&&(a.oldValue=r[o].value);let c=a.dir[n];c&&(mr(),$i(c,t,8,[i.el,a,i,e]),gr())}}function L1(i,e){if(si){let t=si.provides;const n=si.parent&&si.parent.provides;n===t&&(t=si.provides=Object.create(n)),t[i]=e}}function No(i,e,t=!1){const n=ih();if(n||$o){let s=$o?$o._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(s&&i in s)return s[i];if(arguments.length>1)return t&&dt(e)?e.call(n&&n.proxy):e}}function T_(){return!!(ih()||$o)}const E_=Symbol.for("v-scx"),__=()=>No(E_);function ga(i,e){return _g(i,null,e)}function Vt(i,e,t){return _g(i,e,t)}function _g(i,e,t=jt){const{immediate:n,deep:s,flush:r,once:o}=t,a=_n({},t),c=e&&n||!e&&r!=="post";let l;if(tc){if(r==="sync"){const f=__();l=f.__watcherHandles||(f.__watcherHandles=[])}else if(!c){const f=()=>{};return f.stop=Fs,f.resume=Fs,f.pause=Fs,f}}const d=si;a.call=(f,p,m)=>$i(f,d,p,m);let u=!1;r==="post"?a.scheduler=f=>{ei(f,d&&d.suspense)}:r!=="sync"&&(u=!0,a.scheduler=(f,p)=>{p?f():Eg(f)}),a.augmentJob=f=>{e&&(f.flags|=4),u&&(f.flags|=2,d&&(f.id=d.uid,f.i=d))};const h=w_(i,e,a);return tc&&(l?l.push(h):c&&h()),h}function M_(i,e,t){const n=this.proxy,s=sn(i)?i.includes(".")?D1(n,i):()=>n[i]:i.bind(n,n);let r;dt(e)?r=e:(r=e.handler,t=e);const o=Sc(this),a=_g(s,r.bind(n),t);return o(),a}function D1(i,e){const t=e.split(".");return()=>{let n=i;for(let s=0;s<t.length&&n;s++)n=n[t[s]];return n}}const Ir=new WeakMap,O1=Symbol("_vte"),Zu=i=>i.__isTeleport,Eo=i=>i&&(i.disabled||i.disabled===""),P_=i=>i&&(i.defer||i.defer===""),Mv=i=>typeof SVGElement<"u"&&i instanceof SVGElement,Pv=i=>typeof MathMLElement=="function"&&i instanceof MathMLElement,Lp=(i,e)=>{const t=i&&i.to;return sn(t)?e?e(t):null:t},k_={name:"Teleport",__isTeleport:!0,process(i,e,t,n,s,r,o,a,c,l){const{mc:d,pc:u,pbc:h,o:{insert:f,querySelector:p,createText:m,createComment:g,parentNode:v}}=l,y=Eo(e.props);let{dynamicChildren:b}=e;const x=(S,C,M)=>{S.shapeFlag&16&&d(S.children,C,M,s,r,o,a,c)},T=(S=e)=>{const C=Eo(S.props),M=S.target=Lp(S.props,p),k=Dp(M,S,m,f);M&&(o!=="svg"&&Mv(M)?o="svg":o!=="mathml"&&Pv(M)&&(o="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(M),C||(x(S,M,k),Cl(S,!1)))},E=S=>{const C=()=>{if(Ir.get(S)===C){if(Ir.delete(S),Eo(S.props)){const M=v(S.el)||t;x Line truncated
* @vue/runtime-dom v3.5.41
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Vp;const Xv=typeof window<"u"&&window.trustedTypes;if(Xv)try{Vp=Xv.createPolicy("vue",{createHTML:i=>i})}catch{}const uw=Vp?i=>Vp.createHTML(i):i=>i,RM="http://www.w3.org/2000/svg",FM="http://www.w3.org/1998/Math/MathML",Gs=typeof document<"u"?document:null,Yv=Gs&&Gs.createElement("template"),LM={insert:(i,e,t)=>{e.insertBefore(i,t||null)},remove:i=>{const e=i.parentNode;e&&e.removeChild(i)},createElement:(i,e,t,n)=>{const s=e==="svg"?Gs.createElementNS(RM,i):e==="mathml"?Gs.createElementNS(FM,i):t?Gs.createElement(i,{is:t}):Gs.createElement(i);return i==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:i=>Gs.createTextNode(i),createComment:i=>Gs.createComment(i),setText:(i,e)=>{i.nodeValue=e},setElementText:(i,e)=>{i.textContent=e},parentNode:i=>i.parentNode,nextSibling:i=>i.nextSibling,querySelector:i=>Gs.querySelector(i),setScopeId(i,e){i.setAttribute(e,"")},insertStaticContent(i,e,t,n,s,r){const o=t?t.previousSibling:e.lastChild;if(s&&(s===r||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),t),!(s===r||!(s=s.nextSibling)););else{Yv.innerHTML=uw(n==="svg"?`<svg>${i}</svg>`:n==="mathml"?`<math>${i}</math>`:i);const a=Yv.content;if(n==="svg"||n==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}e.insertBefore(a,t)}return[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},_r="transition",pl="animation",ic=Symbol("_vtc"),hw={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},DM=_n({},N1,hw),OM=i=>(i.displayName="Transition",i.props=DM,i),NM=OM((i,{slots:e})=>nc(L_,$M(i),e)),mo=(i,e=[])=>{et(i)?i.forEach(t=>t(...e)):i&&i(...e)},zv=i=>i?et(i)?i.some(e=>e.length>1):i.length>1:!1;function $M(i){const e={};for(const I in i)I in hw||(e[I]=i[I]);if(i.css===!1)return e;const{name:t="v",type:n,duration:s,enterFromClass:r=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:a=`${t}-enter-to`,appearFromClass:c=r,appearActiveClass:l=o,appearToClass:d=a,leaveFromClass:u=`${t}-leave-from`,leaveActiveClass:h=`${t}-leave-active`,leaveToClass:f=`${t}-leave-to`}=i,p=BM(s),m=p&&p[0],g=p&&p[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:T,onBeforeAppear:E=v,onAppear:S=y,onAppearCancelled:C=b}=e,M=(I,D,$,j)=>{I._enterCancelled=j,go(I,D?d:a),go(I,D?l:o),$&&$()},k=(I,D)=>{I._isLeaving=!1,go(I,u),go(I,f),go(I,h),D&&D()},P=I=>(D,$)=>{const j=I?S:y,B=()=>M(D,I,$);mo(j,[D,B]),jv(()=>{go(D,I?c:r),Xs(D,I?d:a),zv(j)||Hv(D,n,m,B)})};return _n(e,{onBeforeEnter(I){mo(v,[I]),Xs(I,r),Xs(I,o)},onBeforeAppear(I){mo(E,[I]),Xs(I,c),Xs(I,l)},onEnter:P(!1),onAppear:P(!0),onLeave(I,D){I._isLeaving=!0;const $=()=>k(I,D);Xs(I,u),I._enterCancelled?(Xs(I,h),qv(I)):(qv(I),Xs(I,h)),jv(()=>{I._isLeaving&&(go(I,u),Xs(I,f),zv(x)||Hv(I,n,g,$))}),mo(x,[I,$])},onEnterCancelled(I){M(I,!1,void 0,!0),mo(b,[I])},onAppearCancelled(I){M(I,!0,void 0,!0),mo(C,[I])},onLeaveCancelled(I){k(I),mo(T,[I])}})}function BM(i){if(i==null)return null;if(Ut(i))return[$h(i.enter),$h(i.leave)];{const e=$h(i);return[e,e]}}function $h(i){return BE(i)}function Xs(i,e){e.split(/\s+/).forEach(t=>t&&i.classList.add(t)),(i[ic]||(i[ic]=new Set)).add(e)}function go(i,e){e.split(/\s+/).forEach(n=>n&&i.classList.remove(n));const t=i[ic];t&&(t.delete(e),t.size||(i[ic]=void 0))}function jv(i){requestAnimationFrame(()=>{requestAnimationFrame(i)})}let UM=0;function Hv(i,e,t,n){const s=i._endId=++UM,r=()=>{s===i._endId&&n()};if(t!=null)return setTimeout(r,t);const{type:o,timeout:a,propCount:c}=VM(i,e);if(!o)return n();const l=o+"end";let d=0;const u=()=>{i.removeEventListener(l,h),r()},h=f=>{f.target===i&&++d>=c&&u()};setTimeout(()=>{d<c&&u()},a+1),i.addEventListener(l,h)}function VM(i,e){const t=window.getComputedStyle(i),n=p=>(t[p]||"").split(", "),s=n(`${_r}Delay`),r=n(`${_r}Duration`),o=Gv(s,r),a=n(`${pl}Delay`),c=n(`${pl}Duration`),l=Gv(a,c);let d=null,u=0,h=0;e===_r?o>0&&(d=_r,u=o,h=r.length):e===pl?l>0&&(d=pl,u=l,h=c.length):(u=Math.max(o,l),d=u>0?o>l?_r:pl:null,h=d?d===_r?r.length:c.length:0);const f=d===_r&&/\b(?:transform|all)(?:,|$)/.test(n(`${_r}Property`).toString());return{type:d,timeout:u,propCount:h,hasTransform:f}}function Gv(i,e){for(;i.length<e.length;)i=i.concat(i);return Math.max(...e.map((t,n)=>Wv(t)+Wv(i[n])))}function Wv(i){return i==="auto"?0:Number(i.slice(0,-1).replace(",","."))*1e3}function qv(i){return(i?i.ownerDocument:document).body.offsetHeight}function XM(i,e,t){const n=i[ic];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?i.removeAttribute("class"):t?i.setAttribute("class",e):i.className=e}const Zd=Symbol("_vod"),fw=Symbol("_vsh"),Bt={name:"show",beforeMount(i,{value:e},{transition:t}){i[Zd]=i.style.display==="none"?"":i.style.display,t&&e?t.beforeEnter(i):ml(i,e)},mounted(i,{value:e},{tra Line truncated
`))),i[Ms]=Ya(s);const r=n||s.props&&s.props.type==="number";Xr(i,e?"change":"input",o=>{o.target.composing||i[Ms](Vh(i.value,t,r))}),(t||r)&&Xr(i,"change",()=>{i.value=Vh(i.value,t,r)}),e||(Xr(i,"compositionstart",rP),Xr(i,"compositionend",ib),Xr(i,"change",ib))},mounted(i,{value:e,modifiers:{trim:t,number:n}}){const s=e??"",r=i[Bc];delete i[Bc],r!==void 0&&(i.type==="text"||i.type==="textarea")&&i.value!==r?i[Ms](Vh(i.value,t,n)):i.value=s},beforeUpdate(i,{value:e,oldValue:t,modifiers:{lazy:n,trim:s,number:r}},o){if(i[Ms]=Ya(o),i.composing)return;const a=(r||i.type==="number")&&!/^0\d/.test(i.value)?Hu(i.value):i.value,c=e??"";if(a===c)return;const l=i.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===i&&i.type!=="range"&&(n&&e===t||s&&i.value.trim()===c)||(i.value=c)}},vt={deep:!0,created(i,e,t){i[Ms]=Ya(t),Xr(i,"change",()=>{const n=i._modelValue,s=sc(i),r=i.checked,o=i[Ms];if(et(n)){const a=vg(n,s),c=a!==-1;if(r&&!c)o(n.concat(s));else if(!r&&c){const l=[...n];l.splice(a,1),o(l)}}else if(Qa(n)){const a=new Set(n);r?a.add(s):a.delete(s),o(a)}else o(pw(i,r))})},mounted:sb,beforeUpdate(i,e,t){i[Ms]=Ya(t),sb(i,e,t)}};function sb(i,{value:e,oldValue:t},n){i._modelValue=e;let s;if(et(e))s=vg(e,n.props.value)>-1;else if(Qa(e))s=e.has(n.props.value);else{if(e===t)return;s=el(e,pw(i,!0))}i.checked!==s&&(i.checked=s)}const _t={deep:!0,created(i,{value:e,modifiers:{number:t}},n){i._modelValue=e,Xr(i,"change",()=>{const s=Array.prototype.filter.call(i.options,r=>r.selected).map(r=>t?Hu(sc(r)):sc(r));i[Ms](i.multiple?Qa(i._modelValue)?new Set(s):s:s[0]),i._assigning=!0,tl(()=>{i._assigning=!1})}),i[Ms]=Ya(n)},mounted(i,{value:e}){rb(i,e)},beforeUpdate(i,{value:e},t){i._modelValue=e,i[Ms]=Ya(t)},updated(i,{value:e}){i._assigning||rb(i,e)}};function rb(i,e){const t=i.multiple,n=et(e);if(!(t&&!n&&!Qa(e))){for(let s=0,r=i.options.length;s<r;s++){const o=i.options[s],a=sc(o);if(t)if(n){const c=typeof a;c==="string"||c==="number"?o.selected=e.some(l=>String(l)===String(a)):o.selected=vg(e,a)>-1}else o.selected=e.has(a);else if(el(sc(o),e)){i.selectedIndex!==s&&(i.selectedIndex=s);return}}!t&&i.selectedIndex!==-1&&(i.selectedIndex=-1)}}function sc(i){return"_value"in i?i._value:i.value}function pw(i,e){const t=e?"_trueValue":"_falseValue";return t in i?i[t]:e}const oP=["ctrl","shift","alt","meta"],aP={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,e)=>oP.some(t=>i[`${t}Key`]&&!e.includes(t))},We=(i,e)=>{if(!i)return i;const t=i._withMods||(i._withMods={}),n=e.join(".");return t[n]||(t[n]=((s,...r)=>{for(let o=0;o<e.length;o++){const a=aP[e[o]];if(a&&a(s,e))return}return i(s,...r)}))},lP={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},es=(i,e)=>{const t=i._withKeys||(i._withKeys={}),n=e.join(".");return t[n]||(t[n]=(s=>{if(!("key"in s))return;const r=ro(s.key);if(e.some(o=>o===r||lP[o]===r))return i(s)}))},cP=_n({patchProp:nP},LM);let ob;function dP(){return ob||(ob=pM(cP))}const uP=((...i)=>{const e=dP().createApp(...i),{mount:t}=e;return e.mount=n=>{const s=fP(n);if(!s)return;const r=e._component;!dt(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=t(s,!1,hP(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},e});function hP(i){if(i instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&i instanceof MathMLElement)return"mathml"}function fP(i){return sn(i)?document.querySelector(i):i}/*!
**/let Vp;const Xv=typeof window<"u"&&window.trustedTypes;if(Xv)try{Vp=Xv.createPolicy("vue",{createHTML:i=>i})}catch{}const uw=Vp?i=>Vp.createHTML(i):i=>i,RM="http://www.w3.org/2000/svg",FM="http://www.w3.org/1998/Math/MathML",Gs=typeof document<"u"?document:null,Yv=Gs&&Gs.createElement("template"),LM={insert:(i,e,t)=>{e.insertBefore(i,t||null)},remove:i=>{const e=i.parentNode;e&&e.removeChild(i)},createElement:(i,e,t,n)=>{const s=e==="svg"?Gs.createElementNS(RM,i):e==="mathml"?Gs.createElementNS(FM,i):t?Gs.createElement(i,{is:t}):Gs.createElement(i);return i==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:i=>Gs.createTextNode(i),createComment:i=>Gs.createComment(i),setText:(i,e)=>{i.nodeValue=e},setElementText:(i,e)=>{i.textContent=e},parentNode:i=>i.parentNode,nextSibling:i=>i.nextSibling,querySelector:i=>Gs.querySelector(i),setScopeId(i,e){i.setAttribute(e,"")},insertStaticContent(i,e,t,n,s,r){const o=t?t.previousSibling:e.lastChild;if(s&&(s===r||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),t),!(s===r||!(s=s.nextSibling)););else{Yv.innerHTML=uw(n==="svg"?`<svg>${i}</svg>`:n==="mathml"?`<math>${i}</math>`:i);const a=Yv.content;if(n==="svg"||n==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}e.insertBefore(a,t)}return[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},_r="transition",pl="animation",ic=Symbol("_vtc"),hw={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},DM=_n({},N1,hw),OM=i=>(i.displayName="Transition",i.props=DM,i),NM=OM((i,{slots:e})=>nc(L_,$M(i),e)),mo=(i,e=[])=>{et(i)?i.forEach(t=>t(...e)):i&&i(...e)},zv=i=>i?et(i)?i.some(e=>e.length>1):i.length>1:!1;function $M(i){const e={};for(const I in i)I in hw||(e[I]=i[I]);if(i.css===!1)return e;const{name:t="v",type:n,duration:s,enterFromClass:r=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:a=`${t}-enter-to`,appearFromClass:c=r,appearActiveClass:l=o,appearToClass:d=a,leaveFromClass:u=`${t}-leave-from`,leaveActiveClass:h=`${t}-leave-active`,leaveToClass:f=`${t}-leave-to`}=i,p=BM(s),m=p&&p[0],g=p&&p[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:T,onBeforeAppear:E=v,onAppear:S=y,onAppearCancelled:C=b}=e,M=(I,D,$,j)=>{I._enterCancelled=j,go(I,D?d:a),go(I,D?l:o),$&&$()},k=(I,D)=>{I._isLeaving=!1,go(I,u),go(I,f),go(I,h),D&&D()},P=I=>(D,$)=>{const j=I?S:y,B=()=>M(D,I,$);mo(j,[D,B]),jv(()=>{go(D,I?c:r),Xs(D,I?d:a),zv(j)||Hv(D,n,m,B)})};return _n(e,{onBeforeEnter(I){mo(v,[I]),Xs(I,r),Xs(I,o)},onBeforeAppear(I){mo(E,[I]),Xs(I,c),Xs(I,l)},onEnter:P(!1),onAppear:P(!0),onLeave(I,D){I._isLeaving=!0;const $=()=>k(I,D);Xs(I,u),I._enterCancelled?(Xs(I,h),qv(I)):(qv(I),Xs(I,h)),jv(()=>{I._isLeaving&&(go(I,u),Xs(I,f),zv(x)||Hv(I,n,g,$))}),mo(x,[I,$])},onEnterCancelled(I){M(I,!1,void 0,!0),mo(b,[I])},onAppearCancelled(I){M(I,!0,void 0,!0),mo(C,[I])},onLeaveCancelled(I){k(I),mo(T,[I])}})}function BM(i){if(i==null)return null;if(Ut(i))return[$h(i.enter),$h(i.leave)];{const e=$h(i);return[e,e]}}function $h(i){return BE(i)}function Xs(i,e){e.split(/\s+/).forEach(t=>t&&i.classList.add(t)),(i[ic]||(i[ic]=new Set)).add(e)}function go(i,e){e.split(/\s+/).forEach(n=>n&&i.classList.remove(n));const t=i[ic];t&&(t.delete(e),t.size||(i[ic]=void 0))}function jv(i){requestAnimationFrame(()=>{requestAnimationFrame(i)})}let UM=0;function Hv(i,e,t,n){const s=i._endId=++UM,r=()=>{s===i._endId&&n()};if(t!=null)return setTimeout(r,t);const{type:o,timeout:a,propCount:c}=VM(i,e);if(!o)return n();const l=o+"end";let d=0;const u=()=>{i.removeEventListener(l,h),r()},h=f=>{f.target===i&&++d>=c&&u()};setTimeout(()=>{d<c&&u()},a+1),i.addEventListener(l,h)}function VM(i,e){const t=window.getComputedStyle(i),n=p=>(t[p]||"").split(", "),s=n(`${_r}Delay`),r=n(`${_r}Duration`),o=Gv(s,r),a=n(`${pl}Delay`),c=n(`${pl}Duration`),l=Gv(a,c);let d=null,u=0,h=0;e===_r?o>0&&(d=_r,u=o,h=r.length):e===pl?l>0&&(d=pl,u=l,h=c.length):(u=Math.max(o,l),d=u>0?o>l?_r:pl:null,h=d?d===_r?r.length:c.length:0);const f=d===_r&&/\b(?:transform|all)(?:,|$)/.test(n(`${_r}Property`).toString());return{type:d,timeout:u,propCount:h,hasTransform:f}}function Gv(i,e){for(;i.length<e.length;)i=i.concat(i);return Math.max(...e.map((t,n)=>Wv(t)+Wv(i[n])))}function Wv(i){return i==="auto"?0:Number(i.slice(0,-1).replace(",","."))*1e3}function qv(i){return(i?i.ownerDocument:document).body.offsetHeight}function XM(i,e,t){const n=i[ic];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?i.removeAttribute("class"):t?i.setAttribute("class",e):i.className=e}const Zd=Symbol("_vod"),fw=Symbol("_vsh"),Bt={name:"show",beforeMount(i,{value:e},{transition:t}){i[Zd]=i.style.display==="none"?"":i.style.display,t&&e?t.beforeEnter(i):ml(i,e)},mounted(i,{value:e},{tra Line truncated
`))),i[Ms]=za(s);const r=n||s.props&&s.props.type==="number";Xr(i,e?"change":"input",o=>{o.target.composing||i[Ms](Vh(i.value,t,r))}),(t||r)&&Xr(i,"change",()=>{i.value=Vh(i.value,t,r)}),e||(Xr(i,"compositionstart",rP),Xr(i,"compositionend",ib),Xr(i,"change",ib))},mounted(i,{value:e,modifiers:{trim:t,number:n}}){const s=e??"",r=i[Bc];delete i[Bc],r!==void 0&&(i.type==="text"||i.type==="textarea")&&i.value!==r?i[Ms](Vh(i.value,t,n)):i.value=s},beforeUpdate(i,{value:e,oldValue:t,modifiers:{lazy:n,trim:s,number:r}},o){if(i[Ms]=za(o),i.composing)return;const a=(r||i.type==="number")&&!/^0\d/.test(i.value)?Hu(i.value):i.value,c=e??"";if(a===c)return;const l=i.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===i&&i.type!=="range"&&(n&&e===t||s&&i.value.trim()===c)||(i.value=c)}},vt={deep:!0,created(i,e,t){i[Ms]=za(t),Xr(i,"change",()=>{const n=i._modelValue,s=sc(i),r=i.checked,o=i[Ms];if(et(n)){const a=vg(n,s),c=a!==-1;if(r&&!c)o(n.concat(s));else if(!r&&c){const l=[...n];l.splice(a,1),o(l)}}else if(el(n)){const a=new Set(n);r?a.add(s):a.delete(s),o(a)}else o(pw(i,r))})},mounted:sb,beforeUpdate(i,e,t){i[Ms]=za(t),sb(i,e,t)}};function sb(i,{value:e,oldValue:t},n){i._modelValue=e;let s;if(et(e))s=vg(e,n.props.value)>-1;else if(el(e))s=e.has(n.props.value);else{if(e===t)return;s=tl(e,pw(i,!0))}i.checked!==s&&(i.checked=s)}const _t={deep:!0,created(i,{value:e,modifiers:{number:t}},n){i._modelValue=e,Xr(i,"change",()=>{const s=Array.prototype.filter.call(i.options,r=>r.selected).map(r=>t?Hu(sc(r)):sc(r));i[Ms](i.multiple?el(i._modelValue)?new Set(s):s:s[0]),i._assigning=!0,nl(()=>{i._assigning=!1})}),i[Ms]=za(n)},mounted(i,{value:e}){rb(i,e)},beforeUpdate(i,{value:e},t){i._modelValue=e,i[Ms]=za(t)},updated(i,{value:e}){i._assigning||rb(i,e)}};function rb(i,e){const t=i.multiple,n=et(e);if(!(t&&!n&&!el(e))){for(let s=0,r=i.options.length;s<r;s++){const o=i.options[s],a=sc(o);if(t)if(n){const c=typeof a;c==="string"||c==="number"?o.selected=e.some(l=>String(l)===String(a)):o.selected=vg(e,a)>-1}else o.selected=e.has(a);else if(tl(sc(o),e)){i.selectedIndex!==s&&(i.selectedIndex=s);return}}!t&&i.selectedIndex!==-1&&(i.selectedIndex=-1)}}function sc(i){return"_value"in i?i._value:i.value}function pw(i,e){const t=e?"_trueValue":"_falseValue";return t in i?i[t]:e}const oP=["ctrl","shift","alt","meta"],aP={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,e)=>oP.some(t=>i[`${t}Key`]&&!e.includes(t))},We=(i,e)=>{if(!i)return i;const t=i._withMods||(i._withMods={}),n=e.join(".");return t[n]||(t[n]=((s,...r)=>{for(let o=0;o<e.length;o++){const a=aP[e[o]];if(a&&a(s,e))return}return i(s,...r)}))},lP={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},es=(i,e)=>{const t=i._withKeys||(i._withKeys={}),n=e.join(".");return t[n]||(t[n]=(s=>{if(!("key"in s))return;const r=ro(s.key);if(e.some(o=>o===r||lP[o]===r))return i(s)}))},cP=_n({patchProp:nP},LM);let ob;function dP(){return ob||(ob=pM(cP))}const uP=((...i)=>{const e=dP().createApp(...i),{mount:t}=e;return e.mount=n=>{const s=fP(n);if(!s)return;const r=e._component;!dt(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=t(s,!1,hP(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},e});function hP(i){if(i instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&i instanceof MathMLElement)return"mathml"}function fP(i){return sn(i)?document.querySelector(i):i}/*!
* pinia v4.0.3
* (c) 2026 Eduardo San Martin Morote
* @license MIT
*/let mw;const rh=i=>mw=i,gw=Symbol();function ab(i){return i&&typeof i=="object"&&Object.prototype.toString.call(i)==="[object Object]"&&typeof i.toJSON!="function"}function pP(){const i=bg(!0),e=i.run(()=>Re({}));let t=[],n=[];const s=Hr({install(r){rh(s),s._a=r,r.provide(gw,s),r.config.globalProperties.$pinia=s,n.forEach(o=>t.push(o)),n=[]},use(r){return this._a?t.push(r):n.push(r),this},_p:t,_a:null,_e:i,_s:new Map,state:e});return s}const Xp=()=>{};function lb(i,e,t,n=Xp){i.add(e);const s=()=>{i.delete(e)&&n()};return!t&&yg()&&h1(s),s}function ra(i,...e){i.forEach(t=>{t(...e)})}const mP=i=>i(),cb=Symbol(),Xh=Symbol();function Yp(i,e){i instanceof Map&&e instanceof Map?e.forEach((t,n)=>i.set(n,t)):i instanceof Set&&e instanceof Set&&e.forEach(i.add,i);for(const t in e){if(!Object.hasOwn(e,t))continue;const n=e[t],s=i[t];ab(s)&&ab(n)&&Object.hasOwn(i,t)&&!Jt(n)&&!ur(n)?i[t]=Yp(s,n):i[t]=n}return i}const gP=Symbol();function vP(i){return!i||typeof i!="object"||!Object.hasOwn(i,gP)}const{assign:Rr}=Object;function bP(i){return!!(Jt(i)&&i.effect)}function yP(i,e,t,n){const{state:s,actions:r,getters:o}=e,a=t.state.value[i];let c;function l(){a||(t.state.value[i]=s?s():{});const d=m_(t.state.value[i]);return Rr(d,r,Object.keys(o||{}).reduce((u,h)=>(u[h]=Hr(Fe(()=>{rh(t);const f=t._s.get(i);return o[h].call(f,f)})),u),{}))}return c=vw(i,l,e,t,n,!0),c}function vw(i,e,t={},n,s,r){let o;const a=Rr({actions:{}},t),c={deep:!0};let l,d,u=new Set,h=new Set,f;const p=n.state.value[i];!r&&!p&&(n.state.value[i]={});let m;function g(S){let C;l=d=!1,typeof S=="function"?(S(n.state.value[i]),C={type:"patch function",storeId:i,events:f}):(Yp(n.state.value[i],S),C={type:"patch object",payload:S,storeId:i,events:f});const M=m=Symbol();tl().then(()=>{m===M&&(l=!0)}),d=!0,ra(u,C,n.state.value[i])}const v=r?function(){const{state:C}=t,M=C?C():{};this.$patch(k=>{Rr(k,M)})}:Xp;function y(){o.stop(),u.clear(),h.clear(),n._s.delete(i)}const b=(S,C="")=>{if(cb in S)return S[Xh]=C,S;const M=function(){rh(n);const k=Array.from(arguments),P=new Set,I=new Set;function D(B){P.add(B)}function $(B){I.add(B)}ra(h,{args:k,name:M[Xh],store:T,after:D,onError:$});let j;try{j=S.apply(this&&this.$id===i?this:T,k)}catch(B){throw ra(I,B),B}return j instanceof Promise?j.then(B=>(ra(P,B),B)).catch(B=>(ra(I,B),Promise.reject(B))):(ra(P,j),j)};return M[cb]=!0,M[Xh]=C,M},x={_p:n,$id:i,$onAction:lb.bind(null,h),$patch:g,$reset:v,$subscribe(S,C={}){if(u.has(S))return Xp;const M=lb(u,S,C.detached,()=>k()),k=o.run(()=>Vt(()=>n.state.value[i],P=>{(C.flush==="sync"?d:l)&&S({storeId:i,type:"direct",events:f},P)},Rr({},c,C)));return M},$dispose:y},T=qo(x);n._s.set(i,T);const E=(n._a&&n._a.runWithContext||mP)(()=>n._e.run(()=>(o=bg()).run(()=>e({action:b}))));for(const S in E){const C=E[S];Jt(C)&&!bP(C)||ur(C)?r||(p&&vP(C)&&(Jt(C)?C.value=p[S]:((C instanceof Set||C instanceof Map)&&C.clear(),Yp(C,p[S]))),n.state.value[i][S]=C):typeof C=="function"&&(E[S]=b(C,S),a.actions[S]=C)}return Rr(T,E),Rr(Ft(T),E),Object.defineProperty(T,"$state",{get:()=>n.state.value[i],set:S=>{g(C=>{Rr(C,S)})}}),n._p.forEach(S=>{const C=o.run(()=>S({store:T,app:n._a,pinia:n,options:a}));Rr(T,C)}),p&&r&&t.hydrate&&t.hydrate(T.$state,p),l=!0,d=!0,T}/*! #__NO_SIDE_EFFECTS__ */function xP(i,e,t){let n;const s=typeof e=="function";n=s?t:e;function r(o,a){const c=T_();return o=o||(c?No(gw,null):null),o&&rh(o),o=mw,o._s.has(i)||(s?vw(i,e,n,o):yP(i,n,o)),o._s.get(i)}return r.$id=i,r}var Ko=(i=>(i[i.WEBGL_LEGACY=0]="WEBGL_LEGACY",i[i.WEBGL=1]="WEBGL",i[i.WEBGL2=2]="WEBGL2",i))(Ko||{}),bw=(i=>(i[i.UNKNOWN=0]="UNKNOWN",i[i.WEBGL=1]="WEBGL",i[i.CANVAS=2]="CANVAS",i))(bw||{}),zp=(i=>(i[i.COLOR=16384]="COLOR",i[i.DEPTH=256]="DEPTH",i[i.STENCIL=1024]="STENCIL",i))(zp||{}),Qe=(i=>(i[i.NORMAL=0]="NORMAL",i[i.ADD=1]="ADD",i[i.MULTIPLY=2]="MULTIPLY",i[i.SCREEN=3]="SCREEN",i[i.OVERLAY=4]="OVERLAY",i[i.DARKEN=5]="DARKEN",i[i.LIGHTEN=6]="LIGHTEN",i[i.COLOR_DODGE=7]="COLOR_DODGE",i[i.COLOR_BURN=8]="COLOR_BURN",i[i.HARD_LIGHT=9]="HARD_LIGHT",i[i.SOFT_LIGHT=10]="SOFT_LIGHT",i[i.DIFFERENCE=11]="DIFFERENCE",i[i.EXCLUSION=12]="EXCLUSION",i[i.HUE=13]="HUE",i[i.SATURATION=14]="SATURATION",i[i.COLOR=15]="COLOR",i[i.LUMINOSITY=16]="LUMINOSITY",i[i.NORMAL_NPM=17]="NORMAL_NPM",i[i.ADD_NPM=18]="ADD_NPM",i[i.SCREEN_NPM=19]="SCREEN_NPM",i[i.NONE=20]="NONE",i[i.SRC_OVER=0]="SRC_OVER",i[i.SRC_IN=21]="SRC_IN",i[i.SRC_OUT=22]="SRC_OUT",i[i.SRC_ATOP=23]="SRC_ATOP",i[i.DST_OVER=24]="DST_OVER",i[i.DST_IN=25]="DST_IN",i[i.DST_OUT=26]="DST_OUT",i[i.DST_ATOP=27]="DST_ATOP",i[i.ERASE=26]="ERASE",i[i.SUBTRACT=28]="SUBTRACT",i[i.XOR=29]="XOR",i))(Qe||{}),Ps=(i=>(i[i.POINTS=0]="POINTS",i[i.LINES=1]="LINES",i[i.LINE_LOOP=2]="LINE_LOOP",i[i.LINE_STRIP=3]="LINE_STRIP",i[i.TRIANGLES=4]="TRIANGLES",i[i.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",i[i.TRIANGLE_FAN=6]="TRIANGLE_FAN",i))(Ps||{}),Ie=(i=>(i[i.RGBA=6408]="RGBA",i[i.RGB=6407]="RGB",i[i.RG=33319]="RG",i[i.RED=6403]="RED",i[i.RGBA_INTEGER=36249]="RGBA_INTEGER",i[i.RGB_INTEGER=36248]="RGB_INTELine truncated
*/let mw;const rh=i=>mw=i,gw=Symbol();function ab(i){return i&&typeof i=="object"&&Object.prototype.toString.call(i)==="[object Object]"&&typeof i.toJSON!="function"}function pP(){const i=bg(!0),e=i.run(()=>Ie({}));let t=[],n=[];const s=Hr({install(r){rh(s),s._a=r,r.provide(gw,s),r.config.globalProperties.$pinia=s,n.forEach(o=>t.push(o)),n=[]},use(r){return this._a?t.push(r):n.push(r),this},_p:t,_a:null,_e:i,_s:new Map,state:e});return s}const Xp=()=>{};function lb(i,e,t,n=Xp){i.add(e);const s=()=>{i.delete(e)&&n()};return!t&&yg()&&h1(s),s}function oa(i,...e){i.forEach(t=>{t(...e)})}const mP=i=>i(),cb=Symbol(),Xh=Symbol();function Yp(i,e){i instanceof Map&&e instanceof Map?e.forEach((t,n)=>i.set(n,t)):i instanceof Set&&e instanceof Set&&e.forEach(i.add,i);for(const t in e){if(!Object.hasOwn(e,t))continue;const n=e[t],s=i[t];ab(s)&&ab(n)&&Object.hasOwn(i,t)&&!Jt(n)&&!ur(n)?i[t]=Yp(s,n):i[t]=n}return i}const gP=Symbol();function vP(i){return!i||typeof i!="object"||!Object.hasOwn(i,gP)}const{assign:Rr}=Object;function bP(i){return!!(Jt(i)&&i.effect)}function yP(i,e,t,n){const{state:s,actions:r,getters:o}=e,a=t.state.value[i];let c;function l(){a||(t.state.value[i]=s?s():{});const d=m_(t.state.value[i]);return Rr(d,r,Object.keys(o||{}).reduce((u,h)=>(u[h]=Hr(Fe(()=>{rh(t);const f=t._s.get(i);return o[h].call(f,f)})),u),{}))}return c=vw(i,l,e,t,n,!0),c}function vw(i,e,t={},n,s,r){let o;const a=Rr({actions:{}},t),c={deep:!0};let l,d,u=new Set,h=new Set,f;const p=n.state.value[i];!r&&!p&&(n.state.value[i]={});let m;function g(S){let C;l=d=!1,typeof S=="function"?(S(n.state.value[i]),C={type:"patch function",storeId:i,events:f}):(Yp(n.state.value[i],S),C={type:"patch object",payload:S,storeId:i,events:f});const M=m=Symbol();nl().then(()=>{m===M&&(l=!0)}),d=!0,oa(u,C,n.state.value[i])}const v=r?function(){const{state:C}=t,M=C?C():{};this.$patch(k=>{Rr(k,M)})}:Xp;function y(){o.stop(),u.clear(),h.clear(),n._s.delete(i)}const b=(S,C="")=>{if(cb in S)return S[Xh]=C,S;const M=function(){rh(n);const k=Array.from(arguments),P=new Set,I=new Set;function D(B){P.add(B)}function $(B){I.add(B)}oa(h,{args:k,name:M[Xh],store:T,after:D,onError:$});let j;try{j=S.apply(this&&this.$id===i?this:T,k)}catch(B){throw oa(I,B),B}return j instanceof Promise?j.then(B=>(oa(P,B),B)).catch(B=>(oa(I,B),Promise.reject(B))):(oa(P,j),j)};return M[cb]=!0,M[Xh]=C,M},x={_p:n,$id:i,$onAction:lb.bind(null,h),$patch:g,$reset:v,$subscribe(S,C={}){if(u.has(S))return Xp;const M=lb(u,S,C.detached,()=>k()),k=o.run(()=>Vt(()=>n.state.value[i],P=>{(C.flush==="sync"?d:l)&&S({storeId:i,type:"direct",events:f},P)},Rr({},c,C)));return M},$dispose:y},T=qo(x);n._s.set(i,T);const E=(n._a&&n._a.runWithContext||mP)(()=>n._e.run(()=>(o=bg()).run(()=>e({action:b}))));for(const S in E){const C=E[S];Jt(C)&&!bP(C)||ur(C)?r||(p&&vP(C)&&(Jt(C)?C.value=p[S]:((C instanceof Set||C instanceof Map)&&C.clear(),Yp(C,p[S]))),n.state.value[i][S]=C):typeof C=="function"&&(E[S]=b(C,S),a.actions[S]=C)}return Rr(T,E),Rr(Ft(T),E),Object.defineProperty(T,"$state",{get:()=>n.state.value[i],set:S=>{g(C=>{Rr(C,S)})}}),n._p.forEach(S=>{const C=o.run(()=>S({store:T,app:n._a,pinia:n,options:a}));Rr(T,C)}),p&&r&&t.hydrate&&t.hydrate(T.$state,p),l=!0,d=!0,T}/*! #__NO_SIDE_EFFECTS__ */function xP(i,e,t){let n;const s=typeof e=="function";n=s?t:e;function r(o,a){const c=T_();return o=o||(c?No(gw,null):null),o&&rh(o),o=mw,o._s.has(i)||(s?vw(i,e,n,o):yP(i,n,o)),o._s.get(i)}return r.$id=i,r}var Jo=(i=>(i[i.WEBGL_LEGACY=0]="WEBGL_LEGACY",i[i.WEBGL=1]="WEBGL",i[i.WEBGL2=2]="WEBGL2",i))(Jo||{}),bw=(i=>(i[i.UNKNOWN=0]="UNKNOWN",i[i.WEBGL=1]="WEBGL",i[i.CANVAS=2]="CANVAS",i))(bw||{}),zp=(i=>(i[i.COLOR=16384]="COLOR",i[i.DEPTH=256]="DEPTH",i[i.STENCIL=1024]="STENCIL",i))(zp||{}),Qe=(i=>(i[i.NORMAL=0]="NORMAL",i[i.ADD=1]="ADD",i[i.MULTIPLY=2]="MULTIPLY",i[i.SCREEN=3]="SCREEN",i[i.OVERLAY=4]="OVERLAY",i[i.DARKEN=5]="DARKEN",i[i.LIGHTEN=6]="LIGHTEN",i[i.COLOR_DODGE=7]="COLOR_DODGE",i[i.COLOR_BURN=8]="COLOR_BURN",i[i.HARD_LIGHT=9]="HARD_LIGHT",i[i.SOFT_LIGHT=10]="SOFT_LIGHT",i[i.DIFFERENCE=11]="DIFFERENCE",i[i.EXCLUSION=12]="EXCLUSION",i[i.HUE=13]="HUE",i[i.SATURATION=14]="SATURATION",i[i.COLOR=15]="COLOR",i[i.LUMINOSITY=16]="LUMINOSITY",i[i.NORMAL_NPM=17]="NORMAL_NPM",i[i.ADD_NPM=18]="ADD_NPM",i[i.SCREEN_NPM=19]="SCREEN_NPM",i[i.NONE=20]="NONE",i[i.SRC_OVER=0]="SRC_OVER",i[i.SRC_IN=21]="SRC_IN",i[i.SRC_OUT=22]="SRC_OUT",i[i.SRC_ATOP=23]="SRC_ATOP",i[i.DST_OVER=24]="DST_OVER",i[i.DST_IN=25]="DST_IN",i[i.DST_OUT=26]="DST_OUT",i[i.DST_ATOP=27]="DST_ATOP",i[i.ERASE=26]="ERASE",i[i.SUBTRACT=28]="SUBTRACT",i[i.XOR=29]="XOR",i))(Qe||{}),Ps=(i=>(i[i.POINTS=0]="POINTS",i[i.LINES=1]="LINES",i[i.LINE_LOOP=2]="LINE_LOOP",i[i.LINE_STRIP=3]="LINE_STRIP",i[i.TRIANGLES=4]="TRIANGLES",i[i.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",i[i.TRIANGLE_FAN=6]="TRIANGLE_FAN",i))(Ps||{}),Re=(i=>(i[i.RGBA=6408]="RGBA",i[i.RGB=6407]="RGB",i[i.RG=33319]="RG",i[i.RED=6403]="RED",i[i.RGBA_INTEGER=36249]="RGBA_INTEGER",i[i.RGB_INTEGER=36248]="RGB_INTELine truncated
`)>=0)return!1;return!0}function Oe(ue,fe){var nt;if(ue.indent===" ")nt=" ";else if(typeof ue.indent=="number"&&ue.indent>0)nt=C.call(Array(ue.indent+1)," ");else return null;return{base:nt,prev:C.call(Array(fe+1),nt)}}function ot(ue,fe){if(ue.length===0)return"";var nt=`
`+fe.prev+fe.base;return nt+C.call(ue,","+nt)+`
`+fe.prev}function Te(ue,fe){var nt=ce(ue),mt=[];if(nt){mt.length=ue.length;for(var lt=0;lt<ue.length;lt++)mt[lt]=G(ue,lt)?fe(ue[lt],ue):""}var ct=typeof I=="function"?I(ue):[],Kn;if($){Kn={};for(var _i=0;_i<ct.length;_i++)Kn["$"+ct[_i]]=ct[_i]}for(var wn in ue)G(ue,wn)&&(nt&&String(Number(wn))===wn&&wn<ue.length||$&&Kn["$"+wn]instanceof Symbol||(E.call(/[^\w$]/,wn)?mt.push(fe(wn,ue)+": "+fe(ue[wn],ue)):mt.push(wn+": "+fe(ue[wn],ue))));if(typeof I=="function")for(var gi=0;gi<ct.length;gi++)B.call(ue,ct[gi])&&mt.push("["+fe(ct[gi])+"]: "+fe(ue[ct[gi]],ue));return mt}return Gh}var Wh,_b;function DP(){if(_b)return Wh;_b=1;var i=oh(),e=il(),t=function(a,c,l){for(var d=a,u;(u=d.next)!=null;d=u)if(u.key===c)return d.next=u.next,l||(u.next=a.next,a.next=u),u},n=function(a,c){if(a){var l=t(a,c);return l&&l.value}},s=function(a,c,l){var d=t(a,c);d?d.value=l:a.next={key:c,next:a.next,value:l}},r=function(a,c){return a?!!t(a,c):!1},o=function(a,c){if(a)return t(a,c,!0)};return Wh=function(){var c,l={assert:function(d){if(!l.has(d))throw new e("Side channel does not contain "+i(d))},delete:function(d){var u=o(c,d);return u&&c&&!c.next&&(c=void 0),!!u},get:function(d){return n(c,d)},has:function(d){return r(c,d)},set:function(d,u){c||(c={next:void 0}),s(c,d,u)}};return l},Wh}var qh,Mb;function xw(){return Mb||(Mb=1,qh=Object),qh}var Kh,Pb;function OP(){return Pb||(Pb=1,Kh=Error),Kh}var Jh,kb;function NP(){return kb||(kb=1,Jh=EvalError),Jh}var Zh,Ib;function $P(){return Ib||(Ib=1,Zh=RangeError),Zh}var Qh,Rb;function BP(){return Rb||(Rb=1,Qh=ReferenceError),Qh}var ef,Fb;function UP(){return Fb||(Fb=1,ef=SyntaxError),ef}var tf,Lb;function VP(){return Lb||(Lb=1,tf=URIError),tf}var nf,Db;function XP(){return Db||(Db=1,nf=Math.abs),nf}var sf,Ob;function YP(){return Ob||(Ob=1,sf=Math.floor),sf}var rf,Nb;function zP(){return Nb||(Nb=1,rf=Math.max),rf}var of,$b;function jP(){return $b||($b=1,of=Math.min),of}var af,Bb;function HP(){return Bb||(Bb=1,af=Math.pow),af}var lf,Ub;function GP(){return Ub||(Ub=1,lf=Math.round),lf}var cf,Vb;function WP(){return Vb||(Vb=1,cf=Number.isNaN||function(e){return e!==e}),cf}var df,Xb;function qP(){if(Xb)return df;Xb=1;var i=WP();return df=function(t){return i(t)||t===0?t:t<0?-1:1},df}var uf,Yb;function KP(){return Yb||(Yb=1,uf=Object.getOwnPropertyDescriptor),uf}var hf,zb;function ww(){if(zb)return hf;zb=1;var i=KP();if(i)try{i([],"length")}catch{i=null}return hf=i,hf}var ff,jb;function Sw(){if(jb)return ff;jb=1;var i=Object.defineProperty||!1;if(i)try{i({},"a",{value:1})}catch{i=!1}return ff=i,ff}var pf,Hb;function JP(){return Hb||(Hb=1,pf=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var s=42;e[t]=s;for(var r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==s||a.enumerable!==!0)return!1}return!0}),pf}var mf,Gb;function ZP(){if(Gb)return mf;Gb=1;var i=typeof Symbol<"u"&&Symbol,e=JP();return mf=function(){return typeof i!="function"||typeof Symbol!="function"||typeof i("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},mf}var gf,Wb;function Cw(){return Wb||(Wb=1,gf=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),gf}var vf,qb;function Aw(){if(qb)return vf;qb=1;var i=xw();return vf=i.getPrototypeOf||null,vf}var bf,Kb;function QP(){if(Kb)return bf;Kb=1;var i="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",s=function(c,l){for(var d=[],u=0;u<c.length;u+=1)d[u]=c[u];for(var h=0;h<l.length;h+=1)d[h+c.length]=l[h];return d},r=function(c,l){for(var d=[],u=l,h=0;u<c.length;u+=1,h+=1)d[h]=c[u];return d},o=function(a,c){for(var l="",d=0;d<a.length;d+=1)l+=a[d],d+1<a.length&&(l+=c);return l};return bf=function(c){var l=this;if(typeof l!="function"||e.apply(l)!==n)throw new TypeError(i+l);for(var d=r(arguments,1),u,h=function(){if(this instanceof u){var v=l.apply(this,s(d,arguments));return Object(v)===v?v:this}return l.apply(c,s(d,arguments))},f=t(0,l.length-d.length),p=[],m=0;m<f;m++)p[m]="$"+m;if(u=Function("binder","return function ("+o(p,",")+"){ return binder.apply(this,arguments); }")(h),l.prototype){var g=function(){};g.prototype=l.prototype,u.prototype=new g,g.prototype=null}return u},bf}var yf,Jb;function ah(){if(Jb)return yf;Jb=1;var i=QP();return yf=Function.prototype.bind||i,yf}var xf,Zb;function Fg(){return Zb||(Zb=1,xf=Function.prototype.call),xf}var wf,Qb;function Tw(){return Qb||(Qb=1,wf=Function.pro Line truncated
`+fe.prev}function Te(ue,fe){var nt=ce(ue),mt=[];if(nt){mt.length=ue.length;for(var lt=0;lt<ue.length;lt++)mt[lt]=G(ue,lt)?fe(ue[lt],ue):""}var ct=typeof I=="function"?I(ue):[],Kn;if($){Kn={};for(var _i=0;_i<ct.length;_i++)Kn["$"+ct[_i]]=ct[_i]}for(var wn in ue)G(ue,wn)&&(nt&&String(Number(wn))===wn&&wn<ue.length||$&&Kn["$"+wn]instanceof Symbol||(E.call(/[^\w$]/,wn)?mt.push(fe(wn,ue)+": "+fe(ue[wn],ue)):mt.push(wn+": "+fe(ue[wn],ue))));if(typeof I=="function")for(var vi=0;vi<ct.length;vi++)B.call(ue,ct[vi])&&mt.push("["+fe(ct[vi])+"]: "+fe(ue[ct[vi]],ue));return mt}return Gh}var Wh,_b;function DP(){if(_b)return Wh;_b=1;var i=oh(),e=il(),t=function(a,c,l){for(var d=a,u;(u=d.next)!=null;d=u)if(u.key===c)return d.next=u.next,l||(u.next=a.next,a.next=u),u},n=function(a,c){if(a){var l=t(a,c);return l&&l.value}},s=function(a,c,l){var d=t(a,c);d?d.value=l:a.next={key:c,next:a.next,value:l}},r=function(a,c){return a?!!t(a,c):!1},o=function(a,c){if(a)return t(a,c,!0)};return Wh=function(){var c,l={assert:function(d){if(!l.has(d))throw new e("Side channel does not contain "+i(d))},delete:function(d){var u=o(c,d);return u&&c&&!c.next&&(c=void 0),!!u},get:function(d){return n(c,d)},has:function(d){return r(c,d)},set:function(d,u){c||(c={next:void 0}),s(c,d,u)}};return l},Wh}var qh,Mb;function xw(){return Mb||(Mb=1,qh=Object),qh}var Kh,Pb;function OP(){return Pb||(Pb=1,Kh=Error),Kh}var Jh,kb;function NP(){return kb||(kb=1,Jh=EvalError),Jh}var Zh,Ib;function $P(){return Ib||(Ib=1,Zh=RangeError),Zh}var Qh,Rb;function BP(){return Rb||(Rb=1,Qh=ReferenceError),Qh}var ef,Fb;function UP(){return Fb||(Fb=1,ef=SyntaxError),ef}var tf,Lb;function VP(){return Lb||(Lb=1,tf=URIError),tf}var nf,Db;function XP(){return Db||(Db=1,nf=Math.abs),nf}var sf,Ob;function YP(){return Ob||(Ob=1,sf=Math.floor),sf}var rf,Nb;function zP(){return Nb||(Nb=1,rf=Math.max),rf}var of,$b;function jP(){return $b||($b=1,of=Math.min),of}var af,Bb;function HP(){return Bb||(Bb=1,af=Math.pow),af}var lf,Ub;function GP(){return Ub||(Ub=1,lf=Math.round),lf}var cf,Vb;function WP(){return Vb||(Vb=1,cf=Number.isNaN||function(e){return e!==e}),cf}var df,Xb;function qP(){if(Xb)return df;Xb=1;var i=WP();return df=function(t){return i(t)||t===0?t:t<0?-1:1},df}var uf,Yb;function KP(){return Yb||(Yb=1,uf=Object.getOwnPropertyDescriptor),uf}var hf,zb;function ww(){if(zb)return hf;zb=1;var i=KP();if(i)try{i([],"length")}catch{i=null}return hf=i,hf}var ff,jb;function Sw(){if(jb)return ff;jb=1;var i=Object.defineProperty||!1;if(i)try{i({},"a",{value:1})}catch{i=!1}return ff=i,ff}var pf,Hb;function JP(){return Hb||(Hb=1,pf=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var s=42;e[t]=s;for(var r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==s||a.enumerable!==!0)return!1}return!0}),pf}var mf,Gb;function ZP(){if(Gb)return mf;Gb=1;var i=typeof Symbol<"u"&&Symbol,e=JP();return mf=function(){return typeof i!="function"||typeof Symbol!="function"||typeof i("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},mf}var gf,Wb;function Cw(){return Wb||(Wb=1,gf=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),gf}var vf,qb;function Aw(){if(qb)return vf;qb=1;var i=xw();return vf=i.getPrototypeOf||null,vf}var bf,Kb;function QP(){if(Kb)return bf;Kb=1;var i="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",s=function(c,l){for(var d=[],u=0;u<c.length;u+=1)d[u]=c[u];for(var h=0;h<l.length;h+=1)d[h+c.length]=l[h];return d},r=function(c,l){for(var d=[],u=l,h=0;u<c.length;u+=1,h+=1)d[h]=c[u];return d},o=function(a,c){for(var l="",d=0;d<a.length;d+=1)l+=a[d],d+1<a.length&&(l+=c);return l};return bf=function(c){var l=this;if(typeof l!="function"||e.apply(l)!==n)throw new TypeError(i+l);for(var d=r(arguments,1),u,h=function(){if(this instanceof u){var v=l.apply(this,s(d,arguments));return Object(v)===v?v:this}return l.apply(c,s(d,arguments))},f=t(0,l.length-d.length),p=[],m=0;m<f;m++)p[m]="$"+m;if(u=Function("binder","return function ("+o(p,",")+"){ return binder.apply(this,arguments); }")(h),l.prototype){var g=function(){};g.prototype=l.prototype,u.prototype=new g,g.prototype=null}return u},bf}var yf,Jb;function ah(){if(Jb)return yf;Jb=1;var i=QP();return yf=Function.prototype.bind||i,yf}var xf,Zb;function Fg(){return Zb||(Zb=1,xf=Function.prototype.call),xf}var wf,Qb;function Tw(){return Qb||(Qb=1,wf=Function.pro Line truncated
`," "],o=["{","}","|","\\","^","`"].concat(r),a=["'"].concat(o),c=["%","/","?",";","#"].concat(a),l=["/","?","#"],d=255,u=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},p={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=lk();function v(T,E,S){if(T&&typeof T=="object"&&T instanceof e)return T;var C=new e;return C.parse(T,E,S),C}e.prototype.parse=function(T,E,S){if(typeof T!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof T);var C=T.indexOf("?"),M=C!==-1&&C<T.indexOf("#")?"?":"#",k=T.split(M),P=/\\/g;k[0]=k[0].replace(P,"/"),T=k.join(M);var I=T;if(I=I.trim(),!S&&T.split("#").length===1){var D=s.exec(I);if(D)return this.path=I,this.href=I,this.pathname=D[1],D[2]?(this.search=D[2],E?this.query=g.parse(this.search.substr(1)):this.query=this.search.substr(1)):E&&(this.search="",this.query={}),this}var $=t.exec(I);if($){$=$[0];var j=$.toLowerCase();this.protocol=j,I=I.substr($.length)}if(S||$||I.match(/^\/\/[^@/]+@[^@/]+/)){var B=I.substr(0,2)==="//";B&&!($&&p[$])&&(I=I.substr(2),this.slashes=!0)}if(!p[$]&&(B||$&&!m[$])){for(var Y=-1,U=0;U<l.length;U++){var O=I.indexOf(l[U]);O!==-1&&(Y===-1||O<Y)&&(Y=O)}var L,R;Y===-1?R=I.lastIndexOf("@"):R=I.lastIndexOf("@",Y),R!==-1&&(L=I.slice(0,R),I=I.slice(R+1),this.auth=decodeURIComponent(L)),Y=-1;for(var U=0;U<c.length;U++){var O=I.indexOf(c[U]);O!==-1&&(Y===-1||O<Y)&&(Y=O)}Y===-1&&(Y=I.length),this.host=I.slice(0,Y),I=I.slice(Y),this.parseHost(),this.hostname=this.hostname||"";var X=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!X)for(var z=this.hostname.split(/\./),U=0,K=z.length;U<K;U++){var Z=z[U];if(Z&&!Z.match(u)){for(var ae="",ce=0,ve=Z.length;ce<ve;ce++)Z.charCodeAt(ce)>127?ae+="x":ae+=Z[ce];if(!ae.match(u)){var we=z.slice(0,U),re=z.slice(U+1),Ee=Z.match(h);Ee&&(we.push(Ee[1]),re.unshift(Ee[2])),re.length&&(I="/"+re.join(".")+I),this.hostname=we.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),X||(this.hostname=i.toASCII(this.hostname));var q=this.port?":"+this.port:"",J=this.hostname||"";this.host=J+q,this.href+=this.host,X&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),I[0]!=="/"&&(I="/"+I))}if(!f[j])for(var U=0,K=a.length;U<K;U++){var ie=a[U];if(I.indexOf(ie)!==-1){var se=encodeURIComponent(ie);se===ie&&(se=escape(ie)),I=I.split(ie).join(se)}}var H=I.indexOf("#");H!==-1&&(this.hash=I.substr(H),I=I.slice(0,H));var G=I.indexOf("?");if(G!==-1?(this.search=I.substr(G),this.query=I.substr(G+1),E&&(this.query=g.parse(this.query)),I=I.slice(0,G)):E&&(this.search="",this.query={}),I&&(this.pathname=I),m[j]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var q=this.pathname||"",N=this.search||"";this.path=q+N}return this.href=this.format(),this};function y(T){return typeof T=="string"&&(T=v(T)),T instanceof e?T.format():e.prototype.format.call(T)}e.prototype.format=function(){var T=this.auth||"";T&&(T=encodeURIComponent(T),T=T.replace(/%3A/i,":"),T+="@");var E=this.protocol||"",S=this.pathname||"",C=this.hash||"",M=!1,k="";this.host?M=T+this.host:this.hostname&&(M=T+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(M+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(k=g.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var P=this.search||k&&"?"+k||"";return E&&E.substr(-1)!==":"&&(E+=":"),this.slashes||(!E||m[E])&&M!==!1?(M="//"+(M||""),S&&S.charAt(0)!=="/"&&(S="/"+S)):M||(M=""),C&&C.charAt(0)!=="#"&&(C="#"+C),P&&P.charAt(0)!=="?"&&(P="?"+P),S=S.replace(/[?#]/g,function(I){return encodeURIComponent(I)}),P=P.replace("#","%23"),E+M+S+P+C};function b(T,E){return v(T,!1,!0).resolve(E)}e.prototype.resolve=function(T){return this.resolveObject(v(T,!1,!0)).format()};function x(T,E){return T?v(T,!1,!0).resolveObject(E):E}return e.prototype.resolveObject=function(T){if(typeof T=="string"){var E=new e;E.parse(T,!1,!0),T=E}for(var S=new e,C=Object.keys(this),M=0;M<C.length;M++){var k=C[M];S[k]=this[k]}if(S.hash=T.hash,T.href==="")return S.href=S.format(),S;if(T.slashes&&!T.protocol){for(var P=Object.keys(T),I=0;I<P.length;I++){var D=P[I];D!=="protocol"&&(S[D]=T[D])}return m[S.protocol]&&S.hostname&&!S.pathname&&(S.pathname="/",S.path=S.pathname),S.href=S.format(),S}if(T.protocol&&T.protocol!==S.protocol){if(!m[T.protocol]){for(var $=Object.keys(T),j=0;j<$.length;j++){var B=$[j];S[B]=T[B]}return S.href=S.format(),S}if(S.protocol=T.protocol,!T.host&&!p[T.protocol]){for(var K=(T.pathname||"").split("/");K.length&&!(T.host=K.shift()););T.host||(T.host=""),T.hostname||(T.hostname=""),K[0]!==""&&K.unshift(""),K.length<2&&K.unshift(""),S.pathname=K.join("/")}else S.pathname=T.pathname;if(S.search=T.search,S.query=T.query,S.host=T.host||"",S.auth=T.auth,S.hostname=T.hostname||T.host,S.port=T.port,S.pathname||S.search){var Line truncated
Deprecated since v${i}`):(n=n.split(`
`).splice(t).join(`
`),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",`${e}
Deprecated since v${i}`),console.warn(n),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",`${e}
Deprecated since v${i}`),console.warn(n))),v0[e]=!0}function Xi(i){if(typeof i!="string")throw new TypeError(`Path must be a string. Received ${JSON.stringify(i)}`)}function gl(i){return i.split("?")[0].split("#")[0]}function dk(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function uk(i,e,t){return i.replace(new RegExp(dk(e),"g"),t)}function hk(i,e){let t="",n=0,s=-1,r=0,o=-1;for(let a=0;a<=i.length;++a){if(a<i.length)o=i.charCodeAt(a);else{if(o===47)break;o=47}if(o===47){if(!(s===a-1||r===1))if(s!==a-1&&r===2){if(t.length<2||n!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){const c=t.lastIndexOf("/");if(c!==t.length-1){c===-1?(t="",n=0):(t=t.slice(0,c),n=t.length-1-t.lastIndexOf("/")),s=a,r=0;continue}}else if(t.length===2||t.length===1){t="",n=0,s=a,r=0;continue}}}else t.length>0?t+=`/${i.slice(s+1,a)}`:t=i.slice(s+1,a),n=a-s-1;s=a,r=0}else o===46&&r!==-1?++r:r=-1}return t}const pn={toPosix(i){return uk(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){Xi(i),i=this.toPosix(i);const e=/^file:\/\/\//.exec(i);if(e)return e[0];const t=/^[^/:]+:\/{0,2}/.exec(i);return t?t[0]:""},toAbsolute(i,e,t){if(Xi(i),this.isDataUrl(i)||this.isBlobUrl(i))return i;const n=gl(this.toPosix(e??Xe.ADAPTER.getBaseUrl())),s=gl(this.toPosix(t??this.rootname(n)));return i=this.toPosix(i),i.startsWith("/")?pn.join(s,i.slice(1)):this.isAbsolute(i)?i:this.join(n,i)},normalize(i){if(Xi(i),i.length===0)return".";if(this.isDataUrl(i)||this.isBlobUrl(i))return i;i=this.toPosix(i);let e="";const t=i.startsWith("/");this.hasProtocol(i)&&(e=this.rootname(i),i=i.slice(e.length));const n=i.endsWith("/");return i=hk(i),i.length>0&&n&&(i+="/"),t?`/${i}`:e+i},isAbsolute(i){return Xi(i),i=this.toPosix(i),this.hasProtocol(i)?!0:i.startsWith("/")},join(...i){if(i.length===0)return".";let e;for(let t=0;t<i.length;++t){const n=i[t];if(Xi(n),n.length>0)if(e===void 0)e=n;else{const s=i[t-1]??"";this.joinExtensions.includes(this.extname(s).toLowerCase())?e+=`/../${n}`:e+=`/${n}`}}return e===void 0?".":this.normalize(e)},dirname(i){if(Xi(i),i.length===0)return".";i=this.toPosix(i);let e=i.charCodeAt(0);const t=e===47;let n=-1,s=!0;const r=this.getProtocol(i),o=i;i=i.slice(r.length);for(let a=i.length-1;a>=1;--a)if(e=i.charCodeAt(a),e===47){if(!s){n=a;break}}else s=!1;return n===-1?t?"/":this.isUrl(o)?r+i:r:t&&n===1?"//":r+i.slice(0,n)},rootname(i){Xi(i),i=this.toPosix(i);let e="";if(i.startsWith("/")?e="/":e=this.getProtocol(i),this.isUrl(i)){const t=i.indexOf("/",e.length);t!==-1?e=i.slice(0,t):e=i,e.endsWith("/")||(e+="/")}return e},basename(i,e){Xi(i),e&&Xi(e),i=gl(this.toPosix(i));let t=0,n=-1,s=!0,r;if(e!==void 0&&e.length>0&&e.length<=i.length){if(e.length===i.length&&e===i)return"";let o=e.length-1,a=-1;for(r=i.length-1;r>=0;--r){const c=i.charCodeAt(r);if(c===47){if(!s){t=r+1;break}}else a===-1&&(s=!1,a=r+1),o>=0&&(c===e.charCodeAt(o)?--o===-1&&(n=r):(o=-1,n=a))}return t===n?n=a:n===-1&&(n=i.length),i.slice(t,n)}for(r=i.length-1;r>=0;--r)if(i.charCodeAt(r)===47){if(!s){t=r+1;break}}else n===-1&&(s=!1,n=r+1);return n===-1?"":i.slice(t,n)},extname(i){Xi(i),i=gl(this.toPosix(i));let e=-1,t=0,n=-1,s=!0,r=0;for(let o=i.length-1;o>=0;--o){const a=i.charCodeAt(o);if(a===47){if(!s){t=o+1;break}continue}n===-1&&(s=!1,n=o+1),a===46?e===-1?e=o:r!==1&&(r=1):e!==-1&&(r=-1)}return e===-1||n===-1||r===0||r===1&&e===n-1&&e===t+1?"":i.slice(e,n)},parse(i){Xi(i);const e={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return e;i=gl(this.toPosix(i));let t=i.charCodeAt(0);const n=this.isAbsolute(i);let s;e.root=this.rootname(i),n||this.hasProtocol(i)?s=1:s=0;let r=-1,o=0,a=-1,c=!0,l=i.length-1,d=0;for(;l>=s;--l){if(t=i.charCodeAt(l),t===47){if(!c){o=l+1;break}continue}a===-1&&(c=!1,a=l+1),t===46?r===-1?r=l:d!==1&&(d=1):r!==-1&&(d=-1)}return r===-1||a===-1||d===0||d===1&&r===a-1&&r===o+1?a!==-1&&(o===0&&n?e.base=e.name=i.slice(1,a):e.base=e.name=i.slice(o,a)):(o===0&&n?(e.name=i.slice(1,r),e.base=i.slice(1,a)):(e.name=i.slice(o,r),e.base=i.slice(o,a)),e.ext=i.slice(r,a)),e.dir=this.dirname(i),e},sep:"/",delimiter:":",joinExtensions:[".html"]};let $f;async function fk(){return $f??($f=(async()=>{var r;const i=document.createElement("canvas").getContext("webgl");if(!i)return Fn.UNPACK;const e=await new Promise(o=>{const a=document.createElement("video");a.onloadeddata=()=>o(a),a.onerror=()=>o(null),a.autoplay=!1,a.crossOrigin="anonymous",a.preload="auto",a.src="data:video/webm;base64,GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQJChYECGFOAZwEAAAAAAAHTEU2bdLpNu4tTq4QVSalmU6yBoU27i1OrhBZUrmtTrIHGTbuMU6uEElTDZ1OsggEXTbuMU6uEHFO7a1OsggG97AEAAAAAAABZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA Line truncated
Deprecated since v${i}`),console.warn(n))),v0[e]=!0}function Xi(i){if(typeof i!="string")throw new TypeError(`Path must be a string. Received ${JSON.stringify(i)}`)}function gl(i){return i.split("?")[0].split("#")[0]}function dk(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function uk(i,e,t){return i.replace(new RegExp(dk(e),"g"),t)}function hk(i,e){let t="",n=0,s=-1,r=0,o=-1;for(let a=0;a<=i.length;++a){if(a<i.length)o=i.charCodeAt(a);else{if(o===47)break;o=47}if(o===47){if(!(s===a-1||r===1))if(s!==a-1&&r===2){if(t.length<2||n!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){const c=t.lastIndexOf("/");if(c!==t.length-1){c===-1?(t="",n=0):(t=t.slice(0,c),n=t.length-1-t.lastIndexOf("/")),s=a,r=0;continue}}else if(t.length===2||t.length===1){t="",n=0,s=a,r=0;continue}}}else t.length>0?t+=`/${i.slice(s+1,a)}`:t=i.slice(s+1,a),n=a-s-1;s=a,r=0}else o===46&&r!==-1?++r:r=-1}return t}const pn={toPosix(i){return uk(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){Xi(i),i=this.toPosix(i);const e=/^file:\/\/\//.exec(i);if(e)return e[0];const t=/^[^/:]+:\/{0,2}/.exec(i);return t?t[0]:""},toAbsolute(i,e,t){if(Xi(i),this.isDataUrl(i)||this.isBlobUrl(i))return i;const n=gl(this.toPosix(e??Xe.ADAPTER.getBaseUrl())),s=gl(this.toPosix(t??this.rootname(n)));return i=this.toPosix(i),i.startsWith("/")?pn.join(s,i.slice(1)):this.isAbsolute(i)?i:this.join(n,i)},normalize(i){if(Xi(i),i.length===0)return".";if(this.isDataUrl(i)||this.isBlobUrl(i))return i;i=this.toPosix(i);let e="";const t=i.startsWith("/");this.hasProtocol(i)&&(e=this.rootname(i),i=i.slice(e.length));const n=i.endsWith("/");return i=hk(i),i.length>0&&n&&(i+="/"),t?`/${i}`:e+i},isAbsolute(i){return Xi(i),i=this.toPosix(i),this.hasProtocol(i)?!0:i.startsWith("/")},join(...i){if(i.length===0)return".";let e;for(let t=0;t<i.length;++t){const n=i[t];if(Xi(n),n.length>0)if(e===void 0)e=n;else{const s=i[t-1]??"";this.joinExtensions.includes(this.extname(s).toLowerCase())?e+=`/../${n}`:e+=`/${n}`}}return e===void 0?".":this.normalize(e)},dirname(i){if(Xi(i),i.length===0)return".";i=this.toPosix(i);let e=i.charCodeAt(0);const t=e===47;let n=-1,s=!0;const r=this.getProtocol(i),o=i;i=i.slice(r.length);for(let a=i.length-1;a>=1;--a)if(e=i.charCodeAt(a),e===47){if(!s){n=a;break}}else s=!1;return n===-1?t?"/":this.isUrl(o)?r+i:r:t&&n===1?"//":r+i.slice(0,n)},rootname(i){Xi(i),i=this.toPosix(i);let e="";if(i.startsWith("/")?e="/":e=this.getProtocol(i),this.isUrl(i)){const t=i.indexOf("/",e.length);t!==-1?e=i.slice(0,t):e=i,e.endsWith("/")||(e+="/")}return e},basename(i,e){Xi(i),e&&Xi(e),i=gl(this.toPosix(i));let t=0,n=-1,s=!0,r;if(e!==void 0&&e.length>0&&e.length<=i.length){if(e.length===i.length&&e===i)return"";let o=e.length-1,a=-1;for(r=i.length-1;r>=0;--r){const c=i.charCodeAt(r);if(c===47){if(!s){t=r+1;break}}else a===-1&&(s=!1,a=r+1),o>=0&&(c===e.charCodeAt(o)?--o===-1&&(n=r):(o=-1,n=a))}return t===n?n=a:n===-1&&(n=i.length),i.slice(t,n)}for(r=i.length-1;r>=0;--r)if(i.charCodeAt(r)===47){if(!s){t=r+1;break}}else n===-1&&(s=!1,n=r+1);return n===-1?"":i.slice(t,n)},extname(i){Xi(i),i=gl(this.toPosix(i));let e=-1,t=0,n=-1,s=!0,r=0;for(let o=i.length-1;o>=0;--o){const a=i.charCodeAt(o);if(a===47){if(!s){t=o+1;break}continue}n===-1&&(s=!1,n=o+1),a===46?e===-1?e=o:r!==1&&(r=1):e!==-1&&(r=-1)}return e===-1||n===-1||r===0||r===1&&e===n-1&&e===t+1?"":i.slice(e,n)},parse(i){Xi(i);const e={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return e;i=gl(this.toPosix(i));let t=i.charCodeAt(0);const n=this.isAbsolute(i);let s;e.root=this.rootname(i),n||this.hasProtocol(i)?s=1:s=0;let r=-1,o=0,a=-1,c=!0,l=i.length-1,d=0;for(;l>=s;--l){if(t=i.charCodeAt(l),t===47){if(!c){o=l+1;break}continue}a===-1&&(c=!1,a=l+1),t===46?r===-1?r=l:d!==1&&(d=1):r!==-1&&(d=-1)}return r===-1||a===-1||d===0||d===1&&r===a-1&&r===o+1?a!==-1&&(o===0&&n?e.base=e.name=i.slice(1,a):e.base=e.name=i.slice(o,a)):(o===0&&n?(e.name=i.slice(1,r),e.base=i.slice(1,a)):(e.name=i.slice(o,r),e.base=i.slice(o,a)),e.ext=i.slice(r,a)),e.dir=this.dirname(i),e},sep:"/",delimiter:":",joinExtensions:[".html"]};let $f;async function fk(){return $f??($f=(async()=>{var r;const i=document.createElement("canvas").getContext("webgl");if(!i)return Fn.UNPACK;const e=await new Promise(o=>{const a=document.createElement("video");a.onloadeddata=()=>o(a),a.onerror=()=>o(null),a.autoplay=!1,a.crossOrigin="anonymous",a.preload="auto",a.src="data:video/webm;base64,GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQJChYECGFOAZwEAAAAAAAHTEU2bdLpNu4tTq4QVSalmU6yBoU27i1OrhBZUrmtTrIHGTbuMU6uEElTDZ1OsggEXTbuMU6uEHFO7a1OsggG97AEAAAAAAABZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA Line truncated
`);function Lk(i){let e="";for(let t=0;t<i;++t)t>0&&(e+=`
else `),t<i-1&&(e+=`if(test == ${t}.0){}`);return e}function Dk(i,e){if(i===0)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");const t=e.createShader(e.FRAGMENT_SHADER);for(;;){const n=Fk.replace(/%forloop%/gi,Lk(i));if(e.shaderSource(t,n),e.compileShader(t),!e.getShaderParameter(t,e.COMPILE_STATUS))i=i/2|0;else break}return i}const Yf=0,zf=1,jf=2,Hf=3,Gf=4,Wf=5;class $s{constructor(){this.data=0,this.blendMode=Qe.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}get blend(){return!!(this.data&1<<Yf)}set blend(e){!!(this.data&1<<Yf)!==e&&(this.data^=1<<Yf)}get offsets(){return!!(this.data&1<<zf)}set offsets(e){!!(this.data&1<<zf)!==e&&(this.data^=1<<zf)}get culling(){return!!(this.data&1<<jf)}set culling(e){!!(this.data&1<<jf)!==e&&(this.data^=1<<jf)}get depthTest(){return!!(this.data&1<<Hf)}set depthTest(e){!!(this.data&1<<Hf)!==e&&(this.data^=1<<Hf)}get depthMask(){return!!(this.data&1<<Wf)}set depthMask(e){!!(this.data&1<<Wf)!==e&&(this.data^=1<<Wf)}get clockwiseFrontFace(){return!!(this.data&1<<Gf)}set clockwiseFrontFace(e){!!(this.data&1<<Gf)!==e&&(this.data^=1<<Gf)}get blendMode(){return this._blendMode}set blendMode(e){this.blend=e!==Qe.NONE,this._blendMode=e}get polygonOffset(){return this._polygonOffset}set polygonOffset(e){this.offsets=!!e,this._polygonOffset=e}static for2d(){const e=new $s;return e.depthTest=!1,e.blend=!0,e}}$s.prototype.toString=function(){return`[@pixi/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`};const Kp=[];function Nw(i,e){if(!i)return null;let t="";if(typeof i=="string"){const n=/\.(\w{3,4})(?:$|\?|#)/i.exec(i);n&&(t=n[1].toLowerCase())}for(let n=Kp.length-1;n>=0;--n){const s=Kp[n];if(s.test&&s.test(i,t))return new s(i,e)}throw new Error("Unrecognized source type to auto-detect Resource")}class ns{constructor(e){this.items=[],this._name=e,this._aliasCount=0}emit(e,t,n,s,r,o,a,c){if(arguments.length>8)throw new Error("max arguments reached");const{name:l,items:d}=this;this._aliasCount++;for(let u=0,h=d.length;u<h;u++)d[u][l](e,t,n,s,r,o,a,c);return d===this.items&&this._aliasCount--,this}ensureNonAliasedItems(){this._aliasCount>0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))}add(e){return e[this._name]&&(this.ensureNonAliasedItems(),this.remove(e),this.items.push(e)),this}remove(e){const t=this.items.indexOf(e);return t!==-1&&(this.ensureNonAliasedItems(),this.items.splice(t,1)),this}contains(e){return this.items.includes(e)}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(ns.prototype,{dispatch:{value:ns.prototype.emit},run:{value:ns.prototype.emit}});class rc{constructor(e=0,t=0){this._width=e,this._height=t,this.destroyed=!1,this.internal=!1,this.onResize=new ns("setRealSize"),this.onUpdate=new ns("update"),this.onError=new ns("onError")}bind(e){this.onResize.add(e),this.onUpdate.add(e),this.onError.add(e),(this._width||this._height)&&this.onResize.emit(this._width,this._height)}unbind(e){this.onResize.remove(e),this.onUpdate.remove(e),this.onError.remove(e)}resize(e,t){(e!==this._width||t!==this._height)&&(this._width=e,this._height=t,this.onResize.emit(e,t))}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(e,t,n){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(e,t){return!1}}class lh extends rc{constructor(e,t){const{width:n,height:s}=t||{};if(!n||!s)throw new Error("BufferResource width or height invalid");super(n,s),this.data=e,this.unpackAlignment=t.unpackAlignment??4}upload(e,t,n){const s=e.gl;s.pixelStorei(s.UNPACK_ALIGNMENT,this.unpackAlignment),s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.alphaMode===Fn.UNPACK);const r=t.realWidth,o=t.realHeight;return n.width===r&&n.height===o?s.texSubImage2D(t.target,0,0,0,r,o,t.format,n.type,this.data):(n.width=r,n.height=o,s.texImage2D(t.target,0,n.internalFormat,r,o,0,t.format,n.type,this.data)),!0}dispose(){this.data=null}static test(e){return e===null||e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array}}const Ok={scaleMode:Ki.NEAREST,alphaMode:Fn.NPM},Jp=class va extends Cc{constructor(e=null,t=null){super(),t=Object.assign({},va.defaultOptions,t);const{alphaMode:n,mipmap:s,anisotropicLevel:r,scaleMode:o,width:a,height:c,wrapMode:l,format:d,type:u,target:h,resolution: Line truncated
else `),t<i-1&&(e+=`if(test == ${t}.0){}`);return e}function Dk(i,e){if(i===0)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");const t=e.createShader(e.FRAGMENT_SHADER);for(;;){const n=Fk.replace(/%forloop%/gi,Lk(i));if(e.shaderSource(t,n),e.compileShader(t),!e.getShaderParameter(t,e.COMPILE_STATUS))i=i/2|0;else break}return i}const Yf=0,zf=1,jf=2,Hf=3,Gf=4,Wf=5;class $s{constructor(){this.data=0,this.blendMode=Qe.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}get blend(){return!!(this.data&1<<Yf)}set blend(e){!!(this.data&1<<Yf)!==e&&(this.data^=1<<Yf)}get offsets(){return!!(this.data&1<<zf)}set offsets(e){!!(this.data&1<<zf)!==e&&(this.data^=1<<zf)}get culling(){return!!(this.data&1<<jf)}set culling(e){!!(this.data&1<<jf)!==e&&(this.data^=1<<jf)}get depthTest(){return!!(this.data&1<<Hf)}set depthTest(e){!!(this.data&1<<Hf)!==e&&(this.data^=1<<Hf)}get depthMask(){return!!(this.data&1<<Wf)}set depthMask(e){!!(this.data&1<<Wf)!==e&&(this.data^=1<<Wf)}get clockwiseFrontFace(){return!!(this.data&1<<Gf)}set clockwiseFrontFace(e){!!(this.data&1<<Gf)!==e&&(this.data^=1<<Gf)}get blendMode(){return this._blendMode}set blendMode(e){this.blend=e!==Qe.NONE,this._blendMode=e}get polygonOffset(){return this._polygonOffset}set polygonOffset(e){this.offsets=!!e,this._polygonOffset=e}static for2d(){const e=new $s;return e.depthTest=!1,e.blend=!0,e}}$s.prototype.toString=function(){return`[@pixi/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`};const Kp=[];function Nw(i,e){if(!i)return null;let t="";if(typeof i=="string"){const n=/\.(\w{3,4})(?:$|\?|#)/i.exec(i);n&&(t=n[1].toLowerCase())}for(let n=Kp.length-1;n>=0;--n){const s=Kp[n];if(s.test&&s.test(i,t))return new s(i,e)}throw new Error("Unrecognized source type to auto-detect Resource")}class ns{constructor(e){this.items=[],this._name=e,this._aliasCount=0}emit(e,t,n,s,r,o,a,c){if(arguments.length>8)throw new Error("max arguments reached");const{name:l,items:d}=this;this._aliasCount++;for(let u=0,h=d.length;u<h;u++)d[u][l](e,t,n,s,r,o,a,c);return d===this.items&&this._aliasCount--,this}ensureNonAliasedItems(){this._aliasCount>0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))}add(e){return e[this._name]&&(this.ensureNonAliasedItems(),this.remove(e),this.items.push(e)),this}remove(e){const t=this.items.indexOf(e);return t!==-1&&(this.ensureNonAliasedItems(),this.items.splice(t,1)),this}contains(e){return this.items.includes(e)}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(ns.prototype,{dispatch:{value:ns.prototype.emit},run:{value:ns.prototype.emit}});class rc{constructor(e=0,t=0){this._width=e,this._height=t,this.destroyed=!1,this.internal=!1,this.onResize=new ns("setRealSize"),this.onUpdate=new ns("update"),this.onError=new ns("onError")}bind(e){this.onResize.add(e),this.onUpdate.add(e),this.onError.add(e),(this._width||this._height)&&this.onResize.emit(this._width,this._height)}unbind(e){this.onResize.remove(e),this.onUpdate.remove(e),this.onError.remove(e)}resize(e,t){(e!==this._width||t!==this._height)&&(this._width=e,this._height=t,this.onResize.emit(e,t))}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(e,t,n){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(e,t){return!1}}class lh extends rc{constructor(e,t){const{width:n,height:s}=t||{};if(!n||!s)throw new Error("BufferResource width or height invalid");super(n,s),this.data=e,this.unpackAlignment=t.unpackAlignment??4}upload(e,t,n){const s=e.gl;s.pixelStorei(s.UNPACK_ALIGNMENT,this.unpackAlignment),s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.alphaMode===Fn.UNPACK);const r=t.realWidth,o=t.realHeight;return n.width===r&&n.height===o?s.texSubImage2D(t.target,0,0,0,r,o,t.format,n.type,this.data):(n.width=r,n.height=o,s.texImage2D(t.target,0,n.internalFormat,r,o,0,t.format,n.type,this.data)),!0}dispose(){this.data=null}static test(e){return e===null||e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array}}const Ok={scaleMode:Ki.NEAREST,alphaMode:Fn.NPM},Jp=class ba extends Cc{constructor(e=null,t=null){super(),t=Object.assign({},ba.defaultOptions,t);const{alphaMode:n,mipmap:s,anisotropicLevel:r,scaleMode:o,width:a,height:c,wrapMode:l,format:d,type:u,target:h,resolution: Line truncated
uniform sampler2D uSampler;
@@ -48,7 +48,7 @@ void main(void){
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = aTextureCoord;
}
`;function F0(i,e,t){const n=i.createShader(e);return i.shaderSource(n,t),i.compileShader(n),n}function qf(i){const e=new Array(i);for(let t=0;t<e.length;t++)e[t]=!1;return e}function Uw(i,e){switch(i){case"float":return 0;case"vec2":return new Float32Array(2*e);case"vec3":return new Float32Array(3*e);case"vec4":return new Float32Array(4*e);case"int":case"uint":case"sampler2D":case"sampler2DArray":return 0;case"ivec2":return new Int32Array(2*e);case"ivec3":return new Int32Array(3*e);case"ivec4":return new Int32Array(4*e);case"uvec2":return new Uint32Array(2*e);case"uvec3":return new Uint32Array(3*e);case"uvec4":return new Uint32Array(4*e);case"bool":return!1;case"bvec2":return qf(2*e);case"bvec3":return qf(3*e);case"bvec4":return qf(4*e);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}const La=[{test:i=>i.type==="float"&&i.size===1&&!i.isArray,code:i=>`
`;function F0(i,e,t){const n=i.createShader(e);return i.shaderSource(n,t),i.compileShader(n),n}function qf(i){const e=new Array(i);for(let t=0;t<e.length;t++)e[t]=!1;return e}function Uw(i,e){switch(i){case"float":return 0;case"vec2":return new Float32Array(2*e);case"vec3":return new Float32Array(3*e);case"vec4":return new Float32Array(4*e);case"int":case"uint":case"sampler2D":case"sampler2DArray":return 0;case"ivec2":return new Int32Array(2*e);case"ivec3":return new Int32Array(3*e);case"ivec4":return new Int32Array(4*e);case"uvec2":return new Uint32Array(2*e);case"uvec3":return new Uint32Array(3*e);case"uvec4":return new Uint32Array(4*e);case"bool":return!1;case"bvec2":return qf(2*e);case"bvec3":return qf(3*e);case"bvec4":return qf(4*e);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}const Da=[{test:i=>i.type==="float"&&i.size===1&&!i.isArray,code:i=>`
if(uv["${i}"] !== ud["${i}"].value)
{
ud["${i}"].value = uv["${i}"]
@@ -314,18 +314,18 @@ void main(void){
renderer.shader.syncUniformBufferGroup(uv.${s}, '${s}');
`):t.push(`
renderer.shader.syncUniformGroup(uv.${s}, syncData);
`));continue}const o=i.uniforms[s];let a=!1;for(let c=0;c<La.length;c++)if(La[c].test(r,o)){t.push(La[c].code(s,o)),a=!0;break}if(!a){const c=(r.size===1&&!r.isArray?Gk:Wk)[r.type].replace("location",`ud["${s}"].location`);t.push(`
`));continue}const o=i.uniforms[s];let a=!1;for(let c=0;c<Da.length;c++)if(Da[c].test(r,o)){t.push(Da[c].code(s,o)),a=!0;break}if(!a){const c=(r.size===1&&!r.isArray?Gk:Wk)[r.type].replace("location",`ud["${s}"].location`);t.push(`
cu = ud["${s}"];
cv = cu.value;
v = uv["${s}"];
${c};`)}}return new Function("ud","uv","renderer","syncData",t.join(`
`))}const Vw={};let aa=Vw;function Kk(){if(aa===Vw||aa!=null&&aa.isContextLost()){const i=Xe.ADAPTER.createCanvas();let e;Xe.PREFER_ENV>=Ko.WEBGL2&&(e=i.getContext("webgl2",{})),e||(e=i.getContext("webgl",{})||i.getContext("experimental-webgl",{}),e?e.getExtension("WEBGL_draw_buffers"):e=null),aa=e}return aa}let jc;function Jk(){if(!jc){jc=Di.MEDIUM;const i=Kk();if(i&&i.getShaderPrecisionFormat){const e=i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.HIGH_FLOAT);e&&(jc=e.precision?Di.HIGH:Di.MEDIUM)}}return jc}function L0(i,e){const t=i.getShaderSource(e).split(`
`))}const Vw={};let la=Vw;function Kk(){if(la===Vw||la!=null&&la.isContextLost()){const i=Xe.ADAPTER.createCanvas();let e;Xe.PREFER_ENV>=Jo.WEBGL2&&(e=i.getContext("webgl2",{})),e||(e=i.getContext("webgl",{})||i.getContext("experimental-webgl",{}),e?e.getExtension("WEBGL_draw_buffers"):e=null),la=e}return la}let jc;function Jk(){if(!jc){jc=Di.MEDIUM;const i=Kk();if(i&&i.getShaderPrecisionFormat){const e=i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.HIGH_FLOAT);e&&(jc=e.precision?Di.HIGH:Di.MEDIUM)}}return jc}function L0(i,e){const t=i.getShaderSource(e).split(`
`).map((l,d)=>`${d}: ${l}`),n=i.getShaderInfoLog(e),s=n.split(`
`),r={},o=s.map(l=>parseFloat(l.replace(/^ERROR\: 0\:([\d]+)\:.*$/,"$1"))).filter(l=>l&&!r[l]?(r[l]=!0,!0):!1),a=[""];o.forEach(l=>{t[l-1]=`%c${t[l-1]}%c`,a.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")});const c=t.join(`
`);a[0]=c,console.error(n),console.groupCollapsed("click to view full shader code"),console.warn(...a),console.groupEnd()}function Zk(i,e,t,n){i.getProgramParameter(e,i.LINK_STATUS)||(i.getShaderParameter(t,i.COMPILE_STATUS)||L0(i,t),i.getShaderParameter(n,i.COMPILE_STATUS)||L0(i,n),console.error("PixiJS Error: Could not initialize shader."),i.getProgramInfoLog(e)!==""&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",i.getProgramInfoLog(e)))}const Qk={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 Xw(i){return Qk[i]}let Hc=null;const D0={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 Yw(i,e){if(!Hc){const t=Object.keys(D0);Hc={};for(let n=0;n<t.length;++n){const s=t[n];Hc[i[s]]=D0[s]}}return Hc[e]}function O0(i,e,t){if(i.substring(0,9)!=="precision"){let n=e;return e===Di.HIGH&&t!==Di.HIGH&&(n=Di.MEDIUM),`precision ${n} float;
${i}`}else if(t!==Di.HIGH&&i.substring(0,15)==="precision highp")return i.replace("precision highp","precision mediump");return i}let vl;function eI(){if(typeof vl=="boolean")return vl;try{vl=new Function("param1","param2","param3","return param1[param2] === param3;")({a:"b"},"a","b")===!0}catch{vl=!1}return vl}let tI=0;const Gc={},tm=class ba{constructor(e,t,n="pixi-shader",s={}){this.extra={},this.id=tI++,this.vertexSrc=e||ba.defaultVertexSrc,this.fragmentSrc=t||ba.defaultFragmentSrc,this.vertexSrc=this.vertexSrc.trim(),this.fragmentSrc=this.fragmentSrc.trim(),this.extra=s,this.vertexSrc.substring(0,8)!=="#version"&&(n=n.replace(/\s+/g,"-"),Gc[n]?(Gc[n]++,n+=`-${Gc[n]}`):Gc[n]=1,this.vertexSrc=`#define SHADER_NAME ${n}
${i}`}else if(t!==Di.HIGH&&i.substring(0,15)==="precision highp")return i.replace("precision highp","precision mediump");return i}let vl;function eI(){if(typeof vl=="boolean")return vl;try{vl=new Function("param1","param2","param3","return param1[param2] === param3;")({a:"b"},"a","b")===!0}catch{vl=!1}return vl}let tI=0;const Gc={},tm=class ya{constructor(e,t,n="pixi-shader",s={}){this.extra={},this.id=tI++,this.vertexSrc=e||ya.defaultVertexSrc,this.fragmentSrc=t||ya.defaultFragmentSrc,this.vertexSrc=this.vertexSrc.trim(),this.fragmentSrc=this.fragmentSrc.trim(),this.extra=s,this.vertexSrc.substring(0,8)!=="#version"&&(n=n.replace(/\s+/g,"-"),Gc[n]?(Gc[n]++,n+=`-${Gc[n]}`):Gc[n]=1,this.vertexSrc=`#define SHADER_NAME ${n}
${this.vertexSrc}`,this.fragmentSrc=`#define SHADER_NAME ${n}
${this.fragmentSrc}`,this.vertexSrc=O0(this.vertexSrc,ba.defaultVertexPrecision,Di.HIGH),this.fragmentSrc=O0(this.fragmentSrc,ba.defaultFragmentPrecision,Jk())),this.glPrograms={},this.syncUniforms=null}static get defaultVertexSrc(){return Hk}static get defaultFragmentSrc(){return jk}static from(e,t,n){const s=e+t;let r=M0[s];return r||(M0[s]=r=new ba(e,t,n)),r}};tm.defaultVertexPrecision=Di.HIGH,tm.defaultFragmentPrecision=nr.apple.device?Di.HIGH:Di.MEDIUM;let ks=tm,nI=0;class is{constructor(e,t,n){this.group=!0,this.syncUniforms={},this.dirtyId=0,this.id=nI++,this.static=!!t,this.ubo=!!n,e instanceof Kt?(this.buffer=e,this.buffer.type=Ls.UNIFORM_BUFFER,this.autoManage=!1,this.ubo=!0):(this.uniforms=e,this.ubo&&(this.buffer=new Kt(new Float32Array(1)),this.buffer.type=Ls.UNIFORM_BUFFER,this.autoManage=!0))}update(){this.dirtyId++,!this.autoManage&&this.buffer&&this.buffer.update()}add(e,t,n){if(!this.ubo)this.uniforms[e]=new is(t,n);else throw new Error("[UniformGroup] uniform groups in ubo mode cannot be modified, or have uniform groups nested in them")}static from(e,t,n){return new is(e,t,n)}static uboFrom(e,t){return new is(e,t??!0,!0)}}class ss{constructor(e,t){this.uniformBindCount=0,this.program=e,t?t instanceof is?this.uniformGroup=t:this.uniformGroup=new is(t):this.uniformGroup=new is({}),this.disposeRunner=new ns("disposeShader")}checkUniformExists(e,t){if(t.uniforms[e])return!0;for(const n in t.uniforms){const s=t.uniforms[n];if(s.group===!0&&this.checkUniformExists(e,s))return!0}return!1}destroy(){this.uniformGroup=null,this.disposeRunner.emit(this),this.disposeRunner.destroy()}get uniforms(){return this.uniformGroup.uniforms}static from(e,t,n){const s=ks.from(e,t);return new ss(s,n)}}class zw{constructor(e,t){if(this.vertexSrc=e,this.fragTemplate=t,this.programCache={},this.defaultGroupCache={},!t.includes("%count%"))throw new Error('Fragment template must contain "%count%".');if(!t.includes("%forloop%"))throw new Error('Fragment template must contain "%forloop%".')}generateShader(e){if(!this.programCache[e]){const n=new Int32Array(e);for(let r=0;r<e;r++)n[r]=r;this.defaultGroupCache[e]=is.from({uSamplers:n},!0);let s=this.fragTemplate;s=s.replace(/%count%/gi,`${e}`),s=s.replace(/%forloop%/gi,this.generateSampleSrc(e)),this.programCache[e]=new ks(this.vertexSrc,s)}const t={tint:new Float32Array([1,1,1,1]),translationMatrix:new zt,default:this.defaultGroupCache[e]};return new ss(this.programCache[e],t)}generateSampleSrc(e){let t="";t+=`
${this.fragmentSrc}`,this.vertexSrc=O0(this.vertexSrc,ya.defaultVertexPrecision,Di.HIGH),this.fragmentSrc=O0(this.fragmentSrc,ya.defaultFragmentPrecision,Jk())),this.glPrograms={},this.syncUniforms=null}static get defaultVertexSrc(){return Hk}static get defaultFragmentSrc(){return jk}static from(e,t,n){const s=e+t;let r=M0[s];return r||(M0[s]=r=new ya(e,t,n)),r}};tm.defaultVertexPrecision=Di.HIGH,tm.defaultFragmentPrecision=nr.apple.device?Di.HIGH:Di.MEDIUM;let ks=tm,nI=0;class is{constructor(e,t,n){this.group=!0,this.syncUniforms={},this.dirtyId=0,this.id=nI++,this.static=!!t,this.ubo=!!n,e instanceof Kt?(this.buffer=e,this.buffer.type=Ls.UNIFORM_BUFFER,this.autoManage=!1,this.ubo=!0):(this.uniforms=e,this.ubo&&(this.buffer=new Kt(new Float32Array(1)),this.buffer.type=Ls.UNIFORM_BUFFER,this.autoManage=!0))}update(){this.dirtyId++,!this.autoManage&&this.buffer&&this.buffer.update()}add(e,t,n){if(!this.ubo)this.uniforms[e]=new is(t,n);else throw new Error("[UniformGroup] uniform groups in ubo mode cannot be modified, or have uniform groups nested in them")}static from(e,t,n){return new is(e,t,n)}static uboFrom(e,t){return new is(e,t??!0,!0)}}class ss{constructor(e,t){this.uniformBindCount=0,this.program=e,t?t instanceof is?this.uniformGroup=t:this.uniformGroup=new is(t):this.uniformGroup=new is({}),this.disposeRunner=new ns("disposeShader")}checkUniformExists(e,t){if(t.uniforms[e])return!0;for(const n in t.uniforms){const s=t.uniforms[n];if(s.group===!0&&this.checkUniformExists(e,s))return!0}return!1}destroy(){this.uniformGroup=null,this.disposeRunner.emit(this),this.disposeRunner.destroy()}get uniforms(){return this.uniformGroup.uniforms}static from(e,t,n){const s=ks.from(e,t);return new ss(s,n)}}class zw{constructor(e,t){if(this.vertexSrc=e,this.fragTemplate=t,this.programCache={},this.defaultGroupCache={},!t.includes("%count%"))throw new Error('Fragment template must contain "%count%".');if(!t.includes("%forloop%"))throw new Error('Fragment template must contain "%forloop%".')}generateShader(e){if(!this.programCache[e]){const n=new Int32Array(e);for(let r=0;r<e;r++)n[r]=r;this.defaultGroupCache[e]=is.from({uSamplers:n},!0);let s=this.fragTemplate;s=s.replace(/%count%/gi,`${e}`),s=s.replace(/%forloop%/gi,this.generateSampleSrc(e)),this.programCache[e]=new ks(this.vertexSrc,s)}const t={tint:new Float32Array([1,1,1,1]),translationMatrix:new zt,default:this.defaultGroupCache[e]};return new ss(this.programCache[e],t)}generateSampleSrc(e){let t="";t+=`
`,t+=`
`;for(let n=0;n<e;n++)n>0&&(t+=`
else `),n<e-1&&(t+=`if(vTextureId < ${n}.5)`),t+=`
@@ -364,7 +364,7 @@ void main(void){
vTextureId = aTextureId;
vColor = aColor * tint;
}
`;const _l=class ji extends hh{constructor(e){super(e),this.setShaderGenerator(),this.geometryClass=$w,this.vertexSize=6,this.state=$s.for2d(),this.size=ji.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),e.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??sI(32),this._defaultMaxTextures}static set defaultMaxTextures(e){this._defaultMaxTextures=e}static get canUploadSameBuffer(){return this._canUploadSameBuffer=this._canUploadSameBuffer??iI(),this._canUploadSameBuffer}static set canUploadSameBuffer(e){this._canUploadSameBuffer=e}get MAX_TEXTURES(){return yt("7.1.0","BatchRenderer#MAX_TEXTURES renamed to BatchRenderer#maxTextures"),this.maxTextures}static get defaultVertexSrc(){return oI}static get defaultFragmentTemplate(){return rI}setShaderGenerator({vertex:e=ji.defaultVertexSrc,fragment:t=ji.defaultFragmentTemplate}={}){this.shaderGenerator=new zw(e,t)}contextChange(){const e=this.renderer.gl;Xe.PREFER_ENV===Ko.WEBGL_LEGACY?this.maxTextures=1:(this.maxTextures=Math.min(e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),ji.defaultMaxTextures),this.maxTextures=Dk(this.maxTextures,e)),this._shader=this.shaderGenerator.generateShader(this.maxTextures);for(let t=0;t<this._packedGeometryPoolSize;t++)this._packedGeometries[t]=new this.geometryClass;this.initFlushBuffers()}initFlushBuffers(){const{_drawCallPool:e,_textureArrayPool:t}=ji,n=this.size/4,s=Math.floor(n/this.maxTextures)+1;for(;e.length<n;)e.push(new Zp);for(;t.length<s;)t.push(new nm);for(let r=0;r<this.maxTextures;r++)this._tempBoundTextures[r]=null}onPrerender(){this._flushId=0}render(e){e._texture.valid&&(this._vertexCount+e.vertexData.length/2>this.size&&this.flush(),this._vertexCount+=e.vertexData.length/2,this._indexCount+=e.indices.length,this._bufferedTextures[this._bufferSize]=e._texture.baseTexture,this._bufferedElements[this._bufferSize++]=e)}buildTexturesAndDrawCalls(){const{_bufferedTextures:e,maxTextures:t}=this,n=ji._textureArrayPool,s=this.renderer.batch,r=this._tempBoundTextures,o=this.renderer.textureGC.count;let a=++st._globalBatch,c=0,l=n[0],d=0;s.copyBoundTextures(r,t);for(let u=0;u<this._bufferSize;++u){const h=e[u];e[u]=null,h._batchEnabled!==a&&(l.count>=t&&(s.boundArray(l,r,a,t),this.buildDrawCalls(l,d,u),d=u,l=n[++c],++a),h._batchEnabled=a,h.touched=o,l.elements[l.count++]=h)}l.count>0&&(s.boundArray(l,r,a,t),this.buildDrawCalls(l,d,this._bufferSize),++c,++a);for(let u=0;u<r.length;u++)r[u]=null;st._globalBatch=a}buildDrawCalls(e,t,n){const{_bufferedElements:s,_attributeBuffer:r,_indexBuffer:o,vertexSize:a}=this,c=ji._drawCallPool;let l=this._dcIndex,d=this._aIndex,u=this._iIndex,h=c[l];h.start=this._iIndex,h.texArray=e;for(let f=t;f<n;++f){const p=s[f],m=p._texture.baseTexture,g=Lw[m.alphaMode?1:0][p.blendMode];s[f]=null,t<f&&h.blend!==g&&(h.size=u-h.start,t=f,h=c[++l],h.texArray=e,h.start=u),this.packInterleavedGeometry(p,r,o,d,u),d+=p.vertexData.length/2*a,u+=p.indices.length,h.blend=g}t<n&&(h.size=u-h.start,++l),this._dcIndex=l,this._aIndex=d,this._iIndex=u}bindAndClearTexArray(e){const t=this.renderer.texture;for(let n=0;n<e.count;n++)t.bind(e.elements[n],e.ids[n]),e.elements[n]=null;e.count=0}updateGeometry(){const{_packedGeometries:e,_attributeBuffer:t,_indexBuffer:n}=this;ji.canUploadSameBuffer?(e[this._flushId]._buffer.update(t.rawBinaryData),e[this._flushId]._indexBuffer.update(n),this.renderer.geometry.updateBuffers()):(this._packedGeometryPoolSize<=this._flushId&&(this._packedGeometryPoolSize++,e[this._flushId]=new this.geometryClass),e[this._flushId]._buffer.update(t.rawBinaryData),e[this._flushId]._indexBuffer.update(n),this.renderer.geometry.bind(e[this._flushId]),this.renderer.geometry.updateBuffers(),this._flushId++)}drawBatches(){const e=this._dcIndex,{gl:t,state:n}=this.renderer,s=ji._drawCallPool;let r=null;for(let o=0;o<e;o++){const{texArray:a,type:c,size:l,start:d,blend:u}=s[o];r!==a&&(r=a,this.bindAndClearTexArray(a)),this.state.blendMode=u,n.set(this.state),t.drawElements(c,l,t.UNSIGNED_SHORT,d*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),ji.canUploadSameBuffer&&this.renderer.geometry.bind(this._packedGeometries[this._f Line truncated
`;const _l=class ji extends hh{constructor(e){super(e),this.setShaderGenerator(),this.geometryClass=$w,this.vertexSize=6,this.state=$s.for2d(),this.size=ji.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),e.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??sI(32),this._defaultMaxTextures}static set defaultMaxTextures(e){this._defaultMaxTextures=e}static get canUploadSameBuffer(){return this._canUploadSameBuffer=this._canUploadSameBuffer??iI(),this._canUploadSameBuffer}static set canUploadSameBuffer(e){this._canUploadSameBuffer=e}get MAX_TEXTURES(){return yt("7.1.0","BatchRenderer#MAX_TEXTURES renamed to BatchRenderer#maxTextures"),this.maxTextures}static get defaultVertexSrc(){return oI}static get defaultFragmentTemplate(){return rI}setShaderGenerator({vertex:e=ji.defaultVertexSrc,fragment:t=ji.defaultFragmentTemplate}={}){this.shaderGenerator=new zw(e,t)}contextChange(){const e=this.renderer.gl;Xe.PREFER_ENV===Jo.WEBGL_LEGACY?this.maxTextures=1:(this.maxTextures=Math.min(e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),ji.defaultMaxTextures),this.maxTextures=Dk(this.maxTextures,e)),this._shader=this.shaderGenerator.generateShader(this.maxTextures);for(let t=0;t<this._packedGeometryPoolSize;t++)this._packedGeometries[t]=new this.geometryClass;this.initFlushBuffers()}initFlushBuffers(){const{_drawCallPool:e,_textureArrayPool:t}=ji,n=this.size/4,s=Math.floor(n/this.maxTextures)+1;for(;e.length<n;)e.push(new Zp);for(;t.length<s;)t.push(new nm);for(let r=0;r<this.maxTextures;r++)this._tempBoundTextures[r]=null}onPrerender(){this._flushId=0}render(e){e._texture.valid&&(this._vertexCount+e.vertexData.length/2>this.size&&this.flush(),this._vertexCount+=e.vertexData.length/2,this._indexCount+=e.indices.length,this._bufferedTextures[this._bufferSize]=e._texture.baseTexture,this._bufferedElements[this._bufferSize++]=e)}buildTexturesAndDrawCalls(){const{_bufferedTextures:e,maxTextures:t}=this,n=ji._textureArrayPool,s=this.renderer.batch,r=this._tempBoundTextures,o=this.renderer.textureGC.count;let a=++st._globalBatch,c=0,l=n[0],d=0;s.copyBoundTextures(r,t);for(let u=0;u<this._bufferSize;++u){const h=e[u];e[u]=null,h._batchEnabled!==a&&(l.count>=t&&(s.boundArray(l,r,a,t),this.buildDrawCalls(l,d,u),d=u,l=n[++c],++a),h._batchEnabled=a,h.touched=o,l.elements[l.count++]=h)}l.count>0&&(s.boundArray(l,r,a,t),this.buildDrawCalls(l,d,this._bufferSize),++c,++a);for(let u=0;u<r.length;u++)r[u]=null;st._globalBatch=a}buildDrawCalls(e,t,n){const{_bufferedElements:s,_attributeBuffer:r,_indexBuffer:o,vertexSize:a}=this,c=ji._drawCallPool;let l=this._dcIndex,d=this._aIndex,u=this._iIndex,h=c[l];h.start=this._iIndex,h.texArray=e;for(let f=t;f<n;++f){const p=s[f],m=p._texture.baseTexture,g=Lw[m.alphaMode?1:0][p.blendMode];s[f]=null,t<f&&h.blend!==g&&(h.size=u-h.start,t=f,h=c[++l],h.texArray=e,h.start=u),this.packInterleavedGeometry(p,r,o,d,u),d+=p.vertexData.length/2*a,u+=p.indices.length,h.blend=g}t<n&&(h.size=u-h.start,++l),this._dcIndex=l,this._aIndex=d,this._iIndex=u}bindAndClearTexArray(e){const t=this.renderer.texture;for(let n=0;n<e.count;n++)t.bind(e.elements[n],e.ids[n]),e.elements[n]=null;e.count=0}updateGeometry(){const{_packedGeometries:e,_attributeBuffer:t,_indexBuffer:n}=this;ji.canUploadSameBuffer?(e[this._flushId]._buffer.update(t.rawBinaryData),e[this._flushId]._indexBuffer.update(n),this.renderer.geometry.updateBuffers()):(this._packedGeometryPoolSize<=this._flushId&&(this._packedGeometryPoolSize++,e[this._flushId]=new this.geometryClass),e[this._flushId]._buffer.update(t.rawBinaryData),e[this._flushId]._indexBuffer.update(n),this.renderer.geometry.bind(e[this._flushId]),this.renderer.geometry.updateBuffers(),this._flushId++)}drawBatches(){const e=this._dcIndex,{gl:t,state:n}=this.renderer,s=ji._drawCallPool;let r=null;for(let o=0;o<e;o++){const{texArray:a,type:c,size:l,start:d,blend:u}=s[o];r!==a&&(r=a,this.bindAndClearTexArray(a)),this.state.blendMode=u,n.set(this.state),t.drawElements(c,l,t.UNSIGNED_SHORT,d*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),ji.canUploadSameBuffer&&this.renderer.geometry.bind(this._packedGeometries[this._f Line truncated
uniform sampler2D uSampler;
@@ -397,7 +397,7 @@ void main(void)
gl_Position = filterVertexPosition();
vTextureCoord = filterTextureCoord();
}
`;const im=class Ml extends ss{constructor(e,t,n){const s=ks.from(e||Ml.defaultVertexSrc,t||Ml.defaultFragmentSrc);super(s,n),this.padding=0,this.resolution=Ml.defaultResolution,this.multisample=Ml.defaultMultisample,this.enabled=!0,this.autoFit=!0,this.state=new $s}apply(e,t,n,s,r){e.applyFilter(this,t,n,s)}get blendMode(){return this.state.blendMode}set blendMode(e){this.state.blendMode=e}get resolution(){return this._resolution}set resolution(e){this._resolution=e}static get defaultVertexSrc(){return lI}static get defaultFragmentSrc(){return aI}};im.defaultResolution=1,im.defaultMultisample=yn.NONE;let oi=im;class iu{constructor(){this.clearBeforeRender=!0,this._backgroundColor=new Ot(0),this.alpha=1}init(e){this.clearBeforeRender=e.clearBeforeRender;const{backgroundColor:t,background:n,backgroundAlpha:s}=e,r=n??t;r!==void 0&&(this.color=r),this.alpha=s}get color(){return this._backgroundColor.value}set color(e){this._backgroundColor.setValue(e)}get alpha(){return this._backgroundColor.alpha}set alpha(e){this._backgroundColor.setAlpha(e)}get backgroundColor(){return this._backgroundColor}destroy(){}}iu.defaultOptions={backgroundAlpha:1,backgroundColor:0,clearBeforeRender:!0},iu.extension={type:[$e.RendererSystem,$e.CanvasRendererSystem],name:"background"};He.add(iu);class jw{constructor(e){this.renderer=e,this.emptyRenderer=new hh(e),this.currentRenderer=this.emptyRenderer}setObjectRenderer(e){this.currentRenderer!==e&&(this.currentRenderer.stop(),this.currentRenderer=e,this.currentRenderer.start())}flush(){this.setObjectRenderer(this.emptyRenderer)}reset(){this.setObjectRenderer(this.emptyRenderer)}copyBoundTextures(e,t){const{boundTextures:n}=this.renderer.texture;for(let s=t-1;s>=0;--s)e[s]=n[s]||null,e[s]&&(e[s]._batchLocation=s)}boundArray(e,t,n,s){const{elements:r,ids:o,count:a}=e;let c=0;for(let l=0;l<a;l++){const d=r[l],u=d._batchLocation;if(u>=0&&u<s&&t[u]===d){o[l]=u;continue}for(;c<s;){const h=t[c];if(h&&h._batchEnabled===n&&h._batchLocation===c){c++;continue}o[l]=c,d._batchLocation=c,t[c]=d;break}}}destroy(){this.renderer=null}}jw.extension={type:$e.RendererSystem,name:"batch"};He.add(jw);let N0=0;class su{constructor(e){this.renderer=e,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(e){this.gl=e,this.renderer.gl=e,this.renderer.CONTEXT_UID=N0++}init(e){if(e.context)this.initFromContext(e.context);else{const t=this.renderer.background.alpha<1,n=e.premultipliedAlpha;this.preserveDrawingBuffer=e.preserveDrawingBuffer,this.useContextAlpha=e.useContextAlpha,this.powerPreference=e.powerPreference,this.initFromOptions({alpha:t,premultipliedAlpha:n,antialias:e.antialias,stencil:!0,preserveDrawingBuffer:e.preserveDrawingBuffer,powerPreference:e.powerPreference})}}initFromContext(e){this.gl=e,this.validateContext(e),this.renderer.gl=e,this.renderer.CONTEXT_UID=N0++,this.renderer.runners.contextChange.emit(e);const t=this.renderer.view;t.addEventListener!==void 0&&(t.addEventListener("webglcontextlost",this.handleContextLost,!1),t.addEventListener("webglcontextrestored",this.handleContextRestored,!1))}initFromOptions(e){const t=this.createContext(this.renderer.view,e);this.initFromContext(t)}createContext(e,t){let n;if(Xe.PREFER_ENV>=Ko.WEBGL2&&(n=e.getContext("webgl2",t)),n)this.webGLVersion=2;else if(this.webGLVersion=1,n=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),!n)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=n,this.getExtensions(),this.gl}getExtensions(){const{gl:e}=this,t={loseContext:e.getExtension("WEBGL_lose_context"),anisotropicFiltering:e.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),s3tc:e.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:e.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:e.getExtension("WEBGL_compressed_texture_etc"),etc1:e.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:e.getExtension("WEBGL_compressed_texture_atc"),astc:e.getExtension("WEBGL_compressed_texture_astc"),bptc:e.getExtension("EXT_texture_compression_bptc")};this.webGLVersion===1?Object.assign(this.extensions,t,{drawBuffers:e.getExtension("WEBGL_draw_buffers"),depthTexture:e.getExtension("WEBGL_depth_texture"),vertexArrayObject:e.getExtension("OES_vertex_array_object")||e.getExtension("MOZ_OES_vertex_array_object")||e.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:e.getExtension("OES_element_index_uint"),floatTexture:e.getExtension("OES_texture_float"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),textureHalfFloat:e.getExtension("OES_texture_half_float"),textureHalfFloatLinear:e.getExtension("OES_texture_ha Line truncated
`;const im=class Ml extends ss{constructor(e,t,n){const s=ks.from(e||Ml.defaultVertexSrc,t||Ml.defaultFragmentSrc);super(s,n),this.padding=0,this.resolution=Ml.defaultResolution,this.multisample=Ml.defaultMultisample,this.enabled=!0,this.autoFit=!0,this.state=new $s}apply(e,t,n,s,r){e.applyFilter(this,t,n,s)}get blendMode(){return this.state.blendMode}set blendMode(e){this.state.blendMode=e}get resolution(){return this._resolution}set resolution(e){this._resolution=e}static get defaultVertexSrc(){return lI}static get defaultFragmentSrc(){return aI}};im.defaultResolution=1,im.defaultMultisample=yn.NONE;let oi=im;class iu{constructor(){this.clearBeforeRender=!0,this._backgroundColor=new Ot(0),this.alpha=1}init(e){this.clearBeforeRender=e.clearBeforeRender;const{backgroundColor:t,background:n,backgroundAlpha:s}=e,r=n??t;r!==void 0&&(this.color=r),this.alpha=s}get color(){return this._backgroundColor.value}set color(e){this._backgroundColor.setValue(e)}get alpha(){return this._backgroundColor.alpha}set alpha(e){this._backgroundColor.setAlpha(e)}get backgroundColor(){return this._backgroundColor}destroy(){}}iu.defaultOptions={backgroundAlpha:1,backgroundColor:0,clearBeforeRender:!0},iu.extension={type:[$e.RendererSystem,$e.CanvasRendererSystem],name:"background"};He.add(iu);class jw{constructor(e){this.renderer=e,this.emptyRenderer=new hh(e),this.currentRenderer=this.emptyRenderer}setObjectRenderer(e){this.currentRenderer!==e&&(this.currentRenderer.stop(),this.currentRenderer=e,this.currentRenderer.start())}flush(){this.setObjectRenderer(this.emptyRenderer)}reset(){this.setObjectRenderer(this.emptyRenderer)}copyBoundTextures(e,t){const{boundTextures:n}=this.renderer.texture;for(let s=t-1;s>=0;--s)e[s]=n[s]||null,e[s]&&(e[s]._batchLocation=s)}boundArray(e,t,n,s){const{elements:r,ids:o,count:a}=e;let c=0;for(let l=0;l<a;l++){const d=r[l],u=d._batchLocation;if(u>=0&&u<s&&t[u]===d){o[l]=u;continue}for(;c<s;){const h=t[c];if(h&&h._batchEnabled===n&&h._batchLocation===c){c++;continue}o[l]=c,d._batchLocation=c,t[c]=d;break}}}destroy(){this.renderer=null}}jw.extension={type:$e.RendererSystem,name:"batch"};He.add(jw);let N0=0;class su{constructor(e){this.renderer=e,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(e){this.gl=e,this.renderer.gl=e,this.renderer.CONTEXT_UID=N0++}init(e){if(e.context)this.initFromContext(e.context);else{const t=this.renderer.background.alpha<1,n=e.premultipliedAlpha;this.preserveDrawingBuffer=e.preserveDrawingBuffer,this.useContextAlpha=e.useContextAlpha,this.powerPreference=e.powerPreference,this.initFromOptions({alpha:t,premultipliedAlpha:n,antialias:e.antialias,stencil:!0,preserveDrawingBuffer:e.preserveDrawingBuffer,powerPreference:e.powerPreference})}}initFromContext(e){this.gl=e,this.validateContext(e),this.renderer.gl=e,this.renderer.CONTEXT_UID=N0++,this.renderer.runners.contextChange.emit(e);const t=this.renderer.view;t.addEventListener!==void 0&&(t.addEventListener("webglcontextlost",this.handleContextLost,!1),t.addEventListener("webglcontextrestored",this.handleContextRestored,!1))}initFromOptions(e){const t=this.createContext(this.renderer.view,e);this.initFromContext(t)}createContext(e,t){let n;if(Xe.PREFER_ENV>=Jo.WEBGL2&&(n=e.getContext("webgl2",t)),n)this.webGLVersion=2;else if(this.webGLVersion=1,n=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),!n)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=n,this.getExtensions(),this.gl}getExtensions(){const{gl:e}=this,t={loseContext:e.getExtension("WEBGL_lose_context"),anisotropicFiltering:e.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),s3tc:e.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:e.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:e.getExtension("WEBGL_compressed_texture_etc"),etc1:e.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:e.getExtension("WEBGL_compressed_texture_atc"),astc:e.getExtension("WEBGL_compressed_texture_astc"),bptc:e.getExtension("EXT_texture_compression_bptc")};this.webGLVersion===1?Object.assign(this.extensions,t,{drawBuffers:e.getExtension("WEBGL_draw_buffers"),depthTexture:e.getExtension("WEBGL_depth_texture"),vertexArrayObject:e.getExtension("OES_vertex_array_object")||e.getExtension("MOZ_OES_vertex_array_object")||e.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:e.getExtension("OES_element_index_uint"),floatTexture:e.getExtension("OES_texture_float"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),textureHalfFloat:e.getExtension("OES_texture_half_float"),textureHalfFloatLinear:e.getExtension("OES_texture_ha Line truncated
varying vec2 vTextureCoord;
uniform sampler2D uSampler;
@@ -438,7 +438,7 @@ void main(void)
vTextureCoord = aTextureCoord;
vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;
}
`;class mI extends oi{constructor(e,t,n){let s=null;typeof e!="string"&&t===void 0&&n===void 0&&(s=e,e=void 0,t=void 0,n=void 0),super(e||pI,t||fI,n),this.maskSprite=s,this.maskMatrix=new zt}get maskSprite(){return this._maskSprite}set maskSprite(e){this._maskSprite=e,this._maskSprite&&(this._maskSprite.renderable=!1)}apply(e,t,n,s){const r=this._maskSprite,o=r._texture;o.valid&&(o.uvMatrix||(o.uvMatrix=new $g(o,0)),o.uvMatrix.update(),this.uniforms.npmAlpha=o.baseTexture.alphaMode?0:1,this.uniforms.mask=o,this.uniforms.otherMatrix=e.calculateSpriteMatrix(this.maskMatrix,r).prepend(o.uvMatrix.mapCoord),this.uniforms.alpha=r.worldAlpha,this.uniforms.maskClamp=o.uvMatrix.uClampFrame,e.applyFilter(this,t,n,s))}}class gI{constructor(e=null){this.type=Cn.NONE,this.autoDetect=!0,this.maskObject=e||null,this.pooled=!1,this.isMaskData=!0,this.resolution=null,this.multisample=oi.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(e){e?this._filters?this._filters[0]=e:this._filters=[e]:this._filters=null}reset(){this.pooled&&(this.maskObject=null,this.type=Cn.NONE,this.autoDetect=!0),this._target=null,this._scissorRectLocal=null}copyCountersOrReset(e){e?(this._stencilCounter=e._stencilCounter,this._scissorCounter=e._scissorCounter,this._scissorRect=e._scissorRect):(this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null)}}class Qw{constructor(e){this.renderer=e,this.enableScissor=!0,this.alphaMaskPool=[],this.maskDataPool=[],this.maskStack=[],this.alphaMaskIndex=0}setMaskStack(e){this.maskStack=e,this.renderer.scissor.setMaskStack(e),this.renderer.stencil.setMaskStack(e)}push(e,t){let n=t;if(!n.isMaskData){const r=this.maskDataPool.pop()||new gI;r.pooled=!0,r.maskObject=t,n=r}const s=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null;if(n.copyCountersOrReset(s),n._colorMask=s?s._colorMask:15,n.autoDetect&&this.detect(n),n._target=e,n.type!==Cn.SPRITE&&this.maskStack.push(n),n.enabled)switch(n.type){case Cn.SCISSOR:this.renderer.scissor.push(n);break;case Cn.STENCIL:this.renderer.stencil.push(n);break;case Cn.SPRITE:n.copyCountersOrReset(null),this.pushSpriteMask(n);break;case Cn.COLOR:this.pushColorMask(n);break}n.type===Cn.SPRITE&&this.maskStack.push(n)}pop(e){const t=this.maskStack.pop();if(!(!t||t._target!==e)){if(t.enabled)switch(t.type){case Cn.SCISSOR:this.renderer.scissor.pop(t);break;case Cn.STENCIL:this.renderer.stencil.pop(t.maskObject);break;case Cn.SPRITE:this.popSpriteMask(t);break;case Cn.COLOR:this.popColorMask(t);break}if(t.reset(),t.pooled&&this.maskDataPool.push(t),this.maskStack.length!==0){const n=this.maskStack[this.maskStack.length-1];n.type===Cn.SPRITE&&n._filters&&(n._filters[0].maskSprite=n.maskObject)}}}detect(e){const t=e.maskObject;t?t.isSprite?e.type=Cn.SPRITE:this.enableScissor&&this.renderer.scissor.testScissor(e)?e.type=Cn.SCISSOR:e.type=Cn.STENCIL:e.type=Cn.COLOR}pushSpriteMask(e){const{maskObject:t}=e,n=e._target;let s=e._filters;s||(s=this.alphaMaskPool[this.alphaMaskIndex],s||(s=this.alphaMaskPool[this.alphaMaskIndex]=[new mI])),s[0].resolution=e.resolution,s[0].multisample=e.multisample,s[0].maskSprite=t;const r=n.filterArea;n.filterArea=t.getBounds(!0),this.renderer.filter.push(n,s),n.filterArea=r,e._filters||this.alphaMaskIndex++}popSpriteMask(e){this.renderer.filter.pop(),e._filters?e._filters[0].maskSprite=null:(this.alphaMaskIndex--,this.alphaMaskPool[this.alphaMaskIndex][0].maskSprite=null)}pushColorMask(e){const t=e._colorMask,n=e._colorMask=t&e.colorMask;n!==t&&this.renderer.gl.colorMask((n&1)!==0,(n&2)!==0,(n&4)!==0,(n&8)!==0)}popColorMask(e){const t=e._colorMask,n=this.maskStack.length>0?this.maskStack[this.maskStack.length-1]._colorMask:15;n!==t&&this.renderer.gl.colorMask((n&1)!==0,(n&2)!==0,(n&4)!==0,(n&8)!==0)}destroy(){this.renderer=null}}Qw.extension={type:$e.RendererSystem,name:"mask"};He.add(Qw);class eS{constructor(e){this.renderer=e,this.maskStack=[],this.glConst=0}getStackLength(){return this.maskStack.length}setMaskStack(e){const{gl:t}=this.renderer,n=this.getStackLength();this.maskStack=e;const s=this.getStackLength();s!==n&&(s===0?t.disable(this.glConst):(t.enable(this.glConst),this._useCurrent()))}_useCurrent(){}destroy(){this.renderer=null,this.maskStack=null}}const U0=new zt,V0=[],tS=class Md extends eS{constructor(e){super(e),this.glConst=Xe.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST}getStackLength(){const e=this.maskStack[this.maskStack.length-1];return e?e._scissorCounter:0}calcScissorRect(e){if(e._scissorRectLocal)return;const t=e._scissorRect,{maskObject:n}=e,{renderer:s}=this,r=s.renderTexture,o=n.getBounds(!0,V0.pop()??new ht);this.roundFrameToPixels(o,r.current?r.current.resolution:s.resolution,r.sourceFrame,r.destinationFrame,s.projection.transform),t&&o.fit(t),e._scissorRectLocal=o}static Line truncated
`;class mI extends oi{constructor(e,t,n){let s=null;typeof e!="string"&&t===void 0&&n===void 0&&(s=e,e=void 0,t=void 0,n=void 0),super(e||pI,t||fI,n),this.maskSprite=s,this.maskMatrix=new zt}get maskSprite(){return this._maskSprite}set maskSprite(e){this._maskSprite=e,this._maskSprite&&(this._maskSprite.renderable=!1)}apply(e,t,n,s){const r=this._maskSprite,o=r._texture;o.valid&&(o.uvMatrix||(o.uvMatrix=new $g(o,0)),o.uvMatrix.update(),this.uniforms.npmAlpha=o.baseTexture.alphaMode?0:1,this.uniforms.mask=o,this.uniforms.otherMatrix=e.calculateSpriteMatrix(this.maskMatrix,r).prepend(o.uvMatrix.mapCoord),this.uniforms.alpha=r.worldAlpha,this.uniforms.maskClamp=o.uvMatrix.uClampFrame,e.applyFilter(this,t,n,s))}}class gI{constructor(e=null){this.type=Cn.NONE,this.autoDetect=!0,this.maskObject=e||null,this.pooled=!1,this.isMaskData=!0,this.resolution=null,this.multisample=oi.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(e){e?this._filters?this._filters[0]=e:this._filters=[e]:this._filters=null}reset(){this.pooled&&(this.maskObject=null,this.type=Cn.NONE,this.autoDetect=!0),this._target=null,this._scissorRectLocal=null}copyCountersOrReset(e){e?(this._stencilCounter=e._stencilCounter,this._scissorCounter=e._scissorCounter,this._scissorRect=e._scissorRect):(this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null)}}class Qw{constructor(e){this.renderer=e,this.enableScissor=!0,this.alphaMaskPool=[],this.maskDataPool=[],this.maskStack=[],this.alphaMaskIndex=0}setMaskStack(e){this.maskStack=e,this.renderer.scissor.setMaskStack(e),this.renderer.stencil.setMaskStack(e)}push(e,t){let n=t;if(!n.isMaskData){const r=this.maskDataPool.pop()||new gI;r.pooled=!0,r.maskObject=t,n=r}const s=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null;if(n.copyCountersOrReset(s),n._colorMask=s?s._colorMask:15,n.autoDetect&&this.detect(n),n._target=e,n.type!==Cn.SPRITE&&this.maskStack.push(n),n.enabled)switch(n.type){case Cn.SCISSOR:this.renderer.scissor.push(n);break;case Cn.STENCIL:this.renderer.stencil.push(n);break;case Cn.SPRITE:n.copyCountersOrReset(null),this.pushSpriteMask(n);break;case Cn.COLOR:this.pushColorMask(n);break}n.type===Cn.SPRITE&&this.maskStack.push(n)}pop(e){const t=this.maskStack.pop();if(!(!t||t._target!==e)){if(t.enabled)switch(t.type){case Cn.SCISSOR:this.renderer.scissor.pop(t);break;case Cn.STENCIL:this.renderer.stencil.pop(t.maskObject);break;case Cn.SPRITE:this.popSpriteMask(t);break;case Cn.COLOR:this.popColorMask(t);break}if(t.reset(),t.pooled&&this.maskDataPool.push(t),this.maskStack.length!==0){const n=this.maskStack[this.maskStack.length-1];n.type===Cn.SPRITE&&n._filters&&(n._filters[0].maskSprite=n.maskObject)}}}detect(e){const t=e.maskObject;t?t.isSprite?e.type=Cn.SPRITE:this.enableScissor&&this.renderer.scissor.testScissor(e)?e.type=Cn.SCISSOR:e.type=Cn.STENCIL:e.type=Cn.COLOR}pushSpriteMask(e){const{maskObject:t}=e,n=e._target;let s=e._filters;s||(s=this.alphaMaskPool[this.alphaMaskIndex],s||(s=this.alphaMaskPool[this.alphaMaskIndex]=[new mI])),s[0].resolution=e.resolution,s[0].multisample=e.multisample,s[0].maskSprite=t;const r=n.filterArea;n.filterArea=t.getBounds(!0),this.renderer.filter.push(n,s),n.filterArea=r,e._filters||this.alphaMaskIndex++}popSpriteMask(e){this.renderer.filter.pop(),e._filters?e._filters[0].maskSprite=null:(this.alphaMaskIndex--,this.alphaMaskPool[this.alphaMaskIndex][0].maskSprite=null)}pushColorMask(e){const t=e._colorMask,n=e._colorMask=t&e.colorMask;n!==t&&this.renderer.gl.colorMask((n&1)!==0,(n&2)!==0,(n&4)!==0,(n&8)!==0)}popColorMask(e){const t=e._colorMask,n=this.maskStack.length>0?this.maskStack[this.maskStack.length-1]._colorMask:15;n!==t&&this.renderer.gl.colorMask((n&1)!==0,(n&2)!==0,(n&4)!==0,(n&8)!==0)}destroy(){this.renderer=null}}Qw.extension={type:$e.RendererSystem,name:"mask"};He.add(Qw);class eS{constructor(e){this.renderer=e,this.maskStack=[],this.glConst=0}getStackLength(){return this.maskStack.length}setMaskStack(e){const{gl:t}=this.renderer,n=this.getStackLength();this.maskStack=e;const s=this.getStackLength();s!==n&&(s===0?t.disable(this.glConst):(t.enable(this.glConst),this._useCurrent()))}_useCurrent(){}destroy(){this.renderer=null,this.maskStack=null}}const U0=new zt,V0=[],tS=class Md extends eS{constructor(e){super(e),this.glConst=Xe.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST}getStackLength(){const e=this.maskStack[this.maskStack.length-1];return e?e._scissorCounter:0}calcScissorRect(e){if(e._scissorRectLocal)return;const t=e._scissorRect,{maskObject:n}=e,{renderer:s}=this,r=s.renderTexture,o=n.getBounds(!0,V0.pop()??new ht);this.roundFrameToPixels(o,r.current?r.current.resolution:s.resolution,r.sourceFrame,r.destinationFrame,s.projection.transform),t&&o.fit(t),e._scissorRectLocal=o}static Line truncated
data[offset] = v;
`,vec2:`
data[offset] = v[0];
@@ -484,7 +484,7 @@ void main(void)
var gl = renderer.gl
var index = 0;
var data = buffer.data;
`];for(let o=0;o<n.length;o++){const a=n[o],c=i.uniforms[a.data.name],l=a.data.name;let d=!1;for(let u=0;u<La.length;u++){const h=La[u];if(h.codeUbo&&h.test(a.data,c)){r.push(`offset = ${a.offset/4};`,La[u].codeUbo(a.data.name,c)),d=!0;break}}if(!d)if(a.data.size>1){const u=Xw(a.data.type),h=Math.max(aS[a.data.type]/16,1),f=u/h,p=(4-f%4)%4;r.push(`
`];for(let o=0;o<n.length;o++){const a=n[o],c=i.uniforms[a.data.name],l=a.data.name;let d=!1;for(let u=0;u<Da.length;u++){const h=Da[u];if(h.codeUbo&&h.test(a.data,c)){r.push(`offset = ${a.offset/4};`,Da[u].codeUbo(a.data.name,c)),d=!0;break}}if(!d)if(a.data.size>1){const u=Xw(a.data.type),h=Math.max(aS[a.data.type]/16,1),f=u/h,p=(4-f%4)%4;r.push(`
cv = ud.${l}.value;
v = uv.${l};
offset = ${a.offset/4};
@@ -508,7 +508,7 @@ void main(void)
`)}}return r.push(`
renderer.buffer.update(buffer);
`),{size:s,syncFunc:new Function("ud","uv","renderer","syncData","buffer",r.join(`
`))}}let MI=0;const Kc={textureCount:0,uboCount:0};class lS{constructor(e){this.destroyed=!1,this.renderer=e,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=MI++}systemCheck(){if(!eI())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")}contextChange(e){this.gl=e,this.reset()}bind(e,t){e.disposeRunner.add(this),e.uniforms.globals=this.renderer.globalUniforms;const n=e.program,s=n.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(e);return this.shader=e,this.program!==n&&(this.program=n,this.gl.useProgram(s.program)),t||(Kc.textureCount=0,Kc.uboCount=0,this.syncUniformGroup(e.uniformGroup,Kc)),s}setUniforms(e){const t=this.shader.program,n=t.glPrograms[this.renderer.CONTEXT_UID];t.syncUniforms(n.uniformData,e,this.renderer)}syncUniformGroup(e,t){const n=this.getGlProgram();(!e.static||e.dirtyId!==n.uniformDirtyGroups[e.id])&&(n.uniformDirtyGroups[e.id]=e.dirtyId,this.syncUniforms(e,n,t))}syncUniforms(e,t,n){(e.syncUniforms[this.shader.program.id]||this.createSyncGroups(e))(t.uniformData,e.uniforms,this.renderer,n)}createSyncGroups(e){const t=this.getSignature(e,this.shader.program.uniformData,"u");return this.cache[t]||(this.cache[t]=qk(e,this.shader.program.uniformData)),e.syncUniforms[this.shader.program.id]=this.cache[t],e.syncUniforms[this.shader.program.id]}syncUniformBufferGroup(e,t){const n=this.getGlProgram();if(!e.static||e.dirtyId!==0||!n.uniformGroups[e.id]){e.dirtyId=0;const s=n.uniformGroups[e.id]||this.createSyncBufferGroup(e,n,t);e.buffer.update(),s(n.uniformData,e.uniforms,this.renderer,Kc,e.buffer)}this.renderer.buffer.bindBufferBase(e.buffer,n.uniformBufferBindings[t])}createSyncBufferGroup(e,t,n){const{gl:s}=this.renderer;this.renderer.buffer.bind(e.buffer);const r=this.gl.getUniformBlockIndex(t.program,n);t.uniformBufferBindings[n]=this.shader.uniformBindCount,s.uniformBlockBinding(t.program,r,this.shader.uniformBindCount),this.shader.uniformBindCount++;const o=this.getSignature(e,this.shader.program.uniformData,"ubo");let a=this._uboCache[o];if(a||(a=this._uboCache[o]=_I(e,this.shader.program.uniformData)),e.autoManage){const c=new Float32Array(a.size/4);e.buffer.update(c)}return t.uniformGroups[e.id]=a.syncFunc,t.uniformGroups[e.id]}getSignature(e,t,n){const s=e.uniforms,r=[`${n}-`];for(const o in s)r.push(o),t[o]&&r.push(t[o].type);return r.join("-")}getGlProgram(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null}generateProgram(e){const t=this.gl,n=e.program,s=SI(t,n);return n.glPrograms[this.renderer.CONTEXT_UID]=s,s}reset(){this.program=null,this.shader=null}disposeShader(e){this.shader===e&&(this.shader=null)}destroy(){this.renderer=null,this.destroyed=!0}}lS.extension={type:$e.RendererSystem,name:"shader"};He.add(lS);class ru{constructor(e){this.renderer=e}run(e){const{renderer:t}=this;t.runners.init.emit(t.options),e.hello&&console.log(`PixiJS 7.4.3 - ${t.rendererLogId} - https://pixijs.com`),t.resize(t.screen.width,t.screen.height)}destroy(){}}ru.defaultOptions={hello:!1},ru.extension={type:[$e.RendererSystem,$e.CanvasRendererSystem],name:"startup"};He.add(ru);function PI(i,e=[]){return e[Qe.NORMAL]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.ADD]=[i.ONE,i.ONE],e[Qe.MULTIPLY]=[i.DST_COLOR,i.ONE_MINUS_SRC_ALPHA,i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.SCREEN]=[i.ONE,i.ONE_MINUS_SRC_COLOR,i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.OVERLAY]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.DARKEN]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.LIGHTEN]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.COLOR_DODGE]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.COLOR_BURN]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.HARD_LIGHT]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.SOFT_LIGHT]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.DIFFERENCE]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.EXCLUSION]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.HUE]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.SATURATION]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.COLOR]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.LUMINOSITY]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.NONE]=[0,0],e[Qe.NORMAL_NPM]=[i.SRC_ALPHA,i.ONE_MINUS_SRC_ALPHA,i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.ADD_NPM]=[i.SRC_ALPHA,i.ONE,i.ONE,i.ONE],e[Qe.SCREEN_NPM]=[i.SRC_ALPHA,i.ONE_MINUS_SRC_COLOR,i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.SRC_IN]=[i.DST_ALPHA,i.ZERO],e[Qe.SRC_OUT]=[i.ONE_MINUS_DST_ALPHA,i.ZERO],e[Qe.SRC_ATOP]=[i.DST_ALPHA,i.ONE_MINUS_SRC_ALPHA],e[Qe.DST_OVER]=[i.ONE_MINUS_DST_ALPHA,i.ONE],e[Qe.DST_IN]=[i.ZERO,i.SRC_ALPHA],e[Qe.DST_OUT]=[i.ZERO,i.ONE_MINUS_SRC_ALPHA],e[Qe.DST_ATOP]=[i.ONE_MINUS_DST_ALPHA,i.SRC_ALPHA],e[Qe.XOR]=[i.ONE_MINUS_DST_ALPHA,i.ONE_MINUS_SRC_ALPHA],e[Qe.SUBTRACT]=[i.ONE,i.ONE,i.ONE,i.ONE,i.FUNC_REVERSE_SUBTRACT,i.FUNC_ADD],e}const kI=0,II=1,RI=2,FI=3,LI=4,DI=5,cS=class rm{constructor(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=Qe.NONE,this._blendEq=!1,this.map=[],this.map[kI]=this.setBlend,this.map[II]=this.setOffset,this.map[RI]=this.setCullFace,this.map[FI]=this.setDepthTest,this.ma Line truncated
`))}}let MI=0;const Kc={textureCount:0,uboCount:0};class lS{constructor(e){this.destroyed=!1,this.renderer=e,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=MI++}systemCheck(){if(!eI())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")}contextChange(e){this.gl=e,this.reset()}bind(e,t){e.disposeRunner.add(this),e.uniforms.globals=this.renderer.globalUniforms;const n=e.program,s=n.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(e);return this.shader=e,this.program!==n&&(this.program=n,this.gl.useProgram(s.program)),t||(Kc.textureCount=0,Kc.uboCount=0,this.syncUniformGroup(e.uniformGroup,Kc)),s}setUniforms(e){const t=this.shader.program,n=t.glPrograms[this.renderer.CONTEXT_UID];t.syncUniforms(n.uniformData,e,this.renderer)}syncUniformGroup(e,t){const n=this.getGlProgram();(!e.static||e.dirtyId!==n.uniformDirtyGroups[e.id])&&(n.uniformDirtyGroups[e.id]=e.dirtyId,this.syncUniforms(e,n,t))}syncUniforms(e,t,n){(e.syncUniforms[this.shader.program.id]||this.createSyncGroups(e))(t.uniformData,e.uniforms,this.renderer,n)}createSyncGroups(e){const t=this.getSignature(e,this.shader.program.uniformData,"u");return this.cache[t]||(this.cache[t]=qk(e,this.shader.program.uniformData)),e.syncUniforms[this.shader.program.id]=this.cache[t],e.syncUniforms[this.shader.program.id]}syncUniformBufferGroup(e,t){const n=this.getGlProgram();if(!e.static||e.dirtyId!==0||!n.uniformGroups[e.id]){e.dirtyId=0;const s=n.uniformGroups[e.id]||this.createSyncBufferGroup(e,n,t);e.buffer.update(),s(n.uniformData,e.uniforms,this.renderer,Kc,e.buffer)}this.renderer.buffer.bindBufferBase(e.buffer,n.uniformBufferBindings[t])}createSyncBufferGroup(e,t,n){const{gl:s}=this.renderer;this.renderer.buffer.bind(e.buffer);const r=this.gl.getUniformBlockIndex(t.program,n);t.uniformBufferBindings[n]=this.shader.uniformBindCount,s.uniformBlockBinding(t.program,r,this.shader.uniformBindCount),this.shader.uniformBindCount++;const o=this.getSignature(e,this.shader.program.uniformData,"ubo");let a=this._uboCache[o];if(a||(a=this._uboCache[o]=_I(e,this.shader.program.uniformData)),e.autoManage){const c=new Float32Array(a.size/4);e.buffer.update(c)}return t.uniformGroups[e.id]=a.syncFunc,t.uniformGroups[e.id]}getSignature(e,t,n){const s=e.uniforms,r=[`${n}-`];for(const o in s)r.push(o),t[o]&&r.push(t[o].type);return r.join("-")}getGlProgram(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null}generateProgram(e){const t=this.gl,n=e.program,s=SI(t,n);return n.glPrograms[this.renderer.CONTEXT_UID]=s,s}reset(){this.program=null,this.shader=null}disposeShader(e){this.shader===e&&(this.shader=null)}destroy(){this.renderer=null,this.destroyed=!0}}lS.extension={type:$e.RendererSystem,name:"shader"};He.add(lS);class ru{constructor(e){this.renderer=e}run(e){const{renderer:t}=this;t.runners.init.emit(t.options),e.hello&&console.log(`PixiJS 7.4.3 - ${t.rendererLogId} - https://pixijs.com`),t.resize(t.screen.width,t.screen.height)}destroy(){}}ru.defaultOptions={hello:!1},ru.extension={type:[$e.RendererSystem,$e.CanvasRendererSystem],name:"startup"};He.add(ru);function PI(i,e=[]){return e[Qe.NORMAL]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.ADD]=[i.ONE,i.ONE],e[Qe.MULTIPLY]=[i.DST_COLOR,i.ONE_MINUS_SRC_ALPHA,i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.SCREEN]=[i.ONE,i.ONE_MINUS_SRC_COLOR,i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.OVERLAY]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.DARKEN]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.LIGHTEN]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.COLOR_DODGE]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.COLOR_BURN]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.HARD_LIGHT]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.SOFT_LIGHT]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.DIFFERENCE]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.EXCLUSION]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.HUE]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.SATURATION]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.COLOR]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.LUMINOSITY]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.NONE]=[0,0],e[Qe.NORMAL_NPM]=[i.SRC_ALPHA,i.ONE_MINUS_SRC_ALPHA,i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.ADD_NPM]=[i.SRC_ALPHA,i.ONE,i.ONE,i.ONE],e[Qe.SCREEN_NPM]=[i.SRC_ALPHA,i.ONE_MINUS_SRC_COLOR,i.ONE,i.ONE_MINUS_SRC_ALPHA],e[Qe.SRC_IN]=[i.DST_ALPHA,i.ZERO],e[Qe.SRC_OUT]=[i.ONE_MINUS_DST_ALPHA,i.ZERO],e[Qe.SRC_ATOP]=[i.DST_ALPHA,i.ONE_MINUS_SRC_ALPHA],e[Qe.DST_OVER]=[i.ONE_MINUS_DST_ALPHA,i.ONE],e[Qe.DST_IN]=[i.ZERO,i.SRC_ALPHA],e[Qe.DST_OUT]=[i.ZERO,i.ONE_MINUS_SRC_ALPHA],e[Qe.DST_ATOP]=[i.ONE_MINUS_DST_ALPHA,i.SRC_ALPHA],e[Qe.XOR]=[i.ONE_MINUS_DST_ALPHA,i.ONE_MINUS_SRC_ALPHA],e[Qe.SUBTRACT]=[i.ONE,i.ONE,i.ONE,i.ONE,i.FUNC_REVERSE_SUBTRACT,i.FUNC_ADD],e}const kI=0,II=1,RI=2,FI=3,LI=4,DI=5,cS=class rm{constructor(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=Qe.NONE,this._blendEq=!1,this.map=[],this.map[kI]=this.setBlend,this.map[II]=this.setOffset,this.map[RI]=this.setCullFace,this.map[FI]=this.setDepthTest,this.ma Line truncated
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
@@ -545,7 +545,7 @@ void main(void)
gl_Position = filterVertexPosition();
vTextureCoord = filterTextureCoord();
}
`;const YI=VI,mS=XI;class gS{constructor(e){this.renderer=e}contextChange(e){let t;if(this.renderer.context.webGLVersion===1){const n=e.getParameter(e.FRAMEBUFFER_BINDING);e.bindFramebuffer(e.FRAMEBUFFER,null),t=e.getParameter(e.SAMPLES),e.bindFramebuffer(e.FRAMEBUFFER,n)}else{const n=e.getParameter(e.DRAW_FRAMEBUFFER_BINDING);e.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),t=e.getParameter(e.SAMPLES),e.bindFramebuffer(e.DRAW_FRAMEBUFFER,n)}t>=yn.HIGH?this.multisample=yn.HIGH:t>=yn.MEDIUM?this.multisample=yn.MEDIUM:t>=yn.LOW?this.multisample=yn.LOW:this.multisample=yn.NONE}destroy(){}}gS.extension={type:$e.RendererSystem,name:"_multisample"};He.add(gS);class zI{constructor(e){this.buffer=e||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}}class vS{constructor(e){this.renderer=e,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(e){const{gl:t,CONTEXT_UID:n}=this,s=e._glBuffers[n]||this.createGLBuffer(e);t.bindBuffer(e.type,s.buffer)}unbind(e){const{gl:t}=this;t.bindBuffer(e,null)}bindBufferBase(e,t){const{gl:n,CONTEXT_UID:s}=this;if(this.boundBufferBases[t]!==e){const r=e._glBuffers[s]||this.createGLBuffer(e);this.boundBufferBases[t]=e,n.bindBufferBase(n.UNIFORM_BUFFER,t,r.buffer)}}bindBufferRange(e,t,n){const{gl:s,CONTEXT_UID:r}=this;n=n||0;const o=e._glBuffers[r]||this.createGLBuffer(e);s.bindBufferRange(s.UNIFORM_BUFFER,t||0,o.buffer,n*256,256)}update(e){const{gl:t,CONTEXT_UID:n}=this,s=e._glBuffers[n]||this.createGLBuffer(e);if(e._updateID!==s.updateID)if(s.updateID=e._updateID,t.bindBuffer(e.type,s.buffer),s.byteLength>=e.data.byteLength)t.bufferSubData(e.type,0,e.data);else{const r=e.static?t.STATIC_DRAW:t.DYNAMIC_DRAW;s.byteLength=e.data.byteLength,t.bufferData(e.type,e.data,r)}}dispose(e,t){if(!this.managedBuffers[e.id])return;delete this.managedBuffers[e.id];const n=e._glBuffers[this.CONTEXT_UID],s=this.gl;e.disposeRunner.remove(this),n&&(t||s.deleteBuffer(n.buffer),delete e._glBuffers[this.CONTEXT_UID])}disposeAll(e){const t=Object.keys(this.managedBuffers);for(let n=0;n<t.length;n++)this.dispose(this.managedBuffers[t[n]],e)}createGLBuffer(e){const{CONTEXT_UID:t,gl:n}=this;return e._glBuffers[t]=new zI(n.createBuffer()),this.managedBuffers[e.id]=e,e.disposeRunner.add(this),e._glBuffers[t]}}vS.extension={type:$e.RendererSystem,name:"buffer"};He.add(vS);class bS{constructor(e){this.renderer=e}render(e,t){const n=this.renderer;let s,r,o,a;if(t&&(s=t.renderTexture,r=t.clear,o=t.transform,a=t.skipUpdateTransform),this.renderingToScreen=!s,n.runners.prerender.emit(),n.emit("prerender"),n.projection.transform=o,!n.context.isLost){if(s||(this.lastObjectRendered=e),!a){const c=e.enableTempParent();e.updateTransform(),e.disableTempParent(c)}n.renderTexture.bind(s),n.batch.currentRenderer.start(),(r??n.background.clearBeforeRender)&&n.renderTexture.clear(),e.render(n),n.batch.currentRenderer.flush(),s&&(t.blit&&n.framebuffer.blit(),s.baseTexture.update()),n.runners.postrender.emit(),n.projection.transform=null,n.emit("postrender")}}destroy(){this.renderer=null,this.lastObjectRendered=null}}bS.extension={type:$e.RendererSystem,name:"objectRenderer"};He.add(bS);const kd=class om extends NI{constructor(e){super(),this.type=bw.WEBGL,e=Object.assign({},Xe.RENDER_OPTIONS,e),this.gl=null,this.CONTEXT_UID=0,this.globalUniforms=new is({projectionMatrix:new zt},!0);const t={runners:["init","destroy","contextChange","resolutionChange","reset","update","postrender","prerender","resize"],systems:om.__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(t),"useContextAlpha"in e&&(yt("7.0.0","options.useContextAlpha is deprecated, use options.premultipliedAlpha and options.backgroundAlpha instead"),e.premultipliedAlpha=e.useContextAlpha&&e.useContextAlpha!=="notMultiplied",e.backgroundAlpha=e.useContextAlpha===!1?1:e.backgroundAlpha),this._plugin.rendererPlugins=om.__plugins,this.options=e,this.startup.run(this.options)}static test(e){return e!=null&&e.forceCanvas?!1:pk()}render(e,t){this.objectRenderer.render(e,t)}resize(e,t){this._view.resizeView(e,t)}reset(){return this.runners.reset.emit(),this}clear(){this.renderTexture.bind(),this.renderTexture.clear()}destroy(e=!1){this.runners.destroy.items.reverse(),this.emitWithCustomOptions(this.runners.destroy,{_view:e}),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(e){this._view.resolution=e,this.runners.resolutionChange.emit(e)}get autoDensity(){return this._view.autoDensity}get view(){return Line truncated
`;const YI=VI,mS=XI;class gS{constructor(e){this.renderer=e}contextChange(e){let t;if(this.renderer.context.webGLVersion===1){const n=e.getParameter(e.FRAMEBUFFER_BINDING);e.bindFramebuffer(e.FRAMEBUFFER,null),t=e.getParameter(e.SAMPLES),e.bindFramebuffer(e.FRAMEBUFFER,n)}else{const n=e.getParameter(e.DRAW_FRAMEBUFFER_BINDING);e.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),t=e.getParameter(e.SAMPLES),e.bindFramebuffer(e.DRAW_FRAMEBUFFER,n)}t>=yn.HIGH?this.multisample=yn.HIGH:t>=yn.MEDIUM?this.multisample=yn.MEDIUM:t>=yn.LOW?this.multisample=yn.LOW:this.multisample=yn.NONE}destroy(){}}gS.extension={type:$e.RendererSystem,name:"_multisample"};He.add(gS);class zI{constructor(e){this.buffer=e||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}}class vS{constructor(e){this.renderer=e,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(e){const{gl:t,CONTEXT_UID:n}=this,s=e._glBuffers[n]||this.createGLBuffer(e);t.bindBuffer(e.type,s.buffer)}unbind(e){const{gl:t}=this;t.bindBuffer(e,null)}bindBufferBase(e,t){const{gl:n,CONTEXT_UID:s}=this;if(this.boundBufferBases[t]!==e){const r=e._glBuffers[s]||this.createGLBuffer(e);this.boundBufferBases[t]=e,n.bindBufferBase(n.UNIFORM_BUFFER,t,r.buffer)}}bindBufferRange(e,t,n){const{gl:s,CONTEXT_UID:r}=this;n=n||0;const o=e._glBuffers[r]||this.createGLBuffer(e);s.bindBufferRange(s.UNIFORM_BUFFER,t||0,o.buffer,n*256,256)}update(e){const{gl:t,CONTEXT_UID:n}=this,s=e._glBuffers[n]||this.createGLBuffer(e);if(e._updateID!==s.updateID)if(s.updateID=e._updateID,t.bindBuffer(e.type,s.buffer),s.byteLength>=e.data.byteLength)t.bufferSubData(e.type,0,e.data);else{const r=e.static?t.STATIC_DRAW:t.DYNAMIC_DRAW;s.byteLength=e.data.byteLength,t.bufferData(e.type,e.data,r)}}dispose(e,t){if(!this.managedBuffers[e.id])return;delete this.managedBuffers[e.id];const n=e._glBuffers[this.CONTEXT_UID],s=this.gl;e.disposeRunner.remove(this),n&&(t||s.deleteBuffer(n.buffer),delete e._glBuffers[this.CONTEXT_UID])}disposeAll(e){const t=Object.keys(this.managedBuffers);for(let n=0;n<t.length;n++)this.dispose(this.managedBuffers[t[n]],e)}createGLBuffer(e){const{CONTEXT_UID:t,gl:n}=this;return e._glBuffers[t]=new zI(n.createBuffer()),this.managedBuffers[e.id]=e,e.disposeRunner.add(this),e._glBuffers[t]}}vS.extension={type:$e.RendererSystem,name:"buffer"};He.add(vS);class bS{constructor(e){this.renderer=e}render(e,t){const n=this.renderer;let s,r,o,a;if(t&&(s=t.renderTexture,r=t.clear,o=t.transform,a=t.skipUpdateTransform),this.renderingToScreen=!s,n.runners.prerender.emit(),n.emit("prerender"),n.projection.transform=o,!n.context.isLost){if(s||(this.lastObjectRendered=e),!a){const c=e.enableTempParent();e.updateTransform(),e.disableTempParent(c)}n.renderTexture.bind(s),n.batch.currentRenderer.start(),(r??n.background.clearBeforeRender)&&n.renderTexture.clear(),e.render(n),n.batch.currentRenderer.flush(),s&&(t.blit&&n.framebuffer.blit(),s.baseTexture.update()),n.runners.postrender.emit(),n.projection.transform=null,n.emit("postrender")}}destroy(){this.renderer=null,this.lastObjectRendered=null}}bS.extension={type:$e.RendererSystem,name:"objectRenderer"};He.add(bS);const kd=class om extends NI{constructor(e){super(),this.type=bw.WEBGL,e=Object.assign({},Xe.RENDER_OPTIONS,e),this.gl=null,this.CONTEXT_UID=0,this.globalUniforms=new is({projectionMatrix:new zt},!0);const t={runners:["init","destroy","contextChange","resolutionChange","reset","update","postrender","prerender","resize"],systems:om.__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(t),"useContextAlpha"in e&&(yt("7.0.0","options.useContextAlpha is deprecated, use options.premultipliedAlpha and options.backgroundAlpha instead"),e.premultipliedAlpha=e.useContextAlpha&&e.useContextAlpha!=="notMultiplied",e.backgroundAlpha=e.useContextAlpha===!1?1:e.backgroundAlpha),this._plugin.rendererPlugins=om.__plugins,this.options=e,this.startup.run(this.options)}static test(e){return e!=null&&e.forceCanvas?!1:pk()}render(e,t){this.objectRenderer.render(e,t)}resize(e,t){this._view.resizeView(e,t)}reset(){return this.runners.reset.emit(),this}clear(){this.renderTexture.bind(),this.renderTexture.clear()}destroy(e=!1){this.runners.destroy.items.reverse(),this.emitWithCustomOptions(this.runners.destroy,{_view:e}),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(e){this._view.resolution=e,this.runners.resolutionChange.emit(e)}get autoDensity(){return this._view.autoDensity}get view(){return Line truncated
uniform sampler2D uSampler;
uniform float uAlpha;
@@ -885,7 +885,7 @@ void main()
gl_FragColor = color;
}
`;class gR extends oi{constructor(e=.5,t=Math.random()){super(mS,mR,{uNoise:0,uSeed:0}),this.noise=e,this.seed=t}get noise(){return this.uniforms.uNoise}set noise(e){this.uniforms.uNoise=e}get seed(){return this.uniforms.uSeed}set seed(e){this.uniforms.uSeed=e}}const Y0={AlphaFilter:tR,BlurFilter:aR,BlurFilterPass:hm,ColorMatrixFilter:fm,DisplacementFilter:uR,FXAAFilter:pR,NoiseFilter:gR};Object.entries(Y0).forEach(([i,e])=>{Object.defineProperty(Y0,i,{get(){return yt("7.1.0",`filters.${i} has moved to ${i}`),e}})});class vR{constructor(){this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}init(e){this.removeTickerListener(),this.events=e,this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}get pauseUpdate(){return this._pauseUpdate}set pauseUpdate(e){this._pauseUpdate=e}addTickerListener(){this.tickerAdded||!this.domElement||(ai.system.add(this.tickerUpdate,this,jo.INTERACTION),this.tickerAdded=!0)}removeTickerListener(){this.tickerAdded&&(ai.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 e=this.events.rootPointerEvent;this.events.supportsTouchEvents&&e.pointerType==="touch"||globalThis.document.dispatchEvent(new PointerEvent("pointermove",{clientX:e.clientX,clientY:e.clientY}))}tickerUpdate(e){this._deltaTime+=e,!(this._deltaTime<this.interactionFrequency)&&(this._deltaTime=0,this.update())}}const Yr=new vR;class Ac{constructor(e){this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.composed=!1,this.defaultPrevented=!1,this.eventPhase=Ac.prototype.NONE,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new Pt,this.page=new Pt,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=e}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(e,t,n){throw new Error("initEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}initUIEvent(e,t,n,s,r){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 au extends Ac{constructor(){super(...arguments),this.client=new Pt,this.movement=new Pt,this.offset=new Pt,this.global=new Pt,this.screen=new Pt}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(e,t,n){return e.worldTransform.applyInverse(n||this.global,t)}getModifierState(e){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(e)}initMouseEvent(e,t,n,s,r,o,a,c,l,d,u,h,f,p,m){throw new Error("Method not implemented.")}}class Hi extends au{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 Da extends au{constructor(){super(...arguments),this.DOM_DELTA_PIXEL=0,this.DOM_DELTA_LINE=1,this.DOM_DELTA_PAGE=2}}Da.DOM_DELTA_PIXEL=0,Da.DOM_DELTA_LINE=1,Da.DOM_DELTA_PAGE=2;const bR=2048,yR=new Pt,ep=new Pt;class xR{constructor(e){this.dispatch=new Cc,this.moveOnAll=!1,this.enableGlobalMoveEvents=!0,this.mappingState={trackingData:{}},this.eventPool=new Map,this._allInteractiveElements=[],this._hitElements=[],this._isPointerMoveEvent=!1,this.rootTarget=e,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
`;class gR extends oi{constructor(e=.5,t=Math.random()){super(mS,mR,{uNoise:0,uSeed:0}),this.noise=e,this.seed=t}get noise(){return this.uniforms.uNoise}set noise(e){this.uniforms.uNoise=e}get seed(){return this.uniforms.uSeed}set seed(e){this.uniforms.uSeed=e}}const Y0={AlphaFilter:tR,BlurFilter:aR,BlurFilterPass:hm,ColorMatrixFilter:fm,DisplacementFilter:uR,FXAAFilter:pR,NoiseFilter:gR};Object.entries(Y0).forEach(([i,e])=>{Object.defineProperty(Y0,i,{get(){return yt("7.1.0",`filters.${i} has moved to ${i}`),e}})});class vR{constructor(){this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}init(e){this.removeTickerListener(),this.events=e,this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}get pauseUpdate(){return this._pauseUpdate}set pauseUpdate(e){this._pauseUpdate=e}addTickerListener(){this.tickerAdded||!this.domElement||(ai.system.add(this.tickerUpdate,this,jo.INTERACTION),this.tickerAdded=!0)}removeTickerListener(){this.tickerAdded&&(ai.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 e=this.events.rootPointerEvent;this.events.supportsTouchEvents&&e.pointerType==="touch"||globalThis.document.dispatchEvent(new PointerEvent("pointermove",{clientX:e.clientX,clientY:e.clientY}))}tickerUpdate(e){this._deltaTime+=e,!(this._deltaTime<this.interactionFrequency)&&(this._deltaTime=0,this.update())}}const Yr=new vR;class Ac{constructor(e){this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.composed=!1,this.defaultPrevented=!1,this.eventPhase=Ac.prototype.NONE,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new Pt,this.page=new Pt,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=e}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(e,t,n){throw new Error("initEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}initUIEvent(e,t,n,s,r){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 au extends Ac{constructor(){super(...arguments),this.client=new Pt,this.movement=new Pt,this.offset=new Pt,this.global=new Pt,this.screen=new Pt}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(e,t,n){return e.worldTransform.applyInverse(n||this.global,t)}getModifierState(e){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(e)}initMouseEvent(e,t,n,s,r,o,a,c,l,d,u,h,f,p,m){throw new Error("Method not implemented.")}}class Hi extends au{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 Oa extends au{constructor(){super(...arguments),this.DOM_DELTA_PIXEL=0,this.DOM_DELTA_LINE=1,this.DOM_DELTA_PAGE=2}}Oa.DOM_DELTA_PIXEL=0,Oa.DOM_DELTA_LINE=1,Oa.DOM_DELTA_PAGE=2;const bR=2048,yR=new Pt,ep=new Pt;class xR{constructor(e){this.dispatch=new Cc,this.moveOnAll=!1,this.enableGlobalMoveEvents=!0,this.mappingState={trackingData:{}},this.eventPool=new Map,this._allInteractiveElements=[],this._hitElements=[],this._isPointerMoveEvent=!1,this.rootTarget=e,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(c),r?s[o[0].src]:s}async unload(e){const t=Wi(e,n=>({alias:[n],src:n})).map(async n=>{var o,a;const s=pn.toAbsolute(n.src),r=this.promiseCache[s];if(r){const c=await r.promise;delete this.promiseCache[s],(a=(o=r.parser)==null?void 0:o.unload)==null||a.call(o,c,n,this)}});await Promise.all(t)}_validateParsers(){this._parsersValidated=!0,this._parserHash=this._parsers.filter(e=>e.name).reduce((e,t)=>(e[t.name]&&console.warn(`[Assets] loadParser name conflict "${t.name}"`),{...e,[t.name]:t}),{})}}var Ei=(i=>(i[i.Low=0]="Low",i[i.Normal=1]="Normal",i[i.High=2]="High",i))(Ei||{});const DR=".json",OR="application/json",NR={extension:{type:$e.LoadParser,priority:Ei.Low},name:"loadJson",test(i){return sl(i,OR)||fi(i,DR)},async load(i){return await(await Xe.ADAPTER.fetch(i)).json()}};He.add(NR);const $R=".txt",BR="text/plain",UR={name:"loadTxt",extension:{type:$e.LoadParser,priority:Ei.Low},test(i){return sl(i,BR)||fi(i,$R)},async load(i){return await(await Xe.ADAPTER.fetch(i)).text()}};He.add(UR);const VR=["normal","bold","100","200","300","400","500","600","700","800","900"],XR=[".ttf",".otf",".woff",".woff2"],YR=["font/ttf","font/otf","font/woff","font/woff2"],zR=/^(--|-?[A-Z_])[0-9A-Z_-]*$/i;function jR(i){const e=pn.extname(i),t=pn.basename(i,e).replace(/(-|_)/g," ").toLowerCase().split(" ").map(r=>r.charAt(0).toUpperCase()+r.slice(1));let n=t.length>0;for(const r of t)if(!r.match(zR)){n=!1;break}let s=t.join(" ");return n||(s=`"${s.replace(/[\\"]/g,"\\$&")}"`),s}const HR=/^[0-9A-Za-z%:/?#\[\]@!\$&'()\*\+,;=\-._~]*$/;function GR(i){return HR.test(i)?i:encodeURI(i)}const WR={extension:{type:$e.LoadParser,priority:Ei.Low},name:"loadWebFont",test(i){return sl(i,YR)||fi(i,XR)},async load(i,e){var n,s,r;const t=Xe.ADAPTER.getFontFaceSet();if(t){const o=[],a=((n=e.data)==null?void 0:n.family)??jR(i),c=((r=(s=e.data)==null?void 0:s.weights)==null?void 0:r.filter(d=>VR.includes(d)))??["normal"],l=e.data??{};for(let d=0;d<c.length;d++){const u=c[d],h=new FontFace(a,`url(${GR(i)})`,{...l,weight:u});await h.load(),t.add(h),o.push(h)}return o.length===1?o[0]:o}return console.warn("[loadWebFont] FontFace API is not supported. Skipping loading font"),null},unload(i){(Array.isArray(i)?i:[i]).forEach(e=>Xe.ADAPTER.getFontFaceSet().delete(e))}};He.add(WR);const qR=`(function() {
"use strict";
const WHITE_PNG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=";
@@ -903,7 +903,7 @@ ${u}`)}});return await Promise.all(c),r?s[o[0].src]:s}async unload(e){const t=Wi
self.postMessage(result);
});
})();
`;let Oa=null,bm=class{constructor(){Oa||(Oa=URL.createObjectURL(new Blob([qR],{type:"application/javascript"}))),this.worker=new Worker(Oa)}};bm.revokeObjectURL=function(){Oa&&(URL.revokeObjectURL(Oa),Oa=null)};const KR=`(function() {
`;let Na=null,bm=class{constructor(){Na||(Na=URL.createObjectURL(new Blob([qR],{type:"application/javascript"}))),this.worker=new Worker(Na)}};bm.revokeObjectURL=function(){Na&&(URL.revokeObjectURL(Na),Na=null)};const KR=`(function() {
"use strict";
async function loadImageBitmap(url) {
const response = await fetch(url);
@@ -929,8 +929,8 @@ ${u}`)}});return await Promise.all(c),r?s[o[0].src]:s}async unload(e){const t=Wi
}
};
})();
`;let Na=null;class PS{constructor(){Na||(Na=URL.createObjectURL(new Blob([KR],{type:"application/javascript"}))),this.worker=new Worker(Na)}}PS.revokeObjectURL=function(){Na&&(URL.revokeObjectURL(Na),Na=null)};let W0=0,tp;class JR{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(e=>{const{worker:t}=new bm;t.addEventListener("message",n=>{t.terminate(),bm.revokeObjectURL(),e(n.data)})}),this._isImageBitmapSupported)}loadImageBitmap(e){return this._run("loadImageBitmap",[e])}async _initWorkers(){this._initialized||(this._initialized=!0)}getWorker(){tp===void 0&&(tp=navigator.hardwareConcurrency||4);let e=this.workerPool.pop();return!e&&this._createdWorkers<tp&&(this._createdWorkers++,e=new PS().worker,e.addEventListener("message",t=>{this.complete(t.data),this.returnWorker(t.target),this.next()})),e}returnWorker(e){this.workerPool.push(e)}complete(e){e.error!==void 0?this.resolveHash[e.uuid].reject(e.error):this.resolveHash[e.uuid].resolve(e.data),this.resolveHash[e.uuid]=null}async _run(e,t){await this._initWorkers();const n=new Promise((s,r)=>{this.queue.push({id:e,arguments:t,resolve:s,reject:r})});return this.next(),n}next(){if(!this.queue.length)return;const e=this.getWorker();if(!e)return;const t=this.queue.pop(),n=t.id;this.resolveHash[W0]={resolve:t.resolve,reject:t.reject},e.postMessage({data:t.arguments,uuid:W0++,id:n})}}const q0=new JR;function Tc(i,e,t){i.resource.internal=!0;const n=new tt(i),s=()=>{delete e.promiseCache[t],Mo.has(t)&&Mo.remove(t)};return n.baseTexture.once("destroyed",()=>{t in e.promiseCache&&(console.warn("[Assets] A BaseTexture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the BaseTexture."),s())}),n.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."),s())}),n}const ZR=[".jpeg",".jpg",".png",".webp",".avif"],QR=["image/jpeg","image/png","image/webp","image/avif"];async function e2(i){const e=await Xe.ADAPTER.fetch(i);if(!e.ok)throw new Error(`[loadImageBitmap] Failed to fetch ${i}: ${e.status} ${e.statusText}`);const t=await e.blob();return await createImageBitmap(t)}const fh={name:"loadTextures",extension:{type:$e.LoadParser,priority:Ei.High},config:{preferWorkers:!0,preferCreateImageBitmap:!0,crossOrigin:"anonymous"},test(i){return sl(i,QR)||fi(i,ZR)},async load(i,e,t){var a;const n=globalThis.createImageBitmap&&this.config.preferCreateImageBitmap;let s;n?this.config.preferWorkers&&await q0.isImageBitmapSupported()?s=await q0.loadImageBitmap(i):s=await e2(i):s=await new Promise((c,l)=>{const d=new Image;d.crossOrigin=this.config.crossOrigin,d.src=i,d.complete?c(d):(d.onload=()=>c(d),d.onerror=u=>l(u))});const r={...e.data};r.resolution??(r.resolution=br(i)),n&&((a=r.resourceOptions)==null?void 0:a.ownsImageBitmap)===void 0&&(r.resourceOptions={...r.resourceOptions},r.resourceOptions.ownsImageBitmap=!0);const o=new st(s,r);return o.resource.src=i,Tc(o,t,i)},unload(i){i.destroy(!0)}};He.add(fh);const t2=".svg",n2="image/svg+xml",i2={extension:{type:$e.LoadParser,priority:Ei.High},name:"loadSVG",test(i){return sl(i,n2)||fi(i,t2)},async testParse(i){return lm.test(i)},async parse(i,e,t){var r;const n=new lm(i,(r=e==null?void 0:e.data)==null?void 0:r.resourceOptions);await n.load();const s=new st(n,{resolution:br(i),...e==null?void 0:e.data});return s.resource.src=e.src,Tc(s,t,e.src)},async load(i,e){return(await Xe.ADAPTER.fetch(i)).text()},unload:fh.unload};He.add(i2);const s2=[".mp4",".m4v",".webm",".ogv"],r2=["video/mp4","video/webm","video/ogg"],o2={name:"loadVideo",extension:{type:$e.LoadParser,priority:Ei.High},config:{defaultAutoPlay:!0,defaultUpdateFPS:0,defaultLoop:!1,defaultMuted:!1,defaultPlaysinline:!0},test(i){return sl(i,r2)||fi(i,s2)},async load(i,e,t){var o;let n;const s=await(await Xe.ADAPTER.fetch(i)).blob(),r=URL.createObjectURL(s);try{const a={autoPlay:this.config.defaultAutoPlay,updateFPS:this.config.defaultUpdateFPS,loop:this.config.defaultLoop,muted:this.config.defaultMuted,playsinline:this.config.defaultPlaysinline,...(o=e==null?void 0:e.data)==null?void 0:o.resourceOptions,autoLoad:!0},c=new wS(r,a);await c.load();const l=new st(c,{alphaMode:await fk(),resolution:br(i),...e==null?void 0:e.data});l.resource.src=i,n=Tc(l,t,i),n.baseTexture.once("destroyed",()=>{URL.revokeObjectURL(r)})}catch(a){throw URL.revokeObjectURL(r),a}return n},unload(i){i.destroy(!0)}};He.add(o2);class a2{constructor(){this._defaultBundleIdentifierOptions={connector:"-",createBundleAssetId:(e,t)=>`${e}${this._bundleIdConnector}${t}`,extractAssetIdFromBundle:(e,t)=>t.replace(`${e}${this._bundleIdConnector}`,"")},this._bundleIdConnector=this._defaultBundleIdentifierOptions.connector,this._createBundleAssetId= Line truncated
Please use Assets.add({ alias, src, data, format, loadParser }) instead.`),o.push({alias:e,src:t,data:n,format:s,loadParser:r})):Array.isArray(e)?o.push(...e):o.push(e);let a;a=c=>{this.hasKey(c)&&console.warn(`[Resolver] already has key: ${c} overwriting`)},Wi(o).forEach(c=>{const{src:l,srcs:d}=c;let{data:u,format:h,loadParser:f}=c;const p=Wi(l||d).map(v=>typeof v=="string"?RR(v):Array.isArray(v)?v:[v]),m=this.getAlias(c);Array.isArray(m)?m.forEach(a):a(m);const g=[];p.forEach(v=>{v.forEach(y=>{let b={};if(typeof y!="object"){b.src=y;for(let x=0;x<this._parsers.length;x++){const T=this._parsers[x];if(T.test(y)){b=T.parse(y);break}}}else u=y.data??u,h=y.format??h,f=y.loadParser??f,b={...b,...y};if(!m)throw new Error(`[Resolver] alias is undefined for this asset: ${b.src}`);b=this.buildResolvedAsset(b,{aliases:m,data:u,format:h,loadParser:f}),g.push(b)})}),m.forEach(v=>{this._assetMap[v]=g})})}resolveBundle(e){const t=cu(e);e=Wi(e);const n={};return e.forEach(s=>{const r=this._bundles[s];if(r){const o=this.resolve(r),a={};for(const c in o){const l=o[c];a[this._extractAssetIdFromBundle(s,c)]=l}n[s]=a}}),t?n[e[0]]:n}resolveUrl(e){const t=this.resolve(e);if(typeof e!="string"){const n={};for(const s in t)n[s]=t[s].src;return n}return t.src}resolve(e){const t=cu(e);e=Wi(e);const n={};return e.forEach(s=>{if(!this._resolverHash[s])if(this._assetMap[s]){let r=this._assetMap[s];const o=r[0],a=this._getPreferredOrder(r);a==null||a.priority.forEach(c=>{a.params[c].forEach(l=>{const d=r.filter(u=>u[c]?u[c]===l:!1);d.length&&(r=d)})}),this._resolverHash[s]=r[0]??o}else this._resolverHash[s]=this.buildResolvedAsset({alias:[s],src:s},{});n[s]=this._resolverHash[s]}),t?n[e[0]]:n}hasKey(e){return!!this._assetMap[e]}hasBundle(e){return!!this._bundles[e]}_getPreferredOrder(e){for(let t=0;t<e.length;t++){const n=e[0],s=this._preferredOrder.find(r=>r.params.format.includes(n.format));if(s)return s}return this._preferredOrder[0]}_appendDefaultSearchParams(e){if(!this._defaultSearchParams)return e;const t=/\?/.test(e)?"&":"?";return`${e}${t}${this._defaultSearchParams}`}buildResolvedAsset(e,t){const{aliases:n,data:s,loadParser:r,format:o}=t;return(this._basePath||this._rootPath)&&(e.src=pn.toAbsolute(e.src,this._basePath,this._rootPath)),e.alias=n??e.alias??[e.src],e.src=this._appendDefaultSearchParams(e.src),e.data={...s||{},...e.data},e.loadParser=r??e.loadParser,e.format=o??e.format??pn.extname(e.src).slice(1),e.srcs=e.src,e.name=e.alias,e}}class l2{constructor(){this._detections=[],this._initialized=!1,this.resolver=new a2,this.loader=new LR,this.cache=Mo,this._backgroundLoader=new IR(this.loader),this._backgroundLoader.active=!0,this.reset()}async init(e={}){var r,o;if(this._initialized){console.warn("[Assets]AssetManager already initialized, did you load before calling this Assets.init()?");return}if(this._initialized=!0,e.defaultSearchParams&&this.resolver.setDefaultSearchParams(e.defaultSearchParams),e.basePath&&(this.resolver.basePath=e.basePath),e.bundleIdentifier&&this.resolver.setBundleIdentifier(e.bundleIdentifier),e.manifest){let a=e.manifest;typeof a=="string"&&(a=await this.load(a)),this.resolver.addManifest(a)}const t=((r=e.texturePreference)==null?void 0:r.resolution)??1,n=typeof t=="number"?[t]:t,s=await this._detectFormats({preferredFormats:(o=e.texturePreference)==null?void 0:o.format,skipDetections:e.skipDetections,detections:this._detections});this.resolver.prefer({params:{format:s,resolution:n}}),e.preferences&&this.setPreferences(e.preferences)}add(e,t,n,s,r){this.resolver.add(e,t,n,s,r)}async load(e,t){this._initialized||await this.init();const n=cu(e),s=Wi(e).map(a=>{if(typeof a!="string"){const c=this.resolver.getAlias(a);return c.some(l=>!this.resolver.hasKey(l))&&this.add(a),Array.isArray(c)?c[0]:c}return this.resolver.hasKey(a)||this.add({alias:a,src:a}),a}),r=this.resolver.resolve(s),o=await this._mapLoadToResolve(r,t);return n?o[s[0]]:o}addBundle(e,t){this.resolver.addBundle(e,t)}async loadBundle(e,t){this._initialized||await this.init();let n=!1;typeof e=="string"&&(n=!0,e=[e]);const s=this.resolver.resolveBundle(e),r={},o=Object.keys(s);let a=0,c=0;const l=()=>{t==null||t(++a/c)},d=o.map(u=>{const h=s[u];return c+=Object.keys(h).length,this._mapLoadToResolve(h,l).then(f=>{r[u]=f})});return await Promise.all(d),n?r[e[0]]:r}async backgroundLoad(e){this._initialized||await this.init(),typeof e=="string"&&(e=[e]);const t=this.resolver.resolve(e);this._backgroundLoader.add(Object.values(t))}async backgroundLoadBundle(e){this._initialized||await this.init(),typeof e=="string"&&(e=[e]);const t=this.resolver.resolveBundle(e);Object.values(t).forEach(n=>{this._backgroundLoader.add(Object.values(n))})}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=!1}get(e){if(typeof e=="string")return Mo.get(e);const t={};for(let n=0;n<e.length;n++)t[n]=Mo.get(e[n]);return t}async _mapLoadToResolve(e,t){const n=Object.values(e),s=Object.keys(e);this._backgroundLoader.active=!1;co Line truncated
`;let $a=null;class PS{constructor(){$a||($a=URL.createObjectURL(new Blob([KR],{type:"application/javascript"}))),this.worker=new Worker($a)}}PS.revokeObjectURL=function(){$a&&(URL.revokeObjectURL($a),$a=null)};let W0=0,tp;class JR{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(e=>{const{worker:t}=new bm;t.addEventListener("message",n=>{t.terminate(),bm.revokeObjectURL(),e(n.data)})}),this._isImageBitmapSupported)}loadImageBitmap(e){return this._run("loadImageBitmap",[e])}async _initWorkers(){this._initialized||(this._initialized=!0)}getWorker(){tp===void 0&&(tp=navigator.hardwareConcurrency||4);let e=this.workerPool.pop();return!e&&this._createdWorkers<tp&&(this._createdWorkers++,e=new PS().worker,e.addEventListener("message",t=>{this.complete(t.data),this.returnWorker(t.target),this.next()})),e}returnWorker(e){this.workerPool.push(e)}complete(e){e.error!==void 0?this.resolveHash[e.uuid].reject(e.error):this.resolveHash[e.uuid].resolve(e.data),this.resolveHash[e.uuid]=null}async _run(e,t){await this._initWorkers();const n=new Promise((s,r)=>{this.queue.push({id:e,arguments:t,resolve:s,reject:r})});return this.next(),n}next(){if(!this.queue.length)return;const e=this.getWorker();if(!e)return;const t=this.queue.pop(),n=t.id;this.resolveHash[W0]={resolve:t.resolve,reject:t.reject},e.postMessage({data:t.arguments,uuid:W0++,id:n})}}const q0=new JR;function Tc(i,e,t){i.resource.internal=!0;const n=new tt(i),s=()=>{delete e.promiseCache[t],Mo.has(t)&&Mo.remove(t)};return n.baseTexture.once("destroyed",()=>{t in e.promiseCache&&(console.warn("[Assets] A BaseTexture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the BaseTexture."),s())}),n.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."),s())}),n}const ZR=[".jpeg",".jpg",".png",".webp",".avif"],QR=["image/jpeg","image/png","image/webp","image/avif"];async function e2(i){const e=await Xe.ADAPTER.fetch(i);if(!e.ok)throw new Error(`[loadImageBitmap] Failed to fetch ${i}: ${e.status} ${e.statusText}`);const t=await e.blob();return await createImageBitmap(t)}const fh={name:"loadTextures",extension:{type:$e.LoadParser,priority:Ei.High},config:{preferWorkers:!0,preferCreateImageBitmap:!0,crossOrigin:"anonymous"},test(i){return sl(i,QR)||fi(i,ZR)},async load(i,e,t){var a;const n=globalThis.createImageBitmap&&this.config.preferCreateImageBitmap;let s;n?this.config.preferWorkers&&await q0.isImageBitmapSupported()?s=await q0.loadImageBitmap(i):s=await e2(i):s=await new Promise((c,l)=>{const d=new Image;d.crossOrigin=this.config.crossOrigin,d.src=i,d.complete?c(d):(d.onload=()=>c(d),d.onerror=u=>l(u))});const r={...e.data};r.resolution??(r.resolution=br(i)),n&&((a=r.resourceOptions)==null?void 0:a.ownsImageBitmap)===void 0&&(r.resourceOptions={...r.resourceOptions},r.resourceOptions.ownsImageBitmap=!0);const o=new st(s,r);return o.resource.src=i,Tc(o,t,i)},unload(i){i.destroy(!0)}};He.add(fh);const t2=".svg",n2="image/svg+xml",i2={extension:{type:$e.LoadParser,priority:Ei.High},name:"loadSVG",test(i){return sl(i,n2)||fi(i,t2)},async testParse(i){return lm.test(i)},async parse(i,e,t){var r;const n=new lm(i,(r=e==null?void 0:e.data)==null?void 0:r.resourceOptions);await n.load();const s=new st(n,{resolution:br(i),...e==null?void 0:e.data});return s.resource.src=e.src,Tc(s,t,e.src)},async load(i,e){return(await Xe.ADAPTER.fetch(i)).text()},unload:fh.unload};He.add(i2);const s2=[".mp4",".m4v",".webm",".ogv"],r2=["video/mp4","video/webm","video/ogg"],o2={name:"loadVideo",extension:{type:$e.LoadParser,priority:Ei.High},config:{defaultAutoPlay:!0,defaultUpdateFPS:0,defaultLoop:!1,defaultMuted:!1,defaultPlaysinline:!0},test(i){return sl(i,r2)||fi(i,s2)},async load(i,e,t){var o;let n;const s=await(await Xe.ADAPTER.fetch(i)).blob(),r=URL.createObjectURL(s);try{const a={autoPlay:this.config.defaultAutoPlay,updateFPS:this.config.defaultUpdateFPS,loop:this.config.defaultLoop,muted:this.config.defaultMuted,playsinline:this.config.defaultPlaysinline,...(o=e==null?void 0:e.data)==null?void 0:o.resourceOptions,autoLoad:!0},c=new wS(r,a);await c.load();const l=new st(c,{alphaMode:await fk(),resolution:br(i),...e==null?void 0:e.data});l.resource.src=i,n=Tc(l,t,i),n.baseTexture.once("destroyed",()=>{URL.revokeObjectURL(r)})}catch(a){throw URL.revokeObjectURL(r),a}return n},unload(i){i.destroy(!0)}};He.add(o2);class a2{constructor(){this._defaultBundleIdentifierOptions={connector:"-",createBundleAssetId:(e,t)=>`${e}${this._bundleIdConnector}${t}`,extractAssetIdFromBundle:(e,t)=>t.replace(`${e}${this._bundleIdConnector}`,"")},this._bundleIdConnector=this._defaultBundleIdentifierOptions.connector,this._createBundleAssetId= Line truncated
Please use Assets.add({ alias, src, data, format, loadParser }) instead.`),o.push({alias:e,src:t,data:n,format:s,loadParser:r})):Array.isArray(e)?o.push(...e):o.push(e);let a;a=c=>{this.hasKey(c)&&console.warn(`[Resolver] already has key: ${c} overwriting`)},Wi(o).forEach(c=>{const{src:l,srcs:d}=c;let{data:u,format:h,loadParser:f}=c;const p=Wi(l||d).map(v=>typeof v=="string"?RR(v):Array.isArray(v)?v:[v]),m=this.getAlias(c);Array.isArray(m)?m.forEach(a):a(m);const g=[];p.forEach(v=>{v.forEach(y=>{let b={};if(typeof y!="object"){b.src=y;for(let x=0;x<this._parsers.length;x++){const T=this._parsers[x];if(T.test(y)){b=T.parse(y);break}}}else u=y.data??u,h=y.format??h,f=y.loadParser??f,b={...b,...y};if(!m)throw new Error(`[Resolver] alias is undefined for this asset: ${b.src}`);b=this.buildResolvedAsset(b,{aliases:m,data:u,format:h,loadParser:f}),g.push(b)})}),m.forEach(v=>{this._assetMap[v]=g})})}resolveBundle(e){const t=cu(e);e=Wi(e);const n={};return e.forEach(s=>{const r=this._bundles[s];if(r){const o=this.resolve(r),a={};for(const c in o){const l=o[c];a[this._extractAssetIdFromBundle(s,c)]=l}n[s]=a}}),t?n[e[0]]:n}resolveUrl(e){const t=this.resolve(e);if(typeof e!="string"){const n={};for(const s in t)n[s]=t[s].src;return n}return t.src}resolve(e){const t=cu(e);e=Wi(e);const n={};return e.forEach(s=>{if(!this._resolverHash[s])if(this._assetMap[s]){let r=this._assetMap[s];const o=r[0],a=this._getPreferredOrder(r);a==null||a.priority.forEach(c=>{a.params[c].forEach(l=>{const d=r.filter(u=>u[c]?u[c]===l:!1);d.length&&(r=d)})}),this._resolverHash[s]=r[0]??o}else this._resolverHash[s]=this.buildResolvedAsset({alias:[s],src:s},{});n[s]=this._resolverHash[s]}),t?n[e[0]]:n}hasKey(e){return!!this._assetMap[e]}hasBundle(e){return!!this._bundles[e]}_getPreferredOrder(e){for(let t=0;t<e.length;t++){const n=e[0],s=this._preferredOrder.find(r=>r.params.format.includes(n.format));if(s)return s}return this._preferredOrder[0]}_appendDefaultSearchParams(e){if(!this._defaultSearchParams)return e;const t=/\?/.test(e)?"&":"?";return`${e}${t}${this._defaultSearchParams}`}buildResolvedAsset(e,t){const{aliases:n,data:s,loadParser:r,format:o}=t;return(this._basePath||this._rootPath)&&(e.src=pn.toAbsolute(e.src,this._basePath,this._rootPath)),e.alias=n??e.alias??[e.src],e.src=this._appendDefaultSearchParams(e.src),e.data={...s||{},...e.data},e.loadParser=r??e.loadParser,e.format=o??e.format??pn.extname(e.src).slice(1),e.srcs=e.src,e.name=e.alias,e}}class l2{constructor(){this._detections=[],this._initialized=!1,this.resolver=new a2,this.loader=new LR,this.cache=Mo,this._backgroundLoader=new IR(this.loader),this._backgroundLoader.active=!0,this.reset()}async init(e={}){var r,o;if(this._initialized){console.warn("[Assets]AssetManager already initialized, did you load before calling this Assets.init()?");return}if(this._initialized=!0,e.defaultSearchParams&&this.resolver.setDefaultSearchParams(e.defaultSearchParams),e.basePath&&(this.resolver.basePath=e.basePath),e.bundleIdentifier&&this.resolver.setBundleIdentifier(e.bundleIdentifier),e.manifest){let a=e.manifest;typeof a=="string"&&(a=await this.load(a)),this.resolver.addManifest(a)}const t=((r=e.texturePreference)==null?void 0:r.resolution)??1,n=typeof t=="number"?[t]:t,s=await this._detectFormats({preferredFormats:(o=e.texturePreference)==null?void 0:o.format,skipDetections:e.skipDetections,detections:this._detections});this.resolver.prefer({params:{format:s,resolution:n}}),e.preferences&&this.setPreferences(e.preferences)}add(e,t,n,s,r){this.resolver.add(e,t,n,s,r)}async load(e,t){this._initialized||await this.init();const n=cu(e),s=Wi(e).map(a=>{if(typeof a!="string"){const c=this.resolver.getAlias(a);return c.some(l=>!this.resolver.hasKey(l))&&this.add(a),Array.isArray(c)?c[0]:c}return this.resolver.hasKey(a)||this.add({alias:a,src:a}),a}),r=this.resolver.resolve(s),o=await this._mapLoadToResolve(r,t);return n?o[s[0]]:o}addBundle(e,t){this.resolver.addBundle(e,t)}async loadBundle(e,t){this._initialized||await this.init();let n=!1;typeof e=="string"&&(n=!0,e=[e]);const s=this.resolver.resolveBundle(e),r={},o=Object.keys(s);let a=0,c=0;const l=()=>{t==null||t(++a/c)},d=o.map(u=>{const h=s[u];return c+=Object.keys(h).length,this._mapLoadToResolve(h,l).then(f=>{r[u]=f})});return await Promise.all(d),n?r[e[0]]:r}async backgroundLoad(e){this._initialized||await this.init(),typeof e=="string"&&(e=[e]);const t=this.resolver.resolve(e);this._backgroundLoader.add(Object.values(t))}async backgroundLoadBundle(e){this._initialized||await this.init(),typeof e=="string"&&(e=[e]);const t=this.resolver.resolveBundle(e);Object.values(t).forEach(n=>{this._backgroundLoader.add(Object.values(n))})}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=!1}get(e){if(typeof e=="string")return Mo.get(e);const t={};for(let n=0;n<e.length;n++)t[n]=Mo.get(e[n]);return t}async _mapLoadToResolve(e,t){const n=Object.values(e),s=Object.keys(e);this._backgroundLoader.active=!1;co Line truncated
uniform vec4 uColor;
uniform sampler2D uSampler;
@@ -1158,33 +1158,33 @@ void main(void)\r
}\r
`;const dy=[],uy=[],hy=[],FF=class WS extends Mn{constructor(e,t={}){super();const{align:n,tint:s,maxWidth:r,letterSpacing:o,fontName:a,fontSize:c}=Object.assign({},WS.styleDefaults,t);if(!Lr.available[a])throw new Error(`Missing BitmapFont "${a}"`);this._activePagesMeshData=[],this._textWidth=0,this._textHeight=0,this._align=n,this._tintColor=new Ot(s),this._font=void 0,this._fontName=a,this._fontSize=c,this.text=e,this._maxWidth=r,this._maxLineHeight=0,this._letterSpacing=o,this._anchor=new ir(()=>{this.dirty=!0},this,0,0),this._roundPixels=Xe.ROUND_PIXELS,this.dirty=!0,this._resolution=Xe.RESOLUTION,this._autoResolution=!0,this._textureCache={}}updateText(){var P;const e=Lr.available[this._fontName],t=this.fontSize,n=t/e.size,s=new Pt,r=[],o=[],a=[],c=this._text.replace(/(?:\r\n|\r)/g,`
`)||" ",l=GS(c),d=this._maxWidth*e.size/t,u=e.distanceFieldType==="none"?dy:uy;let h=null,f=0,p=0,m=0,g=-1,v=0,y=0,b=0,x=0;for(let I=0;I<l.length;I++){const D=l[I],$=Ld(D);if(/(?:\s)/.test(D)&&(g=I,v=f,x++),D==="\r"||D===`
`){o.push(f),a.push(-1),p=Math.max(p,f),++m,++y,s.x=0,s.y+=e.lineHeight,h=null,x=0;continue}const j=e.chars[$];if(!j)continue;h&&j.kerning[h]&&(s.x+=j.kerning[h]);const B=hy.pop()||{texture:tt.EMPTY,line:0,charCode:0,prevSpaces:0,position:new Pt};B.texture=j.texture,B.line=m,B.charCode=$,B.position.x=Math.round(s.x+j.xOffset+this._letterSpacing/2),B.position.y=Math.round(s.y+j.yOffset),B.prevSpaces=x,r.push(B),f=B.position.x+Math.max(j.xAdvance-j.xOffset,j.texture.orig.width),s.x+=j.xAdvance+this._letterSpacing,b=Math.max(b,j.yOffset+j.texture.height),h=$,g!==-1&&d>0&&s.x>d&&(++y,Fa(r,1+g-y,1+I-g),I=g,g=-1,o.push(v),a.push(r.length>0?r[r.length-1].prevSpaces:0),p=Math.max(p,v),m++,s.x=0,s.y+=e.lineHeight,h=null,x=0)}const T=l[l.length-1];T!=="\r"&&T!==`
`&&(/(?:\s)/.test(T)&&(f=v),o.push(f),p=Math.max(p,f),a.push(-1));const E=[];for(let I=0;I<=m;I++){let D=0;this._align==="right"?D=p-o[I]:this._align==="center"?D=(p-o[I])/2:this._align==="justify"&&(D=a[I]<0?0:(p-o[I])/a[I]),E.push(D)}const S=r.length,C={},M=[],k=this._activePagesMeshData;u.push(...k);for(let I=0;I<S;I++){const D=r[I].texture,$=D.baseTexture.uid;if(!C[$]){let j=u.pop();if(!j){const Y=new zg;let U,O;e.distanceFieldType==="none"?(U=new fu(tt.EMPTY),O=Qe.NORMAL):(U=new fu(tt.EMPTY,{program:ks.from(RF,IF),uniforms:{uFWidth:0}}),O=Qe.NORMAL_NPM);const L=new ac(Y,U);L.blendMode=O,j={index:0,indexCount:0,vertexCount:0,uvsCount:0,total:0,mesh:L,vertices:null,uvs:null,indices:null}}j.index=0,j.indexCount=0,j.vertexCount=0,j.uvsCount=0,j.total=0;const{_textureCache:B}=this;B[$]=B[$]||new tt(D.baseTexture),j.mesh.texture=B[$],j.mesh.tint=this._tintColor.value,M.push(j),C[$]=j}C[$].total++}for(let I=0;I<k.length;I++)M.includes(k[I])||this.removeChild(k[I].mesh);for(let I=0;I<M.length;I++)M[I].mesh.parent!==this&&this.addChild(M[I].mesh);this._activePagesMeshData=M;for(const I in C){const D=C[I],$=D.total;if(!(((P=D.indices)==null?void 0:P.length)>6*$)||D.vertices.length<ac.BATCHABLE_SIZE*2)D.vertices=new Float32Array(8*$),D.uvs=new Float32Array(8*$),D.indices=new Uint16Array(6*$);else{const j=D.total,B=D.vertices;for(let Y=j*4*2;Y<B.length;Y++)B[Y]=0}D.mesh.size=6*$}for(let I=0;I<S;I++){const D=r[I];let $=D.position.x+E[D.line]*(this._align==="justify"?D.prevSpaces:1);this._roundPixels&&($=Math.round($));const j=$*n,B=D.position.y*n,Y=D.texture,U=C[Y.baseTexture.uid],O=Y.frame,L=Y._uvs,R=U.index++;U.indices[R*6+0]=0+R*4,U.indices[R*6+1]=1+R*4,U.indices[R*6+2]=2+R*4,U.indices[R*6+3]=0+R*4,U.indices[R*6+4]=2+R*4,U.indices[R*6+5]=3+R*4,U.vertices[R*8+0]=j,U.vertices[R*8+1]=B,U.vertices[R*8+2]=j+O.width*n,U.vertices[R*8+3]=B,U.vertices[R*8+4]=j+O.width*n,U.vertices[R*8+5]=B+O.height*n,U.vertices[R*8+6]=j,U.vertices[R*8+7]=B+O.height*n,U.uvs[R*8+0]=L.x0,U.uvs[R*8+1]=L.y0,U.uvs[R*8+2]=L.x1,U.uvs[R*8+3]=L.y1,U.uvs[R*8+4]=L.x2,U.uvs[R*8+5]=L.y2,U.uvs[R*8+6]=L.x3,U.uvs[R*8+7]=L.y3}this._textWidth=p*n,this._textHeight=(s.y+e.lineHeight)*n;for(const I in C){const D=C[I];if(this.anchor.x!==0||this.anchor.y!==0){let Y=0;const U=this._textWidth*this.anchor.x,O=this._textHeight*this.anchor.y;for(let L=0;L<D.total;L++)D.vertices[Y++]-=U,D.vertices[Y++]-=O,D.vertices[Y++]-=U,D.vertices[Y++]-=O,D.vertices[Y++]-=U,D.vertices[Y++]-=O,D.vertices[Y++]-=U,D.vertices[Y++]-=O}this._maxLineHeight=b*n;const $=D.mesh.geometry.getBuffer("aVertexPosition"),j=D.mesh.geometry.getBuffer("aTextureCoord"),B=D.mesh.geometry.getIndex();$.data=D.vertices,j.data=D.uvs,B.data=D.indices,$.update(),j.update(),B.update()}for(let I=0;I<r.length;I++)hy.push(r[I]);this._font=e,this.dirty=!1}updateTransform(){this.validate(),this.containerUpdateTransform()}_render(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0);const{distanceFieldRange:t,distanceFieldType:n,size:s}=Lr.available[this._fontName];if(n!=="none"){const{a:r,b:o,c:a,d:c}=this.worldTransform,l=Math.sqrt(r*r+o*o),d=Math.sqrt(a*a+c*c),u=(Math.abs(l)+Math.abs(d))/2,h=this.fontSize/s,f=e._view.resolution;for(const p of this._activePagesMeshData)p.mesh.shader.uniforms.uFWidth=u*t*h*f}super._render(e)}getLocalBounds(){return this.validate(),super.getLocalBounds()}validate(){const e=Lr.available[this._fontName];if(!e)throw new Error(`Missing BitmapFont "${this._fontName}"`);this._font!==e&&(this.dirty=!0),this.dirty&&this.updateText()}get tint(){return this._tintColor.value}set tint(e){if(this.tint!==e){this._tintColor.setValue(e);for(let t=0;t<this._activePagesMeshData.length;t++)this._activePagesMeshData[t].mesh.tint=e}}get align(){return this._align}set align(e){this._align!==e&&(this._align=e,this.dirty=!0)}get fontName(){return this._fontName}set fontName(e){if(!Lr.available[e])throw new Error(`Missing BitmapFont "${e}"`);this._fontName!==e&&(this._fontName=e,this.dirty=!0)}get fontSize(){return this._fontSize??Lr.available[this._fontName].size}set fontSize(e){this._fontSize!==e&&(this._fontSize=e,this.dirty=!0)}get anchor(){return this._anchor}set anchor(e){typeof e=="number"?this._anchor.set(e):this._anchor.copyFrom(e)}get text(){return this._text}set text(e){e=String(e??""),this._text!==e&&(this._text=e,this.dirty=!0)}get maxWidth(){return this._maxWidth}set maxWidth(e){this._maxWidth!==e&&(this._maxWidth=e,this.dirty=!0)}get maxLineHeight(){return this.validate(),this._maxLineHeight}get textWidth(){return this.validate(),this._textWidth}get letterSpacing(){return this._letterSpacing}set letterSpacing(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.dirty=!0)}get roundPixels(){return this._roundPixels}set roundPixels(e){e!==this._roundPixels&&(this._roundPixels=e,this.dirty=!0)}get textHeight(){return this.validate(),this._textHeight}get resolution(){return this._resolution}set resolution(e){this._autoResolution=!1,this._res Line truncated
`){o.push(f),a.push(-1),p=Math.max(p,f),++m,++y,s.x=0,s.y+=e.lineHeight,h=null,x=0;continue}const j=e.chars[$];if(!j)continue;h&&j.kerning[h]&&(s.x+=j.kerning[h]);const B=hy.pop()||{texture:tt.EMPTY,line:0,charCode:0,prevSpaces:0,position:new Pt};B.texture=j.texture,B.line=m,B.charCode=$,B.position.x=Math.round(s.x+j.xOffset+this._letterSpacing/2),B.position.y=Math.round(s.y+j.yOffset),B.prevSpaces=x,r.push(B),f=B.position.x+Math.max(j.xAdvance-j.xOffset,j.texture.orig.width),s.x+=j.xAdvance+this._letterSpacing,b=Math.max(b,j.yOffset+j.texture.height),h=$,g!==-1&&d>0&&s.x>d&&(++y,La(r,1+g-y,1+I-g),I=g,g=-1,o.push(v),a.push(r.length>0?r[r.length-1].prevSpaces:0),p=Math.max(p,v),m++,s.x=0,s.y+=e.lineHeight,h=null,x=0)}const T=l[l.length-1];T!=="\r"&&T!==`
`&&(/(?:\s)/.test(T)&&(f=v),o.push(f),p=Math.max(p,f),a.push(-1));const E=[];for(let I=0;I<=m;I++){let D=0;this._align==="right"?D=p-o[I]:this._align==="center"?D=(p-o[I])/2:this._align==="justify"&&(D=a[I]<0?0:(p-o[I])/a[I]),E.push(D)}const S=r.length,C={},M=[],k=this._activePagesMeshData;u.push(...k);for(let I=0;I<S;I++){const D=r[I].texture,$=D.baseTexture.uid;if(!C[$]){let j=u.pop();if(!j){const Y=new zg;let U,O;e.distanceFieldType==="none"?(U=new fu(tt.EMPTY),O=Qe.NORMAL):(U=new fu(tt.EMPTY,{program:ks.from(RF,IF),uniforms:{uFWidth:0}}),O=Qe.NORMAL_NPM);const L=new ac(Y,U);L.blendMode=O,j={index:0,indexCount:0,vertexCount:0,uvsCount:0,total:0,mesh:L,vertices:null,uvs:null,indices:null}}j.index=0,j.indexCount=0,j.vertexCount=0,j.uvsCount=0,j.total=0;const{_textureCache:B}=this;B[$]=B[$]||new tt(D.baseTexture),j.mesh.texture=B[$],j.mesh.tint=this._tintColor.value,M.push(j),C[$]=j}C[$].total++}for(let I=0;I<k.length;I++)M.includes(k[I])||this.removeChild(k[I].mesh);for(let I=0;I<M.length;I++)M[I].mesh.parent!==this&&this.addChild(M[I].mesh);this._activePagesMeshData=M;for(const I in C){const D=C[I],$=D.total;if(!(((P=D.indices)==null?void 0:P.length)>6*$)||D.vertices.length<ac.BATCHABLE_SIZE*2)D.vertices=new Float32Array(8*$),D.uvs=new Float32Array(8*$),D.indices=new Uint16Array(6*$);else{const j=D.total,B=D.vertices;for(let Y=j*4*2;Y<B.length;Y++)B[Y]=0}D.mesh.size=6*$}for(let I=0;I<S;I++){const D=r[I];let $=D.position.x+E[D.line]*(this._align==="justify"?D.prevSpaces:1);this._roundPixels&&($=Math.round($));const j=$*n,B=D.position.y*n,Y=D.texture,U=C[Y.baseTexture.uid],O=Y.frame,L=Y._uvs,R=U.index++;U.indices[R*6+0]=0+R*4,U.indices[R*6+1]=1+R*4,U.indices[R*6+2]=2+R*4,U.indices[R*6+3]=0+R*4,U.indices[R*6+4]=2+R*4,U.indices[R*6+5]=3+R*4,U.vertices[R*8+0]=j,U.vertices[R*8+1]=B,U.vertices[R*8+2]=j+O.width*n,U.vertices[R*8+3]=B,U.vertices[R*8+4]=j+O.width*n,U.vertices[R*8+5]=B+O.height*n,U.vertices[R*8+6]=j,U.vertices[R*8+7]=B+O.height*n,U.uvs[R*8+0]=L.x0,U.uvs[R*8+1]=L.y0,U.uvs[R*8+2]=L.x1,U.uvs[R*8+3]=L.y1,U.uvs[R*8+4]=L.x2,U.uvs[R*8+5]=L.y2,U.uvs[R*8+6]=L.x3,U.uvs[R*8+7]=L.y3}this._textWidth=p*n,this._textHeight=(s.y+e.lineHeight)*n;for(const I in C){const D=C[I];if(this.anchor.x!==0||this.anchor.y!==0){let Y=0;const U=this._textWidth*this.anchor.x,O=this._textHeight*this.anchor.y;for(let L=0;L<D.total;L++)D.vertices[Y++]-=U,D.vertices[Y++]-=O,D.vertices[Y++]-=U,D.vertices[Y++]-=O,D.vertices[Y++]-=U,D.vertices[Y++]-=O,D.vertices[Y++]-=U,D.vertices[Y++]-=O}this._maxLineHeight=b*n;const $=D.mesh.geometry.getBuffer("aVertexPosition"),j=D.mesh.geometry.getBuffer("aTextureCoord"),B=D.mesh.geometry.getIndex();$.data=D.vertices,j.data=D.uvs,B.data=D.indices,$.update(),j.update(),B.update()}for(let I=0;I<r.length;I++)hy.push(r[I]);this._font=e,this.dirty=!1}updateTransform(){this.validate(),this.containerUpdateTransform()}_render(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0);const{distanceFieldRange:t,distanceFieldType:n,size:s}=Lr.available[this._fontName];if(n!=="none"){const{a:r,b:o,c:a,d:c}=this.worldTransform,l=Math.sqrt(r*r+o*o),d=Math.sqrt(a*a+c*c),u=(Math.abs(l)+Math.abs(d))/2,h=this.fontSize/s,f=e._view.resolution;for(const p of this._activePagesMeshData)p.mesh.shader.uniforms.uFWidth=u*t*h*f}super._render(e)}getLocalBounds(){return this.validate(),super.getLocalBounds()}validate(){const e=Lr.available[this._fontName];if(!e)throw new Error(`Missing BitmapFont "${this._fontName}"`);this._font!==e&&(this.dirty=!0),this.dirty&&this.updateText()}get tint(){return this._tintColor.value}set tint(e){if(this.tint!==e){this._tintColor.setValue(e);for(let t=0;t<this._activePagesMeshData.length;t++)this._activePagesMeshData[t].mesh.tint=e}}get align(){return this._align}set align(e){this._align!==e&&(this._align=e,this.dirty=!0)}get fontName(){return this._fontName}set fontName(e){if(!Lr.available[e])throw new Error(`Missing BitmapFont "${e}"`);this._fontName!==e&&(this._fontName=e,this.dirty=!0)}get fontSize(){return this._fontSize??Lr.available[this._fontName].size}set fontSize(e){this._fontSize!==e&&(this._fontSize=e,this.dirty=!0)}get anchor(){return this._anchor}set anchor(e){typeof e=="number"?this._anchor.set(e):this._anchor.copyFrom(e)}get text(){return this._text}set text(e){e=String(e??""),this._text!==e&&(this._text=e,this.dirty=!0)}get maxWidth(){return this._maxWidth}set maxWidth(e){this._maxWidth!==e&&(this._maxWidth=e,this.dirty=!0)}get maxLineHeight(){return this.validate(),this._maxLineHeight}get textWidth(){return this.validate(),this._textWidth}get letterSpacing(){return this._letterSpacing}set letterSpacing(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.dirty=!0)}get roundPixels(){return this._roundPixels}set roundPixels(e){e!==this._roundPixels&&(this._roundPixels=e,this.dirty=!0)}get textHeight(){return this.validate(),this._textHeight}get resolution(){return this._resolution}set resolution(e){this._autoResolution=!1,this._res Line truncated
@font-face {
font-family: "${t.family}";
src: url('${t.dataSrc}');
font-weight: ${t.weight};
font-style: ${t.style};
font-display: ${t.display};
}`,this._stylesheet)}get stylesheet(){return this._stylesheet}set stylesheet(e){this._stylesheet!==e&&(this._stylesheet=e,this.styleID++)}normalizeColor(e){return Array.isArray(e)&&(e=Tk(e)),typeof e=="number"?Ak(e):e}dropShadowToCSS(){let e=this.normalizeColor(this.dropShadowColor);const t=this.dropShadowAlpha,n=Math.round(Math.cos(this.dropShadowAngle)*this.dropShadowDistance),s=Math.round(Math.sin(this.dropShadowAngle)*this.dropShadowDistance);e.startsWith("#")&&t<1&&(e+=(t*255|0).toString(16).padStart(2,"0"));const r=`${n}px ${s}px`;return this.dropShadowBlur>0?`text-shadow: ${r} ${this.dropShadowBlur}px ${e}`:`text-shadow: ${r} ${e}`}reset(){Object.assign(this,xa.defaultOptions)}onBeforeDraw(){const{fontsDirty:e}=this;return this.fontsDirty=!1,this.isSafari&&this._fonts.length>0&&e?new Promise(t=>setTimeout(t,100)):Promise.resolve()}get isSafari(){const{userAgent:e}=Xe.ADAPTER.getNavigator();return/^((?!chrome|android).)*safari/i.test(e)}set fillGradientStops(e){console.warn("[HTMLTextStyle] fillGradientStops is not supported by HTMLText")}get fillGradientStops(){return super.fillGradientStops}set fillGradientType(e){console.warn("[HTMLTextStyle] fillGradientType is not supported by HTMLText")}get fillGradientType(){return super.fillGradientType}set miterLimit(e){console.warn("[HTMLTextStyle] miterLimit is not supported by HTMLText")}get miterLimit(){return super.miterLimit}set trim(e){console.warn("[HTMLTextStyle] trim is not supported by HTMLText")}get trim(){return super.trim}set textBaseline(e){console.warn("[HTMLTextStyle] textBaseline is not supported by HTMLText")}get textBaseline(){return super.textBaseline}set leading(e){console.warn("[HTMLTextStyle] leading is not supported by HTMLText")}get leading(){return super.leading}set lineJoin(e){console.warn("[HTMLTextStyle] lineJoin is not supported by HTMLText")}get lineJoin(){return super.lineJoin}};Tm.availableFonts={},Tm.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 cp=Tm;const rd=class wa extends oo{constructor(e="",t={}){super(tt.EMPTY),this._text=null,this._style=null,this._autoResolution=!0,this.localStyleID=-1,this.dirty=!1,this._updateID=0,this.ownsStyle=!1;const n=new Image,s=tt.from(n,{scaleMode:Xe.SCALE_MODE,resourceOptions:{autoLoad:!1}});s.orig=new ht,s.trim=new ht,this.texture=s;const r="http://www.w3.org/2000/svg",o="http://www.w3.org/1999/xhtml",a=document.createElementNS(r,"svg"),c=document.createElementNS(r,"foreignObject"),l=document.createElementNS(o,"div"),d=document.createElementNS(o,"style");c.setAttribute("width","10000"),c.setAttribute("height","10000"),c.style.overflow="hidden",a.appendChild(c),this.maxWidth=wa.defaultMaxWidth,this.maxHeight=wa.defaultMaxHeight,this._domElement=l,this._styleElement=d,this._svgRoot=a,this._foreignObject=c,this._foreignObject.appendChild(d),this._foreignObject.appendChild(l),this._image=n,this._loadImage=new Image,this._autoResolution=wa.defaultAutoResolution,this._resolution=wa.defaultResolution??Xe.RESOLUTION,this.text=e,this.style=t}measureText(e){var d,u;const{text:t,style:n,resolution:s}=Object.assign({text:this._text,style:this._style,resolution:this._resolution},e);Object.assign(this._domElement,{innerHTML:t,style:n.toCSS(s)}),this._styleElement.textContent=n.toGlobalCSS(),document.body.appendChild(this._svgRoot);const r=this._domElement.getBoundingClientRect();this._svgRoot.remove();const{width:o,height:a}=r;(o>this.maxWidth||a>this.maxHeight)&&console.warn("[HTMLText] Large expanse of text, increase HTMLText.maxWidth or HTMLText.maxHeight property.");const c=Math.min(this.maxWidth,Math.ceil(o)),l=Math.min(this.maxHeight,Math.ceil(a));return this._svgRoot.setAttribute("width",c.toString()),this._svgRoot.setAttribute("height",l.toString()),t!==this._text&&(this._domElement.innerHTML=this._text),n!==this._style&&(Object.assign(this._domElement,{style:(d=this._style)==null?void 0:d.toCSS(s)}),this._styleElement.textContent=(u=this._style)==null?void 0:u.toGlobalCSS()),{width:c+n.padding*2,height:l+n.padding*2}}async updateText(e=!0){const{style:t,_image:n,_loadImage:s}=this;if(this.localStyleID!==t.styleID&&(this.dirty=!0,this.localStyleID=t.styleID),!this.dirty&&e)return;const{width:r,height:o}=this.measureText();n.width=s.width=Math.ceil(Math.max(1,r)),n.height=s.height=Math.ceil(Math.max(1,o)),this._updateID++;const a=this._updateID;await new Promise(c=>{s.onload=async()=>{if(a<this._updateID){c();return}await t.onBeforeDraw(),n.src=s.src,s.onload=null,s.src="",this.updateTexture(),c()};const l=new XMLSerializer().serializeToString(this._svgRoot);s.src=`data:image/svg+xml;charset=utf8,${encodeURIComponent(l)}`})}get source(){ret Line truncated
}`,this._stylesheet)}get stylesheet(){return this._stylesheet}set stylesheet(e){this._stylesheet!==e&&(this._stylesheet=e,this.styleID++)}normalizeColor(e){return Array.isArray(e)&&(e=Tk(e)),typeof e=="number"?Ak(e):e}dropShadowToCSS(){let e=this.normalizeColor(this.dropShadowColor);const t=this.dropShadowAlpha,n=Math.round(Math.cos(this.dropShadowAngle)*this.dropShadowDistance),s=Math.round(Math.sin(this.dropShadowAngle)*this.dropShadowDistance);e.startsWith("#")&&t<1&&(e+=(t*255|0).toString(16).padStart(2,"0"));const r=`${n}px ${s}px`;return this.dropShadowBlur>0?`text-shadow: ${r} ${this.dropShadowBlur}px ${e}`:`text-shadow: ${r} ${e}`}reset(){Object.assign(this,wa.defaultOptions)}onBeforeDraw(){const{fontsDirty:e}=this;return this.fontsDirty=!1,this.isSafari&&this._fonts.length>0&&e?new Promise(t=>setTimeout(t,100)):Promise.resolve()}get isSafari(){const{userAgent:e}=Xe.ADAPTER.getNavigator();return/^((?!chrome|android).)*safari/i.test(e)}set fillGradientStops(e){console.warn("[HTMLTextStyle] fillGradientStops is not supported by HTMLText")}get fillGradientStops(){return super.fillGradientStops}set fillGradientType(e){console.warn("[HTMLTextStyle] fillGradientType is not supported by HTMLText")}get fillGradientType(){return super.fillGradientType}set miterLimit(e){console.warn("[HTMLTextStyle] miterLimit is not supported by HTMLText")}get miterLimit(){return super.miterLimit}set trim(e){console.warn("[HTMLTextStyle] trim is not supported by HTMLText")}get trim(){return super.trim}set textBaseline(e){console.warn("[HTMLTextStyle] textBaseline is not supported by HTMLText")}get textBaseline(){return super.textBaseline}set leading(e){console.warn("[HTMLTextStyle] leading is not supported by HTMLText")}get leading(){return super.leading}set lineJoin(e){console.warn("[HTMLTextStyle] lineJoin is not supported by HTMLText")}get lineJoin(){return super.lineJoin}};Tm.availableFonts={},Tm.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 cp=Tm;const rd=class Sa extends oo{constructor(e="",t={}){super(tt.EMPTY),this._text=null,this._style=null,this._autoResolution=!0,this.localStyleID=-1,this.dirty=!1,this._updateID=0,this.ownsStyle=!1;const n=new Image,s=tt.from(n,{scaleMode:Xe.SCALE_MODE,resourceOptions:{autoLoad:!1}});s.orig=new ht,s.trim=new ht,this.texture=s;const r="http://www.w3.org/2000/svg",o="http://www.w3.org/1999/xhtml",a=document.createElementNS(r,"svg"),c=document.createElementNS(r,"foreignObject"),l=document.createElementNS(o,"div"),d=document.createElementNS(o,"style");c.setAttribute("width","10000"),c.setAttribute("height","10000"),c.style.overflow="hidden",a.appendChild(c),this.maxWidth=Sa.defaultMaxWidth,this.maxHeight=Sa.defaultMaxHeight,this._domElement=l,this._styleElement=d,this._svgRoot=a,this._foreignObject=c,this._foreignObject.appendChild(d),this._foreignObject.appendChild(l),this._image=n,this._loadImage=new Image,this._autoResolution=Sa.defaultAutoResolution,this._resolution=Sa.defaultResolution??Xe.RESOLUTION,this.text=e,this.style=t}measureText(e){var d,u;const{text:t,style:n,resolution:s}=Object.assign({text:this._text,style:this._style,resolution:this._resolution},e);Object.assign(this._domElement,{innerHTML:t,style:n.toCSS(s)}),this._styleElement.textContent=n.toGlobalCSS(),document.body.appendChild(this._svgRoot);const r=this._domElement.getBoundingClientRect();this._svgRoot.remove();const{width:o,height:a}=r;(o>this.maxWidth||a>this.maxHeight)&&console.warn("[HTMLText] Large expanse of text, increase HTMLText.maxWidth or HTMLText.maxHeight property.");const c=Math.min(this.maxWidth,Math.ceil(o)),l=Math.min(this.maxHeight,Math.ceil(a));return this._svgRoot.setAttribute("width",c.toString()),this._svgRoot.setAttribute("height",l.toString()),t!==this._text&&(this._domElement.innerHTML=this._text),n!==this._style&&(Object.assign(this._domElement,{style:(d=this._style)==null?void 0:d.toCSS(s)}),this._styleElement.textContent=(u=this._style)==null?void 0:u.toGlobalCSS()),{width:c+n.padding*2,height:l+n.padding*2}}async updateText(e=!0){const{style:t,_image:n,_loadImage:s}=this;if(this.localStyleID!==t.styleID&&(this.dirty=!0,this.localStyleID=t.styleID),!this.dirty&&e)return;const{width:r,height:o}=this.measureText();n.width=s.width=Math.ceil(Math.max(1,r)),n.height=s.height=Math.ceil(Math.max(1,o)),this._updateID++;const a=this._updateID;await new Promise(c=>{s.onload=async()=>{if(a<this._updateID){c();return}await t.onBeforeDraw(),n.src=s.src,s.onload=null,s.src="",this.updateTexture(),c()};const l=new XMLSerializer().serializeToString(this._svgRoot);s.src=`data:image/svg+xml;charset=utf8,${encodeURIComponent(l)}`})}get source(){ret Line truncated
* shared v11.4.16
* (c) 2026 kazuya kawaguchi
* Released under the MIT License.
*/const vu=typeof window<"u",ao=(i,e=!1)=>e?Symbol.for(i):Symbol(i),rL=(i,e,t)=>oL({l:i,k:e,s:t}),oL=i=>JSON.stringify(i).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),xn=i=>typeof i=="number"&&isFinite(i),rC=i=>Wg(i)==="[object Date]",Ha=i=>Wg(i)==="[object RegExp]",Gg=i=>Ht(i)&&Object.keys(i).length===0,vn=Object.assign,aL=Object.create,Xt=(i=null)=>aL(i);let wy;const Kr=()=>wy||(wy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Xt()),lL=Object.prototype.hasOwnProperty;function Ni(i,e){return lL.call(i,e)}function Rn(i,e){const t=i[e];return Ni(i,e)?t:void 0}function oC(i){return Ni(Object.prototype,i)}const en=Array.isArray,Qt=i=>typeof i=="function",ze=i=>typeof i=="string",Dt=i=>typeof i=="boolean",It=i=>i!==null&&typeof i=="object",cL=i=>It(i)&&Qt(i.then)&&Qt(i.catch),aC=Object.prototype.toString,Wg=i=>aC.call(i),Ht=i=>Wg(i)==="[object Object]",dL=i=>i==null?"":en(i)||Ht(i)&&i.toString===aC?JSON.stringify(i,null,2):String(i);function qg(i,e=""){return i.reduce((t,n,s)=>s===0?t+n:t+e+n,"")}function uL(i,e){typeof console<"u"&&(console.warn("[intlify] "+i),e&&console.warn(e.stack))}function Sy(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 hL(i){return i.replace(/&(?![a-z0-9#]{2,6};)/gi,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const fL=/^javascript:/i,pL=/^(?:href|src|action|formaction)$/i,mL=/&#(?:x([0-9a-f]+)|(\d+));?/gi,gL=/&(?:Tab|NewLine);/g,vL=/&colon;?/gi,bL=/[\u0000-\u0020\u007f-\u009f]/g,yL=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,xL=/(^|[\s"'<>/])on(\w+\s*=)/gi,wL=/(?:^|[\s"'<>/])srcdoc\s*=/i,SL=/(^|[\s"'<>/])s(rcdoc\s*=)/gi,CL=/(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function AL(i,e,t){const n=e||t;if(!n)return i;const s=Number.parseInt(n,e?16:10);return s<=127?String.fromCharCode(s):i}function Kg(i){const e=i.replace(mL,AL).replace(gL,"").replace(vL,":").replace(bL,"");return fL.test(e)}function TL(i){const e=/url\s*\(/gi;let t="",n=0,s;for(;(s=e.exec(i))!==null;){const r=s.index,o=e.lastIndex-1;let a=o+1,c=1,l=null;for(;a<i.length;a++){const h=i[a];if(l){h===l&&(l=null);continue}if(h==='"'||h==="'")l=h;else if(h==="(")c++;else if(h===")"&&(c--,c===0))break}if(c!==0)break;const d=i.slice(o+1,a).trim(),u=d.startsWith('"')&&d.endsWith('"')||d.startsWith("'")&&d.endsWith("'")?d.slice(1,-1).trim():d;t+=i.slice(n,r),t+=Kg(u)?"url(about:blank)":i.slice(r,a+1),n=a+1}return t+i.slice(n)}function Cy(i,e){if(pL.test(i)&&Kg(e))return"about:blank";const t=i.toLowerCase()==="style"?TL(e):e;return hL(t)}function EL(i){return i=i.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${Cy(t,n)}"`),i=i.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${Cy(t,n)}'`),yL.test(i)&&(i=i.replace(xL,"$1&#111;n$2")),wL.test(i)&&(i=i.replace(SL,"$1&#115;$2")),i=i.replace(CL,(e,t,n,s)=>Kg(s)?`${t}${n}about:blank`:e),i}const Ay=i=>!It(i)||en(i);function Nd(i,e){if(Ay(i)||Ay(e)||e===Object.prototype)throw new Error("Invalid value");const t=[{src:i,des:e}];for(;t.length;){const{src:n,des:s}=t.pop();Object.keys(n).forEach(r=>{if(r==="__proto__")return;const o=n[r];if(en(o)){const a=[];a.length=o.length,s[r]=a,t.push({src:o,des:a})}else It(o)?((!It(s[r])||en(s[r]))&&(s[r]=Xt()),t.push({src:o,des:s[r]})):s[r]=o})}}/*!
*/const vu=typeof window<"u",ao=(i,e=!1)=>e?Symbol.for(i):Symbol(i),rL=(i,e,t)=>oL({l:i,k:e,s:t}),oL=i=>JSON.stringify(i).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),xn=i=>typeof i=="number"&&isFinite(i),rC=i=>Wg(i)==="[object Date]",Ga=i=>Wg(i)==="[object RegExp]",Gg=i=>Ht(i)&&Object.keys(i).length===0,vn=Object.assign,aL=Object.create,Xt=(i=null)=>aL(i);let wy;const Kr=()=>wy||(wy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Xt()),lL=Object.prototype.hasOwnProperty;function Ni(i,e){return lL.call(i,e)}function Rn(i,e){const t=i[e];return Ni(i,e)?t:void 0}function oC(i){return Ni(Object.prototype,i)}const en=Array.isArray,Qt=i=>typeof i=="function",ze=i=>typeof i=="string",Dt=i=>typeof i=="boolean",It=i=>i!==null&&typeof i=="object",cL=i=>It(i)&&Qt(i.then)&&Qt(i.catch),aC=Object.prototype.toString,Wg=i=>aC.call(i),Ht=i=>Wg(i)==="[object Object]",dL=i=>i==null?"":en(i)||Ht(i)&&i.toString===aC?JSON.stringify(i,null,2):String(i);function qg(i,e=""){return i.reduce((t,n,s)=>s===0?t+n:t+e+n,"")}function uL(i,e){typeof console<"u"&&(console.warn("[intlify] "+i),e&&console.warn(e.stack))}function Sy(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 hL(i){return i.replace(/&(?![a-z0-9#]{2,6};)/gi,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const fL=/^javascript:/i,pL=/^(?:href|src|action|formaction)$/i,mL=/&#(?:x([0-9a-f]+)|(\d+));?/gi,gL=/&(?:Tab|NewLine);/g,vL=/&colon;?/gi,bL=/[\u0000-\u0020\u007f-\u009f]/g,yL=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,xL=/(^|[\s"'<>/])on(\w+\s*=)/gi,wL=/(?:^|[\s"'<>/])srcdoc\s*=/i,SL=/(^|[\s"'<>/])s(rcdoc\s*=)/gi,CL=/(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function AL(i,e,t){const n=e||t;if(!n)return i;const s=Number.parseInt(n,e?16:10);return s<=127?String.fromCharCode(s):i}function Kg(i){const e=i.replace(mL,AL).replace(gL,"").replace(vL,":").replace(bL,"");return fL.test(e)}function TL(i){const e=/url\s*\(/gi;let t="",n=0,s;for(;(s=e.exec(i))!==null;){const r=s.index,o=e.lastIndex-1;let a=o+1,c=1,l=null;for(;a<i.length;a++){const h=i[a];if(l){h===l&&(l=null);continue}if(h==='"'||h==="'")l=h;else if(h==="(")c++;else if(h===")"&&(c--,c===0))break}if(c!==0)break;const d=i.slice(o+1,a).trim(),u=d.startsWith('"')&&d.endsWith('"')||d.startsWith("'")&&d.endsWith("'")?d.slice(1,-1).trim():d;t+=i.slice(n,r),t+=Kg(u)?"url(about:blank)":i.slice(r,a+1),n=a+1}return t+i.slice(n)}function Cy(i,e){if(pL.test(i)&&Kg(e))return"about:blank";const t=i.toLowerCase()==="style"?TL(e):e;return hL(t)}function EL(i){return i=i.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${Cy(t,n)}"`),i=i.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${Cy(t,n)}'`),yL.test(i)&&(i=i.replace(xL,"$1&#111;n$2")),wL.test(i)&&(i=i.replace(SL,"$1&#115;$2")),i=i.replace(CL,(e,t,n,s)=>Kg(s)?`${t}${n}about:blank`:e),i}const Ay=i=>!It(i)||en(i);function Nd(i,e){if(Ay(i)||Ay(e)||e===Object.prototype)throw new Error("Invalid value");const t=[{src:i,des:e}];for(;t.length;){const{src:n,des:s}=t.pop();Object.keys(n).forEach(r=>{if(r==="__proto__")return;const o=n[r];if(en(o)){const a=[];a.length=o.length,s[r]=a,t.push({src:o,des:a})}else It(o)?((!It(s[r])||en(s[r]))&&(s[r]=Xt()),t.push({src:o,des:s[r]})):s[r]=o})}}/*!
* message-compiler v11.4.16
* (c) 2026 kazuya kawaguchi
* Released under the MIT License.
*/function _L(i,e,t){return{line:i,column:e,offset:t}}function Pm(i,e,t){return{start:i,end:e}}const Nt={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},ML=17;function vh(i,e,t={}){const{domain:n,messages:s,args:r}=t,o=i,a=new SyntaxError(String(o));return a.code=i,e&&(a.location=e),a.domain=n,a}function PL(i){throw i}const ds=" ",kL="\r",Xn=`
`,IL="\u2028",RL="\u2029";function FL(i){const e=i;let t=0,n=1,s=1,r=0;const o=S=>e[S]===kL&&e[S+1]===Xn,a=S=>e[S]===Xn,c=S=>e[S]===RL,l=S=>e[S]===IL,d=S=>o(S)||a(S)||c(S)||l(S),u=()=>t,h=()=>n,f=()=>s,p=()=>r,m=S=>o(S)||c(S)||l(S)?Xn:e[S],g=()=>m(t),v=()=>m(t+r);function y(){return r=0,d(t)&&(n++,s=0),o(t)&&t++,t++,s++,e[t]}function b(){return o(t+r)&&r++,r++,e[t+r]}function x(){t=0,n=1,s=1,r=0}function T(S=0){r=S}function E(){const S=t+r;for(;S!==t;)y();r=0}return{index:u,line:h,column:f,peekOffset:p,charAt:m,currentChar:g,currentPeek:v,next:y,peek:b,reset:x,resetPeek:T,skipToPeek:E}}const js=void 0,LL=".",Ty="'",DL="tokenizer";function OL(i,e={}){const t=e.location!==!1,n=FL(i),s=()=>n.index(),r=()=>_L(n.line(),n.column(),n.index()),o=r(),a=s(),c={currentType:13,offset:a,startLoc:o,endLoc:o,lastType:13,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},l=()=>c,{onError:d}=e;function u(N,V,W,...ee){const be=l();if(V.column+=W,V.offset+=W,d){const ye=t?Pm(be.startLoc,V):null,he=vh(N,ye,{domain:DL,args:ee});d(he)}}function h(N,V,W){N.endLoc=r(),N.currentType=V;const ee={type:V};return t&&(ee.loc=Pm(N.startLoc,N.endLoc)),W!=null&&(ee.value=W),ee}const f=N=>h(N,13);function p(N,V){return N.currentChar()===V?(N.next(),V):(u(Nt.EXPECTED_TOKEN,r(),0,V),"")}function m(N){let V="";for(;N.currentPeek()===ds||N.currentPeek()===Xn;)V+=N.currentPeek(),N.peek();return V}function g(N){const V=m(N);return N.skipToPeek(),V}function v(N){if(N===js)return!1;const V=N.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V===95}function y(N){if(N===js)return!1;const V=N.charCodeAt(0);return V>=48&&V<=57}function b(N,V){const{currentType:W}=V;if(W!==2)return!1;m(N);const ee=v(N.currentPeek());return N.resetPeek(),ee}function x(N,V){const{currentType:W}=V;if(W!==2)return!1;m(N);const ee=N.currentPeek()==="-"?N.peek():N.currentPeek(),be=y(ee);return N.resetPeek(),be}function T(N,V){const{currentType:W}=V;if(W!==2)return!1;m(N);const ee=N.currentPeek()===Ty;return N.resetPeek(),ee}function E(N,V){const{currentType:W}=V;if(W!==7)return!1;m(N);const ee=N.currentPeek()===".";return N.resetPeek(),ee}function S(N,V){const{currentType:W}=V;if(W!==8)return!1;m(N);const ee=v(N.currentPeek());return N.resetPeek(),ee}function C(N,V){const{currentType:W}=V;if(!(W===7||W===11))return!1;m(N);const ee=N.currentPeek()===":";return N.resetPeek(),ee}function M(N,V){const{currentType:W}=V;if(W!==9)return!1;const ee=()=>{const ye=N.currentPeek();return ye==="{"?v(N.peek()):ye==="@"||ye==="|"||ye===":"||ye==="."||ye===ds||!ye?!1:ye===Xn?(N.peek(),ee()):P(N,!1)},be=ee();return N.resetPeek(),be}function k(N){m(N);const V=N.currentPeek()==="|";return N.resetPeek(),V}function P(N,V=!0){const W=(be=!1,ye="")=>{const he=N.currentPeek();return he==="{"||he==="@"||!he?be:he==="|"?!(ye===ds||ye===Xn):he===ds?(N.peek(),W(!0,ds)):he===Xn?(N.peek(),W(!0,Xn)):!0},ee=W();return V&&N.resetPeek(),ee}function I(N,V){const W=N.currentChar();return W===js?js:V(W)?(N.next(),W):null}function D(N){const V=N.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V>=48&&V<=57||V===95||V===36}function $(N){return I(N,D)}function j(N){const V=N.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V>=48&&V<=57||V===95||V===36||V===45}function B(N){return I(N,j)}function Y(N){const V=N.charCodeAt(0);return V>=48&&V<=57}function U(N){return I(N,Y)}function O(N){const V=N.charCodeAt(0);return V>=48&&V<=57||V>=65&&V<=70||V>=97&&V<=102}function L(N){return I(N,O)}function R(N){let V="",W="";for(;V=U(N);)W+=V;return W}function X(N){let V="";for(;;){const W=N.currentChar();if(W==="\\"){const ee=N.peek();ee==="{"||ee==="}"||ee==="@"||ee==="|"||ee==="\\"?(V+=W+ee,N.next(),N.next()):(N.resetPeek(),V+=W,N.next())}else{if(W==="{"||W==="}"||W==="@"||W==="|"||!W)break;if(W===ds||W===Xn)if(P(N))V+=W,N.next();else{if(k(N))break;V+=W,N.next()}else V+=W,N.next()}}return V}function z(N){g(N);let V="",W="";for(;V=B(N);)W+=V;const ee=N.currentChar();if(ee&&ee!=="}"&&ee!==js&&ee!==ds&&ee!==Xn&&ee!==" "){const be=re(N);return u(Nt.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,W+be),W+be}return N.currentChar()===js&&u(Nt.UNTERMINATED_CLOSING_BRACE,r(),0),W}function K(N){g(N);let V="";return N.currentChar()==="-"?(N.next(),V+=`-${R(N)}`):V+=R(N),N.currentChar()===js&&u(Nt.UNTERMINATED_CLOSING_BRACE,r(),0),V}function Z(N){return N!==Ty&&N!==Xn}function ae(N){g(N),p(N,"'");let V="",W="";for(;V=I(N,Z);)V==="\\"?W+=ce(N):W+=V;const ee=N.currentChar();return ee===Xn||ee===js?(u(Nt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),ee===Xn&&(N.next(),p(N,"'")),W):(p(N,"'"),W)}function ce(N){const V=N.currentChar();switch(V){case"\\":case"'":return N.next(),`\\${V}`;case"u":return ve(N,V,4);case"U":return ve(N,V,6);default:return u(Nt.UNKNOWN_ESCAPE_SEQUENCE,r(),0,V),""}}function ve(N,V,W){p(N,V);let ee="";for(let be=0;be<W;be++){const ye=L(N);if(!ye){u(Nt.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${V}${ee}${N.currentChar()}`);break}ee+=ye}return`\\${V}${ee}`}function we(N){return N!=="{"&&N!=="}"&&N!==ds&& Line truncated
`,r=e.needIndent?e.needIndent:t!=="arrow",o=i.helpers||[],a=HL(i,{filename:n,breakLineCode:s,needIndent:r});a.push(t==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(r),o.length>0&&(a.push(`const { ${qg(o.map(d=>`${d}: _${d}`),", ")} } = ctx`),a.newline()),a.push("return "),Ga(a,i),a.deindent(r),a.push("}"),delete i.helpers;const{code:c,map:l}=a.context();return{ast:i,code:c,map:l?l.toJSON():void 0}};function ZL(i,e={}){const t=vn({},e),n=!!t.jit,s=!!t.minify,r=t.optimize==null?!0:t.optimize,a=XL(t).parse(i);return n?(r&&jL(a),s&&Sa(a),{ast:a,code:""}):(zL(a,t),JL(a,t))}/*!
`,IL="\u2028",RL="\u2029";function FL(i){const e=i;let t=0,n=1,s=1,r=0;const o=S=>e[S]===kL&&e[S+1]===Xn,a=S=>e[S]===Xn,c=S=>e[S]===RL,l=S=>e[S]===IL,d=S=>o(S)||a(S)||c(S)||l(S),u=()=>t,h=()=>n,f=()=>s,p=()=>r,m=S=>o(S)||c(S)||l(S)?Xn:e[S],g=()=>m(t),v=()=>m(t+r);function y(){return r=0,d(t)&&(n++,s=0),o(t)&&t++,t++,s++,e[t]}function b(){return o(t+r)&&r++,r++,e[t+r]}function x(){t=0,n=1,s=1,r=0}function T(S=0){r=S}function E(){const S=t+r;for(;S!==t;)y();r=0}return{index:u,line:h,column:f,peekOffset:p,charAt:m,currentChar:g,currentPeek:v,next:y,peek:b,reset:x,resetPeek:T,skipToPeek:E}}const js=void 0,LL=".",Ty="'",DL="tokenizer";function OL(i,e={}){const t=e.location!==!1,n=FL(i),s=()=>n.index(),r=()=>_L(n.line(),n.column(),n.index()),o=r(),a=s(),c={currentType:13,offset:a,startLoc:o,endLoc:o,lastType:13,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},l=()=>c,{onError:d}=e;function u(N,V,W,...ee){const be=l();if(V.column+=W,V.offset+=W,d){const ye=t?Pm(be.startLoc,V):null,he=vh(N,ye,{domain:DL,args:ee});d(he)}}function h(N,V,W){N.endLoc=r(),N.currentType=V;const ee={type:V};return t&&(ee.loc=Pm(N.startLoc,N.endLoc)),W!=null&&(ee.value=W),ee}const f=N=>h(N,13);function p(N,V){return N.currentChar()===V?(N.next(),V):(u(Nt.EXPECTED_TOKEN,r(),0,V),"")}function m(N){let V="";for(;N.currentPeek()===ds||N.currentPeek()===Xn;)V+=N.currentPeek(),N.peek();return V}function g(N){const V=m(N);return N.skipToPeek(),V}function v(N){if(N===js)return!1;const V=N.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V===95}function y(N){if(N===js)return!1;const V=N.charCodeAt(0);return V>=48&&V<=57}function b(N,V){const{currentType:W}=V;if(W!==2)return!1;m(N);const ee=v(N.currentPeek());return N.resetPeek(),ee}function x(N,V){const{currentType:W}=V;if(W!==2)return!1;m(N);const ee=N.currentPeek()==="-"?N.peek():N.currentPeek(),be=y(ee);return N.resetPeek(),be}function T(N,V){const{currentType:W}=V;if(W!==2)return!1;m(N);const ee=N.currentPeek()===Ty;return N.resetPeek(),ee}function E(N,V){const{currentType:W}=V;if(W!==7)return!1;m(N);const ee=N.currentPeek()===".";return N.resetPeek(),ee}function S(N,V){const{currentType:W}=V;if(W!==8)return!1;m(N);const ee=v(N.currentPeek());return N.resetPeek(),ee}function C(N,V){const{currentType:W}=V;if(!(W===7||W===11))return!1;m(N);const ee=N.currentPeek()===":";return N.resetPeek(),ee}function M(N,V){const{currentType:W}=V;if(W!==9)return!1;const ee=()=>{const ye=N.currentPeek();return ye==="{"?v(N.peek()):ye==="@"||ye==="|"||ye===":"||ye==="."||ye===ds||!ye?!1:ye===Xn?(N.peek(),ee()):P(N,!1)},be=ee();return N.resetPeek(),be}function k(N){m(N);const V=N.currentPeek()==="|";return N.resetPeek(),V}function P(N,V=!0){const W=(be=!1,ye="")=>{const he=N.currentPeek();return he==="{"||he==="@"||!he?be:he==="|"?!(ye===ds||ye===Xn):he===ds?(N.peek(),W(!0,ds)):he===Xn?(N.peek(),W(!0,Xn)):!0},ee=W();return V&&N.resetPeek(),ee}function I(N,V){const W=N.currentChar();return W===js?js:V(W)?(N.next(),W):null}function D(N){const V=N.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V>=48&&V<=57||V===95||V===36}function $(N){return I(N,D)}function j(N){const V=N.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V>=48&&V<=57||V===95||V===36||V===45}function B(N){return I(N,j)}function Y(N){const V=N.charCodeAt(0);return V>=48&&V<=57}function U(N){return I(N,Y)}function O(N){const V=N.charCodeAt(0);return V>=48&&V<=57||V>=65&&V<=70||V>=97&&V<=102}function L(N){return I(N,O)}function R(N){let V="",W="";for(;V=U(N);)W+=V;return W}function X(N){let V="";for(;;){const W=N.currentChar();if(W==="\\"){const ee=N.peek();ee==="{"||ee==="}"||ee==="@"||ee==="|"||ee==="\\"?(V+=W+ee,N.next(),N.next()):(N.resetPeek(),V+=W,N.next())}else{if(W==="{"||W==="}"||W==="@"||W==="|"||!W)break;if(W===ds||W===Xn)if(P(N))V+=W,N.next();else{if(k(N))break;V+=W,N.next()}else V+=W,N.next()}}return V}function z(N){g(N);let V="",W="";for(;V=B(N);)W+=V;const ee=N.currentChar();if(ee&&ee!=="}"&&ee!==js&&ee!==ds&&ee!==Xn&&ee!==" "){const be=re(N);return u(Nt.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,W+be),W+be}return N.currentChar()===js&&u(Nt.UNTERMINATED_CLOSING_BRACE,r(),0),W}function K(N){g(N);let V="";return N.currentChar()==="-"?(N.next(),V+=`-${R(N)}`):V+=R(N),N.currentChar()===js&&u(Nt.UNTERMINATED_CLOSING_BRACE,r(),0),V}function Z(N){return N!==Ty&&N!==Xn}function ae(N){g(N),p(N,"'");let V="",W="";for(;V=I(N,Z);)V==="\\"?W+=ce(N):W+=V;const ee=N.currentChar();return ee===Xn||ee===js?(u(Nt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),ee===Xn&&(N.next(),p(N,"'")),W):(p(N,"'"),W)}function ce(N){const V=N.currentChar();switch(V){case"\\":case"'":return N.next(),`\\${V}`;case"u":return ve(N,V,4);case"U":return ve(N,V,6);default:return u(Nt.UNKNOWN_ESCAPE_SEQUENCE,r(),0,V),""}}function ve(N,V,W){p(N,V);let ee="";for(let be=0;be<W;be++){const ye=L(N);if(!ye){u(Nt.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${V}${ee}${N.currentChar()}`);break}ee+=ye}return`\\${V}${ee}`}function we(N){return N!=="{"&&N!=="}"&&N!==ds&& Line truncated
`,r=e.needIndent?e.needIndent:t!=="arrow",o=i.helpers||[],a=HL(i,{filename:n,breakLineCode:s,needIndent:r});a.push(t==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(r),o.length>0&&(a.push(`const { ${qg(o.map(d=>`${d}: _${d}`),", ")} } = ctx`),a.newline()),a.push("return "),Wa(a,i),a.deindent(r),a.push("}"),delete i.helpers;const{code:c,map:l}=a.context();return{ast:i,code:c,map:l?l.toJSON():void 0}};function ZL(i,e={}){const t=vn({},e),n=!!t.jit,s=!!t.minify,r=t.optimize==null?!0:t.optimize,a=XL(t).parse(i);return n?(r&&jL(a),s&&Ca(a),{ast:a,code:""}):(zL(a,t),JL(a,t))}/*!
* core-base v11.4.16
* (c) 2026 kazuya kawaguchi
* Released under the MIT License.
*/function QL(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Kr().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Kr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Go(i){return It(i)&&Zg(i)===0&&(Ni(i,"b")||Ni(i,"body"))}const lC=["b","body"];function eD(i){return lo(i,lC)}const cC=["c","cases"];function tD(i){return lo(i,cC,[])}const dC=["s","static"];function nD(i){return lo(i,dC)}const uC=["i","items"];function iD(i){return lo(i,uC,[])}const hC=["t","type"];function Zg(i){return lo(i,hC)}const fC=["v","value"];function fd(i,e){const t=lo(i,fC);if(t!=null)return t;throw cc(e)}const pC=["m","modifier"];function sD(i){return lo(i,pC)}const mC=["k","key"];function rD(i){const e=lo(i,mC);if(e)return e;throw cc(6)}function lo(i,e,t){for(let n=0;n<e.length;n++){const s=e[n];if(Ni(i,s)&&i[s]!=null)return i[s]}return t}const gC=[...lC,...cC,...dC,...uC,...mC,...pC,...fC,...hC];function cc(i){return new Error(`unhandled node type: ${i}`)}function pp(i){return t=>oD(t,i)}function oD(i,e){const t=eD(e);if(t==null)throw cc(0);if(Zg(t)===1){const r=tD(t);return i.plural(r.reduce((o,a)=>[...o,My(i,a)],[]))}else return My(i,t)}function My(i,e){const t=nD(e);if(t!=null)return i.type==="text"?t:i.normalize([t]);{const n=iD(e).reduce((s,r)=>[...s,km(i,r)],[]);return i.normalize(n)}}function km(i,e){const t=Zg(e);switch(t){case 3:return fd(e,t);case 9:return fd(e,t);case 4:{const n=e;if(Ni(n,"k")&&n.k)return i.interpolate(i.named(n.k));if(Ni(n,"key")&&n.key)return i.interpolate(i.named(n.key));throw cc(t)}case 5:{const n=e;if(Ni(n,"i")&&xn(n.i))return i.interpolate(i.list(n.i));if(Ni(n,"index")&&xn(n.index))return i.interpolate(i.list(n.index));throw cc(t)}case 6:{const n=e,s=sD(n),r=rD(n);return i.linked(km(i,r),s?km(i,s):void 0,i.type)}case 7:return fd(e,t);case 8:return fd(e,t);default:throw new Error(`unhandled node on format message part: ${t}`)}}const aD=i=>i;let pd=Xt();function lD(i,e={}){let t=!1;const n=e.onError||PL;return e.onError=s=>{t=!0,n(s)},{...ZL(i,e),detectError:t}}function cD(i,e){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&ze(i)){Dt(e.warnHtmlMessage)&&e.warnHtmlMessage;const n=(e.onCacheKey||aD)(i),s=pd[n];if(s)return s;const{ast:r,detectError:o}=lD(i,{...e,location:!1,jit:!0}),a=pp(r);return o?a:pd[n]=a}else{if(!Go(i))return(()=>i);const t=i.cacheKey;if(t){const n=pd[t];return n||(pd[t]=pp(i))}else return pp(i)}}let dc=null;function dD(i){dc=i}function uD(i,e,t){dc&&dc.emit("i18n:init",{timestamp:Date.now(),i18n:i,version:e,meta:t})}const hD=fD("function:translate");function fD(i){return e=>dc&&dc.emit(i,e)}const sr={INVALID_ARGUMENT:ML,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},pD=24;function rr(i){return vh(i,null,void 0)}function Qg(i,e){return e.locale!=null?Py(e.locale):Py(i.locale)}let mp;function Py(i){if(ze(i))return i;if(Qt(i)){if(i.resolvedOnce&&mp!=null)return mp;if(i.constructor.name==="Function"){const e=i();if(cL(e))throw rr(sr.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return mp=e}else throw rr(sr.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw rr(sr.NOT_SUPPORT_LOCALE_TYPE)}function mD(i,e,t){return[...new Set([t,...en(e)?e:It(e)?Object.keys(e).filter(n=>n!=="default"):ze(e)?[e]:[t]])]}function gD(i,e,t){const n=ze(t)?t:uc,s=i;let r;It(e)?(s.__localeChainObjectCache||(s.__localeChainObjectCache=new WeakMap),r=s.__localeChainObjectCache.get(e),r||(r=new Map,s.__localeChainObjectCache.set(e,r))):(s.__localeChainCache||(s.__localeChainCache=new Map),r=s.__localeChainCache.get(e),r||(r=new Map,s.__localeChainCache.set(e,r)));const o=r.get(n);if(o)return o;const a=[];let c=[t];for(;en(c);)c=ky(a,c,e);const l=en(e)||!Ht(e)?e:e.default?e.default:null;return c=ze(l)?[l]:l,en(c)&&ky(a,c,!1),r.set(n,a),a}function ky(i,e,t){let n=!0;for(let s=0;s<e.length&&Dt(n);s++){const r=e[s];ze(r)&&(n=vD(i,e[s],t))}return n}function vD(i,e,t){let n;const s=e.split("-");do{const r=s.join("-");n=bD(i,r,t),s.splice(-1,1)}while(s.length&&n===!0);return n}function bD(i,e,t){let n=!1;if(!i.includes(e)&&(n=!0,e)){n=e[e.length-1]!=="!";const s=e.replace(/!/g,"");i.push(s),(en(t)||Ht(t))&&t[s]&&(n=t[s])}return n}const co=[];co[0]={w:[0],i:[3,0],"[":[4],o:[7]};co[1]={w:[1],".":[2],"[":[4],o:[7]};co[2]={w:[2],i:[3,0],0:[3,0]};co[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};co[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};co[5]={"'":[4,0],o:8,l:[5,0]};co[6]={'"':[4,0],o:8,l:[6,0]};const yD=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function xD(i){return yD.test(i)}function wD(i){const e=i.charCodeAt(0),t=i.charCodeAt(i.length-1);return e===t&&(e===34||e===39)?i.slice(1,-1):i}function SD(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 CD(i){const e=i.trim();return i.charAt(0)==="0"&&Line truncated
*/function QL(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Kr().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Kr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Go(i){return It(i)&&Zg(i)===0&&(Ni(i,"b")||Ni(i,"body"))}const lC=["b","body"];function eD(i){return lo(i,lC)}const cC=["c","cases"];function tD(i){return lo(i,cC,[])}const dC=["s","static"];function nD(i){return lo(i,dC)}const uC=["i","items"];function iD(i){return lo(i,uC,[])}const hC=["t","type"];function Zg(i){return lo(i,hC)}const fC=["v","value"];function fd(i,e){const t=lo(i,fC);if(t!=null)return t;throw cc(e)}const pC=["m","modifier"];function sD(i){return lo(i,pC)}const mC=["k","key"];function rD(i){const e=lo(i,mC);if(e)return e;throw cc(6)}function lo(i,e,t){for(let n=0;n<e.length;n++){const s=e[n];if(Ni(i,s)&&i[s]!=null)return i[s]}return t}const gC=[...lC,...cC,...dC,...uC,...mC,...pC,...fC,...hC];function cc(i){return new Error(`unhandled node type: ${i}`)}function pp(i){return t=>oD(t,i)}function oD(i,e){const t=eD(e);if(t==null)throw cc(0);if(Zg(t)===1){const r=tD(t);return i.plural(r.reduce((o,a)=>[...o,My(i,a)],[]))}else return My(i,t)}function My(i,e){const t=nD(e);if(t!=null)return i.type==="text"?t:i.normalize([t]);{const n=iD(e).reduce((s,r)=>[...s,km(i,r)],[]);return i.normalize(n)}}function km(i,e){const t=Zg(e);switch(t){case 3:return fd(e,t);case 9:return fd(e,t);case 4:{const n=e;if(Ni(n,"k")&&n.k)return i.interpolate(i.named(n.k));if(Ni(n,"key")&&n.key)return i.interpolate(i.named(n.key));throw cc(t)}case 5:{const n=e;if(Ni(n,"i")&&xn(n.i))return i.interpolate(i.list(n.i));if(Ni(n,"index")&&xn(n.index))return i.interpolate(i.list(n.index));throw cc(t)}case 6:{const n=e,s=sD(n),r=rD(n);return i.linked(km(i,r),s?km(i,s):void 0,i.type)}case 7:return fd(e,t);case 8:return fd(e,t);default:throw new Error(`unhandled node on format message part: ${t}`)}}const aD=i=>i;let pd=Xt();function lD(i,e={}){let t=!1;const n=e.onError||PL;return e.onError=s=>{t=!0,n(s)},{...ZL(i,e),detectError:t}}function cD(i,e){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&ze(i)){Dt(e.warnHtmlMessage)&&e.warnHtmlMessage;const n=(e.onCacheKey||aD)(i),s=pd[n];if(s)return s;const{ast:r,detectError:o}=lD(i,{...e,location:!1,jit:!0}),a=pp(r);return o?a:pd[n]=a}else{if(!Go(i))return(()=>i);const t=i.cacheKey;if(t){const n=pd[t];return n||(pd[t]=pp(i))}else return pp(i)}}let dc=null;function dD(i){dc=i}function uD(i,e,t){dc&&dc.emit("i18n:init",{timestamp:Date.now(),i18n:i,version:e,meta:t})}const hD=fD("function:translate");function fD(i){return e=>dc&&dc.emit(i,e)}const sr={INVALID_ARGUMENT:ML,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},pD=24;function rr(i){return vh(i,null,void 0)}function Qg(i,e){return e.locale!=null?Py(e.locale):Py(i.locale)}let mp;function Py(i){if(ze(i))return i;if(Qt(i)){if(i.resolvedOnce&&mp!=null)return mp;if(i.constructor.name==="Function"){const e=i();if(cL(e))throw rr(sr.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return mp=e}else throw rr(sr.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw rr(sr.NOT_SUPPORT_LOCALE_TYPE)}function mD(i,e,t){return[...new Set([t,...en(e)?e:It(e)?Object.keys(e).filter(n=>n!=="default"):ze(e)?[e]:[t]])]}function gD(i,e,t){const n=ze(t)?t:uc,s=i;let r;It(e)?(s.__localeChainObjectCache||(s.__localeChainObjectCache=new WeakMap),r=s.__localeChainObjectCache.get(e),r||(r=new Map,s.__localeChainObjectCache.set(e,r))):(s.__localeChainCache||(s.__localeChainCache=new Map),r=s.__localeChainCache.get(e),r||(r=new Map,s.__localeChainCache.set(e,r)));const o=r.get(n);if(o)return o;const a=[];let c=[t];for(;en(c);)c=ky(a,c,e);const l=en(e)||!Ht(e)?e:e.default?e.default:null;return c=ze(l)?[l]:l,en(c)&&ky(a,c,!1),r.set(n,a),a}function ky(i,e,t){let n=!0;for(let s=0;s<e.length&&Dt(n);s++){const r=e[s];ze(r)&&(n=vD(i,e[s],t))}return n}function vD(i,e,t){let n;const s=e.split("-");do{const r=s.join("-");n=bD(i,r,t),s.splice(-1,1)}while(s.length&&n===!0);return n}function bD(i,e,t){let n=!1;if(!i.includes(e)&&(n=!0,e)){n=e[e.length-1]!=="!";const s=e.replace(/!/g,"");i.push(s),(en(t)||Ht(t))&&t[s]&&(n=t[s])}return n}const co=[];co[0]={w:[0],i:[3,0],"[":[4],o:[7]};co[1]={w:[1],".":[2],"[":[4],o:[7]};co[2]={w:[2],i:[3,0],0:[3,0]};co[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};co[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};co[5]={"'":[4,0],o:8,l:[5,0]};co[6]={'"':[4,0],o:8,l:[6,0]};const yD=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function xD(i){return yD.test(i)}function wD(i){const e=i.charCodeAt(0),t=i.charCodeAt(i.length-1);return e===t&&(e===34||e===39)?i.slice(1,-1):i}function SD(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 CD(i){const e=i.trim();return i.charAt(0)==="0"&&Line truncated
* vue-i18n v11.4.16
* (c) 2026 kazuya kawaguchi
* Released under the MIT License.
*/const qD="11.4.16";function KD(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Kr().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Kr().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Kr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Kr().__INTLIFY_PROD_DEVTOOLS__=!1)}const li={UNEXPECTED_RETURN_TYPE:pD,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 pi(i,...e){return vh(i,null,void 0)}const Lm=ao("__translateVNode"),Dm=ao("__datetimeParts"),Om=ao("__numberParts"),IC=ao("__setPluralRules"),RC=ao("__injectWithOption"),Aa=ao("__dispose");let FC=null;{const i=Kr().__VUE_INSTANCE_SETTERS__;en(i)&&i.push(e=>{FC=e})}function Br(i){return!!oC(i)}function hc(i){if(!It(i)||Go(i))return i;for(const e in i)if(Ni(i,e))if(!e.includes("."))It(i[e])&&hc(i[e]);else{const t=e.split("."),n=t.length-1;let s=i,r=!1;for(let a=0;a<n;a++){if(t[a]==="__proto__")throw new Error(`unsafe key: ${t[a]}`);if(t[a]in s||(s[t[a]]=Xt()),!It(s[t[a]])){r=!0;break}if(Go(s[t[a]])&&(gC.includes(t[a+1])||t[a+1]==="cacheKey")){r=!0;break}s=s[t[a]]}r||(s[t[n]]=i[e],delete i[e]);const o=s[t[n]];It(o)&&hc(o)}return i}function ev(i,e){const{messages:t,__i18n:n,messageResolver:s,flatJson:r}=e,o=Ht(t)?t:en(n)?Xt():{[i]:Xt()};if(en(n)&&n.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:l}=a;if(c){if(Br(c))return;o[c]=Rn(o,c)||Xt(),Nd(l,o[c])}else Nd(l,o)}else ze(a)&&Nd(JSON.parse(a),o)}),s==null&&r)for(const a in o)Ni(o,a)&&hc(o[a]);return o}function LC(i){return i.type}function DC(i,e,t){let n=It(e.messages)?e.messages:Xt();"__i18nGlobal"in t&&(n=ev(i.locale.value,{messages:n,__i18n:t.__i18nGlobal}));const s=Object.keys(n);s.length&&s.forEach(r=>{i.mergeLocaleMessage(r,n[r])});{if(It(e.datetimeFormats)){const r=Object.keys(e.datetimeFormats);r.length&&r.forEach(o=>{i.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(It(e.numberFormats)){const r=Object.keys(e.numberFormats);r.length&&r.forEach(o=>{i.mergeNumberFormat(o,e.numberFormats[o])})}}}function Xy(i){return Ce(wc,null,i,0)}function fc(){return FC??ih()}const Yy="__INTLIFY_META__",zy=()=>[],JD=()=>!1;let jy=0;function Hy(i){return((e,t,n,s)=>i(t,n,fc()||void 0,s))}const ZD=()=>{const i=fc();let e=null;return i&&(e=LC(i)[Yy])?{[Yy]:e}:null};function xu(i={}){const{__root:e,__injectWithOption:t}=i,n=e===void 0,s=i.flatJson,r=vu?Re:h_;let o=Dt(i.inheritLocale)?i.inheritLocale:!0;const a=r(e&&o?e.locale.value:ze(i.locale)?i.locale:uc),c=r(e&&o?e.fallbackLocale.value:ze(i.fallbackLocale)||en(i.fallbackLocale)||Ht(i.fallbackLocale)||i.fallbackLocale===!1?i.fallbackLocale:a.value),l=r(ev(a.value,i)),d=r(Ht(i.datetimeFormats)?i.datetimeFormats:{[a.value]:{}}),u=r(Ht(i.numberFormats)?i.numberFormats:{[a.value]:{}});let h=e?e.missingWarn:Dt(i.missingWarn)||Ha(i.missingWarn)?i.missingWarn:!0,f=e?e.fallbackWarn:Dt(i.fallbackWarn)||Ha(i.fallbackWarn)?i.fallbackWarn:!0,p=e?e.fallbackRoot:Dt(i.fallbackRoot)?i.fallbackRoot:!0,m=!!i.fallbackFormat,g=Qt(i.missing)?i.missing:null,v=Qt(i.missing)?Hy(i.missing):null,y=Qt(i.postTranslation)?i.postTranslation:null,b=e?e.warnHtmlMessage:Dt(i.warnHtmlMessage)?i.warnHtmlMessage:!0,x=!!i.escapeParameter;const T=e?e.modifiers:Ht(i.modifiers)?i.modifiers:{};let E=i.pluralRules||e&&e.pluralRules,S;S=(()=>{n&&Fy(null);const de={version:qD,locale:a.value,fallbackLocale:c.value,messages:l.value,modifiers:T,pluralRules:E,missing:v===null?void 0:v,missingWarn:h,fallbackWarn:f,fallbackFormat:m,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:b,escapeParameter:x,messageResolver:i.messageResolver,messageCompiler:i.messageCompiler,__meta:{framework:"vue"}};de.datetimeFormats=d.value,de.numberFormats=u.value;const ge=DD(de);return n&&Fy(ge),ge})(),md(S,a.value,c.value);function M(){return[a.value,c.value,l.value,d.value,u.value]}const k=Fe({get:()=>a.value,set:de=>{S.locale=de,a.value=de}});function P(de){n||(S.fallbackContext=LD());try{return de()}finally{n||(S.fallbackContext=void 0)}}function I(de){P(()=>md(S,a.value,de))}const D=Fe({get:()=>c.value,set:de=>{c.value=de,S.fallbackLocale=c.value,I(c.value)}}),$=Fe(()=>l.value),j=Fe(()=>d.value),B=Fe(()=>u.value);function Y(){return Qt(y)?y:null}function U(de){y=de,S.postTranslation=de}function O(){return g}function L(de){de!==null&&(v=Hy(de)),g=de,S.missing=v}const R=(de,ge,Ve,qe,bt,ft)=>{M();let Oe;try{__INTLIFY_PROD_DEVTOOLS__,Oe=P(()=>de(S))}finally{__INTLIFY_PROD_DEVTOOLS__}if(Ve!=="translate exists"&&xn(Oe)&&Oe===bh||Ve==="translate exists"&&!Oe){const[ot,Te]=ge();return e&&p?qe(e):bt(ot)}else{if(ft(Oe))return Oe;throw pi(li.UNEXPECTED_RETURN_TYPE)}};function X(...de){return R(ge=>Reflect.apply(Vy,null,[ge,...de]),()=>Fm(...de),"translate",ge=>Reflect.apply(ge.t,ge,[...de]),ge=>ge,ge=>ze(ge))}function z(...de){const[ge,Ve,qe]=de;if(qe&&!It(qe))throLine truncated
*/const qD="11.4.16";function KD(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Kr().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Kr().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Kr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Kr().__INTLIFY_PROD_DEVTOOLS__=!1)}const li={UNEXPECTED_RETURN_TYPE:pD,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 pi(i,...e){return vh(i,null,void 0)}const Lm=ao("__translateVNode"),Dm=ao("__datetimeParts"),Om=ao("__numberParts"),IC=ao("__setPluralRules"),RC=ao("__injectWithOption"),Ta=ao("__dispose");let FC=null;{const i=Kr().__VUE_INSTANCE_SETTERS__;en(i)&&i.push(e=>{FC=e})}function Br(i){return!!oC(i)}function hc(i){if(!It(i)||Go(i))return i;for(const e in i)if(Ni(i,e))if(!e.includes("."))It(i[e])&&hc(i[e]);else{const t=e.split("."),n=t.length-1;let s=i,r=!1;for(let a=0;a<n;a++){if(t[a]==="__proto__")throw new Error(`unsafe key: ${t[a]}`);if(t[a]in s||(s[t[a]]=Xt()),!It(s[t[a]])){r=!0;break}if(Go(s[t[a]])&&(gC.includes(t[a+1])||t[a+1]==="cacheKey")){r=!0;break}s=s[t[a]]}r||(s[t[n]]=i[e],delete i[e]);const o=s[t[n]];It(o)&&hc(o)}return i}function ev(i,e){const{messages:t,__i18n:n,messageResolver:s,flatJson:r}=e,o=Ht(t)?t:en(n)?Xt():{[i]:Xt()};if(en(n)&&n.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:l}=a;if(c){if(Br(c))return;o[c]=Rn(o,c)||Xt(),Nd(l,o[c])}else Nd(l,o)}else ze(a)&&Nd(JSON.parse(a),o)}),s==null&&r)for(const a in o)Ni(o,a)&&hc(o[a]);return o}function LC(i){return i.type}function DC(i,e,t){let n=It(e.messages)?e.messages:Xt();"__i18nGlobal"in t&&(n=ev(i.locale.value,{messages:n,__i18n:t.__i18nGlobal}));const s=Object.keys(n);s.length&&s.forEach(r=>{i.mergeLocaleMessage(r,n[r])});{if(It(e.datetimeFormats)){const r=Object.keys(e.datetimeFormats);r.length&&r.forEach(o=>{i.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(It(e.numberFormats)){const r=Object.keys(e.numberFormats);r.length&&r.forEach(o=>{i.mergeNumberFormat(o,e.numberFormats[o])})}}}function Xy(i){return Ce(wc,null,i,0)}function fc(){return FC??ih()}const Yy="__INTLIFY_META__",zy=()=>[],JD=()=>!1;let jy=0;function Hy(i){return((e,t,n,s)=>i(t,n,fc()||void 0,s))}const ZD=()=>{const i=fc();let e=null;return i&&(e=LC(i)[Yy])?{[Yy]:e}:null};function xu(i={}){const{__root:e,__injectWithOption:t}=i,n=e===void 0,s=i.flatJson,r=vu?Ie:h_;let o=Dt(i.inheritLocale)?i.inheritLocale:!0;const a=r(e&&o?e.locale.value:ze(i.locale)?i.locale:uc),c=r(e&&o?e.fallbackLocale.value:ze(i.fallbackLocale)||en(i.fallbackLocale)||Ht(i.fallbackLocale)||i.fallbackLocale===!1?i.fallbackLocale:a.value),l=r(ev(a.value,i)),d=r(Ht(i.datetimeFormats)?i.datetimeFormats:{[a.value]:{}}),u=r(Ht(i.numberFormats)?i.numberFormats:{[a.value]:{}});let h=e?e.missingWarn:Dt(i.missingWarn)||Ga(i.missingWarn)?i.missingWarn:!0,f=e?e.fallbackWarn:Dt(i.fallbackWarn)||Ga(i.fallbackWarn)?i.fallbackWarn:!0,p=e?e.fallbackRoot:Dt(i.fallbackRoot)?i.fallbackRoot:!0,m=!!i.fallbackFormat,g=Qt(i.missing)?i.missing:null,v=Qt(i.missing)?Hy(i.missing):null,y=Qt(i.postTranslation)?i.postTranslation:null,b=e?e.warnHtmlMessage:Dt(i.warnHtmlMessage)?i.warnHtmlMessage:!0,x=!!i.escapeParameter;const T=e?e.modifiers:Ht(i.modifiers)?i.modifiers:{};let E=i.pluralRules||e&&e.pluralRules,S;S=(()=>{n&&Fy(null);const de={version:qD,locale:a.value,fallbackLocale:c.value,messages:l.value,modifiers:T,pluralRules:E,missing:v===null?void 0:v,missingWarn:h,fallbackWarn:f,fallbackFormat:m,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:b,escapeParameter:x,messageResolver:i.messageResolver,messageCompiler:i.messageCompiler,__meta:{framework:"vue"}};de.datetimeFormats=d.value,de.numberFormats=u.value;const ge=DD(de);return n&&Fy(ge),ge})(),md(S,a.value,c.value);function M(){return[a.value,c.value,l.value,d.value,u.value]}const k=Fe({get:()=>a.value,set:de=>{S.locale=de,a.value=de}});function P(de){n||(S.fallbackContext=LD());try{return de()}finally{n||(S.fallbackContext=void 0)}}function I(de){P(()=>md(S,a.value,de))}const D=Fe({get:()=>c.value,set:de=>{c.value=de,S.fallbackLocale=c.value,I(c.value)}}),$=Fe(()=>l.value),j=Fe(()=>d.value),B=Fe(()=>u.value);function Y(){return Qt(y)?y:null}function U(de){y=de,S.postTranslation=de}function O(){return g}function L(de){de!==null&&(v=Hy(de)),g=de,S.missing=v}const R=(de,ge,Ve,qe,bt,ft)=>{M();let Oe;try{__INTLIFY_PROD_DEVTOOLS__,Oe=P(()=>de(S))}finally{__INTLIFY_PROD_DEVTOOLS__}if(Ve!=="translate exists"&&xn(Oe)&&Oe===bh||Ve==="translate exists"&&!Oe){const[ot,Te]=ge();return e&&p?qe(e):bt(ot)}else{if(ft(Oe))return Oe;throw pi(li.UNEXPECTED_RETURN_TYPE)}};function X(...de){return R(ge=>Reflect.apply(Vy,null,[ge,...de]),()=>Fm(...de),"translate",ge=>Reflect.apply(ge.t,ge,[...de]),ge=>ge,ge=>ze(ge))}function z(...de){const[ge,Ve,qe]=de;if(qe&&!It(qe))throLine truncated
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
@@ -1213,7 +1213,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;
}
`;class N4 extends ss{constructor(t){const n={uSampler:t??tt.EMPTY,alpha:1,uTextureMatrix:zt.IDENTITY,uColor:new Float32Array([1,1,1,1]),uDarkColor:new Float32Array([0,0,0,0])},s={tint:16777215,darkTint:0,alpha:1,pluginName:"darkTintBatch"};super(ks.from(D4,O4),n);A(this,"uvMatrix");A(this,"batchable");A(this,"pluginName");A(this,"_tintRGB");A(this,"_darkTintRGB");A(this,"_colorDirty");A(this,"_alpha");A(this,"_tintColor");A(this,"_darkTintColor");this._colorDirty=!1,this.uvMatrix=new $g(n.uSampler),this.batchable=!0,this.pluginName=s.pluginName,this._tintColor=new Ot(s.tint),this._darkTintColor=new Ot(s.darkTint),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._darkTintRGB=this._darkTintColor.toLittleEndianNumber(),this._alpha=s.alpha,this._colorDirty=!0}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}set darkTint(t){t!==this.darkTint&&(this._darkTintColor.setValue(t),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,Ot.shared.setValue(this._tintColor).premultiply(this._alpha,!0).toArray(this.uniforms.uColor),Ot.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 $4 extends ac{constructor(t){super(new L4,new N4(t),void 0,void 0);A(this,"_darkTintRGB",0)}get darkTint(){return"darkTint"in this.shader?this.shader.darkTint:null}set darkTint(t){this.shader.darkTint=t}get darkTintValue(){return this.shader.darkTintValue}_renderToBatch(t){const n=this.geometry,s=this.shader;s.uvMatrix&&(s.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=n.indexBuffer.data,this._tintRGB=s._tintRGB,this._darkTintRGB=s._darkTintRGB,this._texture=s.texture;const r=this.material.pluginName;t.batch.setObjectRenderer(t.plugins[r]),t.plugins[r].render(this)}}const Sn=class Sn extends $4{constructor(){super();A(this,"name","")}updateFromSpineData(t,n,s,r,o,a,c,l){var v,y;this.texture=t.texture;const d=o/(l?12:8)*2,u=this.geometry.getBuffer("aTextureCoord");((v=u.data)==null?void 0:v.length)!==d&&(u.data=new Float32Array(d));const h=this.geometry.getBuffer("aVertexPosition");((y=h.data)==null?void 0:y.length)!==d&&(h.data=new Float32Array(d));let f=0,p=u.data,m=h.data;for(let b=0;b<o;b+=l?12:8){let x=b;m[f]=r[x++],m[f+1]=r[x++],x+=4,p[f]=r[x++],p[f+1]=r[x++],f+=2}l?(Sn.auxColor[0]=r[8],Sn.auxColor[1]=r[9],Sn.auxColor[2]=r[10],Sn.auxColor[3]=r[11],this.darkTint=Sn.auxColor,Sn.auxColor[0]=r[2],Sn.auxColor[1]=r[3],Sn.auxColor[2]=r[4],Sn.auxColor[3]=r[5],this.tint=Sn.auxColor):(Sn.auxColor[0]=r[2],Sn.auxColor[1]=r[3],Sn.auxColor[2]=r[4],Sn.auxColor[3]=r[5],this.tint=Sn.auxColor),this.blendMode=Wo.toPixiBlending(n),this.alpha=Sn.auxColor[3];const g=this.geometry.indexBuffer;if(g.data.length!==a.length)g.data=new Uint32Array(a);else{const b=g.data;for(let x=0;x<c;x++)b[x]=a[x]}this.name=s,u.update(),h.update(),g.update()}};A(Sn,"auxColor",[0,0,0,0]);let Vl=Sn;const Rt=class Rt extends Mn{constructor(t,n){if(t instanceof Au)t={...n,skeletonData:t};else if(n)throw new Error("You cannot use options and oldOptions together.");super();A(this,"skeleton");A(this,"state");A(this,"darkTint",!1);A(this,"hasNeverUpdated",!0);A(this,"_debug");A(this,"slotMeshFactory",()=>new Xm);A(this,"beforeUpdateWorldTransforms",()=>{});A(this,"afterUpdateWorldTransforms",()=>{});A(this,"_autoUpdate",!1);A(this,"_ticker",ai.shared);A(this,"meshesCache",new Map);A(this,"lightColor",new ut);A(this,"darkColor",new ut);A(this,"_boundsProvider");A(this,"_boundsPoint",new Pt);A(this,"_boundsSpineID",-1);A(this,"_boundsSpineDirty",!0);A(this,"slotsObject",new Map);A(this,"verticesCache",Ne.newFloatArray(1024));A(this,"clippingSlotToPixiMasks",{});A(this,"currentClippingSlot");const s=t instanceof Au?t:t.skeletonData;this.skeleton=new rv(s);const r=new z3(s);this.state=new B3(r),(t==null?void 0:t.darkTint)!==void 0||(n==null?void 0:n.slotMeshFactory)===void 0?(this.darkTint=(t==null?void 0:t.darkTint)===void 0?this.skeleton.slots.some(o=>!!o.data.darkColor):t==null?void 0:t.darkTint,this.darkTint&&(this.slotMeshFactory=()=>new Vl)):this.initializeMeshFactory(n==null?void 0:n.slotMeshFactory),t!=null&&t.ticker&&(this._ticker=t.ticker),this.autoUpdate=(t==null?void 0:t.autoUpdate)??!0,this.boundsProvider=t.boundsProvide Line truncated
`;class N4 extends ss{constructor(t){const n={uSampler:t??tt.EMPTY,alpha:1,uTextureMatrix:zt.IDENTITY,uColor:new Float32Array([1,1,1,1]),uDarkColor:new Float32Array([0,0,0,0])},s={tint:16777215,darkTint:0,alpha:1,pluginName:"darkTintBatch"};super(ks.from(D4,O4),n);A(this,"uvMatrix");A(this,"batchable");A(this,"pluginName");A(this,"_tintRGB");A(this,"_darkTintRGB");A(this,"_colorDirty");A(this,"_alpha");A(this,"_tintColor");A(this,"_darkTintColor");this._colorDirty=!1,this.uvMatrix=new $g(n.uSampler),this.batchable=!0,this.pluginName=s.pluginName,this._tintColor=new Ot(s.tint),this._darkTintColor=new Ot(s.darkTint),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._darkTintRGB=this._darkTintColor.toLittleEndianNumber(),this._alpha=s.alpha,this._colorDirty=!0}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}set darkTint(t){t!==this.darkTint&&(this._darkTintColor.setValue(t),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,Ot.shared.setValue(this._tintColor).premultiply(this._alpha,!0).toArray(this.uniforms.uColor),Ot.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 $4 extends ac{constructor(t){super(new L4,new N4(t),void 0,void 0);A(this,"_darkTintRGB",0)}get darkTint(){return"darkTint"in this.shader?this.shader.darkTint:null}set darkTint(t){this.shader.darkTint=t}get darkTintValue(){return this.shader.darkTintValue}_renderToBatch(t){const n=this.geometry,s=this.shader;s.uvMatrix&&(s.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=n.indexBuffer.data,this._tintRGB=s._tintRGB,this._darkTintRGB=s._darkTintRGB,this._texture=s.texture;const r=this.material.pluginName;t.batch.setObjectRenderer(t.plugins[r]),t.plugins[r].render(this)}}const Sn=class Sn extends $4{constructor(){super();A(this,"name","")}updateFromSpineData(t,n,s,r,o,a,c,l){var v,y;this.texture=t.texture;const d=o/(l?12:8)*2,u=this.geometry.getBuffer("aTextureCoord");((v=u.data)==null?void 0:v.length)!==d&&(u.data=new Float32Array(d));const h=this.geometry.getBuffer("aVertexPosition");((y=h.data)==null?void 0:y.length)!==d&&(h.data=new Float32Array(d));let f=0,p=u.data,m=h.data;for(let b=0;b<o;b+=l?12:8){let x=b;m[f]=r[x++],m[f+1]=r[x++],x+=4,p[f]=r[x++],p[f+1]=r[x++],f+=2}l?(Sn.auxColor[0]=r[8],Sn.auxColor[1]=r[9],Sn.auxColor[2]=r[10],Sn.auxColor[3]=r[11],this.darkTint=Sn.auxColor,Sn.auxColor[0]=r[2],Sn.auxColor[1]=r[3],Sn.auxColor[2]=r[4],Sn.auxColor[3]=r[5],this.tint=Sn.auxColor):(Sn.auxColor[0]=r[2],Sn.auxColor[1]=r[3],Sn.auxColor[2]=r[4],Sn.auxColor[3]=r[5],this.tint=Sn.auxColor),this.blendMode=Wo.toPixiBlending(n),this.alpha=Sn.auxColor[3];const g=this.geometry.indexBuffer;if(g.data.length!==a.length)g.data=new Uint32Array(a);else{const b=g.data;for(let x=0;x<c;x++)b[x]=a[x]}this.name=s,u.update(),h.update(),g.update()}};A(Sn,"auxColor",[0,0,0,0]);let Vl=Sn;const Rt=class Rt extends Mn{constructor(t,n){if(t instanceof Au)t={...n,skeletonData:t};else if(n)throw new Error("You cannot use options and oldOptions together.");super();A(this,"skeleton");A(this,"state");A(this,"darkTint",!1);A(this,"hasNeverUpdated",!0);A(this,"_debug");A(this,"slotMeshFactory",()=>new Xm);A(this,"beforeUpdateWorldTransforms",()=>{});A(this,"afterUpdateWorldTransforms",()=>{});A(this,"_autoUpdate",!1);A(this,"_ticker",ai.shared);A(this,"meshesCache",new Map);A(this,"lightColor",new ut);A(this,"darkColor",new ut);A(this,"_boundsProvider");A(this,"_boundsPoint",new Pt);A(this,"_boundsSpineID",-1);A(this,"_boundsSpineDirty",!0);A(this,"slotsObject",new Map);A(this,"verticesCache",Ne.newFloatArray(1024));A(this,"clippingSlotToPixiMasks",{});A(this,"currentClippingSlot");const s=t instanceof Au?t:t.skeletonData;this.skeleton=new rv(s);const r=new z3(s);this.state=new B3(r),(t==null?void 0:t.darkTint)!==void 0||(n==null?void 0:n.slotMeshFactory)===void 0?(this.darkTint=(t==null?void 0:t.darkTint)===void 0?this.skeleton.slots.some(o=>!!o.data.darkColor):t==null?void 0:t.darkTint,this.darkTint&&(this.slotMeshFactory=()=>new Vl)):this.initializeMeshFactory(n==null?void 0:n.slotMeshFactory),t!=null&&t.ticker&&(this._ticker=t.ticker),this.autoUpdate=(t==null?void 0:t.autoUpdate)??!0,this.boundsProvider=t.boundsProvide Line truncated
precision highp float;
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
@@ -1254,4 +1254,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 VA extends Nr{constructor(e){super(e),this.shaderGenerator=new zw(z4,j4),this.geometryClass=Y4,this.vertexSize=7}packInterleavedGeometry(e,t,n,s,r){const{uint32View:o,float32View:a}=t,c=s/this.vertexSize,l=e.uvs,d=e.indices,u=e.vertexData,h=e._texture.baseTexture._batchLocation,f=Math.min(e.worldAlpha,1),p=Ot.shared.setValue(e._tintRGB).toPremultiplied(f,!0),m=Ot.shared.setValue(e._darkTintRGB).premultiply(f,!0).toPremultiplied(1,!1);for(let g=0;g<u.length;g+=2)a[s++]=u[g],a[s++]=u[g+1],a[s++]=l[g],a[s++]=l[g+1],o[s++]=p,o[s++]=m,a[s++]=h;for(let g=0;g<d.length;g++)n[r++]=c+d[g]}}A(VA,"extension",{name:"darkTintBatch",type:$e.RendererPlugin});He.add(VA);function H4(i){return i.replace(/\\/g,"/").split("/").pop()||i}function ov(i,e,t){for(const n of i.pages){const s=e.get(H4(n.name).toLowerCase());if(!s)throw new Error(ke("errors.missingAtlasTexture",{name:n.name}));s.baseTexture.alphaMode=n.pma?Fn.PMA:Fn.UNPACK,n.setTexture(t.from(s.baseTexture))}}function XA(i,e){const t=new MA(i);return ov(t,e,Wo),new Bm(t)}function G4(i,e,t){return{skeletonData:new Eu(XA(e,t)).readSkeletonData(i),SpineClass:_u}}function W4(i,e,t){return{skeletonData:new Vm(XA(e,t)).readSkeletonData(i),SpineClass:_u}}const q4="modulepreload",K4=function(i){return"/"+i},hx={},fx=function(e,t,n){let s=Promise.resolve();if(t&&t.length>0){let o=function(l){return Promise.all(l.map(d=>Promise.resolve(d).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),c=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=o(t.map(l=>{if(l=K4(l),l in hx)return;hx[l]=!0;const d=l.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":q4,d||(h.as="script"),h.crossOrigin="",h.href=l,c&&h.setAttribute("nonce",c),document.head.appendChild(h),d)return new Promise((f,p)=>{h.addEventListener("load",f),h.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function r(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&r(a.reason);return e().catch(r)})};async function YA(){const[i,e]=await Promise.all([fx(()=>import("./index-Cq95D0sH.js"),[]),fx(()=>import("./index-Czc7CHAB.js"),__vite__mapDeps([0,1]))]);return{core:i,pixi:e}}async function J4(i,e,t){const{core:n,pixi:s}=await YA(),r=new n.TextureAtlas(e);return ov(r,t,s.SpineTexture),{skeletonData:new n.SkeletonJson(new n.AtlasAttachmentLoader(r)).readSkeletonData(i),SpineClass:s.Spine}}async function Z4(i,e,t){const{core:n,pixi:s}=await YA(),r=new n.TextureAtlas(e);return ov(r,t,s.SpineTexture),{skeletonData:new n.SkeletonBinary(new n.AtlasAttachmentLoader(r)).readSkeletonData(i),SpineClass:s.Spine}}function jr(i,e,t){const n=Number(i[e]);return Number.isFinite(n)?n:t}function hi(i,e,t,n){i[e]==null&&(i[e]=jr(i,t,n))}function av(i,e,t){if(typeof i.curve!="number")return;const n=jr(i,"time",0),r=jr(e,"time",0)-n,o=i.curve,a=jr(i,"c2",0),c=jr(i,"c3",1),l=jr(i,"c4",1);i.curve=t.flatMap(([d,u])=>[n+r*o,d+(u-d)*a,n+r*c,d+(u-d)*l]),delete i.c2,delete i.c3,delete i.c4}function Zr(i,e){if(Array.isArray(i))for(let t=0;t<i.length-1;t++){const n=i[t],s=i[t+1];av(n,s,e.map(({key:r,fallback:o})=>[jr(n,r,o),jr(s,r,o)]))}}function Q4(i){if(Array.isArray(i))for(let e=0;e<i.length-1;e++)av(i[e],i[e+1],[[0,1]])}function ua(i,e){const t=typeof i=="string"?i.replace(/^#/,""):"",n=t.length===6?`${t}ff`:t.padEnd(8,"f").slice(0,8),s=[0,2,4,6].map(r=>Number.parseInt(n.slice(r,r+2),16)/255);return e?s:s.slice(0,3)}function px(i,e){if(Array.isArray(i))for(let t=0;t<i.length-1;t++){const n=i[t],s=i[t+1],r=e?[...ua(n.light,!0),...ua(n.dark,!1)]:ua(n.color,!0),o=e?[...ua(s.light,!0),...ua(s.dark,!1)]:ua(s.color,!0);av(n,s,r.map((a,c)=>[a,o[c]]))}}function eU(i){for(const e of i.bones||[])e.inherit==null&&e.transform!=null&&(e.inherit=e.transform);for(const e of i.transform||[])hi(e,"mixRotate","rotateMix",1),hi(e,"mixX","translateMix",1),e.mixY==null&&(e.mixY=e.mixX),hi(e,"mixScaleX","scaleMix",1),e.mixScaleY==null&&(e.mixScaleY=e.mixScaleX),hi(e,"mixShearY","shearMix",1);for(const e of i.path||[])hi(e,"mixRotate","rotateMix",1),hi(e,"mixX","translateMix",1),e.mixY==null&&(e.mixY=e.mixX)}function tU(i){for(const e of i.skins||[])for(const t of Object.values(e.attachments||{}))for(const n of Object.values(t||{}))n.parent!=null&&n.timelines==null&&n.deform!=null&&(n.timelines=n.deform)}function nU(i){for(const e of Object.values(i.slots||{}))e.color&&!e.rgba&&(e.rgba=e.color,delete e.color),e.twoColor&&!e.rgba2&&(e.rgba2=e.twoColor,delete e.twoColor),px(e.rgba,!1),px(e.rgba2,!0)}function iU(i){for(const e of Object.values(i.bones||{})){for(const t of e.rotate||[])hi(t,"value","angle",0);Zr(e.rotate,[{key:"value",fallback:0}]),Zr(e.t Line truncated
`;class VA extends Nr{constructor(e){super(e),this.shaderGenerator=new zw(z4,j4),this.geometryClass=Y4,this.vertexSize=7}packInterleavedGeometry(e,t,n,s,r){const{uint32View:o,float32View:a}=t,c=s/this.vertexSize,l=e.uvs,d=e.indices,u=e.vertexData,h=e._texture.baseTexture._batchLocation,f=Math.min(e.worldAlpha,1),p=Ot.shared.setValue(e._tintRGB).toPremultiplied(f,!0),m=Ot.shared.setValue(e._darkTintRGB).premultiply(f,!0).toPremultiplied(1,!1);for(let g=0;g<u.length;g+=2)a[s++]=u[g],a[s++]=u[g+1],a[s++]=l[g],a[s++]=l[g+1],o[s++]=p,o[s++]=m,a[s++]=h;for(let g=0;g<d.length;g++)n[r++]=c+d[g]}}A(VA,"extension",{name:"darkTintBatch",type:$e.RendererPlugin});He.add(VA);function H4(i){return i.replace(/\\/g,"/").split("/").pop()||i}function ov(i,e,t){for(const n of i.pages){const s=e.get(H4(n.name).toLowerCase());if(!s)throw new Error(ke("errors.missingAtlasTexture",{name:n.name}));s.baseTexture.alphaMode=n.pma?Fn.PMA:Fn.UNPACK,n.setTexture(t.from(s.baseTexture))}}function XA(i,e){const t=new MA(i);return ov(t,e,Wo),new Bm(t)}function G4(i,e,t){return{skeletonData:new Eu(XA(e,t)).readSkeletonData(i),SpineClass:_u}}function W4(i,e,t){return{skeletonData:new Vm(XA(e,t)).readSkeletonData(i),SpineClass:_u}}const q4="modulepreload",K4=function(i){return"/"+i},hx={},fx=function(e,t,n){let s=Promise.resolve();if(t&&t.length>0){let o=function(l){return Promise.all(l.map(d=>Promise.resolve(d).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),c=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=o(t.map(l=>{if(l=K4(l),l in hx)return;hx[l]=!0;const d=l.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":q4,d||(h.as="script"),h.crossOrigin="",h.href=l,c&&h.setAttribute("nonce",c),document.head.appendChild(h),d)return new Promise((f,p)=>{h.addEventListener("load",f),h.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function r(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&r(a.reason);return e().catch(r)})};async function YA(){const[i,e]=await Promise.all([fx(()=>import("./index-7TEaXqdY.js"),[]),fx(()=>import("./index-CPqyDMc2.js"),__vite__mapDeps([0,1]))]);return{core:i,pixi:e}}async function J4(i,e,t){const{core:n,pixi:s}=await YA(),r=new n.TextureAtlas(e);return ov(r,t,s.SpineTexture),{skeletonData:new n.SkeletonJson(new n.AtlasAttachmentLoader(r)).readSkeletonData(i),SpineClass:s.Spine}}async function Z4(i,e,t){const{core:n,pixi:s}=await YA(),r=new n.TextureAtlas(e);return ov(r,t,s.SpineTexture),{skeletonData:new n.SkeletonBinary(new n.AtlasAttachmentLoader(r)).readSkeletonData(i),SpineClass:s.Spine}}function jr(i,e,t){const n=Number(i[e]);return Number.isFinite(n)?n:t}function hi(i,e,t,n){i[e]==null&&(i[e]=jr(i,t,n))}function av(i,e,t){if(typeof i.curve!="number")return;const n=jr(i,"time",0),r=jr(e,"time",0)-n,o=i.curve,a=jr(i,"c2",0),c=jr(i,"c3",1),l=jr(i,"c4",1);i.curve=t.flatMap(([d,u])=>[n+r*o,d+(u-d)*a,n+r*c,d+(u-d)*l]),delete i.c2,delete i.c3,delete i.c4}function Zr(i,e){if(Array.isArray(i))for(let t=0;t<i.length-1;t++){const n=i[t],s=i[t+1];av(n,s,e.map(({key:r,fallback:o})=>[jr(n,r,o),jr(s,r,o)]))}}function Q4(i){if(Array.isArray(i))for(let e=0;e<i.length-1;e++)av(i[e],i[e+1],[[0,1]])}function ha(i,e){const t=typeof i=="string"?i.replace(/^#/,""):"",n=t.length===6?`${t}ff`:t.padEnd(8,"f").slice(0,8),s=[0,2,4,6].map(r=>Number.parseInt(n.slice(r,r+2),16)/255);return e?s:s.slice(0,3)}function px(i,e){if(Array.isArray(i))for(let t=0;t<i.length-1;t++){const n=i[t],s=i[t+1],r=e?[...ha(n.light,!0),...ha(n.dark,!1)]:ha(n.color,!0),o=e?[...ha(s.light,!0),...ha(s.dark,!1)]:ha(s.color,!0);av(n,s,r.map((a,c)=>[a,o[c]]))}}function eU(i){for(const e of i.bones||[])e.inherit==null&&e.transform!=null&&(e.inherit=e.transform);for(const e of i.transform||[])hi(e,"mixRotate","rotateMix",1),hi(e,"mixX","translateMix",1),e.mixY==null&&(e.mixY=e.mixX),hi(e,"mixScaleX","scaleMix",1),e.mixScaleY==null&&(e.mixScaleY=e.mixScaleX),hi(e,"mixShearY","shearMix",1);for(const e of i.path||[])hi(e,"mixRotate","rotateMix",1),hi(e,"mixX","translateMix",1),e.mixY==null&&(e.mixY=e.mixX)}function tU(i){for(const e of i.skins||[])for(const t of Object.values(e.attachments||{}))for(const n of Object.values(t||{}))n.parent!=null&&n.timelines==null&&n.deform!=null&&(n.timelines=n.deform)}function nU(i){for(const e of Object.values(i.slots||{}))e.color&&!e.rgba&&(e.rgba=e.color,delete e.color),e.twoColor&&!e.rgba2&&(e.rgba2=e.twoColor,delete e.twoColor),px(e.rgba,!1),px(e.rgba2,!0)}function iU(i){for(const e of Object.values(i.bones||{})){for(const t of e.rotate||[])hi(t,"value","angle",0);Zr(e.rotate,[{key:"value",fallback:0}]),Zr(e.t Line truncated
@@ -1,4 +1,4 @@
var Ae=Object.defineProperty;var Be=(m,o,e)=>o in m?Ae(m,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):m[o]=e;var a=(m,o,e)=>Be(m,typeof o!="symbol"?o+"":o,e);import{T as Fe,a as he,b as F,S as ue,M as pe,c as oe,W as ne,B as H,d as z,L as Te,E as O,e as ce,p as q,f as Ee,g as fe,A as Q,h as me,i as De,j as V,s as re,G as we,k as $,l as Y,m as Le,P as Ie,n as Re,o as Ne,C as X,q as be,r as _e,t as Ue,u as Ye,v as Xe,w as ee,x as j,y as ke,z as Ve,D as J,F as ge,V as Ge,H as ae,I as We,J as $e,U as xe,K as E,R as ve,N as ye,O as Pe,Q as Oe,X as He,Y as ze,Z as qe,_ as Ke}from"./index-dYQL5usi.js";import{$ as bt,a0 as kt,a1 as vt,a2 as yt,a3 as Pt,a4 as St,a5 as Mt,a6 as At,a7 as Bt,a8 as Ft,a9 as Et,aa as Dt,ab as Lt,ac as It,ad as Rt,ae as Nt,af as _t,ag as Ut,ah as Yt,ai as Xt,aj as Vt,ak as Gt,al as Wt,am as $t,an as Ot,ao as Ht,ap as zt,aq as qt,ar as Kt,as as Zt,at as Jt,au as Qt,av as jt,aw as es,ax as ts,ay as ss,az as os,aA as ns,aB as as,aC as rs,aD as is,aE as ls,aF as hs,aG as cs,aH as ds,aI as us,aJ as ps,aK as fs,aL as ms,aM as gs,aN as xs,aO as Cs,aP as Ts,aQ as ws,aR as bs,aS as ks,aT as vs,aU as ys,aV as Ps,aW as Ss,aX as Ms,aY as As,aZ as Bs,a_ as Fs,a$ as Es,b0 as Ds,b1 as Ls,b2 as Is,b3 as Rs,b4 as Ns,b5 as _s,b6 as Us,b7 as Ys,b8 as Xs,b9 as Vs,ba as Gs,bb as Ws,bc as $s,bd as Os,be as Hs,bf as zs,bg as qs,bh as Ks,bi as Zs,bj as Js,bk as Qs,bl as js,bm as eo,bn as to,bo as so,bp as oo,bq as no,br as ao,bs as ro,bt as io,bu as lo,bv as ho,bw as co,bx as uo,by as po,bz as fo,bA as mo,bB as go,bC as xo,bD as Co,bE as To,bF as wo,bG as bo,bH as ko,bI as vo,bJ as yo,bK as Po,bL as So,bM as Mo,bN as Ao,bO as Bo,bP as Fo,bQ as Eo,bR as Do,bS as Lo,bT as Io,bU as Ro,bV as No,bW as _o,bX as Uo,bY as Yo,bZ as Xo,b_ as Vo,b$ as Go,c0 as Wo,c1 as $o,c2 as Oo,c3 as Ho}from"./index-dYQL5usi.js";import{SkeletonClipping as de,SkeletonPhysicsMovement as Ze,AnimationStateData as Je,AtlasAttachmentLoader as Qe,SkeletonBounds as je}from"./index-Cq95D0sH.js";import{AssetCache as qo,AssetManagerBase as Ko,Downloader as Zo,SkeletonRendererCore as Jo,Triangulator as Qo}from"./index-Cq95D0sH.js";if(typeof window<"u"&&window.PIXI){const m=window.require;window.require=o=>{if(m)return m(o);if(o.startsWith("@pixi/"))return window.PIXI}}const _=class _ extends Fe{constructor(e){super(e.resource.source);a(this,"texture");this.texture=he.from(e)}static from(e){return _.textureMap.has(e)?_.textureMap.get(e):new _(e)}setFilters(e,t){this.texture.baseTexture.scaleMode=_.toPixiTextureFilter(e),this.texture.baseTexture.mipmap=_.toPixiMipMap(e)}setWraps(e,t){this.texture.baseTexture.wrapMode=_.toPixiTextureWrap(e)}dispose(){this.texture.destroy()}static toPixiTextureFilter(e){switch(e){case F.Nearest:case F.MipMapNearestLinear:case F.MipMapNearestNearest:return ue.NEAREST;case F.Linear:case F.MipMapLinearLinear:case F.MipMapLinearNearest:return ue.LINEAR;default:throw new Error(`Unknown texture filter: ${String(e)}`)}}static toPixiMipMap(e){switch(e){case F.Nearest:case F.Linear:return pe.OFF;case F.MipMapNearestLinear:case F.MipMapNearestNearest:case F.MipMapLinearLinear:case F.MipMapLinearNearest:return pe.ON;default:throw new Error(`Unknown texture filter: ${String(e)}`)}}static toPixiTextureWrap(e){switch(e){case oe.ClampToEdge:return ne.CLAMP;case oe.MirroredRepeat:return ne.MIRRORED_REPEAT;case oe.Repeat:return ne.REPEAT;default:throw new Error(`Unknown texture wrap: ${String(e)}`)}}static toPixiBlending(e){switch(e){case H.Normal:return z.NORMAL;case H.Additive:return z.ADD;case H.Multiply:return z.MULTIPLY;case H.Screen:return z.SCREEN;default:throw new Error(`Unknown blendMode: ${String(e)}`)}}};a(_,"textureMap",new Map);let G=_;const K="spineTextureAtlasLoader",et={extension:O.Asset,resolver:{test:m=>V(m,".atlas"),parse:m=>{var e,t;const o=m.split(".");return{resolution:parseFloat(((t=(e=re.RETINA_PREFIX)==null?void 0:e.exec(m))==null?void 0:t[1])??"1"),format:o[o.length-2],src:m}}},loader:{name:K,extension:{type:O.LoadParser,priority:Te.Normal,name:K},test(m){return V(m,".atlas")},async load(m){const o=await re.ADAPTER.fetch(m);if(!o.ok)throw new Error(`[${K}] Failed to fetch ${m}: ${o.status} ${o.statusText}`);return await o.text()},testParse(m,o){const e=V(o.src,".atlas"),t=typeof m=="string",s=o.loadParser===K;return Promise.resolve((e||s)&&t)},unload(m){m.dispose()},async parse(m,o,e){var p;const t=o.data||{};let s=q.dirname(o.src);s&&s.lastIndexOf("/")!==s.length-1&&(s+="/");const n=new Ee(m);if(t.images instanceof fe||typeof t.images=="string"){const h=t.images;t.images={},t.images[n.pages[0].name]=h}const r=[];let l=!0;for(const h of e.parsers)if(h.name==="loadTextures"){l=(p=h.config)==null?void 0:p.preferCreateImageBitmap;break}Q.setPreferences({preferCreateImageBitmap:!1});for(const h of n.pages){const u=h.name,c=t!=null&&t.images?t.images[u]:void 0;if(c instanceof fe)h.setTexture(G.from(c));else{const i=c??q.normalize([...s.split(q.sep),u].join(q.sep)),g={src:De(i,o.src),data:{...t.imageMetadLine truncated
var Ae=Object.defineProperty;var Be=(m,o,e)=>o in m?Ae(m,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):m[o]=e;var a=(m,o,e)=>Be(m,typeof o!="symbol"?o+"":o,e);import{T as Fe,a as he,b as F,S as ue,M as pe,c as oe,W as ne,B as H,d as z,L as Te,E as O,e as ce,p as q,f as Ee,g as fe,A as Q,h as me,i as De,j as V,s as re,G as we,k as $,l as Y,m as Le,P as Ie,n as Re,o as Ne,C as X,q as be,r as _e,t as Ue,u as Ye,v as Xe,w as ee,x as j,y as ke,z as Ve,D as J,F as ge,V as Ge,H as ae,I as We,J as $e,U as xe,K as E,R as ve,N as ye,O as Pe,Q as Oe,X as He,Y as ze,Z as qe,_ as Ke}from"./index-Bt9Riflf.js";import{$ as bt,a0 as kt,a1 as vt,a2 as yt,a3 as Pt,a4 as St,a5 as Mt,a6 as At,a7 as Bt,a8 as Ft,a9 as Et,aa as Dt,ab as Lt,ac as It,ad as Rt,ae as Nt,af as _t,ag as Ut,ah as Yt,ai as Xt,aj as Vt,ak as Gt,al as Wt,am as $t,an as Ot,ao as Ht,ap as zt,aq as qt,ar as Kt,as as Zt,at as Jt,au as Qt,av as jt,aw as es,ax as ts,ay as ss,az as os,aA as ns,aB as as,aC as rs,aD as is,aE as ls,aF as hs,aG as cs,aH as ds,aI as us,aJ as ps,aK as fs,aL as ms,aM as gs,aN as xs,aO as Cs,aP as Ts,aQ as ws,aR as bs,aS as ks,aT as vs,aU as ys,aV as Ps,aW as Ss,aX as Ms,aY as As,aZ as Bs,a_ as Fs,a$ as Es,b0 as Ds,b1 as Ls,b2 as Is,b3 as Rs,b4 as Ns,b5 as _s,b6 as Us,b7 as Ys,b8 as Xs,b9 as Vs,ba as Gs,bb as Ws,bc as $s,bd as Os,be as Hs,bf as zs,bg as qs,bh as Ks,bi as Zs,bj as Js,bk as Qs,bl as js,bm as eo,bn as to,bo as so,bp as oo,bq as no,br as ao,bs as ro,bt as io,bu as lo,bv as ho,bw as co,bx as uo,by as po,bz as fo,bA as mo,bB as go,bC as xo,bD as Co,bE as To,bF as wo,bG as bo,bH as ko,bI as vo,bJ as yo,bK as Po,bL as So,bM as Mo,bN as Ao,bO as Bo,bP as Fo,bQ as Eo,bR as Do,bS as Lo,bT as Io,bU as Ro,bV as No,bW as _o,bX as Uo,bY as Yo,bZ as Xo,b_ as Vo,b$ as Go,c0 as Wo,c1 as $o,c2 as Oo,c3 as Ho}from"./index-Bt9Riflf.js";import{SkeletonClipping as de,SkeletonPhysicsMovement as Ze,AnimationStateData as Je,AtlasAttachmentLoader as Qe,SkeletonBounds as je}from"./index-7TEaXqdY.js";import{AssetCache as qo,AssetManagerBase as Ko,Downloader as Zo,SkeletonRendererCore as Jo,Triangulator as Qo}from"./index-7TEaXqdY.js";if(typeof window<"u"&&window.PIXI){const m=window.require;window.require=o=>{if(m)return m(o);if(o.startsWith("@pixi/"))return window.PIXI}}const _=class _ extends Fe{constructor(e){super(e.resource.source);a(this,"texture");this.texture=he.from(e)}static from(e){return _.textureMap.has(e)?_.textureMap.get(e):new _(e)}setFilters(e,t){this.texture.baseTexture.scaleMode=_.toPixiTextureFilter(e),this.texture.baseTexture.mipmap=_.toPixiMipMap(e)}setWraps(e,t){this.texture.baseTexture.wrapMode=_.toPixiTextureWrap(e)}dispose(){this.texture.destroy()}static toPixiTextureFilter(e){switch(e){case F.Nearest:case F.MipMapNearestLinear:case F.MipMapNearestNearest:return ue.NEAREST;case F.Linear:case F.MipMapLinearLinear:case F.MipMapLinearNearest:return ue.LINEAR;default:throw new Error(`Unknown texture filter: ${String(e)}`)}}static toPixiMipMap(e){switch(e){case F.Nearest:case F.Linear:return pe.OFF;case F.MipMapNearestLinear:case F.MipMapNearestNearest:case F.MipMapLinearLinear:case F.MipMapLinearNearest:return pe.ON;default:throw new Error(`Unknown texture filter: ${String(e)}`)}}static toPixiTextureWrap(e){switch(e){case oe.ClampToEdge:return ne.CLAMP;case oe.MirroredRepeat:return ne.MIRRORED_REPEAT;case oe.Repeat:return ne.REPEAT;default:throw new Error(`Unknown texture wrap: ${String(e)}`)}}static toPixiBlending(e){switch(e){case H.Normal:return z.NORMAL;case H.Additive:return z.ADD;case H.Multiply:return z.MULTIPLY;case H.Screen:return z.SCREEN;default:throw new Error(`Unknown blendMode: ${String(e)}`)}}};a(_,"textureMap",new Map);let G=_;const K="spineTextureAtlasLoader",et={extension:O.Asset,resolver:{test:m=>V(m,".atlas"),parse:m=>{var e,t;const o=m.split(".");return{resolution:parseFloat(((t=(e=re.RETINA_PREFIX)==null?void 0:e.exec(m))==null?void 0:t[1])??"1"),format:o[o.length-2],src:m}}},loader:{name:K,extension:{type:O.LoadParser,priority:Te.Normal,name:K},test(m){return V(m,".atlas")},async load(m){const o=await re.ADAPTER.fetch(m);if(!o.ok)throw new Error(`[${K}] Failed to fetch ${m}: ${o.status} ${o.statusText}`);return await o.text()},testParse(m,o){const e=V(o.src,".atlas"),t=typeof m=="string",s=o.loadParser===K;return Promise.resolve((e||s)&&t)},unload(m){m.dispose()},async parse(m,o,e){var p;const t=o.data||{};let s=q.dirname(o.src);s&&s.lastIndexOf("/")!==s.length-1&&(s+="/");const n=new Ee(m);if(t.images instanceof fe||typeof t.images=="string"){const h=t.images;t.images={},t.images[n.pages[0].name]=h}const r=[];let l=!0;for(const h of e.parsers)if(h.name==="loadTextures"){l=(p=h.config)==null?void 0:p.preferCreateImageBitmap;break}Q.setPreferences({preferCreateImageBitmap:!1});for(const h of n.pages){const u=h.name,c=t!=null&&t.images?t.images[u]:void 0;if(c instanceof fe)h.setTexture(G.from(c));else{const i=c??q.normalize([...s.split(q.sep),u].join(q.sep)),g={src:De(i,o.src),data:{...t.imageMetadLine truncated
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
@@ -1 +1 @@
.help-overlay[data-v-4bb9bc76]{position:absolute;top:0;right:0;bottom:0;left:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:72px 24px 28px;box-sizing:border-box;background:#05080fb8;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.help-dialog[data-v-4bb9bc76]{width:min(820px,100%);max-height:100%;display:flex;flex-direction:column;overflow:hidden;border:1px solid #3a4864;border-radius:14px;background:#141a27;color:#b8c3d8;box-shadow:0 22px 70px #0000009e}.help-head[data-v-4bb9bc76]{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px 15px;border-bottom:1px solid #2b354a;background:linear-gradient(135deg,#202942,#181e2d)}.help-head h2[data-v-4bb9bc76]{margin:0;color:#eef2ff;font-size:19px}.help-head p[data-v-4bb9bc76]{margin:5px 0 0;color:#7786a3;font-size:11px}.help-close[data-v-4bb9bc76]{width:28px;height:28px;flex:0 0 28px;border:1px solid #43516b;border-radius:6px;background:#273249;color:#ccd7ed;cursor:pointer}.help-close[data-v-4bb9bc76]:hover{border-color:#7774ff;background:#3b4670;color:#fff}.help-body[data-v-4bb9bc76]{min-height:0;overflow:auto;padding:18px 20px 21px}.help-section[data-v-4bb9bc76]{padding:14px 15px;border:1px solid #2c3850;border-radius:10px;background:#181f2e}.help-section h3[data-v-4bb9bc76]{margin:0 0 11px;color:#9fb2ff;font-size:13px}.help-start ol[data-v-4bb9bc76]{margin:0;padding-left:21px;color:#aab6cc;font-size:12px;line-height:1.75}.help-start li[data-v-4bb9bc76]::marker{color:#7774ff;font-weight:700}.help-section b[data-v-4bb9bc76]{color:#dce4f7}.help-grid[data-v-4bb9bc76]{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(250px,.85fr);gap:12px;margin-top:12px}.help-list[data-v-4bb9bc76]{display:grid;gap:0;margin:0}.help-list>div[data-v-4bb9bc76]{display:grid;grid-template-columns:78px 1fr;gap:9px;padding:7px 0;border-bottom:1px solid #263146}.help-list>div[data-v-4bb9bc76]:last-child{border-bottom:0}.help-list dt[data-v-4bb9bc76]{color:#d3dcf0;font-size:11px;font-weight:700}.help-list dd[data-v-4bb9bc76]{margin:0;color:#8795ae;font-size:11px;line-height:1.5}.shortcut-list[data-v-4bb9bc76]{display:grid;gap:7px}.shortcut-list>div[data-v-4bb9bc76]{display:flex;align-items:center;min-height:25px;gap:5px}.shortcut-list kbd[data-v-4bb9bc76]{min-width:24px;box-sizing:border-box;padding:3px 6px;border:1px solid #465470;border-bottom-width:2px;border-radius:5px;background:#101623;color:#e0e7f6;font:10px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;text-align:center}.shortcut-list span[data-v-4bb9bc76]{color:#65728b;font-size:10px}.shortcut-list em[data-v-4bb9bc76]{margin-left:auto;color:#9ca9c1;font-size:11px;font-style:normal}.help-note[data-v-4bb9bc76]{margin:11px 0 0;padding-top:9px;border-top:1px solid #2a3549;color:#697791;font-size:10px;line-height:1.55}.help-export[data-v-4bb9bc76]{margin-top:12px}.help-export p[data-v-4bb9bc76]{margin:0;color:#8997b0;font-size:11px;line-height:1.65}.help-doc-title[data-v-4bb9bc76]{margin:16px 2px 2px;color:#9fb2ff;font-size:13px;font-weight:700;letter-spacing:.5px}.help-module[data-v-4bb9bc76]{margin-top:12px}.help-module-head[data-v-4bb9bc76]{display:flex;align-items:center;gap:8px;width:100%;padding:0;border:0;background:transparent;color:#9fb2ff;font:inherit;font-size:13px;font-weight:700;text-align:left;cursor:pointer}.help-module-head[data-v-4bb9bc76]:hover{color:#fff}.help-module-head .mtitle[data-v-4bb9bc76]{flex:1;min-width:0}.help-module-head .caret[data-v-4bb9bc76]{flex:0 0 auto;color:#7b86a2;font-size:12px}.help-module.open .help-module-head[data-v-4bb9bc76]{color:#fff}.help-module.open .help-module-head .caret[data-v-4bb9bc76]{color:#9fb2ff}.help-module .mnum[data-v-4bb9bc76]{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;background:linear-gradient(135deg,#4a53b8,#6a5fd0);color:#fff;font-size:12px;font-weight:700}.help-module.help-connector[data-v-4bb9bc76]{border-color:#4a4f8a;background:linear-gradient(135deg,#1d2442,#181d2f)}.help-module.help-connector .help-module-head[data-v-4bb9bc76]{color:#b8c2ff}.help-module .connector-intro[data-v-4bb9bc76]{margin:0 0 10px;color:#9aa8c4;font-size:11px;line-height:1.6}.help-module .connector-intro b[data-v-4bb9bc76]{color:#dce4f7}.help-module .dl-link[data-v-4bb9bc76]{display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px;margin:0 10px 6px 0;padding:6px 12px;border:1px solid #5652b5;border-radius:6px;background:#4540a0;color:#fff;font-size:12px;font-weight:700;text-decoration:none}.help-module .dl-link[data-v-4bb9bc76]:hover{border-color:#8982ff;background:#554dc2}.help-module .dl-link small[data-v-4bb9bc76]{color:#cfe0ff;font-weight:500;font-size:9px}.help-module-body[data-v-4bb9bc76]{padding-top:10px}@media(max-width:760px){.help-overlay[data-v-4bb9bc76]{padding:66px 12px 14px}.help-grid[data-v-4bb9bc76]{grid-template-columns:1fr}}.topbar[data-v-2aafb245]{display:flex;align-items:center;gap:10px;flex-wrap:wLine truncated
.help-overlay[data-v-4bb9bc76]{position:absolute;top:0;right:0;bottom:0;left:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:72px 24px 28px;box-sizing:border-box;background:#05080fb8;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.help-dialog[data-v-4bb9bc76]{width:min(820px,100%);max-height:100%;display:flex;flex-direction:column;overflow:hidden;border:1px solid #3a4864;border-radius:14px;background:#141a27;color:#b8c3d8;box-shadow:0 22px 70px #0000009e}.help-head[data-v-4bb9bc76]{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px 15px;border-bottom:1px solid #2b354a;background:linear-gradient(135deg,#202942,#181e2d)}.help-head h2[data-v-4bb9bc76]{margin:0;color:#eef2ff;font-size:19px}.help-head p[data-v-4bb9bc76]{margin:5px 0 0;color:#7786a3;font-size:11px}.help-close[data-v-4bb9bc76]{width:28px;height:28px;flex:0 0 28px;border:1px solid #43516b;border-radius:6px;background:#273249;color:#ccd7ed;cursor:pointer}.help-close[data-v-4bb9bc76]:hover{border-color:#7774ff;background:#3b4670;color:#fff}.help-body[data-v-4bb9bc76]{min-height:0;overflow:auto;padding:18px 20px 21px}.help-section[data-v-4bb9bc76]{padding:14px 15px;border:1px solid #2c3850;border-radius:10px;background:#181f2e}.help-section h3[data-v-4bb9bc76]{margin:0 0 11px;color:#9fb2ff;font-size:13px}.help-start ol[data-v-4bb9bc76]{margin:0;padding-left:21px;color:#aab6cc;font-size:12px;line-height:1.75}.help-start li[data-v-4bb9bc76]::marker{color:#7774ff;font-weight:700}.help-section b[data-v-4bb9bc76]{color:#dce4f7}.help-grid[data-v-4bb9bc76]{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(250px,.85fr);gap:12px;margin-top:12px}.help-list[data-v-4bb9bc76]{display:grid;gap:0;margin:0}.help-list>div[data-v-4bb9bc76]{display:grid;grid-template-columns:78px 1fr;gap:9px;padding:7px 0;border-bottom:1px solid #263146}.help-list>div[data-v-4bb9bc76]:last-child{border-bottom:0}.help-list dt[data-v-4bb9bc76]{color:#d3dcf0;font-size:11px;font-weight:700}.help-list dd[data-v-4bb9bc76]{margin:0;color:#8795ae;font-size:11px;line-height:1.5}.shortcut-list[data-v-4bb9bc76]{display:grid;gap:7px}.shortcut-list>div[data-v-4bb9bc76]{display:flex;align-items:center;min-height:25px;gap:5px}.shortcut-list kbd[data-v-4bb9bc76]{min-width:24px;box-sizing:border-box;padding:3px 6px;border:1px solid #465470;border-bottom-width:2px;border-radius:5px;background:#101623;color:#e0e7f6;font:10px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;text-align:center}.shortcut-list span[data-v-4bb9bc76]{color:#65728b;font-size:10px}.shortcut-list em[data-v-4bb9bc76]{margin-left:auto;color:#9ca9c1;font-size:11px;font-style:normal}.help-note[data-v-4bb9bc76]{margin:11px 0 0;padding-top:9px;border-top:1px solid #2a3549;color:#697791;font-size:10px;line-height:1.55}.help-export[data-v-4bb9bc76]{margin-top:12px}.help-export p[data-v-4bb9bc76]{margin:0;color:#8997b0;font-size:11px;line-height:1.65}.help-doc-title[data-v-4bb9bc76]{margin:16px 2px 2px;color:#9fb2ff;font-size:13px;font-weight:700;letter-spacing:.5px}.help-module[data-v-4bb9bc76]{margin-top:12px}.help-module-head[data-v-4bb9bc76]{display:flex;align-items:center;gap:8px;width:100%;padding:0;border:0;background:transparent;color:#9fb2ff;font:inherit;font-size:13px;font-weight:700;text-align:left;cursor:pointer}.help-module-head[data-v-4bb9bc76]:hover{color:#fff}.help-module-head .mtitle[data-v-4bb9bc76]{flex:1;min-width:0}.help-module-head .caret[data-v-4bb9bc76]{flex:0 0 auto;color:#7b86a2;font-size:12px}.help-module.open .help-module-head[data-v-4bb9bc76]{color:#fff}.help-module.open .help-module-head .caret[data-v-4bb9bc76]{color:#9fb2ff}.help-module .mnum[data-v-4bb9bc76]{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;background:linear-gradient(135deg,#4a53b8,#6a5fd0);color:#fff;font-size:12px;font-weight:700}.help-module.help-connector[data-v-4bb9bc76]{border-color:#4a4f8a;background:linear-gradient(135deg,#1d2442,#181d2f)}.help-module.help-connector .help-module-head[data-v-4bb9bc76]{color:#b8c2ff}.help-module .connector-intro[data-v-4bb9bc76]{margin:0 0 10px;color:#9aa8c4;font-size:11px;line-height:1.6}.help-module .connector-intro b[data-v-4bb9bc76]{color:#dce4f7}.help-module .dl-link[data-v-4bb9bc76]{display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px;margin:0 10px 6px 0;padding:6px 12px;border:1px solid #5652b5;border-radius:6px;background:#4540a0;color:#fff;font-size:12px;font-weight:700;text-decoration:none}.help-module .dl-link[data-v-4bb9bc76]:hover{border-color:#8982ff;background:#554dc2}.help-module .dl-link small[data-v-4bb9bc76]{color:#cfe0ff;font-weight:500;font-size:9px}.help-module-body[data-v-4bb9bc76]{padding-top:10px}@media(max-width:760px){.help-overlay[data-v-4bb9bc76]{padding:66px 12px 14px}.help-grid[data-v-4bb9bc76]{grid-template-columns:1fr}}.topbar[data-v-2aafb245]{display:flex;align-items:center;gap:10px;flex-wrap:wLine truncated