diff --git a/404.html b/404.html index e3db99d..d4a1d3a 100644 --- a/404.html +++ b/404.html @@ -18,7 +18,7 @@
Skip to content

404

PAGE NOT FOUND

But if you don't change your direction, and if you keep looking, you may end up where you are heading.
👁️‍🗨️总访问量 次 | 👤访客数 次 | 🏃已运行 121 天
- + \ No newline at end of file diff --git a/assets/app.By55IVzi.js b/assets/app.By55IVzi.js new file mode 100644 index 0000000..fc1ff44 --- /dev/null +++ b/assets/app.By55IVzi.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = [] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{j as o,aH as p,aI as u,aJ as l,aK as c,aL as f,aM as d,aN as m,aO as h,aP as A,aQ as g,aG as P,d as _,u as v,l as R,z as w,aR as y,aS as C,aT as E,a3 as T}from"./chunks/framework.DBQkAOx6.js";import{R as S}from"./chunks/theme.e78CgNTD.js";function i(e){if(e.extends){const a=i(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const s=i(S),b=_({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=v();return R(()=>{w(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&y(),C(),E(),s.setup&&s.setup(),()=>T(s.Layout)}});async function D(){globalThis.__VITEPRESS__=!0;const e=O(),a=L();a.provide(u,e);const t=l(e.route);return a.provide(c,t),a.component("Content",f),a.component("ClientOnly",d),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:a,router:e,siteData:m}),{app:a,router:e,data:t}}function L(){return h(b)}function O(){let e=o,a;return A(t=>{let n=g(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=P(()=>import(n),__vite__mapDeps([]))),o&&(e=!1),r},s.NotFound)}o&&D().then(({app:e,router:a,data:t})=>{a.go().then(()=>{p(a.route,t.site),e.mount("#app")})});export{D as createApp}; diff --git a/assets/chunks/framework.DBQkAOx6.js b/assets/chunks/framework.DBQkAOx6.js new file mode 100644 index 0000000..7dee848 --- /dev/null +++ b/assets/chunks/framework.DBQkAOx6.js @@ -0,0 +1,21 @@ +/** +* @vue/shared v3.4.15 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Ss(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const ee={},_t=[],we=()=>{},Oi=()=>!1,Wt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),As=e=>e.startsWith("onUpdate:"),ie=Object.assign,Rs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Li=Object.prototype.hasOwnProperty,Y=(e,t)=>Li.call(e,t),B=Array.isArray,bt=e=>An(e)==="[object Map]",Zr=e=>An(e)==="[object Set]",W=e=>typeof e=="function",ne=e=>typeof e=="string",At=e=>typeof e=="symbol",Z=e=>e!==null&&typeof e=="object",eo=e=>(Z(e)||W(e))&&W(e.then)&&W(e.catch),to=Object.prototype.toString,An=e=>to.call(e),Ii=e=>An(e).slice(8,-1),no=e=>An(e)==="[object Object]",Os=e=>ne(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Mt=Ss(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Rn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Mi=/-(\w)/g,Pe=Rn(e=>e.replace(Mi,(t,n)=>n?n.toUpperCase():"")),Pi=/\B([A-Z])/g,ut=Rn(e=>e.replace(Pi,"-$1").toLowerCase()),On=Rn(e=>e.charAt(0).toUpperCase()+e.slice(1)),dn=Rn(e=>e?`on${On(e)}`:""),Qe=(e,t)=>!Object.is(e,t),hn=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},cs=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ni=e=>{const t=ne(e)?Number(e):NaN;return isNaN(t)?e:t};let sr;const so=()=>sr||(sr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ls(e){if(B(e)){const t={};for(let n=0;n{if(n){const s=n.split($i);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Is(e){let t="";if(ne(e))t=e;else if(B(e))for(let n=0;nne(e)?e:e==null?"":B(e)||Z(e)&&(e.toString===to||!W(e.toString))?JSON.stringify(e,oo,2):String(e),oo=(e,t)=>t&&t.__v_isRef?oo(e,t.value):bt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[qn(s,o)+" =>"]=r,n),{})}:Zr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>qn(n))}:At(t)?qn(t):Z(t)&&!B(t)&&!no(t)?String(t):t,qn=(e,t="")=>{var n;return At(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.4.15 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let be;class io{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=be,!t&&be&&(this.index=(be.scopes||(be.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=be;try{return be=this,t()}finally{be=n}}}on(){be=this}off(){be=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),dt()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Xe,n=lt;try{return Xe=!0,lt=this,this._runnings++,rr(this),this.fn()}finally{or(this),this._runnings--,lt=n,Xe=t}}stop(){var t;this.active&&(rr(this),or(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Ui(e){return e.value}function rr(e){e._trackId++,e._depsLength=0}function or(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},yn=new WeakMap,ct=Symbol(""),fs=Symbol("");function ye(e,t,n){if(Xe&<){let s=yn.get(e);s||yn.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=po(()=>s.delete(n))),uo(lt,r)}}function He(e,t,n,s,r,o){const i=yn.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&B(e)){const c=Number(s);i.forEach((u,f)=>{(f==="length"||!At(f)&&f>=c)&&l.push(u)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":B(e)?Os(n)&&l.push(i.get("length")):(l.push(i.get(ct)),bt(e)&&l.push(i.get(fs)));break;case"delete":B(e)||(l.push(i.get(ct)),bt(e)&&l.push(i.get(fs)));break;case"set":bt(e)&&l.push(i.get(ct));break}Ps();for(const c of l)c&&fo(c,2);Ns()}function Ki(e,t){var n;return(n=yn.get(e))==null?void 0:n.get(t)}const Wi=Ss("__proto__,__v_isRef,__isVue"),go=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(At)),ir=qi();function qi(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=J(this);for(let o=0,i=this.length;o{e[t]=function(...n){ft(),Ps();const s=J(this)[t].apply(this,n);return Ns(),dt(),s}}),e}function Gi(e){const t=J(this);return ye(t,"has",e),t.hasOwnProperty(e)}class mo{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,s){const r=this._isReadonly,o=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?il:wo:o?bo:_o).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=B(t);if(!r){if(i&&Y(ir,n))return Reflect.get(ir,n,s);if(n==="hasOwnProperty")return Gi}const l=Reflect.get(t,n,s);return(At(n)?go.has(n):Wi(n))||(r||ye(t,"get",n),o)?l:he(l)?i&&Os(n)?l:l.value:Z(l)?r?Mn(l):In(l):l}}class yo extends mo{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];if(!this._shallow){const c=Tt(o);if(!_n(s)&&!Tt(s)&&(o=J(o),s=J(s)),!B(t)&&he(o)&&!he(s))return c?!1:(o.value=s,!0)}const i=B(t)&&Os(n)?Number(n)e,Ln=e=>Reflect.getPrototypeOf(e);function Jt(e,t,n=!1,s=!1){e=e.__v_raw;const r=J(e),o=J(t);n||(Qe(t,o)&&ye(r,"get",t),ye(r,"get",o));const{has:i}=Ln(r),l=s?Fs:n?js:Dt;if(i.call(r,t))return l(e.get(t));if(i.call(r,o))return l(e.get(o));e!==r&&e.get(t)}function Qt(e,t=!1){const n=this.__v_raw,s=J(n),r=J(e);return t||(Qe(e,r)&&ye(s,"has",e),ye(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Zt(e,t=!1){return e=e.__v_raw,!t&&ye(J(e),"iterate",ct),Reflect.get(e,"size",e)}function lr(e){e=J(e);const t=J(this);return Ln(t).has.call(t,e)||(t.add(e),He(t,"add",e,e)),this}function cr(e,t){t=J(t);const n=J(this),{has:s,get:r}=Ln(n);let o=s.call(n,e);o||(e=J(e),o=s.call(n,e));const i=r.call(n,e);return n.set(e,t),o?Qe(t,i)&&He(n,"set",e,t):He(n,"add",e,t),this}function ar(e){const t=J(this),{has:n,get:s}=Ln(t);let r=n.call(t,e);r||(e=J(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&He(t,"delete",e,void 0),o}function ur(){const e=J(this),t=e.size!==0,n=e.clear();return t&&He(e,"clear",void 0,void 0),n}function en(e,t){return function(s,r){const o=this,i=o.__v_raw,l=J(i),c=t?Fs:e?js:Dt;return!e&&ye(l,"iterate",ct),i.forEach((u,f)=>s.call(r,c(u),c(f),o))}}function tn(e,t,n){return function(...s){const r=this.__v_raw,o=J(r),i=bt(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,u=r[e](...s),f=n?Fs:t?js:Dt;return!t&&ye(o,"iterate",c?fs:ct),{next(){const{value:h,done:p}=u.next();return p?{value:h,done:p}:{value:l?[f(h[0]),f(h[1])]:f(h),done:p}},[Symbol.iterator](){return this}}}}function ke(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Qi(){const e={get(o){return Jt(this,o)},get size(){return Zt(this)},has:Qt,add:lr,set:cr,delete:ar,clear:ur,forEach:en(!1,!1)},t={get(o){return Jt(this,o,!1,!0)},get size(){return Zt(this)},has:Qt,add:lr,set:cr,delete:ar,clear:ur,forEach:en(!1,!0)},n={get(o){return Jt(this,o,!0)},get size(){return Zt(this,!0)},has(o){return Qt.call(this,o,!0)},add:ke("add"),set:ke("set"),delete:ke("delete"),clear:ke("clear"),forEach:en(!0,!1)},s={get(o){return Jt(this,o,!0,!0)},get size(){return Zt(this,!0)},has(o){return Qt.call(this,o,!0)},add:ke("add"),set:ke("set"),delete:ke("delete"),clear:ke("clear"),forEach:en(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=tn(o,!1,!1),n[o]=tn(o,!0,!1),t[o]=tn(o,!1,!0),s[o]=tn(o,!0,!0)}),[e,n,t,s]}const[Zi,el,tl,nl]=Qi();function $s(e,t){const n=t?e?nl:tl:e?el:Zi;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Y(n,r)&&r in s?n:s,r,o)}const sl={get:$s(!1,!1)},rl={get:$s(!1,!0)},ol={get:$s(!0,!1)},_o=new WeakMap,bo=new WeakMap,wo=new WeakMap,il=new WeakMap;function ll(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function cl(e){return e.__v_skip||!Object.isExtensible(e)?0:ll(Ii(e))}function In(e){return Tt(e)?e:Hs(e,!1,Xi,sl,_o)}function al(e){return Hs(e,!1,Ji,rl,bo)}function Mn(e){return Hs(e,!0,Yi,ol,wo)}function Hs(e,t,n,s,r){if(!Z(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=cl(e);if(i===0)return e;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function wt(e){return Tt(e)?wt(e.__v_raw):!!(e&&e.__v_isReactive)}function Tt(e){return!!(e&&e.__v_isReadonly)}function _n(e){return!!(e&&e.__v_isShallow)}function vo(e){return wt(e)||Tt(e)}function J(e){const t=e&&e.__v_raw;return t?J(t):e}function Pt(e){return mn(e,"__v_skip",!0),e}const Dt=e=>Z(e)?In(e):e,js=e=>Z(e)?Mn(e):e;class Eo{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Ms(()=>t(this._value),()=>Nt(this,1),()=>this.dep&&ho(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=J(this);return(!t._cacheable||t.effect.dirty)&&Qe(t._value,t._value=t.effect.run())&&Nt(t,2),Vs(t),t.effect._dirtyLevel>=1&&Nt(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function ul(e,t,n=!1){let s,r;const o=W(e);return o?(s=e,r=we):(s=e.get,r=e.set),new Eo(s,r,o||!r,n)}function Vs(e){Xe&<&&(e=J(e),uo(lt,e.dep||(e.dep=po(()=>e.dep=void 0,e instanceof Eo?e:void 0))))}function Nt(e,t=2,n){e=J(e);const s=e.dep;s&&fo(s,t)}function he(e){return!!(e&&e.__v_isRef===!0)}function de(e){return xo(e,!1)}function Co(e){return xo(e,!0)}function xo(e,t){return he(e)?e:new fl(e,t)}class fl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:J(t),this._value=n?t:Dt(t)}get value(){return Vs(this),this._value}set value(t){const n=this.__v_isShallow||_n(t)||Tt(t);t=n?t:J(t),Qe(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Dt(t),Nt(this,2))}}function To(e){return he(e)?e.value:e}const dl={get:(e,t,n)=>To(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return he(r)&&!he(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function So(e){return wt(e)?e:new Proxy(e,dl)}class hl{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=t(()=>Vs(this),()=>Nt(this));this._get=n,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function pl(e){return new hl(e)}function uu(e){const t=B(e)?new Array(e.length):{};for(const n in e)t[n]=Ao(e,n);return t}class gl{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Ki(J(this._object),this._key)}}class ml{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function yl(e,t,n){return he(e)?e:W(e)?new ml(e):Z(e)&&arguments.length>1?Ao(e,t,n):de(e)}function Ao(e,t,n){const s=e[t];return he(s)?s:new gl(e,t,n)}/** +* @vue/runtime-core v3.4.15 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Ye(e,t,n,s){let r;try{r=s?e(...s):e()}catch(o){Pn(o,t,n)}return r}function Te(e,t,n,s){if(W(e)){const o=Ye(e,t,n,s);return o&&eo(o)&&o.catch(i=>{Pn(i,t,n)}),o}const r=[];for(let o=0;o>>1,r=fe[s],o=Bt(r);oMe&&fe.splice(t,1)}function vl(e){B(e)?vt.push(...e):(!We||!We.includes(e,e.allowRecurse?rt+1:rt))&&vt.push(e),Oo()}function fr(e,t,n=kt?Me+1:0){for(;nBt(n)-Bt(s));if(vt.length=0,We){We.push(...t);return}for(We=t,rt=0;rte.id==null?1/0:e.id,El=(e,t)=>{const n=Bt(e)-Bt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Lo(e){ds=!1,kt=!0,fe.sort(El);try{for(Me=0;Mene(w)?w.trim():w)),h&&(r=n.map(cs))}let l,c=s[l=dn(t)]||s[l=dn(Pe(t))];!c&&o&&(c=s[l=dn(ut(t))]),c&&Te(c,e,6,r);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Te(u,e,6,r)}}function Io(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!W(e)){const c=u=>{const f=Io(u,t,!0);f&&(l=!0,ie(i,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(Z(e)&&s.set(e,null),null):(B(o)?o.forEach(c=>i[c]=null):ie(i,o),Z(e)&&s.set(e,i),i)}function Fn(e,t){return!e||!Wt(t)?!1:(t=t.slice(2).replace(/Once$/,""),Y(e,t[0].toLowerCase()+t.slice(1))||Y(e,ut(t))||Y(e,t))}let oe=null,$n=null;function wn(e){const t=oe;return oe=e,$n=e&&e.type.__scopeId||null,t}function fu(e){$n=e}function du(){$n=null}function xl(e,t=oe,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Tr(-1);const o=wn(t);let i;try{i=e(...r)}finally{wn(o),s._d&&Tr(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Gn(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:o,propsOptions:[i],slots:l,attrs:c,emit:u,render:f,renderCache:h,data:p,setupState:w,ctx:O,inheritAttrs:I}=e;let F,K;const X=wn(e);try{if(n.shapeFlag&4){const y=r||s,M=y;F=Ae(f.call(M,y,h,o,w,p,O)),K=c}else{const y=t;F=Ae(y.length>1?y(o,{attrs:c,slots:l,emit:u}):y(o,null)),K=t.props?c:Tl(c)}}catch(y){Ht.length=0,Pn(y,e,1),F=ue(ve)}let g=F;if(K&&I!==!1){const y=Object.keys(K),{shapeFlag:M}=g;y.length&&M&7&&(i&&y.some(As)&&(K=Sl(K,i)),g=Ze(g,K))}return n.dirs&&(g=Ze(g),g.dirs=g.dirs?g.dirs.concat(n.dirs):n.dirs),n.transition&&(g.transition=n.transition),F=g,wn(X),F}const Tl=e=>{let t;for(const n in e)(n==="class"||n==="style"||Wt(n))&&((t||(t={}))[n]=e[n]);return t},Sl=(e,t)=>{const n={};for(const s in e)(!As(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Al(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:c}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?dr(s,i,u):!!i;if(c&8){const f=t.dynamicProps;for(let h=0;he.__isSuspense;function Po(e,t){t&&t.pendingBranch?B(e)?t.effects.push(...e):t.effects.push(e):vl(e)}const Il=Symbol.for("v-scx"),Ml=()=>Ct(Il);function No(e,t){return Hn(e,null,t)}function Pl(e,t){return Hn(e,null,{flush:"post"})}const nn={};function je(e,t,n){return Hn(e,t,n)}function Hn(e,t,{immediate:n,deep:s,flush:r,once:o,onTrack:i,onTrigger:l}=ee){if(t&&o){const R=t;t=(...N)=>{R(...N),M()}}const c=ae,u=R=>s===!0?R:it(R,s===!1?1:void 0);let f,h=!1,p=!1;if(he(e)?(f=()=>e.value,h=_n(e)):wt(e)?(f=()=>u(e),h=!0):B(e)?(p=!0,h=e.some(R=>wt(R)||_n(R)),f=()=>e.map(R=>{if(he(R))return R.value;if(wt(R))return u(R);if(W(R))return Ye(R,c,2)})):W(e)?t?f=()=>Ye(e,c,2):f=()=>(w&&w(),Te(e,c,3,[O])):f=we,t&&s){const R=f;f=()=>it(R())}let w,O=R=>{w=g.onStop=()=>{Ye(R,c,4),w=g.onStop=void 0}},I;if(kn)if(O=we,t?n&&Te(t,c,3,[f(),p?[]:void 0,O]):f(),r==="sync"){const R=Ml();I=R.__watcherHandles||(R.__watcherHandles=[])}else return we;let F=p?new Array(e.length).fill(nn):nn;const K=()=>{if(!(!g.active||!g.dirty))if(t){const R=g.run();(s||h||(p?R.some((N,T)=>Qe(N,F[T])):Qe(R,F)))&&(w&&w(),Te(t,c,3,[R,F===nn?void 0:p&&F[0]===nn?[]:F,O]),F=R)}else g.run()};K.allowRecurse=!!t;let X;r==="sync"?X=K:r==="post"?X=()=>me(K,c&&c.suspense):(K.pre=!0,c&&(K.id=c.uid),X=()=>ks(K));const g=new Ms(f,we,X),y=lo(),M=()=>{g.stop(),y&&Rs(y.effects,g)};return t?n?K():F=g.run():r==="post"?me(g.run.bind(g),c&&c.suspense):g.run(),I&&I.push(M),M}function Nl(e,t,n){const s=this.proxy,r=ne(e)?e.includes(".")?Fo(s,e):()=>s[e]:e.bind(s,s);let o;W(t)?o=t:(o=t.handler,n=t);const i=zt(this),l=Hn(r,o.bind(s),n);return i(),l}function Fo(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),he(e))it(e.value,t,n,s);else if(B(e))for(let r=0;r{it(r,t,n,s)});else if(no(e))for(const r in e)it(e[r],t,n,s);return e}function mu(e,t){if(oe===null)return e;const n=Bn(oe)||oe.proxy,s=e.dirs||(e.dirs=[]);for(let r=0;r{e.isMounted=!0}),ko(()=>{e.isUnmounting=!0}),e}const Ee=[Function,Array],$o={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ee,onEnter:Ee,onAfterEnter:Ee,onEnterCancelled:Ee,onBeforeLeave:Ee,onLeave:Ee,onAfterLeave:Ee,onLeaveCancelled:Ee,onBeforeAppear:Ee,onAppear:Ee,onAfterAppear:Ee,onAppearCancelled:Ee},$l={name:"BaseTransition",props:$o,setup(e,{slots:t}){const n=Gt(),s=Fl();let r;return()=>{const o=t.default&&jo(t.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){for(const I of o)if(I.type!==ve){i=I;break}}const l=J(e),{mode:c}=l;if(s.isLeaving)return zn(i);const u=pr(i);if(!u)return zn(i);const f=hs(u,l,s,n);ps(u,f);const h=n.subTree,p=h&&pr(h);let w=!1;const{getTransitionKey:O}=u.type;if(O){const I=O();r===void 0?r=I:I!==r&&(r=I,w=!0)}if(p&&p.type!==ve&&(!ot(u,p)||w)){const I=hs(p,l,s,n);if(ps(p,I),c==="out-in")return s.isLeaving=!0,I.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},zn(i);c==="in-out"&&u.type!==ve&&(I.delayLeave=(F,K,X)=>{const g=Ho(s,p);g[String(p.key)]=p,F[qe]=()=>{K(),F[qe]=void 0,delete f.delayedLeave},f.delayedLeave=X})}return i}}},Hl=$l;function Ho(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function hs(e,t,n,s){const{appear:r,mode:o,persisted:i=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:h,onLeave:p,onAfterLeave:w,onLeaveCancelled:O,onBeforeAppear:I,onAppear:F,onAfterAppear:K,onAppearCancelled:X}=t,g=String(e.key),y=Ho(n,e),M=(T,$)=>{T&&Te(T,s,9,$)},R=(T,$)=>{const v=$[1];M(T,$),B(T)?T.every(j=>j.length<=1)&&v():T.length<=1&&v()},N={mode:o,persisted:i,beforeEnter(T){let $=l;if(!n.isMounted)if(r)$=I||l;else return;T[qe]&&T[qe](!0);const v=y[g];v&&ot(e,v)&&v.el[qe]&&v.el[qe](),M($,[T])},enter(T){let $=c,v=u,j=f;if(!n.isMounted)if(r)$=F||c,v=K||u,j=X||f;else return;let S=!1;const q=T[sn]=re=>{S||(S=!0,re?M(j,[T]):M(v,[T]),N.delayedLeave&&N.delayedLeave(),T[sn]=void 0)};$?R($,[T,q]):q()},leave(T,$){const v=String(e.key);if(T[sn]&&T[sn](!0),n.isUnmounting)return $();M(h,[T]);let j=!1;const S=T[qe]=q=>{j||(j=!0,$(),q?M(O,[T]):M(w,[T]),T[qe]=void 0,y[v]===e&&delete y[v])};y[v]=e,p?R(p,[T,S]):S()},clone(T){return hs(T,t,n,s)}};return N}function zn(e){if(jn(e))return e=Ze(e),e.children=null,e}function pr(e){return jn(e)?e.children?e.children[0]:void 0:e}function ps(e,t){e.shapeFlag&6&&e.component?ps(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function jo(e,t=!1,n){let s=[],r=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader,jn=e=>e.type.__isKeepAlive;function jl(e,t){Do(e,"a",t)}function Vl(e,t){Do(e,"da",t)}function Do(e,t,n=ae){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Vn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)jn(r.parent.vnode)&&Dl(s,t,n,r),r=r.parent}}function Dl(e,t,n,s){const r=Vn(t,e,s,!0);qt(()=>{Rs(s[t],r)},n)}function Vn(e,t,n=ae,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;ft();const l=zt(n),c=Te(t,n,e,i);return l(),dt(),c});return s?r.unshift(o):r.push(o),o}}const De=e=>(t,n=ae)=>(!kn||e==="sp")&&Vn(e,(...s)=>t(...s),n),kl=De("bm"),ht=De("m"),Bl=De("bu"),Ul=De("u"),ko=De("bum"),qt=De("um"),Kl=De("sp"),Wl=De("rtg"),ql=De("rtc");function Gl(e,t=ae){Vn("ec",e,t)}function yu(e,t,n,s){let r;const o=n&&n[s];if(B(e)||ne(e)){r=new Array(e.length);for(let i=0,l=e.length;it(i,l,void 0,o&&o[l]));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,c=i.length;l{const o=s.fn(...r);return o&&(o.key=s.key),o}:s.fn)}return e}function bu(e,t,n={},s,r){if(oe.isCE||oe.parent&&Et(oe.parent)&&oe.parent.isCE)return t!=="default"&&(n.name=t),ue("slot",n,s&&s());let o=e[t];o&&o._c&&(o._d=!1),ti();const i=o&&Bo(o(n)),l=si(ge,{key:n.key||i&&i.key||`_${t}`},i||(s?s():[]),i&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function Bo(e){return e.some(t=>xn(t)?!(t.type===ve||t.type===ge&&!Bo(t.children)):!0)?e:null}function wu(e,t){const n={};for(const s in e)n[t&&/[A-Z]/.test(s)?`on:${s}`:dn(s)]=e[s];return n}const gs=e=>e?li(e)?Bn(e)||e.proxy:gs(e.parent):null,Ft=ie(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>gs(e.parent),$root:e=>gs(e.root),$emit:e=>e.emit,$options:e=>Ks(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,ks(e.update)}),$nextTick:e=>e.n||(e.n=Nn.bind(e.proxy)),$watch:e=>Nl.bind(e)}),Xn=(e,t)=>e!==ee&&!e.__isScriptSetup&&Y(e,t),zl={get({_:e},t){const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:c}=e;let u;if(t[0]!=="$"){const w=i[t];if(w!==void 0)switch(w){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Xn(s,t))return i[t]=1,s[t];if(r!==ee&&Y(r,t))return i[t]=2,r[t];if((u=e.propsOptions[0])&&Y(u,t))return i[t]=3,o[t];if(n!==ee&&Y(n,t))return i[t]=4,n[t];ms&&(i[t]=0)}}const f=Ft[t];let h,p;if(f)return t==="$attrs"&&ye(e,"get",t),f(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==ee&&Y(n,t))return i[t]=4,n[t];if(p=c.config.globalProperties,Y(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return Xn(r,t)?(r[t]=n,!0):s!==ee&&Y(s,t)?(s[t]=n,!0):Y(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let l;return!!n[i]||e!==ee&&Y(e,i)||Xn(t,i)||(l=o[0])&&Y(l,i)||Y(s,i)||Y(Ft,i)||Y(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Y(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function vu(){return Uo().slots}function Eu(){return Uo().attrs}function Uo(){const e=Gt();return e.setupContext||(e.setupContext=ai(e))}function gr(e){return B(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ms=!0;function Xl(e){const t=Ks(e),n=e.proxy,s=e.ctx;ms=!1,t.beforeCreate&&mr(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:c,inject:u,created:f,beforeMount:h,mounted:p,beforeUpdate:w,updated:O,activated:I,deactivated:F,beforeDestroy:K,beforeUnmount:X,destroyed:g,unmounted:y,render:M,renderTracked:R,renderTriggered:N,errorCaptured:T,serverPrefetch:$,expose:v,inheritAttrs:j,components:S,directives:q,filters:re}=t;if(u&&Yl(u,s,null),i)for(const z in i){const V=i[z];W(V)&&(s[z]=V.bind(n))}if(r){const z=r.call(n,n);Z(z)&&(e.data=In(z))}if(ms=!0,o)for(const z in o){const V=o[z],Fe=W(V)?V.bind(n,n):W(V.get)?V.get.bind(n,n):we,Xt=!W(V)&&W(V.set)?V.set.bind(n):we,et=se({get:Fe,set:Xt});Object.defineProperty(s,z,{enumerable:!0,configurable:!0,get:()=>et.value,set:Oe=>et.value=Oe})}if(l)for(const z in l)Ko(l[z],s,n,z);if(c){const z=W(c)?c.call(n):c;Reflect.ownKeys(z).forEach(V=>{nc(V,z[V])})}f&&mr(f,e,"c");function D(z,V){B(V)?V.forEach(Fe=>z(Fe.bind(n))):V&&z(V.bind(n))}if(D(kl,h),D(ht,p),D(Bl,w),D(Ul,O),D(jl,I),D(Vl,F),D(Gl,T),D(ql,R),D(Wl,N),D(ko,X),D(qt,y),D(Kl,$),B(v))if(v.length){const z=e.exposed||(e.exposed={});v.forEach(V=>{Object.defineProperty(z,V,{get:()=>n[V],set:Fe=>n[V]=Fe})})}else e.exposed||(e.exposed={});M&&e.render===we&&(e.render=M),j!=null&&(e.inheritAttrs=j),S&&(e.components=S),q&&(e.directives=q)}function Yl(e,t,n=we){B(e)&&(e=ys(e));for(const s in e){const r=e[s];let o;Z(r)?"default"in r?o=Ct(r.from||s,r.default,!0):o=Ct(r.from||s):o=Ct(r),he(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function mr(e,t,n){Te(B(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ko(e,t,n,s){const r=s.includes(".")?Fo(n,s):()=>n[s];if(ne(e)){const o=t[e];W(o)&&je(r,o)}else if(W(e))je(r,e.bind(n));else if(Z(e))if(B(e))e.forEach(o=>Ko(o,t,n,s));else{const o=W(e.handler)?e.handler.bind(n):t[e.handler];W(o)&&je(r,o,e)}}function Ks(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(u=>vn(c,u,i,!0)),vn(c,t,i)),Z(t)&&o.set(t,c),c}function vn(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&vn(e,o,n,!0),r&&r.forEach(i=>vn(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=Jl[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Jl={data:yr,props:_r,emits:_r,methods:It,computed:It,beforeCreate:pe,created:pe,beforeMount:pe,mounted:pe,beforeUpdate:pe,updated:pe,beforeDestroy:pe,beforeUnmount:pe,destroyed:pe,unmounted:pe,activated:pe,deactivated:pe,errorCaptured:pe,serverPrefetch:pe,components:It,directives:It,watch:Zl,provide:yr,inject:Ql};function yr(e,t){return t?e?function(){return ie(W(e)?e.call(this,this):e,W(t)?t.call(this,this):t)}:t:e}function Ql(e,t){return It(ys(e),ys(t))}function ys(e){if(B(e)){const t={};for(let n=0;n1)return n&&W(t)?t.call(s&&s.proxy):t}}function sc(e,t,n,s=!1){const r={},o={};mn(o,Dn,1),e.propsDefaults=Object.create(null),qo(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:al(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function rc(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=J(r),[c]=e.propsOptions;let u=!1;if((s||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[p,w]=Go(h,t,!0);ie(i,p),w&&l.push(...w)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!c)return Z(e)&&s.set(e,_t),_t;if(B(o))for(let f=0;f-1,w[1]=I<0||O-1||Y(w,"default"))&&l.push(h)}}}const u=[i,l];return Z(e)&&s.set(e,u),u}function br(e){return e[0]!=="$"}function wr(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function vr(e,t){return wr(e)===wr(t)}function Er(e,t){return B(t)?t.findIndex(n=>vr(n,e)):W(t)&&vr(t,e)?0:-1}const zo=e=>e[0]==="_"||e==="$stable",Ws=e=>B(e)?e.map(Ae):[Ae(e)],oc=(e,t,n)=>{if(t._n)return t;const s=xl((...r)=>Ws(t(...r)),n);return s._c=!1,s},Xo=(e,t,n)=>{const s=e._ctx;for(const r in e){if(zo(r))continue;const o=e[r];if(W(o))t[r]=oc(r,o,s);else if(o!=null){const i=Ws(o);t[r]=()=>i}}},Yo=(e,t)=>{const n=Ws(t);e.slots.default=()=>n},ic=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=J(t),mn(t,"_",n)):Xo(t,e.slots={})}else e.slots={},t&&Yo(e,t);mn(e.slots,Dn,1)},lc=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=ee;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(ie(r,t),!n&&l===1&&delete r._):(o=!t.$stable,Xo(t,r)),i=t}else t&&(Yo(e,t),i={default:1});if(o)for(const l in r)!zo(l)&&i[l]==null&&delete r[l]};function Cn(e,t,n,s,r=!1){if(B(e)){e.forEach((p,w)=>Cn(p,t&&(B(t)?t[w]:t),n,s,r));return}if(Et(s)&&!r)return;const o=s.shapeFlag&4?Bn(s.component)||s.component.proxy:s.el,i=r?null:o,{i:l,r:c}=e,u=t&&t.r,f=l.refs===ee?l.refs={}:l.refs,h=l.setupState;if(u!=null&&u!==c&&(ne(u)?(f[u]=null,Y(h,u)&&(h[u]=null)):he(u)&&(u.value=null)),W(c))Ye(c,l,12,[i,f]);else{const p=ne(c),w=he(c),O=e.f;if(p||w){const I=()=>{if(O){const F=p?Y(h,c)?h[c]:f[c]:c.value;r?B(F)&&Rs(F,o):B(F)?F.includes(o)||F.push(o):p?(f[c]=[o],Y(h,c)&&(h[c]=f[c])):(c.value=[o],e.k&&(f[e.k]=c.value))}else p?(f[c]=i,Y(h,c)&&(h[c]=i)):w&&(c.value=i,e.k&&(f[e.k]=i))};r||O?I():(I.id=-1,me(I,n))}}}let Be=!1;const cc=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",ac=e=>e.namespaceURI.includes("MathML"),rn=e=>{if(cc(e))return"svg";if(ac(e))return"mathml"},on=e=>e.nodeType===8;function uc(e){const{mt:t,p:n,o:{patchProp:s,createText:r,nextSibling:o,parentNode:i,remove:l,insert:c,createComment:u}}=e,f=(g,y)=>{if(!y.hasChildNodes()){n(null,g,y),bn(),y._vnode=g;return}Be=!1,h(y.firstChild,g,null,null,null),bn(),y._vnode=g,Be&&console.error("Hydration completed but contains mismatches.")},h=(g,y,M,R,N,T=!1)=>{const $=on(g)&&g.data==="[",v=()=>I(g,y,M,R,N,$),{type:j,ref:S,shapeFlag:q,patchFlag:re}=y;let ce=g.nodeType;y.el=g,re===-2&&(T=!1,y.dynamicChildren=null);let D=null;switch(j){case St:ce!==3?y.children===""?(c(y.el=r(""),i(g),g),D=g):D=v():(g.data!==y.children&&(Be=!0,g.data=y.children),D=o(g));break;case ve:X(g)?(D=o(g),K(y.el=g.content.firstChild,g,M)):ce!==8||$?D=v():D=o(g);break;case xt:if($&&(g=o(g),ce=g.nodeType),ce===1||ce===3){D=g;const z=!y.children.length;for(let V=0;V{T=T||!!y.dynamicChildren;const{type:$,props:v,patchFlag:j,shapeFlag:S,dirs:q,transition:re}=y,ce=$==="input"||$==="option";if(ce||j!==-1){q&&Ie(y,null,M,"created");let D=!1;if(X(g)){D=Qo(R,re)&&M&&M.vnode.props&&M.vnode.props.appear;const V=g.content.firstChild;D&&re.beforeEnter(V),K(V,g,M),y.el=g=V}if(S&16&&!(v&&(v.innerHTML||v.textContent))){let V=w(g.firstChild,y,g,M,R,N,T);for(;V;){Be=!0;const Fe=V;V=V.nextSibling,l(Fe)}}else S&8&&g.textContent!==y.children&&(Be=!0,g.textContent=y.children);if(v)if(ce||!T||j&48)for(const V in v)(ce&&(V.endsWith("value")||V==="indeterminate")||Wt(V)&&!Mt(V)||V[0]===".")&&s(g,V,null,v[V],void 0,void 0,M);else v.onClick&&s(g,"onClick",null,v.onClick,void 0,void 0,M);let z;(z=v&&v.onVnodeBeforeMount)&&Ce(z,M,y),q&&Ie(y,null,M,"beforeMount"),((z=v&&v.onVnodeMounted)||q||D)&&Po(()=>{z&&Ce(z,M,y),D&&re.enter(g),q&&Ie(y,null,M,"mounted")},R)}return g.nextSibling},w=(g,y,M,R,N,T,$)=>{$=$||!!y.dynamicChildren;const v=y.children,j=v.length;for(let S=0;S{const{slotScopeIds:$}=y;$&&(N=N?N.concat($):$);const v=i(g),j=w(o(g),y,v,M,R,N,T);return j&&on(j)&&j.data==="]"?o(y.anchor=j):(Be=!0,c(y.anchor=u("]"),v,j),j)},I=(g,y,M,R,N,T)=>{if(Be=!0,y.el=null,T){const j=F(g);for(;;){const S=o(g);if(S&&S!==j)l(S);else break}}const $=o(g),v=i(g);return l(g),n(null,y,v,$,M,R,rn(v),N),$},F=(g,y="[",M="]")=>{let R=0;for(;g;)if(g=o(g),g&&on(g)&&(g.data===y&&R++,g.data===M)){if(R===0)return o(g);R--}return g},K=(g,y,M)=>{const R=y.parentNode;R&&R.replaceChild(g,y);let N=M;for(;N;)N.vnode.el===y&&(N.vnode.el=N.subTree.el=g),N=N.parent},X=g=>g.nodeType===1&&g.tagName.toLowerCase()==="template";return[f,h]}const me=Po;function fc(e){return Jo(e)}function dc(e){return Jo(e,uc)}function Jo(e,t){const n=so();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:c,setText:u,setElementText:f,parentNode:h,nextSibling:p,setScopeId:w=we,insertStaticContent:O}=e,I=(a,d,m,_=null,b=null,x=null,L=void 0,C=null,A=!!d.dynamicChildren)=>{if(a===d)return;a&&!ot(a,d)&&(_=Yt(a),Oe(a,b,x,!0),a=null),d.patchFlag===-2&&(A=!1,d.dynamicChildren=null);const{type:E,ref:P,shapeFlag:k}=d;switch(E){case St:F(a,d,m,_);break;case ve:K(a,d,m,_);break;case xt:a==null&&X(d,m,_,L);break;case ge:S(a,d,m,_,b,x,L,C,A);break;default:k&1?M(a,d,m,_,b,x,L,C,A):k&6?q(a,d,m,_,b,x,L,C,A):(k&64||k&128)&&E.process(a,d,m,_,b,x,L,C,A,pt)}P!=null&&b&&Cn(P,a&&a.ref,x,d||a,!d)},F=(a,d,m,_)=>{if(a==null)s(d.el=l(d.children),m,_);else{const b=d.el=a.el;d.children!==a.children&&u(b,d.children)}},K=(a,d,m,_)=>{a==null?s(d.el=c(d.children||""),m,_):d.el=a.el},X=(a,d,m,_)=>{[a.el,a.anchor]=O(a.children,d,m,_,a.el,a.anchor)},g=({el:a,anchor:d},m,_)=>{let b;for(;a&&a!==d;)b=p(a),s(a,m,_),a=b;s(d,m,_)},y=({el:a,anchor:d})=>{let m;for(;a&&a!==d;)m=p(a),r(a),a=m;r(d)},M=(a,d,m,_,b,x,L,C,A)=>{d.type==="svg"?L="svg":d.type==="math"&&(L="mathml"),a==null?R(d,m,_,b,x,L,C,A):$(a,d,b,x,L,C,A)},R=(a,d,m,_,b,x,L,C)=>{let A,E;const{props:P,shapeFlag:k,transition:H,dirs:U}=a;if(A=a.el=i(a.type,x,P&&P.is,P),k&8?f(A,a.children):k&16&&T(a.children,A,null,_,b,Yn(a,x),L,C),U&&Ie(a,null,_,"created"),N(A,a,a.scopeId,L,_),P){for(const Q in P)Q!=="value"&&!Mt(Q)&&o(A,Q,null,P[Q],x,a.children,_,b,$e);"value"in P&&o(A,"value",null,P.value,x),(E=P.onVnodeBeforeMount)&&Ce(E,_,a)}U&&Ie(a,null,_,"beforeMount");const G=Qo(b,H);G&&H.beforeEnter(A),s(A,d,m),((E=P&&P.onVnodeMounted)||G||U)&&me(()=>{E&&Ce(E,_,a),G&&H.enter(A),U&&Ie(a,null,_,"mounted")},b)},N=(a,d,m,_,b)=>{if(m&&w(a,m),_)for(let x=0;x<_.length;x++)w(a,_[x]);if(b){let x=b.subTree;if(d===x){const L=b.vnode;N(a,L,L.scopeId,L.slotScopeIds,b.parent)}}},T=(a,d,m,_,b,x,L,C,A=0)=>{for(let E=A;E{const C=d.el=a.el;let{patchFlag:A,dynamicChildren:E,dirs:P}=d;A|=a.patchFlag&16;const k=a.props||ee,H=d.props||ee;let U;if(m&&tt(m,!1),(U=H.onVnodeBeforeUpdate)&&Ce(U,m,d,a),P&&Ie(d,a,m,"beforeUpdate"),m&&tt(m,!0),E?v(a.dynamicChildren,E,C,m,_,Yn(d,b),x):L||V(a,d,C,null,m,_,Yn(d,b),x,!1),A>0){if(A&16)j(C,d,k,H,m,_,b);else if(A&2&&k.class!==H.class&&o(C,"class",null,H.class,b),A&4&&o(C,"style",k.style,H.style,b),A&8){const G=d.dynamicProps;for(let Q=0;Q{U&&Ce(U,m,d,a),P&&Ie(d,a,m,"updated")},_)},v=(a,d,m,_,b,x,L)=>{for(let C=0;C{if(m!==_){if(m!==ee)for(const C in m)!Mt(C)&&!(C in _)&&o(a,C,m[C],null,L,d.children,b,x,$e);for(const C in _){if(Mt(C))continue;const A=_[C],E=m[C];A!==E&&C!=="value"&&o(a,C,E,A,L,d.children,b,x,$e)}"value"in _&&o(a,"value",m.value,_.value,L)}},S=(a,d,m,_,b,x,L,C,A)=>{const E=d.el=a?a.el:l(""),P=d.anchor=a?a.anchor:l("");let{patchFlag:k,dynamicChildren:H,slotScopeIds:U}=d;U&&(C=C?C.concat(U):U),a==null?(s(E,m,_),s(P,m,_),T(d.children||[],m,P,b,x,L,C,A)):k>0&&k&64&&H&&a.dynamicChildren?(v(a.dynamicChildren,H,m,b,x,L,C),(d.key!=null||b&&d===b.subTree)&&qs(a,d,!0)):V(a,d,m,P,b,x,L,C,A)},q=(a,d,m,_,b,x,L,C,A)=>{d.slotScopeIds=C,a==null?d.shapeFlag&512?b.ctx.activate(d,m,_,L,A):re(d,m,_,b,x,L,A):ce(a,d,A)},re=(a,d,m,_,b,x,L)=>{const C=a.component=Cc(a,_,b);if(jn(a)&&(C.ctx.renderer=pt),xc(C),C.asyncDep){if(b&&b.registerDep(C,D),!a.el){const A=C.subTree=ue(ve);K(null,A,d,m)}}else D(C,a,d,m,b,x,L)},ce=(a,d,m)=>{const _=d.component=a.component;if(Al(a,d,m))if(_.asyncDep&&!_.asyncResolved){z(_,d,m);return}else _.next=d,wl(_.update),_.effect.dirty=!0,_.update();else d.el=a.el,_.vnode=d},D=(a,d,m,_,b,x,L)=>{const C=()=>{if(a.isMounted){let{next:P,bu:k,u:H,parent:U,vnode:G}=a;{const gt=Zo(a);if(gt){P&&(P.el=G.el,z(a,P,L)),gt.asyncDep.then(()=>{a.isUnmounted||C()});return}}let Q=P,te;tt(a,!1),P?(P.el=G.el,z(a,P,L)):P=G,k&&hn(k),(te=P.props&&P.props.onVnodeBeforeUpdate)&&Ce(te,U,P,G),tt(a,!0);const le=Gn(a),Se=a.subTree;a.subTree=le,I(Se,le,h(Se.el),Yt(Se),a,b,x),P.el=le.el,Q===null&&Rl(a,le.el),H&&me(H,b),(te=P.props&&P.props.onVnodeUpdated)&&me(()=>Ce(te,U,P,G),b)}else{let P;const{el:k,props:H}=d,{bm:U,m:G,parent:Q}=a,te=Et(d);if(tt(a,!1),U&&hn(U),!te&&(P=H&&H.onVnodeBeforeMount)&&Ce(P,Q,d),tt(a,!0),k&&Wn){const le=()=>{a.subTree=Gn(a),Wn(k,a.subTree,a,b,null)};te?d.type.__asyncLoader().then(()=>!a.isUnmounted&&le()):le()}else{const le=a.subTree=Gn(a);I(null,le,m,_,a,b,x),d.el=le.el}if(G&&me(G,b),!te&&(P=H&&H.onVnodeMounted)){const le=d;me(()=>Ce(P,Q,le),b)}(d.shapeFlag&256||Q&&Et(Q.vnode)&&Q.vnode.shapeFlag&256)&&a.a&&me(a.a,b),a.isMounted=!0,d=m=_=null}},A=a.effect=new Ms(C,we,()=>ks(E),a.scope),E=a.update=()=>{A.dirty&&A.run()};E.id=a.uid,tt(a,!0),E()},z=(a,d,m)=>{d.component=a;const _=a.vnode.props;a.vnode=d,a.next=null,rc(a,d.props,_,m),lc(a,d.children,m),ft(),fr(a),dt()},V=(a,d,m,_,b,x,L,C,A=!1)=>{const E=a&&a.children,P=a?a.shapeFlag:0,k=d.children,{patchFlag:H,shapeFlag:U}=d;if(H>0){if(H&128){Xt(E,k,m,_,b,x,L,C,A);return}else if(H&256){Fe(E,k,m,_,b,x,L,C,A);return}}U&8?(P&16&&$e(E,b,x),k!==E&&f(m,k)):P&16?U&16?Xt(E,k,m,_,b,x,L,C,A):$e(E,b,x,!0):(P&8&&f(m,""),U&16&&T(k,m,_,b,x,L,C,A))},Fe=(a,d,m,_,b,x,L,C,A)=>{a=a||_t,d=d||_t;const E=a.length,P=d.length,k=Math.min(E,P);let H;for(H=0;HP?$e(a,b,x,!0,!1,k):T(d,m,_,b,x,L,C,A,k)},Xt=(a,d,m,_,b,x,L,C,A)=>{let E=0;const P=d.length;let k=a.length-1,H=P-1;for(;E<=k&&E<=H;){const U=a[E],G=d[E]=A?Ge(d[E]):Ae(d[E]);if(ot(U,G))I(U,G,m,null,b,x,L,C,A);else break;E++}for(;E<=k&&E<=H;){const U=a[k],G=d[H]=A?Ge(d[H]):Ae(d[H]);if(ot(U,G))I(U,G,m,null,b,x,L,C,A);else break;k--,H--}if(E>k){if(E<=H){const U=H+1,G=UH)for(;E<=k;)Oe(a[E],b,x,!0),E++;else{const U=E,G=E,Q=new Map;for(E=G;E<=H;E++){const _e=d[E]=A?Ge(d[E]):Ae(d[E]);_e.key!=null&&Q.set(_e.key,E)}let te,le=0;const Se=H-G+1;let gt=!1,er=0;const Rt=new Array(Se);for(E=0;E=Se){Oe(_e,b,x,!0);continue}let Le;if(_e.key!=null)Le=Q.get(_e.key);else for(te=G;te<=H;te++)if(Rt[te-G]===0&&ot(_e,d[te])){Le=te;break}Le===void 0?Oe(_e,b,x,!0):(Rt[Le-G]=E+1,Le>=er?er=Le:gt=!0,I(_e,d[Le],m,null,b,x,L,C,A),le++)}const tr=gt?hc(Rt):_t;for(te=tr.length-1,E=Se-1;E>=0;E--){const _e=G+E,Le=d[_e],nr=_e+1{const{el:x,type:L,transition:C,children:A,shapeFlag:E}=a;if(E&6){et(a.component.subTree,d,m,_);return}if(E&128){a.suspense.move(d,m,_);return}if(E&64){L.move(a,d,m,pt);return}if(L===ge){s(x,d,m);for(let k=0;kC.enter(x),b);else{const{leave:k,delayLeave:H,afterLeave:U}=C,G=()=>s(x,d,m),Q=()=>{k(x,()=>{G(),U&&U()})};H?H(x,G,Q):Q()}else s(x,d,m)},Oe=(a,d,m,_=!1,b=!1)=>{const{type:x,props:L,ref:C,children:A,dynamicChildren:E,shapeFlag:P,patchFlag:k,dirs:H}=a;if(C!=null&&Cn(C,null,m,a,!0),P&256){d.ctx.deactivate(a);return}const U=P&1&&H,G=!Et(a);let Q;if(G&&(Q=L&&L.onVnodeBeforeUnmount)&&Ce(Q,d,a),P&6)Ri(a.component,m,_);else{if(P&128){a.suspense.unmount(m,_);return}U&&Ie(a,null,d,"beforeUnmount"),P&64?a.type.remove(a,d,m,b,pt,_):E&&(x!==ge||k>0&&k&64)?$e(E,d,m,!1,!0):(x===ge&&k&384||!b&&P&16)&&$e(A,d,m),_&&Qs(a)}(G&&(Q=L&&L.onVnodeUnmounted)||U)&&me(()=>{Q&&Ce(Q,d,a),U&&Ie(a,null,d,"unmounted")},m)},Qs=a=>{const{type:d,el:m,anchor:_,transition:b}=a;if(d===ge){Ai(m,_);return}if(d===xt){y(a);return}const x=()=>{r(m),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(a.shapeFlag&1&&b&&!b.persisted){const{leave:L,delayLeave:C}=b,A=()=>L(m,x);C?C(a.el,x,A):A()}else x()},Ai=(a,d)=>{let m;for(;a!==d;)m=p(a),r(a),a=m;r(d)},Ri=(a,d,m)=>{const{bum:_,scope:b,update:x,subTree:L,um:C}=a;_&&hn(_),b.stop(),x&&(x.active=!1,Oe(L,a,d,m)),C&&me(C,d),me(()=>{a.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&a.asyncDep&&!a.asyncResolved&&a.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},$e=(a,d,m,_=!1,b=!1,x=0)=>{for(let L=x;La.shapeFlag&6?Yt(a.component.subTree):a.shapeFlag&128?a.suspense.next():p(a.anchor||a.el);let Un=!1;const Zs=(a,d,m)=>{a==null?d._vnode&&Oe(d._vnode,null,null,!0):I(d._vnode||null,a,d,null,null,null,m),Un||(Un=!0,fr(),bn(),Un=!1),d._vnode=a},pt={p:I,um:Oe,m:et,r:Qs,mt:re,mc:T,pc:V,pbc:v,n:Yt,o:e};let Kn,Wn;return t&&([Kn,Wn]=t(pt)),{render:Zs,hydrate:Kn,createApp:tc(Zs,Kn)}}function Yn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function tt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Qo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function qs(e,t,n=!1){const s=e.children,r=t.children;if(B(s)&&B(r))for(let o=0;o>1,e[n[l]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Zo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Zo(t)}const pc=e=>e.__isTeleport,$t=e=>e&&(e.disabled||e.disabled===""),Cr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,xr=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,bs=(e,t)=>{const n=e&&e.to;return ne(n)?t?t(n):null:n},gc={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,o,i,l,c,u){const{mc:f,pc:h,pbc:p,o:{insert:w,querySelector:O,createText:I,createComment:F}}=u,K=$t(t.props);let{shapeFlag:X,children:g,dynamicChildren:y}=t;if(e==null){const M=t.el=I(""),R=t.anchor=I("");w(M,n,s),w(R,n,s);const N=t.target=bs(t.props,O),T=t.targetAnchor=I("");N&&(w(T,N),i==="svg"||Cr(N)?i="svg":(i==="mathml"||xr(N))&&(i="mathml"));const $=(v,j)=>{X&16&&f(g,v,j,r,o,i,l,c)};K?$(n,R):N&&$(N,T)}else{t.el=e.el;const M=t.anchor=e.anchor,R=t.target=e.target,N=t.targetAnchor=e.targetAnchor,T=$t(e.props),$=T?n:R,v=T?M:N;if(i==="svg"||Cr(R)?i="svg":(i==="mathml"||xr(R))&&(i="mathml"),y?(p(e.dynamicChildren,y,$,r,o,i,l),qs(e,t,!0)):c||h(e,t,$,v,r,o,i,l,!1),K)T?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ln(t,n,M,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=bs(t.props,O);j&&ln(t,j,null,u,0)}else T&&ln(t,R,N,u,1)}ei(t)},remove(e,t,n,s,{um:r,o:{remove:o}},i){const{shapeFlag:l,children:c,anchor:u,targetAnchor:f,target:h,props:p}=e;if(h&&o(f),i&&o(u),l&16){const w=i||!$t(p);for(let O=0;O0?Re||_t:null,yc(),Ut>0&&Re&&Re.push(e),e}function xu(e,t,n,s,r,o){return ni(oi(e,t,n,s,r,o,!0))}function si(e,t,n,s,r){return ni(ue(e,t,n,s,r,!0))}function xn(e){return e?e.__v_isVNode===!0:!1}function ot(e,t){return e.type===t.type&&e.key===t.key}const Dn="__vInternal",ri=({key:e})=>e??null,pn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ne(e)||he(e)||W(e)?{i:oe,r:e,k:t,f:!!n}:e:null);function oi(e,t=null,n=null,s=0,r=null,o=e===ge?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ri(t),ref:t&&pn(t),scopeId:$n,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:oe};return l?(Gs(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=ne(n)?8:16),Ut>0&&!i&&Re&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Re.push(c),c}const ue=_c;function _c(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Mo)&&(e=ve),xn(e)){const l=Ze(e,t,!0);return n&&Gs(l,n),Ut>0&&!o&&Re&&(l.shapeFlag&6?Re[Re.indexOf(e)]=l:Re.push(l)),l.patchFlag|=-2,l}if(Rc(e)&&(e=e.__vccOpts),t){t=bc(t);let{class:l,style:c}=t;l&&!ne(l)&&(t.class=Is(l)),Z(c)&&(vo(c)&&!B(c)&&(c=ie({},c)),t.style=Ls(c))}const i=ne(e)?1:Ll(e)?128:pc(e)?64:Z(e)?4:W(e)?2:0;return oi(e,t,n,s,r,i,o,!0)}function bc(e){return e?vo(e)||Dn in e?ie({},e):e:null}function Ze(e,t,n=!1){const{props:s,ref:r,patchFlag:o,children:i}=e,l=t?wc(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&ri(l),ref:t&&t.ref?n&&r?B(r)?r.concat(pn(t)):[r,pn(t)]:pn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ge?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ze(e.ssContent),ssFallback:e.ssFallback&&Ze(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function ii(e=" ",t=0){return ue(St,null,e,t)}function Tu(e,t){const n=ue(xt,null,e);return n.staticCount=t,n}function Su(e="",t=!1){return t?(ti(),si(ve,null,e)):ue(ve,null,e)}function Ae(e){return e==null||typeof e=="boolean"?ue(ve):B(e)?ue(ge,null,e.slice()):typeof e=="object"?Ge(e):ue(St,null,String(e))}function Ge(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ze(e)}function Gs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(B(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Gs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Dn in t)?t._ctx=oe:r===3&&oe&&(oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else W(t)?(t={default:t,_ctx:oe},n=32):(t=String(t),s&64?(n=16,t=[ii(t)]):n=8);e.children=t,e.shapeFlag|=n}function wc(...e){const t={};for(let n=0;nae||oe;let Tn,ws;{const e=so(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};Tn=t("__VUE_INSTANCE_SETTERS__",n=>ae=n),ws=t("__VUE_SSR_SETTERS__",n=>kn=n)}const zt=e=>{const t=ae;return Tn(e),e.scope.on(),()=>{e.scope.off(),Tn(t)}},Sr=()=>{ae&&ae.scope.off(),Tn(null)};function li(e){return e.vnode.shapeFlag&4}let kn=!1;function xc(e,t=!1){t&&ws(t);const{props:n,children:s}=e.vnode,r=li(e);sc(e,n,r,t),ic(e,s);const o=r?Tc(e,t):void 0;return t&&ws(!1),o}function Tc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Pt(new Proxy(e.ctx,zl));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?ai(e):null,o=zt(e);ft();const i=Ye(s,e,0,[e.props,r]);if(dt(),o(),eo(i)){if(i.then(Sr,Sr),t)return i.then(l=>{Ar(e,l,t)}).catch(l=>{Pn(l,e,0)});e.asyncDep=i}else Ar(e,i,t)}else ci(e,t)}function Ar(e,t,n){W(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Z(t)&&(e.setupState=So(t)),ci(e,n)}let Rr;function ci(e,t,n){const s=e.type;if(!e.render){if(!t&&Rr&&!s.render){const r=s.template||Ks(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,u=ie(ie({isCustomElement:o,delimiters:l},i),c);s.render=Rr(r,u)}}e.render=s.render||we}{const r=zt(e);ft();try{Xl(e)}finally{dt(),r()}}}function Sc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return ye(e,"get","$attrs"),t[n]}}))}function ai(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Sc(e)},slots:e.slots,emit:e.emit,expose:t}}function Bn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(So(Pt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ft)return Ft[n](e)},has(t,n){return n in t||n in Ft}}))}function Ac(e,t=!0){return W(e)?e.displayName||e.name:e.name||t&&e.__name}function Rc(e){return W(e)&&"__vccOpts"in e}const se=(e,t)=>ul(e,t,kn);function vs(e,t,n){const s=arguments.length;return s===2?Z(t)&&!B(t)?xn(t)?ue(e,null,[t]):ue(e,t):ue(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&xn(n)&&(n=[n]),ue(e,t,n))}const Oc="3.4.15",Au=we;/** +* @vue/runtime-dom v3.4.15 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const Lc="http://www.w3.org/2000/svg",Ic="http://www.w3.org/1998/Math/MathML",ze=typeof document<"u"?document:null,Or=ze&&ze.createElement("template"),Mc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?ze.createElementNS(Lc,e):t==="mathml"?ze.createElementNS(Ic,e):ze.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>ze.createTextNode(e),createComment:e=>ze.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ze.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Or.innerHTML=s==="svg"?`${e}`:s==="mathml"?`${e}`:e;const l=Or.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ue="transition",Ot="animation",Kt=Symbol("_vtc"),ui=(e,{slots:t})=>vs(Hl,Pc(e),t);ui.displayName="Transition";const fi={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};ui.props=ie({},$o,fi);const nt=(e,t=[])=>{B(e)?e.forEach(n=>n(...t)):e&&e(...t)},Lr=e=>e?B(e)?e.some(t=>t.length>1):e.length>1:!1;function Pc(e){const t={};for(const S in e)S in fi||(t[S]=e[S]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=o,appearActiveClass:u=i,appearToClass:f=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:w=`${n}-leave-to`}=e,O=Nc(r),I=O&&O[0],F=O&&O[1],{onBeforeEnter:K,onEnter:X,onEnterCancelled:g,onLeave:y,onLeaveCancelled:M,onBeforeAppear:R=K,onAppear:N=X,onAppearCancelled:T=g}=t,$=(S,q,re)=>{st(S,q?f:l),st(S,q?u:i),re&&re()},v=(S,q)=>{S._isLeaving=!1,st(S,h),st(S,w),st(S,p),q&&q()},j=S=>(q,re)=>{const ce=S?N:X,D=()=>$(q,S,re);nt(ce,[q,D]),Ir(()=>{st(q,S?c:o),Ke(q,S?f:l),Lr(ce)||Mr(q,s,I,D)})};return ie(t,{onBeforeEnter(S){nt(K,[S]),Ke(S,o),Ke(S,i)},onBeforeAppear(S){nt(R,[S]),Ke(S,c),Ke(S,u)},onEnter:j(!1),onAppear:j(!0),onLeave(S,q){S._isLeaving=!0;const re=()=>v(S,q);Ke(S,h),Hc(),Ke(S,p),Ir(()=>{S._isLeaving&&(st(S,h),Ke(S,w),Lr(y)||Mr(S,s,F,re))}),nt(y,[S,re])},onEnterCancelled(S){$(S,!1),nt(g,[S])},onAppearCancelled(S){$(S,!0),nt(T,[S])},onLeaveCancelled(S){v(S),nt(M,[S])}})}function Nc(e){if(e==null)return null;if(Z(e))return[Jn(e.enter),Jn(e.leave)];{const t=Jn(e);return[t,t]}}function Jn(e){return Ni(e)}function Ke(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Kt]||(e[Kt]=new Set)).add(t)}function st(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Kt];n&&(n.delete(t),n.size||(e[Kt]=void 0))}function Ir(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Fc=0;function Mr(e,t,n,s){const r=e._endId=++Fc,o=()=>{r===e._endId&&s()};if(n)return setTimeout(o,n);const{type:i,timeout:l,propCount:c}=$c(e,t);if(!i)return s();const u=i+"end";let f=0;const h=()=>{e.removeEventListener(u,p),o()},p=w=>{w.target===e&&++f>=c&&h()};setTimeout(()=>{f(n[O]||"").split(", "),r=s(`${Ue}Delay`),o=s(`${Ue}Duration`),i=Pr(r,o),l=s(`${Ot}Delay`),c=s(`${Ot}Duration`),u=Pr(l,c);let f=null,h=0,p=0;t===Ue?i>0&&(f=Ue,h=i,p=o.length):t===Ot?u>0&&(f=Ot,h=u,p=c.length):(h=Math.max(i,u),f=h>0?i>u?Ue:Ot:null,p=f?f===Ue?o.length:c.length:0);const w=f===Ue&&/\b(transform|all)(,|$)/.test(s(`${Ue}Property`).toString());return{type:f,timeout:h,propCount:p,hasTransform:w}}function Pr(e,t){for(;e.lengthNr(n)+Nr(e[s])))}function Nr(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Hc(){return document.body.offsetHeight}function jc(e,t,n){const s=e[Kt];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const zs=Symbol("_vod"),Ru={beforeMount(e,{value:t},{transition:n}){e[zs]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Lt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Lt(e,!0),s.enter(e)):s.leave(e,()=>{Lt(e,!1)}):Lt(e,t))},beforeUnmount(e,{value:t}){Lt(e,t)}};function Lt(e,t){e.style.display=t?e[zs]:"none"}const di=Symbol("");function Ou(e){const t=Gt();if(!t)return;const n=t.ut=(r=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>Cs(o,r))},s=()=>{const r=e(t.proxy);Es(t.subTree,r),n(r)};Pl(s),ht(()=>{const r=new MutationObserver(s);r.observe(t.subTree.el.parentNode,{childList:!0}),qt(()=>r.disconnect())})}function Es(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Es(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Cs(e.el,t);else if(e.type===ge)e.children.forEach(n=>Es(n,t));else if(e.type===xt){let{el:n,anchor:s}=e;for(;n&&(Cs(n,t),n!==s);)n=n.nextSibling}}function Cs(e,t){if(e.nodeType===1){const n=e.style;let s="";for(const r in t)n.setProperty(`--${r}`,t[r]),s+=`--${r}: ${t[r]};`;n[di]=s}}function Vc(e,t,n){const s=e.style,r=s.display,o=ne(n);if(n&&!o){if(t&&!ne(t))for(const i in t)n[i]==null&&xs(s,i,"");for(const i in n)xs(s,i,n[i])}else if(o){if(t!==n){const i=s[di];i&&(n+=";"+i),s.cssText=n}}else t&&e.removeAttribute("style");zs in e&&(s.display=r)}const Fr=/\s*!important$/;function xs(e,t,n){if(B(n))n.forEach(s=>xs(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Dc(e,t);Fr.test(n)?e.setProperty(ut(s),n.replace(Fr,""),"important"):e[s]=n}}const $r=["Webkit","Moz","ms"],Qn={};function Dc(e,t){const n=Qn[t];if(n)return n;let s=Pe(t);if(s!=="filter"&&s in e)return Qn[t]=s;s=On(s);for(let r=0;r<$r.length;r++){const o=$r[r]+s;if(o in e)return Qn[t]=o}return t}const Hr="http://www.w3.org/1999/xlink";function kc(e,t,n,s,r){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Hr,t.slice(6,t.length)):e.setAttributeNS(Hr,t,n);else{const o=Di(t);n==null||o&&!ro(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function Bc(e,t,n,s,r,o,i){if(t==="innerHTML"||t==="textContent"){s&&i(s,r,o),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const u=l==="OPTION"?e.getAttribute("value"):e.value,f=n??"";u!==f&&(e.value=f),n==null&&e.removeAttribute(t);return}let c=!1;if(n===""||n==null){const u=typeof e[t];u==="boolean"?n=ro(n):n==null&&u==="string"?(n="",c=!0):u==="number"&&(n=0,c=!0)}try{e[t]=n}catch{}c&&e.removeAttribute(t)}function mt(e,t,n,s){e.addEventListener(t,n,s)}function Uc(e,t,n,s){e.removeEventListener(t,n,s)}const jr=Symbol("_vei");function Kc(e,t,n,s,r=null){const o=e[jr]||(e[jr]={}),i=o[t];if(s&&i)i.value=s;else{const[l,c]=Wc(t);if(s){const u=o[t]=zc(s,r);mt(e,l,u,c)}else i&&(Uc(e,l,i,c),o[t]=void 0)}}const Vr=/(?:Once|Passive|Capture)$/;function Wc(e){let t;if(Vr.test(e)){t={};let s;for(;s=e.match(Vr);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ut(e.slice(2)),t]}let Zn=0;const qc=Promise.resolve(),Gc=()=>Zn||(qc.then(()=>Zn=0),Zn=Date.now());function zc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Te(Xc(s,n.value),t,5,[s])};return n.value=e,n.attached=Gc(),n}function Xc(e,t){if(B(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Dr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Yc=(e,t,n,s,r,o,i,l,c)=>{const u=r==="svg";t==="class"?jc(e,s,u):t==="style"?Vc(e,n,s):Wt(t)?As(t)||Kc(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Jc(e,t,s,u))?Bc(e,t,s,o,i,l,c):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),kc(e,t,s,u))};function Jc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Dr(t)&&W(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Dr(t)&&ne(n)?!1:t in e}const kr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return B(t)?n=>hn(t,n):t};function Qc(e){e.target.composing=!0}function Br(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const es=Symbol("_assign"),Lu={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[es]=kr(r);const o=s||r.props&&r.props.type==="number";mt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=cs(l)),e[es](l)}),n&&mt(e,"change",()=>{e.value=e.value.trim()}),t||(mt(e,"compositionstart",Qc),mt(e,"compositionend",Br),mt(e,"change",Br))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},o){if(e[es]=kr(o),e.composing)return;const i=r||e.type==="number"?cs(e.value):e.value,l=t??"";i!==l&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===l)||(e.value=l))}},Zc=["ctrl","shift","alt","meta"],ea={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Zc.some(n=>e[`${n}Key`]&&!t.includes(n))},Iu=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...o)=>{for(let i=0;i{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const o=ut(r.key);if(t.some(i=>i===o||ta[i]===o))return e(r)})},hi=ie({patchProp:Yc},Mc);let jt,Ur=!1;function na(){return jt||(jt=fc(hi))}function sa(){return jt=Ur?jt:dc(hi),Ur=!0,jt}const Pu=(...e)=>{na().render(...e)},Nu=(...e)=>{const t=sa().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=oa(s);if(r)return n(r,!0,ra(r))},t};function ra(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function oa(e){return ne(e)?document.querySelector(e):e}const Fu=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},ia="modulepreload",la=function(e){return"/my-blog/"+e},Kr={},$u=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link");r=Promise.all(n.map(i=>{if(i=la(i),i in Kr)return;Kr[i]=!0;const l=i.endsWith(".css"),c=l?'[rel="stylesheet"]':"";if(!!s)for(let h=o.length-1;h>=0;h--){const p=o[h];if(p.href===i&&(!l||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${c}`))return;const f=document.createElement("link");if(f.rel=l?"stylesheet":ia,l||(f.as="script",f.crossOrigin=""),f.href=i,document.head.appendChild(f),l)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${i}`)))})}))}return r.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},ca=window.__VP_SITE_DATA__;function Xs(e){return lo()?(Bi(e),!0):!1}function Je(e){return typeof e=="function"?e():To(e)}const pi=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const aa=Object.prototype.toString,ua=e=>aa.call(e)==="[object Object]",Vt=()=>{},Ts=fa();function fa(){var e,t;return pi&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function da(e,t){function n(...s){return new Promise((r,o)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(r).catch(o)})}return n}const gi=e=>e();function ha(e=gi){const t=de(!0);function n(){t.value=!1}function s(){t.value=!0}const r=(...o)=>{t.value&&e(...o)};return{isActive:Mn(t),pause:n,resume:s,eventFilter:r}}function pa(e){return e||Gt()}function mi(...e){if(e.length!==1)return yl(...e);const t=e[0];return typeof t=="function"?Mn(pl(()=>({get:t,set:Vt}))):de(t)}function ga(e,t,n={}){const{eventFilter:s=gi,...r}=n;return je(e,da(s,t),r)}function ma(e,t,n={}){const{eventFilter:s,...r}=n,{eventFilter:o,pause:i,resume:l,isActive:c}=ha(s);return{stop:ga(e,t,{...r,eventFilter:o}),pause:i,resume:l,isActive:c}}function Ys(e,t=!0,n){pa()?ht(e,n):t?e():Nn(e)}function yt(e){var t;const n=Je(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ne=pi?window:void 0;function Ve(...e){let t,n,s,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,s,r]=e,t=Ne):[t,n,s,r]=e,!t)return Vt;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const o=[],i=()=>{o.forEach(f=>f()),o.length=0},l=(f,h,p,w)=>(f.addEventListener(h,p,w),()=>f.removeEventListener(h,p,w)),c=je(()=>[yt(t),Je(r)],([f,h])=>{if(i(),!f)return;const p=ua(h)?{...h}:h;o.push(...n.flatMap(w=>s.map(O=>l(f,w,O,p))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return Xs(u),u}let Wr=!1;function Hu(e,t,n={}){const{window:s=Ne,ignore:r=[],capture:o=!0,detectIframe:i=!1}=n;if(!s)return Vt;Ts&&!Wr&&(Wr=!0,Array.from(s.document.body.children).forEach(p=>p.addEventListener("click",Vt)),s.document.documentElement.addEventListener("click",Vt));let l=!0;const c=p=>r.some(w=>{if(typeof w=="string")return Array.from(s.document.querySelectorAll(w)).some(O=>O===p.target||p.composedPath().includes(O));{const O=yt(w);return O&&(p.target===O||p.composedPath().includes(O))}}),f=[Ve(s,"click",p=>{const w=yt(e);if(!(!w||w===p.target||p.composedPath().includes(w))){if(p.detail===0&&(l=!c(p)),!l){l=!0;return}t(p)}},{passive:!0,capture:o}),Ve(s,"pointerdown",p=>{const w=yt(e);l=!c(p)&&!!(w&&!p.composedPath().includes(w))},{passive:!0}),i&&Ve(s,"blur",p=>{setTimeout(()=>{var w;const O=yt(e);((w=s.document.activeElement)==null?void 0:w.tagName)==="IFRAME"&&!(O!=null&&O.contains(s.document.activeElement))&&t(p)},0)})].filter(Boolean);return()=>f.forEach(p=>p())}function ya(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function ju(...e){let t,n,s={};e.length===3?(t=e[0],n=e[1],s=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],s=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:r=Ne,eventName:o="keydown",passive:i=!1,dedupe:l=!1}=s,c=ya(t);return Ve(r,o,f=>{f.repeat&&Je(l)||c(f)&&n(f)},i)}function _a(){const e=de(!1),t=Gt();return t&&ht(()=>{e.value=!0},t),e}function ba(e){const t=_a();return se(()=>(t.value,!!e()))}function yi(e,t={}){const{window:n=Ne}=t,s=ba(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const o=de(!1),i=u=>{o.value=u.matches},l=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",i):r.removeListener(i))},c=No(()=>{s.value&&(l(),r=n.matchMedia(Je(e)),"addEventListener"in r?r.addEventListener("change",i):r.addListener(i),o.value=r.matches)});return Xs(()=>{c(),l(),r=void 0}),o}const cn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},an="__vueuse_ssr_handlers__",wa=va();function va(){return an in cn||(cn[an]=cn[an]||{}),cn[an]}function _i(e,t){return wa[e]||t}function Ea(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Ca={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},qr="vueuse-storage";function xa(e,t,n,s={}){var r;const{flush:o="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:c=!0,mergeDefaults:u=!1,shallow:f,window:h=Ne,eventFilter:p,onError:w=v=>{console.error(v)},initOnMounted:O}=s,I=(f?Co:de)(typeof t=="function"?t():t);if(!n)try{n=_i("getDefaultStorage",()=>{var v;return(v=Ne)==null?void 0:v.localStorage})()}catch(v){w(v)}if(!n)return I;const F=Je(t),K=Ea(F),X=(r=s.serializer)!=null?r:Ca[K],{pause:g,resume:y}=ma(I,()=>R(I.value),{flush:o,deep:i,eventFilter:p});h&&l&&Ys(()=>{Ve(h,"storage",T),Ve(h,qr,$),O&&T()}),O||T();function M(v,j){h&&h.dispatchEvent(new CustomEvent(qr,{detail:{key:e,oldValue:v,newValue:j,storageArea:n}}))}function R(v){try{const j=n.getItem(e);if(v==null)M(j,null),n.removeItem(e);else{const S=X.write(v);j!==S&&(n.setItem(e,S),M(j,S))}}catch(j){w(j)}}function N(v){const j=v?v.newValue:n.getItem(e);if(j==null)return c&&F!=null&&n.setItem(e,X.write(F)),F;if(!v&&u){const S=X.read(j);return typeof u=="function"?u(S,F):K==="object"&&!Array.isArray(S)?{...F,...S}:S}else return typeof j!="string"?j:X.read(j)}function T(v){if(!(v&&v.storageArea!==n)){if(v&&v.key==null){I.value=F;return}if(!(v&&v.key!==e)){g();try{(v==null?void 0:v.newValue)!==X.write(I.value)&&(I.value=N(v))}catch(j){w(j)}finally{v?Nn(y):y()}}}}function $(v){T(v.detail)}return I}function bi(e){return yi("(prefers-color-scheme: dark)",e)}function Ta(e={}){const{selector:t="html",attribute:n="class",initialValue:s="auto",window:r=Ne,storage:o,storageKey:i="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:c,emitAuto:u,disableTransition:f=!0}=e,h={auto:"",light:"light",dark:"dark",...e.modes||{}},p=bi({window:r}),w=se(()=>p.value?"dark":"light"),O=c||(i==null?mi(s):xa(i,s,o,{window:r,listenToStorageChanges:l})),I=se(()=>O.value==="auto"?w.value:O.value),F=_i("updateHTMLAttrs",(y,M,R)=>{const N=typeof y=="string"?r==null?void 0:r.document.querySelector(y):yt(y);if(!N)return;let T;if(f&&(T=r.document.createElement("style"),T.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),r.document.head.appendChild(T)),M==="class"){const $=R.split(/\s/g);Object.values(h).flatMap(v=>(v||"").split(/\s/g)).filter(Boolean).forEach(v=>{$.includes(v)?N.classList.add(v):N.classList.remove(v)})}else N.setAttribute(M,R);f&&(r.getComputedStyle(T).opacity,document.head.removeChild(T))});function K(y){var M;F(t,n,(M=h[y])!=null?M:y)}function X(y){e.onChanged?e.onChanged(y,K):K(y)}je(I,X,{flush:"post",immediate:!0}),Ys(()=>X(I.value));const g=se({get(){return u?O.value:I.value},set(y){O.value=y}});try{return Object.assign(g,{store:O,system:w,state:I})}catch{return g}}function Sa(e={}){const{valueDark:t="dark",valueLight:n="",window:s=Ne}=e,r=Ta({...e,onChanged:(l,c)=>{var u;e.onChanged?(u=e.onChanged)==null||u.call(e,l==="dark",c,l):c(l)},modes:{dark:t,light:n}}),o=se(()=>r.system?r.system.value:bi({window:s}).value?"dark":"light");return se({get(){return r.value==="dark"},set(l){const c=l?"dark":"light";o.value===c?r.value="auto":r.value=c}})}function ts(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function wi(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth1?!0:(t.preventDefault&&t.preventDefault(),!1)}const un=new WeakMap;function Vu(e,t=!1){const n=de(t);let s=null;je(mi(e),i=>{const l=ts(Je(i));if(l){const c=l;un.get(c)||un.set(c,c.style.overflow),n.value&&(c.style.overflow="hidden")}},{immediate:!0});const r=()=>{const i=ts(Je(e));!i||n.value||(Ts&&(s=Ve(i,"touchmove",l=>{Aa(l)},{passive:!1})),i.style.overflow="hidden",n.value=!0)},o=()=>{var i;const l=ts(Je(e));!l||!n.value||(Ts&&(s==null||s()),l.style.overflow=(i=un.get(l))!=null?i:"",un.delete(l),n.value=!1)};return Xs(o),se({get(){return n.value},set(i){i?r():o()}})}function Du(e={}){const{window:t=Ne,behavior:n="auto"}=e;if(!t)return{x:de(0),y:de(0)};const s=de(t.scrollX),r=de(t.scrollY),o=se({get(){return s.value},set(l){scrollTo({left:l,behavior:n})}}),i=se({get(){return r.value},set(l){scrollTo({top:l,behavior:n})}});return Ve(t,"scroll",()=>{s.value=t.scrollX,r.value=t.scrollY},{capture:!1,passive:!0}),{x:o,y:i}}function ku(e={}){const{window:t=Ne,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:s=Number.POSITIVE_INFINITY,listenOrientation:r=!0,includeScrollbar:o=!0}=e,i=de(n),l=de(s),c=()=>{t&&(o?(i.value=t.innerWidth,l.value=t.innerHeight):(i.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};if(c(),Ys(c),Ve("resize",c,{passive:!0}),r){const u=yi("(orientation: portrait)");je(u,()=>c())}return{width:i,height:l}}var ns={BASE_URL:"/my-blog/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},ss={};const vi=/^(?:[a-z]+:|\/\/)/i,Ra="vitepress-theme-appearance",Oa=/#.*$/,La=/[?#].*$/,Ia=/(?:(^|\/)index)?\.(?:md|html)$/,xe=typeof document<"u",Ei={relativePath:"",filePath:"",title:"404",description:"Not Found",headers:[],frontmatter:{sidebar:!1,layout:"page"},lastUpdated:0,isNotFound:!0};function Ma(e,t,n=!1){if(t===void 0)return!1;if(e=Gr(`/${e}`),n)return new RegExp(t).test(e);if(Gr(t)!==e)return!1;const s=t.match(Oa);return s?(xe?location.hash:"")===s[0]:!0}function Gr(e){return decodeURI(e).replace(La,"").replace(Ia,"$1")}function Pa(e){return vi.test(e)}function Na(e,t){var s,r,o,i,l,c,u;const n=Object.keys(e.locales).find(f=>f!=="root"&&!Pa(f)&&Ma(t,`/${f}/`,!0))||"root";return Object.assign({},e,{localeIndex:n,lang:((s=e.locales[n])==null?void 0:s.lang)??e.lang,dir:((r=e.locales[n])==null?void 0:r.dir)??e.dir,title:((o=e.locales[n])==null?void 0:o.title)??e.title,titleTemplate:((i=e.locales[n])==null?void 0:i.titleTemplate)??e.titleTemplate,description:((l=e.locales[n])==null?void 0:l.description)??e.description,head:xi(e.head,((c=e.locales[n])==null?void 0:c.head)??[]),themeConfig:{...e.themeConfig,...(u=e.locales[n])==null?void 0:u.themeConfig}})}function Ci(e,t){const n=t.title||e.title,s=t.titleTemplate??e.titleTemplate;if(typeof s=="string"&&s.includes(":title"))return s.replace(/:title/g,n);const r=Fa(e.title,s);return n===r.slice(3)?n:`${n}${r}`}function Fa(e,t){return t===!1?"":t===!0||t===void 0?` | ${e}`:e===t?"":` | ${t}`}function $a(e,t){const[n,s]=t;if(n!=="meta")return!1;const r=Object.entries(s)[0];return r==null?!1:e.some(([o,i])=>o===n&&i[r[0]]===r[1])}function xi(e,t){return[...e.filter(n=>!$a(t,n)),...t]}const Ha=/[\u0000-\u001F"#$&*+,:;<=>?[\]^`{|}\u007F]/g,ja=/^[a-z]:/i;function zr(e){const t=ja.exec(e),n=t?t[0]:"";return n+e.slice(n.length).replace(Ha,"_").replace(/(^|\/)_+(?=[^/]*$)/,"$1")}const rs=new Set;function Va(e){if(rs.size===0){const n=typeof process=="object"&&(ss==null?void 0:ss.VITE_EXTRA_EXTENSIONS)||(ns==null?void 0:ns.VITE_EXTRA_EXTENSIONS)||"";("3g2,3gp,aac,ai,apng,au,avif,bin,bmp,cer,class,conf,crl,css,csv,dll,doc,eps,epub,exe,gif,gz,ics,ief,jar,jpe,jpeg,jpg,js,json,jsonld,m4a,man,mid,midi,mjs,mov,mp2,mp3,mp4,mpe,mpeg,mpg,mpp,oga,ogg,ogv,ogx,opus,otf,p10,p7c,p7m,p7s,pdf,png,ps,qt,roff,rtf,rtx,ser,svg,t,tif,tiff,tr,ts,tsv,ttf,txt,vtt,wav,weba,webm,webp,woff,woff2,xhtml,xml,yaml,yml,zip"+(n&&typeof n=="string"?","+n:"")).split(",").forEach(s=>rs.add(s))}const t=e.split(".").pop();return t==null||!rs.has(t.toLowerCase())}const Da=Symbol(),at=Co(ca);function Bu(e){const t=se(()=>Na(at.value,e.data.relativePath)),n=t.value.appearance,s=n==="force-dark"?de(!0):n?Sa({storageKey:Ra,initialValue:()=>typeof n=="string"?n:"auto",...typeof n=="object"?n:{}}):de(!1);return{site:t,theme:se(()=>t.value.themeConfig),page:se(()=>e.data),frontmatter:se(()=>e.data.frontmatter),params:se(()=>e.data.params),lang:se(()=>t.value.lang),dir:se(()=>e.data.frontmatter.dir||t.value.dir),localeIndex:se(()=>t.value.localeIndex||"root"),title:se(()=>Ci(t.value,e.data)),description:se(()=>e.data.description||t.value.description),isDark:s}}function ka(){const e=Ct(Da);if(!e)throw new Error("vitepress data not properly injected in app");return e}function Ba(e,t){return`${e}${t}`.replace(/\/+/g,"/")}function Xr(e){return vi.test(e)||!e.startsWith("/")?e:Ba(at.value.base,e)}function Ua(e){let t=e.replace(/\.html$/,"");if(t=decodeURIComponent(t),t=t.replace(/\/$/,"/index"),xe){const n="/my-blog/";t=zr(t.slice(n.length).replace(/\//g,"_")||"index")+".md";let s=__VP_HASH_MAP__[t.toLowerCase()];if(s||(t=t.endsWith("_index.md")?t.slice(0,-9)+".md":t.slice(0,-3)+"_index.md",s=__VP_HASH_MAP__[t.toLowerCase()]),!s)return null;t=`${n}assets/${t}.${s}.js`}else t=`./${zr(t.slice(1).replace(/\//g,"_"))}.md.js`;return t}let gn=[];function Uu(e){gn.push(e),qt(()=>{gn=gn.filter(t=>t!==e)})}function Ka(){let e=at.value.scrollOffset,t=0,n=24;if(typeof e=="object"&&"padding"in e&&(n=e.padding,e=e.selector),typeof e=="number")t=e;else if(typeof e=="string")t=Yr(e,n);else if(Array.isArray(e))for(const s of e){const r=Yr(s,n);if(r){t=r;break}}return t}function Yr(e,t){const n=document.querySelector(e);if(!n)return 0;const s=n.getBoundingClientRect().bottom;return s<0?0:s+t}const Wa=Symbol(),Js="http://a.com",qa=()=>({path:"/",component:null,data:Ei});function Ku(e,t){const n=In(qa()),s={route:n,go:r};async function r(l=xe?location.href:"/"){var c,u;l=Sn(l),await((c=s.onBeforeRouteChange)==null?void 0:c.call(s,l))!==!1&&(Qr(l),await i(l),await((u=s.onAfterRouteChanged)==null?void 0:u.call(s,l)))}let o=null;async function i(l,c=0,u=!1){var p;if(await((p=s.onBeforePageLoad)==null?void 0:p.call(s,l))===!1)return;const f=new URL(l,Js),h=o=f.pathname;try{let w=await e(h);if(!w)throw new Error(`Page not found: ${h}`);if(o===h){o=null;const{default:O,__pageData:I}=w;if(!O)throw new Error(`Invalid route component: ${O}`);n.path=xe?h:Xr(h),n.component=Pt(O),n.data=Pt(I),xe&&Nn(()=>{let F=at.value.base+I.relativePath.replace(/(?:(^|\/)index)?\.md$/,"$1");if(!at.value.cleanUrls&&!F.endsWith("/")&&(F+=".html"),F!==f.pathname&&(f.pathname=F,l=F+f.search+f.hash,history.replaceState(null,"",l)),f.hash&&!c){let K=null;try{K=document.getElementById(decodeURIComponent(f.hash).slice(1))}catch(X){console.warn(X)}if(K){Jr(K,f.hash);return}}window.scrollTo(0,c)})}}catch(w){if(!/fetch|Page not found/.test(w.message)&&!/^\/404(\.html|\/)?$/.test(l)&&console.error(w),!u)try{const O=await fetch(at.value.base+"hashmap.json");window.__VP_HASH_MAP__=await O.json(),await i(l,c,!0);return}catch{}o===h&&(o=null,n.path=xe?h:Xr(h),n.component=t?Pt(t):null,n.data=Ei)}}return xe&&(window.addEventListener("click",l=>{if(l.target.closest("button"))return;const u=l.target.closest("a");if(u&&!u.closest(".vp-raw")&&(u instanceof SVGElement||!u.download)){const{target:f}=u,{href:h,origin:p,pathname:w,hash:O,search:I}=new URL(u.href instanceof SVGAnimatedString?u.href.animVal:u.href,u.baseURI),F=new URL(window.location.href);!l.ctrlKey&&!l.shiftKey&&!l.altKey&&!l.metaKey&&!f&&p===F.origin&&Va(w)&&(l.preventDefault(),w===F.pathname&&I===F.search?(O!==F.hash&&(history.pushState(null,"",O),window.dispatchEvent(new Event("hashchange"))),O?Jr(u,O,u.classList.contains("header-anchor")):(Qr(h,!1),window.scrollTo(0,0))):r(h))}},{capture:!0}),window.addEventListener("popstate",async l=>{var c;await i(Sn(location.href),l.state&&l.state.scrollPosition||0),(c=s.onAfterRouteChanged)==null||c.call(s,location.href)}),window.addEventListener("hashchange",l=>{l.preventDefault()})),s}function Ga(){const e=Ct(Wa);if(!e)throw new Error("useRouter() is called without provider.");return e}function Ti(){return Ga().route}function Jr(e,t,n=!1){let s=null;try{s=e.classList.contains("header-anchor")?e:document.getElementById(decodeURIComponent(t).slice(1))}catch(r){console.warn(r)}if(s){let r=function(){!n||Math.abs(i-window.scrollY)>window.innerHeight?window.scrollTo(0,i):window.scrollTo({left:0,top:i,behavior:"smooth"})};const o=parseInt(window.getComputedStyle(s).paddingTop,10),i=window.scrollY+s.getBoundingClientRect().top-Ka()+o;requestAnimationFrame(r)}}function Qr(e,t=!0){if(xe&&Sn(e)!==Sn(location.href)){const n=location.hash;history.replaceState({scrollPosition:window.scrollY},document.title),history.pushState(null,"",e),t&&new URL(e,Js).hash!==n&&window.dispatchEvent(new Event("hashchange"))}}function Sn(e){const t=new URL(e,Js);return t.pathname=t.pathname.replace(/(^|\/)index(\.html)?$/,"$1"),at.value.cleanUrls?t.pathname=t.pathname.replace(/\.html$/,""):!t.pathname.endsWith("/")&&!t.pathname.endsWith(".html")&&(t.pathname+=".html"),t.pathname+t.search+t.hash}const os=()=>gn.forEach(e=>e()),Wu=Vo({name:"VitePressContent",props:{as:{type:[Object,String],default:"div"}},setup(e){const t=Ti(),{site:n}=ka();return()=>vs(e.as,n.value.contentProps??{style:{position:"relative"}},[t.component?vs(t.component,{onVnodeMounted:os,onVnodeUpdated:os,onVnodeUnmounted:os}):"404 Page Not Found"])}});/** +* @vue/shared v3.4.31 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const qu=()=>{},za=Object.prototype.hasOwnProperty,Gu=(e,t)=>za.call(e,t),zu=Array.isArray,Xu=e=>typeof e=="function",Yu=e=>typeof e=="string",Ju=e=>e!==null&&typeof e=="object",Xa=Object.prototype.toString,Ya=e=>Xa.call(e),Qu=e=>Ya(e).slice(8,-1),Ja=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Qa=/-(\w)/g,Zu=Ja(e=>e.replace(Qa,(t,n)=>n?n.toUpperCase():"")),Za=/;(?![^(]*\))/g,eu=/:([^]+)/,tu=/\/\*[^]*?\*\//g;function ef(e){const t={};return e.replace(tu,"").split(Za).forEach(n=>{if(n){const s=n.split(eu);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}const tf=Vo({setup(e,{slots:t}){const n=de(!1);return ht(()=>{n.value=!0}),()=>n.value&&t.default?t.default():null}});function nf(){xe&&window.addEventListener("click",e=>{var n;const t=e.target;if(t.matches(".vp-code-group input")){const s=(n=t.parentElement)==null?void 0:n.parentElement;if(!s)return;const r=Array.from(s.querySelectorAll("input")).indexOf(t);if(r<0)return;const o=s.querySelector(".blocks");if(!o)return;const i=Array.from(o.children).find(u=>u.classList.contains("active"));if(!i)return;const l=o.children[r];if(!l||i===l)return;i.classList.remove("active"),l.classList.add("active");const c=s==null?void 0:s.querySelector(`label[for="${t.id}"]`);c==null||c.scrollIntoView({block:"nearest"})}})}function sf(){if(xe){const e=new WeakMap;window.addEventListener("click",t=>{var s;const n=t.target;if(n.matches('div[class*="language-"] > button.copy')){const r=n.parentElement,o=(s=n.nextElementSibling)==null?void 0:s.nextElementSibling;if(!r||!o)return;const i=/language-(shellscript|shell|bash|sh|zsh)/.test(r.className),l=[".vp-copy-ignore",".diff.remove"],c=o.cloneNode(!0);c.querySelectorAll(l.join(",")).forEach(f=>f.remove());let u=c.textContent||"";i&&(u=u.replace(/^ *(\$|>) /gm,"").trim()),nu(u).then(()=>{n.classList.add("copied"),clearTimeout(e.get(n));const f=setTimeout(()=>{n.classList.remove("copied"),n.blur(),e.delete(n)},2e3);e.set(n,f)})}})}}async function nu(e){try{return navigator.clipboard.writeText(e)}catch{const t=document.createElement("textarea"),n=document.activeElement;t.value=e,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const s=document.getSelection(),r=s?s.rangeCount>0&&s.getRangeAt(0):null;document.body.appendChild(t),t.select(),t.selectionStart=0,t.selectionEnd=e.length,document.execCommand("copy"),document.body.removeChild(t),r&&(s.removeAllRanges(),s.addRange(r)),n&&n.focus()}}function rf(e,t){let n=!0,s=[];const r=o=>{if(n){n=!1,o.forEach(l=>{const c=is(l);for(const u of document.head.children)if(u.isEqualNode(c)){s.push(u);return}});return}const i=o.map(is);s.forEach((l,c)=>{const u=i.findIndex(f=>f==null?void 0:f.isEqualNode(l??null));u!==-1?delete i[u]:(l==null||l.remove(),delete s[c])}),i.forEach(l=>l&&document.head.appendChild(l)),s=[...s,...i].filter(Boolean)};No(()=>{const o=e.data,i=t.value,l=o&&o.description,c=o&&o.frontmatter.head||[],u=Ci(i,o);u!==document.title&&(document.title=u);const f=l||i.description;let h=document.querySelector("meta[name=description]");h?h.getAttribute("content")!==f&&h.setAttribute("content",f):is(["meta",{name:"description",content:f}]),r(xi(i.head,ru(c)))})}function is([e,t,n]){const s=document.createElement(e);for(const r in t)s.setAttribute(r,t[r]);return n&&(s.innerHTML=n),e==="script"&&!t.async&&(s.async=!1),s}function su(e){return e[0]==="meta"&&e[1]&&e[1].name==="description"}function ru(e){return e.filter(t=>!su(t))}const ls=new Set,Si=()=>document.createElement("link"),ou=e=>{const t=Si();t.rel="prefetch",t.href=e,document.head.appendChild(t)},iu=e=>{const t=new XMLHttpRequest;t.open("GET",e,t.withCredentials=!0),t.send()};let fn;const lu=xe&&(fn=Si())&&fn.relList&&fn.relList.supports&&fn.relList.supports("prefetch")?ou:iu;function of(){if(!xe||!window.IntersectionObserver)return;let e;if((e=navigator.connection)&&(e.saveData||/2g/.test(e.effectiveType)))return;const t=window.requestIdleCallback||setTimeout;let n=null;const s=()=>{n&&n.disconnect(),n=new IntersectionObserver(o=>{o.forEach(i=>{if(i.isIntersecting){const l=i.target;n.unobserve(l);const{pathname:c}=l;if(!ls.has(c)){ls.add(c);const u=Ua(c);u&&lu(u)}}})}),t(()=>{document.querySelectorAll("#app a").forEach(o=>{const{hostname:i,pathname:l}=new URL(o.href instanceof SVGAnimatedString?o.href.animVal:o.href,o.baseURI),c=l.match(/\.\w+$/);c&&c[0]!==".html"||o.target!=="_blank"&&i===location.hostname&&(l!==location.pathname?n.observe(o):ls.add(l))})})};ht(s);const r=Ti();je(()=>r.path,s),qt(()=>{n&&n.disconnect()})}export{Cu as $,qt as A,Pl as B,Ul as C,Ka as D,yu as E,ge as F,hu as G,Co as H,Uu as I,ue as J,vi as K,pu as L,Ti as M,wc as N,Ct as O,ku as P,Ls as Q,Hu as R,ju as S,ui as T,Nn as U,Du as V,Mn as W,In as X,nc as Y,ko as Z,Fu as _,ii as a,mu as a0,Ru as a1,uu as a2,vs as a3,lo as a4,Bi as a5,Gt as a6,he as a7,Tu as a8,Ga as a9,gu as aA,Lu as aB,al as aC,Pu as aD,Ou as aE,ef as aF,$u as aG,rf as aH,Wa as aI,Bu as aJ,Da as aK,Wu as aL,tf as aM,at as aN,Nu as aO,Ku as aP,Ua as aQ,of as aR,sf as aS,nf as aT,_u as aa,Vu as ab,wu as ac,Mu as ad,Iu as ae,vu as af,yl as ag,Yu as ah,Zu as ai,Ju as aj,Gu as ak,Au as al,qu as am,zu as an,xn as ao,Xu as ap,kl as aq,Eu as ar,Ze as as,St as at,ve as au,Vl as av,Pt as aw,au as ax,J as ay,Qu as az,si as b,xu as c,Vo as d,Su as e,Va as f,Xr as g,de as h,Pa as i,xe as j,se as k,ht as l,oi as m,Is as n,ti as o,To as p,fu as q,bu as r,du as s,cu as t,ka as u,Ma as v,xl as w,yi as x,je as y,No as z}; diff --git a/assets/chunks/index.BNnYFWcz.js b/assets/chunks/index.BNnYFWcz.js new file mode 100644 index 0000000..a5e9a0d --- /dev/null +++ b/assets/chunks/index.BNnYFWcz.js @@ -0,0 +1,1720 @@ +var $d=Object.defineProperty,t0=Object.getOwnPropertySymbols,Dd=Object.prototype.hasOwnProperty,Nd=Object.prototype.propertyIsEnumerable,lu=(a,t,e)=>t in a?$d(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e,Fd=(a,t)=>{for(var e in t||(t={}))Dd.call(t,e)&&lu(a,e,t[e]);if(t0)for(var e of t0(t))Nd.call(t,e)&&lu(a,e,t[e]);return a},Ft=(a,t,e)=>(lu(a,typeof t!="symbol"?t+"":t,e),e),lr=(a,t,e)=>new Promise((i,n)=>{var o=g=>{try{l(e.next(g))}catch(y){n(y)}},s=g=>{try{l(e.throw(g))}catch(y){n(y)}},l=g=>g.done?i(g.value):Promise.resolve(g.value).then(o,s);l((e=e.apply(a,t)).next())});window._iconfont_svg_string_3847283='',function(a){var e=(e=document.getElementsByTagName("script"))[e.length-1],t=e.getAttribute("data-injectcss"),e=e.getAttribute("data-disable-injectsvg");if(!e){var i,n,o,s,l,g=function(x,E){E.parentNode.insertBefore(x,E)};if(t&&!a.__iconfont__svg__cssinject__){a.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(x){console&&console.log(x)}}i=function(){var x,E=document.createElement("div");E.innerHTML=a._iconfont_svg_string_3847283,(E=E.getElementsByTagName("svg")[0])&&(E.setAttribute("aria-hidden","true"),E.style.position="absolute",E.style.width=0,E.style.height=0,E.style.overflow="hidden",E=E,(x=document.body).firstChild?g(E,x.firstChild):x.appendChild(E))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(i,0):(n=function(){document.removeEventListener("DOMContentLoaded",n,!1),i()},document.addEventListener("DOMContentLoaded",n,!1)):document.attachEvent&&(o=i,s=a.document,l=!1,A(),s.onreadystatechange=function(){s.readyState=="complete"&&(s.onreadystatechange=null,y())})}function y(){l||(l=!0,o())}function A(){try{s.documentElement.doScroll("left")}catch{return void setTimeout(A,50)}y()}}(window);const Kc=document.createElement("script");document.head.append(Kc);const Bd=` +var __NONECONSOLE = {log(){}};(function(){var j=true;function aa(){if(j){return;}this._$MT=null;this._$5S=null;this._$NP=0;aa._$42++;this._$5S=new y(this);}aa._$0s=1;aa._$4s=2;aa._$42=0;aa._$62=function(aQ,aU){try{if(aU instanceof ArrayBuffer){aU=new DataView(aU);}if(!(aU instanceof DataView)){throw new J("_$SS#loadModel(b) / b _$x be DataView or ArrayBuffer");}var aS=new K(aU);var aM=aS._$ST();var aK=aS._$ST();var aJ=aS._$ST();var aN;if(aM==109&&aK==111&&aJ==99){aN=aS._$ST();}else{throw new J("_$gi _$C _$li , _$Q0 _$P0.");}aS._$gr(aN);if(aN>ay._$T7){aQ._$NP|=aa._$4s;var aR=ay._$T7;var aI="_$gi _$C _$li , _$n0 _$_ version _$li ( SDK : "+aR+" < _$f0 : "+aN+" )@_$SS#loadModel()\\ +";throw new J(aI);}var aL=aS._$nP();if(aN>=ay._$s7){var aH=aS._$9T();var aT=aS._$9T();if(aH!=-30584||aT!=-30584){aQ._$NP|=aa._$0s;throw new J("_$gi _$C _$li , _$0 _$6 _$Ui.");}}aQ._$KS(aL);var aP=aQ.getModelContext();aP.setDrawParam(aQ.getDrawParam());aP.init();}catch(aO){q._$Rb(aO);}};aa.prototype._$KS=function(aH){this._$MT=aH;};aa.prototype.getModelImpl=function(){if(this._$MT==null){this._$MT=new w();this._$MT._$zP();}return this._$MT;};aa.prototype.getCanvasWidth=function(){if(this._$MT==null){return 0;}return this._$MT.getCanvasWidth();};aa.prototype.getCanvasHeight=function(){if(this._$MT==null){return 0;}return this._$MT.getCanvasHeight();};aa.prototype.getParamFloat=function(aH){if(typeof aH!="number"){aH=this._$5S.getParamIndex(z.getID(aH));}return this._$5S.getParamFloat(aH);};aa.prototype.setParamFloat=function(aH,aJ,aI){if(typeof aH!="number"){aH=this._$5S.getParamIndex(z.getID(aH));}if(arguments.length<3){aI=1;}this._$5S.setParamFloat(aH,this._$5S.getParamFloat(aH)*(1-aI)+aJ*aI);};aa.prototype.addToParamFloat=function(aH,aJ,aI){if(typeof aH!="number"){aH=this._$5S.getParamIndex(z.getID(aH));}if(arguments.length<3){aI=1;}this._$5S.setParamFloat(aH,this._$5S.getParamFloat(aH)+aJ*aI);};aa.prototype.multParamFloat=function(aH,aJ,aI){if(typeof aH!="number"){aH=this._$5S.getParamIndex(z.getID(aH));}if(arguments.length<3){aI=1;}this._$5S.setParamFloat(aH,this._$5S.getParamFloat(aH)*(1+(aJ-1)*aI));};aa.prototype.getParamIndex=function(aH){return this._$5S.getParamIndex(z.getID(aH));};aa.prototype.loadParam=function(){this._$5S.loadParam();};aa.prototype.saveParam=function(){this._$5S.saveParam();};aa.prototype.init=function(){this._$5S.init();};aa.prototype.update=function(){this._$5S.update();};aa.prototype._$Rs=function(){q._$li("_$60 _$PT _$Rs()");return -1;};aa.prototype._$Ds=function(aH){q._$li("_$60 _$PT _$SS#_$Ds() \\n");};aa.prototype._$K2=function(){};aa.prototype.draw=function(){};aa.prototype.getModelContext=function(){return this._$5S;};aa.prototype._$s2=function(){return this._$NP;};aa.prototype._$P7=function(aK,aR,aH,a0){var aU=-1;var aY=0;var aM=this;var aJ=0.5;var aI=0.15;var aX=true;if(aH==0){for(var aV=0;aV1){aQ=1;}}else{aQ-=aW;if(aQ<0){aQ=0;}}aM.setPartsOpacity(aO,aQ);}else{for(var aV=0;aV=0){break;}aU=aV;var aO=aR[aV];aY=aM.getPartsOpacity(aO);aY+=aH/a0;if(aY>1){aY=1;}}}if(aU<0){__NONECONSOLE.log("No _$wi _$q0/ _$U default[%s]",aK[0]);aU=0;aY=1;aM.loadParam();aM.setParamFloat(aK[aU],aY);aM.saveParam();}for(var aV=0;aVaI){aZ=1-aI/(1-aY);}}if(aL>aZ){aL=aZ;}aM.setPartsOpacity(aO,aL);}}}}};aa.prototype.setPartsOpacity=function(aI,aH){if(typeof aI!="number"){aI=this._$5S.getPartsDataIndex(i.getID(aI));}this._$5S.setPartsOpacity(aI,aH);};aa.prototype.getPartsDataIndex=function(aH){if(!(aH instanceof i)){aH=i.getID(aH);}return this._$5S.getPartsDataIndex(aH);};aa.prototype.getPartsOpacity=function(aH){if(typeof aH!="number"){aH=this._$5S.getPartsDataIndex(i.getID(aH));}if(aH<0){return 0;}return this._$5S.getPartsOpacity(aH);};aa.prototype.getDrawParam=function(){};aa.prototype.getDrawDataIndex=function(aH){return this._$5S.getDrawDataIndex(Z.getID(aH));};aa.prototype.getDrawData=function(aH){return this._$5S.getDrawData(aH);};aa.prototype.getTransformedPoints=function(aH){var aI=this._$5S._$C2(aH);if(aI instanceof ag){return(aI).getTransformedPoints();}return null;};aa.prototype.getIndexArray=function(aI){if(aI<0||aI>=this._$5S._$aS.length){return null;}var aH=this._$5S._$aS[aI];if(aH!=null&&aH.getType()==a._$wb){if(aH instanceof b){return aH.getIndexArray();}}return null;};function W(aJ){if(j){return;}this.clipContextList=new Array();this.glcontext=aJ.gl;this.dp_webgl=aJ;this.curFrameNo=0;this.firstError_clipInNotUpdate=true;this.colorBuffer=0;this.isInitGLFBFunc=false;this.tmpBoundsOnModel=new av();if(Q.glContext.length>Q.frameBuffers.length){this.curFrameNo=this.getMaskRenderTexture();}else{}this.tmpModelToViewMatrix=new ac();this.tmpMatrix2=new ac();this.tmpMatrixForMask=new ac();this.tmpMatrixForDraw=new ac();this.CHANNEL_COLORS=new Array();var aI=new o();aI=new o();aI.r=0;aI.g=0;aI.b=0;aI.a=1;this.CHANNEL_COLORS.push(aI);aI=new o();aI.r=1;aI.g=0;aI.b=0;aI.a=0;this.CHANNEL_COLORS.push(aI);aI=new o();aI.r=0;aI.g=1;aI.b=0;aI.a=0;this.CHANNEL_COLORS.push(aI);aI=new o();aI.r=0;aI.g=0;aI.b=1;aI.a=0;this.CHANNEL_COLORS.push(aI);for(var aH=0;aH=0;--aH){this.CHANNEL_COLORS.splice(aH,1);}this.CHANNEL_COLORS=[];}this.releaseShader();};W.prototype.releaseShader=function(){var aI=Q.frameBuffers.length;for(var aH=0;aH0){var aM=aQ.gl.getParameter(aQ.gl.FRAMEBUFFER_BINDING);var aW=new Array(4);aW[0]=0;aW[1]=0;aW[2]=aQ.gl.canvas.width;aW[3]=aQ.gl.canvas.height;aQ.gl.viewport(0,0,Q.clippingMaskBufferSize,Q.clippingMaskBufferSize);this.setupLayoutBounds(aK);aQ.gl.bindFramebuffer(aQ.gl.FRAMEBUFFER,Q.frameBuffers[this.curFrameNo].framebuffer);aQ.gl.clearColor(0,0,0,0);aQ.gl.clear(aQ.gl.COLOR_BUFFER_BIT);for(var aO=0;aOa5?aU:a5;var aT=aJ;var aR=aJ;var aS=0;var aP=0;var aL=aV.clippedDrawContextList.length;for(var aM=0;aMaS){aS=a0;}if(aZ>aP){aP=aZ;}}}if(aT==aJ){aV.allClippedDrawRect.x=0;aV.allClippedDrawRect.y=0;aV.allClippedDrawRect.width=0;aV.allClippedDrawRect.height=0;aV.isUsing=false;}else{var aQ=aS-aT;var aY=aP-aR;aV.allClippedDrawRect.x=aT;aV.allClippedDrawRect.y=aR;aV.allClippedDrawRect.width=aQ;aV.allClippedDrawRect.height=aY;aV.isUsing=true;}};W.prototype.setupLayoutBounds=function(aQ){var aI=aQ/W.CHANNEL_COUNT;var aP=aQ%W.CHANNEL_COUNT;aI=~~aI;aP=~~aP;var aH=0;for(var aJ=0;aJ=1){return 1;}}var aS=aQ;var aI=aS*aS;var aH=aS*aI;var aT=aY*aH+aX*aI+aW*aS+aV;return aT;};ah.prototype._$a0=function(){};ah.prototype.setFadeIn=function(aH){this._$dP=aH;};ah.prototype.setFadeOut=function(aH){this._$eo=aH;};ah.prototype._$pT=function(aH){this._$V0=aH;};ah.prototype.getFadeOut=function(){return this._$eo;};ah.prototype._$4T=function(){return this._$eo;};ah.prototype._$mT=function(){return this._$V0;};ah.prototype.getDurationMSec=function(){return -1;};ah.prototype.getLoopDurationMSec=function(){return -1;};ah.prototype.updateParam=function(aJ,aN){if(!aN._$AT||aN._$9L){return;}var aL=P.getUserTimeMSec();if(aN._$z2<0){aN._$z2=aL;aN._$bs=aL;var aM=this.getDurationMSec();if(aN._$Do<0){aN._$Do=(aM<=0)?-1:aN._$z2+aM;}}var aI=this._$V0;var aH=(this._$dP==0)?1:A._$r2(((aL-aN._$bs)/(this._$dP)));var aK=(this._$eo==0||aN._$Do<0)?1:A._$r2(((aN._$Do-aL)/(this._$eo)));aI=aI*aH*aK;if(!((0<=aI&&aI<=1))){__NONECONSOLE.log("### assert!! ### ");}this.updateParamExe(aJ,aL,aI,aN);if(aN._$Do>0&&aN._$Do0){__NONECONSOLE.log("\\n");}else{if(aH%8==0&&aH>0){__NONECONSOLE.log(" ");}}__NONECONSOLE.log("%02X ",(aJ[aH]&255));}__NONECONSOLE.log("\\n");};q._$nr=function(aL,aI,aK){__NONECONSOLE.log("%s\\n",aL);var aH=aI.length;for(var aJ=0;aJ=0;--aJ){var aM=this._$lL[aJ];aM._$oP(aI,this);}this._$oo(aI,aK);this._$M2=this._$Yb();this._$9b=(this._$M2-this._$ks)/aK;this._$ks=this._$M2;}for(var aJ=this._$qP.length-1;aJ>=0;--aJ){var aH=this._$qP[aJ];aH._$YS(aI,this);}this._$iT=aL;};u.prototype._$oo=function(aN,aI){if(aI<0.033){aI=0.033;}var aU=1/aI;this.p1.vx=(this.p1.x-this.p1._$s0)*aU;this.p1.vy=(this.p1.y-this.p1._$70)*aU;this.p1.ax=(this.p1.vx-this.p1._$7L)*aU;this.p1.ay=(this.p1.vy-this.p1._$HL)*aU;this.p1.fx=this.p1.ax*this.p1._$p;this.p1.fy=this.p1.ay*this.p1._$p;this.p1._$xT();var aM=-(Math.atan2((this.p1.y-this.p2.y),this.p1.x-this.p2.x));var aL;var aV;var aR=Math.cos(aM);var aH=Math.sin(aM);var aW=9.8*this.p2._$p;var aQ=(this._$Db*aC._$bS);var aP=(aW*Math.cos(aM-aQ));aL=(aP*aH);aV=(aP*aR);var aK=(-this.p1.fx*aH*aH);var aT=(-this.p1.fy*aH*aR);var aJ=((-this.p2.vx*this._$L2));var aS=((-this.p2.vy*this._$L2));this.p2.fx=((aL+aK+aJ));this.p2.fy=((aV+aT+aS));this.p2.ax=this.p2.fx/this.p2._$p;this.p2.ay=this.p2.fy/this.p2._$p;this.p2.vx+=this.p2.ax*aI;this.p2.vy+=this.p2.ay*aI;this.p2.x+=this.p2.vx*aI;this.p2.y+=this.p2.vy*aI;var aO=(Math.sqrt((this.p1.x-this.p2.x)*(this.p1.x-this.p2.x)+(this.p1.y-this.p2.y)*(this.p1.y-this.p2.y)));this.p2.x=this.p1.x+this._$Fo*(this.p2.x-this.p1.x)/aO;this.p2.y=this.p1.y+this._$Fo*(this.p2.y-this.p1.y)/aO;this.p2.vx=(this.p2.x-this.p2._$s0)*aU;this.p2.vy=(this.p2.y-this.p2._$70)*aU;this.p2._$xT();};function N(){this._$p=1;this.x=0;this.y=0;this.vx=0;this.vy=0;this.ax=0;this.ay=0;this.fx=0;this.fy=0;this._$s0=0;this._$70=0;this._$7L=0;this._$HL=0;}N.prototype._$xT=function(){this._$s0=this.x;this._$70=this.y;this._$7L=this.vx;this._$HL=this.vy;};function at(aJ,aI,aH){this._$wL=null;this.scale=null;this._$V0=null;this._$wL=aJ;this.scale=aI;this._$V0=aH;}at.prototype._$oP=function(aI,aH){};function h(aJ,aK,aI,aH){at.prototype.constructor.call(this,aK,aI,aH);this._$tL=null;this._$tL=aJ;}h.prototype=new at();h.prototype._$oP=function(aJ,aH){var aK=this.scale*aJ.getParamFloat(this._$wL);var aL=aH.getPhysicsPoint1();switch(this._$tL){default:case u.Src.SRC_TO_X:aL.x=aL.x+(aK-aL.x)*this._$V0;break;case u.Src.SRC_TO_Y:aL.y=aL.y+(aK-aL.y)*this._$V0;break;case u.Src.SRC_TO_G_ANGLE:var aI=aH._$qr();aI=aI+(aK-aI)*this._$V0;aH._$pr(aI);break;}};function d(aJ,aI,aH){this._$wL=null;this.scale=null;this._$V0=null;this._$wL=aJ;this.scale=aI;this._$V0=aH;}d.prototype._$YS=function(aI,aH){};function aF(aI,aK,aJ,aH){d.prototype.constructor.call(this,aK,aJ,aH);this._$YP=null;this._$YP=aI;}aF.prototype=new d();aF.prototype._$YS=function(aI,aH){switch(this._$YP){default:case u.Target.TARGET_FROM_ANGLE:aI.setParamFloat(this._$wL,this.scale*aH._$5r(),this._$V0);break;case u.Target.TARGET_FROM_ANGLE_V:aI.setParamFloat(this._$wL,this.scale*aH._$Cs(),this._$V0);break;}};u.Src=function(){};u.Src.SRC_TO_X="SRC_TO_X";u.Src.SRC_TO_Y="SRC_TO_Y";u.Src.SRC_TO_G_ANGLE="SRC_TO_G_ANGLE";u.Target=function(){};u.Target.TARGET_FROM_ANGLE="TARGET_FROM_ANGLE";u.Target.TARGET_FROM_ANGLE_V="TARGET_FROM_ANGLE_V";function X(){if(j){return;}this._$fL=0;this._$gL=0;this._$B0=1;this._$z0=1;this._$qT=0;this.reflectX=false;this.reflectY=false;}X.prototype.init=function(aH){this._$fL=aH._$fL;this._$gL=aH._$gL;this._$B0=aH._$B0;this._$z0=aH._$z0;this._$qT=aH._$qT;this.reflectX=aH.reflectX;this.reflectY=aH.reflectY;};X.prototype._$F0=function(aH){this._$fL=aH._$_T();this._$gL=aH._$_T();this._$B0=aH._$_T();this._$z0=aH._$_T();this._$qT=aH._$_T();if(aH.getFormatVersion()>=ay.LIVE2D_FORMAT_VERSION_V2_10_SDK2){this.reflectX=aH._$po();this.reflectY=aH._$po();}};X.prototype._$e=function(){};var ad=function(){};ad._$ni=function(aL,aJ,aR,aQ,aK,aI,aH,aS,aN){var aM=(aH*aI-aS*aK);if(aM==0){return null;}else{var aO=((aL-aR)*aI-(aJ-aQ)*aK)/aM;var aP;if(aK!=0){aP=(aL-aR-aO*aH)/aK;}else{aP=(aJ-aQ-aO*aS)/aI;}if(isNaN(aP)){aP=(aL-aR-aO*aH)/aK;if(isNaN(aP)){aP=(aJ-aQ-aO*aS)/aI;}if(isNaN(aP)){__NONECONSOLE.log("a is NaN @UtVector#_$ni() ");__NONECONSOLE.log("v1x : "+aK);__NONECONSOLE.log("v1x != 0 ? "+(aK!=0));}}if(aN==null){return new Array(aP,aO);}else{aN[0]=aP;aN[1]=aO;return aN;}}};function av(){if(j){return;}this.x=null;this.y=null;this.width=null;this.height=null;}av.prototype._$8P=function(){return this.x+0.5*this.width;};av.prototype._$6P=function(){return this.y+0.5*this.height;};av.prototype._$EL=function(){return this.x+this.width;};av.prototype._$5T=function(){return this.y+this.height;};av.prototype._$jL=function(aI,aK,aJ,aH){this.x=aI;this.y=aK;this.width=aJ;this.height=aH;};av.prototype._$jL=function(aH){this.x=aH.x;this.y=aH.y;this.width=aH.width;this.height=aH.height;};av.prototype.contains=function(aH,aI){return this.x<=this.x&&this.y<=this.y&&(this.x<=this.x+this.width)&&(this.y<=this.y+this.height);};av.prototype.expand=function(aH,aI){this.x-=aH;this.y-=aI;this.width+=aH*2;this.height+=aI*2;};function aG(){}aG._$Z2=function(bb,bo,bp,a2){var a1=bo._$Q2(bb,bp);var a3=bb._$vs();var ba=bb._$Tr();bo._$zr(a3,ba,a1);if(a1<=0){return a2[a3[0]];}else{if(a1==1){var bj=a2[a3[0]];var bi=a2[a3[1]];var a9=ba[0];return(bj+(bi-bj)*a9)|0;}else{if(a1==2){var bj=a2[a3[0]];var bi=a2[a3[1]];var a0=a2[a3[2]];var aZ=a2[a3[3]];var a9=ba[0];var a8=ba[1];var br=(bj+(bi-bj)*a9)|0;var bq=(a0+(aZ-a0)*a9)|0;return(br+(bq-br)*a8)|0;}else{if(a1==3){var aP=a2[a3[0]];var aO=a2[a3[1]];var bn=a2[a3[2]];var bm=a2[a3[3]];var aK=a2[a3[4]];var aJ=a2[a3[5]];var bg=a2[a3[6]];var bf=a2[a3[7]];var a9=ba[0];var a8=ba[1];var a6=ba[2];var bj=(aP+(aO-aP)*a9)|0;var bi=(bn+(bm-bn)*a9)|0;var a0=(aK+(aJ-aK)*a9)|0;var aZ=(bg+(bf-bg)*a9)|0;var br=(bj+(bi-bj)*a8)|0;var bq=(a0+(aZ-a0)*a8)|0;return(br+(bq-br)*a6)|0;}else{if(a1==4){var aT=a2[a3[0]];var aS=a2[a3[1]];var bu=a2[a3[2]];var bt=a2[a3[3]];var aN=a2[a3[4]];var aM=a2[a3[5]];var bl=a2[a3[6]];var bk=a2[a3[7]];var be=a2[a3[8]];var bc=a2[a3[9]];var aX=a2[a3[10]];var aW=a2[a3[11]];var a7=a2[a3[12]];var a5=a2[a3[13]];var aR=a2[a3[14]];var aQ=a2[a3[15]];var a9=ba[0];var a8=ba[1];var a6=ba[2];var a4=ba[3];var aP=(aT+(aS-aT)*a9)|0;var aO=(bu+(bt-bu)*a9)|0;var bn=(aN+(aM-aN)*a9)|0;var bm=(bl+(bk-bl)*a9)|0;var aK=(be+(bc-be)*a9)|0;var aJ=(aX+(aW-aX)*a9)|0;var bg=(a7+(a5-a7)*a9)|0;var bf=(aR+(aQ-aR)*a9)|0;var bj=(aP+(aO-aP)*a8)|0;var bi=(bn+(bm-bn)*a8)|0;var a0=(aK+(aJ-aK)*a8)|0;var aZ=(bg+(bf-bg)*a8)|0;var br=(bj+(bi-bj)*a6)|0;var bq=(a0+(aZ-a0)*a6)|0;return(br+(bq-br)*a4)|0;}else{var aV=1<=ay._$T7){this.clipID=aH._$nP();this.clipIDList=this.convertClipIDForV2_11(this.clipID);}else{this.clipIDList=[];}this._$MS(this._$Lb);};ae.prototype.getClipIDList=function(){return this.clipIDList;};ae.prototype.init=function(aH){};ae.prototype._$Nr=function(aH,aI){aI._$IS[0]=false;aI._$Us=aG._$Z2(aH,this._$GS,aI._$IS,this._$Lb);if(Q._$Zs){}else{if(aI._$IS[0]){return;}}aI._$7s=aG._$br(aH,this._$GS,aI._$IS,this._$mS);};ae.prototype._$2b=function(aH,aI){};ae.prototype.getDrawDataID=function(){return this._$gP;};ae.prototype._$j2=function(aH){this._$gP=aH;};ae.prototype.getOpacity=function(aH,aI){return aI._$7s;};ae.prototype._$zS=function(aH,aI){return aI._$Us;};ae.prototype._$MS=function(aJ){for(var aI=aJ.length-1;aI>=0;--aI){var aH=aJ[aI];if(aHae._$R2){ae._$R2=aH;}}}};ae.prototype.getTargetBaseDataID=function(){return this._$dr;};ae.prototype._$gs=function(aH){this._$dr=aH;};ae.prototype._$32=function(){return(this._$dr!=null&&(this._$dr!=n._$2o()));};ae.prototype.preDraw=function(aJ,aH,aI){};ae.prototype.draw=function(aJ,aH,aI){};ae.prototype.getType=function(){};ae.prototype._$B2=function(aI,aH,aJ){};function ax(){if(j){return;}this._$Eb=ax._$ps;this._$lT=1;this._$C0=1;this._$tT=1;this._$WL=1;this.culling=false;this.matrix4x4=new Float32Array(16);this.premultipliedAlpha=false;this.anisotropy=0;this.clippingProcess=ax.CLIPPING_PROCESS_NONE;this.clipBufPre_clipContextMask=null;this.clipBufPre_clipContextDraw=null;this.CHANNEL_COLORS=new Array();}ax._$ps=32;ax.CLIPPING_PROCESS_NONE=0;ax.CLIPPING_PROCESS_OVERWRITE_ALPHA=1;ax.CLIPPING_PROCESS_MULTIPLY_ALPHA=2;ax.CLIPPING_PROCESS_DRAW=3;ax.CLIPPING_PROCESS_CLEAR_ALPHA=4;ax.prototype.setChannelFlagAsColor=function(aH,aI){this.CHANNEL_COLORS[aH]=aI;};ax.prototype.getChannelFlagAsColor=function(aH){return this.CHANNEL_COLORS[aH];};ax.prototype._$ZT=function(){};ax.prototype._$Uo=function(aM,aK,aJ,aL,aN,aI,aH){};ax.prototype._$Rs=function(){return -1;};ax.prototype._$Ds=function(aH){};ax.prototype.setBaseColor=function(aK,aJ,aI,aH){if(aK<0){aK=0;}else{if(aK>1){aK=1;}}if(aJ<0){aJ=0;}else{if(aJ>1){aJ=1;}}if(aI<0){aI=0;}else{if(aI>1){aI=1;}}if(aH<0){aH=0;}else{if(aH>1){aH=1;}}this._$lT=aK;this._$C0=aJ;this._$tT=aI;this._$WL=aH;};ax.prototype._$WP=function(aH){this.culling=aH;};ax.prototype.setMatrix=function(aH){for(var aI=0;aI<16;aI++){this.matrix4x4[aI]=aH[aI];}};ax.prototype._$IT=function(){return this.matrix4x4;};ax.prototype.setPremultipliedAlpha=function(aH){this.premultipliedAlpha=aH;};ax.prototype.isPremultipliedAlpha=function(){return this.premultipliedAlpha;};ax.prototype.setAnisotropy=function(aH){this.anisotropy=aH;};ax.prototype.getAnisotropy=function(){return this.anisotropy;};ax.prototype.getClippingProcess=function(){return this.clippingProcess;};ax.prototype.setClippingProcess=function(aH){this.clippingProcess=aH;};ax.prototype.setClipBufPre_clipContextForMask=function(aH){this.clipBufPre_clipContextMask=aH;};ax.prototype.getClipBufPre_clipContextMask=function(){return this.clipBufPre_clipContextMask;};ax.prototype.setClipBufPre_clipContextForDraw=function(aH){this.clipBufPre_clipContextDraw=aH;};ax.prototype.getClipBufPre_clipContextDraw=function(){return this.clipBufPre_clipContextDraw;};function o(){if(j){return;}this.a=1;this.r=1;this.g=1;this.b=1;this.scale=1;this._$ho=1;this.blendMode=Q.L2D_COLOR_BLEND_MODE_MULT;}function c(){if(j){return;}this._$kP=null;this._$dr=null;this._$Ai=true;this._$mS=null;}c._$ur=-2;c._$c2=1;c._$_b=2;c.prototype._$F0=function(aH){this._$kP=aH._$nP();this._$dr=aH._$nP();};c.prototype.readV2_opacity=function(aH){if(aH.getFormatVersion()>=ay.LIVE2D_FORMAT_VERSION_V2_10_SDK2){this._$mS=aH._$Tb();}};c.prototype.init=function(aH){};c.prototype._$Nr=function(aI,aH){};c.prototype.interpolateOpacity=function(aJ,aK,aI,aH){if(this._$mS==null){aI.setInterpolatedOpacity(1);}else{aI.setInterpolatedOpacity(aG._$br(aJ,aK,aH,this._$mS));}};c.prototype._$2b=function(aI,aH){};c.prototype._$nb=function(aL,aK,aM,aH,aI,aJ,aN){};c.prototype.getType=function(){};c.prototype._$gs=function(aH){this._$dr=aH;};c.prototype._$a2=function(aH){this._$kP=aH;};c.prototype.getTargetBaseDataID=function(){return this._$dr;};c.prototype.getBaseDataID=function(){return this._$kP;};c.prototype._$32=function(){return(this._$dr!=null&&(this._$dr!=n._$2o()));};function P(){}P._$W2=0;P._$CS=P._$W2;P._$Mo=function(){return true;};P._$XP=function(aI){try{var aJ=getTimeMSec();while(getTimeMSec()-aJ=aJ.length){return false;}for(var aI=aL;aI=0;--aJ){var aI=this._$Ob[aJ].getParamIndex(aH);if(aI==aA._$ds){aI=aK.getParamIndex(this._$Ob[aJ].getParamID());}if(aK._$Xb(aI)){return true;}}return false;};g.prototype._$Q2=function(aL,aV){var aX=this._$Ob.length;var aJ=aL._$v2();var aN=0;var aI;var aQ;for(var aK=0;aKaw._$Qb){__NONECONSOLE.log("err 23245\\n");}var aS=this._$Ob.length;var aK=1;var aH=1;var aJ=0;for(var aQ=0;aQ=0;--aK){aM[aK]=aL[aK];}}else{this.mult_fast(aI,aH,aM,aJ);}};ac.prototype.mult_fast=function(aI,aH,aK,aJ){if(aJ){aK[0]=aI[0]*aH[0]+aI[4]*aH[1]+aI[8]*aH[2];aK[4]=aI[0]*aH[4]+aI[4]*aH[5]+aI[8]*aH[6];aK[8]=aI[0]*aH[8]+aI[4]*aH[9]+aI[8]*aH[10];aK[12]=aI[0]*aH[12]+aI[4]*aH[13]+aI[8]*aH[14]+aI[12];aK[1]=aI[1]*aH[0]+aI[5]*aH[1]+aI[9]*aH[2];aK[5]=aI[1]*aH[4]+aI[5]*aH[5]+aI[9]*aH[6];aK[9]=aI[1]*aH[8]+aI[5]*aH[9]+aI[9]*aH[10];aK[13]=aI[1]*aH[12]+aI[5]*aH[13]+aI[9]*aH[14]+aI[13];aK[2]=aI[2]*aH[0]+aI[6]*aH[1]+aI[10]*aH[2];aK[6]=aI[2]*aH[4]+aI[6]*aH[5]+aI[10]*aH[6];aK[10]=aI[2]*aH[8]+aI[6]*aH[9]+aI[10]*aH[10];aK[14]=aI[2]*aH[12]+aI[6]*aH[13]+aI[10]*aH[14]+aI[14];aK[3]=aK[7]=aK[11]=0;aK[15]=1;}else{aK[0]=aI[0]*aH[0]+aI[4]*aH[1]+aI[8]*aH[2]+aI[12]*aH[3];aK[4]=aI[0]*aH[4]+aI[4]*aH[5]+aI[8]*aH[6]+aI[12]*aH[7];aK[8]=aI[0]*aH[8]+aI[4]*aH[9]+aI[8]*aH[10]+aI[12]*aH[11];aK[12]=aI[0]*aH[12]+aI[4]*aH[13]+aI[8]*aH[14]+aI[12]*aH[15];aK[1]=aI[1]*aH[0]+aI[5]*aH[1]+aI[9]*aH[2]+aI[13]*aH[3];aK[5]=aI[1]*aH[4]+aI[5]*aH[5]+aI[9]*aH[6]+aI[13]*aH[7];aK[9]=aI[1]*aH[8]+aI[5]*aH[9]+aI[9]*aH[10]+aI[13]*aH[11];aK[13]=aI[1]*aH[12]+aI[5]*aH[13]+aI[9]*aH[14]+aI[13]*aH[15];aK[2]=aI[2]*aH[0]+aI[6]*aH[1]+aI[10]*aH[2]+aI[14]*aH[3];aK[6]=aI[2]*aH[4]+aI[6]*aH[5]+aI[10]*aH[6]+aI[14]*aH[7];aK[10]=aI[2]*aH[8]+aI[6]*aH[9]+aI[10]*aH[10]+aI[14]*aH[11];aK[14]=aI[2]*aH[12]+aI[6]*aH[13]+aI[10]*aH[14]+aI[14]*aH[15];aK[3]=aI[3]*aH[0]+aI[7]*aH[1]+aI[11]*aH[2]+aI[15]*aH[3];aK[7]=aI[3]*aH[4]+aI[7]*aH[5]+aI[11]*aH[6]+aI[15]*aH[7];aK[11]=aI[3]*aH[8]+aI[7]*aH[9]+aI[11]*aH[10]+aI[15]*aH[11];aK[15]=aI[3]*aH[12]+aI[7]*aH[13]+aI[11]*aH[14]+aI[15]*aH[15];}};ac.prototype.translate=function(aH,aJ,aI){this.m[12]=this.m[0]*aH+this.m[4]*aJ+this.m[8]*aI+this.m[12];this.m[13]=this.m[1]*aH+this.m[5]*aJ+this.m[9]*aI+this.m[13];this.m[14]=this.m[2]*aH+this.m[6]*aJ+this.m[10]*aI+this.m[14];this.m[15]=this.m[3]*aH+this.m[7]*aJ+this.m[11]*aI+this.m[15];};ac.prototype.scale=function(aJ,aI,aH){this.m[0]*=aJ;this.m[4]*=aI;this.m[8]*=aH;this.m[1]*=aJ;this.m[5]*=aI;this.m[9]*=aH;this.m[2]*=aJ;this.m[6]*=aI;this.m[10]*=aH;this.m[3]*=aJ;this.m[7]*=aI;this.m[11]*=aH;};ac.prototype.rotateX=function(aH){var aK=aC.fcos(aH);var aJ=aC._$9(aH);var aI=this.m[4];this.m[4]=aI*aK+this.m[8]*aJ;this.m[8]=aI*-aJ+this.m[8]*aK;aI=this.m[5];this.m[5]=aI*aK+this.m[9]*aJ;this.m[9]=aI*-aJ+this.m[9]*aK;aI=this.m[6];this.m[6]=aI*aK+this.m[10]*aJ;this.m[10]=aI*-aJ+this.m[10]*aK;aI=this.m[7];this.m[7]=aI*aK+this.m[11]*aJ;this.m[11]=aI*-aJ+this.m[11]*aK;};ac.prototype.rotateY=function(aH){var aK=aC.fcos(aH);var aJ=aC._$9(aH);var aI=this.m[0];this.m[0]=aI*aK+this.m[8]*-aJ;this.m[8]=aI*aJ+this.m[8]*aK;aI=this.m[1];this.m[1]=aI*aK+this.m[9]*-aJ;this.m[9]=aI*aJ+this.m[9]*aK;aI=m[2];this.m[2]=aI*aK+this.m[10]*-aJ;this.m[10]=aI*aJ+this.m[10]*aK;aI=m[3];this.m[3]=aI*aK+this.m[11]*-aJ;this.m[11]=aI*aJ+this.m[11]*aK;};ac.prototype.rotateZ=function(aH){var aK=aC.fcos(aH);var aJ=aC._$9(aH);var aI=this.m[0];this.m[0]=aI*aK+this.m[4]*aJ;this.m[4]=aI*-aJ+this.m[4]*aK;aI=this.m[1];this.m[1]=aI*aK+this.m[5]*aJ;this.m[5]=aI*-aJ+this.m[5]*aK;aI=this.m[2];this.m[2]=aI*aK+this.m[6]*aJ;this.m[6]=aI*-aJ+this.m[6]*aK;aI=this.m[3];this.m[3]=aI*aK+this.m[7]*aJ;this.m[7]=aI*-aJ+this.m[7]*aK;};function Z(aH){if(j){return;}ak.prototype.constructor.call(this,aH);}Z.prototype=new ak();Z._$tP=new Object();Z._$27=function(){Z._$tP.clear();};Z.getID=function(aH){var aI=Z._$tP[aH];if(aI==null){aI=new Z(aH);Z._$tP[aH]=aI;}return aI;};Z.prototype._$3s=function(){return new Z();};function aD(){if(j){return;}this._$7=1;this._$f=0;this._$H=0;this._$g=1;this._$k=0;this._$w=0;this._$hi=STATE_IDENTITY;this._$Z=_$pS;}aD._$kS=-1;aD._$pS=0;aD._$hb=1;aD.STATE_IDENTITY=0;aD._$gb=1;aD._$fo=2;aD._$go=4;aD.prototype.transform=function(aK,aI,aH){var aT,aS,aR,aM,aL,aJ;var aQ=0;var aN=0;switch(this._$hi){default:return;case (aD._$go|aD._$fo|aD._$gb):aT=this._$7;aS=this._$H;aR=this._$k;aM=this._$f;aL=this._$g;aJ=this._$w;while(--aH>=0){var aP=aK[aQ++];var aO=aK[aQ++];aI[aN++]=(aT*aP+aS*aO+aR);aI[aN++]=(aM*aP+aL*aO+aJ);}return;case (aD._$go|aD._$fo):aT=this._$7;aS=this._$H;aM=this._$f;aL=this._$g;while(--aH>=0){var aP=aK[aQ++];var aO=aK[aQ++];aI[aN++]=(aT*aP+aS*aO);aI[aN++]=(aM*aP+aL*aO);}return;case (aD._$go|aD._$gb):aS=this._$H;aR=this._$k;aM=this._$f;aJ=this._$w;while(--aH>=0){var aP=aK[aQ++];aI[aN++]=(aS*aK[aQ++]+aR);aI[aN++]=(aM*aP+aJ);}return;case (aD._$go):aS=this._$H;aM=this._$f;while(--aH>=0){var aP=aK[aQ++];aI[aN++]=(aS*aK[aQ++]);aI[aN++]=(aM*aP);}return;case (aD._$fo|aD._$gb):aT=this._$7;aR=this._$k;aL=this._$g;aJ=this._$w;while(--aH>=0){aI[aN++]=(aT*aK[aQ++]+aR);aI[aN++]=(aL*aK[aQ++]+aJ);}return;case (aD._$fo):aT=this._$7;aL=this._$g;while(--aH>=0){aI[aN++]=(aT*aK[aQ++]);aI[aN++]=(aL*aK[aQ++]);}return;case (aD._$gb):aR=this._$k;aJ=this._$w;while(--aH>=0){aI[aN++]=(aK[aQ++]+aR);aI[aN++]=(aK[aQ++]+aJ);}return;case (aD.STATE_IDENTITY):if(aK!=aI||aQ!=aN){P._$jT(aK,aQ,aI,aN,aH*2);}return;}};aD.prototype.update=function(){if(this._$H==0&&this._$f==0){if(this._$7==1&&this._$g==1){if(this._$k==0&&this._$w==0){this._$hi=aD.STATE_IDENTITY;this._$Z=aD._$pS;}else{this._$hi=aD._$gb;this._$Z=aD._$hb;}}else{if(this._$k==0&&this._$w==0){this._$hi=aD._$fo;this._$Z=aD._$kS;}else{this._$hi=(aD._$fo|aD._$gb);this._$Z=aD._$kS;}}}else{if(this._$7==0&&this._$g==0){if(this._$k==0&&this._$w==0){this._$hi=aD._$go;this._$Z=aD._$kS;}else{this._$hi=(aD._$go|aD._$gb);this._$Z=aD._$kS;}}else{if(this._$k==0&&this._$w==0){this._$hi=(aD._$go|aD._$fo);this._$Z=aD._$kS;}else{this._$hi=(aD._$go|aD._$fo|aD._$gb);this._$Z=aD._$kS;}}}};aD.prototype._$RT=function(aK){this._$IT(aK);var aJ=aK[0];var aH=aK[2];var aN=aK[1];var aM=aK[3];var aI=Math.sqrt(aJ*aJ+aN*aN);var aL=aJ*aM-aH*aN;if(aI==0){if(Q._$so){__NONECONSOLE.log("affine._$RT() / rt==0");}}else{aK[0]=aI;aK[1]=aL/aI;aK[2]=(aN*aM+aJ*aH)/aL;aK[3]=Math.atan2(aN,aJ);}};aD.prototype._$ho=function(aN,aM,aI,aH){var aL=new Float32Array(6);var aK=new Float32Array(6);aN._$RT(aL);aM._$RT(aK);var aJ=new Float32Array(6);aJ[0]=aL[0]+(aK[0]-aL[0])*aI;aJ[1]=aL[1]+(aK[1]-aL[1])*aI;aJ[2]=aL[2]+(aK[2]-aL[2])*aI;aJ[3]=aL[3]+(aK[3]-aL[3])*aI;aJ[4]=aL[4]+(aK[4]-aL[4])*aI;aJ[5]=aL[5]+(aK[5]-aL[5])*aI;aH._$CT(aJ);};aD.prototype._$CT=function(aJ){var aI=Math.cos(aJ[3]);var aH=Math.sin(aJ[3]);this._$7=aJ[0]*aI;this._$f=aJ[0]*aH;this._$H=aJ[1]*(aJ[2]*aI-aH);this._$g=aJ[1]*(aJ[2]*aH+aI);this._$k=aJ[4];this._$w=aJ[5];this.update();};aD.prototype._$IT=function(aH){aH[0]=this._$7;aH[1]=this._$f;aH[2]=this._$H;aH[3]=this._$g;aH[4]=this._$k;aH[5]=this._$w;};function Y(){if(j){return;}ah.prototype.constructor.call(this);this.motions=new Array();this._$7r=null;this._$7r=Y._$Co++;this._$D0=30;this._$yT=0;this._$E=true;this.loopFadeIn=true;this._$AS=-1;_$a0();}Y.prototype=new ah();Y._$cs="VISIBLE:";Y._$ar="LAYOUT:";Y._$Co=0;Y._$D2=[];Y._$1T=1;Y.loadMotion=function(aR){var aM=new Y();var aI=[0];var aP=aR.length;aM._$yT=0;for(var aJ=0;aJ=0){if(aK==aT+4&&aR[aT+1]=="f"&&aR[aT+2]=="p"&&aR[aT+3]=="s"){aO=true;}for(aJ=aK+1;aJ0){if(aO&&5=0){var aN=new t();if(G.startsWith(aR,aT,Y._$cs)){aN._$RP=t._$hs;aN._$4P=new String(aR,aT,aK-aT);}else{if(G.startsWith(aR,aT,Y._$ar)){aN._$4P=new String(aR,aT+7,aK-aT-7);if(G.startsWith(aR,aT+7,"ANCHOR_X")){aN._$RP=t._$xs;}else{if(G.startsWith(aR,aT+7,"ANCHOR_Y")){aN._$RP=t._$us;}else{if(G.startsWith(aR,aT+7,"SCALE_X")){aN._$RP=t._$qs;}else{if(G.startsWith(aR,aT+7,"SCALE_Y")){aN._$RP=t._$Ys;}else{if(G.startsWith(aR,aT+7,"X")){aN._$RP=t._$ws;}else{if(G.startsWith(aR,aT+7,"Y")){aN._$RP=t._$Ns;}}}}}}}else{aN._$RP=t._$Fr;aN._$4P=new String(aR,aT,aK-aT);}}aM.motions.push(aN);var aS=0;Y._$D2.clear();for(aJ=aK+1;aJ0){Y._$D2.push(aL);aS++;var aH=aI[0];if(aHaM._$yT){aM._$yT=aS;}}}}aM._$AS=((1000*aM._$yT)/aM._$D0)|0;return aM;};Y.prototype.getDurationMSec=function(){return this._$AS;};Y.prototype.dump=function(){for(var aJ=0;aJ=aK?aK-1:aJ)];aH.setParamFloat(aQ,aT);}else{if(t._$ws<=aS._$RP&&aS._$RP<=t._$Ys){}else{var aR=aH.getParamFloat(aQ);var aY=aS._$I0[(aJ>=aK?aK-1:aJ)];var aW=aS._$I0[(aJ+1>=aK?aK-1:aJ+1)];var aI=aY+(aW-aY)*aP;var aN=aR+(aI-aR)*aO;aH.setParamFloat(aQ,aN);}}}if(aJ>=this._$yT){if(this._$E){aX._$z2=aL;if(this.loopFadeIn){aX._$bs=aL;}}else{aX._$9L=true;}}};Y.prototype._$r0=function(){return this._$E;};Y.prototype._$aL=function(aH){this._$E=aH;};Y.prototype.isLoopFadeIn=function(){return this.loopFadeIn;};Y.prototype.setLoopFadeIn=function(aH){this.loopFadeIn=aH;};function aE(){this._$P=new Float32Array(100);this.size=0;}aE.prototype.clear=function(){this.size=0;};aE.prototype.add=function(aI){if(this._$P.length<=this.size){var aH=new Float32Array(this.size*2);P._$jT(this._$P,0,aH,0,this.size);this._$P=aH;}this._$P[this.size++]=aI;};aE.prototype._$BL=function(){var aH=new Float32Array(this.size);P._$jT(this._$P,0,aH,0,this.size);return aH;};function t(){this._$4P=null;this._$I0=null;this._$RP=null;}t._$Fr=0;t._$hs=1;t._$ws=100;t._$Ns=101;t._$xs=102;t._$us=103;t._$qs=104;t._$Ys=105;function aw(){}aw._$Ms=1;aw._$Qs=2;aw._$i2=0;aw._$No=2;aw._$do=aw._$Ms;aw._$Ls=true;aw._$1r=5;aw._$Qb=65;aw._$J=0.0001;aw._$FT=0.001;aw._$Ss=3;function ay(){}ay._$o7=6;ay._$S7=7;ay._$s7=8;ay._$77=9;ay.LIVE2D_FORMAT_VERSION_V2_10_SDK2=10;ay.LIVE2D_FORMAT_VERSION_V2_11_SDK2_1=11;ay._$T7=ay.LIVE2D_FORMAT_VERSION_V2_11_SDK2_1;ay._$Is=-2004318072;ay._$h0=0;ay._$4L=23;ay._$7P=33;ay._$uT=function(aH){__NONECONSOLE.log("_$bo :: _$6 _$mo _$E0 : %d\\n",aH);};ay._$9o=function(aH){if(aH<40){ay._$uT(aH);return null;}else{if(aH<50){ay._$uT(aH);return null;}else{if(aH<60){ay._$uT(aH);return null;}else{if(aH<100){switch(aH){case 65:return new E();case 66:return new g();case 67:return new aA();case 68:return new ab();case 69:return new X();case 70:return new b();default:ay._$uT(aH);return null;}}else{if(aH<150){switch(aH){case 131:return new f();case 133:return new s();case 136:return new w();case 137:return new an();case 142:return new aq();}}}}}}ay._$uT(aH);return null;};function y(aH){if(j){return;}this._$QT=true;this._$co=-1;this._$qo=0;this._$pb=new Array(y._$is);this._$_2=new Float32Array(y._$is);this._$vr=new Float32Array(y._$is);this._$Rr=new Float32Array(y._$is);this._$Or=new Float32Array(y._$is);this._$fs=new Float32Array(y._$is);this._$Js=new Array(y._$is);this._$3S=new Array();this._$aS=new Array();this._$Bo=null;this._$F2=new Array();this._$db=new Array();this._$8b=new Array();this._$Hr=new Array();this._$Ws=null;this._$Vs=null;this._$Er=null;this._$Es=new Int16Array(aw._$Qb);this._$ZP=new Float32Array(aw._$1r*2);this._$Ri=aH;this._$b0=y._$HP++;this.clipManager=null;this.dp_webgl=null;}y._$HP=0;y._$_0=true;y._$V2=-1;y._$W0=-1;y._$jr=false;y._$ZS=true;y._$tr=(-1000000);y._$lr=(1000000);y._$is=32;y._$e=false;y.prototype.getDrawDataIndex=function(aI){for(var aH=this._$aS.length-1;aH>=0;--aH){if(this._$aS[aH]!=null&&this._$aS[aH].getDrawDataID()==aI){return aH;}}return -1;};y.prototype.getDrawData=function(aH){if(aH instanceof Z){if(this._$Bo==null){this._$Bo=new Object();var aJ=this._$aS.length;for(var aI=0;aI0){this.release();}var aO=this._$Ri.getModelImpl();var aT=aO._$Xr();var aS=aT.length;var aH=new Array();var a3=new Array();for(var aV=0;aV=0){this._$3S.push(aL);this._$db.push(a3[aV]);aH[aV]=null;aX=true;}}if(!aX){break;}}var aI=aO._$E2();if(aI!=null){var aJ=aI._$1s();if(aJ!=null){var aW=aJ.length;for(var aV=0;aV=0;aW--){this._$Js[aW]=y._$jr;}this._$QT=false;if(y._$e){q.dump("_$eL");}return aX;};y.prototype.preDraw=function(aH){if(this.clipManager!=null){aH._$ZT();this.clipManager.setupClip(this,aH);}};y.prototype.draw=function(aM){if(this._$Ws==null){q._$li("call _$Ri.update() before _$Ri.draw() ");return;}var aP=this._$Ws.length;aM._$ZT();for(var aK=0;aK=0;--aI){if(this._$pb[aI]==aH){return aI;}}return this._$02(aH,0,y._$tr,y._$lr);};y.prototype._$BS=function(aH){return this.getBaseDataIndex(aH);};y.prototype.getBaseDataIndex=function(aH){for(var aI=this._$3S.length-1;aI>=0;--aI){if(this._$3S[aI]!=null&&this._$3S[aI].getBaseDataID()==aH){return aI;}}return -1;};y.prototype._$UT=function(aJ,aH){var aI=new Float32Array(aH);P._$jT(aJ,0,aI,0,aJ.length);return aI;};y.prototype._$02=function(aN,aM,aL,aH){if(this._$qo>=this._$pb.length){var aK=this._$pb.length;var aJ=new Array(aK*2);P._$jT(this._$pb,0,aJ,0,aK);this._$pb=aJ;this._$_2=this._$UT(this._$_2,aK*2);this._$vr=this._$UT(this._$vr,aK*2);this._$Rr=this._$UT(this._$Rr,aK*2);this._$Or=this._$UT(this._$Or,aK*2);var aI=new Array();P._$jT(this._$Js,0,aI,0,aK);this._$Js=aI;}this._$pb[this._$qo]=aN;this._$_2[this._$qo]=aM;this._$vr[this._$qo]=aM;this._$Rr[this._$qo]=aL;this._$Or[this._$qo]=aH;this._$Js[this._$qo]=y._$ZS;return this._$qo++;};y.prototype._$Zo=function(aI,aH){this._$3S[aI]=aH;};y.prototype.setParamFloat=function(aH,aI){if(aIthis._$Or[aH]){aI=this._$Or[aH];}this._$_2[aH]=aI;};y.prototype.loadParam=function(){var aH=this._$_2.length;if(aH>this._$fs.length){aH=this._$fs.length;}P._$jT(this._$fs,0,this._$_2,0,aH);};y.prototype.saveParam=function(){var aH=this._$_2.length;if(aH>this._$fs.length){this._$fs=new Float32Array(aH);}P._$jT(this._$_2,0,this._$fs,0,aH);};y.prototype._$v2=function(){return this._$co;};y.prototype._$WS=function(){return this._$QT;};y.prototype._$Xb=function(aH){return this._$Js[aH]==y._$ZS;};y.prototype._$vs=function(){return this._$Es;};y.prototype._$Tr=function(){return this._$ZP;};y.prototype.getBaseData=function(aH){return this._$3S[aH];};y.prototype.getParamFloat=function(aH){return this._$_2[aH];};y.prototype.getParamMax=function(aH){return this._$Or[aH];};y.prototype.getParamMin=function(aH){return this._$Rr[aH];};y.prototype.setPartsOpacity=function(aJ,aH){var aI=this._$Hr[aJ];aI.setPartsOpacity(aH);};y.prototype.getPartsOpacity=function(aI){var aH=this._$Hr[aI];return aH.getPartsOpacity();};y.prototype.getPartsDataIndex=function(aI){for(var aH=this._$F2.length-1;aH>=0;--aH){if(this._$F2[aH]!=null&&this._$F2[aH]._$p2()==aI){return aH;}}return -1;};y.prototype._$q2=function(aH){return this._$db[aH];};y.prototype._$C2=function(aH){return this._$8b[aH];};y.prototype._$Bb=function(aH){return this._$Hr[aH];};y.prototype._$5s=function(aO,aK){var aJ=this._$Ws.length;var aN=aO;for(var aL=0;aL0){aL+=aK;}return aI;};ap._$C=function(aJ){var aI=null;var aL=null;try{aI=(aJ instanceof Array)?aJ:new _$Xs(aJ,8192);aL=new _$js();var aM=1000;var aK;var aH=new Int8Array(aM);while((aK=aI.read(aH))>0){aL.write(aH,0,aK);}return aL._$TS();}finally{if(aJ!=null){aJ.close();}if(aL!=null){aL.flush();aL.close();}}};function ar(){if(j){return;}this._$12=null;this._$bb=null;this._$_L=null;this._$jo=null;this._$iL=null;this._$0L=null;this._$Br=null;this._$Dr=null;this._$Cb=null;this._$mr=null;this._$_L=az.STATE_FIRST;this._$Br=4000;this._$Dr=100;this._$Cb=50;this._$mr=150;this._$jo=true;this._$iL="PARAM_EYE_L_OPEN";this._$0L="PARAM_EYE_R_OPEN";}ar.prototype._$T2=function(){var aI=P.getUserTimeMSec();var aH=Math._$10();return(aI+aH*(2*this._$Br-1));};ar.prototype._$uo=function(aH){this._$Br=aH;};ar.prototype._$QS=function(aI,aH,aJ){this._$Dr=aI;this._$Cb=aH;this._$mr=aJ;};ar.prototype._$7T=function(aI){var aK=P.getUserTimeMSec();var aH;var aJ=0;switch(this._$_L){case STATE_CLOSING:aJ=(aK-this._$bb)/this._$Dr;if(aJ>=1){aJ=1;this._$_L=az.STATE_CLOSED;this._$bb=aK;}aH=1-aJ;break;case STATE_CLOSED:aJ=(aK-this._$bb)/this._$Cb;if(aJ>=1){this._$_L=az.STATE_OPENING;this._$bb=aK;}aH=0;break;case STATE_OPENING:aJ=(aK-this._$bb)/this._$mr;if(aJ>=1){aJ=1;this._$_L=az.STATE_INTERVAL;this._$12=this._$T2();}aH=aJ;break;case STATE_INTERVAL:if(this._$120.9?Q.EXPAND_W:0;this.gl.drawElements(aL,aP,aI,aQ,aM,aN,this.transform,aJ);};x.prototype._$Rs=function(){throw new Error("_$Rs");};x.prototype._$Ds=function(aH){throw new Error("_$Ds");};x.prototype._$K2=function(){for(var aH=0;aH=0;--aI){var aH=aJ[aI];if(aHa._$R2){a._$R2=aH;}}}};a._$or=function(){return a._$52;};a._$Pr=function(){return a._$R2;};a.prototype._$F0=function(aH){this._$gP=aH._$nP();this._$dr=aH._$nP();this._$GS=aH._$nP();this._$qb=aH._$6L();this._$Lb=aH._$cS();this._$mS=aH._$Tb();if(aH.getFormatVersion()>=ay._$T7){this.clipID=aH._$nP();this.clipIDList=this.convertClipIDForV2_11(this.clipID);}else{this.clipIDList=null;}a._$Sb(this._$Lb);};a.prototype.getClipIDList=function(){return this.clipIDList;};a.prototype._$Nr=function(aI,aH){aH._$IS[0]=false;aH._$Us=aG._$Z2(aI,this._$GS,aH._$IS,this._$Lb);if(Q._$Zs){}else{if(aH._$IS[0]){return;}}aH._$7s=aG._$br(aI,this._$GS,aH._$IS,this._$mS);};a.prototype._$2b=function(aH){};a.prototype.getDrawDataID=function(){return this._$gP;};a.prototype._$j2=function(aH){this._$gP=aH;};a.prototype.getOpacity=function(aH,aI){return aI._$7s;};a.prototype._$zS=function(aH,aI){return aI._$Us;};a.prototype.getTargetBaseDataID=function(){return this._$dr;};a.prototype._$gs=function(aH){this._$dr=aH;};a.prototype._$32=function(){return(this._$dr!=null&&(this._$dr!=n._$2o()));};a.prototype.getType=function(){};function aq(){if(j){return;}this._$NL=null;this._$3S=null;this._$aS=null;aq._$42++;}aq._$42=0;aq.prototype._$1b=function(){return this._$3S;};aq.prototype.getDrawDataList=function(){return this._$aS;};aq.prototype._$F0=function(aH){this._$NL=aH._$nP();this._$aS=aH._$nP();this._$3S=aH._$nP();};aq.prototype._$kr=function(aH){aH._$Zo(this._$3S);aH._$xo(this._$aS);this._$3S=null;this._$aS=null;};function v(){if(j){return;}aa.prototype.constructor.call(this);this._$zo=new x();}v.prototype=new aa();v.loadModel=function(aI){var aH=new v();aa._$62(aH,aI);return aH;};v.loadModel=function(aI){var aH=new v();aa._$62(aH,aI);return aH;};v._$to=function(){var aH=new v();return aH;};v._$er=function(aM){var aJ=new _$5("../_$_r/_$t0/_$Ri/_$_P._$d");if(aJ.exists()==false){throw new _$ls("_$t0 _$_ _$6 _$Ui :: "+aJ._$PL());}var aH=["../_$_r/_$t0/_$Ri/_$_P.512/_$CP._$1","../_$_r/_$t0/_$Ri/_$_P.512/_$vP._$1","../_$_r/_$t0/_$Ri/_$_P.512/_$EP._$1","../_$_r/_$t0/_$Ri/_$_P.512/_$pP._$1"];var aK=v.loadModel(aJ._$3b());for(var aI=0;aI=0){if(aK==aV+4&&p(aT,aV+1)=="f"&&p(aT,aV+2)=="p"&&p(aT,aV+3)=="s"){aP=true;}for(aJ=aK+1;aJ0){if(aP&&5=0){var aO=new t();if(G.startsWith(aT,aV,ao._$cs)){aO._$RP=t._$hs;aO._$4P=G.createString(aT,aV,aK-aV);}else{if(G.startsWith(aT,aV,ao._$ar)){aO._$4P=G.createString(aT,aV+7,aK-aV-7);if(G.startsWith(aT,aV+7,"ANCHOR_X")){aO._$RP=t._$xs;}else{if(G.startsWith(aT,aV+7,"ANCHOR_Y")){aO._$RP=t._$us;}else{if(G.startsWith(aT,aV+7,"SCALE_X")){aO._$RP=t._$qs;}else{if(G.startsWith(aT,aV+7,"SCALE_Y")){aO._$RP=t._$Ys;}else{if(G.startsWith(aT,aV+7,"X")){aO._$RP=t._$ws;}else{if(G.startsWith(aT,aV+7,"Y")){aO._$RP=t._$Ns;}}}}}}}else{aO._$RP=t._$Fr;aO._$4P=G.createString(aT,aV,aK-aV);}}aN.motions.push(aO);var aU=0;var aR=[];for(aJ=aK+1;aJ0){aR.push(aM);aU++;var aH=aI[0];if(aHaN._$yT){aN._$yT=aU;}}}}aN._$rr=((1000*aN._$yT)/aN._$D0)|0;return aN;};ao.prototype.getDurationMSec=function(){return this._$E?-1:this._$rr;};ao.prototype.getLoopDurationMSec=function(){return this._$rr;};ao.prototype.dump=function(){for(var aJ=0;aJ=aL?aL-1:aK)];aJ.setParamFloat(aT,aX);}else{if(t._$ws<=aV._$RP&&aV._$RP<=t._$Ys){}else{var aH=aJ.getParamIndex(aT);var a4=aJ.getModelContext();var aY=a4.getParamMax(aH);var aW=a4.getParamMin(aH);var aM=0.4;var aS=aM*(aY-aW);var aU=a4.getParamFloat(aH);var a2=aV._$I0[(aK>=aL?aL-1:aK)];var a1=aV._$I0[(aK+1>=aL?aL-1:aK+1)];var aI;if((a2aS)||(a2>a1&&a2-a1>aS)){aI=a2;}else{aI=a2+(a1-a2)*aR;}var aP=aU+(aI-aU)*aQ;aJ.setParamFloat(aT,aP);}}}if(aK>=this._$yT){if(this._$E){a3._$z2=aN;if(this.loopFadeIn){a3._$bs=aN;}}else{a3._$9L=true;}}this._$eP=aQ;};ao.prototype._$r0=function(){return this._$E;};ao.prototype._$aL=function(aH){this._$E=aH;};ao.prototype._$S0=function(){return this._$D0;};ao.prototype._$U0=function(aH){this._$D0=aH;};ao.prototype.isLoopFadeIn=function(){return this.loopFadeIn;};ao.prototype.setLoopFadeIn=function(aH){this.loopFadeIn=aH;};function aE(){this._$P=new Float32Array(100);this.size=0;}aE.prototype.clear=function(){this.size=0;};aE.prototype.add=function(aI){if(this._$P.length<=this.size){var aH=new Float32Array(this.size*2);P._$jT(this._$P,0,aH,0,this.size);this._$P=aH;}this._$P[this.size++]=aI;};aE.prototype._$BL=function(){var aH=new Float32Array(this.size);P._$jT(this._$P,0,aH,0,this.size);return aH;};function t(){this._$4P=null;this._$I0=null;this._$RP=null;}t._$Fr=0;t._$hs=1;t._$ws=100;t._$Ns=101;t._$xs=102;t._$us=103;t._$qs=104;t._$Ys=105;function E(){if(j){return;}c.prototype.constructor.call(this);this._$o=0;this._$A=0;this._$GS=null;this._$Eo=null;}E.prototype=new c();E._$gT=new Array();E.prototype._$zP=function(){this._$GS=new g();this._$GS._$zP();};E.prototype._$F0=function(aH){c.prototype._$F0.call(this,aH);this._$A=aH._$6L();this._$o=aH._$6L();this._$GS=aH._$nP();this._$Eo=aH._$nP();c.prototype.readV2_opacity.call(this,aH);};E.prototype.init=function(aH){var aI=new H(this);var aJ=(this._$o+1)*(this._$A+1);if(aI._$Cr!=null){aI._$Cr=null;}aI._$Cr=new Float32Array(aJ*2);if(aI._$hr!=null){aI._$hr=null;}if(this._$32()){aI._$hr=new Float32Array(aJ*2);}else{aI._$hr=null;}return aI;};E.prototype._$Nr=function(aJ,aI){var aK=aI;if(!this._$GS._$Ur(aJ)){return;}var aL=this._$VT();var aH=E._$gT;aH[0]=false;aG._$Vr(aJ,this._$GS,aH,aL,this._$Eo,aK._$Cr,0,2);aI._$Ib(aH[0]);this.interpolateOpacity(aJ,this._$GS,aI,aH);};E.prototype._$2b=function(aK,aJ){var aL=aJ;aL._$hS(true);if(!this._$32()){aL.setTotalOpacity(aL.getInterpolatedOpacity());}else{var aH=this.getTargetBaseDataID();if(aL._$8r==c._$ur){aL._$8r=aK.getBaseDataIndex(aH);}if(aL._$8r<0){if(Q._$so){q._$li("_$L _$0P _$G :: %s",aH);}aL._$hS(false);}else{var aN=aK.getBaseData(aL._$8r);var aI=aK._$q2(aL._$8r);if(aN!=null&&aI._$yo()){var aM=aI.getTotalScale();aL.setTotalScale_notForClient(aM);var aO=aI.getTotalOpacity();aL.setTotalOpacity(aO*aL.getInterpolatedOpacity());aN._$nb(aK,aI,aL._$Cr,aL._$hr,this._$VT(),0,2);aL._$hS(true);}else{aL._$hS(false);}}}};E.prototype._$nb=function(aL,aI,aH,aM,aO,aK,aJ){if(true){var aN=aI;var aP=(aN._$hr!=null)?aN._$hr:aN._$Cr;E.transformPoints_sdk2(aH,aM,aO,aK,aJ,aP,this._$o,this._$A);}else{this.transformPoints_sdk1(aL,aI,aH,aM,aO,aK,aJ);}};E.transformPoints_sdk2=function(a0,bc,a5,aP,aI,aR,aQ,aU){var aW=a5*aI;var aV;var bn,bm;var aT=0;var aS=0;var bl=0;var bk=0;var bf=0;var be=0;var aZ=false;for(var ba=aP;ba=1){var aK=aR[((0)+(aU)*a1)*2];var aJ=aR[((0)+(aU)*a1)*2+1];var aO=aT-2*bl+1*bf;var aN=aS-2*bk+1*be;var a3=aT+3*bf;var a2=aS+3*be;var a8=aT-2*bl+3*bf;var a6=aS-2*bk+3*be;var bj=0.5*(a4-(-2));var bi=0.5*(aX-(1));if(bj+bi<=1){bc[ba]=aO+(aK-aO)*bj+(a8-aO)*bi;bc[ba+1]=aN+(aJ-aN)*bj+(a6-aN)*bi;}else{bc[ba]=a3+(a8-a3)*(1-bj)+(aK-a3)*(1-bi);bc[ba+1]=a2+(a6-a2)*(1-bj)+(aJ-a2)*(1-bi);}}else{var aH=(a7|0);if(aH==aU){aH=aU-1;}var bj=0.5*(a4-(-2));var bi=a7-aH;var bb=aH/aU;var a9=(aH+1)/aU;var aK=aR[((0)+(aH)*a1)*2];var aJ=aR[((0)+(aH)*a1)*2+1];var a3=aR[((0)+(aH+1)*a1)*2];var a2=aR[((0)+(aH+1)*a1)*2+1];var aO=aT-2*bl+bb*bf;var aN=aS-2*bk+bb*be;var a8=aT-2*bl+a9*bf;var a6=aS-2*bk+a9*be;if(bj+bi<=1){bc[ba]=aO+(aK-aO)*bj+(a8-aO)*bi;bc[ba+1]=aN+(aJ-aN)*bj+(a6-aN)*bi;}else{bc[ba]=a3+(a8-a3)*(1-bj)+(aK-a3)*(1-bi);bc[ba+1]=a2+(a6-a2)*(1-bj)+(aJ-a2)*(1-bi);}}}}else{if(1<=a4){if(aX<=0){var a8=aR[((aQ)+(0)*a1)*2];var a6=aR[((aQ)+(0)*a1)*2+1];var a3=aT+3*bl;var a2=aS+3*bk;var aO=aT+1*bl-2*bf;var aN=aS+1*bk-2*be;var aK=aT+3*bl-2*bf;var aJ=aS+3*bk-2*be;var bj=0.5*(a4-(1));var bi=0.5*(aX-(-2));if(bj+bi<=1){bc[ba]=aO+(aK-aO)*bj+(a8-aO)*bi;bc[ba+1]=aN+(aJ-aN)*bj+(a6-aN)*bi;}else{bc[ba]=a3+(a8-a3)*(1-bj)+(aK-a3)*(1-bi);bc[ba+1]=a2+(a6-a2)*(1-bj)+(aJ-a2)*(1-bi);}}else{if(aX>=1){var aO=aR[((aQ)+(aU)*a1)*2];var aN=aR[((aQ)+(aU)*a1)*2+1];var aK=aT+3*bl+1*bf;var aJ=aS+3*bk+1*be;var a8=aT+1*bl+3*bf;var a6=aS+1*bk+3*be;var a3=aT+3*bl+3*bf;var a2=aS+3*bk+3*be;var bj=0.5*(a4-(1));var bi=0.5*(aX-(1));if(bj+bi<=1){bc[ba]=aO+(aK-aO)*bj+(a8-aO)*bi;bc[ba+1]=aN+(aJ-aN)*bj+(a6-aN)*bi;}else{bc[ba]=a3+(a8-a3)*(1-bj)+(aK-a3)*(1-bi);bc[ba+1]=a2+(a6-a2)*(1-bj)+(aJ-a2)*(1-bi);}}else{var aH=(a7|0);if(aH==aU){aH=aU-1;}var bj=0.5*(a4-(1));var bi=a7-aH;var bb=aH/aU;var a9=(aH+1)/aU;var aO=aR[((aQ)+(aH)*a1)*2];var aN=aR[((aQ)+(aH)*a1)*2+1];var a8=aR[((aQ)+(aH+1)*a1)*2];var a6=aR[((aQ)+(aH+1)*a1)*2+1];var aK=aT+3*bl+bb*bf;var aJ=aS+3*bk+bb*be;var a3=aT+3*bl+a9*bf;var a2=aS+3*bk+a9*be;if(bj+bi<=1){bc[ba]=aO+(aK-aO)*bj+(a8-aO)*bi;bc[ba+1]=aN+(aJ-aN)*bj+(a6-aN)*bi;}else{bc[ba]=a3+(a8-a3)*(1-bj)+(aK-a3)*(1-bi);bc[ba+1]=a2+(a6-a2)*(1-bj)+(aJ-a2)*(1-bi);}}}}else{if(aX<=0){var aY=(bd|0);if(aY==aQ){aY=aQ-1;}var bj=bd-aY;var bi=0.5*(aX-(-2));var bp=aY/aQ;var bo=(aY+1)/aQ;var a8=aR[((aY)+(0)*a1)*2];var a6=aR[((aY)+(0)*a1)*2+1];var a3=aR[((aY+1)+(0)*a1)*2];var a2=aR[((aY+1)+(0)*a1)*2+1];var aO=aT+bp*bl-2*bf;var aN=aS+bp*bk-2*be;var aK=aT+bo*bl-2*bf;var aJ=aS+bo*bk-2*be;if(bj+bi<=1){bc[ba]=aO+(aK-aO)*bj+(a8-aO)*bi;bc[ba+1]=aN+(aJ-aN)*bj+(a6-aN)*bi;}else{bc[ba]=a3+(a8-a3)*(1-bj)+(aK-a3)*(1-bi);bc[ba+1]=a2+(a6-a2)*(1-bj)+(aJ-a2)*(1-bi);}}else{if(aX>=1){var aY=(bd|0);if(aY==aQ){aY=aQ-1;}var bj=bd-aY;var bi=0.5*(aX-(1));var bp=aY/aQ;var bo=(aY+1)/aQ;var aO=aR[((aY)+(aU)*a1)*2];var aN=aR[((aY)+(aU)*a1)*2+1];var aK=aR[((aY+1)+(aU)*a1)*2];var aJ=aR[((aY+1)+(aU)*a1)*2+1];var a8=aT+bp*bl+3*bf;var a6=aS+bp*bk+3*be;var a3=aT+bo*bl+3*bf;var a2=aS+bo*bk+3*be;if(bj+bi<=1){bc[ba]=aO+(aK-aO)*bj+(a8-aO)*bi;bc[ba+1]=aN+(aJ-aN)*bj+(a6-aN)*bi;}else{bc[ba]=a3+(a8-a3)*(1-bj)+(aK-a3)*(1-bi);bc[ba+1]=a2+(a6-a2)*(1-bj)+(aJ-a2)*(1-bi);}}else{System.err.printf("_$li calc : %.4f , %.4f @@BDBoxGrid\\n",a4,aX);}}}}}else{bc[ba]=aT+a4*bl+aX*bf;bc[ba+1]=aS+a4*bk+aX*be;}}else{bn=bd-(bd|0);bm=a7-(a7|0);aV=2*((bd|0)+((a7|0))*(aQ+1));if(bn+bm<1){bc[ba]=aR[aV]*(1-bn-bm)+aR[aV+2]*bn+aR[aV+2*(aQ+1)]*bm;bc[ba+1]=aR[aV+1]*(1-bn-bm)+aR[aV+3]*bn+aR[aV+2*(aQ+1)+1]*bm;}else{bc[ba]=aR[aV+2*(aQ+1)+2]*(bn-1+bm)+aR[aV+2*(aQ+1)]*(1-bn)+aR[aV+2]*(1-bm);bc[ba+1]=aR[aV+2*(aQ+1)+3]*(bn-1+bm)+aR[aV+2*(aQ+1)+1]*(1-bn)+aR[aV+3]*(1-bm);}}}};E.prototype.transformPoints_sdk1=function(aJ,aR,aL,a0,aU,aP,aZ){var aH=aR;var aO,aN;var aM=this._$o;var aQ=this._$A;var aI=aU*aZ;var aS,aY;var aV;var aX,aW;var aT=(aH._$hr!=null)?aH._$hr:aH._$Cr;for(var aK=aP;aK1){aO=1;}}if(aN<0){aN=0;}else{if(aN>1){aN=1;}}aO*=aM;aN*=aQ;aS=(aO|0);aY=(aN|0);if(aS>aM-1){aS=aM-1;}if(aY>aQ-1){aY=aQ-1;}aX=aO-aS;aW=aN-aY;aV=2*(aS+aY*(aM+1));}else{aO=aL[aK]*aM;aN=aL[aK+1]*aQ;aX=aO-(aO|0);aW=aN-(aN|0);aV=2*((aO|0)+(aN|0)*(aM+1));}if(aX+aW<1){a0[aK]=aT[aV]*(1-aX-aW)+aT[aV+2]*aX+aT[aV+2*(aM+1)]*aW;a0[aK+1]=aT[aV+1]*(1-aX-aW)+aT[aV+3]*aX+aT[aV+2*(aM+1)+1]*aW;}else{a0[aK]=aT[aV+2*(aM+1)+2]*(aX-1+aW)+aT[aV+2*(aM+1)]*(1-aX)+aT[aV+2]*(1-aW);a0[aK+1]=aT[aV+2*(aM+1)+3]*(aX-1+aW)+aT[aV+2*(aM+1)+1]*(1-aX)+aT[aV+3]*(1-aW);}}};E.prototype._$VT=function(){return(this._$o+1)*(this._$A+1);};E.prototype.getType=function(){return c._$_b;};function H(aH){B.prototype.constructor.call(this,aH);this._$8r=c._$ur;this._$Cr=null;this._$hr=null;}H.prototype=new B();function s(){if(j){return;}this.visible=true;this._$g0=false;this._$NL=null;this._$3S=null;this._$aS=null;s._$42++;}s._$42=0;s.prototype._$zP=function(){this._$3S=new Array();this._$aS=new Array();};s.prototype._$F0=function(aH){this._$g0=aH._$8L();this.visible=aH._$8L();this._$NL=aH._$nP();this._$3S=aH._$nP();this._$aS=aH._$nP();};s.prototype.init=function(aI){var aH=new aj(this);aH.setPartsOpacity(this.isVisible()?1:0);return aH;};s.prototype._$6o=function(aH){if(this._$3S==null){throw new Error("_$3S _$6 _$Wo@_$6o");}this._$3S.push(aH);};s.prototype._$3o=function(aH){if(this._$aS==null){throw new Error("_$aS _$6 _$Wo@_$3o");}this._$aS.push(aH);};s.prototype._$Zo=function(aH){this._$3S=aH;};s.prototype._$xo=function(aH){this._$aS=aH;};s.prototype.isVisible=function(){return this.visible;};s.prototype._$uL=function(){return this._$g0;};s.prototype._$KP=function(aH){this.visible=aH;};s.prototype._$ET=function(aH){this._$g0=aH;};s.prototype.getBaseData=function(){return this._$3S;};s.prototype.getDrawData=function(){return this._$aS;};s.prototype._$p2=function(){return this._$NL;};s.prototype._$ob=function(aH){this._$NL=aH;};s.prototype.getPartsID=function(){return this._$NL;};s.prototype._$MP=function(aH){this._$NL=aH;};function aj(aH){this._$VS=null;this._$e0=null;this._$e0=aH;}aj.prototype=new S();aj.prototype.getPartsOpacity=function(){return this._$VS;};aj.prototype.setPartsOpacity=function(aH){this._$VS=aH;};function ak(aH){if(j){return;}this.id=aH;}ak._$L7=function(){z._$27();n._$27();Z._$27();i._$27();};ak.prototype.toString=function(){return this.id;};function D(){}D.prototype._$F0=function(aH){};function an(){if(j){return;}this._$4S=null;}an.prototype._$1s=function(){return this._$4S;};an.prototype._$zP=function(){this._$4S=new Array();};an.prototype._$F0=function(aH){this._$4S=aH._$nP();};an.prototype._$Ks=function(aH){this._$4S.push(aH);};function au(aH,aI){this.canvas=aH;this.context=aI;this.viewport=new Array(0,0,aH.width,aH.height);this._$6r=1;this._$xP=0;this._$3r=1;this._$uP=0;this._$Qo=-1;this.cacheImages={};}au.tr=new am();au._$50=new am();au._$Ti=new Array(0,0);au._$Pi=new Array(0,0);au._$B=new Array(0,0);au.prototype._$lP=function(aI,aK,aJ,aH){this.viewport=new Array(aI,aK,aJ,aH);};au.prototype._$bL=function(){this.context.save();var aH=this.viewport;if(aH!=null){this.context.beginPath();this.context._$Li(aH[0],aH[1],aH[2],aH[3]);this.context.clip();}};au.prototype._$ei=function(){this.context.restore();};au.prototype.drawElements=function(bc,bm,aX,aJ,bA,aM,bl,bz){try{if(bA!=this._$Qo){this._$Qo=bA;this.context.globalAlpha=bA;}var a2=bm.length;var aP=bc.width;var a5=bc.height;var bE=this.context;var a7=this._$xP;var a6=this._$uP;var a1=this._$6r;var aZ=this._$3r;var bD=au.tr;var aI=au._$Ti;var aH=au._$Pi;var bu=au._$B;for(var by=0;by0.02){au.expandClip(aK,aJ,aV,aI,aO,aN,aH,aW,aS,aR);}else{au.clipWithTransform(aK,null,aM,aL,aU,aT,aQ,aP);}};au.expandClip=function(aV,bg,aK,a3,aJ,aI,be,ba,aZ,aX){var aP=be-aJ;var aO=ba-aI;var bi=aZ-aJ;var bh=aX-aI;var bj=aP*bh-aO*bi>0?aK:-aK;var aL=-aO;var aH=aP;var bc=aZ-be;var a8=aX-ba;var a7=-a8;var a6=bc;var aQ=Math.sqrt(bc*bc+a8*a8);var bf=-bh;var bb=bi;var a2=Math.sqrt(bi*bi+bh*bh);var bd=aJ-bj*aL/a3;var a9=aI-bj*aH/a3;var aY=be-bj*aL/a3;var aW=ba-bj*aH/a3;var a5=be-bj*a7/aQ;var a4=ba-bj*a6/aQ;var aS=aZ-bj*a7/aQ;var aR=aX-bj*a6/aQ;var aN=aJ+bj*bf/a2;var aM=aI+bj*bb/a2;var a1=aZ+bj*bf/a2;var a0=aX+bj*bb/a2;var aU=au._$50;var aT=bg._$P2(aU);if(aT==null){return false;}au.clipWithTransform(aV,aU,bd,a9,aY,aW,a5,a4,aS,aR,a1,a0,aN,aM);return true;};au.clipWithTransform=function(aH,aI,aS,aN,aQ,aK,aP,aJ){if(arguments.length<(1+3*2)){q._$li("err : @LDGL.clip()");return;}if(!(arguments[1] instanceof am)){q._$li("err : a[0] is _$6 LDTransform @LDGL.clip()");return;}var aM=au._$B;var aO=aI;var aR=arguments;aH.beginPath();if(aO){aO._$PS(aR[2],aR[3],aM);aH.moveTo(aM[0],aM[1]);for(var aL=4;aL1){return 1;}}return(0.5-0.5*Math.cos(aH*aC.PI_F));};function J(aH){if(j){return;}this._$ib=aH;}J._$fr=-1;J.prototype.toString=function(){return this._$ib;};function b(){if(j){return;}a.prototype.constructor.call(this);this._$LP=-1;this._$d0=0;this._$Yo=0;this._$JP=null;this._$5P=null;this._$BP=null;this._$Eo=null;this._$Qi=null;this._$6s=b._$ms;this.culling=true;this.gl_cacheImage=null;this.instanceNo=b._$42++;}b.prototype=new a();b._$42=0;b._$Os=30;b._$ms=0;b._$ns=1;b._$_s=2;b._$gT=new Array();b.prototype._$_S=function(aH){this._$LP=aH;};b.prototype.getTextureNo=function(){return this._$LP;};b.prototype._$ZL=function(){return this._$Qi;};b.prototype._$H2=function(){return this._$JP;};b.prototype.getNumPoints=function(){return this._$d0;};b.prototype.getType=function(){return a._$wb;};b.prototype._$B2=function(aL,aH,aO){var aM=aH;var aN=(aM._$hr!=null)?aM._$hr:aM._$Cr;var aK=aw._$do;switch(aK){default:case aw._$Ms:throw new Error("_$L _$ro ");case aw._$Qs:for(var aJ=this._$d0-1;aJ>=0;--aJ){var aI=aJ*aw._$No;aN[aI+4]=aO;}break;}};b.prototype._$zP=function(){this._$GS=new g();this._$GS._$zP();};b.prototype._$F0=function(aK){a.prototype._$F0.call(this,aK);this._$LP=aK._$6L();this._$d0=aK._$6L();this._$Yo=aK._$6L();var aH=aK._$nP();this._$BP=new Int16Array(this._$Yo*3);for(var aJ=this._$Yo*3-1;aJ>=0;--aJ){this._$BP[aJ]=aH[aJ];}this._$Eo=aK._$nP();this._$Qi=aK._$nP();if(aK.getFormatVersion()>=ay._$s7){this._$JP=aK._$6L();if(this._$JP!=0){if((this._$JP&1)!=0){var aI=aK._$6L();if(this._$5P==null){this._$5P=new Object();}this._$5P._$Hb=parseInt(aI);}if((this._$JP&b._$Os)!=0){this._$6s=(this._$JP&b._$Os)>>1;}else{this._$6s=b._$ms;}if((this._$JP&32)!=0){this.culling=false;}}}else{this._$JP=0;}};b.prototype.init=function(aL){var aN=new ag(this);var aI=this._$d0*aw._$No;var aH=this._$32();if(aN._$Cr!=null){aN._$Cr=null;}aN._$Cr=new Float32Array(aI);if(aN._$hr!=null){aN._$hr=null;}aN._$hr=aH?new Float32Array(aI):null;var aM=aw._$do;switch(aM){default:case aw._$Ms:if(aw._$Ls){for(var aJ=this._$d0-1;aJ>=0;--aJ){var aO=aJ<<1;this._$Qi[aO+1]=1-this._$Qi[aO+1];}}break;case aw._$Qs:for(var aJ=this._$d0-1;aJ>=0;--aJ){var aO=aJ<<1;var aK=aJ*aw._$No;var aQ=this._$Qi[aO];var aP=this._$Qi[aO+1];aN._$Cr[aK]=aQ;aN._$Cr[aK+1]=aP;aN._$Cr[aK+4]=0;if(aH){aN._$hr[aK]=aQ;aN._$hr[aK+1]=aP;aN._$hr[aK+4]=0;}}break;}return aN;};b.prototype._$Nr=function(aJ,aH){var aK=aH;if(!((this==aK._$GT()))){__NONECONSOLE.log("### assert!! ### ");}if(!this._$GS._$Ur(aJ)){return;}a.prototype._$Nr.call(this,aJ,aK);if(aK._$IS[0]){return;}var aI=b._$gT;aI[0]=false;aG._$Vr(aJ,this._$GS,aI,this._$d0,this._$Eo,aK._$Cr,aw._$i2,aw._$No);};b.prototype._$2b=function(aK,aI){try{if(!((this==aI._$GT()))){__NONECONSOLE.log("### assert!! ### ");}var aL=false;if(aI._$IS[0]){aL=true;}var aM=aI;if(!aL){a.prototype._$2b.call(this,aK);if(this._$32()){var aH=this.getTargetBaseDataID();if(aM._$8r==a._$ur){aM._$8r=aK.getBaseDataIndex(aH);}if(aM._$8r<0){if(Q._$so){q._$li("_$L _$0P _$G :: %s",aH);}}else{var aO=aK.getBaseData(aM._$8r);var aJ=aK._$q2(aM._$8r);if(aO!=null&&!aJ._$x2()){aO._$nb(aK,aJ,aM._$Cr,aM._$hr,this._$d0,aw._$i2,aw._$No);aM._$AT=true;}else{aM._$AT=false;}aM.baseOpacity=aJ.getTotalOpacity();}}}}catch(aN){throw aN;}};b.prototype.draw=function(aN,aK,aI){if(!((this==aI._$GT()))){__NONECONSOLE.log("### assert!! ### ");}if(aI._$IS[0]){return;}var aL=aI;var aJ=this._$LP;if(aJ<0){aJ=1;}var aH=this.getOpacity(aK,aL)*aI._$VS*aI.baseOpacity;var aM=(aL._$hr!=null)?aL._$hr:aL._$Cr;aN.setClipBufPre_clipContextForDraw(aI.clipBufPre_clipContext);aN._$WP(this.culling);aN._$Uo(aJ,3*this._$Yo,this._$BP,aM,this._$Qi,aH,this._$6s,aL);};b.prototype.dump=function(){__NONECONSOLE.log(" _$yi( %d ) , _$d0( %d ) , _$Yo( %d ) \\n",this._$LP,this._$d0,this._$Yo);__NONECONSOLE.log(" _$Oi _$di = { ");for(var aJ=0;aJstartMotion() / start _$K _$3 (m%d)\\n",aH,aL._$sr);}}if(aJ==null){return -1;}aL=new M();aL._$w0=aJ;this.motions.push(aL);var aN=aL._$sr;if(this._$eb){q._$Ji("MotionQueueManager[size:%2d]->startMotion() / new _$w0 (m%d)\\n",aH,aN);}return aN;};V.prototype.updateParam=function(aJ){try{var aI=false;for(var aK=0;aKupdateParam() / _$T0 _$w0 (m%d)\\n",this.motions.length-1,aL._$sr);}this.motions.splice(aK,1);aK--;}else{}}return aI;}catch(aM){q._$li(aM);return true;}};V.prototype.isFinished=function(aK){if(arguments.length>=1){for(var aI=0;aI0.9?Q.EXPAND_W:0;var a0=this.gl;if(this.gl==null){throw new Error("gl is null");}var a1=false;var aQ=1;var aP=1;var a3=1;var aZ=1;var aW=this._$C0*aP*aN;var a2=this._$tT*a3*aN;var a5=this._$WL*aZ*aN;var a7=this._$lT*aN;if(this.clipBufPre_clipContextMask!=null){a0.frontFace(a0.CCW);a0.useProgram(this.shaderProgram);this._$vS=T(a0,this._$vS,aU);this._$no=L(a0,this._$no,aL);a0.enableVertexAttribArray(this.a_position_Loc);a0.vertexAttribPointer(this.a_position_Loc,2,a0.FLOAT,false,0,0);this._$NT=T(a0,this._$NT,aV);a0.activeTexture(a0.TEXTURE1);a0.bindTexture(a0.TEXTURE_2D,this.textures[aS]);a0.uniform1i(this.s_texture0_Loc,1);a0.enableVertexAttribArray(this.a_texCoord_Loc);a0.vertexAttribPointer(this.a_texCoord_Loc,2,a0.FLOAT,false,0,0);a0.uniformMatrix4fv(this.u_matrix_Loc,false,this.getClipBufPre_clipContextMask().matrixForMask);var aY=this.getClipBufPre_clipContextMask().layoutChannelNo;var a4=this.getChannelFlagAsColor(aY);a0.uniform4f(this.u_channelFlag,a4.r,a4.g,a4.b,a4.a);var aI=this.getClipBufPre_clipContextMask().layoutBounds;a0.uniform4f(this.u_baseColor_Loc,aI.x*2-1,aI.y*2-1,aI._$EL()*2-1,aI._$5T()*2-1);a0.uniform1i(this.u_maskFlag_Loc,true);}else{a1=this.getClipBufPre_clipContextDraw()!=null;if(a1){a0.useProgram(this.shaderProgramOff);this._$vS=T(a0,this._$vS,aU);this._$no=L(a0,this._$no,aL);a0.enableVertexAttribArray(this.a_position_Loc_Off);a0.vertexAttribPointer(this.a_position_Loc_Off,2,a0.FLOAT,false,0,0);this._$NT=T(a0,this._$NT,aV);a0.activeTexture(a0.TEXTURE1);a0.bindTexture(a0.TEXTURE_2D,this.textures[aS]);a0.uniform1i(this.s_texture0_Loc_Off,1);a0.enableVertexAttribArray(this.a_texCoord_Loc_Off);a0.vertexAttribPointer(this.a_texCoord_Loc_Off,2,a0.FLOAT,false,0,0);a0.uniformMatrix4fv(this.u_clipMatrix_Loc_Off,false,this.getClipBufPre_clipContextDraw().matrixForDraw);a0.uniformMatrix4fv(this.u_matrix_Loc_Off,false,this.matrix4x4);a0.activeTexture(a0.TEXTURE2);a0.bindTexture(a0.TEXTURE_2D,Q.fTexture[this.glno]);a0.uniform1i(this.s_texture1_Loc_Off,2);var aY=this.getClipBufPre_clipContextDraw().layoutChannelNo;var a4=this.getChannelFlagAsColor(aY);a0.uniform4f(this.u_channelFlag_Loc_Off,a4.r,a4.g,a4.b,a4.a);a0.uniform4f(this.u_baseColor_Loc_Off,aW,a2,a5,a7);}else{a0.useProgram(this.shaderProgram);this._$vS=T(a0,this._$vS,aU);this._$no=L(a0,this._$no,aL);a0.enableVertexAttribArray(this.a_position_Loc);a0.vertexAttribPointer(this.a_position_Loc,2,a0.FLOAT,false,0,0);this._$NT=T(a0,this._$NT,aV);a0.activeTexture(a0.TEXTURE1);a0.bindTexture(a0.TEXTURE_2D,this.textures[aS]);a0.uniform1i(this.s_texture0_Loc,1);a0.enableVertexAttribArray(this.a_texCoord_Loc);a0.vertexAttribPointer(this.a_texCoord_Loc,2,a0.FLOAT,false,0,0);a0.uniformMatrix4fv(this.u_matrix_Loc,false,this.matrix4x4);a0.uniform4f(this.u_baseColor_Loc,aW,a2,a5,a7);a0.uniform1i(this.u_maskFlag_Loc,false);}}if(this.culling){this.gl.enable(a0.CULL_FACE);}else{this.gl.disable(a0.CULL_FACE);}this.gl.enable(a0.BLEND);var a6;var aX;var aR;var aK;if(this.clipBufPre_clipContextMask!=null){a6=a0.ONE;aX=a0.ONE_MINUS_SRC_ALPHA;aR=a0.ONE;aK=a0.ONE_MINUS_SRC_ALPHA;}else{switch(aM){case b._$ms:a6=a0.ONE;aX=a0.ONE_MINUS_SRC_ALPHA;aR=a0.ONE;aK=a0.ONE_MINUS_SRC_ALPHA;break;case b._$ns:a6=a0.ONE;aX=a0.ONE;aR=a0.ZERO;aK=a0.ONE;break;case b._$_s:a6=a0.DST_COLOR;aX=a0.ONE_MINUS_SRC_ALPHA;aR=a0.ZERO;aK=a0.ONE;break;}}a0.blendEquationSeparate(a0.FUNC_ADD,a0.FUNC_ADD);a0.blendFuncSeparate(a6,aX,aR,aK);if(this.anisotropyExt){a0.texParameteri(a0.TEXTURE_2D,this.anisotropyExt.TEXTURE_MAX_ANISOTROPY_EXT,this.maxAnisotropy);}var aJ=aL.length;a0.drawElements(a0.TRIANGLES,aJ,a0.UNSIGNED_SHORT,0);a0.bindTexture(a0.TEXTURE_2D,null);};function T(aJ,aH,aI){if(aH==null){aH=aJ.createBuffer();}aJ.bindBuffer(aJ.ARRAY_BUFFER,aH);aJ.bufferData(aJ.ARRAY_BUFFER,aI,aJ.DYNAMIC_DRAW);return aH;}function L(aJ,aH,aI){if(aH==null){aH=aJ.createBuffer();}aJ.bindBuffer(aJ.ELEMENT_ARRAY_BUFFER,aH);aJ.bufferData(aJ.ELEMENT_ARRAY_BUFFER,aI,aJ.DYNAMIC_DRAW);return aH;}C.prototype._$Rs=function(){throw new Error("_$Rs");};C.prototype._$Ds=function(aH){throw new Error("_$Ds");};C.prototype._$K2=function(){for(var aH=0;aH=48){var aL=ay._$9o(aN);if(aL!=null){aL._$F0(this);return aL;}else{return null;}}switch(aN){case 1:return this._$bT();case 10:var aM=this._$6L();return new I(aM,true);case 11:return new av(this._$mP(),this._$mP(),this._$mP(),this._$mP());case 12:return new av(this._$_T(),this._$_T(),this._$_T(),this._$_T());case 13:return new e(this._$mP(),this._$mP());case 14:return new e(this._$_T(),this._$_T());case 15:var aH=this._$3L();var aI=new Array(aH);for(var aJ=0;aJ>(7-this._$hL++))&1)==1;};K.prototype._$zT=function(){if(this._$hL!=0){this._$hL=0;}};function ai(){}ai.prototype._$wP=function(aM,aI,aK){for(var aL=0;aLMath.PI){aJ-=2*Math.PI;}return aJ;};aC._$9=function(aH){return Math.sin(aH);};aC.fcos=function(aH){return Math.cos(aH);};function aB(aH){if(j){return;}this._$e0=null;this._$IP=null;this._$Us=null;this._$7s=null;this._$IS=[false];this._$VS=null;this._$AT=true;this.baseOpacity=1;this.clipBufPre_clipContext=null;this._$e0=aH;}aB.prototype._$u2=function(){return this._$IS[0];};aB.prototype._$yo=function(){return this._$AT&&!this._$IS[0];};aB.prototype._$GT=function(){return this._$e0;};function r(){}r._$W2=0;r.SYSTEM_INFO=null;r.USER_AGENT=navigator.userAgent;r.isIPhone=function(){if(!r.SYSTEM_INFO){r.setup();}return r.SYSTEM_INFO._isIPhone;};r.isIOS=function(){if(!r.SYSTEM_INFO){r.setup();}return r.SYSTEM_INFO._isIPhone||r.SYSTEM_INFO._isIPad;};r.isAndroid=function(){if(!r.SYSTEM_INFO){r.setup();}return r.SYSTEM_INFO._isAndroid;};r.getOSVersion=function(){if(!r.SYSTEM_INFO){r.setup();}return r.SYSTEM_INFO.version;};r.getOS=function(){if(!r.SYSTEM_INFO){r.setup();}if(r.SYSTEM_INFO._isIPhone||r.SYSTEM_INFO._isIPad){return"iOS";}if(r.SYSTEM_INFO._isAndroid){return"Android";}else{return"_$Q0 OS";}};r.setup=function(){var aK=r.USER_AGENT;function aI(aO,aR){var aN=aO.substring(aR).split(/[ _,;.]/);var aQ=0;for(var aM=0;aM<=2;aM++){if(isNaN(aN[aM])){break;}var aP=parseInt(aN[aM]);if(aP<0||aP>999){q._$li("err : "+aP+" @UtHtml5.setup()");aQ=0;break;}aQ+=aP*Math.pow(1000,(2-aM));}return aQ;}var aL;var aH;var aJ=r.SYSTEM_INFO={userAgent:aK};if((aL=aK.indexOf("iPhone OS "))>=0){aJ.os="iPhone";aJ._isIPhone=true;aJ.version=aI(aK,aL+"iPhone OS ".length);}else{if((aL=aK.indexOf("iPad"))>=0){aL=aK.indexOf("CPU OS");if(aL<0){q._$li(" err : "+aK+" @UtHtml5.setup()");return;}aJ.os="iPad";aJ._isIPad=true;aJ.version=aI(aK,aL+"CPU OS ".length);}else{if((aL=aK.indexOf("Android"))>=0){aJ.os="Android";aJ._isAndroid=true;aJ.version=aI(aK,aL+"Android ".length);}else{aJ.os="-";aJ.version=-1;}}}};window.UtSystem=P;window.UtDebug=q;window.LDTransform=am;window.LDGL=au;window.Live2D=Q;window.Live2DModelWebGL=l;window.Live2DModelJS=v;window.Live2DMotion=ao;window.MotionQueueManager=V;window.PhysicsHair=u;window.AMotion=ah;window.PartsDataID=i;window.DrawDataID=Z;window.BaseDataID=n;window.ParamID=z;Q.init();var j=false;})(); +`;Kc.append(Bd);var hu;(function(a){var t,e=function(){function A(){}return A.getVersion=function(){return y.ccall("csmGetVersion","number",[],[])},A.getLatestMocVersion=function(){return y.ccall("csmGetLatestMocVersion","number",[],[])},A.getMocVersion=function(x,E){return y.ccall("csmGetMocVersion","number",["number","number"],[x,E])},A.getSizeofModel=function(x){return y.ccall("csmGetSizeofModel","number",["number"],[x])},A.reviveMocInPlace=function(x,E){return y.ccall("csmReviveMocInPlace","number",["number","number"],[x,E])},A.initializeModelInPlace=function(x,E,O){return y.ccall("csmInitializeModelInPlace","number",["number","number","number"],[x,E,O])},A.hasMocConsistency=function(x,E){return y.ccall("csmHasMocConsistency","number",["number","number"],[x,E])},A.getParameterCount=function(x){return y.ccall("csmGetParameterCount","number",["number"],[x])},A.getParameterIds=function(x){return y.ccall("csmGetParameterIds","number",["number"],[x])},A.getParameterMinimumValues=function(x){return y.ccall("csmGetParameterMinimumValues","number",["number"],[x])},A.getParameterTypes=function(x){return y.ccall("csmGetParameterTypes","number",["number"],[x])},A.getParameterMaximumValues=function(x){return y.ccall("csmGetParameterMaximumValues","number",["number"],[x])},A.getParameterDefaultValues=function(x){return y.ccall("csmGetParameterDefaultValues","number",["number"],[x])},A.getParameterValues=function(x){return y.ccall("csmGetParameterValues","number",["number"],[x])},A.getParameterKeyCounts=function(x){return y.ccall("csmGetParameterKeyCounts","number",["number"],[x])},A.getParameterKeyValues=function(x){return y.ccall("csmGetParameterKeyValues","number",["number"],[x])},A.getPartCount=function(x){return y.ccall("csmGetPartCount","number",["number"],[x])},A.getPartIds=function(x){return y.ccall("csmGetPartIds","number",["number"],[x])},A.getPartOpacities=function(x){return y.ccall("csmGetPartOpacities","number",["number"],[x])},A.getPartParentPartIndices=function(x){return y.ccall("csmGetPartParentPartIndices","number",["number"],[x])},A.getDrawableCount=function(x){return y.ccall("csmGetDrawableCount","number",["number"],[x])},A.getDrawableIds=function(x){return y.ccall("csmGetDrawableIds","number",["number"],[x])},A.getDrawableConstantFlags=function(x){return y.ccall("csmGetDrawableConstantFlags","number",["number"],[x])},A.getDrawableDynamicFlags=function(x){return y.ccall("csmGetDrawableDynamicFlags","number",["number"],[x])},A.getDrawableTextureIndices=function(x){return y.ccall("csmGetDrawableTextureIndices","number",["number"],[x])},A.getDrawableDrawOrders=function(x){return y.ccall("csmGetDrawableDrawOrders","number",["number"],[x])},A.getDrawableRenderOrders=function(x){return y.ccall("csmGetDrawableRenderOrders","number",["number"],[x])},A.getDrawableOpacities=function(x){return y.ccall("csmGetDrawableOpacities","number",["number"],[x])},A.getDrawableMaskCounts=function(x){return y.ccall("csmGetDrawableMaskCounts","number",["number"],[x])},A.getDrawableMasks=function(x){return y.ccall("csmGetDrawableMasks","number",["number"],[x])},A.getDrawableVertexCounts=function(x){return y.ccall("csmGetDrawableVertexCounts","number",["number"],[x])},A.getDrawableVertexPositions=function(x){return y.ccall("csmGetDrawableVertexPositions","number",["number"],[x])},A.getDrawableVertexUvs=function(x){return y.ccall("csmGetDrawableVertexUvs","number",["number"],[x])},A.getDrawableIndexCounts=function(x){return y.ccall("csmGetDrawableIndexCounts","number",["number"],[x])},A.getDrawableIndices=function(x){return y.ccall("csmGetDrawableIndices","number",["number"],[x])},A.getDrawableMultiplyColors=function(x){return y.ccall("csmGetDrawableMultiplyColors","number",["number"],[x])},A.getDrawableScreenColors=function(x){return y.ccall("csmGetDrawableScreenColors","number",["number"],[x])},A.getDrawableParentPartIndices=function(x){return y.ccall("csmGetDrawableParentPartIndices","number",["number"],[x])},A.mallocMoc=function(x){return y.ccall("csmMallocMoc","number",["number"],[x])},A.mallocModelAndInitialize=function(x){return y.ccall("csmMallocModelAndInitialize","number",["number"],[x])},A.malloc=function(x){return y.ccall("csmMalloc","number",["number"],[x])},A.setLogFunction=function(x){y.ccall("csmSetLogFunction",null,["number"],[x])},A.updateModel=function(x){y.ccall("csmUpdateModel",null,["number"],[x])},A.readCanvasInfo=function(x,E,O,R){y.ccall("csmReadCanvasInfo",null,["number","number","number","number"],[x,E,O,R])},A.resetDrawableDynamicFlags=function(x){y.ccall("csmResetDrawableDynamicFlags",null,["number"],[x])},A.free=function(x){y.ccall("csmFree",null,["number"],[x])},A.initializeAmountOfMemory=function(x){y.ccall("csmInitializeAmountOfMemory",null,["number"],[x])},A}(),l=(a.AlignofMoc=64,a.AlignofModel=16,a.MocVersion_Unknown=0,a.MocVersion_30=1,a.MocVersion_33=2,a.MocVersion_40=3,a.MocVersion_42=4,a.MocVersion_50=5,a.ParameterType_Normal=0,a.ParameterType_BlendShape=1,function(){function A(){}return A.csmGetVersion=function(){return e.getVersion()},A.csmGetLatestMocVersion=function(){return e.getLatestMocVersion()},A.csmGetMocVersion=function(x,E){return e.getMocVersion(x._ptr,E.byteLength)},A}()),l=(a.Version=l,function(){function A(){}return A.csmSetLogFunction=function(x){A.logFunction=x,x=y.addFunction(A.wrapLogFunction,"vi"),e.setLogFunction(x)},A.csmGetLogFunction=function(){return A.logFunction},A.wrapLogFunction=function(x){x=y.UTF8ToString(x),A.logFunction(x)},A}()),l=(a.Logging=l,function(){function A(x){var E=e.mallocMoc(x.byteLength);E&&(new Uint8Array(y.HEAPU8.buffer,E,x.byteLength).set(new Uint8Array(x)),this._ptr=e.reviveMocInPlace(E,x.byteLength),this._ptr||e.free(E))}return A.prototype.hasMocConsistency=function(x){var E=e.mallocMoc(x.byteLength);if(E)return new Uint8Array(y.HEAPU8.buffer,E,x.byteLength).set(new Uint8Array(x)),x=e.hasMocConsistency(E,x.byteLength),e.free(E),x},A.fromArrayBuffer=function(x){return x&&(x=new A(x))._ptr?x:null},A.prototype._release=function(){e.free(this._ptr),this._ptr=0},A}()),l=(a.Moc=l,function(){function A(x){this._ptr=e.mallocModelAndInitialize(x._ptr),this._ptr&&(this.parameters=new n(this._ptr),this.parts=new o(this._ptr),this.drawables=new s(this._ptr),this.canvasinfo=new i(this._ptr))}return A.fromMoc=function(x){return x=new A(x),x._ptr?x:null},A.prototype.update=function(){e.updateModel(this._ptr)},A.prototype.release=function(){e.free(this._ptr),this._ptr=0},A}()),i=(a.Model=l,function(A){var x,E,O,R,L,N,B;A&&(O=(x=new Float32Array(2)).length*x.BYTES_PER_ELEMENT,E=e.malloc(O),(E=new Uint8Array(y.HEAPU8.buffer,E,O)).set(new Uint8Array(x.buffer)),L=(O=new Float32Array(2)).length*O.BYTES_PER_ELEMENT,R=e.malloc(L),(R=new Uint8Array(y.HEAPU8.buffer,R,L)).set(new Uint8Array(O.buffer)),N=(L=new Float32Array(1)).length*L.BYTES_PER_ELEMENT,B=e.malloc(N),(B=new Uint8Array(y.HEAPU8.buffer,B,N)).set(new Uint8Array(L.buffer)),e.readCanvasInfo(A,E.byteOffset,R.byteOffset,B.byteOffset),x=new Float32Array(E.buffer,E.byteOffset,E.length),O=new Float32Array(R.buffer,R.byteOffset,R.length),L=new Float32Array(B.buffer,B.byteOffset,B.length),this.CanvasWidth=x[0],this.CanvasHeight=x[1],this.CanvasOriginX=O[0],this.CanvasOriginY=O[1],this.PixelsPerUnit=L[0],e.free(E.byteOffset),e.free(R.byteOffset),e.free(B.byteOffset))}),n=(a.CanvasInfo=i,function(A){this.count=e.getParameterCount(A),x=e.getParameterCount(A),this.ids=new Array(x);for(var x,E,O=new Uint32Array(y.HEAPU32.buffer,e.getParameterIds(A),x),R=0;R"u"?{}:console).log=print,console.warn=console.error=typeof printErr<"u"?printErr:print)):(k||X)&&(X?Ze=self.location.href:document.currentScript&&(Ze=document.currentScript.src),Ze=(Ze=t||Ze).indexOf("blob:")!==0?Ze.substr(0,Ze.lastIndexOf("/")+1):"",N=function(K){try{var rt=new XMLHttpRequest;return rt.open("GET",K,!1),rt.send(null),rt.responseText}catch(_t){if(K=ia(K))return aa(K);throw _t}},X)&&(B=function(K){try{var rt=new XMLHttpRequest;return rt.open("GET",K,!1),rt.responseType="arraybuffer",rt.send(null),new Uint8Array(rt.response)}catch(_t){if(K=ia(K))return K;throw _t}}),x.print||console.log.bind(console)),Q=x.printErr||console.warn.bind(console);for(E in O)O.hasOwnProperty(E)&&(x[E]=O[E]);function at(){return{exports:function(K,rt,_t){var ft=new ArrayBuffer(8),It=new Int32Array(ft),ae=new Float32Array(ft),fe=new Float64Array(ft);function Mt(u,d){It[u]=d}function kr(){return fe[0]}function ve(u){fe[0]=u}function zt(u){ae[0]=u}function $t(){return ae[0]}ft=rt.buffer;var hs,Nt,Oe,Na,ut,ot,ci,r,lt,na,ke,C,jt,W,b,Ee,Ji,Ue,us,ls,Ph,Mh,wh,G,Ur,hs=new Uint8Array(ft);return(ft=function(u,d){var S,p;if(typeof Buffer>"u")for(S=atob(d),p=0;p>2]+(d<<5)|0)>>2],et=r[u+60>>2]+W(T,24)|0,d=(h=r[et+8>>2])+-1|0,D=(m=r[et+4>>2])+-1|0,F=M=(T=r[r[u+152>>2]+(T<<2)>>2])+(h<<3)|0,H=w=T+((P=W(m,f=h+1|0))<<3)|0,U=$=T+(h+P<<3)|0,bt=r[et+12>>2],v=b(0|m),I=b(0|h),u=0;ie=C[4+(et=(_=u<<3)+S|0)>>2],At=b(ie*v),Re=C[et>>2],yt=b(Re*I),et=ie>=b(1),At=!(ie=b(1)|Re>2],V=C[T+4>>2],Ce=b(Xe-V),Z=C[4+F>>2],it=C[4+H>>2],Le=b(Z-it),We=b(b(Ce-Le)*b(.5)),vt=C[$>>2],Tt=C[T>>2],$e=b(vt-Tt),Lt=C[M>>2],Ut=C[w>>2],De=b(Lt-Ut),Ke=b(b($e-De)*b(.5)),Le=b(b(Le+Ce)*b(.5)),De=b(b(De+$e)*b(.5)),Zh=1,Ce=b(b(b(b(b(V+Z)+it)+Xe)*b(.25))-b(Ce*b(.5))),$e=b(b(b(b(b(Tt+Lt)+Ut)+vt)*b(.25))-b($e*b(.5)))),ieb(-2)^1|(Reb(-2)^1)?(C[p+_>>2]=b(ie*Ke)+b(b(Re*De)+$e),yt=b(ie*We),b(b(Re*Le)+Ce)):(Re<=b(0)?ie<=b(0)?(te=b(b(ie+b(2))*b(.5)),Ot=b(b(Re+b(2))*b(.5)),yt=b(We+We),Xr=b(Ce-yt),At=b(Ke+Ke),jr=b($e-At),wr=b(Ce-b(Le+Le)),sr=b(wr-yt),Or=b($e-b(De+De)),ur=b(Or-At),pr=C[T+4>>2],_r=C[T>>2]):et?(yt=b(We*b(3)),At=b(Ce-b(Le+Le)),wr=b(yt+At),sr=b(Ke*b(3)),ur=b($e-b(De+De)),Or=b(sr+ur),te=b(b(ie+b(-1))*b(.5)),Ot=b(b(Re+b(2))*b(.5)),pr=b(yt+Ce),_r=b(sr+$e),sr=b(We+At),ur=b(Ke+ur),Xr=C[4+H>>2],jr=C[w>>2]):(yt=b(Ce-b(Le+Le)),et=D,wt=b(Ee(At))>2],jr=C[et>>2],et=T+(W(wt,f)<<3)|0,pr=C[et+4>>2],_r=C[et>>2]):Re>=b(1)?ie<=b(0)?(te=b(b(ie+b(2))*b(.5)),Ot=b(b(Re+b(-1))*b(.5)),yt=b(We+We),sr=b(b(Le+Ce)-yt),At=b(Ke+Ke),ur=b(b(De+$e)-At),pr=b(b(Le*b(3))+Ce),Xr=b(pr-yt),_r=b(b(De*b(3))+$e),jr=b(_r-At),wr=C[4+F>>2],Or=C[M>>2]):et?(yt=b(We*b(3)),wr=b(yt+b(Le+Ce)),At=b(Ke*b(3)),Or=b(At+b(De+$e)),Xe=yt,yt=b(b(Le*b(3))+Ce),pr=b(Xe+yt),Xe=At,At=b(b(De*b(3))+$e),_r=b(Xe+At),te=b(b(ie+b(-1))*b(.5)),Ot=b(b(Re+b(-1))*b(.5)),Xr=b(We+yt),jr=b(Ke+At),sr=C[4+U>>2],ur=C[$>>2]):(yt=b(b(Le*b(3))+Ce),et=D,wt=b(Ee(At))>2],ur=C[et>>2],et=T+(W(wt,f)+h<<3)|0,wr=C[et+4>>2],Or=C[et>>2]):ie<=b(0)?(te=b(b(ie+b(2))*b(.5)),et=d,wt=b(Ee(At=yt))>2],Or=C[et>>2],pr=C[4+(et=T+(wt<<3)|0)>>2],_r=C[et>>2]):et?(Xe=At=b(We*b(3)),et=d,wt=b(Ee(yt))>2],ur=C[et>>2],Xr=C[4+(et=T+(wt+P<<3)|0)>>2],jr=C[et>>2]):(jt[16+Zt>>3]=ie,r[Zt>>2]=u,jt[8+Zt>>3]=Re,mt(4,1107,Zt)),b(Ot+te)<=b(1)?(C[p+_>>2]=b(ur+b(b(jr-ur)*Ot))+b(b(Or-ur)*te),yt=b(sr+b(b(Xr-sr)*Ot)),b(b(wr-sr)*te)):(yt=b(b(1)-Ot),At=b(b(1)-te),C[p+_>>2]=b(_r+b(b(Or-_r)*yt))+b(b(jr-_r)*At),yt=b(pr+b(b(wr-pr)*yt)),b(b(Xr-pr)*At)))):(et=b(Ee(Xe=At))>2]=b(b(b(yt*b(At*C[wt>>2]))+b(yt*b(Ot*C[wt+8>>2])))+b(te*b(At*C[et>>2])))+b(te*b(Ot*C[et+8>>2])),yt=b(b(b(yt*b(At*C[wt+4>>2]))+b(yt*b(Ot*C[wt+12>>2])))+b(te*b(At*C[et+4>>2]))),b(te*b(Ot*C[et+12>>2]))):b(Ot+te)<=b(1)?(yt=b(b(b(1)-Ot)-te),wt=T+(et<<3)|0,et=T+(et+f<<3)|0,C[p+_>>2]=b(b(yt*C[wt>>2])+b(Ot*C[wt+8>>2]))+b(te*C[et>>2]),yt=b(b(yt*C[wt+4>>2])+b(Ot*C[wt+12>>2])),b(te*C[et+4>>2])):(yt=b(b(Ot+b(-1))+te),wt=T+(et+f<<3)|0,At=b(b(1)-Ot),ie=b(b(1)-te),et=T+(et<<3)|0,C[p+_>>2]=b(b(yt*C[wt+8>>2])+b(At*C[wt>>2]))+b(ie*C[et+8>>2]),yt=b(b(yt*C[wt+12>>2])+b(At*C[wt+4>>2])),b(ie*C[et+12>>2]))),C[4+(p+_|0)>>2]=yt+At,(0|c)!=(0|(u=u+1|0)););G=32+Zt|0},ut[2]=function(u,d){u|=0,d|=0;var v=0,S=0,p=0,m=0,I=0,c=b(0),T=0,h=0,f=(b(0),0),_=0,m=r[u+320>>2],v=r[u+316>>2],I=r[u+308>>2];(0|(S=r[8+(p=I+(d<<5)|0)>>2]))==-1?(r[(_=v)+(v=d<<2)>>2]=r[r[u+148>>2]+(r[p+16>>2]<<2)>>2],r[v+m>>2]=1065353216):(T=r[p+16>>2],h=r[r[u+152>>2]+(T<<2)>>2],ut[r[24+(I+(S<<5)|0)>>2]](u,S,h,h,r[16+(r[u+60>>2]+W(T,24)|0)>>2]),c=C[r[u+148>>2]+(r[p+16>>2]<<2)>>2],p=r[p+8>>2]<<2,C[(S=d<<2)+v>>2]=c*C[p+v>>2],r[S+m>>2]=r[p+m>>2]),4<=lt[r[u>>2]+4|0]&&(m=d<<2,v=r[u+308>>2]+(d<<5)|0,S=r[v+16>>2]<<2,p=r[u+328>>2],d=r[u+324>>2],(0|(I=r[v+8>>2]))==-1?(I=r[u+156>>2],r[(v=m<<2)+d>>2]=r[I+(S<<=2)>>2],r[(T=4|v)+d>>2]=r[(h=4|S)+I>>2],r[(f=8|v)+d>>2]=r[I+(_=8|S)>>2],r[d+((m|=3)<<2)>>2]=1065353216,u=r[u+160>>2],r[v+p>>2]=r[u+S>>2],r[p+T>>2]=r[u+h>>2],r[p+f>>2]=r[u+_>>2]):(S=(h=S<<2)+r[u+156>>2]|0,C[(v=(T=m<<2)+d|0)>>2]=C[S>>2]*C[(I=(f=I<<4)+d|0)>>2],C[v+4>>2]=C[S+4>>2]*C[I+4>>2],C[v+8>>2]=C[S+8>>2]*C[I+8>>2],r[d+((m|=3)<<2)>>2]=1065353216,u=h+r[u+160>>2]|0,_=C[u>>2],c=C[(v=p+f|0)>>2],C[(d=p+T|0)>>2]=b(_+c)-b(_*c),_=C[u+4>>2],c=C[v+4>>2],C[d+4>>2]=b(_+c)-b(_*c),_=C[u+8>>2],c=C[v+8>>2],C[d+8>>2]=b(_+c)-b(_*c)),r[p+(m<<2)>>2]=1065353216)},ut[3]=function(u,d,S,p,c){u|=0,d|=0,S|=0,p|=0,c|=0;var T,h,f,_,m,v=0,v=(b(0),b(0),b(0),b(0),b(0),b(0),b(0),b(0),(d=r[16+(r[u+308>>2]+(d<<5)|0)>>2])<<2),I=function($){var D,F,H,U,V=b(0);G=H=G-16|0,zt($);e:if((D=2147483647&(U=It[0]))>>>0<=1061752794)V=b(1),D>>>0<964689920||(V=Mr(+$));else if(D>>>0<=1081824209)F=+$,V=1075235812<=D>>>0?b(-Mr(((0|U)<0?3.141592653589793:-3.141592653589793)+F)):oa((0|U)<=-1?1.5707963267948966+F:1.5707963267948966-F);else if(D>>>0<=1088565717)V=1085271520<=D>>>0?Mr(+$+((0|U)<0?6.283185307179586:-6.283185307179586)):oa((0|U)<=-1?-4.71238898038469-+$:+$-4.71238898038469);else if(V=b($-$),!(2139095040<=D>>>0))if((D=3&Hh($,8+H|0))>>>0<=2){switch(D-1|0){default:V=Mr(jt[8+H>>3]);break e;case 0:V=oa(-jt[8+H>>3]);break e;case 1:}V=b(-Mr(jt[8+H>>3]))}else V=oa(jt[8+H>>3]);return G=16+H|0,V}(w=b(b(b(C[4+(r[u+168>>2]+W(d,12)|0)>>2]+C[v+r[u+284>>2]>>2])*b(3.1415927410125732))/b(180))),P=C[v+r[u+272>>2]>>2],M=r[v+r[u+292>>2]>>2],w=function($){var D,F,H,U=0;G=F=G-16|0,zt($);e:if((D=2147483647&(H=It[0]))>>>0<=1061752794)D>>>0<964689920||($=oa(+$));else if(D>>>0<=1081824209)U=+$,$=D>>>0<=1075235811?(0|H)<=-1?b(-Mr(U+1.5707963267948966)):Mr(U+-1.5707963267948966):oa(-(((0|H)<0?3.141592653589793:-3.141592653589793)+U));else if(D>>>0<=1088565717)U=+$,$=D>>>0<=1085271519?(0|H)<=-1?Mr(U+4.71238898038469):b(-Mr(U+-4.71238898038469)):oa(((0|H)<0?6.283185307179586:-6.283185307179586)+U);else if(2139095040<=D>>>0)$=b($-$);else if((D=3&Hh($,8+F|0))>>>0<=2){switch(D-1|0){default:$=oa(jt[8+F>>3]);break e;case 0:$=Mr(jt[8+F>>3]);break e;case 1:}$=oa(-jt[8+F>>3])}else $=b(-Mr(jt[8+F>>3]));return G=16+F|0,$}(w);if((d=0)<(0|c))for(I=b(P*I),h=b(M?-1:1),_=b(I*h),T=r[v+r[u+288>>2]>>2]?b(-1):b(1),m=b(b(P*w)*T),I=b(I*T),P=b(b(P*b(-w))*h),w=C[v+r[u+280>>2]>>2],h=C[v+r[u+276>>2]>>2];v=(u=d<<3)+p|0,T=C[(u=u+S|0)>>2],f=C[u+4>>2],C[v+4>>2]=w+b(b(m*T)+b(_*f)),C[v>>2]=h+b(b(I*T)+b(P*f)),(0|c)!=(0|(d=d+1|0)););},ut[4]=function(u,d){u|=0,d|=0;var S,p,c,T,h,f,_=0,m=0,v=0,I=b(0),P=0,M=0,w=b(0),$=0,D=0,F=0;if(b(0),b(0),b(0),b(0),G=f=G+-64|0,$=r[u+320>>2],D=r[u+316>>2],m=r[u+308>>2],(0|(P=r[8+(v=m+(d<<5)|0)>>2]))==-1)_=r[v+16>>2]<<2,r[(m=d<<2)+D>>2]=r[_+r[u+268>>2]>>2],r[m+$>>2]=r[_+r[u+272>>2]>>2];else{_=r[v+16>>2]<<2,F=r[_+r[u+276>>2]>>2],r[24+f>>2]=F,_=r[_+r[u+280>>2]>>2],r[28+f>>2]=_,r[16+f>>2]=0,p=r[12+(M=m+(P<<5)|0)>>2]==1?b(-10):b(-.10000000149011612),C[20+f>>2]=p,r[60+f>>2]=_,r[56+f>>2]=F,ut[r[M+24>>2]](u,P,56+f|0,48+f|0,1),I=b(1),m=9;e:{for(;;){if(_=m,w=b(I*b(0)),C[32+f>>2]=w+C[56+f>>2],S=b(p*I),C[36+f>>2]=S+C[60+f>>2],ut[r[M+24>>2]](u,P,32+f|0,40+f|0,1),c=b(C[44+f>>2]-C[52+f>>2]),C[44+f>>2]=c,T=b(C[40+f>>2]-C[48+f>>2]),C[40+f>>2]=T,c!=b(0)||T!=b(0)){m=r[44+f>>2],r[8+f>>2]=r[40+f>>2],r[12+f>>2]=m;break e}if(C[32+f>>2]=C[56+f>>2]-w,C[36+f>>2]=C[60+f>>2]-S,ut[r[M+24>>2]](u,P,32+f|0,40+f|0,1),w=b(C[40+f>>2]-C[48+f>>2]),C[40+f>>2]=w,S=b(C[44+f>>2]-C[52+f>>2]),(C[44+f>>2]=S)!=b(0)||w!=b(0)){C[12+f>>2]=-S,C[8+f>>2]=-w;break e}if(m=_+-1|0,I=b(I*b(.10000000149011612)),!_)break}mt(3,1311,0)}I=function(H,U){var V=b(0);if((V=b(Fh(C[4+H>>2],C[H>>2])-Fh(C[4+U>>2],C[U>>2])))b(3.1415927410125732))for(;(V=b(V+b(-6.2831854820251465)))>b(3.1415927410125732););return V}(16+f|0,8+f|0),ut[r[M+24>>2]](u,r[v+8>>2],24+f|0,24+f|0,1),m=r[v+16>>2]<<2,r[m+r[u+276>>2]>>2]=r[24+f>>2],r[m+r[u+280>>2]>>2]=r[28+f>>2],_=m+r[u+284>>2]|0,C[_>>2]=C[_>>2]+b(b(I*b(-180))/b(3.1415927410125732)),v=r[v+8>>2]<<2,C[(_=d<<2)+D>>2]=C[m+r[u+268>>2]>>2]*C[v+D>>2],m=m+r[u+272>>2]|0,I=b(C[m>>2]*C[v+$>>2]),C[_+$>>2]=I,C[m>>2]=I}4<=lt[r[u>>2]+4|0]&&(_=d<<2,v=r[u+308>>2]+(d<<5)|0,P=r[v+16>>2]<<2,m=r[u+328>>2],d=r[u+324>>2],(0|(M=r[v+8>>2]))==-1?(M=r[u+296>>2],r[(v=_<<2)+d>>2]=r[M+(P<<=2)>>2],r[($=4|v)+d>>2]=r[(D=4|P)+M>>2],r[(F=8|v)+d>>2]=r[M+(h=8|P)>>2],r[d+((_|=3)<<2)>>2]=1065353216,u=r[u+300>>2],r[m+v>>2]=r[u+P>>2],r[m+$>>2]=r[u+D>>2],r[m+F>>2]=r[u+h>>2]):(P=(D=P<<2)+r[u+296>>2]|0,C[(v=($=_<<2)+d|0)>>2]=C[P>>2]*C[(M=(F=M<<4)+d|0)>>2],C[v+4>>2]=C[P+4>>2]*C[M+4>>2],C[v+8>>2]=C[P+8>>2]*C[M+8>>2],r[d+((_|=3)<<2)>>2]=1065353216,u=D+r[u+300>>2]|0,I=C[u>>2],w=C[(v=m+F|0)>>2],C[(d=m+$|0)>>2]=b(I+w)-b(I*w),I=C[u+4>>2],w=C[v+4>>2],C[d+4>>2]=b(I+w)-b(I*w),I=C[u+8>>2],w=C[v+8>>2],C[d+8>>2]=b(I+w)-b(I*w)),r[m+(_<<2)>>2]=1065353216),G=64+f|0},ut[5]=function(u,d){return u|=0,d|=0,b(0),b(0),0|((u=C[u>>2])<(d=C[d>>2])?-1:d>2])))for(m=r[u+12>>2],_=r[u+20>>2];C[(T=c<<2)+m>>2]=C[d+T>>2]*C[T+_>>2],(0|(c=c+1|0))<(0|f););if(!((0|(f=r[u>>2]))<1))if(m=r[u+4>>2],p)for(T=d=0;;){if(r[p>>2]){if((0|(c=r[(_=d<<2)+r[u+16>>2]>>2]))<1)h=b(0);else for(v=c+T|0,I=r[u+12>>2],h=b(0),c=T;h=b(h+C[I+(c<<2)>>2]),(0|(c=c+1|0))<(0|v););C[S+_>>2]=h}if(p=p+4|0,T=r[m+(d<<2)>>2]+T|0,!((0|(d=d+1|0))<(0|f)))break}else for(_=r[u+16>>2],d=p=0;;){if((0|(c=r[(T=p<<2)+_>>2]))<=0)h=b(0);else for(v=d+c|0,I=r[u+12>>2],h=b(0),c=d;h=b(h+C[I+(c<<2)>>2]),(0|(c=c+1|0))<(0|v););if(C[S+T>>2]=h,d=r[T+m>>2]+d|0,!((0|(p=p+1|0))<(0|f)))break}},ut[7]=function(u,d,S,p){u|=0,d|=0,S|=0,p|=0;var c=0,T=b(0),h=0,f=0,_=0,m=0,v=0;if(1<=(0|(m=r[u+8>>2])))for(f=r[u+12>>2],_=r[u+20>>2];C[(h=c<<2)+f>>2]=C[d+h>>2]*C[h+_>>2],(0|(c=c+1|0))<(0|m););if(!((0|(c=r[u>>2]))<1))if(m=r[u+4>>2],p)for(h=d=0;;){if(r[p>>2]){if((0|(c=r[(f=d<<2)+r[u+16>>2]>>2]))<1)T=b(0);else for(_=c+h|0,v=r[u+12>>2],T=b(0),c=h;T=b(T+C[v+(c<<2)>>2]),(0|(c=c+1|0))<(0|_););c=S+f|0,T=b(T+b(.0010000000474974513)),f=b(Ee(T))>2]=f,c=r[u>>2]}if(p=p+4|0,h=r[m+(d<<2)>>2]+h|0,!((0|(d=d+1|0))<(0|c)))break}else for(f=r[u+16>>2],d=p=0;;){if((0|(c=r[(h=p<<2)+f>>2]))<=0)T=b(0);else for(_=d+c|0,v=r[u+12>>2],T=b(0),c=d;T=b(T+C[v+(c<<2)>>2]),(0|(c=c+1|0))<(0|_););if(c=S+h|0,T=b(T+b(.0010000000474974513)),_=b(Ee(T))>2]=_,d=r[h+m>>2]+d|0,!((0|(p=p+1|0))>2]))break}},ut[8]=function(u,d,S,p,c,T){u|=0,d|=0,S|=0,p|=0,c|=0,T|=0;var h,f,_=0,m=0,v=0,I=0,P=0,M=0,w=0,$=0,D=0,F=0,H=b(0),U=0,V=r[u>>2];if(!((0|V)<1))if(h=c<<2,f=r[u+4>>2],T)for(;;){if(r[T>>2]&&(v=r[(_=I<<2)+r[u+16>>2]>>2],w=r[S+_>>2],m=r[p+_>>2],(_=(0|($=W(m,c)))<1)||Gr(w,0,W(m,h)),!(_|(0|v)<1)))for(D=v+M|0,F=r[u+20>>2],_=M;;){for(H=C[(m=_<<2)+F>>2],U=r[d+m>>2],P=0;C[(m=(v=P<<2)+w|0)>>2]=C[m>>2]+b(H*C[v+U>>2]),(0|$)!=(0|(P=P+1|0)););if(!((0|(_=_+1|0))<(0|D)))break}if(T=T+4|0,M=r[(I<<2)+f>>2]+M|0,!((0|(I=I+1|0))<(0|V)))break}else for(T=0;;){if(v=r[(I=T<<2)+r[u+16>>2]>>2],w=r[S+I>>2],m=r[p+I>>2],(_=(0|($=W(m,c)))<1)||Gr(w,0,W(m,h)),!(_|(0|v)<=0))for(D=v+M|0,F=r[u+20>>2],_=M;;){for(H=C[(m=_<<2)+F>>2],U=r[d+m>>2],P=0;C[(m=(v=P<<2)+w|0)>>2]=C[m>>2]+b(H*C[v+U>>2]),(0|$)!=(0|(P=P+1|0)););if(!((0|(_=_+1|0))<(0|D)))break}if(M=r[I+f>>2]+M|0,!((0|(T=T+1|0))<(0|V)))break}},ut[9]=function(u){var d,S,p,c=0,T=0,h=0,f=0;if(!(r[(u|=0)+648>>2]||(0|(c=r[u+332>>2]))<1))for(S=(T=r[u+336>>2])+W(c,20)|0,c=r[u+424>>2],f=r[u+444>>2];;){if(r[c>>2]&&!((0|(h=r[T+16>>2]))<(u=1)))for(h<<=1,p=r[f>>2];C[(d=(u<<2)+p|0)>>2]=-C[d>>2],(0|(u=u+2|0))<(0|h););if(f=f+4|0,c=c+4|0,!((T=T+20|0)>>>0>>0))break}},ut[10]=function(u,d,S){var p;return Pr(p=r[20+(u|=0)>>2],d|=0,d=(S|=0)>>>0<(d=r[u+16>>2]-p|0)>>>0?S:d),r[u+20>>2]=d+r[u+20>>2],0|S},ut[11]=function(u,d,S,p,c,T){u|=0,d=+d,S|=0,p|=0,c|=0,T|=0;var h,f,_,m,v=0,I=0,P=0,M=0,w=0,$=0,D=0,F=0,H=0,U=0,V=0,Z=0,it=0,vt=0,Tt=0;if(r[44+(G=_=G-560|0)>>2]=0,ve(+d),v=0|It[1],f=4294967295>>0?0:1,m=(0|v)<-1||(0|v)<=-1&&f?(ve(d=-d),v=0|It[1],It[0],vt=1,3840):2048&c?(vt=1,3843):(vt=1&c)?3846:3841,(2146435072&v)==2146435072)tr(u,32,S,$=vt+3|0,-65537&c),Ge(u,m,vt),p=T>>>5&1,Ge(u,d!=d?p?3867:3871:p?3859:3863,3);else if(d=function Lt(Ut,bt){var Zt,et,yt=0;if(ve(+Ut),yt=0|It[1],Zt=0|It[0],(0|(yt=(et=yt)>>>20&2047))!=2047){if(!yt)return yt=bt,bt=Ut==0?0:(Ut=Lt(18446744073709552e3*Ut,bt),r[bt>>2]+-64|0),r[yt>>2]=bt,Ut;r[bt>>2]=yt+-1022,Mt(0,0|Zt),Mt(1,-2146435073&et|1071644672),Ut=+kr()}return Ut}(d,44+_|0),(d+=d)!=0&&(r[44+_>>2]=r[44+_>>2]+-1),h=16+_|0,(0|(f=32|T))==97){if(V=(U=32&T)?9+m|0:m,!(11

>>0)&&(v=12-p|0)){for(Z=8;Z*=16,v=v+-1|0;);d=lt[0|V]==45?-(Z+(-d-Z)):d+Z-Z}for((0|h)==(0|(v=di((P=(v=r[44+_>>2])>>31)^v+P,0,h)))&&(ot[15+_|0]=48,v=15+_|0),w=2|vt,P=r[44+_>>2],ot[0|(H=v+-2|0)]=T+15,ot[v+-1|0]=(0|P)<0?45:43,v=8&c,I=16+_|0;T=I,F=U,P=Ee(d)<2147483648?~~d:-2147483648,ot[0|I]=F|lt[P+3824|0],((I=T+1|0)-(16+_|0)|0)!=1|((d=16*(d-(0|P)))==0?!(v|0<(0|p)):0)||(ot[T+1|0]=46,I=T+2|0),d!=0;);tr(u,32,S,$=(T=!p|(0|p)<=((I-_|0)-18|0)?((h-(16+_|0)|0)-H|0)+I|0:2+((p+h|0)-H|0)|0)+w|0,c),Ge(u,V,w),tr(u,48,S,$,65536^c),Ge(u,16+_|0,p=I-(16+_|0)|0),tr(u,48,T-((v=p)+(p=h-H|0)|0)|0,0,0),Ge(u,H,p)}else{for(v=(0|p)<0,d==0?M=r[44+_>>2]:(M=r[44+_>>2]+-28|0,r[44+_>>2]=M,d*=268435456),D=v?6:p,P=U=(0|M)<0?48+_|0:336+_|0;P=(p=P)+4|0,(d=1e9*(d-((r[p>>2]=v=d<4294967296&0<=d?~~d>>>0:0)>>>0)))!=0;);if((0|M)<1)v=P,I=U;else for(I=U;;){if(H=(0|M)<29?M:29,!((v=P+-4|0)>>>0>>0)){for(p=H,F=0;Tt=F,F=r[(V=v)>>2],w=31&p,w=32<=(63&p)>>>($=0)?(M=F<>>32-w,F<>>0>>0?$+1|0:$,Tt=V,V=Kh(F=Qh(w=F,$,1e9),Ur,1e9),r[Tt>>2]=w-V,I>>>0<=(v=v+-4|0)>>>0;);(p=F)&&(r[(I=I+-4|0)>>2]=p)}for(;I>>>0<(v=P)>>>0&&!r[(P=v+-4|0)>>2];);if(M=r[44+_>>2]-H|0,P=v,!(0<(0|(r[44+_>>2]=M))))break}if((0|M)<=-1)for(it=1+((D+25|0)/9|0)|0,H=(0|f)==102;;){if(F=(0|M)<-9?9:0-M|0,v>>>0<=I>>>0)I=r[I>>2]?I:I+4|0;else{for(V=1e9>>>F,w=-1<>2],r[P>>2]=(p>>>F)+M,M=W(V,p&w),(P=P+4|0)>>>0>>0;);I=r[I>>2]?I:I+4|0,M&&(r[v>>2]=M,v=v+4|0)}if(M=F+r[44+_>>2]|0,v=(0|it)>2?p+(it<<2)|0:v,!((0|(r[44+_>>2]=M))<0))break}if(!(v>>>(P=0)<=I>>>0||(P=W(U-I>>2,9),(p=r[I>>2])>>>0<(M=10))))for(;P=P+1|0,(M=W(M,10))>>>0<=p>>>0;);if((0|(p=(D-((0|f)==102?0:P)|0)-((0|f)==103&(0|D)!=0)|0))<(W(v-U>>2,9)+-9|0)){if($=(U+((p=(0|(w=p+9216|0))/9|0)<<2)|0)-4092|0,M=10,(0|(p=1+(w-W(p,9)|0)|0))<=8)for(;M=W(M,10),(0|(p=p+1|0))!=9;);if(it=$+4|0,((H=(V=r[$>>2])-W(M,w=(V>>>0)/(M>>>0)|0)|0)||(0|it)!=(0|v))&&(Z=H>>>0<(p=M>>>1)>>>0?.5:(0|v)==(0|it)&&(0|p)==(0|H)?1:1.5,d=1&w?9007199254740994:9007199254740992,!vt|lt[0|m]!=45||(Z=-Z,d=-d),r[$>>2]=p=V-H|0,d+Z!=d)){if(1e9<=(r[$>>2]=p=p+M|0)>>>0)for(;($=$+-4|(r[$>>2]=0))>>>0>>0&&(r[(I=I+-4|0)>>2]=0),p=r[$>>2]+1|0,999999999<(r[$>>2]=p)>>>0;);if(P=W(U-I>>2,9),!((p=r[I>>2])>>>0<(M=10)))for(;P=P+1|0,(M=W(M,10))>>>0<=p>>>0;);}v=(p=$+4|0)>>>0>>0?p:v}e:{for(;;){if((H=v)>>>(V=0)<=I>>>0)break e;if(r[(v=H+-4|0)>>2])break}V=1}if((0|f)!=103)w=8&c;else if(D=((p=(0|P)<(0|(v=D||1))&-5<(0|P))?-1^P:-1)+v|0,T=(p?-1:-2)+T|0,!(w=8&c)){if(v=9,V&&(w=r[H+-4>>2])&&!((w>>>(v=0))%(p=10)))for(;v=v+1|0,!((w>>>0)%((p=W(p,10))>>>0)););p=W(H-U>>2,9)+-9|0,D=(32|T)==102?((w=0)|D)<(0|(p=0<(0|(p=p-v|0))?p:0))?D:p:((w=0)|D)<(0|(p=0<(0|(p=(p+P|0)-v|0))?p:0))?D:p}if($=(0|(M=D|w))!=0,p=u,Tt=S,v=0<(0|P)?P:0,(0|(F=32|T))!=102){if((h-(v=di((v=P>>31)+P^v,0,h))|0)<=1)for(;ot[0|(v=v+-1|0)]=48,(h-v|0)<2;);ot[0|(it=v+-2|0)]=T,ot[v+-1|0]=(0|P)<0?45:43,v=h-it|0}if(tr(p,32,Tt,$=1+(v+($+(D+vt|0)|0)|0)|0,c),Ge(u,m,vt),tr(u,48,S,$,65536^c),(0|F)==102){for(p=16+_|8,P=16+_|9,I=T=U>>>0>>0?U:I;;){if(v=di(r[I>>2],0,P),(0|T)!=(0|I)){if(!(v>>>0<=16+_>>>0))for(;ot[0|(v=v+-1|0)]=48,16+_>>>0>>0;);}else(0|v)==(0|P)&&(ot[24+_|0]=48,v=p);if(Ge(u,v,P-v|0),!((I=I+4|0)>>>0<=U>>>0))break}M&&Ge(u,3875,1);e:if(!((0|D)<1|H>>>0<=I>>>0))for(;;){if(16+_>>>0<(v=di(r[I>>2],0,P))>>>0)for(;ot[0|(v=v+-1|0)]=48,16+_>>>0>>0;);if(Ge(u,v,(0|D)<9?D:9),D=D+-9|0,H>>>0<=(I=I+4|0)>>>0)break e;if(!(0<(0|D)))break}tr(u,48,D+9|0,9,0)}else{e:if(!((0|D)<0))for(T=V?H:I+4|0,p=16+_|8,U=16+_|9,P=I;;){if((0|U)==(0|(v=di(r[P>>2],0,U)))&&(ot[24+_|0]=48,v=p),(0|I)!=(0|P)){if(!(v>>>0<=16+_>>>0))for(;ot[0|(v=v+-1|0)]=48,16+_>>>0>>0;);}else Ge(u,v,1),v=v+1|0,(0|D)<1&&!w||Ge(u,3875,1);if(Ge(u,F=v,(0|(v=U-v|0))<(0|D)?v:D),D=D-v|0,T>>>0<=(P=P+4|0)>>>0)break e;if(!(-1<(0|D)))break}tr(u,48,D+18|0,18,0),Ge(u,it,h-it|0)}}return tr(u,32,S,$,8192^c),G=560+_|0,0|((0|$)<(0|S)?S:$)},ut[12]=function(u,d){u|=0;var S=d|=0;d=r[d>>2]+15&-16,r[S>>2]=d+16,S=u,u=function(p,c,T,h){var f,_,m=0,v=0,I=0,P=0;return G=_=G-32|0,m=(P=m=2147483647&h)-1006698496|0,v=m=(f=v=I=T)>>>0<0?m+1|0:m,m=P-1140785152|0,(0|(m=I>>>0<0?m+1|0:m))==(0|v)&f>>>0>>0|v>>>0>>0?(m=h<<4|T>>>28,T=T<<4|c>>>28,(0|(I=c&=268435455))==134217728&1<=p>>>0|134217728>>0?(m=m+1073741824|0,(p=T+1|0)>>>0<1&&(m=m+1|0),v=p):(m=m-(((v=T)>>>0<0)+-1073741824|0)|0,p|134217728^I||((p=v+(1&v)|0)>>>0>>0&&(m=m+1|0),v=p))):(!I&(0|P)==2147418112?!(p|c):(0|P)==2147418112&I>>>0<0|P>>>0<2147418112)?(m=2146435072,((v=0)|P)==1140785151&4294967295>>0|1140785151

>>0||(I=P>>>16)>>>(m=0)<15249||(function(M,w,$,D,F,H){var U,V,Z=0,it=0;64&H?(w=31&($=H-64|0),w=32<=(63&$)>>>0?($=0,F>>>w):($=F>>>w,((1<>>w),F=D=0):H&&(it=F,Z=31&(V=64-H|0),V=32<=(63&V)>>>0?(it=D<>>32-Z|it<>>0?(Z=0,$>>>w):(Z=$>>>w,((1<>>w),w|=V,$=Z|it,Z=D,D=31&H,D=32<=(63&H)>>>0?(it=0,F>>>D):(it=F>>>D,((1<>>D),F=it),r[M>>2]=w,r[4+M>>2]=$,r[8+M>>2]=D,r[12+M>>2]=F}(_,p,c,T,m=65535&h|65536,15361-I|0),function(M,w,$,D,F,H){var U,V,Z=0;64&H?(D=w,w=31&(F=H+-64|0),32<=(63&F)>>>0?(F=D<>>32-w|$<>>0?(Z=V<>>32-D|F<>>0?(H=0,D>>>=F):(H=D>>>F,D=((1<>>F),D|=V,F=H|Z,H=w,w=31&U,w=32<=(63&U)>>>0?(Z=H<>>32-w|$<>2]=w,r[4+M>>2]=$,r[8+M>>2]=D,r[12+M>>2]=F}(16+_|0,p,c,T,m,I+-15233|0),T=r[4+_>>2],p=r[8+_>>2],m=r[12+_>>2]<<4|p>>>28,v=p<<4|T>>>28,(0|(T=p=268435455&T))==134217728&1<=(c=r[_>>2]|((r[16+_>>2]|r[24+_>>2])!=0|(r[20+_>>2]|r[28+_>>2])!=0))>>>0|134217728

>>0?((p=v+1|0)>>>0<1&&(m=m+1|0),v=p):c|134217728^T||((p=v+(1&v)|0)>>>0>>0&&(m=m+1|0),v=p))):(v=T<<4|c>>>28,m=524287&(m=h<<4|T>>>28)|2146959360),G=32+_|0,Mt(0,0|v),Mt(1,-2147483648&h|m),+kr()}(r[d>>2],r[d+4>>2],r[d+8>>2],r[d+12>>2]),jt[S>>3]=u},ut[13]=function(u){return 0},ut[14]=function(u,d,S){d|=0,S|=0;var p,c,T=0,h=0,f=0,_=0;for(G=c=G-32|0,T=r[28+(u|=0)>>2],r[16+c>>2]=T,f=r[u+20>>2],r[28+c>>2]=S,r[24+c>>2]=d,f=(r[20+c>>2]=d=f-T|0)+S|0,_=2,d=16+c|0;;){e:{if((h=(T=0)|wh(r[u+60>>2],0|d,0|_,12+c|0))&&(r[2086]=h,T=-1),(0|(T=T?r[12+c>>2]=-1:r[12+c>>2]))==(0|f))d=r[u+44>>2],r[u+28>>2]=d,r[u+20>>2]=d,r[u+16>>2]=d+r[u+48>>2],u=S;else{if(-1<(0|T))break e;r[u+28>>2]=0,r[u+16>>2]=0,r[u+20>>2]=0,r[u>>2]=32|r[u>>2],((u=0)|_)!=2&&(u=S-r[d+4>>2]|0)}return G=32+c|0,0|u}h=r[d+4>>2],r[(d=(p=h>>>0>>0)?d+8|0:d)>>2]=(h=T-(p?h:0)|0)+r[d>>2],r[d+4>>2]=r[d+4>>2]-h,f=f-T|0,_=_-p|0}},ut[15]=function(u,d,S,p){return Ur=0},{d:function(){},e:function(){return 83886080},f:function(){return 5},g:function(u,d){return d|=0,G=d=G-16|0,u=(u|=0)?ms(u)?(mt(4,2150,0),0):lt[u+4|0]:(r[d+4>>2]=1444,r[d>>2]=2267,mt(4,1294,d),0),G=d+16|0,0|u},h:function(u,d){var S;return d|=0,G=S=G-48|0,u=(u|=0)?(u+63&-64)!=(0|u)?(r[36+S>>2]=1522,r[32+S>>2]=2284,mt(4,1294,32+S|0),0):(d+63&-64)==(0|d)&&d?function(p,c){var T,h=0,f=0,_=0,m=0,v=0,I=0,P=0,M=0,w=0,$=0,D=0,F=0,H=0,U=0,V=0,Z=0,it=0,vt=0,Tt=0,Lt=0,Ut=0;G=v=(T=f=G)-704&-64;e:if(c>>>0<=1343)mt(4,1235,0);else if(ms(p))mt(4,1469,0);else if(f=lt[0|(Lt=p+4|0)]){if(!(6<=f>>>0)){(Z=(0|!lt[p+5|0])==1)||(sa(Lt,1),Y(p- -64|0,4,160)),Gr(v- -64|0,0,640),cs(p,v- -64|0),f=p+c|0,c=r[v+64>>2];t:{r:{a:{if(5<=(V=lt[p+4|0])>>>0){if(c>>>0

>>0|f>>>0>>0||(m=c+256|0)>>>0

>>0)break r;if(m>>>0<=f>>>0)break a;break r}if(c>>>0

>>0|f>>>0>>0||(m=c+128|0)>>>0

>>0|f>>>0>>0)break r}if(!((_=r[v+68>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(_=_- -64|0)>>>0

>>0|f>>>0<_>>>0||(0|($=r[c>>2]))<0||(m=r[v+72>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(_=(h=m)+(m=$<<2)|0)>>>0

>>0|f>>>0<_>>>0||(P=r[v+76>>2])>>>0

>>0|f>>>0

>>0|P>>>0<_>>>0||(h=($<<6)+P|0)>>>0

>>0|f>>>0>>0||(_=r[v+80>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(_=r[v+84>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(_=r[v+88>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(_=r[v+92>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(_=r[v+96>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(_=r[v+100>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(_=_+m|0)>>>0

>>0|f>>>0<_>>>0||(0|(h=r[c+4>>2]))<0||(m=r[v+104>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(I=(_=m)+(m=h<<2)|0)>>>0

>>0|f>>>0>>0||(_=r[v+108>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(h=_+(h<<6)|0)>>>0

>>0|f>>>0>>0||(_=r[v+112>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(_=r[v+116>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(_=r[v+120>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(_=r[v+124>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(_=r[v+128>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(_=r[v+132>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(_=r[v+136>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(_=_+m|0)>>>0

>>0|f>>>0<_>>>0||(0|(h=r[c+8>>2]))<0||(m=r[v+140>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(_=(D=h<<2)+m|0)>>>0

>>0|f>>>0<_>>>0||(m=r[v+144>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(_=m+D|0)>>>0

>>0|f>>>0<_>>>0||(m=r[v+148>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(_=m+D|0)>>>0

>>0|f>>>0<_>>>0||(m=r[v+156>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(_=m+D|0)>>>0

>>0|f>>>0<_>>>0||(m=r[v+160>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(_=m+D|0)>>>0

>>0|f>>>0<_>>>0||(m=r[v+164>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(_=m+D|0)>>>0

>>0|f>>>0<_>>>0||(0|(h=r[c+12>>2]))<0||(m=r[v+172>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(_=(F=h<<2)+m|0)>>>0

>>0|f>>>0<_>>>0||(m=r[v+176>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(_=m+F|0)>>>0

>>0|f>>>0<_>>>0||(m=r[v+180>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(_=m+F|0)>>>0

>>0|f>>>0<_>>>0||(m=r[v+188>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(h=m+F|0)>>>0

>>0|f>>>0>>0||(0|(_=r[c+16>>2]))<0||(m=r[v+192>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(I=(h=m)+(m=_<<2)|0)>>>0

>>0|f>>>0>>0||(h=r[v+196>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(I=h+m|0)>>>0

>>0|f>>>0>>0||(h=r[v+200>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(I=h+m|0)>>>0

>>0|f>>>0>>0||(h=r[v+204>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(I=h+m|0)>>>0

>>0|f>>>0>>0||(h=r[v+208>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(I=h+(_<<6)|0)>>>0

>>0|f>>>0>>0||(h=r[v+212>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(I=h+m|0)>>>0

>>0|f>>>0>>0||(h=r[v+216>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(I=h+m|0)>>>0

>>0|f>>>0>>0||(h=r[v+220>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(I=h+m|0)>>>0

>>0|f>>>0>>0||(h=r[v+228>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(I=h+m|0)>>>0

>>0|f>>>0>>0||(h=r[v+232>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(I=h+m|0)>>>0

>>0|f>>>0>>0||(h=r[v+236>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(I=h+m|0)>>>0

>>0|f>>>0>>0||(h=r[v+240>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(I=h+m|0)>>>0

>>0|f>>>0>>0||(h=r[v+244>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(I=h+m|0)>>>0

>>0|f>>>0>>0||(h=r[v+248>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(h=h+_|0)>>>0

>>0|f>>>0>>0||(_=r[v+252>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(_=r[v+256>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(_=r[v+260>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(_=r[v+264>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(_=r[v+268>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(_=r[v+272>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(0|(I=r[c+20>>2]))<0||(_=r[v+276>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(H=(h=_)+(_=I<<2)|0)>>>0

>>0|f>>>0>>0||(h=r[v+280>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(I=h+(I<<6)|0)>>>0

>>0|f>>>0>>0||(h=r[v+284>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(I=h+_|0)>>>0

>>0|f>>>0>>0||(h=r[v+288>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(I=h+_|0)>>>0

>>0|f>>>0>>0||(h=r[v+292>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(I=h+_|0)>>>0

>>0|f>>>0>>0||(h=r[v+296>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(I=h+_|0)>>>0

>>0|f>>>0>>0||(h=r[v+300>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(I=h+_|0)>>>0

>>0|f>>>0>>0||(h=r[v+308>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(I=h+_|0)>>>0

>>0|f>>>0>>0||(h=r[v+312>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(I=h+_|0)>>>0

>>0|f>>>0>>0||(0|(H=r[c+24>>2]))<0||(h=r[v+336>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(I=h+(H<<2)|0)>>>0

>>0|f>>>0>>0||(0|(H=r[c+28>>2]))<0||(h=r[v+340>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(I=(vt=H<<2)+h|0)>>>0

>>0|f>>>0>>0||(h=r[v+344>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(I=h+vt|0)>>>0

>>0|f>>>0>>0||(0|(H=r[c+32>>2]))<0||(h=r[v+356>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(H=(I=H<<2)+h|0)>>>0

>>0|f>>>0>>0||(h=r[v+360>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(H=h+I|0)>>>0

>>0|f>>>0>>0||(h=r[v+364>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(H=h+I|0)>>>0

>>0|f>>>0>>0||(h=r[v+368>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(H=h+I|0)>>>0

>>0|f>>>0>>0||(h=r[v+372>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(H=h+I|0)>>>0

>>0|f>>>0>>0||(h=r[v+376>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(H=h+I|0)>>>0

>>0|f>>>0>>0||(h=r[v+380>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(H=h+I|0)>>>0

>>0|f>>>0>>0||(0|(M=r[c+36>>2]))<0||(h=r[v+392>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(M=(H=M<<2)+h|0)>>>0

>>0|f>>>0>>0||(h=r[v+396>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(M=h+H|0)>>>0

>>0|f>>>0>>0||(h=r[v+400>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(M=h+H|0)>>>0

>>0|f>>>0>>0||(0|(w=r[c+40>>2]))<0||(h=r[v+412>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(M=h+(w<<2)|0)>>>0

>>0|f>>>0>>0||(0|(w=r[c+44>>2]))<0||(h=r[v+424>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(M=h+(w<<2)|0)>>>0

>>0|f>>>0>>0||(0|(w=r[c+48>>2]))<0||(h=r[v+428>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(M=(w<<=2)+h|0)>>>0

>>0|f>>>0>>0||(h=r[v+432>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(M=h+w|0)>>>0

>>0|f>>>0>>0||(0|(w=r[c+52>>2]))<0||(h=r[v+416>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(M=(w<<=2)+h|0)>>>0

>>0|f>>>0>>0||(h=r[v+420>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(M=h+w|0)>>>0

>>0|f>>>0>>0||(0|(w=r[c+56>>2]))<0||(h=r[v+552>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(M=h+(w<<2)|0)>>>0

>>0|f>>>0>>0||(0|(w=r[c+60>>2]))<0||(h=r[v+556>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(M=h+(w<<2)|0)>>>0

>>0|f>>>0>>0||(0|(w=r[c+64>>2]))<0||(h=r[v+560>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(M=h+(w<<1)|0)>>>0

>>0|f>>>0>>0||(0|(w=r[c+68>>2]))<0||(h=r[v+564>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(M=h+(w<<2)|0)>>>0

>>0|f>>>0>>0||(0|(w=r[c+72>>2]))<0||(h=r[v+568>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(w=(M=h)+(h=w<<2)|0)>>>0

>>0|f>>>0>>0||(M=r[v+572>>2])>>>0

>>0|f>>>0>>0|M>>>0>>0||(w=h+M|0)>>>0

>>0|f>>>0>>0||(M=r[v+576>>2])>>>0

>>0|f>>>0>>0|M>>>0>>0||(w=h+M|0)>>>0

>>0|f>>>0>>0||(M=r[v+580>>2])>>>0

>>0|f>>>0>>0|M>>>0>>0||(w=h+M|0)>>>0

>>0|f>>>0>>0||(M=r[v+584>>2])>>>0

>>0|f>>>0>>0|M>>>0>>0||(M=h+M|0)>>>0

>>0|f>>>0>>0||(0|(w=r[c+76>>2]))<0||(h=r[v+588>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(w=(M=w<<2)+h|0)>>>0

>>0|f>>>0>>0||(h=r[v+592>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(w=h+M|0)>>>0

>>0|f>>>0>>0||(h=r[v+596>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(M=h+M|0)>>>0

>>0|f>>>0>>0||(0|(w=r[c+80>>2]))<0||(h=r[v+600>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(U=(M=h)+(h=w<<2)|0)>>>0

>>0|f>>>0>>0||(M=r[v+604>>2])>>>0

>>0|f>>>0>>0|M>>>0>>0||(w=M+(w<<6)|0)>>>0

>>0|f>>>0>>0||(M=r[v+608>>2])>>>0

>>0|f>>>0>>0|M>>>0>>0||(w=h+M|0)>>>0

>>0|f>>>0>>0||(M=r[v+612>>2])>>>0

>>0|f>>>0>>0|M>>>0>>0||(w=h+M|0)>>>0

>>0|f>>>0>>0||(M=r[v+616>>2])>>>0

>>0|f>>>0>>0|M>>>0>>0||(w=h+M|0)>>>0

>>0|f>>>0>>0||(M=r[v+620>>2])>>>0

>>0|f>>>0>>0|M>>>0>>0||(w=h+M|0)>>>0

>>0|f>>>0>>0||(M=r[v+624>>2])>>>0

>>0|f>>>0>>0|M>>>0>>0||(w=h+M|0)>>>0

>>0|f>>>0>>0||(M=r[v+628>>2])>>>0

>>0|f>>>0>>0|M>>>0>>0||(w=h+M|0)>>>0

>>0|f>>>0>>0||(M=r[v+632>>2])>>>0

>>0|f>>>0>>0|M>>>0>>0||(M=h+M|0)>>>0

>>0|f>>>0>>0||(0|(w=r[c+84>>2]))<0||(h=r[v+636>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(M=h+(w<<2)|0)>>>0

>>0|f>>>0>>0||(h=r[v+640>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(M=h+(w<<1)|0)>>>0

>>0|f>>>0>>0||(0|(w=r[c+88>>2]))<0||(h=r[v+644>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(h=h+(w<<2)|0)>>>0

>>0|f>>>0>>0)){if(!(V>>>0<2)&&((M=r[v+168>>2])>>>0

>>0|f>>>0>>0|M>>>0>>0||(h=M+D|0)>>>0

>>0|f>>>0>>0||!(V>>>0<4)&&((M=r[v+324>>2])>>>0

>>0|f>>>0>>0|M>>>0>>0||(M=_+M|0)>>>0

>>0|f>>>0>>0||(h=r[v+328>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(M=h+_|0)>>>0

>>0|f>>>0>>0||(h=r[v+332>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(M=h+_|0)>>>0

>>0|f>>>0>>0||(h=r[v+152>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(D=h+D|0)>>>0

>>0|f>>>0>>0||(h=r[v+184>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(D=h+F|0)>>>0

>>0|f>>>0>>0||(h=r[v+224>>2])>>>0

>>0|f>>>0>>0|h>>>0>>0||(h=h+m|0)>>>0

>>0|f>>>0>>0||(0|(D=r[c+92>>2]))<0||(m=r[v+648>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(D=(h=D<<2)+m|0)>>>0

>>0|f>>>0>>0||(m=r[v+652>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(D=h+m|0)>>>0

>>0|f>>>0>>0||(m=r[v+656>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(h=h+m|0)>>>0

>>0|f>>>0>>0||(0|(D=r[c+96>>2]))<0||(m=r[v+660>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(D=(h=D<<2)+m|0)>>>0

>>0|f>>>0>>0||(m=r[v+664>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(D=h+m|0)>>>0

>>0|f>>>0>>0||(m=r[v+668>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(h=h+m|0)>>>0

>>0|f>>>0>>0||(m=r[v+304>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(m=r[v+316>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(m=r[v+320>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(_=_+m|0)>>>0

>>0|f>>>0<_>>>0||(0|(h=r[c+100>>2]))<0||(m=r[v+436>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(h=(_=h<<2)+m|0)>>>0

>>0|f>>>0>>0||(m=r[v+440>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(m=r[v+444>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(_=_+m|0)>>>0

>>0|f>>>0<_>>>0||(0|(h=r[c+104>>2]))<0||(m=r[v+448>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(h=(_=m)+(m=h<<2)|0)>>>0

>>0|f>>>0>>0||(_=r[v+452>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(_=r[v+456>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(_=r[v+460>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(_=r[v+464>>2])>>>0

>>0|f>>>0<_>>>0|_>>>0>>0||(_=_+m|0)>>>0

>>0|f>>>0<_>>>0||(0|(h=r[c+108>>2]))<0||(m=r[v+480>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(h=(_=h<<2)+m|0)>>>0

>>0|f>>>0>>0||(m=r[v+484>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(m=r[v+488>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(_=_+m|0)>>>0

>>0|f>>>0<_>>>0||(0|(h=r[c+112>>2]))<0||(m=r[v+504>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(h=(_=h<<2)+m|0)>>>0

>>0|f>>>0>>0||(m=r[v+508>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(m=r[v+512>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(_=_+m|0)>>>0

>>0|f>>>0<_>>>0||(0|(h=r[c+116>>2]))<0||(m=r[v+528>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(_=m+(h<<2)|0)>>>0

>>0|f>>>0<_>>>0||(0|(h=r[c+120>>2]))<0||(m=r[v+532>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(h=(_=h<<2)+m|0)>>>0

>>0|f>>>0>>0||(m=r[v+536>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(m=r[v+540>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(_=_+m|0)>>>0

>>0|f>>>0<_>>>0||(0|(h=r[c+124>>2]))<0||(m=r[v+544>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(_=(h<<=2)+m|0)>>>0

>>0|f>>>0<_>>>0||(m=r[v+548>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(h=h+m|0)>>>0

>>0|f>>>0>>0)))break r;if(V>>>0<5||!((m=r[v+348>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(_=m+vt|0)>>>0

>>0|f>>>0<_>>>0||(m=r[v+352>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(_=m+vt|0)>>>0

>>0|f>>>0<_>>>0||(m=r[v+384>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(_=m+I|0)>>>0

>>0|f>>>0<_>>>0||(m=r[v+388>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(_=m+I|0)>>>0

>>0|f>>>0<_>>>0||(m=r[v+404>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(_=m+H|0)>>>0

>>0|f>>>0<_>>>0||(m=r[v+408>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(_=m+H|0)>>>0

>>0|f>>>0<_>>>0||(0|(h=r[c+128>>2]))<0||(m=r[v+468>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(h=(_=h<<2)+m|0)>>>0

>>0|f>>>0>>0||(m=r[v+472>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(m=r[v+476>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(_=_+m|0)>>>0

>>0|f>>>0<_>>>0||(0|(h=r[c+132>>2]))<0||(m=r[v+492>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(h=(_=h<<2)+m|0)>>>0

>>0|f>>>0>>0||(m=r[v+496>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(m=r[v+500>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(_=_+m|0)>>>0

>>0|f>>>0<_>>>0||(0|(h=r[c+136>>2]))<0||(m=r[v+516>>2])>>>0

>>0|f>>>0>>0|m>>>0<_>>>0||(h=(_=h<<2)+m|0)>>>0

>>0|f>>>0>>0||(m=r[v+520>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(h=_+m|0)>>>0

>>0|f>>>0>>0||(m=r[v+524>>2])>>>0

>>0|f>>>0>>0|m>>>0>>0||(m=_+m|0)>>>0

>>0)&&m>>>0<=f>>>0)break t}}mt(4,1760,0),sa(Lt,1),Y(p- -64|0,4,160);break e}Z||($h(p),ot[p+5|0]=0,c=r[v+64>>2],$=r[c>>2],P=r[v+76>>2],V=lt[p+4|0]);t:{if((p=0)<(0|$)){for(;;){if(63>>0)break t;if((0|$)==(0|(p=p+1|0)))break}if(h=c+48|0,(f=0)<(0|(p=r[c>>2]))){for(m=r[c+48>>2],_=r[v+80>>2];;){if((0|(P=r[_+(f<<2)>>2]))<0|(0|m)<=(0|P))break t;if((0|p)==(0|(f=f+1|0)))break}for(H=c+24|0,m=r[c+24>>2],I=r[v+88>>2],$=r[v+84>>2],f=0;;){if((_=r[(P=f<<2)+I>>2])&&((0|_)<0|(0|m)<(0|_)||(0|(P=r[P+$>>2]))<0|(0|m)<=(0|P)||(_=_+P|0)>>>31|(0|m)<(0|_)))break t;if((0|p)==(0|(f=f+1|0)))break}for(f=0,m=r[v+92>>2];;){if(1>2])break t;if((0|p)==(0|(f=f+1|0)))break}for(f=0,m=r[v+96>>2];;){if(1>2])break t;if((0|p)==(0|(f=f+1|0)))break}for(f=0,m=r[v+100>>2];;){if((0|(_=r[m+(f<<2)>>2]))<-1|(0|p)<=(0|_))break t;if((0|p)==(0|(f=f+1|0)))break}}else H=c+24|0}else H=c+24|0,h=c+48|0;if((p=0)<(0|(f=r[c+4>>2]))){for(m=r[v+108>>2];;){if(63>>0)break t;if((0|f)==(0|(p=p+1|0)))break}if(I=(m=r[c+48>>2])+-1|0,!(((f=0)|(p=r[c+4>>2]))<=0)){for(_=r[v+112>>2];;){if((0|(P=r[_+(f<<2)>>2]))<0|(0|m)<=(0|P))break t;if((0|p)==(0|(f=f+1|0)))break}for(f=0,m=r[v+116>>2];;){if(1>2])break t;if((0|p)==(0|(f=f+1|0)))break}for(f=0,m=r[v+120>>2];;){if(1>2])break t;if((0|p)==(0|(f=f+1|0)))break}for(m=r[c>>2],f=0,_=r[v+124>>2];;){if((0|(P=r[_+(f<<2)>>2]))<-1|(0|m)<=(0|P))break t;if((0|p)==(0|(f=f+1|0)))break}for(f=0,m=r[v+128>>2];;){if((0|(_=r[m+(f<<2)>>2]))<-1|(0|p)<=(0|_))break t;if((0|p)==(0|(f=f+1|0)))break}for(f=0,m=r[v+132>>2];;){if(1>2])break t;if((0|p)==(0|(f=f+1|0)))break}for(_=c+8|0,P=c+12|0,$=r[v+136>>2],f=0;;){if(1<(F=r[(D=f<<2)+m>>2])>>>0||(0|(D=r[$+D>>2]))<0|(0|D)>=r[(F-1|0?_:P)>>2])break t;if((0|p)==(0|(f=f+1|0)))break}}}else I=r[h>>2]+-1|0;if((p=0)<(0|(f=r[c+8>>2]))){for(m=r[v+140>>2];;){if((0|(_=r[m+(p<<2)>>2]))<0|(0|I)<(0|_))break t;if((0|f)==(0|(p=p+1|0)))break}for(vt=c+28|0,m=r[c+28>>2],$=r[v+148>>2],D=r[v+144>>2],p=0;;){if((_=r[(P=p<<2)+$>>2])&&((0|_)<0|(0|m)<(0|_)||(0|(P=r[P+D>>2]))<0|(0|m)<=(0|P)||(_=_+P|0)>>>31|(0|m)<(0|_)))break t;if((0|f)==(0|(p=p+1|0)))break}for(p=0,_=r[v+156>>2],P=r[v+164>>2],$=r[v+160>>2];;){if((0|(D=r[(m=p<<2)+$>>2]))<1||(0|(F=r[m+P>>2]))<1||(0|(m=r[_+m>>2]))<1|(0|m)!=(0|W(F+1|0,D+1|0)))break t;if((0|f)==(0|(p=p+1|0)))break}}else vt=c+28|0;if((p=0)<(0|(_=r[c+12>>2]))){for(f=r[v+172>>2];;){if((0|(m=r[f+(p<<2)>>2]))<0|(0|I)<(0|m))break t;if((0|_)==(0|(p=p+1|0)))break}for(M=c+32|0,f=r[c+32>>2],I=r[v+180>>2],$=r[v+176>>2],p=0;;){if((m=r[(P=p<<2)+I>>2])&&((0|m)<0|(0|f)<(0|m)||(0|(P=r[P+$>>2]))<0|(0|f)<=(0|P)||(m=m+P|0)>>>31|(0|f)<(0|m)))break t;if((0|_)==(0|(p=p+1|0)))break}}else M=c+32|0;m=c+16|0;r:{a:{if(!(((p=0)|(f=r[c+16>>2]))<=0)){for(_=r[v+208>>2];;){if(63>>0)break t;if((0|f)==(0|(p=p+1|0)))break}if(!(((f=0)|(p=r[m>>2]))<=0)){for(_=r[h>>2],P=r[v+212>>2];;){if((0|(I=r[P+(f<<2)>>2]))<0|(0|_)<=(0|I))break t;if((0|p)==(0|(f=f+1|0)))break}for(Lt=c+36|0,_=r[c+36>>2],$=r[v+220>>2],D=r[v+216>>2],f=0;;){if((P=r[(I=f<<2)+$>>2])&&((0|P)<0|(0|_)<(0|P)||(0|(I=r[I+D>>2]))<0|(0|_)<=(0|I)||(P=P+I|0)>>>31|(0|_)<(0|P)))break t;if((0|p)==(0|(f=f+1|0)))break}for(f=0,_=r[v+228>>2];;){if(1>2])break t;if((0|p)==(0|(f=f+1|0)))break}for(f=0,_=r[v+232>>2];;){if(1>2])break t;if((0|p)==(0|(f=f+1|0)))break}for(_=r[c>>2],f=0,P=r[v+236>>2];;){if((0|(I=r[P+(f<<2)>>2]))<-1|(0|_)<=(0|I))break t;if((0|p)==(0|(f=f+1|0)))break}for(_=r[c+4>>2],f=0,P=r[v+240>>2];;){if((0|(I=r[P+(f<<2)>>2]))<-1|(0|_)<=(0|I))break t;if((0|p)==(0|(f=f+1|0)))break}for(_=r[v+244>>2],f=0;;){if(r[_+(f<<2)>>2]<0)break t;if((0|p)==(0|(f=f+1|0)))break}break a}}P=c+68|0,Lt=c+36|0;break r}for(_=r[v+252>>2],f=0;;){if(r[_+(f<<2)>>2]<0)break t;if((0|p)==(0|(f=f+1|0)))break}for(P=r[c+60>>2],f=0,I=r[v+256>>2];;){if(($=r[($=f<<2)+I>>2]+(r[_+$>>2]<<1)|0)>>>31|(0|P)<(0|$))break t;if((0|p)==(0|(f=f+1|0)))break}for(_=r[c+64>>2],$=r[v+264>>2],D=r[v+260>>2],f=0;;){if((P=r[(I=f<<2)+$>>2])&&((0|P)<0|(0|_)<(0|P)||(0|(I=r[I+D>>2]))<0|(0|_)<=(0|I)||(P=P+I|0)>>>31|(0|_)<(0|P)))break t;if((0|p)==(0|(f=f+1|0)))break}for(P=c+68|0,_=r[c+68>>2],D=r[v+272>>2],F=r[v+268>>2],f=0;;){if((I=r[($=f<<2)+D>>2])&&((0|I)<0|(0|_)<(0|I)||(0|($=r[$+F>>2]))<0|(0|_)<=(0|$)||(I=I+$|0)>>>31|(0|_)<(0|I)))break t;if((0|p)==(0|(f=f+1|0)))break}}r:{a:{if(!(((p=0)|(f=r[c+20>>2]))<=0)){for(_=r[v+280>>2];;){if(63>>0)break t;if((0|f)==(0|(p=p+1|0)))break}if(!(((p=0)|(f=r[c+20>>2]))<=0)){for(_=r[v+296>>2];;){if(1>2])break t;if((0|f)==(0|(p=p+1|0)))break}for(_=r[v+300>>2],p=0;;){if(r[_+(p<<2)>>2]<0)break t;if((0|f)==(0|(p=p+1|0)))break}break a}}p=r[c+52>>2];break r}for(p=r[c+52>>2],D=r[v+312>>2],F=r[v+308>>2],I=0;;){if((_=r[($=I<<2)+D>>2])&&((0|_)<0|(0|p)<(0|_)||(0|($=r[$+F>>2]))<0|(0|p)<=(0|$)||(_=_+$|0)>>>31|(0|p)<(0|_)))break t;if((0|f)==(0|(I=I+1|0)))break}}if(_=r[c+40>>2],(f=0)<(0|(I=r[c+8>>2])))for($=r[v+344>>2],D=r[v+156>>2];;){if((F=r[(F=f<<2)+$>>2]+(r[D+F>>2]<<1)|0)>>>31|(0|_)<(0|F))break t;if((0|I)==(0|(f=f+1|0)))break}if((f=0)<(0|(I=r[M>>2]))){for($=r[v+376>>2];;){if(1>2])break t;if((0|I)==(0|(f=f+1|0)))break}for(f=0,$=r[v+380>>2];;){if(1>2])break t;if((0|I)==(0|(f=f+1|0)))break}}if((f=0)<(0|(I=r[m>>2])))for($=r[v+400>>2],D=r[v+252>>2];;){if((F=r[(F=f<<2)+$>>2]+(r[D+F>>2]<<1)|0)>>>31|(0|_)<(0|F))break t;if((0|I)==(0|(f=f+1|0)))break}if((f=0)<(0|(_=r[c+44>>2])))for($=r[v+424>>2];;){if((0|(D=r[$+(f<<2)>>2]))<0|(0|p)<=(0|D))break t;if((0|_)==(0|(f=f+1|0)))break}if(1<=(0|(D=r[h>>2])))for(f=0,F=r[v+432>>2],w=r[v+428>>2];;){if((h=r[($=f<<2)+F>>2])&&((0|h)<0|(0|_)<(0|h)||(0|($=r[w+$>>2]))<0|(0|_)<=(0|$)||(h=h+$|0)>>>31|(0|_)<(0|h)))break t;if((0|D)==(0|(f=f+1|0)))break}if(1<=(0|p))for(_=r[c+56>>2],f=0,D=r[v+420>>2],F=r[v+416>>2];;){if((h=r[($=f<<2)+D>>2])&&((0|h)<0|(0|_)<(0|h)||(0|($=r[$+F>>2]))<0|(0|_)<=(0|$)||(h=h+$|0)>>>31|(0|_)<(0|h)))break t;if((0|(f=f+1|0))==(0|p))break}if((p=0)<(0|(f=r[P>>2])))for(_=r[v+564>>2];;){if((0|(P=r[_+(p<<2)>>2]))<-1|(0|I)<=(0|P))break t;if((0|f)==(0|(p=p+1|0)))break}if(p=r[c+76>>2],1<=(0|(P=r[c+72>>2])))for(f=0,I=r[v+572>>2],$=r[v+568>>2];;){if((_=r[(h=f<<2)+I>>2])&&((0|_)<0|(0|p)<(0|_)||(0|(h=r[h+$>>2]))<0|(0|p)<=(0|h)||(_=h+_|0)>>>31|(0|p)<(0|_)))break t;if((0|P)==(0|(f=f+1|0)))break}if((f=0)<(0|p)){for(_=r[v+588>>2];;){if(1>2])break t;if((0|p)==(0|(f=f+1|0)))break}for(h=r[v+592>>2],f=0;;){if(1<($=r[(I=f<<2)+_>>2])>>>0||(0|(I=r[h+I>>2]))<0|(0|I)>=r[($-1|0?m:c)>>2])break t;if((0|p)==(0|(f=f+1|0)))break}for(f=0,_=r[v+596>>2];;){if((0|(h=r[_+(f<<2)>>2]))<-1|(0|P)<=(0|h))break t;if((0|p)==(0|(f=f+1|0)))break}}r:{if(!(((p=0)|(I=r[c+80>>2]))<=0)){for(f=r[v+604>>2];;){if(63>>0)break t;if((0|I)==(0|(p=p+1|0)))break}if(!(((p=0)|(I=r[c+80>>2]))<=0)){for(f=r[c+48>>2],_=r[v+608>>2];;){if((0|(P=r[_+(p<<2)>>2]))<0|(0|f)<=(0|P))break t;if((0|I)==(0|(p=p+1|0)))break}for(D=r[c+88>>2],P=r[v+616>>2],h=r[v+612>>2],p=0;;){if((f=r[(_=p<<2)+P>>2])&&((0|f)<0|(0|D)<(0|f)||(0|(_=r[h+_>>2]))<0|(0|D)<=(0|_)||(f=f+_|0)>>>31|(0|D)<(0|f)))break t;if((0|I)==(0|(p=p+1|0)))break}for(m=r[m>>2],P=r[v+620>>2],p=0;;){if((0|(f=r[P+(p<<2)>>2]))<0|(0|m)<=(0|f))break t;if((0|I)==(0|(p=p+1|0)))break}for(h=r[v+624>>2],p=0;;){if((0|(f=r[h+(p<<2)>>2]))<0|(0|m)<=(0|f))break t;if((0|I)==(0|(p=p+1|0)))break}for(f=r[c+84>>2],$=r[v+632>>2],F=r[v+628>>2],p=0;;){if((_=r[(w=p<<2)+$>>2])&&((0|_)<0|(0|f)<(0|_)||(0|(w=r[w+F>>2]))<0|(0|f)<=(0|w)||(_=_+w|0)>>>31|(0|f)<(0|_)))break t;if((0|I)==(0|(p=p+1|0)))break}for(U=r[v+640>>2],f=r[v+252>>2],_=0;;){if(0<(0|(Z=r[(p=_<<2)+$>>2])))for(w=U+(r[p+F>>2]<<1)|0,Ut=r[f+(r[p+h>>2]<<2)>>2],it=r[f+(r[p+P>>2]<<2)>>2],p=0;;){if((0|Ut)<=na[w+(2|(Tt=p<<1))>>1]|(0|it)<=na[w+Tt>>1])break t;if(!((0|(p=p+2|0))<(0|Z)))break}if((0|I)==(0|(_=_+1|0)))break}break r}}m=r[c+16>>2],D=r[c+88>>2]}if(!((255&V)>>>0<2)){if((p=0)<(0|($=r[c+8>>2])))for(f=r[v+168>>2];;){if(1>2])break t;if((0|$)==(0|(p=p+1|0)))break}if(!((255&V)>>>0<4)){if(P=r[c+56>>2],1<=(0|(F=r[c+20>>2])))for(h=r[v+332>>2],w=r[v+328>>2],p=0;;){if((f=r[(_=p<<2)+h>>2])&&((0|f)<0|(0|P)<(0|f)||(0|(_=r[_+w>>2]))<0|(0|P)<=(0|_)||(f=f+_|0)>>>31|(0|P)<(0|f)))break t;if((0|F)==(0|(p=p+1|0)))break}if((0|(p=r[c+92>>2]))!=r[c+96>>2])break t;if(1<=(0|$))for(w=r[v+152>>2],f=0,U=r[v+148>>2];;){if((_=r[(h=f<<2)+U>>2])&&((0|_)<0|(0|p)<(0|_)||(0|(h=r[h+w>>2]))<0|(0|p)<=(0|h)||(_=h+_|0)>>>31|(0|p)<(0|_)))break t;if((0|$)==(0|(f=f+1|0)))break}if(1<=(0|(Ut=r[c+12>>2])))for(w=r[v+184>>2],f=0,U=r[v+180>>2];;){if((_=r[(h=f<<2)+U>>2])&&((0|_)<0|(0|p)<(0|_)||(0|(h=r[h+w>>2]))<0|(0|p)<=(0|h)||(_=h+_|0)>>>31|(0|p)<(0|_)))break t;if((0|Ut)==(0|(f=f+1|0)))break}if(1<=(0|m))for(w=r[v+224>>2],f=0,U=r[v+220>>2];;){if((_=r[(h=f<<2)+U>>2])&&((0|_)<0|(0|p)<(0|_)||(0|(h=r[h+w>>2]))<0|(0|p)<=(0|h)||(_=h+_|0)>>>31|(0|p)<(0|_)))break t;if((0|m)==(0|(f=f+1|0)))break}if((f=0)<(0|F)){for(_=r[v+304>>2];;){if(1>2])break t;if((0|F)==(0|(f=f+1|0)))break}for(_=r[c+100>>2],U=r[v+320>>2],Z=r[v+316>>2],f=0;;){if((h=r[(w=f<<2)+U>>2])&&((0|h)<0|(0|_)<(0|h)||(0|(w=r[w+Z>>2]))<0|(0|_)<=(0|w)||(h=h+w|0)>>>31|(0|_)<(0|h)))break t;if((0|F)==(0|(f=f+1|0)))break}}else _=r[c+100>>2];if(1<=(0|_)){for(w=r[v+440>>2],f=0,Z=r[v+436>>2];;){if((h=r[(U=f<<2)+w>>2])&&((0|h)<0|(0|P)<(0|h)||(0|(U=r[U+Z>>2]))<0|(0|P)<=(0|U)||(h=h+U|0)>>>31|(0|P)<(0|h)))break t;if((0|_)==(0|(f=f+1|0)))break}for(P=r[v+444>>2],f=0;;){if((0|(U=r[(h=f<<2)+P>>2]))<0|(0|U)>=r[h+w>>2])break t;if((0|_)==(0|(f=f+1|0)))break}}if((P=0)<(0|(f=r[c+104>>2]))){for(h=r[v+448>>2];;){if((0|(w=r[h+(P<<2)>>2]))<0|(0|_)<=(0|w))break t;if((0|f)==(0|(P=P+1|0)))break}for(h=r[c+116>>2],U=r[v+464>>2],Z=r[v+460>>2],_=0;;){if((P=r[(w=_<<2)+U>>2])&&((0|P)<0|(0|h)<(0|P)||(0|(w=r[w+Z>>2]))<0|(0|h)<=(0|w)||(P=P+w|0)>>>31|(0|h)<(0|P)))break t;if((0|f)==(0|(_=_+1|0)))break}}else h=r[c+116>>2];if((_=0)<(0|(w=r[c+108>>2]))){for(P=r[v+480>>2];;){if((0|(U=r[P+(_<<2)>>2]))<0|(0|$)<=(0|U))break t;if((0|w)==(0|(_=_+1|0)))break}for(U=r[v+488>>2],it=r[v+484>>2],_=0;;){if((P=r[($=_<<2)+U>>2])&&((0|P)<0|(0|f)<(0|P)||(0|($=r[$+it>>2]))<0|(0|f)<=(0|$)||(P=P+$|0)>>>31|(0|f)<(0|P)))break t;if((0|w)==(0|(_=_+1|0)))break}for(U=r[vt>>2],_=r[v+456>>2],$=r[v+452>>2],P=0;;){if(Tt=r[it+(P<<2)>>2]<<2,(Z=r[Tt+_>>2])&&((0|Z)<0|(0|U)<(0|Z)||(0|(Tt=r[$+Tt>>2]))<0|(0|U)<=(0|Tt)||(0|(Z=Z+Tt|0))<0|(0|U)<(0|Z)))break t;if((0|w)==(0|(P=P+1|0)))break}}else _=r[v+456>>2],$=r[v+452>>2];if((P=0)<(0|(w=r[c+112>>2]))){for(U=r[v+504>>2];;){if((0|(Z=r[U+(P<<2)>>2]))<0|(0|m)<=(0|Z))break t;if((0|w)==(0|(P=P+1|0)))break}for(it=r[v+512>>2],Z=r[v+508>>2],m=0;;){if((P=r[(U=m<<2)+it>>2])&&((0|P)<0|(0|f)<(0|P)||(0|(U=r[U+Z>>2]))<0|(0|f)<=(0|U)||(P=P+U|0)>>>31|(0|f)<(0|P)))break t;if((0|w)==(0|(m=m+1|0)))break}for(P=r[Lt>>2],m=0;;){if(it=r[Z+(m<<2)>>2]<<2,(U=r[it+_>>2])&&((0|U)<0|(0|P)<(0|U)||(0|(it=r[$+it>>2]))<0|(0|P)<=(0|it)||(0|(U=U+it|0))<0|(0|P)<(0|U)))break t;if((0|w)==(0|(m=m+1|0)))break}}if(P=r[c+120>>2],(m=0)<(0|h))for(w=r[v+528>>2];;){if((0|(U=r[w+(m<<2)>>2]))<0|(0|P)<=(0|U))break t;if((0|(m=m+1|0))==(0|h))break}if((m=0)<(0|P)){for(h=r[v+532>>2];;){if((0|(w=r[h+(m<<2)>>2]))<-1|(0|F)<=(0|w))break t;if((0|P)==(0|(m=m+1|0)))break}for(h=r[c+124>>2],U=r[v+540>>2],Z=r[v+536>>2],m=0;;){if((F=r[(w=m<<2)+U>>2])&&((0|F)<0|(0|h)<(0|F)||(0|(w=r[w+Z>>2]))<0|(0|h)<=(0|w)||(F=w+F|0)>>>31|(0|h)<(0|F)))break t;if((0|P)==(0|(m=m+1|0)))break}}if(!((255&V)>>>0<5)){if((m=0)<(0|(V=r[vt>>2]))){for(P=r[v+348>>2];;){if((0|(h=r[P+(m<<2)>>2]))<0|(0|p)<(0|h))break t;if((0|V)==(0|(m=m+1|0)))break}for(P=r[v+352>>2],m=0;;){if((0|(h=r[P+(m<<2)>>2]))<0|(0|p)<(0|h))break t;if((0|V)==(0|(m=m+1|0)))break}}if((V=0)<(0|(m=r[M>>2]))){for(P=r[v+384>>2];;){if((0|(h=r[P+(V<<2)>>2]))<0|(0|p)<(0|h))break t;if((0|m)==(0|(V=V+1|0)))break}for(P=r[v+388>>2],V=0;;){if((0|(h=r[P+(V<<2)>>2]))<0|(0|p)<(0|h))break t;if((0|m)==(0|(V=V+1|0)))break}}if((V=0)<(0|(P=r[Lt>>2]))){for(h=r[v+404>>2];;){if((0|(F=r[h+(V<<2)>>2]))<0|(0|p)<(0|F))break t;if((0|P)==(0|(V=V+1|0)))break}for(h=r[v+408>>2],V=0;;){if((0|(F=r[h+(V<<2)>>2]))<0|(0|p)<(0|F))break t;if((0|P)==(0|(V=V+1|0)))break}}if((p=0)<(0|(V=r[c+128>>2]))){for(P=r[c>>2],h=r[v+468>>2];;){if((0|(F=r[h+(p<<2)>>2]))<0|(0|P)<=(0|F))break t;if((0|V)==(0|(p=p+1|0)))break}for(vt=r[v+476>>2],F=r[v+472>>2],p=0;;){if((P=r[(h=p<<2)+vt>>2])&&((0|P)<0|(0|f)<(0|P)||(0|(h=r[h+F>>2]))<0|(0|f)<=(0|h)||(P=h+P|0)>>>31|(0|f)<(0|P)))break t;if((0|V)==(0|(p=p+1|0)))break}for(P=r[H>>2],p=0;;){if(H=r[F+(p<<2)>>2]<<2,(h=r[H+_>>2])&&((0|h)<0|(0|P)<(0|h)||(0|(H=r[$+H>>2]))<0|(0|P)<=(0|H)||(0|(h=h+H|0))<0|(0|P)<(0|h)))break t;if((0|V)==(0|(p=p+1|0)))break}}if((p=0)<(0|(V=r[c+132>>2]))){for(P=r[v+492>>2];;){if((0|(h=r[P+(p<<2)>>2]))<0|(0|Ut)<=(0|h))break t;if((0|V)==(0|(p=p+1|0)))break}for(H=r[v+500>>2],h=r[v+496>>2],p=0;;){if((P=r[(F=p<<2)+H>>2])&&((0|P)<0|(0|f)<(0|P)||(0|(F=r[h+F>>2]))<0|(0|f)<=(0|F)||(P=P+F|0)>>>31|(0|f)<(0|P)))break t;if((0|V)==(0|(p=p+1|0)))break}for(p=0;;){if(F=r[h+(p<<2)>>2]<<2,(P=r[F+_>>2])&&((0|P)<0|(0|m)<(0|P)||(0|(F=r[$+F>>2]))<0|(0|m)<=(0|F)||(0|(P=P+F|0))<0|(0|m)<(0|P)))break t;if((0|V)==(0|(p=p+1|0)))break}}if(!(((p=0)|(c=r[c+136>>2]))<=0)){for(m=r[v+516>>2];;){if((0|(V=r[m+(p<<2)>>2]))<0|(0|I)<=(0|V))break t;if((0|c)==(0|(p=p+1|0)))break}for(P=r[v+524>>2],m=r[v+520>>2],p=0;;){if((v=r[(V=p<<2)+P>>2])&&((0|v)<0|(0|f)<(0|v)||(0|(V=r[m+V>>2]))<0|(0|f)<=(0|V)||(v=v+V|0)>>>31|(0|f)<(0|v)))break t;if((0|c)==(0|(p=p+1|0)))break}for(p=0;;){if(v=r[m+(p<<2)>>2]<<2,(f=r[v+_>>2])&&((0|f)<0|(0|D)<(0|f)||(0|(v=r[v+$>>2]))<0|(0|D)<=(0|v)||(0|(f=f+v|0))<0|(0|D)<(0|f)))break t;if((0|c)==(0|(p=p+1|0)))break}}}}}return G=T,1}return mt(4,1846,0),G=T,0}r[v+52>>2]=f,r[v+48>>2]=5,mt(4,1640,v+48|0)}else r[v+32>>2]=f,mt(4,1554,v+32|0);return G=T,0}(u,d):(r[20+S>>2]=1621,r[16+S>>2]=2284,mt(4,1294,16+S|0),0):(r[4+S>>2]=1444,r[S>>2]=2284,mt(4,1294,S),0),G=48+S|0,0|u},i:function(u){r[1805]=u|=0},j:function(u,d){var S;return d|=0,G=S=G-48|0,u=(u|=0)?(u+63&-64)!=(0|u)?(r[36+S>>2]=1522,r[32+S>>2]=2305,mt(4,1294,32+S|0),0):(d+63&-64)==(0|d)&&d?function(p){var c,T,h,f,_=0,m=0,v=0,I=0,P=0,M=0,w=0,$=0;r[24+(G=c=G-32|0)>>2]=0,r[16+c>>2]=5,r[20+c>>2]=0,Vh(16+(G=f=G-272|0)|0,2227,r[12+f>>2]=16+c|0),function(D){var F;r[(G=F=G-16|0)>>2]=D,function(H,U){var V;r[12+(G=V=G-16|0)>>2]=U,jh(H,1432,U,0,0),G=16+V|0}(r[970],F),G=16+F|0}(16+f|0),G=272+f|0;e:{if(ms(p))mt(4,1932,0);else{if(!(6<=(v=lt[p+4|0])>>>0)){if((0|!lt[p+5|0])!=1?(sa(p+4|0,1),Y(p- -64|0,4,160),cs(p,p+704|(ot[p+5|0]=0)),$h(p)):cs(p,p+704|0),lt[7224]||(r[1807]=6,ot[7224]=1,r[1808]=7,r[1809]=8,r[1810]=9),m=r[p+704>>2],1<=(0|(v=r[m+16>>2]))){for($=(I=r[p+912>>2])+(v<<2)|0,P=r[p+908>>2];;){w=r[p+1204>>2]+(r[P>>2]<<2)|0;t:if(!(((m=0)|(_=(v=r[I>>2])+-1|0))<1))r:for(;;){for(;;){if(r[(M=w+(m<<2)|0)>>2]<=-1){if(function(D,F,H){var U=0,V=0;a:if((0|D)!=(0|F)){if(!(D>>>0>>0&&F>>>0<(V=D+H|0)>>>0))return Pr(D,F,H);if(U=3&(D^F),D>>>0>>0){if(!U){if(3&D)for(;;){if(!H)break a;if(ot[0|D]=lt[0|F],F=F+1|0,H=H+-1|0,!(3&(D=D+1|0)))break}if(!(H>>>0<=3)){for(U=H;r[D>>2]=r[F>>2],F=F+4|0,D=D+4|0,3<(U=U+-4|0)>>>0;);H&=3}}if(H)for(;ot[0|D]=lt[0|F],D=D+1|0,F=F+1|0,H=H+-1|0;);}else{if(!U){if(3&V)for(;;){if(!H)break a;if(ot[0|(U=(H=H+-1|0)+D|0)]=lt[F+H|0],!(3&U))break}if(!(H>>>0<=3))for(;r[(H=H+-4|0)+D>>2]=r[F+H>>2],3>>0;);}if(H)for(;ot[(H=H+-1|0)+D|0]=lt[F+H|0],H;);}}}(M,M+4|0,(-1^m)+v<<2),(0|m)<(0|(_=(v=_)+-1|0)))continue r;break t}if(!((0|(m=m+1|0))<(0|_)))break}break}if(m=I,0<(0|v)&&(v=r[w+(_<<2)>>2]<0?_:v),r[m>>2]=v,P=P+4|0,!((I=I+4|0)>>>0<$>>>0))break}m=r[p+704>>2]}if(1<=r[m>>2])for(_=0;r[r[p+712>>2]+(_<<2)>>2]=r[p+716>>2]+(_<<6),m=r[p+704>>2],(0|(_=_+1|0))>2];);if(1<=r[m+4>>2])for(_=0;r[r[p+744>>2]+(_<<2)>>2]=r[p+748>>2]+(_<<6),m=r[p+704>>2],(0|(_=_+1|0))>2];);if(1<=r[m+16>>2])for(_=0;r[(v=_<<2)+r[p+832>>2]>>2]=r[p+848>>2]+(_<<6),r[v+r[p+836>>2]>>2]=r[p+1196>>2]+(r[v+r[p+896>>2]>>2]<<2),r[v+r[p+840>>2]>>2]=r[p+1200>>2]+(r[v+r[p+900>>2]>>2]<<1),r[v+r[p+844>>2]>>2]=r[p+1204>>2]+(r[v+r[p+908>>2]>>2]<<2),m=r[p+704>>2],(0|(_=_+1|0))>2];);if(1<=r[m+20>>2])for(_=0;r[r[p+916>>2]+(_<<2)>>2]=r[p+920>>2]+(_<<6),m=r[p+704>>2],(0|(_=_+1|0))>2];);if(1<=r[m+80>>2])for(_=0;r[r[p+1240>>2]+(_<<2)>>2]=r[p+1244>>2]+(_<<6),m=r[p+704>>2],(0|(_=_+1|0))>2];);if(1&ot[r[p+708>>2]+20|0]||(0|(I=r[m+16>>2]))<1)break e;for(_=r[p+904>>2],w=r[p+900>>2],M=r[p+1200>>2],P=0;;){if(0<(0|($=r[(v=P<<2)+_>>2]+-1|0)))for(T=M+(r[v+w>>2]<<1)|0,m=0;h=na[(v=T+(m<<1)|0)>>1],ci[v>>1]=na[v+4>>1],ci[v+4>>1]=h,(0|(m=m+3|0))<(0|$););if((0|I)==(0|(P=P+1|0)))break}for(v=r[p+892>>2],P=r[p+896>>2],w=r[p+1196>>2],_=0;;){if(1<=(0|(M=r[(m=_<<2)+v>>2])))for(M=(m=w+(r[m+P>>2]<<2)|0)+(M<<3)|0,m=m+4|0;C[m>>2]=b(1)-C[m>>2],(m=m+8|0)>>>0>>0;);if((0|I)==(0|(_=_+1|0)))break}break e}r[4+c>>2]=v,r[c>>2]=5,mt(4,2023,c)}p=0}return G=32+c|0,p}(u):(r[20+S>>2]=1621,r[16+S>>2]=2305,mt(4,1294,16+S|0),0):(r[4+S>>2]=1444,r[S>>2]=2305,mt(4,1294,S),0),G=48+S|0,0|u},k:function(u,d,S,p){var c;d|=0,S|=0,p|=0,G=c=G+-64|0,(u|=0)?d?S?p?(u=r[r[u>>2]+708>>2],r[d>>2]=r[u+12>>2],r[d+4>>2]=r[u+16>>2],r[S>>2]=r[u+4>>2],r[S+4>>2]=r[u+8>>2],r[p>>2]=r[u>>2]):(r[52+c>>2]=1995,r[48+c>>2]=2325,mt(4,1294,48+c|0)):(r[36+c>>2]=1903,r[32+c>>2]=2325,mt(4,1294,32+c|0)):(r[20+c>>2]=1819,r[16+c>>2]=2325,mt(4,1294,16+c|0)):(r[4+c>>2]=1740,r[c>>2]=2325,mt(4,1294,c)),G=64+c|0},l:Lh,m:Ch,n:function(u){var d;G=d=G-16|0,(u|=0)?Oh(u):(r[4+d>>2]=1740,r[d>>2]=2387,mt(4,1294,d)),G=16+d|0},o:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[u+540>>2]:(r[4+d>>2]=1740,r[d>>2]=2402,mt(4,1294,d),-1),G=16+d|0,0|u},p:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[r[u>>2]+916>>2]:(r[4+d>>2]=1740,r[d>>2]=2423,mt(4,1294,d),0),G=16+d|0,0|u},q:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[u+548>>2]:(r[4+d>>2]=1740,r[d>>2]=2442,mt(4,1294,d),0),G=16+d|0,0|u},r:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[r[u>>2]+928>>2]:(r[4+d>>2]=1740,r[d>>2]=2463,mt(4,1294,d),0),G=16+d|0,0|u},s:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[r[u>>2]+924>>2]:(r[4+d>>2]=1740,r[d>>2]=2492,mt(4,1294,d),0),G=16+d|0,0|u},t:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[r[u>>2]+932>>2]:(r[4+d>>2]=1740,r[d>>2]=2521,mt(4,1294,d),0),G=16+d|0,0|u},u:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[u+552>>2]:(r[4+d>>2]=1740,r[d>>2]=2550,mt(4,1294,d),0),G=16+d|0,0|u},v:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[u+4>>2]:(r[4+d>>2]=1740,r[d>>2]=2572,mt(4,1294,d),-1),G=16+d|0,0|u},w:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[r[u>>2]+712>>2]:(r[4+d>>2]=1740,r[d>>2]=2588,mt(4,1294,d),0),G=16+d|0,0|u},x:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[u+52>>2]:(r[4+d>>2]=1740,r[d>>2]=2602,mt(4,1294,d),0),G=16+d|0,0|u},y:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[r[u>>2]+740>>2]:(r[4+d>>2]=1740,r[d>>2]=2622,mt(4,1294,d),0),G=16+d|0,0|u},z:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[u+332>>2]:(r[4+d>>2]=1740,r[d>>2]=2650,mt(4,1294,d),-1),G=16+d|0,0|u},A:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[r[u>>2]+832>>2]:(r[4+d>>2]=1740,r[d>>2]=2670,mt(4,1294,d),0),G=16+d|0,0|u},B:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[r[u>>2]+888>>2]:(r[4+d>>2]=1740,r[d>>2]=2688,mt(4,1294,d),0),G=16+d|0,0|u},C:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[u+432>>2]:(r[4+d>>2]=1740,r[d>>2]=2716,mt(4,1294,d),0),G=16+d|0,0|u},D:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[r[u>>2]+884>>2]:(r[4+d>>2]=1740,r[d>>2]=2743,mt(4,1294,d),0),G=16+d|0,0|u},E:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[u+440>>2]:(r[4+d>>2]=1740,r[d>>2]=2772,mt(4,1294,d),0),G=16+d|0,0|u},F:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[u+436>>2]:(r[4+d>>2]=1740,r[d>>2]=2797,mt(4,1294,d),0),G=16+d|0,0|u},G:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[u+448>>2]:(r[4+d>>2]=1740,r[d>>2]=2824,mt(4,1294,d),0),G=16+d|0,0|u},H:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[r[u>>2]+912>>2]:(r[4+d>>2]=1740,r[d>>2]=2848,mt(4,1294,d),0),G=16+d|0,0|u},I:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[r[u>>2]+844>>2]:(r[4+d>>2]=1740,r[d>>2]=2873,mt(4,1294,d),0),G=16+d|0,0|u},J:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[r[u>>2]+892>>2]:(r[4+d>>2]=1740,r[d>>2]=2893,mt(4,1294,d),0),G=16+d|0,0|u},K:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[u+444>>2]:(r[4+d>>2]=1740,r[d>>2]=2920,mt(4,1294,d),0),G=16+d|0,0|u},L:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[r[u>>2]+836>>2]:(r[4+d>>2]=1740,r[d>>2]=2950,mt(4,1294,d),0),G=16+d|0,0|u},M:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[r[u>>2]+904>>2]:(r[4+d>>2]=1740,r[d>>2]=2974,mt(4,1294,d),0),G=16+d|0,0|u},N:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[r[u>>2]+840>>2]:(r[4+d>>2]=1740,r[d>>2]=3e3,mt(4,1294,d),0),G=16+d|0,0|u},O:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[u+452>>2]:(r[4+d>>2]=1740,r[d>>2]=3022,mt(4,1294,d),0),G=16+d|0,0|u},P:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[u+456>>2]:(r[4+d>>2]=1740,r[d>>2]=3051,mt(4,1294,d),0),G=16+d|0,0|u},Q:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[r[u>>2]+876>>2]:(r[4+d>>2]=1740,r[d>>2]=3078,mt(4,1294,d),0),G=16+d|0,0|u},R:function(u){var d;G=d=G-16|0,(u|=0)?r[u+428>>2]=1:(r[4+d>>2]=1740,r[d>>2]=3110,mt(4,1294,d)),G=16+d|0},S:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[u+640>>2]:(r[4+d>>2]=1740,r[d>>2]=3139,mt(4,1294,d),0),G=16+d|0,0|u},T:function(u){var d;return G=d=G-16|0,u=(u|=0)?r[u+636>>2]:(r[4+d>>2]=1740,r[d>>2]=3164,mt(4,1294,d),0),G=16+d|0,0|u},U:function(u){var d;return fs(12+(G=d=G-16|0)|0,64,u|=0),G=16+d|0,r[12+d>>2]},V:function(u){var d,S,p=0;return G=S=G-16|0,!(u|=0)||fs(12+S|0,16,d=Lh(u))||(p=Ch(u,r[12+S>>2],d))||(ds(r[12+S>>2]),p=0),G=16+S|0,0|p},W:function(u){return 0|ps(u|=0)},X:function(u){ds(u|=0)},Y:function(u){var d;fs(12+(G=d=G-16|0)|0,64,u|=0),ds(r[12+d>>2]),G=16+d|0},Z:function(){return 0|G},_:function(u){return 0|(G=G-(0|u)&-16)},$:function(u){G=0|u},aa:function(u){return 0|(u=0|(u|=0),(S=0|qh())<(u=S+(u|=0)|0)&&u<65536&&(u=new ArrayBuffer(W(u,65536)),(d=new Nt.Int8Array(u)).set(ot),ot=d,ot=new Nt.Int8Array(u),ci=new Nt.Int16Array(u),r=new Nt.Int32Array(u),lt=new Nt.Uint8Array(u),na=new Nt.Uint16Array(u),ke=new Nt.Uint32Array(u),C=new Nt.Float32Array(u),jt=new Nt.Float64Array(u),Oe=u,Na.buffer=u),S);var d,S},ba:function(u,d){ut[u|=0](d|=0)}};function mt(u,d,S){var p;G=p=G-272|0,ke[1804]>u>>>0||(u=r[1805])&&(Vh(16+p|0,d,r[12+p>>2]=S),ut[u](16+p|0)),G=272+p|0}function Ge(u,d,S){32<[0|u]||function(p,c,T){var h=0,f=0,_=0;e:{if(!(h=r[T+16>>2])){if(function(m){var v;return v=lt[m+74|0],ot[m+74|0]=v+-1|v,8&(v=r[m>>2])?(r[m>>2]=32|v,1):(r[m+4>>2]=0,r[m+8>>2]=0,v=r[m+44>>2],r[m+28>>2]=v,r[m+20>>2]=v,r[m+16>>2]=v+r[m+48>>2],0)}(T))break e;h=r[T+16>>2]}if(h-(_=r[T+20>>2])>>>0>>0)return ut[r[T+36>>2]](T,p,c);t:if(!(ot[T+75|0]<0)){for(h=c;;){if(!(f=h))break t;if(lt[(h=f+-1|0)+p|0]==10)break}if(ut[r[T+36>>2]](T,p,f)>>>0>>0)break e;c=c-f|0,p=p+f|0,_=r[T+20>>2]}Pr(_,p,c),r[T+20>>2]=r[T+20>>2]+c}}(d,S,u)}function tr(u,d,S,p,c){var T,h,f;if(G=f=G-256|0,!(73728&c|(0|S)<=(0|p))){if(Gr(f,d,(T=(c=S-p|0)>>>0<256)?c:256),d=u,h=f,!T){for(S=S-p|0;Ge(u,f,256),255<(c=c+-256|0)>>>0;);c=255&S}Ge(d,h,c)}G=256+f|0}function Pr(u,d,S){var p,c=0;if(8192<=S>>>0)Ph(0|u,0|d,0|S);else{if(p=u+S|0,3&(u^d))if(p>>>0<4)S=u;else if((c=p-4|0)>>>0>>0)S=u;else for(S=u;ot[0|S]=lt[0|d],ot[S+1|0]=lt[d+1|0],ot[S+2|0]=lt[d+2|0],ot[S+3|0]=lt[d+3|0],d=d+4|0,(S=S+4|0)>>>0<=c>>>0;);else{e:if((0|S)<1)S=u;else if(3&u)for(S=u;;){if(ot[0|S]=lt[0|d],d=d+1|0,p>>>0<=(S=S+1|0)>>>0)break e;if(!(3&S))break}else S=u;if(!((u=-4&p)>>>0<64||(c=u+-64|0)>>>0>>0))for(;r[S>>2]=r[d>>2],r[S+4>>2]=r[d+4>>2],r[S+8>>2]=r[d+8>>2],r[S+12>>2]=r[d+12>>2],r[S+16>>2]=r[d+16>>2],r[S+20>>2]=r[d+20>>2],r[S+24>>2]=r[d+24>>2],r[S+28>>2]=r[d+28>>2],r[S+32>>2]=r[d+32>>2],r[S+36>>2]=r[d+36>>2],r[S+40>>2]=r[d+40>>2],r[S+44>>2]=r[d+44>>2],r[S+48>>2]=r[d+48>>2],r[S+52>>2]=r[d+52>>2],r[S+56>>2]=r[d+56>>2],r[S+60>>2]=r[d+60>>2],d=d- -64|0,(S=S- -64|0)>>>0<=c>>>0;);if(!(u>>>0<=S>>>0))for(;r[S>>2]=r[d>>2],d=d+4|0,(S=S+4|0)>>>0>>0;);}if(S>>>0

>>0)for(;ot[0|S]=lt[0|d],d=d+1|0,(0|p)!=(0|(S=S+1|0)););}}function oa(u){var d,S;return b((d=u*u)*d*(S=d*u)*(2718311493989822e-21*d-.00019839334836096632)+(S*(.008333329385889463*d-.16666666641626524)+u))}function Mr(u){var d;return b(-.499999997251031*(u*=u)+1+.04166662332373906*(d=u*u)+u*d*(2439044879627741e-20*u-.001388676377460993))}function Gr(u,d,S){var p,c,T,h;if(S&&(ot[(p=u+S|0)-1|0]=d,ot[0|u]=d,!(S>>>0<3||(ot[p-2|0]=d,ot[u+1|0]=d,ot[p-3|0]=d,ot[u+2|0]=d,S>>>0<7)||(ot[p-4|0]=d,ot[u+3|0]=d,S>>>0<9)||(c=(p=0-u&3)+u|0,d=W(255&d,16843009),r[c>>2]=d,r[(p=(S=S-p&-4)+c|0)-4>>2]=d,S>>>0<9)||(r[8+c>>2]=d,r[4+c>>2]=d,r[p-8>>2]=d,r[p-12>>2]=d,S>>>0<25)||(r[24+c>>2]=d,r[20+c>>2]=d,r[16+c>>2]=d,r[12+c>>2]=d,r[p-16>>2]=d,r[p-20>>2]=d,r[p-24>>2]=d,r[p-28>>2]=d,(S=S-(h=4&c|24)|0)>>>0<32))))for(T=p=d,d=c+h|0;r[d+24>>2]=T,r[d+28>>2]=p,r[d+16>>2]=T,r[d+20>>2]=p,r[d+8>>2]=T,r[d+12>>2]=p,r[d>>2]=T,r[d+4>>2]=p,d=d+32|0,31<(S=S+-32|0)>>>0;);return u}function sa(u,d){var S;if(u>>>0<(d=(u+d|0)-1|0)>>>0)for(;S=lt[0|u],ot[0|u]=lt[0|d],ot[0|d]=S,(u=u+1|0)>>>0<(d=d+-1|0)>>>0;);}function Fa(u){var d,S=qh();return(u=(d=r[2216])+u|0)>>>0<=S<<16>>>0||Mh(0|u)?(r[2216]=u,d):(r[2086]=48,-1)}function fi(u,d,S,p,c,T,h){var f,_,m,v,I,P,M,w,$,D,F=0,H=b(0),U=b(0),V=b(0);if(b(0),b(0),b(0),b(0),G=D=G-16|0,1<=(0|u))for(P=W(u,12)+d|0;;){if(1<=(0|(_=r[d+4>>2])))for(M=(u=r[d+8>>2])+W(_,48)|0,_=(f=r[d>>2]<<4)+h|0,m=(8|f)+h|0,f=(4|f)+h|0;(F=r[u+8>>2])&&((w=F+-1|0)>>>0<=1?($=(r[u+4>>2]<<2)+S|0,F=r[$+(r[u+12>>2]<<2)>>2]<<2,H=C[F+T>>2],I=C[c+F>>2],U=C[p+F>>2],w-1?(V=U,U=C[u+20>>2],C[_>>2]=C[_>>2]+b(C[u+44>>2]*b(V*U)),C[f>>2]=C[f>>2]+b(b(I*U)*C[u+44>>2]),C[m>>2]=C[m>>2]+b(b(H*U)*C[u+44>>2])):(F=r[(r[u+16>>2]<<2)+$>>2]<<2,w=C[F+T>>2],$=C[c+F>>2],V=U,U=C[u+20>>2],v=C[u+24>>2],C[_>>2]=C[_>>2]+b(C[u+44>>2]*b(b(V*U)+b(C[p+F>>2]*v))),C[f>>2]=C[f>>2]+b(b(b(I*U)+b($*v))*C[u+44>>2]),C[m>>2]=C[m>>2]+b(b(b(H*U)+b(w*v))*C[u+44>>2]))):(r[D>>2]=F,mt(4,1024,D))),(u=u+48|0)>>>0>>0;);if(u=(r[d>>2]<<4)+h|0,H=C[u>>2],C[u>>2]=H>2],C[u+4>>2]=H>2],C[u+8>>2]=H>>0

>>0))break}G=16+D|0}function di(u,d,S){var p,c,T=0;if((0|d)==1&u>>>0<0|d>>>0<1)T=u;else for(;p=Kh(T=Qh(u,d,10),c=Ur,10),ot[0|(S=S+-1|0)]=u-p|48,p=(0|d)==9&4294967295>>0|9>>0,u=T,d=c,p;);if(T)for(;ot[0|(S=S+-1|0)]=T-W(u=(T>>>0)/10|0,10)|48,d=9>>0,T=u,d;);return S}function Yi(u){return u+-48>>>0<10}function zi(u){var d;return(d=Jh(u,64))?d-u|0:64}function jn(u,d){var S=0;return 1024<=(0|d)?(u*=898846567431158e293,d=(0|(S=d+-1023|0))<1024?S:(u*=898846567431158e293,((0|d)<3069?d:3069)+-2046|0)):-1023<(0|d)||(u*=22250738585072014e-324,d=-1023<(0|(S=d+1022|0))?S:(u*=22250738585072014e-324,(-3066<(0|d)?d:-3066)+2044|0)),Mt(0,0),Mt(1,d+1023<<20),u*+kr()}function Vn(u,d){var S=0,p=u,c=d>>>0<=31?(S=r[u+4>>2],r[u>>2]):(S=r[u>>2],r[u+4>>2]=S,d=d+-32|(r[u>>2]=0),0);r[p>>2]=c<>2]=S<>>32-d}function Jn(u,d,S,p,c){var T,h=0,f=0,_=0;G=T=G-240|0,h=r[d>>2],r[232+T>>2]=h,d=r[d+4>>2],r[T>>2]=u,f=1;e:{t:{r:{if(((r[236+T>>2]=d)||(0|h)!=1)&&(h=u-r[(S<<2)+c>>2]|0,!((0|ut[5](h,u))<1))){for(_=!p;;){a:{if(d=h,!(!_|(0|S)<2)&&(p=r[((S<<2)+c|0)-8>>2],-1<(0|ut[5](h=u+-4|0,d))||-1<(0|ut[5](h-p|0,d))))break a;if(r[(f<<2)+T>>2]=d,f=f+1|0,Yn(232+T|0,u=Wh(232+T|0)),S=u+S|0,!r[236+T>>2]&&r[232+T>>2]==1)break t;if(_=1,h=(u=d)-r[(S<<2)+c>>2]|(p=0),0<(0|ut[5](h,r[T>>2])))continue;break r}break}d=u;break t}d=u}if(p)break e}zh(T,f),gs(d,S,c)}G=240+T|0}function Yn(u,d){var S=0,p=u,c=d>>>0<=31?(S=r[u>>2],r[u+4>>2]):(S=r[u+4>>2],r[u+4>>2]=0,r[u>>2]=S,d=d+-32|0,0);r[p+4>>2]=c>>>d,r[u>>2]=c<<32-d|S>>>d}function cs(u,d){var S=lt[u+4|0];r[d>>2]=r[u+64>>2]+u,r[d+4>>2]=r[u+68>>2]+u,r[d+8>>2]=r[u+72>>2]+u,r[d+12>>2]=r[u+76>>2]+u,r[d+16>>2]=r[u+80>>2]+u,r[d+20>>2]=r[u+84>>2]+u,r[d+24>>2]=r[u+88>>2]+u,r[d+28>>2]=r[u+92>>2]+u,r[d+32>>2]=r[u+96>>2]+u,r[d+36>>2]=r[u+100>>2]+u,r[d+40>>2]=r[u+104>>2]+u,r[d+44>>2]=r[u+108>>2]+u,r[d+48>>2]=r[u+112>>2]+u,r[d+52>>2]=r[u+116>>2]+u,r[d+56>>2]=r[u+120>>2]+u,r[d+60>>2]=r[u+124>>2]+u,r[d- -64>>2]=r[u+128>>2]+u,r[d+68>>2]=r[u+132>>2]+u,r[d+72>>2]=r[u+136>>2]+u,r[d+76>>2]=r[u+140>>2]+u,r[d+80>>2]=r[u+144>>2]+u,r[d+84>>2]=r[u+148>>2]+u,r[d+92>>2]=r[u+152>>2]+u,r[d+96>>2]=r[u+156>>2]+u,r[d+100>>2]=r[u+160>>2]+u,r[d+108>>2]=r[u+164>>2]+u,r[d+112>>2]=r[u+168>>2]+u,r[d+116>>2]=r[u+172>>2]+u,r[d+124>>2]=r[u+176>>2]+u,r[d+128>>2]=r[u+180>>2]+u,r[d+132>>2]=r[u+184>>2]+u,r[d+136>>2]=r[u+188>>2]+u,r[d+140>>2]=r[u+192>>2]+u,r[d+144>>2]=r[u+196>>2]+u,r[d+148>>2]=r[u+200>>2]+u,r[d+152>>2]=r[u+204>>2]+u,r[d+156>>2]=r[u+208>>2]+u,r[d+164>>2]=r[u+212>>2]+u,r[d+168>>2]=r[u+216>>2]+u,r[d+172>>2]=r[u+220>>2]+u,r[d+176>>2]=r[u+224>>2]+u,r[d+180>>2]=r[u+228>>2]+u,r[d+184>>2]=r[u+232>>2]+u,r[d+188>>2]=r[u+236>>2]+u,r[d+192>>2]=r[u+240>>2]+u,r[d+196>>2]=r[u+244>>2]+u,r[d+200>>2]=r[u+248>>2]+u,r[d+204>>2]=r[u+252>>2]+u,r[d+208>>2]=r[u+256>>2]+u,r[d+212>>2]=r[u+260>>2]+u,r[d+216>>2]=r[u+264>>2]+u,r[d+220>>2]=r[u+268>>2]+u,r[d+224>>2]=r[u+272>>2]+u,r[d+228>>2]=r[u+276>>2]+u,r[d+232>>2]=r[u+280>>2]+u,r[d+236>>2]=r[u+284>>2]+u,r[d+244>>2]=r[u+288>>2]+u,r[d+248>>2]=r[u+292>>2]+u,r[d+272>>2]=r[u+296>>2]+u,r[d+276>>2]=r[u+300>>2]+u,r[d+280>>2]=r[u+304>>2]+u,r[d+292>>2]=r[u+308>>2]+u,r[d+296>>2]=r[u+312>>2]+u,r[d+300>>2]=r[u+316>>2]+u,r[d+304>>2]=r[u+320>>2]+u,r[d+308>>2]=r[u+324>>2]+u,r[d+312>>2]=r[u+328>>2]+u,r[d+316>>2]=r[u+332>>2]+u,r[d+328>>2]=r[u+336>>2]+u,r[d+332>>2]=r[u+340>>2]+u,r[d+336>>2]=r[u+344>>2]+u,r[d+348>>2]=r[u+348>>2]+u,r[d+360>>2]=r[u+352>>2]+u,r[d+364>>2]=r[u+356>>2]+u,r[d+368>>2]=r[u+360>>2]+u,r[d+352>>2]=r[u+364>>2]+u,r[d+356>>2]=r[u+368>>2]+u,r[d+488>>2]=r[u+372>>2]+u,r[d+492>>2]=r[u+376>>2]+u,r[d+496>>2]=r[u+380>>2]+u,r[d+500>>2]=r[u+384>>2]+u,r[d+504>>2]=r[u+388>>2]+u,r[d+508>>2]=r[u+392>>2]+u,r[d+512>>2]=r[u+396>>2]+u,r[d+516>>2]=r[u+400>>2]+u,r[d+520>>2]=r[u+404>>2]+u,r[d+524>>2]=r[u+408>>2]+u,r[d+528>>2]=r[u+412>>2]+u,r[d+532>>2]=r[u+416>>2]+u,r[d+536>>2]=r[u+420>>2]+u,r[d+540>>2]=r[u+424>>2]+u,r[d+544>>2]=r[u+428>>2]+u,r[d+548>>2]=r[u+432>>2]+u,r[d+552>>2]=r[u+436>>2]+u,r[d+556>>2]=r[u+440>>2]+u,r[d+560>>2]=r[u+444>>2]+u,r[d+564>>2]=r[u+448>>2]+u,r[d+568>>2]=r[u+452>>2]+u,r[d+572>>2]=r[u+456>>2]+u,r[d+576>>2]=r[u+460>>2]+u,r[d+580>>2]=r[u+464>>2]+u,S>>>0<2||(r[d+104>>2]=r[u+468>>2]+u,S>>>0<4)||(r[d+260>>2]=r[u+472>>2]+u,r[d+264>>2]=r[u+476>>2]+u,r[d+268>>2]=r[u+480>>2]+u,r[d+88>>2]=r[u+484>>2]+u,r[d+120>>2]=r[u+488>>2]+u,r[d+160>>2]=r[u+492>>2]+u,r[d+584>>2]=r[u+496>>2]+u,r[d+588>>2]=r[u+500>>2]+u,r[d+592>>2]=r[u+504>>2]+u,r[d+596>>2]=r[u+508>>2]+u,r[d+600>>2]=r[u+512>>2]+u,r[d+604>>2]=r[u+516>>2]+u,r[d+240>>2]=r[u+520>>2]+u,r[d+252>>2]=r[u+524>>2]+u,r[d+256>>2]=r[u+528>>2]+u,r[d+372>>2]=r[u+532>>2]+u,r[d+376>>2]=r[u+536>>2]+u,r[d+380>>2]=r[u+540>>2]+u,r[d+384>>2]=r[u+544>>2]+u,r[d+388>>2]=r[u+548>>2]+u,r[d+392>>2]=r[u+552>>2]+u,r[d+396>>2]=r[u+556>>2]+u,r[d+400>>2]=r[u+560>>2]+u,r[d+416>>2]=r[u+564>>2]+u,r[d+420>>2]=r[u+568>>2]+u,r[d+424>>2]=r[u+572>>2]+u,r[d+440>>2]=r[u+576>>2]+u,r[d+444>>2]=r[u+580>>2]+u,r[d+448>>2]=r[u+584>>2]+u,r[d+464>>2]=r[u+588>>2]+u,r[d+468>>2]=r[u+592>>2]+u,r[d+472>>2]=r[u+596>>2]+u,r[d+476>>2]=r[u+600>>2]+u,r[d+480>>2]=r[u+604>>2]+u,r[d+484>>2]=r[u+608>>2]+u,(0|S)!=4&&(r[d+284>>2]=r[u+612>>2]+u,r[d+288>>2]=r[u+616>>2]+u,r[d+320>>2]=r[u+620>>2]+u,r[d+324>>2]=r[u+624>>2]+u,r[d+340>>2]=r[u+628>>2]+u,r[d+344>>2]=r[u+632>>2]+u,r[d+404>>2]=r[u+636>>2]+u,r[d+408>>2]=r[u+640>>2]+u,r[d+412>>2]=r[u+644>>2]+u,r[d+428>>2]=r[u+648>>2]+u,r[d+432>>2]=r[u+652>>2]+u,r[d+436>>2]=r[u+656>>2]+u,r[d+452>>2]=r[u+660>>2]+u,r[d+456>>2]=r[u+664>>2]+u,r[d+460>>2]=r[u+668>>2]+u))}function fs(u,d,S){var p=0;e:{if((0|d)==8)d=ps(S);else{if(p=28,3&d|(0|function(c){for(var T=0,h=0;h=T,c;)c&=c-1,T=T+1|0;return h}(d>>>2))!=1||(p=48,-64-d>>>0>>0))break e;d=function(c,T){var h,f,_=0,m=0,v=0;if((m=c>>>0>(_=16)?c:16)+-1&m)for(;_=(c=_)<<1,c>>>0>>0;);else c=m;return-64-c>>>0<=T>>>0?(r[2086]=48,0):(_=ps(12+((m=T>>>0<11?16:T+11&-8)+c|0)|0))?(T=_+-8|0,_&c+-1?(v=(-8&(f=r[(h=_+-4|0)>>2]))-(_=(c=15<(_=((c+_|0)-1&0-c)-8|0)-T>>>0?_:c+_|0)-T|0)|0,3&f?(r[c+4>>2]=v|1&r[c+4>>2]|2,r[4+(v=c+v|0)>>2]=1|r[4+v>>2],r[h>>2]=_|1&r[h>>2]|2,r[c+4>>2]=1|r[c+4>>2],Dh(T,_)):(T=r[T>>2],r[c+4>>2]=v,r[c>>2]=T+_)):c=T,3&(T=r[c+4>>2])&&((_=-8&T)>>>0<=m+16>>>0||(r[c+4>>2]=m|1&T|2,r[(T=c+m|0)+4>>2]=3|(m=_-m|0),r[4+(_=c+_|0)>>2]=1|r[_+4>>2],Dh(T,m))),c+8|0):0}(16>>0?d:16,S)}if(!d)return 1;r[u>>2]=d,p=0}return p}function ds(u){var d,S=0,p=0,c=0,T=0,h=0,f=0,_=0;e:if(u){d=(c=u+-8|0)+(u=-8&(p=r[u+-4>>2]))|0;t:if(!(1&p)){if(!(3&p)||(c=c-(p=r[c>>2])|0)>>>0>>0<=255)T=r[c+8>>2],p>>>=3,(0|(S=r[c+12>>2]))==(0|T)?(_=r[2087]&or(p),r[2087]=_):(r[T+12>>2]=S,r[S+8>>2]=T);else{if(f=r[c+24>>2],(0|c)!=(0|(p=r[c+12>>2])))S=r[c+8>>2],r[S+12>>2]=p,r[p+8>>2]=S;else if(S=(S=r[(T=c+20|0)>>2])||r[(T=c+16|0)>>2]){for(;h=T,(S=r[(T=(p=S)+20|0)>>2])||(T=p+16|0,S=r[p+16>>2]););r[h>>2]=0}else p=0;if(f){T=r[c+28>>2];r:{if(r[(S=8652+(T<<2)|0)>>2]==(0|c)){if(r[S>>2]=p)break r;_=r[2088]&or(T),r[2088]=_;break t}if(!(r[f+(r[f+16>>2]==(0|c)?16:20)>>2]=p))break t}r[p+24>>2]=f,(S=r[c+16>>2])&&(r[p+16>>2]=S,r[S+24>>2]=p),(S=r[c+20>>2])&&(r[p+20>>2]=S,r[S+24>>2]=p)}}else if((3&(p=r[4+d>>2]))==3)return r[2089]=u,r[4+d>>2]=-2&p,r[c+4>>2]=1|u,r[u+c>>2]=u}if(!(d>>>0<=c>>>0)&&1&(p=r[4+d>>2])){t:{if(!(2&p)){if(r[2093]==(0|d)){if(r[2093]=c,u=r[2090]+u|0,r[2090]=u,r[c+4>>2]=1|u,r[2092]!=(0|c))break e;return r[2089]=0,r[2092]=0}if(r[2092]==(0|d))return r[2092]=c,u=r[2089]+u|0,r[2089]=u,r[c+4>>2]=1|u,r[u+c>>2]=u;u=(-8&p)+u|0;r:if(p>>>0<=255)p>>>=3,(0|(S=r[8+d>>2]))==(0|(T=r[12+d>>2]))?(_=r[2087]&or(p),r[2087]=_):(r[S+12>>2]=T,r[T+8>>2]=S);else{if(f=r[24+d>>2],(0|d)!=(0|(p=r[12+d>>2])))S=r[8+d>>2],r[S+12>>2]=p,r[p+8>>2]=S;else if(S=(S=r[(T=20+d|0)>>2])||r[(T=16+d|0)>>2]){for(;h=T,(S=r[(T=(p=S)+20|0)>>2])||(T=p+16|0,S=r[p+16>>2]););r[h>>2]=0}else p=0;if(f){T=r[28+d>>2];a:{if(r[(S=8652+(T<<2)|0)>>2]==(0|d)){if(r[S>>2]=p)break a;_=r[2088]&or(T),r[2088]=_;break r}if(!(r[f+(r[f+16>>2]==(0|d)?16:20)>>2]=p))break r}r[p+24>>2]=f,(S=r[16+d>>2])&&(r[p+16>>2]=S,r[S+24>>2]=p),(S=r[20+d>>2])&&(r[p+20>>2]=S,r[S+24>>2]=p)}}if(r[c+4>>2]=1|u,r[u+c>>2]=u,r[2092]!=(0|c))break t;return r[2089]=u}r[4+d>>2]=-2&p,r[c+4>>2]=1|u,r[u+c>>2]=u}if(u>>>0<=255)return p=8388+((u>>>=3)<<3)|0,u=(S=r[2087])&(u=1<>2]:(r[2087]=u|S,p),r[p+8>>2]=c,r[u+12>>2]=c,r[c+12>>2]=p,r[c+8>>2]=u;r[c+16>>2]=0,S=r[c+20>>2]=0,(T=u>>>8)&&(S=31,16777215>>0||(S=T,S=28+((S=((S=(S<<=T=T+1048320>>>16&8)<<(f=S+520192>>>16&4))<<(h=S+245760>>>16&2)>>>15)-(h|T|f)|0)<<1|u>>>S+21&1)|0)),h=8652+((r[(p=c)+28>>2]=S)<<2)|0;t:if((T=r[2088])&(p=1<>>1)|0),p=r[h>>2];r:{for(;;){if((-8&r[(S=p)+4>>2])==(0|u))break r;if(p=T>>>29,T<<=1,!(p=r[16+(h=S+(4&p)|0)>>2]))break}r[h+16>>2]=c,r[c+12>>2]=c,r[c+24>>2]=S,r[c+8>>2]=c;break t}u=r[S+8>>2],r[u+12>>2]=c,r[S+8>>2]=c,r[c+24>>2]=0,r[c+12>>2]=S,r[c+8>>2]=u}else r[2088]=p|T,r[h>>2]=c,r[c+12>>2]=c,r[c+24>>2]=h,r[c+8>>2]=c;if(u=r[2095]+-1|0,!(r[2095]=u)){for(c=8804;c=(u=r[c>>2])+8|0,u;);r[2095]=-1}}}}function ps(u){var d,S=0,p=0,c=0,T=0,h=0,f=0,_=0,m=0,v=0,I=0,P=0;G=d=G-16|0;e:{t:{r:{a:{i:{o:{n:{c:{f:{u:{s:{if(u>>>0<=244){if(3&(S=(h=r[2087])>>>(u=(f=u>>>0<11?16:u+11&-8)>>>3))){u=(S=r[8396+(T=(p=u+(1&(-1^S))|0)<<3)>>2])+8|0,(0|(c=r[S+8>>2]))==(0|(T=T+8388|0))?(P=or(p)&h,r[2087]=P):(r[c+12>>2]=T,r[T+8>>2]=c),r[S+4>>2]=3|(p<<=3),r[4+(S=S+p|0)>>2]=1|r[S+4>>2];break e}if(f>>>0<=(m=r[2089])>>>0)break s;if(S){p=S=(u=(0-(u=(0-(p=2<>>12&16,S=r[8396+(c=(p=((p=(p|=S=(u>>>=S)>>>5&8)|(S=(u>>>=S)>>>2&4)|(S=(u>>>=S)>>>1&2))|(S=(u>>>=S)>>>1&1))+(u>>>S)|0)<<3)>>2],(0|(u=r[S+8>>2]))==(0|(c=c+8388|0))?(h=or(p)&h,r[2087]=h):(r[u+12>>2]=c,r[c+8>>2]=u),u=S+8|0,r[S+4>>2]=3|f,r[4+(_=S+f|0)>>2]=1|(T=(p<<=3)-f|0),r[S+p>>2]=T,m&&(S=8388+((p=m>>>3)<<3)|0,c=r[2092],p=(p=1<>2]:(r[2087]=p|h,S),r[S+8>>2]=c,r[p+12>>2]=c,r[c+12>>2]=S,r[c+8>>2]=p),r[2092]=_,r[2089]=T;break e}if(!(I=r[2088]))break s;for(p=S=(u=(I&0-I)-1|0)>>>12&16,S=r[8652+(((p=(p|=S=(u>>>=S)>>>5&8)|(S=(u>>>=S)>>>2&4)|(S=(u>>>=S)>>>1&2))|(S=(u>>>=S)>>>1&1))+(u>>>S)<<2)>>2],c=(-8&r[S+4>>2])-f|0,p=S;u=(u=r[p+16>>2])||r[p+20>>2];)c=(p=(T=(-8&r[u+4>>2])-f|0)>>>0>>0)?T:c,S=p?u:S,p=u;if(v=r[S+24>>2],(0|(T=r[S+12>>2]))!=(0|S)){u=r[S+8>>2],r[u+12>>2]=T,r[T+8>>2]=u;break t}if(!(u=r[(p=S+20|0)>>2])){if(!(u=r[S+16>>2]))break u;p=S+16|0}for(;_=p,(u=r[(p=(T=u)+20|0)>>2])||(p=T+16|0,u=r[T+16>>2]););r[_>>2]=0;break t}if(f=-1,!(4294967231>>0)&&(f=-8&(S=u+11|0),m=r[2088])){p=0-f|0,h=0,(S>>>=8)&&(h=31,16777215>>0||(h=28+((u=((h=(S<<=c=S+1048320>>>16&8)<<(u=S+520192>>>16&4))<<(S=h+245760>>>16&2)>>>15)-(S|u|c)|0)<<1|f>>>u+21&1)|0));d:{p:{if(c=r[8652+(h<<2)>>2])for(S=f<<((0|h)==31?0:25-(h>>>1)|0),u=0;;){if(!(p>>>0<=(_=(-8&r[c+4>>2])-f|0)>>>0||(T=c,p=_))){p=0,u=c;break p}if(_=r[c+20>>2],c=r[16+((S>>>29&4)+c|0)>>2],u=_&&(0|_)!=(0|c)?_:u,S<<=(0|c)!=0,!c)break}else u=0;if(!(u|T)){if(!(u=(0-(u=2<>>12&16,u=r[8652+(((c=(c|=S=(u>>>=S)>>>5&8)|(S=(u>>>=S)>>>2&4)|(S=(u>>>=S)>>>1&2))|(S=(u>>>=S)>>>1&1))+(u>>>S)<<2)>>2]}if(!u)break d}for(;p=(S=(c=(-8&r[u+4>>2])-f|0)>>>0

>>0)?c:p,T=S?u:T,u=(S=r[u+16>>2])||r[u+20>>2];);}if(!(!T|p>>>0>=r[2089]-f>>>0)){if(_=r[T+24>>2],(0|T)!=(0|(S=r[T+12>>2]))){u=r[T+8>>2],r[u+12>>2]=S,r[S+8>>2]=u;break r}if(!(u=r[(c=T+20|0)>>2])){if(!(u=r[T+16>>2]))break f;c=T+16|0}for(;h=c,(u=r[(c=(S=u)+20|0)>>2])||(c=S+16|0,u=r[S+16>>2]););r[h>>2]=0;break r}}}if(f>>>0<=(S=r[2089])>>>0){u=r[2092],16<=(p=S-f|0)>>>0?(r[2089]=p,r[2092]=c=u+f|0,r[c+4>>2]=1|p,r[u+S>>2]=p,r[u+4>>2]=3|f):(r[2092]=0,r[2089]=0,r[u+4>>2]=3|S,r[4+(S=u+S|0)>>2]=1|r[S+4>>2]),u=u+8|0;break e}if(f>>>0<(c=r[2090])>>>0){r[2090]=S=c-f|0,u=r[2093],r[2093]=p=u+f|0,r[p+4>>2]=1|S,r[u+4>>2]=3|f,u=u+8|0;break e}if((p=(h=(p=T=f+47|(u=0))+(S=r[2205]?r[2207]:(r[2208]=-1,r[2209]=-1,r[2206]=4096,r[2207]=4096,r[2205]=12+d&-16^1431655768,r[2210]=0,r[2198]=0,4096))|0)&(_=0-S|0))>>>0<=f>>>0||(S=r[2197])&&(v=(m=r[2195])+p|0)>>>0<=m>>>0|S>>>0>>0)break e;if(4<[8792])break o;s:{d:{if(S=r[2093])for(u=8796;;){if((m=r[u>>2])+r[u+4>>2]>>>0>S>>>0&&m>>>0<=S>>>0)break d;if(!(u=r[u+8>>2]))break}if((0|(S=Fa(0)))==-1||(h=p,(h=(c=(u=r[2206])+-1|0)&S?(p-S|0)+(S+c&0-u)|0:h)>>>0<=f>>>0|2147483646>>0)||(u=r[2197])&&(_=(c=r[2195])+h|0)>>>0<=c>>>0|u>>>0<_>>>0)break n;if((0|S)!=(0|(u=Fa(h))))break s;break i}if(2147483646<(h=_&h-c)>>>0)break n;if((0|(S=Fa(h)))==(r[u>>2]+r[u+4>>2]|0))break c;u=S}if(!(f+48>>>0<=h>>>0|2147483646>>0|(0|(S=u))==-1)){if(2147483646<(u=(u=r[2207])+(T-h|0)&0-u)>>>0)break i;if((0|Fa(u))!=-1){h=u+h|0;break i}Fa(0-h|0);break n}if((0|S)!=-1)break i;break n}T=0;break t}S=0;break r}if((0|S)!=-1)break i}r[2198]=4|r[2198]}if(2147483646

>>0||(S=Fa(p),(u=Fa(0))>>>0<=S>>>0|(0|S)==-1|(0|u)==-1)||(h=u-S|0)>>>0<=f+40>>>0)break a}u=r[2195]+h|0,(r[2195]=u)>>>0>ke[2196]&&(r[2196]=u);i:{o:{n:{if(p=r[2093]){for(u=8796;;){if(((c=r[u>>2])+(T=r[u+4>>2])|0)==(0|S))break n;if(!(u=r[u+8>>2]))break}break o}for((u=r[2091])>>>0<=S>>>0&&u||(r[2091]=S),u=0,r[2200]=h,r[2199]=S,r[2095]=-1,r[2096]=r[2205],r[2202]=0;r[8396+(p=u<<3)>>2]=c=p+8388|0,r[p+8400>>2]=c,(0|(u=u+1|0))!=32;);r[2090]=c=(u=h+-40|0)-(p=S+8&7?-8-S&7:0)|0,r[2093]=p=S+p|0,r[p+4>>2]=1|c,r[4+(u+S|0)>>2]=40,r[2094]=r[2209];break i}if(!(8<[u+12|0]|S>>>0<=p>>>0|p>>>0>>0)){r[u+4>>2]=T+h,r[2093]=S=(u=p+8&7?-8-p&7:0)+p|0,c=r[2090]+h|0,r[2090]=u=c-u|0,r[S+4>>2]=1|u,r[4+(p+c|0)>>2]=40,r[2094]=r[2209];break i}}S>>>0<(T=r[2091])>>>0&&(r[2091]=S,T=0),c=S+h|0,u=8796;o:{n:{c:{f:{u:{s:{for(;(0|c)!=r[u>>2];)if(!(u=r[u+8>>2]))break s;if(!(8<[u+12|0]))break u}for(u=8796;;){if((c=r[u>>2])>>>0<=p>>>0&&p>>>0<(T=c+r[u+4>>2]|0)>>>0)break f;u=r[u+8>>2]}}if(r[u>>2]=S,r[u+4>>2]=r[u+4>>2]+h,r[4+(v=(S+8&7?-8-S&7:0)+S|0)>>2]=3|f,u=((S=c+(c+8&7?-8-c&7:0)|0)-v|0)-f|0,_=f+v|0,(0|S)==(0|p)){r[2093]=_,u=r[2090]+u|0,r[2090]=u,r[_+4>>2]=1|u;break n}if(r[2092]==(0|S)){r[2092]=_,u=r[2089]+u|0,r[2089]=u,r[_+4>>2]=1|u,r[u+_>>2]=u;break n}if((3&(p=r[S+4>>2]))==1){I=-8&p;u:if(p>>>0<=255)T=p>>>3,p=r[S+8>>2],(0|(c=r[S+12>>2]))==(0|p)?(P=r[2087]&or(T),r[2087]=P):(r[p+12>>2]=c,r[c+8>>2]=p);else{if(m=r[S+24>>2],(0|(h=r[S+12>>2]))!=(0|S))p=r[S+8>>2],r[p+12>>2]=h,r[h+8>>2]=p;else if(f=(f=r[(c=S+20|0)>>2])||r[(c=S+16|0)>>2]){for(;p=c,(f=r[(c=(h=f)+20|0)>>2])||(c=h+16|0,f=r[h+16>>2]););r[p>>2]=0}else h=0;if(m){p=r[S+28>>2];s:{if(r[(c=8652+(p<<2)|0)>>2]==(0|S)){if(r[c>>2]=h)break s;P=r[2088]&or(p),r[2088]=P;break u}if(!(r[m+(r[m+16>>2]==(0|S)?16:20)>>2]=h))break u}r[h+24>>2]=m,(p=r[S+16>>2])&&(r[h+16>>2]=p,r[p+24>>2]=h),(p=r[S+20>>2])&&(r[h+20>>2]=p,r[p+24>>2]=h)}}S=S+I|0,u=u+I|0}if(r[S+4>>2]=-2&r[S+4>>2],r[_+4>>2]=1|u,(r[u+_>>2]=u)>>>0<=255){u=8388+((S=u>>>3)<<3)|0,S=(p=r[2087])&(S=1<>2]:(r[2087]=S|p,u),r[u+8>>2]=_,r[S+12>>2]=_,r[_+12>>2]=u,r[_+8>>2]=S;break n}if(S=0,(c=u>>>8)&&(S=31,16777215>>0||(S=28+((S=((f=(c<<=T=c+1048320>>>16&8)<<(S=c+520192>>>16&4))<<(c=f+245760>>>16&2)>>>15)-(c|S|T)|0)<<1|u>>>S+21&1)|0)),r[(p=_)+28>>2]=S,r[_+16>>2]=0,p=8652+(S<<2)|(r[_+20>>2]=0),(c=r[2088])&(T=1<>>1)|0),S=r[p>>2];;){if((-8&r[(p=S)+4>>2])==(0|u))break c;if(S=c>>>29,c<<=1,!(S=r[16+(T=(4&S)+p|0)>>2]))break}r[T+16>>2]=_}else r[2088]=c|T,r[p>>2]=_;r[_+24>>2]=p,r[_+12>>2]=_,r[_+8>>2]=_;break n}for(r[2090]=_=(u=h+-40|0)-(c=S+8&7?-8-S&7:0)|0,r[2093]=c=S+c|0,r[c+4>>2]=1|_,r[4+(u+S|0)>>2]=40,r[2094]=r[2209],r[(c=(u=(T+(T+-39&7?39-T&7:0)|0)-47|0)>>>0>>0?p:u)+4>>2]=27,u=r[2202],r[c+16>>2]=r[2201],r[c+20>>2]=u,u=r[2200],r[c+8>>2]=r[2199],r[c+12>>2]=u,r[2201]=c+8,r[2200]=h,r[2199]=S,u=c+24|(r[2202]=0);r[u+4>>2]=7,S=u+8|0,u=u+4|0,S>>>0>>0;);if((0|p)==(0|c))break i;if(r[c+4>>2]=-2&r[c+4>>2],r[p+4>>2]=1|(T=c-p|0),(r[c>>2]=T)>>>0<=255){u=8388+((S=T>>>3)<<3)|0,S=(c=r[2087])&(S=1<>2]:(r[2087]=S|c,u),r[u+8>>2]=p,r[S+12>>2]=p,r[p+12>>2]=u,r[p+8>>2]=S;break i}if(r[p+16>>2]=0,u=r[p+20>>2]=0,(c=T>>>8)&&(u=31,16777215>>0||(u=28+((u=((_=(c<<=h=c+1048320>>>16&8)<<(u=c+520192>>>16&4))<<(c=_+245760>>>16&2)>>>15)-(c|u|h)|0)<<1|T>>>u+21&1)|0)),S=8652+((r[(S=p)+28>>2]=u)<<2)|0,(c=r[2088])&(h=1<>>1)|0),S=r[S>>2];;){if((0|T)==(-8&r[(c=S)+4>>2]))break o;if(S=u>>>29,u<<=1,!(S=r[16+(h=c+(4&S)|0)>>2]))break}r[h+16>>2]=p,r[p+24>>2]=c}else r[2088]=c|h,r[S>>2]=p,r[p+24>>2]=S;r[p+12>>2]=p,r[p+8>>2]=p;break i}u=r[p+8>>2],r[u+12>>2]=_,r[p+8>>2]=_,r[_+24>>2]=0,r[_+12>>2]=p,r[_+8>>2]=u}u=v+8|0;break e}u=r[c+8>>2],r[u+12>>2]=p,r[c+8>>2]=p,r[p+24>>2]=0,r[p+12>>2]=c,r[p+8>>2]=u}if(!((u=r[2090])>>>0<=f>>>0)){r[2090]=S=u-f|0,u=r[2093],r[2093]=p=u+f|0,r[p+4>>2]=1|S,r[u+4>>2]=3|f,u=u+8|0;break e}}r[2086]=48,u=0;break e}r:if(_){u=r[T+28>>2];a:{if(r[(c=8652+(u<<2)|0)>>2]==(0|T)){if(r[c>>2]=S)break a;m=or(u)&m,r[2088]=m;break r}if(!(r[_+(r[_+16>>2]==(0|T)?16:20)>>2]=S))break r}r[S+24>>2]=_,(u=r[T+16>>2])&&(r[S+16>>2]=u,r[u+24>>2]=S),(u=r[T+20>>2])&&(r[S+20>>2]=u,r[u+24>>2]=S)}r:if(p>>>0<=15)r[T+4>>2]=3|(u=p+f|0),r[4+(u=u+T|0)>>2]=1|r[u+4>>2];else if(r[T+4>>2]=3|f,r[4+(c=T+f|0)>>2]=1|p,(r[p+c>>2]=p)>>>0<=255)u=8388+((S=p>>>3)<<3)|0,S=(p=r[2087])&(S=1<>2]:(r[2087]=S|p,u),r[u+8>>2]=c,r[S+12>>2]=c,r[c+12>>2]=u,r[c+8>>2]=S;else{u=0,(f=p>>>8)&&(u=31,16777215

>>0||(u=28+((u=((_=(f<<=h=f+1048320>>>16&8)<<(u=f+520192>>>16&4))<<(f=_+245760>>>16&2)>>>15)-(f|u|h)|0)<<1|p>>>u+21&1)|0)),r[(S=c)+28>>2]=u,r[c+16>>2]=0,S=8652+(u<<2)|(r[c+20>>2]=0);a:{if((f=1<>>1)|0),f=r[S>>2];;){if((-8&r[(S=f)+4>>2])==(0|p))break a;if(f=u>>>29,u<<=1,!(f=r[16+(h=(4&f)+S|0)>>2]))break}r[h+16>>2]=c}else r[2088]=f|m,r[S>>2]=c;r[c+24>>2]=S,r[c+12>>2]=c,r[c+8>>2]=c;break r}u=r[S+8>>2],r[u+12>>2]=c,r[S+8>>2]=c,r[c+24>>2]=0,r[c+12>>2]=S,r[c+8>>2]=u}u=T+8|0;break e}t:if(v){u=r[S+28>>2];r:{if(r[(p=8652+(u<<2)|0)>>2]==(0|S)){if(r[p>>2]=T)break r;P=or(u)&I,r[2088]=P;break t}if(!(r[v+(r[v+16>>2]==(0|S)?16:20)>>2]=T))break t}r[T+24>>2]=v,(u=r[S+16>>2])&&(r[T+16>>2]=u,r[u+24>>2]=T),(u=r[S+20>>2])&&(r[T+20>>2]=u,r[u+24>>2]=T)}c>>>0<=15?(r[S+4>>2]=3|(u=c+f|0),r[4+(u=u+S|0)>>2]=1|r[u+4>>2]):(r[S+4>>2]=3|f,r[4+(f=S+f|0)>>2]=1|c,r[c+f>>2]=c,m&&(u=8388+((p=m>>>3)<<3)|0,T=r[2092],p=(p=1<>2]:(r[2087]=p|h,u),r[u+8>>2]=T,r[p+12>>2]=T,r[T+12>>2]=u,r[T+8>>2]=p),r[2092]=f,r[2089]=c),u=S+8|0}return G=16+d|0,u}function _s(u,d,S,p,c,T,h){var f,_,m,v=0,I=0,P=0,M=0,w=0,$=0,D=0,F=0,H=0,U=0,V=0,Z=0;r[76+(G=m=G-80|0)>>2]=d,_=55+m|0,f=56+m|0,d=0;e:{t:{r:for(;;){(0|H)<0||(H=(2147483647-H|0)<(0|d)?(r[2086]=61,-1):d+H|0);a:{i:{o:{n:{c:{f:{u:{s:{d:{p:{g:{v:{_:{if(M=r[76+m>>2],P=lt[0|(d=M)]){for(;;){y:{b:{l:if(v=255&P){if((0|v)!=37)break b;for(P=d;;){if(lt[d+1|0]!=37)break l;if(r[76+m>>2]=v=d+2|0,P=P+1|0,I=lt[d+2|0],d=v,(0|I)!=37)break}}else P=d;if(d=P-M|0,u&&Ge(u,M,d),d)continue r;U=-1,w=!Yi(ot[r[76+(v=m)>>2]+(P=1)|0]),d=r[76+m>>2],w|lt[d+2|0]!=36||(U=ot[d+1|0]+-48|0,V=1,P=3),r[v+76>>2]=d=P+d|0;l:if(31<(I=(D=ot[(P=0)|d])+-32|0)>>>0)v=d;else if(v=d,75913&(I=1<>2]=v=d+1|0,P|=I,31<(I=(D=ot[d+1|0])+-32|0)>>>0)break l;if(d=v,!(75913&(I=1<>2],lt[d+2|0]==36))r[((ot[d+1|0]<<2)+c|0)-192>>2]=10,F=r[((ot[d+1|0]<<3)+p|0)-384>>2],V=1,d=d+3|0;else{if(V)break t;F=V=0,u&&(d=r[S>>2],r[S>>2]=d+4,F=r[d>>2]),d=r[76+m>>2]+1|0}r[w+76>>2]=d,-1<(0|F)||(F=0-F|0,P|=8192)}else{if((0|(F=Xh(76+m|0)))<0)break t;d=r[76+m>>2]}if(I=-1,lt[0|d]==46)if(lt[d+1|0]==42)if(Yi(ot[d+2|0])&&(d=r[76+m>>2],lt[d+3|0]==36))r[((ot[d+2|0]<<2)+c|0)-192>>2]=10,I=r[((ot[d+2|0]<<3)+p|0)-384>>2],r[76+m>>2]=d=d+4|0;else{if(V)break t;I=u?(d=r[S>>2],r[S>>2]=d+4,r[d>>2]):0,d=r[76+m>>2]+2|0,r[76+m>>2]=d}else r[76+m>>2]=d+1,I=Xh(76+m|0),d=r[76+m>>2];for(v=0;;){if(Z=v,$=-1,57>>0)break e;if(r[76+m>>2]=D=d+1|0,v=ot[0|d],d=D,!((v=lt[3295+(v+W(Z,58)|0)|0])+-1>>>0<8))break}if(!v)break e;l:{h:{m:{if((0|v)==19){if((0|U)<=-1)break m;break e}if((0|U)<0)break h;r[(U<<2)+c>>2]=v,v=r[4+(d=(U<<3)+p|0)>>2],r[64+m>>2]=r[d>>2],r[68+m>>2]=v}if(d=0,u)break l;continue r}if(!u)break a;Gh(64+m|0,v,S,h),D=r[76+m>>2]}if(w=-65537&P,P=8192&P?w:P,U=3336,v=f,d=ot[D+-1|($=0)],(D=(d=Z&&(15&d)==3?-33&d:d)+-88|0)>>>0<=32)break y;l:{h:{m:{x:{if(6<(w=d+-65|0)>>>0){if((0|d)!=83)break i;if(!I)break x;v=r[64+m>>2];break h}switch(w-1|0){case 1:break m;case 0:case 2:break i;default:break _}}tr(u,32,F,d=0,P);break l}r[12+m>>2]=0,r[8+m>>2]=r[64+m>>2],r[64+m>>2]=8+m,I=-1,v=8+m|0}d=0;h:{for(;;){if(!(M=r[v>>2]))break h;if((w=(0|(M=kh(4+m|0,M)))<0)|I-d>>>0>>0)break;if(v=v+4|0,!((d=d+M|0)>>>0>>0))break h}if($=-1,w)break e}if(tr(u,32,F,d,P),d)for(I=0,v=r[64+m>>2];;){if(!(M=r[v>>2])||(0|d)<(0|(I=(M=kh(4+m|0,M))+I|0)))break l;if(Ge(u,4+m|0,M),v=v+4|0,!(I>>>0>>0))break}else d=0}tr(u,32,F,d,8192^P),d=(0|d)<(0|F)?F:d;continue r}r[76+m>>2]=v=d+1|0,P=lt[d+1|0],d=v;continue}break}switch(D-1|0){case 28:break c;case 21:break f;case 23:break s;case 22:break d;case 11:case 16:break p;case 10:break g;case 26:break v;case 8:case 12:case 13:case 14:break _;case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 9:case 15:case 17:case 18:case 19:case 20:case 24:case 25:case 27:case 29:case 30:break i;default:break u}}if($=H,u)break e;if(!V)break a;for(d=1;;){if(u=r[(d<<2)+c>>2]){if(Gh((d<<3)+p|0,u,S,h),(0|(d=d+($=1)|0))!=10)continue;break e}break}if($=1,9>>0||($=-1,r[(d<<2)+c>>2]))break e;for(;!r[((d=d+1|0)<<2)+c>>2]&&(0|d)!=10;);$=d>>>0<10?-1:1;break e}d=0|ut[T](u,jt[64+m>>3],F,I,P,d);continue}v=(d=Jh(M=(d=r[64+m>>2])||3346,I))||I+M|0,P=w,I=d?d-M|0:I;break i}ot[55+m|0]=r[64+m>>2],I=1,M=_,P=w;break i}if(d=w=r[68+m>>2],M=r[64+m>>2],(0|d)<-1||(0|d)<=-1&&!(4294967295>>0)){d=0-(d+(0>>0)|0)|0,r[64+m>>2]=M=0-M|0,r[68+m>>2]=d,$=1,U=3336;break n}if(2048&P){$=1,U=3337;break n}U=($=1&P)?3338:3336;break n}if(M=function(it,vt,Tt){if(it|vt)for(;ot[0|(Tt=Tt+-1|0)]=7&it|48,(it=(7&vt)<<29|it>>>3)|(vt>>>=3););return Tt}(r[64+m>>2],r[68+m>>2],f),!(8&P))break o;I=(0|(d=f-M|0))<(0|I)?I:d+1|0;break o}I=8>>0?I:8,P|=8,d=120}if(M=function(it,vt,Tt,Lt){if(it|vt)for(;ot[0|(Tt=Tt+-1|0)]=lt[3824+(15&it)|0]|Lt,(it=(15&vt)<<28|it>>>4)|(vt>>>=4););return Tt}(r[64+m>>2],r[68+m>>2],f,32&d),!(8&P)|!(r[64+m>>2]|r[68+m>>2]))break o;U=3336+(d>>>4)|0,$=2;break o}if(7<(v=255&Z)>>>(d=0))continue;switch(v-1|0){default:case 0:r[r[64+m>>2]>>2]=H;continue;case 1:v=r[64+m>>2],r[v>>2]=H,r[v+4>>2]=H>>31;continue;case 2:ci[r[64+m>>2]>>1]=H;continue;case 3:ot[r[64+m>>2]]=H;continue;case 5:r[r[64+m>>2]>>2]=H;continue;case 4:continue;case 6:}v=r[64+m>>2],r[v>>2]=H,r[v+4>>2]=H>>31;continue}M=r[64+m>>2],d=r[68+m>>2],U=3336}M=di(M,d,f)}P=-1<(0|I)?-65537&P:P,I=!!((w=d=r[68+m>>2])|(D=r[64+m>>2]))|I?(0|(d=!(w|D)+(f-M|0)|0))<(0|I)?I:d:(M=f,0)}tr(u,32,d=(0|F)<(0|(v=(I=(0|I)<(0|(w=v-M|0))?w:I)+$|0))?v:F,v,P),Ge(u,U,$),tr(u,48,d,v,65536^P),tr(u,48,I,w,0),Ge(u,M,w),tr(u,32,d,v,8192^P);continue}break}$=0;break e}$=-1}return G=80+m|0,$}function ms(u){var d,S=0,T=0,c=0,p=0,c=4,T=1439;e:if(S=lt[0|u]){for(;!((0|(d=lt[0|T]))!=(0|S)||!(c=c+-1|0)|!d);)if(T=T+1|0,S=lt[u+1|0],u=u+1|0,!S)break e;p=S}return(255&p)-lt[0|T]|0}function gs(u,d,S){var p,c,T=0,h=0,f=0;r[(G=c=G-240|0)>>2]=u,h=1;e:if(!((0|d)<2))for(T=u;;){if(T=(p=T+-4|0)-r[((f=d+-2|0)<<2)+S>>2]|0,0<=(0|ut[5](u,T))&&-1<(0|ut[5](u,p))||(u=(h<<2)+c|0,0<=(0|ut[5](T,p))?(r[u>>2]=T,f=d+-1|0):T=r[u>>2]=p,h=h+1|0,(0|f)<2))break e;u=r[c>>2],d=f}zh(c,h),G=240+c|0}function Oh(u){var d,S,p=0;if(b(0),function(c){var T,h;r[c+428>>2]&&(h=r[c+332>>2],Pr(r[c+460>>2],r[c+436>>2],T=h<<2),Pr(r[c+464>>2],r[c+440>>2],T),Pr(r[c+468>>2],r[c+448>>2],T),lt[r[c>>2]+4|0]<4||(Pr(r[c+472>>2],r[c+452>>2],T=h<<4),Pr(r[c+476>>2],r[c+456>>2],T)))}(u),function(c){var T,h,f,_=0,m=b(0),v=b(0),I=0,P=b(0);if(b(0),b(0),1<=(0|(I=r[c>>2])))for(f=(_=r[c+4>>2])+W(I,52)|0,c=r[c+12>>2];m=C[c>>2],C[_+44>>2]!=(m=(T=r[_+16>>2])?(v=m,m=C[_+4>>2],P=C[_+12>>2],v=b(b(v-m)/P),h=b(us(v)),I=b(Ee(h))>2],v=C[_+8>>2],m>2]=m,r[_+48>>2]=1):r[_+48>>2]=0,T||(C[c>>2]=m),c=c+4|0,(_=_+52|0)>>>0>>0;);}(u+540|0),function(c){var T,h,f,_,m,v,I=0,P=0,M=b(0),w=0,$=b(0),D=(b(0),b(0),0),F=b(0),H=0,U=0,V=0;if(b(0),1<=(0|(w=r[c+540>>2])))for(m=(D=r[c+544>>2])+W(w,52)|0,v=r[c+644>>2];;){e:if(!(r[D>>2]||(0|(w=r[D+32>>2]))<1))if(f=(c=r[D+28>>2])+W(w,28)|0,_=C[D+24>>2],h=C[D+20>>2],T=C[D+44>>2],v)for(;;){F=b(U=0);t:{r:{a:{if((0|(P=r[c>>2]))<1)I=w=0;else if(H=r[c+4>>2],$=C[H>>2],M=b($-h),(0|P)==1)w=T>2],!(T>2],T>2])break t;break r}I=P+-1|0,w=1}H=(P=($=C[c+12>>2])!=F)&(F==b(0)|$==b(0))|r[c+8>>2]!=(0|I),U=w}if(r[c+20>>2]=H,r[c+24>>2]=P,C[c+12>>2]=F,r[c+16>>2]=U,r[c+8>>2]=I,!((c=c+28|0)>>>0>>0))break}else{if(!r[D+48>>2]){for(;;)if(r[c+20>>2]=0,!((c=c+28|(r[c+24>>2]=0))>>>0>>0))break e}for(;;){F=b(U=0);t:{r:{a:{i:if(!(((P=0)|(I=r[(H=c)>>2]))<1)){if(w=r[c+4>>2],$=C[w>>2],M=b($-h),(0|I)!=1){if(!(T>2],!(T>2],T>2]))break t}U=w,V=(P=($=C[c+12>>2])!=F)&(F==b(0)|$==b(0))|r[c+8>>2]!=(0|I)}if(r[H+20>>2]=V,r[c+24>>2]=P,C[c+12>>2]=F,r[c+16>>2]=U,r[c+8>>2]=I,!((c=c+28|0)>>>0>>0))break}}if(!((D=D+52|0)>>>0>>0))break}}(u),function(c){var T,h,f,_,m,v=0,I=b(0),P=0,M=0,w=b(0),$=0,D=b(0);if(b(0),!(lt[r[c>>2]+4|0]<4||(0|(v=r[c+540>>2]))<1))for(_=($=r[c+544>>2])+W(v,52)|0,m=r[c+644>>2];;){e:if(r[$>>2]==1&&!((0|(v=r[$+40>>2]))<1))if(h=(c=r[$+36>>2])+W(v,28)|0,T=C[$+44>>2],m)for(;;){D=b(v=0);t:if(!((0|(M=r[c>>2]))<2||(P=r[c+4>>2],T<=(I=C[P>>2])))){v=1;r:if(!(T<(w=C[P+4>>2]))){for(;I=w,(0|M)!=(0|(v=v+1|0));)if(T<(w=C[P+(v<<2)>>2]))break r;v=M+-1|0;break t}D=b(b(T-I)/b(w-I)),v=v+-1|0}if(I=C[c+16>>2],C[c+16>>2]=D,M=r[c+12>>2],r[c+12>>2]=v,r[c+24>>2]=P=I!=D,r[c+20>>2]=P&(D==b(0)|I==b(0))|(0|v)!=(0|M),!((c=c+28|0)>>>0>>0))break}else{if(!r[$+48>>2]){for(;;)if(r[c+20>>2]=0,!((c=c+28|(r[c+24>>2]=0))>>>0>>0))break e}for(;;){D=b(M=0);t:if(!((0|(f=r[c>>2]))<2||(P=r[c+4>>2],T<=(I=C[P>>2])))){if(v=1,!(T<(w=C[P+4>>2])))for(M=f+-1|0;;){if(I=w,(0|v)==(0|M))break t;if(T<(w=C[P+((v=v+1|0)<<2)>>2]))break}D=b(b(T-I)/b(w-I)),M=v+-1|0}if(I=C[c+16>>2],C[c+16>>2]=D,v=r[c+12>>2],r[c+12>>2]=M,r[c+24>>2]=P=I!=D,r[c+20>>2]=P&(D==b(0)|I==b(0))|(0|v)!=(0|M),!((c=c+28|0)>>>0>>0))break}}if(!(($=$+52|0)>>>0<_>>>0))break}}(u),function(c){var T,h,f,_,m,v,I,P=0,M=0,w=0,$=0,D=0,F=0,H=0,U=b(0),V=0,Z=0,it=0,vt=0,Tt=0;if(1<=(0|(M=r[c+564>>2])))for(v=(D=r[c+568>>2])+W(M,36)|0,_=r[c+644>>2];;){e:{if(!(F=((w=$=M=0)|(h=r[D+4>>2]))<1))for(V=r[D>>2],c=vt=0;;){if(P=r[V+(c<<2)>>2],r[P+16>>2]){P=1,Tt=0;break e}if(w=w||r[P+24>>2],M=M||r[P+20>>2],$=(C[P+12>>2]!=b(0))+$|0,(0|h)==(0|(c=c+1|0)))break}if(P=0,(vt=_?1:w)|(Tt=_?1:M)&&(r[D+12>>2]=V=1<<$,(0|$)!=31)){for(M=r[D+20>>2],m=r[D>>2],w=(c=r[D+16>>2])+(H=V<<2)|0,w=Gr(c,0,4+((-1^c)+((c=c+4|0)>>>0>>0?w:c)|0)&-4),H=M+H|0,c=M;r[c>>2]=1065353216,(c=c+4|0)>>>0>>0;);if(!F){if(F=0,H=P=1,$)for(;;){if($=r[(F<<2)+m>>2],Z=r[$+8>>2],it=W(Z,P),(U=C[$+12>>2])!=b(c=0)){for(r[w>>2]=it+r[w>>2],C[M>>2]=b(b(1)-U)*C[M>>2],Z=W(Z+(c=1)|0,P);U=C[$+12>>2],I=r[(f=(T=c<<2)+w|0)>>2],r[f>>2]=I+((f=c&H)?Z:it),C[(T=M+T|0)>>2]=(f?U:b(b(1)-U))*C[T>>2],(0|V)!=(0|(c=c+1|0)););H<<=1}else for(;r[(Z=w+(c<<2)|0)>>2]=it+r[Z>>2],(0|V)!=(0|(c=c+1|0)););if(P=W(r[$>>2],P),(0|h)==(0|(F=F+1|0)))break}else for(;;){if($=r[(F<<2)+m>>2],H=W(r[$+8>>2],P),(U=C[$+12>>2])!=b(c=0))r[w>>2]=H+r[w>>2],C[M>>2]=b(b(1)-U)*C[M>>2];else for(;r[(it=w+(c<<2)|0)>>2]=H+r[it>>2],(0|V)!=(0|(c=c+1|0)););if(P=W(r[$>>2],P),(0|h)==(0|(F=F+1|0)))break}P=0}}}if(r[D+32>>2]=P,r[D+24>>2]=Tt,r[D+28>>2]=vt,!((D=D+36|0)>>>0>>0))break}}(u),function(c){var T,h,f,_,m=b(0),v=0,I=0,P=0,M=0,w=0,$=b(0),D=b(0),F=b(0),H=0,U=0,V=0;if(!(lt[r[c>>2]+4|0]<4||(0|(v=r[c+588>>2]))<1))for(_=(P=r[c+592>>2])+W(v,48)|0,T=r[c+644>>2];;){if(c=r[P>>2],(U=T?1:r[c+20>>2])|(V=T?1:r[c+24>>2])){e:{t:{w=P,M=r[c+8>>2],v=r[c+12>>2],m=C[c+16>>2],c=(0|M)!=(0|v);r:{if(m!=b(0)){if(c=v+1|0,(0|v)==(0|M)){r[P+8>>2]=U=1,m=b(b(1)-m),V=1;break r}c=(0|c)==(0|M)?1:2}if(r[w+8>>2]=c,!V)break t;c=v}C[P+24>>2]=m,C[P+20>>2]=b(1)-m;break e}V=0,c=v}U?(r[P+12>>2]=c,r[P+16>>2]=c+1):U=0}else U=V=0;e:if((0|(h=r[P+36>>2]))<1)F=b(1);else{if(f=r[P+40>>2],c=0,F=b(1),!T)for(;;){t:{r:{if(v=r[(c<<2)+f>>2],I=r[v>>2]){if(!r[I+48>>2]){m=C[v+16>>2];break t}if((0|(M=r[v+12>>2]))<1){m=b(1),C[v+16>>2]=1;break t}if(H=r[v+8>>2],(0|M)!=1&&($=C[I+44>>2],w=r[v+4>>2],!($<=(D=C[w>>2]))))break r;m=C[H>>2],C[v+16>>2]=m;break t}r[v+16>>2]=1065353216,m=b(1);break t}I=1;r:if(!($<(m=C[w+4>>2]))){for(;D=m,(0|M)!=(0|(I=I+1|0));)if($<(m=C[w+(I<<2)>>2]))break r;m=C[(H+(M<<2)|0)-4>>2],C[v+16>>2]=m;break t}w=v,m=b(b($-D)/b(m-D)),m=b(b(m*C[(v=H+(I<<2)|0)>>2])+b(C[v+-4>>2]*b(b(1)-m))),C[w+16>>2]=m}if(F=F>2],I=r[v>>2],m=b(1);t:if(I&&(H=r[v+12>>2],m=b(1),!((0|H)<1))&&(M=r[v+8>>2],m=C[M>>2],(0|H)!=1)){r:{if($=C[I+44>>2],w=r[v+4>>2],$<=(D=C[w>>2])){m=C[M>>2];break t}if(I=1,!($<(m=C[w+4>>2]))){for(;D=m,(0|H)!=(0|(I=I+1|0));)if($<(m=C[w+(I<<2)>>2]))break r;m=C[(M+(H<<2)|0)-4>>2];break t}}m=b(b($-D)/b(m-D)),m=b(b(m*C[(I=M+(I<<2)|0)>>2])+b(C[I+-4>>2]*b(b(1)-m)))}if(F=F<(C[v+16>>2]=m)?F:m,(0|h)==(0|(c=c+1|0)))break}}if(r[P+32>>2]=V,r[P+28>>2]=U,C[P+44>>2]=F,!((P=P+48|0)>>>0<_>>>0))break}}(u),1<=(0|(d=r[u+4>>2])))for(d=(p=r[u+52>>2])+(d<<2)|0;S=C[p>>2],C[p>>2]=S>>0>>0;);(function(c){var T,h,f,_=0,m=0;if(1<=(0|(m=r[c+4>>2])))for(f=(_=r[c+8>>2])+W(m,12)|0,c=T=r[c+40>>2];m=0,r[_+8>>2]&&(h=r[_+4>>2],!r[(h<<2)+T>>2]&&(0|h)!=-1||(m=!r[r[_>>2]+32>>2])),r[c>>2]=m,c=c+4|0,(_=_+12|0)>>>0>>0;);})(u),function(c){var T,h,f,_,m,v,I,P=0,M=0,w=0,$=0,D=0;if(1<=(0|(h=r[c+4>>2])))for(_=r[c+8>>2],f=r[c>>2],m=r[f+724>>2];;){if(T=r[W($,12)+_>>2],(r[T+28>>2]||r[T+24>>2])&&(r[(P=$<<2)+r[c+28>>2]>>2]=r[T+12>>2],r[T+24>>2])&&!((0|(w=r[T+12>>2]))<1))for(w=(M=r[T+16>>2])+(w<<2)|0,v=r[P+m>>2],P=r[c+36>>2]+(D<<2)|0,I=r[f+976>>2];r[P>>2]=r[(r[M>>2]+v<<2)+I>>2],P=P+4|0,(M=M+4|0)>>>0>>0;);if(r[T+28>>2]&&!((0|(P=r[T+12>>2]))<1))for(w=(M=r[T+20>>2])+(P<<2)|0,P=r[c+32>>2]+(D<<2)|0;r[P>>2]=r[M>>2],P=P+4|0,(M=M+4|0)>>>0>>0;);if(D=r[T+8>>2]+D|0,(0|h)==(0|($=$+1|0)))break}}(u),ut[r[1808]](u+12|0,r[u+36>>2],r[u+44>>2],r[u+40>>2]),function(c){var T,h,f,_,m,v,I=0,P=0,M=0;if(1<=(0|(M=r[c+304>>2])))for(f=(I=r[c+308>>2])+(M<<5)|0,_=r[c+264>>2],m=r[c+144>>2],v=r[c+40>>2],M=h=r[c+312>>2];T=M,P=0,c=P=!r[I+28>>2]||(0|(c=r[I+4>>2]))!=-1&&(P=0,!r[(c<<2)+v>>2])||(0|(c=r[I+8>>2]))!=-1&&(P=0,!r[(c<<2)+h>>2])?P:!r[r[I>>2]+32>>2],r[T>>2]=c,(T=r[I+12>>2])>>>0<=1?T-1?r[(r[I+16>>2]<<2)+m>>2]=c:r[(r[I+16>>2]<<2)+_>>2]=c:mt(4,1372,0),M=M+4|0,(I=I+32|0)>>>0>>0;);}(u),function(c){var T,h,f,_,m,v,I,P,M,w=0,$=0,D=0,F=0,bt=0,H=0,U=0,V=0,Z=0,it=0,vt=0,Tt=0,Lt=0,Ut=0,bt=r[c>>2];if(1<=(0|(V=r[c+56>>2]))){for(Z=r[c+60>>2],it=r[bt+1052>>2],vt=r[bt+784>>2];;){if(w=r[Z+W(H,24)>>2],(r[w+28>>2]||r[w+24>>2])&&(r[($=H<<2)+r[c+80>>2]>>2]=r[w+12>>2],r[w+24>>2])&&!((0|(F=r[w+12>>2]))<1))for(Tt=(D=r[w+16>>2])+(F<<2)|0,Lt=r[$+vt>>2],$=(F=U<<2)+r[c+92>>2]|0,F=F+r[c+88>>2]|0;Ut=Lt+r[D>>2]<<2,r[$>>2]=it+(r[Ut+r[bt+984>>2]>>2]<<2),r[F>>2]=r[Ut+r[bt+980>>2]>>2],F=F+4|0,$=$+4|0,(D=D+4|0)>>>0>>0;);if(r[w+28>>2]&&!((0|($=r[w+12>>2]))<1))for(F=(D=r[w+20>>2])+($<<2)|0,$=r[c+84>>2]+(U<<2)|0;r[$>>2]=r[D>>2],$=$+4|0,(D=D+4|0)>>>0>>0;);if(U=r[w+8>>2]+U|0,(0|V)==(0|(H=H+1|0)))break}bt=r[c>>2]}if(!(lt[bt+4|0]<4||(0|(Lt=r[c+56>>2]))<1))for(Ut=r[bt+792>>2],T=r[c+60>>2],D=U=0;;){if(H=r[W(D,24)+T>>2],r[H+24>>2]&&!((0|(w=r[H+12>>2]))<1))for(h=($=r[H+16>>2])+(w<<2)|0,f=r[Ut+(D<<2)>>2],F=(w=U<<2)+r[c+96>>2]|0,V=w+r[c+100>>2]|0,Z=w+r[c+104>>2]|0,it=w+r[c+108>>2]|0,vt=w+r[c+112>>2]|0,Tt=w+r[c+116>>2]|0,_=r[bt+1308>>2],m=r[bt+1304>>2],v=r[bt+1300>>2],I=r[bt+1296>>2],P=r[bt+1292>>2],M=r[bt+1288>>2];w=r[$>>2]+f<<2,r[F>>2]=r[w+M>>2],r[V>>2]=r[w+P>>2],r[Z>>2]=r[w+I>>2],r[it>>2]=r[w+v>>2],r[vt>>2]=r[w+m>>2],r[Tt>>2]=r[w+_>>2],Tt=Tt+4|0,vt=vt+4|0,it=it+4|0,Z=Z+4|0,V=V+4|0,F=F+4|0,($=$+4|0)>>>0>>0;);if(U=r[H+8>>2]+U|0,(0|Lt)==(0|(D=D+1|0)))break}}(u),function(c){var T=0,h=0,f=0,_=0,m=0,v=0,I=0,P=0,M=0,w=0,$=0,D=0,F=0,H=0,U=0,V=0,Z=0,it=0,vt=0,Tt=0,Lt=0,Ut=r[c+168>>2],bt=r[c>>2];if(1<=(0|(F=r[c+164>>2])))for(U=r[bt+816>>2];;){if(f=r[W(I,12)+Ut>>2],(r[f+28>>2]||r[f+24>>2])&&(r[(P=I<<2)+r[c+188>>2]>>2]=r[f+12>>2],r[f+24>>2])){if(h=r[f+16>>2],H=r[P+U>>2],1<=(0|(T=r[f+12>>2])))for(V=h+(T<<2)|0,_=(T=v<<2)+r[c+200>>2]|0,M=T+r[c+204>>2]|0,w=T+r[c+208>>2]|0,$=T+r[c+212>>2]|0,D=T+r[c+196>>2]|0,Z=r[bt+996>>2],it=r[bt+1012>>2],vt=r[bt+1008>>2],Tt=r[bt+1004>>2],Lt=r[bt+1e3>>2],T=h;m=H+r[T>>2]<<2,r[_>>2]=r[m+Lt>>2],r[M>>2]=r[m+Tt>>2],r[w>>2]=r[m+vt>>2],r[$>>2]=r[m+it>>2],r[D>>2]=r[m+Z>>2],D=D+4|0,$=$+4|0,w=w+4|0,M=M+4|0,_=_+4|0,(T=T+4|0)>>>0>>0;);T=H+r[h>>2]<<2,r[P+r[c+288>>2]>>2]=r[T+r[bt+1016>>2]>>2],r[P+r[c+292>>2]>>2]=r[T+r[bt+1020>>2]>>2]}if(r[f+28>>2]&&!((0|(h=r[f+12>>2]))<1))for(h=(T=r[f+20>>2])+(h<<2)|0,_=r[c+192>>2]+(v<<2)|0;r[_>>2]=r[T>>2],_=_+4|0,(T=T+4|0)>>>0>>0;);if(v=r[f+8>>2]+v|0,(0|F)==(0|(I=I+1|0)))break}if(!(lt[bt+4|0]<4||(0|(P=r[c+164>>2]))<1))for(H=r[bt+824>>2],v=f=0;;){if(m=r[W(v,12)+Ut>>2],r[m+24>>2]&&!((0|(T=r[m+12>>2]))<1))for(F=(_=r[m+16>>2])+(T<<2)|0,U=r[H+(v<<2)>>2],M=(h=f<<2)+r[c+216>>2]|0,w=h+r[c+220>>2]|0,$=h+r[c+224>>2]|0,D=h+r[c+228>>2]|0,T=h+r[c+232>>2]|0,I=h+r[c+236>>2]|0,V=r[bt+1308>>2],Z=r[bt+1304>>2],it=r[bt+1300>>2],vt=r[bt+1296>>2],Tt=r[bt+1292>>2],Lt=r[bt+1288>>2];h=U+r[_>>2]<<2,r[M>>2]=r[h+Lt>>2],r[w>>2]=r[h+Tt>>2],r[$>>2]=r[h+vt>>2],r[D>>2]=r[h+it>>2],r[T>>2]=r[h+Z>>2],r[I>>2]=r[h+V>>2],I=I+4|0,T=T+4|0,D=D+4|0,$=$+4|0,w=w+4|0,M=M+4|0,(_=_+4|0)>>>0>>0;);if(f=r[m+8>>2]+f|0,(0|P)==(0|(v=v+1|0)))break}}(u),function(c){var T,M=0,h=0,f=0,_=0,m=0,v=0,I=0,P=0,M=c- -64|0;if(ut[r[1807]](M,r[c+88>>2],r[c+148>>2],r[c+144>>2]),ut[r[1809]](M,r[c+92>>2],r[c+152>>2],r[r[c>>2]+796>>2],2,r[c+144>>2]),!(lt[r[c>>2]+4|0]<4||(ut[r[1807]](M,r[c+96>>2],r[c+120>>2],r[c+144>>2]),ut[r[1807]](M,r[c+100>>2],r[c+124>>2],r[c+144>>2]),ut[r[1807]](M,r[c+104>>2],r[c+128>>2],r[c+144>>2]),ut[r[1807]](M,r[c+108>>2],r[c+132>>2],r[c+144>>2]),ut[r[1807]](M,r[c+112>>2],r[c+136>>2],r[c+144>>2]),ut[r[1807]](M,r[c+116>>2],r[c+140>>2],r[c+144>>2]),(0|(v=r[c+56>>2]))<1))){for(I=r[c+128>>2],P=r[c+124>>2],T=r[c+120>>2],h=r[c+156>>2],M=0;r[(f=_<<2)+h>>2]=r[(m=M<<2)+T>>2],r[h+(4|f)>>2]=r[m+P>>2],r[h+(8|f)>>2]=r[m+I>>2],_=_+4|0,(0|v)!=(0|(M=M+1|0)););for(h=r[c+160>>2],m=r[c+140>>2],I=r[c+136>>2],P=r[c+132>>2],M=c=0;r[(_=c<<2)+h>>2]=r[(f=M<<2)+P>>2],r[h+(4|_)>>2]=r[f+I>>2],r[h+(8|_)>>2]=r[f+m>>2],c=c+4|0,(0|v)!=(0|(M=M+1|0)););}}(u),function(c){var T,M=0,h=0,f=0,_=0,m=0,v=0,I=0,P=0,M=c+172|0;if(ut[r[1807]](M,r[c+196>>2],r[c+268>>2],r[c+264>>2]),ut[r[1807]](M,r[c+200>>2],r[c+284>>2],r[c+264>>2]),ut[r[1807]](M,r[c+204>>2],r[c+276>>2],r[c+264>>2]),ut[r[1807]](M,r[c+208>>2],r[c+280>>2],r[c+264>>2]),ut[r[1807]](M,r[c+212>>2],r[c+272>>2],r[c+264>>2]),!(lt[r[c>>2]+4|0]<4||(ut[r[1807]](M,r[c+216>>2],r[c+240>>2],r[c+264>>2]),ut[r[1807]](M,r[c+220>>2],r[c+244>>2],r[c+264>>2]),ut[r[1807]](M,r[c+224>>2],r[c+248>>2],r[c+264>>2]),ut[r[1807]](M,r[c+228>>2],r[c+252>>2],r[c+264>>2]),ut[r[1807]](M,r[c+232>>2],r[c+256>>2],r[c+264>>2]),ut[r[1807]](M,r[c+236>>2],r[c+260>>2],r[c+264>>2]),(0|(v=r[c+164>>2]))<1))){for(I=r[c+248>>2],P=r[c+244>>2],T=r[c+240>>2],h=r[c+296>>2],M=0;r[(f=_<<2)+h>>2]=r[(m=M<<2)+T>>2],r[h+(4|f)>>2]=r[m+P>>2],r[h+(8|f)>>2]=r[m+I>>2],_=_+4|0,(0|v)!=(0|(M=M+1|0)););for(h=r[c+300>>2],m=r[c+260>>2],I=r[c+256>>2],P=r[c+252>>2],M=c=0;r[(_=c<<2)+h>>2]=r[(f=M<<2)+P>>2],r[h+(4|_)>>2]=r[f+I>>2],r[h+(8|_)>>2]=r[f+m>>2],c=c+4|0,(0|v)!=(0|(M=M+1|0)););}}(u),function(c){var T,h,f,_=0,m=0,v=0;if(1<=(0|(m=r[c+332>>2])))for(T=(_=r[c+336>>2])+W(m,20)|0,h=r[c+312>>2],f=r[c+40>>2],c=r[c+424>>2];m=0,r[_+12>>2]&&(v=r[_+4>>2],r[(v<<2)+f>>2]||(0|v)==-1)&&(v=r[_+8>>2],r[(v<<2)+h>>2]||(0|v)==-1)&&(m=!r[r[_>>2]+32>>2]),r[c>>2]=m,c=c+4|0,(_=_+20|0)>>>0>>0;);}(u),function(c){var T,h,f,_,m,v,I,P,M=0,w=0,$=0,bt=0,D=0,F=0,H=0,U=0,V=0,Z=0,it=0,vt=0,Tt=0,Lt=0,Ut=0,bt=r[c>>2];if(1<=(0|(Z=r[c+332>>2]))){for(it=r[c+336>>2],vt=r[bt+1052>>2],Tt=r[bt+856>>2];;){if(M=r[it+W(H,20)>>2],(r[M+28>>2]||r[M+24>>2])&&(r[(w=H<<2)+r[c+356>>2]>>2]=r[M+12>>2],r[M+24>>2])&&!((0|(D=r[M+12>>2]))<1))for(Lt=($=r[M+16>>2])+(D<<2)|0,Ut=r[w+Tt>>2],w=(F=U<<2)+r[c+372>>2]|0,D=F+r[c+364>>2]|0,F=F+r[c+368>>2]|0;V=Ut+r[$>>2]<<2,r[w>>2]=vt+(r[V+r[bt+1040>>2]>>2]<<2),r[D>>2]=r[V+r[bt+1032>>2]>>2],r[F>>2]=r[V+r[bt+1036>>2]>>2],F=F+4|0,D=D+4|0,w=w+4|0,($=$+4|0)>>>0>>0;);if(r[M+28>>2]&&!((0|(w=r[M+12>>2]))<1))for(D=($=r[M+20>>2])+(w<<2)|0,w=r[c+360>>2]+(U<<2)|0;r[w>>2]=r[$>>2],w=w+4|0,($=$+4|0)>>>0>>0;);if(U=r[M+8>>2]+U|0,(0|Z)==(0|(H=H+1|0)))break}bt=r[c>>2]}if(!(lt[bt+4|0]<4||(0|(Tt=r[c+332>>2]))<1))for(Lt=r[bt+864>>2],Ut=r[c+336>>2],$=U=0;;){if(H=r[Ut+W($,20)>>2],r[H+24>>2]&&!((0|(M=r[H+12>>2]))<1))for(T=(w=r[H+16>>2])+(M<<2)|0,h=r[Lt+($<<2)>>2],D=(M=U<<2)+r[c+376>>2]|0,F=M+r[c+380>>2]|0,V=M+r[c+384>>2]|0,Z=M+r[c+388>>2]|0,it=M+r[c+392>>2]|0,vt=M+r[c+396>>2]|0,f=r[bt+1308>>2],_=r[bt+1304>>2],m=r[bt+1300>>2],v=r[bt+1296>>2],I=r[bt+1292>>2],P=r[bt+1288>>2];M=r[w>>2]+h<<2,r[D>>2]=r[M+P>>2],r[F>>2]=r[M+I>>2],r[V>>2]=r[M+v>>2],r[Z>>2]=r[M+m>>2],r[it>>2]=r[M+_>>2],r[vt>>2]=r[M+f>>2],vt=vt+4|0,it=it+4|0,Z=Z+4|0,V=V+4|0,F=F+4|0,D=D+4|0,(w=w+4|0)>>>0>>0;);if(U=r[H+8>>2]+U|0,(0|Tt)==(0|($=$+1|0)))break}}(u),function(c){var T,M=0,h=0,f=0,_=0,m=0,v=0,I=0,P=0,M=c+340|0;if(ut[r[1807]](M,r[c+364>>2],r[c+448>>2],r[c+424>>2]),ut[r[1808]](M,r[c+368>>2],r[c+440>>2],r[c+424>>2]),ut[r[1809]](M,r[c+372>>2],r[c+444>>2],r[r[c>>2]+892>>2],2,r[c+424>>2]),!(lt[r[c>>2]+4|0]<4||(ut[r[1807]](M,r[c+376>>2],r[c+400>>2],r[c+424>>2]),ut[r[1807]](M,r[c+380>>2],r[c+404>>2],r[c+424>>2]),ut[r[1807]](M,r[c+384>>2],r[c+408>>2],r[c+424>>2]),ut[r[1807]](M,r[c+388>>2],r[c+412>>2],r[c+424>>2]),ut[r[1807]](M,r[c+392>>2],r[c+416>>2],r[c+424>>2]),ut[r[1807]](M,r[c+396>>2],r[c+420>>2],r[c+424>>2]),(0|(v=r[c+332>>2]))<1))){for(I=r[c+408>>2],P=r[c+404>>2],T=r[c+400>>2],h=r[c+452>>2],M=0;r[(f=_<<2)+h>>2]=r[(m=M<<2)+T>>2],r[h+(4|f)>>2]=r[m+P>>2],r[h+(8|f)>>2]=r[m+I>>2],_=_+4|0,(0|v)!=(0|(M=M+1|0)););for(h=r[c+456>>2],m=r[c+420>>2],I=r[c+416>>2],P=r[c+412>>2],M=c=0;r[(_=c<<2)+h>>2]=r[(f=M<<2)+P>>2],r[h+(4|_)>>2]=r[f+I>>2],r[h+(8|_)>>2]=r[f+m>>2],c=c+4|0,(0|v)!=(0|(M=M+1|0)););}}(u),function(c){var T,h,f,_,m,v,I,P=0,M=0,w=0,$=0,D=0;if(1<=(0|(h=r[c+500>>2])))for(_=r[c+504>>2],f=r[c>>2],m=r[f+1252>>2];;){if(T=r[W($,24)+_>>2],(r[T+28>>2]||r[T+24>>2])&&(r[(P=$<<2)+r[c+524>>2]>>2]=r[T+12>>2],r[T+24>>2])&&!((0|(w=r[T+12>>2]))<1))for(w=(M=r[T+16>>2])+(w<<2)|0,v=r[P+m>>2],P=r[c+532>>2]+(D<<2)|0,I=r[f+1284>>2];r[P>>2]=r[(r[M>>2]+v<<2)+I>>2],P=P+4|0,(M=M+4|0)>>>0>>0;);if(r[T+28>>2]&&!((0|(P=r[T+12>>2]))<1))for(w=(M=r[T+20>>2])+(P<<2)|0,P=r[c+528>>2]+(D<<2)|0;r[P>>2]=r[M>>2],P=P+4|0,(M=M+4|0)>>>0>>0;);if(D=r[T+8>>2]+D|0,(0|h)==(0|($=$+1|0)))break}}(u),ut[r[1807]](u+508|0,r[u+532>>2],r[u+536>>2],0),function(c){var T,h,f,_,m,v,I=b(0),P=0,M=0,w=0,$=0;if(b(0),G=T=G-16|0,w=r[c>>2],!(lt[w+4|0]<5||(0|($=r[c+596>>2]))<1))for(_=(M=r[c+600>>2])+W($,12)|0,m=r[c+44>>2],$=r[w+976>>2];;){if(w=(r[M>>2]<<2)+m|0,I=b(r[w>>2]),1<=(0|(P=r[M+4>>2])))for(v=(c=r[M+8>>2])+W(P,48)|0;(P=r[c+8>>2])&&((h=P+-1|0)>>>0<=1?(P=r[c+4>>2],f=C[$+(P+r[c+12>>2]<<2)>>2],I=b(h-1?I+b(C[c+44>>2]*b(f*C[c+20>>2])):I+b(C[c+44>>2]*b(b(f*C[c+20>>2])+b(C[$+(P+r[c+16>>2]<<2)>>2]*C[c+24>>2]))))):(r[T>>2]=P,mt(4,1024,T))),(c=c+48|0)>>>0>>0;);if(I=(I=b(I+b(.0010000000474974513)))>2]=c,!((M=M+12|0)>>>0<_>>>0))break}G=16+T|0}(u),function(c){var T,h,f,_,m,v,I,P,M,w=0,$=0,D=0,F=0,H=0,U=b(0);if(G=T=G-16|0,w=r[c>>2],!(lt[w+4|0]<4||(Rh(c,r[c+604>>2],r[c+608>>2],r[w+984>>2],r[c+152>>2],r[w+796>>2]),$=r[c>>2],lt[$+4|0]<5))){if(D=r[c+608>>2],m=r[$+992>>2],v=r[$+988>>2],1<=(0|(w=r[c+604>>2]))){for(I=W(w,12)+D|0,P=r[c+148>>2],h=r[$+980>>2];;){if(f=(r[D>>2]<<2)+P|0,H=r[f>>2],1<=(0|(F=r[D+4>>2])))for(M=(w=r[D+8>>2])+W(F,48)|0;(F=r[w+8>>2])&&((_=F+-1|0)>>>0<=1?(F=r[w+4>>2],U=C[(F+r[w+12>>2]<<2)+h>>2],zt(b(_-1?b(C[w+44>>2]*b(U*C[w+20>>2]))+(Mt(0,H),$t()):b(C[w+44>>2]*b(b(U*C[w+20>>2])+b(C[(F+r[w+16>>2]<<2)+h>>2]*C[w+24>>2])))+(Mt(0,H),$t()))),H=It[0]):(r[T>>2]=F,mt(4,1024,T))),(w=w+48|0)>>>0>>0;);if(Mt(0,H),U=$t(),C[f>>2]=U>>0>>0))break}D=r[c+608>>2],w=r[c+604>>2]}fi(w,D,v,r[$+1288>>2],r[$+1292>>2],r[$+1296>>2],r[c+156>>2]),fi(r[c+604>>2],r[c+608>>2],m,r[$+1300>>2],r[$+1304>>2],r[$+1308>>2],r[c+160>>2])}G=16+T|0}(u),function(c){var T,h=0,f=0,_=0,m=0,v=0,I=b(0),P=0,M=0,w=0,$=0,D=0,F=0,H=0,U=0;if(G=T=G-80|0,v=r[c>>2],!(lt[v+4|0]<5)){if(F=r[v+1028>>2],H=r[v+1024>>2],_=f=r[c+616>>2],!((0|(h=r[c+612>>2]))<1)){for(M=W(h,12)+f|0,w=r[c+276>>2],P=r[v+1004>>2];;){if($=w+(r[f>>2]<<2)|0,_=r[$>>2],1<=(0|(m=r[f+4>>2])))for(U=(h=r[f+8>>2])+W(m,48)|0;(m=r[h+8>>2])&&((D=m+-1|0)>>>0<=1?(m=r[h+4>>2],I=C[P+(m+r[h+12>>2]<<2)>>2],zt(b(D-1?b(C[h+44>>2]*b(I*C[h+20>>2]))+(Mt(0,_),$t()):b(C[h+44>>2]*b(b(I*C[h+20>>2])+b(C[P+(m+r[h+16>>2]<<2)>>2]*C[h+24>>2])))+(Mt(0,_),$t()))),_=It[0]):(r[64+T>>2]=m,mt(4,1024,64+T|0))),(h=h+48|0)>>>0>>0;);if(r[$>>2]=_,!((f=f+12|0)>>>0>>0))break}if(_=f=r[c+616>>2],!((0|(h=r[c+612>>2]))<1)){for(M=W(h,12)+f|0,w=r[c+280>>2],P=r[r[c>>2]+1008>>2];;){if($=w+(r[f>>2]<<2)|0,_=r[$>>2],1<=(0|(m=r[f+4>>2])))for(U=(h=r[f+8>>2])+W(m,48)|0;(m=r[h+8>>2])&&((D=m+-1|0)>>>0<=1?(m=r[h+4>>2],I=C[P+(m+r[h+12>>2]<<2)>>2],zt(b(D-1?b(C[h+44>>2]*b(I*C[h+20>>2]))+(Mt(0,_),$t()):b(C[h+44>>2]*b(b(I*C[h+20>>2])+b(C[P+(m+r[h+16>>2]<<2)>>2]*C[h+24>>2])))+(Mt(0,_),$t()))),_=It[0]):(r[48+T>>2]=m,mt(4,1024,48+T|0))),(h=h+48|0)>>>0>>0;);if(r[$>>2]=_,!((f=f+12|0)>>>0>>0))break}if(_=f=r[c+616>>2],!((0|(h=r[c+612>>2]))<1)){for(M=W(h,12)+f|0,w=r[c+268>>2],P=r[r[c>>2]+996>>2];;){if($=w+(r[f>>2]<<2)|0,_=r[$>>2],1<=(0|(m=r[f+4>>2])))for(U=(h=r[f+8>>2])+W(m,48)|0;(m=r[h+8>>2])&&((D=m+-1|0)>>>0<=1?(m=r[h+4>>2],I=C[P+(m+r[h+12>>2]<<2)>>2],zt(b(D-1?b(C[h+44>>2]*b(I*C[h+20>>2]))+(Mt(0,_),$t()):b(C[h+44>>2]*b(b(I*C[h+20>>2])+b(C[P+(m+r[h+16>>2]<<2)>>2]*C[h+24>>2])))+(Mt(0,_),$t()))),_=It[0]):(r[32+T>>2]=m,mt(4,1024,32+T|0))),(h=h+48|0)>>>0>>0;);if(Mt(0,_),I=$t(),C[$>>2]=I>>0>>0))break}h=r[c+612>>2],_=r[c+616>>2]}}}if(fi(h,_,H,r[v+1288>>2],r[v+1292>>2],r[v+1296>>2],r[c+296>>2]),fi(r[c+612>>2],r[c+616>>2],F,r[v+1300>>2],r[v+1304>>2],r[v+1308>>2],r[c+300>>2]),!((0|(h=r[c+612>>2]))<1)){for(m=(f=r[c+616>>2])+W(h,12)|0,F=r[c+284>>2],v=r[r[c>>2]+1e3>>2];;){if(H=F+(r[f>>2]<<2)|0,_=r[H>>2],1<=(0|(P=r[f+4>>2])))for(M=(h=r[f+8>>2])+W(P,48)|0;(P=r[h+8>>2])&&((w=P+-1|0)>>>0<=1?(P=r[h+4>>2],I=C[v+(P+r[h+12>>2]<<2)>>2],zt(b(w-1?b(C[h+44>>2]*b(I*C[h+20>>2]))+(Mt(0,_),$t()):b(C[h+44>>2]*b(b(I*C[h+20>>2])+b(C[v+(P+r[h+16>>2]<<2)>>2]*C[h+24>>2])))+(Mt(0,_),$t()))),_=It[0]):(r[16+T>>2]=P,mt(4,1024,16+T|0))),(h=h+48|0)>>>0>>0;);if(Mt(0,_),I=$t(),C[H>>2]=I>>0>>0))break}if(!((0|(h=r[c+612>>2]))<1))for(P=(f=r[c+616>>2])+W(h,12)|0,m=r[c+272>>2],c=r[r[c>>2]+1012>>2];;){if(F=m+(r[f>>2]<<2)|0,_=r[F>>2],1<=(0|(v=r[f+4>>2])))for(H=(h=r[f+8>>2])+W(v,48)|0;(v=r[h+8>>2])&&((M=v+-1|0)>>>0<=1?(v=r[h+4>>2],I=C[c+(v+r[h+12>>2]<<2)>>2],zt(b(M-1?b(C[h+44>>2]*b(I*C[h+20>>2]))+(Mt(0,_),$t()):b(C[h+44>>2]*b(b(I*C[h+20>>2])+b(C[c+(v+r[h+16>>2]<<2)>>2]*C[h+24>>2])))+(Mt(0,_),$t()))),_=It[0]):(r[T>>2]=v,mt(4,1024,T))),(h=h+48|0)>>>0>>0;);if(Mt(0,_),I=$t(),C[F>>2]=I>>0

>>0))break}}}G=80+T|0}(u),function(c){var T,h,f,_,m,v=0,I=0,P=0,M=0,w=b(0),$=0,D=0,F=0,H=0,U=0,V=0;if(b(0),G=T=G-32|0,P=r[c>>2],!(lt[P+4|0]<4||(Rh(c,r[c+620>>2],r[c+624>>2],r[P+1040>>2],r[c+444>>2],r[P+892>>2]),$=r[c>>2],lt[$+4|0]<5))){if(_=r[$+1048>>2],m=r[$+1044>>2],P=M=r[c+624>>2],!((0|(v=r[c+620>>2]))<1)){for(U=W(v,12)+M|0,V=r[c+440>>2],D=r[$+1036>>2];;){if(P=V+(r[M>>2]<<2)|0,w=b(r[P>>2]),1<=(0|(I=r[M+4>>2])))for(F=(v=r[M+8>>2])+W(I,48)|0;(I=r[v+8>>2])&&((H=I+-1|0)>>>0<=1?(I=r[v+4>>2],h=C[D+(I+r[v+12>>2]<<2)>>2],w=b(H-1?w+b(C[v+44>>2]*b(h*C[v+20>>2])):w+b(C[v+44>>2]*b(b(h*C[v+20>>2])+b(C[D+(I+r[v+16>>2]<<2)>>2]*C[v+24>>2]))))):(r[16+T>>2]=I,mt(4,1024,16+T|0))),(v=v+48|0)>>>0>>0;);if(w=(w=b(w+b(.0010000000474974513)))>2]=v,!((M=M+12|0)>>>0>>0))break}if(P=M=r[c+624>>2],!((0|(v=r[c+620>>2]))<1)){for(U=W(v,12)+M|0,V=r[c+448>>2],D=r[r[c>>2]+1032>>2];;){if(F=V+(r[M>>2]<<2)|0,P=r[F>>2],1<=(0|(I=r[M+4>>2])))for(H=(v=r[M+8>>2])+W(I,48)|0;(I=r[v+8>>2])&&((f=I+-1|0)>>>0<=1?(I=r[v+4>>2],w=C[D+(I+r[v+12>>2]<<2)>>2],zt(b(f-1?b(C[v+44>>2]*b(w*C[v+20>>2]))+(Mt(0,P),$t()):b(C[v+44>>2]*b(b(w*C[v+20>>2])+b(C[D+(I+r[v+16>>2]<<2)>>2]*C[v+24>>2])))+(Mt(0,P),$t()))),P=It[0]):(r[T>>2]=I,mt(4,1024,T))),(v=v+48|0)>>>0>>0;);if(Mt(0,P),w=$t(),C[F>>2]=w>>0>>0))break}v=r[c+620>>2],P=r[c+624>>2]}}fi(v,P,m,r[$+1288>>2],r[$+1292>>2],r[$+1296>>2],r[c+452>>2]),fi(r[c+620>>2],r[c+624>>2],_,r[$+1300>>2],r[$+1304>>2],r[$+1308>>2],r[c+456>>2])}G=32+T|0}(u),function(c){var T,h,f,_,m,v,I=0,P=0,M=0,w=0,$=b(0);if(G=T=G-16|0,P=r[c>>2],!(lt[P+4|0]<5||(0|(w=r[c+628>>2]))<1))for(_=(M=r[c+632>>2])+W(w,12)|0,m=r[c+536>>2],w=r[P+1284>>2];;){if(h=(r[M>>2]<<2)+m|0,P=r[h>>2],1<=(0|(I=r[M+4>>2])))for(v=(c=r[M+8>>2])+W(I,48)|0;(I=r[c+8>>2])&&((f=I+-1|0)>>>0<=1?(I=r[c+4>>2],$=C[w+(I+r[c+12>>2]<<2)>>2],zt(b(f-1?b(C[c+44>>2]*b($*C[c+20>>2]))+(Mt(0,P),$t()):b(C[c+44>>2]*b(b($*C[c+20>>2])+b(C[w+(I+r[c+16>>2]<<2)>>2]*C[c+24>>2])))+(Mt(0,P),$t()))),P=It[0]):(r[T>>2]=I,mt(4,1024,T))),(c=c+48|0)>>>0>>0;);if(Mt(0,P),$=$t(),C[h>>2]=$>>0<_>>>0))break}G=16+T|0}(u),function(c){var T,h,f=0,_=0,m=0,v=b(0),I=0;if(1<=(0|(f=r[c+4>>2])))for(h=(_=r[c+8>>2])+W(f,12)|0,f=r[c+40>>2],m=r[c+52>>2],c=T=r[c+48>>2];r[f>>2]&&(v=C[m>>2],C[c>>2]=v,(0|(I=r[_+4>>2]))!=-1)&&(C[c>>2]=v*C[(I<<2)+T>>2]),c=c+4|0,m=m+4|0,f=f+4|0,(_=_+12|0)>>>0>>0;);}(u),function(c){var T,h=0,f=0,_=0;if(1<=(0|(T=r[c+304>>2])))for(h=r[c+308>>2],f=r[c+312>>2];r[f>>2]&&ut[r[h+20>>2]](c,_),f=f+4|0,h=h+32|0,(0|T)!=(0|(_=_+1|0)););}(u),function(c){var T,h,f,_,m,v=0,I=0,P=(b(0),b(0),0),M=0,w=0,$=(b(0),0),D=0,F=0;if(1<=(0|(v=r[c+332>>2])))for(D=(I=r[c+336>>2])+W(v,20)|0,F=r[c+308>>2],$=r[c+316>>2],m=r[c+48>>2],v=r[c+448>>2],P=r[c+444>>2],w=r[c+424>>2];r[w>>2]&&((0|(M=r[I+4>>2]))!=-1&&(C[v>>2]=C[(M<<2)+m>>2]*C[v>>2]),(0|(M=r[I+8>>2]))!=-1)&&(C[v>>2]=C[$+(M<<2)>>2]*C[v>>2],_=r[P>>2],ut[r[24+(F+(M<<5)|0)>>2]](c,M,_,_,r[I+16>>2])),P=P+4|0,v=v+4|0,w=w+4|0,(I=I+20|0)>>>0>>0;);if(!(lt[r[c>>2]+4|0]<4||(0|(v=r[c+332>>2]))<1))for(M=(P=r[c+336>>2])+W(v,20)|0,D=r[c+328>>2],F=r[c+324>>2],I=r[c+452>>2],v=r[c+456>>2],w=r[c+424>>2];r[w>>2]&&(0|(c=r[P+8>>2]))!=-1&&(c=($=c<<4)+F|0,T=b(C[I>>2]*C[c>>2]),C[I>>2]=T,h=b(C[I+4>>2]*C[c+4>>2]),C[I+4>>2]=h,f=C[c+8>>2],r[I+12>>2]=1065353216,C[I+4>>2]=h>2]=T>2]),C[I+8>>2]=T>2],h=C[(c=D+$|0)>>2],T=b(b(T+h)-b(T*h)),C[v>>2]=T,h=C[v+4>>2],f=C[c+4>>2],h=b(b(h+f)-b(h*f)),C[v+4>>2]=h,f=C[c+8>>2],r[v+12>>2]=1065353216,C[v+4>>2]=h>2]=T>2],T=b(b(f+T)-b(T*f)),C[v+8>>2]=T>>0>>0;);}(u),function(c){var T,h,f,_,m,v,I,P,M,w,$,D,F,H,U,V,Z,it,vt,Tt,Lt=0;if(b(0),b(0),b(0),b(0),b(0),b(0),b(0),1<=(0|(P=r[c+500>>2])))for(vt=r[c+536>>2],M=r[c+444>>2],Tt=r[c+504>>2];;){if(c=W(Lt,24)+Tt|0,0<(0|(w=r[c+12>>2])))for(f=C[(Lt<<2)+vt>>2],$=r[c+20>>2],D=r[c+16>>2],F=r[(r[c+4>>2]<<2)+M>>2],H=r[(r[c+8>>2]<<2)+M>>2],c=0;U=C[((T=1|c)<<2)+D>>2],h=na[(c<<1)+$>>1]<<3&262136,_=C[(V=(4|h)+F|0)>>2],T=na[(T<<1)+$>>1]<<3&262136,m=C[(Z=(4|T)+H|0)>>2],v=C[(h=h+F|0)>>2],it=C[(c<<2)+D>>2],I=C[(T=T+H|0)>>2],C[h>>2]=v+b(f*b(it*b(I-v))),C[V>>2]=_+b(f*b(it*b(m-_))),C[T>>2]=I+b(f*b(U*b(v-I))),C[Z>>2]=m+b(f*b(U*b(_-m))),(0|(c=c+2|0))<(0|w););if(!((0|(Lt=Lt+1|0))<(0|P)))break}}(u),ut[r[1810]](u),function(c){var T,h,f,_,m=0,v=0,I=0,P=0,M=0,w=0,$=0,D=0,F=0,H=0,U=0;if(!((0|(T=r[c+480>>2]))<1)){for(P=(h=r[c+484>>2])+W(T,28)|0,$=r[c+424>>2],D=r[c+40>>2],M=r[c+44>>2],U=r[c+440>>2],m=h;;){if(1<=(0|(w=r[m+4>>2])))for(H=m+20|0,F=r[m+12>>2],v=0;f=r[4+(I=F+(v<<4)|0)>>2]<<2,I=r[(_=I)>>2]==1,r[_+12>>2]=r[(r[(I?D:$)+f>>2]?(I?M:U)+f|0:H)>>2],(0|(v=v+1|0))<(0|w););if(!((m=m+28|0)>>>0

>>0))break}if(!((0|T)<1))for(U=r[c+436>>2],D=0;;){if(P=W(D,28)+h|0,!(r[($=P)+24>>2]<1)){for(I=r[c+488>>2],v=0;r[I+(v<<2)>>2]=-1,(0|(v=v+1|0))<(0|(m=r[$+24>>2])););if(!((0|m)<1))for(m=r[c+496>>2],v=0;r[m+(v<<2)>>2]=-1,(0|(v=v+1|0))>2];);}if(!(r[P+4>>2]<1)){for(M=r[c+492>>2],v=0;r[M+(v<<2)>>2]=-1,(0|(v=v+1|0))<(0|(m=r[P+4>>2])););if(!((0|m)<1))for(w=r[P+12>>2],H=r[c+496>>2],v=0;F=r[12+(w+(v<<4)|0)>>2]-r[P+20>>2]<<2,m=(0|(m=r[(I=F+H|0)>>2]))==-1?F+r[c+488>>2]|0:M+(m<<2)|0,r[m>>2]=v,(0|(v=(r[I>>2]=v)+1|0))>2];);}if(1<=(0|(m=r[$+24>>2])))for(M=r[P+8>>2],H=r[c+488>>2],w=0;;){if((0|(v=r[H+(w<<2)>>2]))!=-1){for(F=r[c+492>>2],I=r[P+12>>2];M=(m=r[(m=I+(v<<4)|0)>>2]==1?(m=W(r[m+8>>2],28)+h|0,r[m+8>>2]=M,r[m>>2]):(r[U+(r[m+4>>2]<<2)>>2]=M,1))+M|0,(0|v)<(0|(m=r[F+(v<<2)>>2]))&&(0|(v=m))!=-1;);m=r[$+24>>2]}if(!((0|(w=w+1|0))<(0|m)))break}if((0|T)==(0|(D=D+1|0)))break}}}(u),function(c){var T=0,h=0,f=0,_=0,m=0,v=b(0),I=0,P=0,M=r[c+332>>2];if(r[c+644>>2]){if(!(((r[c+428>>2]=0)|M)<1))for(;T=126,I=r[c+432>>2]+f|0,!r[(h=f<<2)+r[c+424>>2]>>2]|C[h+r[c+448>>2]>>2]==b(0)||(T=127),ot[0|I]=T,(0|M)!=(0|(f=f+1|0)););}else if(r[c+428>>2]){if(T=lt[r[c>>2]+4|0],!(((r[c+428>>2]=0)|M)<1))if(4<=T>>>0)for(;v=C[(T=f<<2)+r[c+448>>2]>>2],_=r[T+r[c+424>>2]>>2],h=v!=b(0)&(0|_)!=0,I=r[c+432>>2]+f|0,h=(0|h)==(1&ot[0|I])?h:2|h,h=v!=C[T+r[c+468>>2]>>2]?4|h:h,h=r[T+r[c+440>>2]>>2]==r[T+r[c+464>>2]>>2]?h:8|h,T=r[T+r[c+436>>2]>>2]==r[T+r[c+460>>2]>>2]?h:16|h,T=_?32|T:T,_=(h=P<<2)+r[c+452>>2]|0,m=h+r[c+472>>2]|0,(C[_>>2]!=C[m>>2]|C[_+4>>2]!=C[m+4>>2]|(C[_+8>>2]!=C[m+8>>2]|C[_+12>>2]!=C[m+12>>2])||(_=h+r[c+456>>2]|0,h=h+r[c+476>>2]|0,C[_>>2]!=C[h>>2]|C[_+4>>2]!=C[h+4>>2]|C[_+8>>2]!=C[h+8>>2])||C[_+12>>2]!=C[h+12>>2])&&(T|=64),ot[0|I]=T,P=P+4|0,(0|M)!=(0|(f=f+1|0)););else for(;v=C[(T=f<<2)+r[c+448>>2]>>2],_=r[T+r[c+424>>2]>>2],h=v!=b(0)&(0|_)!=0,m=r[c+432>>2]+f|0,h=(0|h)==(1&ot[0|m])?h:2|h,h=v!=C[T+r[c+468>>2]>>2]?4|h:h,h=r[T+r[c+440>>2]>>2]==r[T+r[c+464>>2]>>2]?h:8|h,T=r[T+r[c+436>>2]>>2]==r[T+r[c+460>>2]>>2]?h:16|h,ot[0|m]=_?32|T:T,(0|M)!=(0|(f=f+1|0)););}else if(!((0|M)<1))for(;!r[(T=f<<2)+r[c+424>>2]>>2]|C[T+r[c+448>>2]>>2]==b(0)?(T=r[c+432>>2]+f|0,ot[0|T]=254<[0|T]):(T=r[c+432>>2]+f|0,ot[0|T]=1|lt[0|T]),(0|M)!=(0|(f=f+1|0)););}(u),r[u+644>>2]=0}function Rh(u,d,S,p,c,T){var h,f,_,m,v,I,P,M=0,w=0,$=0,D=0;if(G=I=G-32|0,1<=(0|d))for(v=W(d,12)+S|0;;){if(!((0|(M=r[S+4>>2]))<1))if(h=(d=r[S+8>>2])+W(M,48)|0,M=r[S>>2]<<2,1<=(0|(P=r[M+T>>2])))for(P<<=1,f=r[r[u>>2]+1052>>2],_=r[c+M>>2];;){e:if(M=r[d+8>>2]){t:{if((w=M+-1|0)>>>0<=1){if(M=(r[d+4>>2]<<2)+p|0,D=(r[M+(r[d+12>>2]<<2)>>2]<<2)+f|0,w-1)break t;for($=(r[M+(r[d+16>>2]<<2)>>2]<<2)+f|0,M=0;C[(m=(w=M<<2)+_|0)>>2]=C[m>>2]+b(C[d+44>>2]*b(b(C[w+D>>2]*C[d+20>>2])+b(C[w+$>>2]*C[d+24>>2]))),(0|P)!=(0|(M=M+1|0)););break e}r[I>>2]=M,mt(4,1024,I);break e}for(M=0;C[($=(w=M<<2)+_|0)>>2]=C[$>>2]+b(C[d+44>>2]*b(C[w+D>>2]*C[d+20>>2])),(0|P)!=(0|(M=M+1|0)););}if(!((d=d+48|0)>>>0>>0))break}else for(;3<=(M=r[d+8>>2])>>>0&&(r[16+I>>2]=M,mt(4,1024,16+I|0)),(d=d+48|0)>>>0>>0;);if(!((S=S+12|0)>>>0>>0))break}G=32+I|0}function Ch(u,d,S){var p;d|=0,S|=0,G=p=G+-64|0;e:{if(u|=0)if(d)if((d+15&-16)!=(0|d))r[52+p>>2]=1522,r[48+p>>2]=2361,mt(4,1294,48+p|0);else{if(d=function(c,T,h){var f,_=0,m=0,v=0,I=0,P=0,M=0,w=0,$=0,D=0,F=0,H=0,U=0,V=0,Z=b(0),it=0,vt=0,Tt=0,Lt=0,Ut=0;if(Gr(16+(G=f=G-576|0)|0,0,560),Uh(c,16+f|0,12+f|0),(I=r[12+f>>2])>>>0<=h>>>0){if(_=(m=Gr(T,0,I))+r[16+f>>2]|0,r[_+8>>2]=m+r[20+f>>2],r[_+40>>2]=m+r[24+f>>2],r[_+44>>2]=m+r[28+f>>2],r[_+48>>2]=m+r[32+f>>2],r[_+52>>2]=m+r[36+f>>2],r[_+16>>2]=m+r[40+f>>2],r[_+24>>2]=m+r[44+f>>2],r[_+28>>2]=m+r[48+f>>2],r[_+32>>2]=m+r[52+f>>2],r[_+36>>2]=m+r[56+f>>2],T=r[c+704>>2],r[_+308>>2]=m+r[60+f>>2],r[_+312>>2]=m+r[64+f>>2],r[_+316>>2]=m+r[68+f>>2],r[_+320>>2]=m+r[72+f>>2],r[_+324>>2]=m+r[76+f>>2],r[_+328>>2]=m+r[80+f>>2],r[_+60>>2]=m+r[84+f>>2],r[_+144>>2]=m+r[88+f>>2],r[_+148>>2]=m+r[92+f>>2],h=m+r[96+f>>2]|0,r[_+152>>2]=h,!((0|(I=r[T+8>>2]))<1)&&(T=m+r[100+f>>2]|0,r[h>>2]=T,(0|I)!=1))for(h=1;T=(15+(r[r[c+796>>2]+(v<<2)>>2]<<3)&-16)+T|0,r[r[_+152>>2]+(h<<2)>>2]=T,(0|I)!=(0|(h=(v=h)+1|0)););if(r[_+156>>2]=m+r[104+f>>2],r[_+160>>2]=m+r[108+f>>2],r[_+68>>2]=m+r[112+f>>2],r[_+76>>2]=m+r[116+f>>2],r[_+80>>2]=m+r[120+f>>2],r[_+84>>2]=m+r[124+f>>2],r[_+88>>2]=m+r[128+f>>2],r[_+92>>2]=m+r[132+f>>2],r[_+96>>2]=m+r[136+f>>2],r[_+100>>2]=m+r[140+f>>2],r[_+104>>2]=m+r[144+f>>2],r[_+108>>2]=m+r[148+f>>2],r[_+112>>2]=m+r[152+f>>2],r[_+116>>2]=m+r[156+f>>2],r[_+120>>2]=m+r[160+f>>2],r[_+124>>2]=m+r[164+f>>2],r[_+128>>2]=m+r[168+f>>2],r[_+132>>2]=m+r[172+f>>2],r[_+136>>2]=m+r[176+f>>2],r[_+140>>2]=m+r[180+f>>2],r[_+168>>2]=m+r[184+f>>2],r[_+264>>2]=m+r[188+f>>2],r[_+268>>2]=m+r[192+f>>2],r[_+272>>2]=m+r[196+f>>2],r[_+276>>2]=m+r[200+f>>2],r[_+280>>2]=m+r[204+f>>2],r[_+284>>2]=m+r[208+f>>2],r[_+288>>2]=m+r[212+f>>2],r[_+292>>2]=m+r[216+f>>2],r[_+296>>2]=m+r[220+f>>2],r[_+300>>2]=m+r[224+f>>2],r[_+176>>2]=m+r[228+f>>2],r[_+184>>2]=m+r[232+f>>2],r[_+188>>2]=m+r[236+f>>2],r[_+192>>2]=m+r[240+f>>2],r[_+196>>2]=m+r[244+f>>2],r[_+200>>2]=m+r[248+f>>2],r[_+204>>2]=m+r[252+f>>2],r[_+208>>2]=m+r[256+f>>2],r[_+212>>2]=m+r[260+f>>2],r[_+216>>2]=m+r[264+f>>2],r[_+220>>2]=m+r[268+f>>2],r[_+224>>2]=m+r[272+f>>2],r[_+228>>2]=m+r[276+f>>2],r[_+232>>2]=m+r[280+f>>2],r[_+236>>2]=m+r[284+f>>2],r[_+240>>2]=m+r[288+f>>2],r[_+244>>2]=m+r[292+f>>2],r[_+248>>2]=m+r[296+f>>2],r[_+252>>2]=m+r[300+f>>2],r[_+256>>2]=m+r[304+f>>2],r[_+260>>2]=m+r[308+f>>2],T=r[c+704>>2],r[_+336>>2]=m+r[312+f>>2],r[_+424>>2]=m+r[316+f>>2],r[_+432>>2]=m+r[320+f>>2],r[_+436>>2]=m+r[324+f>>2],r[_+440>>2]=m+r[328+f>>2],h=m+r[332+f>>2]|0,r[_+444>>2]=h,!((0|(I=r[T+16>>2]))<1)&&(v=m+r[336+f>>2]|0,r[h>>2]=v,(h=1)!=(0|I)))for(T=0;v=(15+(r[r[c+892>>2]+(T<<2)>>2]<<3)&-16)+v|0,r[r[_+444>>2]+(h<<2)>>2]=v,(0|I)!=(0|(h=(T=h)+1|0)););if(r[_+448>>2]=m+r[340+f>>2],r[_+452>>2]=m+r[344+f>>2],r[_+456>>2]=m+r[348+f>>2],r[_+460>>2]=m+r[352+f>>2],r[_+464>>2]=m+r[356+f>>2],r[_+468>>2]=m+r[360+f>>2],r[_+472>>2]=m+r[364+f>>2],r[_+476>>2]=m+r[368+f>>2],r[_+344>>2]=m+r[372+f>>2],r[_+352>>2]=m+r[376+f>>2],r[_+356>>2]=m+r[380+f>>2],r[_+360>>2]=m+r[384+f>>2],r[_+364>>2]=m+r[388+f>>2],r[_+368>>2]=m+r[392+f>>2],r[_+372>>2]=m+r[396+f>>2],r[_+376>>2]=m+r[400+f>>2],r[_+380>>2]=m+r[404+f>>2],r[_+384>>2]=m+r[408+f>>2],r[_+388>>2]=m+r[412+f>>2],r[_+392>>2]=m+r[416+f>>2],r[_+396>>2]=m+r[420+f>>2],r[_+400>>2]=m+r[424+f>>2],r[_+404>>2]=m+r[428+f>>2],r[_+408>>2]=m+r[432+f>>2],r[_+412>>2]=m+r[436+f>>2],r[_+416>>2]=m+r[440+f>>2],r[_+420>>2]=m+r[444+f>>2],T=r[448+f>>2],h=r[452+f>>2],r[_+552>>2]=m+r[456+f>>2],r[_+548>>2]=h+m,r[_+544>>2]=T+m,r[_+560>>2]=m+r[460+f>>2],T=r[c+704>>2],w=m+r[464+f>>2]|0,r[_+568>>2]=w,1<=(0|(M=r[T+48>>2])))for(v=m+r[468+f>>2]|0,T=m+r[472+f>>2]|0,P=m+r[476+f>>2]|0,$=r[c+1072>>2],h=0;I=w+W(h,36)|0,r[I+20>>2]=P,r[I+16>>2]=T,r[I>>2]=v,v=((I=r[$+(h<<2)>>2])<<2)+v|0,P=(I=1<>2],I=m+r[516+f>>2]|0,r[_+484>>2]=I,1<=(0|(T=r[T+72>>2])))for(v=m+r[520+f>>2]|0,P=r[c+1212>>2],h=0;r[12+(I+W(h,28)|0)>>2]=v,v=(r[P+(h<<2)>>2]<<4)+v|0,(0|T)!=(0|(h=h+1|0)););r[_+488>>2]=m+r[524+f>>2],r[_+492>>2]=m+r[528+f>>2],r[_+496>>2]=m+r[532+f>>2],r[_+504>>2]=m+r[536+f>>2],r[_+536>>2]=m+r[540+f>>2],r[_+512>>2]=m+r[544+f>>2],r[_+520>>2]=m+r[548+f>>2],r[_+524>>2]=m+r[552+f>>2],r[_+528>>2]=m+r[556+f>>2],r[_+532>>2]=m+r[560+f>>2];t:{if(4<=(M=lt[c+4|0])>>>0){if(r[_+576>>2]=m+r[480+f>>2],r[_+584>>2]=m+r[484+f>>2],T=r[c+704>>2],h=r[492+f>>2],I=m+r[488+f>>2]|0,r[_+592>>2]=I,1<=(0|(T=r[T+104>>2])))for(v=h+m|0,P=r[c+1104>>2],h=0;r[40+(I+W(h,48)|0)>>2]=v,v=(r[P+(h<<2)>>2]<<2)+v|0,(0|T)!=(0|(h=h+1|0)););r[_+608>>2]=m+r[500+f>>2],r[_+624>>2]=m+r[508+f>>2]}else{if(T=r[572+f>>2],h=r[568+f>>2],r[_+636>>2]=m+r[564+f>>2],r[_+640>>2]=h+m,r[r[c+704>>2]+20>>2]<1)break t;for(I=T+m|0,w=0;;){r:{if((0|(v=r[(T=w<<2)+r[c+952>>2]>>2]))<=0)T=T+r[_+636>>2]|0;else{for(P=v+(h=r[T+r[c+948>>2]>>2])|0,$=r[c+1060>>2],v=0;v=r[$+(h<<2)>>2]+v|0,(0|(h=h+1|0))<(0|P););if(T=T+r[_+636>>2]|0,h=I,v)break r}h=v=0}if(r[T>>2]=h,I=(v<<2)+I|0,!((0|(w=w+1|0))>2]+20>>2]))break}}M>>>0<5||(r[_+600>>2]=m+r[496+f>>2],r[_+616>>2]=m+r[504+f>>2],r[_+632>>2]=m+r[512+f>>2])}r[_+644>>2]=1,r[_>>2]=c,r[_+648>>2]=1&ot[r[c+708>>2]+20|0],m=r[c+704>>2],w=r[m+20>>2];t:if(!((0|(r[_+540>>2]=w))<1)){if(T=w+-1|0,$=r[c+952>>2],D=r[c+940>>2],F=r[c+932>>2],H=r[c+936>>2],U=r[c+924>>2],V=r[c+928>>2],it=r[_+552>>2],Tt=r[_+544>>2],M>>>0<4){for(;;)if(h=Tt+W(T,52)|0,v=(I=T<<2)+V|(r[h>>2]=0),r[h+4>>2]=r[v>>2],r[h+8>>2]=r[(P=I+U|0)>>2],C[h+12>>2]=C[P>>2]-C[v>>2],r[h+16>>2]=r[I+H>>2],r[h+44>>2]=r[(v=I+F|0)>>2],Z=Nh(b(r[I+D>>2])),C[h+20>>2]=Z,C[h+24>>2]=Z*b(1.5),vt=r[I+$>>2],P=0,P=(r[h+32>>2]=vt)?r[_+560>>2]+W(r[I+r[c+948>>2]>>2],28)|0:P,r[h+48>>2]=1,r[h+28>>2]=P,r[I+it>>2]=r[v>>2],h=0<(0|T),T=T+-1|0,!h)break t}for(vt=r[c+960>>2],Ut=r[c+944>>2];h=Tt+W(T,52)|0,r[h>>2]=r[(v=T<<2)+Ut>>2],r[h+4>>2]=r[(I=v+V|0)>>2],r[h+8>>2]=r[(P=v+U|0)>>2],C[h+12>>2]=C[P>>2]-C[I>>2],r[h+16>>2]=r[v+H>>2],r[h+44>>2]=r[(Lt=v+F|0)>>2],Z=Nh(b(r[v+D>>2])),C[h+20>>2]=Z,C[h+24>>2]=Z*b(1.5),P=r[v+$>>2],r[h+32>>2]=P,r[h+28>>2]=P?r[_+560>>2]+W(r[v+r[c+948>>2]>>2],28)|0:0,I=r[v+vt>>2],I=(r[h+40>>2]=I)?r[_+584>>2]+W(r[v+r[c+956>>2]>>2],28)|0:0,r[h+48>>2]=1,r[h+36>>2]=I,r[v+it>>2]=r[Lt>>2],h=0<(0|T),T=T+-1|0,h;);}if(4<=M>>>0?(r[_+548>>2]=r[c+944>>2],I=c):(Gr(r[_+548>>2],0,w<<2),I=r[_>>2],m=r[I+704>>2]),v=r[m+52>>2],1<=(0|(r[_+556>>2]=v)))for(h=r[I+1056>>2],P=r[I+1192>>2],w=r[I+1060>>2],M=r[_+560>>2];T=M+W(v=v+-1|0,28)|0,r[T>>2]=r[($=v<<2)+w>>2],$=r[h+$>>2],r[T+24>>2]=1,r[T+16>>2]=0,r[T+20>>2]=1,r[T+8>>2]=0,r[T+12>>2]=0,r[T+4>>2]=P+($<<2),0<(0|v););if(v=r[m+48>>2],1<=(0|(r[_+564>>2]=v))){for(;;){if(T=r[_+568>>2]+W(v=v+-1|0,36)|0,P=r[(m=v<<2)+r[I+1072>>2]>>2],1<=(0|(r[T+4>>2]=P)))for(h=0;r[r[T>>2]+(h<<2)>>2]=r[_+560>>2]+W(r[r[I+1064>>2]+(r[m+r[I+1068>>2]>>2]+h<<2)>>2],28),(0|P)!=(0|(h=h+1|0)););if(r[T+24>>2]=1,r[T+28>>2]=1,r[T+8>>2]=1<>2],m=r[I+704>>2]}if(T=r[m>>2],(0|(r[_+4>>2]=T))<1)h=0;else{for($=r[I+732>>2],D=r[I+736>>2],F=r[I+740>>2],P=r[I+720>>2],H=r[_+52>>2],w=r[_+568>>2],U=r[_+8>>2],v=T;M=U+W(v=v+-1|0,12)|0,r[M>>2]=w+W(r[(h=v<<2)+P>>2],36),r[M+4>>2]=r[h+F>>2],r[M+8>>2]=r[h+D>>2],C[h+H>>2]=r[h+$>>2]?b(1):b(0),0<(0|v););for(M=r[_+16>>2],h=0;v=r[8+(w+W(r[($=(T=T+-1|0)<<2)+P>>2],36)|0)>>2],h=h+(r[M+$>>2]=v)|0,0<(0|T););T=r[_+4>>2]}if(r[_+12>>2]=T,r[_+20>>2]=h,T=r[m+4>>2],1<=(0|(r[_+304>>2]=T))){for(;h=r[_+308>>2]+((T=T+-1|0)<<5)|0,r[h>>2]=r[_+568>>2]+W(r[(v=T<<2)+r[I+752>>2]>>2],36),r[h+4>>2]=r[v+r[I+764>>2]>>2],r[h+8>>2]=r[v+r[I+768>>2]>>2],P=r[v+r[I+772>>2]>>2],r[h+12>>2]=P,m=r[v+r[I+776>>2]>>2],r[h+16>>2]=m,r[h+28>>2]=r[v+r[I+760>>2]>>2],P>>>0<=1?P-1?(r[20+(r[_+60>>2]+W(m,24)|0)>>2]=T,r[h+24>>2]=1,r[h+20>>2]=2):(r[8+(r[_+168>>2]+W(m,12)|0)>>2]=T,r[h+24>>2]=3,r[h+20>>2]=4):mt(4,1179,0),0<(0|T););I=r[_>>2],m=r[I+704>>2]}v=r[m+8>>2];t:if(!((0|(r[_+56>>2]=v))<1)){if(h=v+-1|0,w=r[I+796>>2],M=r[I+804>>2],$=r[I+800>>2],D=r[I+780>>2],F=r[_+568>>2],H=r[_+60>>2],lt[I+4|0]<2){for(;;)if(T=H+W(h,24)|0,r[T>>2]=F+W(r[(P=h<<2)+D>>2],36),r[T+4>>2]=r[P+$>>2],r[T+8>>2]=r[P+M>>2],P=r[P+w>>2],r[T+12>>2]=0,r[T+16>>2]=P,T=0<(0|h),h=h+-1|0,!T)break t}for(U=r[I+808>>2];T=H+W(h,24)|0,r[T>>2]=F+W(r[(P=h<<2)+D>>2],36),r[T+4>>2]=r[P+$>>2],r[T+8>>2]=r[P+M>>2],r[T+16>>2]=r[P+w>>2],r[T+12>>2]=r[P+U>>2],T=0<(0|h),h=h+-1|0,T;);}if(h=r[m+12>>2],1<=(0|(r[_+164>>2]=h)))for(P=r[I+828>>2],w=r[I+812>>2],M=r[_+568>>2],$=r[_+168>>2],T=h;D=$+W(T=T+-1|0,12)|0,r[D>>2]=M+W(r[(F=T<<2)+w>>2],36),r[D+4>>2]=r[P+F>>2],0<(0|T););if(((T=0)|v)<1)P=0;else{for(w=r[_+68>>2],M=r[_+60>>2],P=0;h=r[r[M+W(v=v+-1|0,24)>>2]+8>>2],P=(r[w+(v<<2)>>2]=h)+P|0,0<(0|v););h=r[_+164>>2],v=r[_+56>>2]}if(r[_+64>>2]=v,r[_+72>>2]=P,v=_,1<=(0|h)){for(w=r[_+176>>2],M=r[_+168>>2];P=r[r[M+W(h=h+-1|0,12)>>2]+8>>2],T=T+(r[w+(h<<2)>>2]=P)|0,0<(0|h););h=r[_+164>>2]}if(r[v+172>>2]=h,r[_+180>>2]=T,P=r[m+16>>2],1<=(0|(r[_+332>>2]=P))){for($=r[I+872>>2],D=r[I+892>>2],F=r[I+880>>2],H=r[I+876>>2],w=r[I+852>>2],M=r[_+568>>2],U=r[_+336>>2],T=P;h=U+W(T=T+-1|0,20)|0,r[h>>2]=M+W(r[(v=T<<2)+w>>2],36),r[h+4>>2]=r[v+H>>2],r[h+8>>2]=r[v+F>>2],r[h+16>>2]=r[v+D>>2],r[h+12>>2]=r[v+$>>2],0<(0|T););for(v=r[_+344>>2],h=0;T=r[8+(M+W(r[($=(P=P+-1|0)<<2)+w>>2],36)|0)>>2],h=(r[v+$>>2]=T)+h|0,0<(0|P););if(r[_+348>>2]=h,P=r[_+332>>2],!((0|(r[_+340>>2]=P))<1))for(h=P<<2,v=r[_+456>>2],w=r[_+452>>2];r[(M=(T=h+-4|0)<<2)+w>>2]=1065353216,r[($=(h<<=2)-4|0)+w>>2]=1065353216,r[(D=(h=h+-12|0)+w|0)>>2]=1065353216,r[D+4>>2]=1065353216,r[v+M>>2]=0,r[v+$>>2]=1065353216,r[(h=h+v|0)>>2]=0,r[h+4>>2]=0,h=T,0<(0|(P=P+-1|0)););}else r[_+340>>2]=P,r[_+348>>2]=0;if(P=r[m+72>>2],1<=(0|(r[_+480>>2]=P)))for($=r[I+1208>>2],D=r[I+1224>>2],F=r[I+1220>>2],H=r[I+1216>>2],U=r[I+1212>>2],V=r[_+484>>2],v=0;;){if(T=V+W(v,28)|0,w=r[(h=v<<2)+U>>2],r[T+4>>2]=w,r[T>>2]=r[h+H>>2],M=r[h+F>>2],r[T+16>>2]=M,it=r[h+D>>2],r[T+20>>2]=it,r[T+8>>2]=0,r[T+24>>2]=1+(M-it|0),1<=(0|w))for(it=r[h+$>>2],Tt=r[T+12>>2],vt=r[I+1236>>2],Ut=r[I+1228>>2],Lt=r[I+1232>>2],h=0;r[4+(T=Tt+(h<<4)|0)>>2]=r[(M=h+it<<2)+Lt>>2],r[T>>2]=r[M+Ut>>2],M=r[M+vt>>2],r[T+12>>2]=0,r[T+8>>2]=M,(0|w)!=(0|(h=h+1|0)););if((0|P)==(0|(v=v+1|0)))break}if(h=r[m+80>>2],(0|(r[_+500>>2]=h))<1)v=0;else{for(M=r[I+1280>>2],$=r[I+1268>>2],D=r[I+1276>>2],F=r[I+1272>>2],H=r[I+1264>>2],U=r[I+1260>>2],P=r[I+1248>>2],w=r[_+568>>2],V=r[_+504>>2];T=V+W(h=h+-1|0,24)|0,r[T>>2]=w+W(r[(v=h<<2)+P>>2],36),r[T+4>>2]=r[v+U>>2],r[T+8>>2]=r[v+H>>2],r[T+12>>2]=r[v+F>>2],v=r[v+$>>2],r[T+20>>2]=M+(v<<1),r[T+16>>2]=D+(v<<2),0<(0|h););if((0|(h=r[_+500>>2]))<1)v=0;else{for(M=r[_+512>>2],v=0;T=r[8+(w+W(r[($=(h=h+-1|0)<<2)+P>>2],36)|0)>>2],v=(r[M+$>>2]=T)+v|0,0<(0|h););h=r[_+500>>2]}}r[_+508>>2]=h,r[_+516>>2]=v;t:if(4<=lt[c+4|0]){if(!((P=lt[I+4|0])>>>0<4)){if(h=r[m+120>>2],1<=(0|(r[_+572>>2]=h))){for(M=r[I+1172>>2],$=r[_+576>>2];P=(0|(m=r[(T=(h=h+-1|0)<<2)+M>>2]))<0?m=w=v=0:(v=(P=r[T+r[I+1176>>2]>>2]<<2)+r[I+1188>>2]|0,w=r[T+r[I+1180>>2]>>2],m=r[_+544>>2]+W(m,52)|0,P+r[I+1184>>2]|0),T=$+W(h,20)|0,r[T+12>>2]=w,r[T+8>>2]=v,r[T+4>>2]=P,r[T>>2]=m,0<(0|h););if(I=r[_>>2],(P=lt[I+4|0])>>>0<4)break t}if(m=r[I+704>>2],v=r[m+100>>2],1<=(0|(r[_+580>>2]=v)))for(w=r[I+1084>>2],M=r[I+1076>>2],$=r[I+1192>>2],D=r[I+1080>>2],F=r[_+584>>2];T=F+W(v=v+-1|0,28)|0,r[T>>2]=r[(h=v<<2)+D>>2],r[T+4>>2]=$+(r[h+M>>2]<<2),h=r[h+w>>2],r[T+20>>2]=1,r[T+24>>2]=1,r[T+12>>2]=0,r[T+16>>2]=0,r[T+8>>2]=h,0<(0|v););if(v=r[m+104>>2],1<=(0|(r[_+588>>2]=v))){for(;;){if(T=r[_+592>>2]+W(v=v+-1|0,48)|0,r[T>>2]=r[_+584>>2]+W(r[(P=v<<2)+r[I+1088>>2]>>2],28),h=r[P+r[I+1092>>2]>>2],r[T+28>>2]=1,r[T+32>>2]=1,r[T+8>>2]=0,r[T+4>>2]=h,m=r[P+r[I+1104>>2]>>2],1<=(0|(r[T+36>>2]=m)))for(h=0;r[r[T+40>>2]+(h<<2)>>2]=r[_+576>>2]+W(r[r[I+1168>>2]+(r[P+r[I+1100>>2]>>2]+h<<2)>>2],20),(0|m)!=(0|(h=h+1|0)););if(!(1<=(0|v)))break}I=r[_>>2],P=lt[I+4|0]}if(!(P>>>0<4)){if(P=r[c+704>>2],h=r[P+108>>2],1<=(0|(r[_+604>>2]=h)))for(m=r[c+1124>>2],w=r[c+1128>>2],M=r[c+1120>>2],$=r[_+592>>2],D=r[_+608>>2];T=D+W(h=h+-1|0,12)|0,r[T>>2]=r[(v=h<<2)+M>>2],r[T+4>>2]=r[v+w>>2],r[T+8>>2]=$+W(r[m+v>>2],48),0<(0|h););if(h=r[P+112>>2],1<=(0|(r[_+620>>2]=h)))for(P=r[c+1148>>2],m=r[c+1152>>2],w=r[c+1144>>2],M=r[_+592>>2],$=r[_+624>>2];T=$+W(h=h+-1|0,12)|0,r[T>>2]=r[(v=h<<2)+w>>2],r[T+4>>2]=r[m+v>>2],r[T+8>>2]=M+W(r[v+P>>2],48),0<(0|h););if(v=r[I+1192>>2],T=r[r[I+704>>2]+20>>2],r[_+640>>2]=r[I+972>>2],P=r[I+964>>2],r[_+636>>2]=P,!((0|T)<(h=1))&&(r[P>>2]=v+(r[r[I+968>>2]>>2]<<2),(0|T)!=1))for(;r[(P=h<<2)+r[_+636>>2]>>2]=v+(r[P+r[I+968>>2]>>2]<<2),(0|T)!=(0|(h=h+1|0)););}}}else if(!(r[m+20>>2]<1))for(m=0;;){if(v=r[(w=m<<2)+r[_+636>>2]>>2],1<=((T=0)|(h=r[w+r[I+952>>2]>>2])))for(D=h+(M=r[w+r[I+948>>2]>>2])|0,F=r[I+1060>>2],H=r[I+1056>>2];;){if(1<=(0|($=r[(h=M<<2)+F>>2])))for(U=$+(P=r[h+H>>2])|0,V=r[I+1192>>2];;){$=v+(T<<2)|0,Z=C[V+(P<<2)>>2],h=v;r:{if(0<(0|T))for(;;){if(C[h>>2]==Z)break r;if(!((h=h+4|0)>>>0<$>>>0))break}C[$>>2]=Z,T=T+1|0}if(!((0|(P=P+1|0))<(0|U)))break}if(!((0|(M=M+1|0))<(0|D)))break}if(function(bt,Zt){var et,yt,At=0,wt=0,Ot=0;r[8+(G=et=G-208|0)>>2]=1,r[12+et>>2]=0;r:if(yt=Zt<<2){for(r[16+et>>2]=4,Ot=Zt=r[20+et>>2]=4,At=2;Zt=(Ot+4|0)+(wt=Zt)|0,r[(16+et|0)+(At<<2)>>2]=Zt,At=At+1|0,Ot=wt,Zt>>>0>>0;);if((wt=(bt+yt|0)-4|0)>>>0<=bt>>>0)Zt=At=1;else for(Zt=At=1;Zt=(3&At)==3?(gs(bt,Zt,16+et|0),Yn(8+et|0,2),Zt+2|0):(ke[(16+et|0)+((Ot=Zt+-1|0)<<2)>>2]>=wt-bt>>>0?Jn(bt,8+et|0,Zt,0,16+et|0):gs(bt,Zt,16+et|0),(0|Zt)==1?(Vn(8+et|0,1),0):(Vn(8+et|0,Ot),1)),At=1|r[8+et>>2],r[8+et>>2]=At,(bt=bt+4|0)>>>0>>0;);for(Jn(bt,8+et|0,Zt,0,16+et|0);;){a:{i:{o:{if(!((0|Zt)!=1|(0|At)!=1)){if(r[12+et>>2])break o;break r}if(1<(0|Zt))break i}Yn(8+et|0,wt=Wh(8+et|0)),At=r[8+et>>2],Zt=Zt+wt|0;break a}Vn(8+et|0,2),r[8+et>>2]=7^r[8+et>>2],Yn(8+et|0,1),Jn((Ot=bt+-4|0)-r[(16+et|0)+((wt=Zt+-2|0)<<2)>>2]|0,8+et|0,Zt+-1|0,1,16+et|0),Vn(8+et|0,1),At=1|r[8+et>>2],r[8+et>>2]=At,Jn(Ot,8+et|0,wt,1,16+et|0),Zt=wt}bt=bt+-4|0}}G=208+et|0}(v,T),r[w+r[_+640>>2]>>2]=T,!((0|(m=m+1|0))>2]+20>>2]))break}if(!(lt[c+4|0]<5|lt[r[_>>2]+4|0]<4)){if(T=r[c+704>>2],h=r[T+128>>2],1<=(0|(r[_+596>>2]=h)))for(P=r[c+1112>>2],m=r[c+1116>>2],w=r[c+1108>>2],M=r[_+592>>2],$=r[_+600>>2];I=$+W(h=h+-1|0,12)|0,r[I>>2]=r[(v=h<<2)+w>>2],r[I+4>>2]=r[m+v>>2],r[I+8>>2]=M+W(r[v+P>>2],48),0<(0|h););if(h=r[T+132>>2],1<=(0|(r[_+612>>2]=h)))for(P=r[c+1136>>2],m=r[c+1140>>2],w=r[c+1132>>2],M=r[_+592>>2],$=r[_+616>>2];I=$+W(h=h+-1|0,12)|0,r[I>>2]=r[(v=h<<2)+w>>2],r[I+4>>2]=r[m+v>>2],r[I+8>>2]=M+W(r[v+P>>2],48),0<(0|h););if(h=r[T+136>>2],!((0|(r[_+628>>2]=h))<1))for(I=r[c+1160>>2],v=r[c+1164>>2],P=r[c+1156>>2],m=r[_+592>>2],w=r[_+632>>2];c=w+W(h=h+-1|0,12)|0,r[c>>2]=r[(T=h<<2)+P>>2],r[c+4>>2]=r[T+v>>2],r[c+8>>2]=m+W(r[T+I>>2],48),0<(0|h););}Oh(_)}return G=576+f|0,_}(u,d,S))break e;r[36+p>>2]=2209,r[32+p>>2]=2361,mt(4,1294,32+p|0)}else r[20+p>>2]=1444,r[16+p>>2]=2361,mt(4,1294,16+p|0);else r[4+p>>2]=2132,r[p>>2]=2361,mt(4,1294,p);d=0}return G=64+p|0,0|d}function Lh(u){var d;return G=d=G-16|0,u=(u|=0)?function(S){var p;return Gr(16+(G=p=G-576|0)|0,0,560),Uh(S,16+p|0,12+p|0),G=576+p|0,r[12+p>>2]}(u):(r[4+d>>2]=2132,r[d>>2]=2343,mt(4,1294,d),0),G=16+d|0,0|u}function $h(u){var d=lt[u+4|0];Y(r[u+704>>2],4,64),sa(r[u+708>>2],4),sa(r[u+708>>2]+4|0,4),sa(r[u+708>>2]+8|0,4),sa(r[u+708>>2]+12|0,4),sa(r[u+708>>2]+16|0,4),sa(r[u+708>>2]+20|0,1),Y(r[u+720>>2],4,r[r[u+704>>2]>>2]),Y(r[u+724>>2],4,r[r[u+704>>2]>>2]),Y(r[u+728>>2],4,r[r[u+704>>2]>>2]),Y(r[u+732>>2],4,r[r[u+704>>2]>>2]),Y(r[u+736>>2],4,r[r[u+704>>2]>>2]),Y(r[u+740>>2],4,r[r[u+704>>2]>>2]),Y(r[u+752>>2],4,r[r[u+704>>2]+4>>2]),Y(r[u+756>>2],4,r[r[u+704>>2]+4>>2]),Y(r[u+760>>2],4,r[r[u+704>>2]+4>>2]),Y(r[u+764>>2],4,r[r[u+704>>2]+4>>2]),Y(r[u+768>>2],4,r[r[u+704>>2]+4>>2]),Y(r[u+772>>2],4,r[r[u+704>>2]+4>>2]),Y(r[u+776>>2],4,r[r[u+704>>2]+4>>2]),Y(r[u+780>>2],4,r[r[u+704>>2]+8>>2]),Y(r[u+784>>2],4,r[r[u+704>>2]+8>>2]),Y(r[u+788>>2],4,r[r[u+704>>2]+8>>2]),Y(r[u+796>>2],4,r[r[u+704>>2]+8>>2]),Y(r[u+800>>2],4,r[r[u+704>>2]+8>>2]),Y(r[u+804>>2],4,r[r[u+704>>2]+8>>2]),Y(r[u+812>>2],4,r[r[u+704>>2]+12>>2]),Y(r[u+816>>2],4,r[r[u+704>>2]+12>>2]),Y(r[u+820>>2],4,r[r[u+704>>2]+12>>2]),Y(r[u+828>>2],4,r[r[u+704>>2]+12>>2]),Y(r[u+852>>2],4,r[r[u+704>>2]+16>>2]),Y(r[u+856>>2],4,r[r[u+704>>2]+16>>2]),Y(r[u+860>>2],4,r[r[u+704>>2]+16>>2]),Y(r[u+868>>2],4,r[r[u+704>>2]+16>>2]),Y(r[u+872>>2],4,r[r[u+704>>2]+16>>2]),Y(r[u+876>>2],4,r[r[u+704>>2]+16>>2]),Y(r[u+880>>2],4,r[r[u+704>>2]+16>>2]),Y(r[u+884>>2],4,r[r[u+704>>2]+16>>2]),Y(r[u+888>>2],1,r[r[u+704>>2]+16>>2]),Y(r[u+892>>2],4,r[r[u+704>>2]+16>>2]),Y(r[u+896>>2],4,r[r[u+704>>2]+16>>2]),Y(r[u+900>>2],4,r[r[u+704>>2]+16>>2]),Y(r[u+904>>2],4,r[r[u+704>>2]+16>>2]),Y(r[u+908>>2],4,r[r[u+704>>2]+16>>2]),Y(r[u+912>>2],4,r[r[u+704>>2]+16>>2]),Y(r[u+924>>2],4,r[r[u+704>>2]+20>>2]),Y(r[u+928>>2],4,r[r[u+704>>2]+20>>2]),Y(r[u+932>>2],4,r[r[u+704>>2]+20>>2]),Y(r[u+936>>2],4,r[r[u+704>>2]+20>>2]),Y(r[u+940>>2],4,r[r[u+704>>2]+20>>2]),Y(r[u+948>>2],4,r[r[u+704>>2]+20>>2]),Y(r[u+952>>2],4,r[r[u+704>>2]+20>>2]),Y(r[u+976>>2],4,r[r[u+704>>2]+24>>2]),Y(r[u+980>>2],4,r[r[u+704>>2]+28>>2]),Y(r[u+984>>2],4,r[r[u+704>>2]+28>>2]),Y(r[u+996>>2],4,r[r[u+704>>2]+32>>2]),Y(r[u+1e3>>2],4,r[r[u+704>>2]+32>>2]),Y(r[u+1004>>2],4,r[r[u+704>>2]+32>>2]),Y(r[u+1008>>2],4,r[r[u+704>>2]+32>>2]),Y(r[u+1012>>2],4,r[r[u+704>>2]+32>>2]),Y(r[u+1016>>2],4,r[r[u+704>>2]+32>>2]),Y(r[u+1020>>2],4,r[r[u+704>>2]+32>>2]),Y(r[u+1032>>2],4,r[r[u+704>>2]+36>>2]),Y(r[u+1036>>2],4,r[r[u+704>>2]+36>>2]),Y(r[u+1040>>2],4,r[r[u+704>>2]+36>>2]),Y(r[u+1052>>2],4,r[r[u+704>>2]+40>>2]),Y(r[u+1064>>2],4,r[r[u+704>>2]+44>>2]),Y(r[u+1068>>2],4,r[r[u+704>>2]+48>>2]),Y(r[u+1072>>2],4,r[r[u+704>>2]+48>>2]),Y(r[u+1056>>2],4,r[r[u+704>>2]+52>>2]),Y(r[u+1060>>2],4,r[r[u+704>>2]+52>>2]),Y(r[u+1192>>2],4,r[r[u+704>>2]+56>>2]),Y(r[u+1196>>2],4,r[r[u+704>>2]+60>>2]),Y(r[u+1200>>2],2,r[r[u+704>>2]+64>>2]),Y(r[u+1204>>2],4,r[r[u+704>>2]+68>>2]),Y(r[u+1208>>2],4,r[r[u+704>>2]+72>>2]),Y(r[u+1212>>2],4,r[r[u+704>>2]+72>>2]),Y(r[u+1216>>2],4,r[r[u+704>>2]+72>>2]),Y(r[u+1220>>2],4,r[r[u+704>>2]+72>>2]),Y(r[u+1224>>2],4,r[r[u+704>>2]+72>>2]),Y(r[u+1228>>2],4,r[r[u+704>>2]+76>>2]),Y(r[u+1232>>2],4,r[r[u+704>>2]+76>>2]),Y(r[u+1236>>2],4,r[r[u+704>>2]+76>>2]),Y(r[u+1248>>2],4,r[r[u+704>>2]+80>>2]),Y(r[u+1252>>2],4,r[r[u+704>>2]+80>>2]),Y(r[u+1256>>2],4,r[r[u+704>>2]+80>>2]),Y(r[u+1260>>2],4,r[r[u+704>>2]+80>>2]),Y(r[u+1264>>2],4,r[r[u+704>>2]+80>>2]),Y(r[u+1268>>2],4,r[r[u+704>>2]+80>>2]),Y(r[u+1272>>2],4,r[r[u+704>>2]+80>>2]),Y(r[u+1276>>2],4,r[r[u+704>>2]+84>>2]),Y(r[u+1280>>2],2,r[r[u+704>>2]+84>>2]),Y(r[u+1284>>2],4,r[r[u+704>>2]+88>>2]),d>>>0<2||(Y(r[u+808>>2],4,r[r[u+704>>2]+8>>2]),d>>>0<4)||(Y(r[u+968>>2],4,r[r[u+704>>2]+20>>2]),Y(r[u+972>>2],4,r[r[u+704>>2]+20>>2]),Y(r[u+792>>2],4,r[r[u+704>>2]+8>>2]),Y(r[u+824>>2],4,r[r[u+704>>2]+12>>2]),Y(r[u+864>>2],4,r[r[u+704>>2]+16>>2]),Y(r[u+1288>>2],4,r[r[u+704>>2]+92>>2]),Y(r[u+1292>>2],4,r[r[u+704>>2]+92>>2]),Y(r[u+1296>>2],4,r[r[u+704>>2]+92>>2]),Y(r[u+1300>>2],4,r[r[u+704>>2]+96>>2]),Y(r[u+1304>>2],4,r[r[u+704>>2]+96>>2]),Y(r[u+1308>>2],4,r[r[u+704>>2]+96>>2]),Y(r[u+944>>2],4,r[r[u+704>>2]+20>>2]),Y(r[u+956>>2],4,r[r[u+704>>2]+20>>2]),Y(r[u+960>>2],4,r[r[u+704>>2]+20>>2]),Y(r[u+1076>>2],4,r[r[u+704>>2]+100>>2]),Y(r[u+1080>>2],4,r[r[u+704>>2]+100>>2]),Y(r[u+1084>>2],4,r[r[u+704>>2]+100>>2]),Y(r[u+1088>>2],4,r[r[u+704>>2]+104>>2]),Y(r[u+1092>>2],4,r[r[u+704>>2]+104>>2]),Y(r[u+1096>>2],4,r[r[u+704>>2]+104>>2]),Y(r[u+1100>>2],4,r[r[u+704>>2]+104>>2]),Y(r[u+1104>>2],4,r[r[u+704>>2]+104>>2]),Y(r[u+1120>>2],4,r[r[u+704>>2]+108>>2]),Y(r[u+1124>>2],4,r[r[u+704>>2]+108>>2]),Y(r[u+1128>>2],4,r[r[u+704>>2]+108>>2]),Y(r[u+1144>>2],4,r[r[u+704>>2]+112>>2]),Y(r[u+1148>>2],4,r[r[u+704>>2]+112>>2]),Y(r[u+1152>>2],4,r[r[u+704>>2]+112>>2]),Y(r[u+1168>>2],4,r[r[u+704>>2]+116>>2]),Y(r[u+1172>>2],4,r[r[u+704>>2]+120>>2]),Y(r[u+1176>>2],4,r[r[u+704>>2]+120>>2]),Y(r[u+1180>>2],4,r[r[u+704>>2]+120>>2]),Y(r[u+1184>>2],4,r[r[u+704>>2]+124>>2]),Y(r[u+1188>>2],4,r[r[u+704>>2]+124>>2]),(0|d)!=4&&(Y(r[u+988>>2],4,r[r[u+704>>2]+28>>2]),Y(r[u+992>>2],4,r[r[u+704>>2]+28>>2]),Y(r[u+1024>>2],4,r[r[u+704>>2]+32>>2]),Y(r[u+1028>>2],4,r[r[u+704>>2]+32>>2]),Y(r[u+1044>>2],4,r[r[u+704>>2]+36>>2]),Y(r[u+1048>>2],4,r[r[u+704>>2]+36>>2]),Y(r[u+1108>>2],4,r[r[u+704>>2]+128>>2]),Y(r[u+1112>>2],4,r[r[u+704>>2]+128>>2]),Y(r[u+1116>>2],4,r[r[u+704>>2]+128>>2]),Y(r[u+1132>>2],4,r[r[u+704>>2]+132>>2]),Y(r[u+1136>>2],4,r[r[u+704>>2]+132>>2]),Y(r[u+1140>>2],4,r[r[u+704>>2]+132>>2]),Y(r[u+1156>>2],4,r[r[u+704>>2]+136>>2]),Y(r[u+1160>>2],4,r[r[u+704>>2]+136>>2]),Y(r[u+1164>>2],4,r[r[u+704>>2]+136>>2])))}function Dh(u,d){var S=0,p=0,c=0,T=0,h=0,f=0,_=u+d|0;e:{t:if(!(1&(S=r[u+4>>2]))){if(!(3&S))break e;if(d=(S=r[u>>2])+d|0,(0|(u=u-S|0))!=r[2092])if(S>>>0<=255)c=S>>>3,S=r[u+8>>2],(0|(p=r[u+12>>2]))==(0|S)?(f=r[2087]&or(c),r[2087]=f):(r[S+12>>2]=p,r[p+8>>2]=S);else{if(h=r[u+24>>2],(0|(S=r[u+12>>2]))!=(0|u))p=r[u+8>>2],r[p+12>>2]=S,r[S+8>>2]=p;else if(c=(c=r[(p=u+20|0)>>2])||r[(p=u+16|0)>>2]){for(;T=p,(c=r[(p=(S=c)+20|0)>>2])||(p=S+16|0,c=r[S+16>>2]););r[T>>2]=0}else S=0;if(h){p=r[u+28>>2];r:{if(r[(c=8652+(p<<2)|0)>>2]==(0|u)){if(r[c>>2]=S)break r;f=r[2088]&or(p),r[2088]=f;break t}if(!(r[h+(r[h+16>>2]==(0|u)?16:20)>>2]=S))break t}r[S+24>>2]=h,(p=r[u+16>>2])&&(r[S+16>>2]=p,r[p+24>>2]=S),(p=r[u+20>>2])&&(r[S+20>>2]=p,r[p+24>>2]=S)}}else if((3&(S=r[4+_>>2]))==3)return r[2089]=d,r[4+_>>2]=-2&S,r[u+4>>2]=1|d,r[_>>2]=d}t:{if(!(2&(S=r[4+_>>2]))){if(r[2093]==(0|_)){if(r[2093]=u,d=r[2090]+d|0,r[2090]=d,r[u+4>>2]=1|d,r[2092]!=(0|u))break e;return r[2089]=0,r[2092]=0}if(r[2092]==(0|_))return r[2092]=u,d=r[2089]+d|0,r[2089]=d,r[u+4>>2]=1|d,r[u+d>>2]=d;d=(-8&S)+d|0;r:if(S>>>0<=255)c=S>>>3,S=r[8+_>>2],(0|(p=r[12+_>>2]))==(0|S)?(f=r[2087]&or(c),r[2087]=f):(r[S+12>>2]=p,r[p+8>>2]=S);else{if(h=r[24+_>>2],(0|_)!=(0|(S=r[12+_>>2])))p=r[8+_>>2],r[p+12>>2]=S,r[S+8>>2]=p;else if(c=(c=r[(p=20+_|0)>>2])||r[(p=16+_|0)>>2]){for(;T=p,(c=r[(p=(S=c)+20|0)>>2])||(p=S+16|0,c=r[S+16>>2]););r[T>>2]=0}else S=0;if(h){p=r[28+_>>2];a:{if(r[(c=8652+(p<<2)|0)>>2]==(0|_)){if(r[c>>2]=S)break a;f=r[2088]&or(p),r[2088]=f;break r}if(!(r[h+(r[h+16>>2]==(0|_)?16:20)>>2]=S))break r}r[S+24>>2]=h,(p=r[16+_>>2])&&(r[S+16>>2]=p,r[p+24>>2]=S),(p=r[20+_>>2])&&(r[S+20>>2]=p,r[p+24>>2]=S)}}if(r[u+4>>2]=1|d,r[u+d>>2]=d,r[2092]!=(0|u))break t;return r[2089]=d}r[4+_>>2]=-2&S,r[u+4>>2]=1|d,r[u+d>>2]=d}if(d>>>0<=255)return d=8388+((S=d>>>3)<<3)|0,S=(p=r[2087])&(S=1<>2]:(r[2087]=S|p,d),r[d+8>>2]=u,r[S+12>>2]=u,r[u+12>>2]=d,r[u+8>>2]=S;r[u+16>>2]=0,S=r[u+20>>2]=0,(c=d>>>8)&&(S=31,16777215>>0||(S=28+((S=((_=(c<<=T=c+1048320>>>16&8)<<(S=c+520192>>>16&4))<<(c=245760+_>>>16&2)>>>15)-(c|S|T)|0)<<1|d>>>S+21&1)|0)),c=8652+((r[(p=u)+28>>2]=S)<<2)|0;t:{if((p=r[2088])&(T=1<>>1)|0),S=r[c>>2];;){if((-8&r[(c=S)+4>>2])==(0|d))break t;if(S=p>>>29,p<<=1,!(S=r[16+(T=c+(4&S)|0)>>2]))break}r[T+16>>2]=u}else r[2088]=p|T,r[c>>2]=u;return r[u+24>>2]=c,r[u+12>>2]=u,r[u+8>>2]=u}d=r[c+8>>2],r[d+12>>2]=u,r[c+8>>2]=u,r[u+24>>2]=0,r[u+12>>2]=c,r[u+8>>2]=d}}function Nh(u){var d,S,p,c,T,h,f,_,m=b(0),v=(b(0),0),I=0,P=(b(0),b(0),b(0),b(0),0);b(0),b(0);e:{t:{if(zt(u),I=2147483647&(v=It[0])){if(!(I>>>0<2139095041))return b(b(.10000000149011612)+u);if((0|I)==1065353216)return b(-1<(0|v)?.10000000149011612:10);if((0|I)==2139095040)return b(-1<(0|v)?0:-u);if((0|v)==1073741824)return b(.010000000707805157);if((0|v)==1056964608)return b(.3162277638912201);if(1291845633<=I>>>0)return b((0|v)<0?ls:0);if(d=C[1701],_=b(b(1.600000023841858)-d),S=b(b(1)/b(d+b(1.600000023841858))),Mt(0,-4096&(zt(f=b(_*S)),It[0])),m=$t(),p=b(m*m),T=C[1705],d=b(S*b(b(_-b((c=m)*b(3.099609375)))-b(m*b(b(1.600000023841858)-b(b(3.099609375)-d))))),S=b(b(f+m)*d),m=b(f*f),_=b(S+b(b(m*m)*b(b(m*b(b(m*b(b(m*b(b(m*b(b(m*b(.20697501301765442))+b(.23066075146198273)))+b(.2727281153202057)))+b(.3333333432674408)))+b(.4285714328289032)))+b(.6000000238418579)))),Mt(0,-4096&(zt(b(b(p+b(3))+_)),It[0])),m=$t(),S=b(c*m),f=b(b(d*m)+b(f*b(_-b(b(m+b(-3))-p)))),Mt(0,-4096&(zt(b(S+f)),It[0])),m=$t(),d=b(m*b(.9619140625)),p=b(C[1703]+b(b(b(f-b(m-S))*b(.9617967009544373))+b(m*b(-.00011736857413779944)))),Mt(0,-4096&(zt(b(b(T+b(d+p))+b(-4))),It[0])),f=$t(),Mt(0,-4096&v),_=$t(),m=b(f*_),u=b(b(b(p-b(b(b(f-b(-4))-T)-d))*u)+b(b(u-_)*f)),zt(f=b(m+u)),1124073473<=(0|(v=It[0])))break t;r:{if((I=1124073472)==(0|v)){if(b(u+b(4299566569443414e-23))>b(f-m))break t}else{if(I=2147483647&v,!(u<=b(f-m)^1|(0|v)!=-1021968384)|1125515265<=I>>>0)break e;if(I>>>0<1056964609)break r}P=(8388607&(I=(8388608>>>(I>>>23)-126)+v|0)|8388608)>>>150-(h=I>>>23&255),P=(0|v)<0?0-P|0:P,m=b(m-(Mt(0,I&-8388608>>h-127),$t())),zt(b(u+m)),v=It[0]}Mt(0,-32768&v),f=$t(),d=b(f*b(.693145751953125)),f=b(b(f*b(14286065379565116e-22))+b(b(u-b(f-m))*b(.6931471824645996))),u=b(d+f),m=b(u*u),m=b(u-b(m*b(b(m*b(b(m*b(b(m*b(b(m*b(4138136944220605e-23))+b(-16533901998627698e-22)))+b(661375597701408e-19)))+b(-.0027777778450399637)))+b(.1666666716337204)))),c=b(b(u*m)/b(m+b(-2))),m=b(f-b(u-d)),u=(0|(v=0|(zt(u=b(b(u-b(c-b(m+b(u*m))))+b(1))),It[0]+(P<<23))))<=8388607?function(M,w){var $=0;return 128<=(0|w)?(M=b(M*b(17014118346046923e22)),w=(0|($=w+-127|0))<128?$:(M=b(M*b(17014118346046923e22)),((0|w)<381?w:381)+-254|0)):-127<(0|w)||(M=b(M*b(11754943508222875e-54)),w=-127<(0|($=w+126|0))?$:(M=b(M*b(11754943508222875e-54)),(-378<(0|w)?w:-378)+252|0)),b(M*(Mt(0,1065353216+(w<<23)|0),$t()))}(u,P):(Mt(0,v),$t()),u=b(b(1)*u)}else u=b(1);return u}return b(ls)}return b(0)}function Fh(u,d){var S,p,c,T=0,h=0,f=b(0);if(zt(d),!((c=2147483647&(p=It[0]))>>>0<=2139095040&&(zt(u),(T=2147483647&(h=It[0]))>>>0<2139095041)))return b(u+d);if((0|p)==1065353216)return Bh(u);p=(S=p>>>30&2)|h>>>31;e:{t:{r:{a:{if(!T){switch(p-2|0){case 0:break a;case 1:break;default:break r}return b(-3.1415927410125732)}if((0|c)!=2139095040){if(!c|!(T>>>0<=218103808+c>>>0&&(0|T)!=2139095040))break e;if(u=f=T+218103808>>>0>>0&&(f=b(0),S)?f:Bh(b(Ee(b(u/d)))),p>>>0<=2){switch(p-1|0){case 0:return b(-u);case 1:break;default:break r}return b(b(3.1415927410125732)-b(u+b(8742277657347586e-23)))}return b(b(u+b(8742277657347586e-23))+b(-3.1415927410125732))}if((0|T)==2139095040)break t;return C[6784+(p<<2)>>2]}u=b(3.1415927410125732)}return u}return C[6768+(p<<2)>>2]}return b((0|h)<0?-1.5707963705062866:1.5707963705062866)}function Bh(u){b(0);var d,S,p,c,T,h=0;b(0),b(0),zt(u);e:{if(1283457024<=(c=2147483647&(T=It[0]))>>>0){if(2139095040>>0)break e;return b((0|T)<0?-1.570796251296997:1.570796251296997)}t:{if(c>>>0<=1054867455){if(h=-1,964689920<=c>>>0)break t;break e}u=b(Ee(u)),h=c>>>0<=1066926079?c>>>0<=1060110335?(u=b(b(b(u+u)+b(-1))/b(u+b(2))),0):(u=b(b(u+b(-1))/b(u+b(1))),1):c>>>0<=1075576831?(u=b(b(u+b(-1.5))/b(b(u*b(1.5))+b(1))),2):(u=b(b(-1)/u),3)}if(c=h,S=b(u*u),d=b(S*S),p=b(d*b(b(d*b(-.106480173766613))+b(-.19999158382415771))),d=b(S*b(b(d*b(b(d*b(.06168760731816292))+b(.14253635704517365)))+b(.333333283662796))),(0|c)<=-1)return b(u-b(u*b(p+d)));u=b(C[6736+(c<<=2)>>2]-b(b(b(u*b(p+d))-C[6752+c>>2])-u)),u=(0|T)<0?b(-u):u}return u}function Hh(u,d){var S,p,c,T=0,h=0;return G=p=G-16|0,zt(u),(T=2147483647&(c=It[0]))>>>0<=1305022426?(jt[d>>3]=(S=+u)+-1.5707963109016418*(h=.6366197723675814*S+6755399441055744-6755399441055744)+-15893254773528196e-24*h,T=Ee(h)<2147483648?~~h:-2147483648):2139095040<=T>>>0?(jt[d>>3]=b(u-u),T=0):(S=T,jt[8+p>>3]=(Mt(0,S-((T=(T>>>23)-150|0)<<23)|0),$t()),T=function(f,_,m){var v,I,P,M,w,$,D=0,F=0,H=0,U=0,V=0,Z=0,it=0,vt=0,Tt=0,Lt=0,Ut=0;if(G=v=G-560|0,it=(F=m)+W(P=0<(0|(m=(m+-3|0)/24|0))?m:0,-24)|0,0<=(0|(I=r[972])))for(F=I+1|0,m=P;jt[(320+v|0)+(H<<3)>>3]=(0|m)<0?0:+r[3904+(m<<2)>>2],m=m+1|0,(0|F)!=(0|(H=H+1|0)););for(V=it+-24|0,F=0;;){for(D=m=0;D+=jt[(m<<3)+f>>3]*jt[(320+v|0)+(F-m<<3)>>3],(0|(m=m+1|0))!=1;);if(jt[(F<<3)+v>>3]=D,m=(0|F)<(0|I),F=F+1|0,!m)break}$=23-V|0,M=24-V|0,F=I;e:{for(;;){if(D=jt[(F<<3)+v>>3],!(Tt=((m=0)|(H=F))<1))for(;Z=(480+v|0)+(m<<2)|0,vt=D,U=Ee(D*=5960464477539063e-23)<2147483648?~~D:-2147483648,U=Ee(vt+=-16777216*(D=0|U))<2147483648?~~vt:-2147483648,r[Z>>2]=U,D=jt[((H=H+-1|0)<<3)+v>>3]+D,(0|F)!=(0|(m=m+1|0)););D=jn(D,V),D=(D+=-8*us(.125*D))-(0|(Z=Ee(D)<2147483648?~~D:-2147483648));t:{r:{a:{if(Ut=(0|V)<1){if(V)break a;U=r[476+((F<<2)+v|0)>>2]>>23}else U=r[476+(H=(F<<2)+v|0)>>2],Lt=H,H=U-((m=U>>M)<>2]=H)>>$;if((0|U)<1)break t;break r}if(U=2,!(.5<=D)){U=0;break t}}if(H=m=0,!Tt)for(;;){Tt=r[(w=(480+v|0)+(m<<2)|0)>>2],Lt=16777215;r:{a:{if(!H){if(!Tt)break a;Lt=16777216,H=1}r[w>>2]=Lt-Tt;break r}H=0}if((0|F)==(0|(m=m+1|0)))break}Ut||1<(m=V+-1|0)>>>0||(r[476+(m=(F<<2)+v|0)>>2]=m-1?8388607&r[m+476>>2]:4194303&r[m+476>>2]),Z=Z+1|0,(0|U)==2&&(D=1-D,U=2,H)&&(D-=jn(1,V))}if(D!=0)break;if(!(((H=0)|(m=F))<=(0|I))){for(;H=r[(480+v|0)+((m=m+-1|0)<<2)>>2]|H,(0|I)<(0|m););if(H){for(it=V;it=it+-24|0,!r[(480+v|0)+((F=F+-1|0)<<2)>>2];);break e}}for(m=1;m=(H=m)+1|0,!r[(480+v|0)+(I-H<<2)>>2];);for(H=F+H|0;;){for(F=Z=F+1|0,jt[(320+v|0)+(Z<<3)>>3]=r[3904+(P+F<<2)>>2],D=m=0;D+=jt[(m<<3)+f>>3]*jt[(320+v|0)+(Z-m<<3)>>3],(0|(m=m+1|0))!=1;);if(jt[(F<<3)+v>>3]=D,!((0|F)<(0|H)))break}F=H}16777216<=(D=jn(D,0-V|0))?(f=(480+v|0)+(F<<2)|0,vt=D,m=Ee(D*=5960464477539063e-23)<2147483648?~~D:-2147483648,H=Ee(D=vt+-16777216*(0|m))<2147483648?~~D:-2147483648,r[f>>2]=H,F=F+1|0):(m=Ee(D)<2147483648?~~D:-2147483648,it=V),r[(480+v|0)+(F<<2)>>2]=m}if(D=jn(1,it),!((0|F)<=-1)){for(m=F;jt[(m<<3)+v>>3]=D*+r[(480+v|0)+(m<<2)>>2],D*=5960464477539063e-23,f=0<(0|m),m=m+-1|0,f;);if(!((0|F)<=-1))for(m=F;;){for(V=F-(f=m)|0,m=D=0;D+=jt[6672+(m<<3)>>3]*jt[(f+m<<3)+v>>3],!((0|I)<=(0|m))&&(it=m>>>0>>0,m=m+1|0,it););if(jt[(160+v|0)+(V<<3)>>3]=D,m=f+-1|0,!(0<(0|f)))break}}if(0<=(F|(D=0)))for(;D+=jt[(160+v|0)+(F<<3)>>3],f=0<(0|F),F=F+-1|0,f;);return jt[_>>3]=U?-D:D,G=560+v|0,7&Z}(8+p|0,p,T),h=jt[p>>3],(0|c)<=-1?(jt[d>>3]=-h,T=0-T|0):jt[d>>3]=h),G=16+p|0,T}function kh(u,d){return u?function(S,p){e:{if(S){if(p>>>0<=127)break e;if(r[r[1789]>>2]){if(p>>>0<=2047)return ot[S+1|0]=63&p|128,ot[0|S]=p>>>6|192,2;if(!((-8192&p)!=57344&&55296<=p>>>0))return ot[S+2|0]=63&p|128,ot[0|S]=p>>>12|224,ot[S+1|0]=p>>>6&63|128,3;if(p+-65536>>>0<=1048575)return ot[S+3|0]=63&p|128,ot[0|S]=p>>>18|240,ot[S+2|0]=p>>>6&63|128,ot[S+1|0]=p>>>12&63|128,4}else if((-128&p)==57216)break e;r[2086]=25,S=-1}else S=1;return S}return ot[0|S]=p,1}(u,d):0}function Uh(u,d,S){var p,c,T=0,h=0,f=0,_=0,m=0,v=0,I=0,P=0,M=0,w=lt[u+4|0];if(r[d>>2]=652,h=r[u+704>>2],1<=(0|(_=r[h>>2]))){for(m=r[u+720>>2],I=r[u+1072>>2];f=(1<>2]<<2)>>2])+f|0,(0|_)!=(0|(T=T+1|0)););T=f<<2}if(r[d+4>>2]=W(_,12),r[d+8>>2]=r[h>>2]<<2,r[d+12>>2]=r[h>>2]<<2,r[d+16>>2]=r[h>>2]<<2,r[d+20>>2]=r[h>>2]<<2,f=r[h>>2],r[d+28>>2]=T,r[d+24>>2]=f<<2,f=r[h>>2],r[d+40>>2]=T,r[d+36>>2]=T,r[d+32>>2]=f<<2,r[d+44>>2]=r[h+4>>2]<<5,r[d+48>>2]=r[h+4>>2]<<2,r[d+52>>2]=r[h+4>>2]<<2,r[d+56>>2]=r[h+4>>2]<<2,r[d+60>>2]=r[h+4>>2]<<4,r[d+64>>2]=r[h+4>>2]<<4,1<=((T=0)|(_=r[h+8>>2]))){for(m=r[u+780>>2],I=r[u+1072>>2],M=r[u+796>>2],f=0;v=(15+(r[(P=T<<2)+M>>2]<<3)&-16)+v|0,f=(1<>2]<<2)>>2])+f|0,(0|_)!=(0|(T=T+1|0)););T=f<<2}if(r[d+68>>2]=W(_,24),r[d+72>>2]=r[h+8>>2]<<2,r[d+76>>2]=r[h+8>>2]<<2,f=r[h+8>>2],r[d+84>>2]=v,r[d+80>>2]=f<<2,r[d+88>>2]=r[h+8>>2]<<4,r[d+92>>2]=r[h+8>>2]<<4,f=r[h+8>>2],r[d+100>>2]=T,r[d+96>>2]=f<<2,f=r[h+8>>2],r[d+140>>2]=T,r[d+136>>2]=T,r[d+132>>2]=T,r[d+128>>2]=T,r[d+124>>2]=T,r[d+120>>2]=T,r[d+116>>2]=T,r[d+112>>2]=T,r[d+108>>2]=T,r[d+104>>2]=f<<2,r[d+144>>2]=r[h+8>>2]<<2,r[d+148>>2]=r[h+8>>2]<<2,r[d+152>>2]=r[h+8>>2]<<2,r[d+156>>2]=r[h+8>>2]<<2,r[d+160>>2]=r[h+8>>2]<<2,r[d+164>>2]=r[h+8>>2]<<2,1<=((T=v=0)|(_=r[h+12>>2]))){for(m=r[u+812>>2],I=r[u+1072>>2],f=0;f=(1<>2]<<2)>>2])+f|0,(0|_)!=(0|(T=T+1|0)););T=f<<2}if(r[d+168>>2]=W(_,12),r[d+172>>2]=r[h+12>>2]<<2,r[d+176>>2]=r[h+12>>2]<<2,r[d+180>>2]=r[h+12>>2]<<2,r[d+184>>2]=r[h+12>>2]<<2,r[d+188>>2]=r[h+12>>2]<<2,r[d+192>>2]=r[h+12>>2]<<2,r[d+196>>2]=r[h+12>>2]<<2,r[d+200>>2]=r[h+12>>2]<<2,r[d+204>>2]=r[h+12>>2]<<4,r[d+208>>2]=r[h+12>>2]<<4,f=r[h+12>>2],r[d+216>>2]=T,r[d+212>>2]=f<<2,f=r[h+12>>2],r[d+268>>2]=T,r[d+264>>2]=T,r[d+260>>2]=T,r[d+256>>2]=T,r[d+252>>2]=T,r[d+248>>2]=T,r[d+244>>2]=T,r[d+240>>2]=T,r[d+236>>2]=T,r[d+232>>2]=T,r[d+228>>2]=T,r[d+224>>2]=T,r[d+220>>2]=f<<2,r[d+272>>2]=r[h+12>>2]<<2,r[d+276>>2]=r[h+12>>2]<<2,r[d+280>>2]=r[h+12>>2]<<2,r[d+284>>2]=r[h+12>>2]<<2,r[d+288>>2]=r[h+12>>2]<<2,r[d+292>>2]=r[h+12>>2]<<2,1<=((T=0)|(f=r[h+16>>2]))){for(m=r[u+852>>2],I=r[u+1072>>2],M=r[u+892>>2],_=0;v=(15+(r[(P=T<<2)+M>>2]<<3)&-16)+v|0,_=(1<>2]<<2)>>2])+_|0,(0|f)!=(0|(T=T+1|0)););T=_<<2}if(r[d+296>>2]=W(f,20),r[d+300>>2]=r[h+16>>2]<<2,r[d+304>>2]=r[h+16>>2],r[d+308>>2]=r[h+16>>2]<<2,r[d+312>>2]=r[h+16>>2]<<2,f=r[h+16>>2],r[d+320>>2]=v,r[d+316>>2]=f<<2,r[d+324>>2]=r[h+16>>2]<<2,r[d+328>>2]=r[h+16>>2]<<4,r[d+332>>2]=r[h+16>>2]<<4,r[d+336>>2]=r[h+16>>2]<<2,r[d+340>>2]=r[h+16>>2]<<2,r[d+344>>2]=r[h+16>>2]<<2,r[d+348>>2]=r[h+16>>2]<<4,r[d+352>>2]=r[h+16>>2]<<4,f=r[h+16>>2],r[d+360>>2]=T,r[d+356>>2]=f<<2,f=r[h+16>>2],r[d+404>>2]=T,r[d+400>>2]=T,r[d+396>>2]=T,r[d+392>>2]=T,r[d+388>>2]=T,r[d+384>>2]=T,r[d+380>>2]=T,r[d+376>>2]=T,r[d+372>>2]=T,r[d+368>>2]=T,r[d+364>>2]=f<<2,r[d+408>>2]=r[h+16>>2]<<2,r[d+412>>2]=r[h+16>>2]<<2,r[d+416>>2]=r[h+16>>2]<<2,r[d+420>>2]=r[h+16>>2]<<2,r[d+424>>2]=r[h+16>>2]<<2,r[d+428>>2]=r[h+16>>2]<<2,m=r[u+704>>2],r[d+432>>2]=W(r[m+20>>2],52),r[d+436>>2]=w>>>(T=_=0)<=3?r[m+20>>2]<<2:0,r[d+440>>2]=r[m+20>>2]<<2,r[d+444>>2]=W(r[m+52>>2],28),1<=(0|(h=r[m+48>>2]))){for(f=r[u+1072>>2],v=0;v=(I=r[f+(T<<2)>>2])+v|0,_=(1<>2]=T,r[d+456>>2]=T,r[d+452>>2]=_,r[d+448>>2]=W(h,36),r[d+500>>2]=W(r[m+72>>2],28),1<=((v=T=f=0)|(I=r[m+72>>2]))){for(M=r[u+1224>>2],P=r[u+1220>>2],c=r[u+1212>>2],_=0;_=(0|(p=r[(h=v<<2)+P>>2]-r[h+M>>2]|0))<(0|_)?_:1+p|0,T=(0|T)<(0|(h=r[h+c>>2]))?h:T,(0|I)!=(0|(v=v+1|0)););v=T<<2,T=_<<2}if(h=r[m+76>>2],r[d+516>>2]=T,r[d+512>>2]=v,r[d+508>>2]=T,r[d+504>>2]=h<<4,1<=(0|(h=r[m+80>>2]))){for(f=r[u+1248>>2],v=r[u+1072>>2],_=T=0;_=(1<>2]<<2)>>2])+_|0,(0|h)!=(0|(T=T+1|0)););f=_<<2}if(r[d+520>>2]=W(h,24),r[d+524>>2]=r[m+80>>2]<<2,h=r[m+80>>2],r[d+532>>2]=f,r[d+528>>2]=h<<2,h=r[m+80>>2],r[d+544>>2]=f,r[d+540>>2]=f,r[d+536>>2]=h<<2,h=d,4<=w>>>0){if(r[d+464>>2]=W(r[m+120>>2],20),r[d+468>>2]=W(r[m+100>>2],28),f=d,1<=((T=v=0)|(I=r[m+104>>2]))){for(u=r[u+1104>>2],_=0;_=r[u+(T<<2)>>2]+_|0,(0|I)!=(0|(T=T+1|0)););u=_<<2}else u=0;r[f+476>>2]=u,r[d+472>>2]=W(I,48),r[d+484>>2]=W(r[m+108>>2],12),u=r[m+112>>2],r[d+552>>2]=0,r[d+492>>2]=W(u,12),u=0}else{if((0|(v=r[m+20>>2]))<1)_=0;else for(I=r[u+1060>>2],M=r[u+952>>2],u=r[u+948>>2],f=_=0;;){if(1<=(0|(P=r[(T=f<<2)+M>>2])))for(P=(T=I+(r[u+T>>2]<<2)|0)+(P<<2)|0;_=r[T>>2]+_|0,(T=T+4|0)>>>0

>>0;);if((0|v)==(0|(f=f+1|0)))break}r[d+552>>2]=v<<2,v=r[m+20>>2]<<2,u=_<<2}for(r[h+556>>2]=u,r[d+548>>2]=v,4>>0&&(r[d+480>>2]=W(r[m+128>>2],12),r[d+488>>2]=W(r[m+132>>2],12),r[d+496>>2]=W(r[m+136>>2],12)),T=_=0;T=((h=r[(u=(_<<2)+d|0)>>2])+15&-16)+(r[u>>2]=T)|0,(0|(_=_+1|0))!=140;);r[S>>2]=T}function Gh(u,d,S,p){e:{if(!(20>>0||9<(d=d+-9|0)>>>0)){switch(d-1|0){default:return d=r[S>>2],r[S>>2]=d+4,r[u>>2]=r[d>>2];case 0:return d=r[S>>2],r[S>>2]=d+4,d=r[d>>2],r[u>>2]=d,r[u+4>>2]=d>>31;case 1:return d=r[S>>2],r[S>>2]=d+4,r[u>>2]=r[d>>2],r[u+4>>2]=0;case 3:return d=r[S>>2],r[S>>2]=d+4,d=ci[d>>1],r[u>>2]=d,r[u+4>>2]=d>>31;case 4:return d=r[S>>2],r[S>>2]=d+4,r[u>>2]=na[d>>1],r[u+4>>2]=0;case 5:return d=r[S>>2],r[S>>2]=d+4,d=ot[0|d],r[u>>2]=d,r[u+4>>2]=d>>31;case 6:return d=r[S>>2],r[S>>2]=d+4,r[u>>2]=lt[0|d],r[u+4>>2]=0;case 2:case 7:break e;case 8:}ut[p](u,S)}return}d=r[S>>2]+7&-8,r[S>>2]=d+8,S=r[d+4>>2],r[u>>2]=r[d>>2],r[u+4>>2]=S}function Xh(u){var d,S,p=0;if(Yi(ot[r[u>>2]]))for(;d=r[u>>2],S=ot[0|d],r[u>>2]=d+1,p=(W(p,10)+S|0)-48|0,Yi(ot[d+1|0]););return p}function jh(u,d,S,p,c){var T,h;r[204+(G=h=G-208|0)>>2]=S,Gr(160+h|(S=0),0,40),r[200+h>>2]=r[204+h>>2],(0|_s(0,d,200+h|0,80+h|0,160+h|0,p,c))<0||(S=0<=r[u+76>>2]?1:S,S=r[u>>2],ot[u+74|0]<=0&&(r[u>>2]=-33&S),T=32&S,r[u+48>>2]?_s(u,d,200+h|0,80+h|0,160+h|0,p,c):(r[u+48>>2]=80,r[u+16>>2]=80+h,r[u+28>>2]=h,r[u+20>>2]=h,S=r[u+44>>2],_s(u,d,200+(r[u+44>>2]=h)|0,80+h|0,160+h|0,p,c),S&&(ut[r[u+36>>2]](u,0,0),r[u+48>>2]=0,r[u+44>>2]=S,r[u+28>>2]=0,r[u+16>>2]=0,r[u+20>>2]=0)),r[u>>2]=r[u>>2]|T),G=208+h|0}function Vh(u,d,S){var p,c;Pr(8+(G=c=G-160|0)|0,3192,144),r[52+c>>2]=u,r[28+c>>2]=u,r[56+c>>2]=p=(p=-2-u|0)>>>0<256?p:256,r[36+c>>2]=u=u+p|0,r[24+c>>2]=u,jh(8+c|0,d,S,11,12),p&&(u=r[28+c>>2],ot[u-((0|u)==r[24+c>>2])|0]=0),G=160+c|0}function Jh(u,d){var S,p,c=0,c=(0|d)!=0;e:{t:{r:{a:if(!(!d|!(3&u)))for(;;){if(!lt[0|u])break r;if(u=u+1|0,c=(0|(d=d+-1|0))!=0,!d)break a;if(!(3&u))break}if(!c)break t}if(!lt[0|u])break e;r:{if(4<=d>>>0){for(c=(c=d+-4|0)-(S=-4&c)|0,S=4+(u+S|0)|0;;){if((-1^(p=r[u>>2]))&p+-16843009&-2139062144)break r;if(u=u+4|0,!(3<(d=d+-4|0)>>>0))break}d=c,u=S}if(!d)break t}for(;;){if(!lt[0|u])break e;if(u=u+1|0,!(d=d+-1|0))break}}return 0}return u}function Yh(u){var d,S=0;if(!u)return 32;if(!(1&u))for(;S=S+1|0,d=2&u,u>>>=1,!d;);return S}function zh(u,d){var S,p,c,T,h=0,f=0,f=4;G=T=G-256|0;e:if(!((0|d)<2))for(h=r[(c=(d<<2)+u|0)>>2]=T;;){for(Pr(h,r[u>>2],S=f>>>0<256?f:256),h=0;Pr(r[(p=(h<<2)+u|0)>>2],r[((h=h+1|0)<<2)+u>>2],S),r[p>>2]=r[p>>2]+S,(0|d)!=(0|h););if(!(f=f-S|0))break e;h=r[c>>2]}G=256+T|0}function Wh(u){return Yh(r[u>>2]+-1|0)||((u=Yh(r[u+4>>2]))?u+32|0:0)}function Wi(u,d){d|=0,It[0]=u|=0,It[1]=d}function Kh(u,d,S){return function(p,c,T){var h,f,_,m,v=W(f=T>>>16,_=p>>>16);return p=(65535&(_=((h=W(m=65535&T,p&=65535))>>>16)+W(_,m)|0))+W(p,f)|0,Ur=((v+W(c,T)|0)+(_>>>16)|0)+(p>>>16)|0,65535&h|p<<16}(u,d,S)}function Qh(u,d,S){return function(p,c,T){var h,f,_=0,m=0,v=0,I=0,P=0,M=0,w=0;e:{t:{r:{a:{i:{if(!(m=c))return Wi((c=p)-W(p=(p>>>0)/(T>>>0)|0,T)|0,0),Ur=0,p;if(_=T){if(!((I=_+-1|0)&_))break i;P=0-(I=(Ji(_)+33|0)-Ji(m)|0)|0;break r}if(!p)return Wi(0,m-W(p=(m>>>0)/0|0,0)|0),Ur=0,p;if((_=32-Ji(m)|0)>>>0<31)break a;break t}if(Wi(p&I,0),(0|_)==1)break e;return T=31&(_=_?31-Ji(_+-1^_)|0:32),p=32<=(63&_)>>>0?(m=0,c>>>T):(m=c>>>T,((1<>>T),Ur=m,p}I=_+1|0,P=63-_|0}if(_=c,v=31&(m=63&I),v=32<=m>>>0?(m=0,_>>>v):(m=_>>>v,((1<>>v),_=31&(P&=63),32<=P>>>0?(c=p<<_,p=0):(c=(1<<_)-1&p>>>32-_|c<<_,p<<=_),I)for((P=T+(_=-1)|0)>>>0<4294967295&&(_=0);v=(f=M=v<<1|c>>>31)-(h=T&(M=_-((m=m<<1|v>>>31)+(P>>>0>>0)|0)>>31))|0,m=m-(f>>>0>>0)|0,c=c<<1|p>>>31,p=w|p<<1,w=M&=1,I=I+-1|0;);return Wi(v,m),Ur=c<<1|p>>>31,M|p<<1}Wi(p,c),c=p=0}return Ur=c,p}(u,d,S)}function or(u){var d;return(-1>>>(d=31&u)&-2)<>>u}function qh(){return Oe.byteLength/65536|0}}(hi,ht,xt)}}O=null,x.wasmBinary&&(tt=x.wasmBinary);var q={},tt=[];typeof q!="object"&&Q("no native wasm support detected");var ht,xt=new function(K){var rt=Array(16);return rt.grow=function(){17<=rt.length&&re("Unable to grow wasm table. Use a higher value for RESERVED_FUNCTION_POINTERS or set ALLOW_TABLE_GROWTH."),rt.push(null)},rt.set=function(_t,ft){rt[_t]=ft},rt.get=function(_t){return rt[_t]},rt},St=!1;function Ht(K,rt){K||re("Assertion failed: "+rt)}var pt,dt,Ct,me,Jt=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function ct(K,rt,_t){var ft=rt+_t;for(_t=rt;K[_t]&&!(ft<=_t);)++_t;if(16<_t-rt&&K.subarray&&Jt)return Jt.decode(K.subarray(rt,_t));for(ft="";rt<_t;){var It,ae,fe=K[rt++];128&fe?(It=63&K[rt++],(224&fe)==192?ft+=String.fromCharCode((31&fe)<<6|It):(ae=63&K[rt++],(fe=(240&fe)==224?(15&fe)<<12|It<<6|ae:(7&fe)<<18|It<<12|ae<<6|63&K[rt++])<65536?ft+=String.fromCharCode(fe):(fe-=65536,ft+=String.fromCharCode(55296|fe>>10,56320|1023&fe)))):ft+=String.fromCharCode(fe)}return ft}function nt(K,rt){return K?ct(Ct,K,rt):""}function kt(K){return 0>>16)*ft+_t*(rt>>>16)<<16)|0}),Math.fround||(se=new Float32Array(1),Math.fround=function(K){return se[0]=K,se[0]}),Math.clz32||(Math.clz32=function(K){var rt=32,_t=K>>16;return _t&&(rt-=16,K=_t),(_t=K>>8)&&(rt-=8,K=_t),(_t=K>>4)&&(rt-=4,K=_t),(_t=K>>2)&&(rt-=2,K=_t),K>>1?rt-2:rt-K}),Math.trunc||(Math.trunc=function(K){return K<0?Math.ceil(K):Math.floor(K)}),0),ee=null;function re(K){throw x.onAbort&&x.onAbort(K),z(K),Q(K),St=!0,"abort("+K+"). Build with -s ASSERTIONS=1 for more info."}x.preloadedImages={},x.preloadedAudios={};var Gt="data:application/octet-stream;base64,";function He(K){return String.prototype.startsWith?K.startsWith(Gt):K.indexOf(Gt)===0}var Y="_em_module.wasm";function qt(){try{if(tt)return new Uint8Array(tt);var K=ia(Y);if(K)return K;if(B)return B(Y);throw"both async and sync fetching of the wasm failed"}catch(rt){re(rt)}}He(Y)||(j=Y,Y=x.locateFile?x.locateFile(j,Ze):Ze+j),Me.push({ea:function(){Od()}});var dr=[null,[],[]];function aa(K){for(var rt=[],_t=0;_t>4,fe=(15&fe)<<4|ft>>2,Mt=(3&ft)<<6|It;while(rt+=String.fromCharCode(ae),ft!==64&&(rt+=String.fromCharCode(fe)),It!==64&&(rt+=String.fromCharCode(Mt)),_t>16),Yt(ht.buffer);var _t=1;break e}catch{}_t=void 0}return!!_t},c:function(K,rt,_t,ft){try{for(var It=0,ae=0;ae<_t;ae++){for(var fe=me[rt+8*ae>>2],Mt=me[rt+(8*ae+4)>>2],kr=0;kr>2]=It,0}catch($t){return typeof FS<"u"&&$t instanceof FS.fa||re($t),$t.ga}},memory:ht,table:xt},Ze=function(){function K(It){x.asm=It.exports,Xt--,x.monitorRunDependencies&&x.monitorRunDependencies(Xt),Xt==0&&ee&&(It=ee,ee=null,It())}function rt(It){K(It.instance)}function _t(It){(tt||!k&&!X||typeof fetch!="function"?new Promise(function(ae){ae(qt())}):fetch(Y,{credentials:"same-origin"}).then(function(ae){if(ae.ok)return ae.arrayBuffer();throw"failed to load wasm binary file at '"+Y+"'"}).catch(qt)).then(function(){return{then:function(ae){ae({instance:new at})}}}).then(It,function(ae){Q("failed to asynchronously prepare wasm: "+ae),re(ae)})}var ft={env:hi,wasi_unstable:hi};if(Xt++,x.monitorRunDependencies&&x.monitorRunDependencies(Xt),x.instantiateWasm)try{return x.instantiateWasm(ft,K)}catch(It){return Q("Module.instantiateWasm callback failed with error: "+It),!1}return tt||typeof q.instantiateStreaming!="function"||He(Y)||typeof fetch!="function"?_t(rt):fetch(Y,{credentials:"same-origin"}).then(function(It){return q.instantiateStreaming(It,ft).then(rt,function(ae){Q("wasm streaming compile failed: "+ae),Q("falling back to ArrayBuffer instantiation"),_t(rt)})}),{}}(),Od=(x.asm=Ze,x.___wasm_call_ctors=function(){return x.asm.d.apply(null,arguments)}),Rd=(x._csmGetVersion=function(){return x.asm.e.apply(null,arguments)},x._csmGetLatestMocVersion=function(){return x.asm.f.apply(null,arguments)},x._csmGetMocVersion=function(){return x.asm.g.apply(null,arguments)},x._csmHasMocConsistency=function(){return x.asm.h.apply(null,arguments)},x._csmSetLogFunction=function(){return x.asm.i.apply(null,arguments)},x._csmReviveMocInPlace=function(){return x.asm.j.apply(null,arguments)},x._csmReadCanvasInfo=function(){return x.asm.k.apply(null,arguments)},x._csmGetSizeofModel=function(){return x.asm.l.apply(null,arguments)},x._csmInitializeModelInPlace=function(){return x.asm.m.apply(null,arguments)},x._csmUpdateModel=function(){return x.asm.n.apply(null,arguments)},x._csmGetParameterCount=function(){return x.asm.o.apply(null,arguments)},x._csmGetParameterIds=function(){return x.asm.p.apply(null,arguments)},x._csmGetParameterTypes=function(){return x.asm.q.apply(null,arguments)},x._csmGetParameterMinimumValues=function(){return x.asm.r.apply(null,arguments)},x._csmGetParameterMaximumValues=function(){return x.asm.s.apply(null,arguments)},x._csmGetParameterDefaultValues=function(){return x.asm.t.apply(null,arguments)},x._csmGetParameterValues=function(){return x.asm.u.apply(null,arguments)},x._csmGetPartCount=function(){return x.asm.v.apply(null,arguments)},x._csmGetPartIds=function(){return x.asm.w.apply(null,arguments)},x._csmGetPartOpacities=function(){return x.asm.x.apply(null,arguments)},x._csmGetPartParentPartIndices=function(){return x.asm.y.apply(null,arguments)},x._csmGetDrawableCount=function(){return x.asm.z.apply(null,arguments)},x._csmGetDrawableIds=function(){return x.asm.A.apply(null,arguments)},x._csmGetDrawableConstantFlags=function(){return x.asm.B.apply(null,arguments)},x._csmGetDrawableDynamicFlags=function(){return x.asm.C.apply(null,arguments)},x._csmGetDrawableTextureIndices=function(){return x.asm.D.apply(null,arguments)},x._csmGetDrawableDrawOrders=function(){return x.asm.E.apply(null,arguments)},x._csmGetDrawableRenderOrders=function(){return x.asm.F.apply(null,arguments)},x._csmGetDrawableOpacities=function(){return x.asm.G.apply(null,arguments)},x._csmGetDrawableMaskCounts=function(){return x.asm.H.apply(null,arguments)},x._csmGetDrawableMasks=function(){return x.asm.I.apply(null,arguments)},x._csmGetDrawableVertexCounts=function(){return x.asm.J.apply(null,arguments)},x._csmGetDrawableVertexPositions=function(){return x.asm.K.apply(null,arguments)},x._csmGetDrawableVertexUvs=function(){return x.asm.L.apply(null,arguments)},x._csmGetDrawableIndexCounts=function(){return x.asm.M.apply(null,arguments)},x._csmGetDrawableIndices=function(){return x.asm.N.apply(null,arguments)},x._csmGetDrawableMultiplyColors=function(){return x.asm.O.apply(null,arguments)},x._csmGetDrawableScreenColors=function(){return x.asm.P.apply(null,arguments)},x._csmGetDrawableParentPartIndices=function(){return x.asm.Q.apply(null,arguments)},x._csmResetDrawableDynamicFlags=function(){return x.asm.R.apply(null,arguments)},x._csmGetParameterKeyCounts=function(){return x.asm.S.apply(null,arguments)},x._csmGetParameterKeyValues=function(){return x.asm.T.apply(null,arguments)},x._csmMallocMoc=function(){return x.asm.U.apply(null,arguments)},x._csmMallocModelAndInitialize=function(){return x.asm.V.apply(null,arguments)},x._csmMalloc=function(){return x.asm.W.apply(null,arguments)},x._csmFree=function(){return x.asm.X.apply(null,arguments)},x._csmInitializeAmountOfMemory=function(){return x.asm.Y.apply(null,arguments)},x.stackSave=function(){return x.asm.Z.apply(null,arguments)}),Eh=x.stackAlloc=function(){return x.asm._.apply(null,arguments)},Cd=x.stackRestore=function(){return x.asm.$.apply(null,arguments)},Ld=x.__growWasmMemory=function(){return x.asm.aa.apply(null,arguments)};function ss(){function K(){if(!ya&&(ya=!0,!St)){if(ce(Me),ce(Be),x.onRuntimeInitialized&&x.onRuntimeInitialized(),x.postRun)for(typeof x.postRun=="function"&&(x.postRun=[x.postRun]);x.postRun.length;){var rt=x.postRun.shift();ge.unshift(rt)}ce(ge)}}if(!(0>6}else{if(ut<=65535){if($t<=Nt+2)break;Oe[Nt++]=224|ut>>12}else{if($t<=Nt+3)break;Oe[Nt++]=240|ut>>18,Oe[Nt++]=128|ut>>12&63}Oe[Nt++]=128|ut>>6&63}Oe[Nt++]=128|63&ut}}Oe[Nt]=0}}return zt},array:function(ve){var zt=Eh(ve.length);return dt.set(ve,zt),zt}},ae=function(ve){var zt=x["_"+ve];return Ht(zt,"Cannot call unknown function "+ve+", make sure it is exported"),zt}(K),fe=[];if(K=0,ft)for(var Mt=0;Mt{const t=a.length;if(t===0)return;const e=Math.floor(Math.random()*t);return a[e]},Hd=(a,t)=>{let e;return{start:function(){return lr(this,null,function*(){const i=()=>lr(this,null,function*(){e&&(yield a(),clearTimeout(e),e=setTimeout(i,t))});e||(clearTimeout(e),e=setTimeout(i,t))})},stop:function(){clearTimeout(e),e=void 0}}},vs=a=>a!==null&&typeof a=="object"&&!Array.isArray(a),Ro=a=>typeof a=="number"||a instanceof Number,Qc=a=>Array.isArray(a),pn=a=>typeof a=="function",Ne=(a,t)=>{const e=Object.assign({},a);return vs(a)&&vs(t)&&Object.keys(t).forEach(i=>{vs(t[i])?i in a?e[i]=Ne(a[i],t[i]):Object.assign(e,{[i]:t[i]}):Object.assign(e,{[i]:t[i]})}),e};class kd{constructor(){Ft(this,"eventMap",new Map)}add(t,e){if(!e)return;const i=this.eventMap.get(t)||[];i.push(e),this.eventMap.set(t,i)}emit(t,...e){const i=this.eventMap.get(t);i==null||i.forEach(n=>void n(...e))}}const e0=a=>` + @keyframes oml2d-shake-tips{ + 0% { + transform: translate(-50%, 5%) scale(0.99); + } + 50% { + + transform: translate(-50%, 0%) scale(1); + } + 100% { + transform: translate(-50%, 5%) scale(0.99); + } + } + + @keyframes oml2d-stage-slide-in { + from { + transform: translateY(130%); + } + to { + transform: translateY(0%); + } + } + + @keyframes oml2d-stage-slide-out { + from { + transform: translateY(0%); + } + to { + transform: translateY(130%); + } + } + + @keyframes oml2d-display-tips { + 0% { + opacity: 0; + visibility: hidden; + } + 100% { + opacity: 1; + visibility: visible; + } + } + + @keyframes oml2d-hidden-tips { + 0% { + opacity: 1; + visibility: visible; + } + 100% { + opacity: 0; + visibility: hidden; + } + } + + @keyframes oml2d-loading-rotate { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(360deg); + } + } + + .oml2d-icon { + width: 1em; + height: 1em; + vertical-align: -0.15em; + fill: currentColor; + overflow: hidden; + } + + .oml2d-loading{ + animation-name: oml2d-loading-rotate; + animation-duration: 600ms; + animation-iteration-count: infinite; + animation-timing-function: linear; + } + + .oml2d-menus-item { + width: 36px; + height: 36px; + border-radius: 50%; + display: flex; + justify-content: center; + box-sizing: border-box; + align-items: center; + transition: all 300ms; + color: ${a}; + cursor: pointer; + background-color: #fff; + } + + .oml2d-menus-item:hover { + background-color: ${a}; + color: #fff; + box-shadow: 0 0 5px #000; + } + + #${_a.menus} .oml2d-menus-item:not(:last-child) { + margin-bottom: 10px; + } + + @keyframes oml2d-status-bar-left-slide-out { + 0% { + transform: translateX(-8%); + } + 100% { + transform: translateX(-120%); + } + } + + + @keyframes oml2d-status-bar-left-slide-in { + 0% { + transform: translateX(-120%); + } + 100% { + transform: translateX(-8%); + } + } + + @keyframes oml2d-status-bar-right-slide-out { + 0% { + transform: translateX(8%); + } + 100% { + transform: translateX(120%); + } + } + + + @keyframes oml2d-status-bar-right-slide-in { + 0% { + transform: translateX(120%); + } + 100% { + transform: translateX(8%); + } + } + `,Ud={},Gd={width:"0px",height:"0px",position:"fixed",right:"auto",bottom:0,zIndex:"9997",transform:"translateY(130%)"},r0={position:"absolute",fontSize:"18px",borderRadius:"10px",filter:"drop-shadow(0 0 5px #999)",border:"2px solid #fff",color:"#fff",padding:"5px 5px",opacity:0,visibility:"hidden",transform:"translateX(-50%)",textAlign:"center",justifyContent:"center",animationDuration:"1000ms,1000ms",animationFillMode:"forwards, none",animationIterationCount:"1, infinite",width:"60%",left:"50%",top:0,display:"flex",alignItems:"center",minHeight:"100px"},a0={minWidth:"20px",minHeight:"40px",position:"fixed",transform:"translateX(-110%)",bottom:"80px",padding:"7px 5px",zIndex:"9998",borderStyle:"solid",borderColor:"#fff",fontWeight:"bold",borderRadius:"5px",borderWidth:"2px",boxShadow:"0 0 5px #999",color:"#fff",display:"flex",alignItems:"center",textAlign:"center",flexWrap:"wrap",fontSize:"14px",writingMode:"vertical-lr",cursor:"pointer"},i0={transition:"all 500ms",visibility:"hidden",opacity:0,position:"absolute",bottom:"10%",zIndex:"9999",fontSize:"26px"},Xd="#38B0DE",jd="#F08080",Si={dockedPosition:"left",mobileDisplay:!1,primaryColor:Xd,sayHello:!0,transitionTime:1e3,parentElement:document.body,importType:"complete",libraryUrls:{complete:"",cubism2:"",cubism5:""},stageStyle:Ud,models:[],statusBar:{disable:!1,transitionTime:800,switchingMessage:"正在切换",loadingMessage:"加载中",loadSuccessMessage:"加载成功",loadFailMessage:"加载失败",reloadMessage:"重新加载",restMessage:"看板娘休息中",restMessageDuration:8e3,loadingIcon:"icon-loading",errorColor:jd,style:a0,mobileStyle:a0},tips:{messageLine:3,mobileStyle:r0,style:r0,idleTips:{wordTheDay:!1,message:[],duration:5e3,interval:1e4,priority:2},welcomeTips:{message:{daybreak:"早上好!一日之计在于晨,美好的一天就要开始了。",morning:"上午好!工作顺利嘛,不要久坐,多起来走动走动哦!",noon:"中午了,工作了一个上午,现在是午餐时间!",afternoon:"午后很容易犯困呢,来杯咖啡吧~",dusk:"傍晚了!工作一天幸苦啦~",night:"晚上好,今天过得怎么样呢?",lateNight:"已经这么晚了呀,早点休息吧,晚安~",weeHours:"这么晚还不睡吗?当心熬夜秃头哦!"},duration:6e3,priority:3},copyTips:{duration:3e3,priority:3,message:["你复制了什么内容呢?记得注明出处哦~"]}},menus:{disable:!1,items:[{id:"Rest",icon:"icon-rest",title:"休息",onClick(a){var t;a.statusBarOpen((t=a.options.statusBar)==null?void 0:t.restMessage),a.clearTips(),a.setStatusBarClickEvent(()=>{a.statusBarClose(),a.stageSlideIn(),a.statusBarClearEvents()}),a.stageSlideOut()}},{id:"SwitchModelClothes",icon:"icon-skin",title:"切换衣服",onClick(a){a.loadNextModelClothes()}},{id:"SwitchModel",icon:"icon-switch",title:"切换模型",onClick(a){a.loadNextModel()}},{id:"About",icon:"icon-about",title:"关于",onClick(){window.open("https://oml2d.com")}}],style:i0,itemStyle:{},mobileStyle:i0,mobileItemStyle:{}},initialStatus:"active"},_a={globalStyle:"oml2d-global-style",stage:"oml2d-stage",canvas:"oml2d-canvas",statusBar:"oml2d-statusBar",tips:"oml2d-tips",menus:"oml2d-menus",iconSvg:"oml2d-icon-svg"},Vd=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,n0=a=>{if(typeof a!="string")throw new TypeError("Invalid argument expected string");const t=a.match(Vd);if(!t)throw new Error(`Invalid argument not valid semver ('${a}' received)`);return t.shift(),t},o0=a=>a==="*"||a==="x"||a==="X",s0=a=>{const t=parseInt(a,10);return isNaN(t)?a:t},Jd=(a,t)=>typeof a!=typeof t?[String(a),String(t)]:[a,t],Yd=(a,t)=>{if(o0(a)||o0(t))return 0;const[e,i]=Jd(s0(a),s0(t));return e>i?1:e{for(let e=0;e{const e=n0(a),i=n0(t),n=e.pop(),o=i.pop(),s=u0(e,i);return s!==0?s:n&&o?u0(n.split("."),o.split(".")):n||o?n?-1:1:0},Wd=(a,t,e)=>{Kd(e);const i=zd(a,t);return qc[e].includes(i)},qc={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},l0=Object.keys(qc),Kd=a=>{if(l0.indexOf(a)===-1)throw new Error(`Invalid operator, expected one of ${l0.join("|")}`)};var rr=(a=>(a.pc="PC",a.mobile="MOBILE",a))(rr||{}),Zc=(a=>(a.ALL="ALL",a.IDLE="IDLE",a.NONE="NONE",a))(Zc||{});const Qd=function(a){const{message:t}=a;let e="";const i=new Date().getHours().toString(),n=/^[5-7]$/,o=/^(?:[8-9]|1[0-1])$/,s=/^(1[2-3])$/,l=/^1[4-7]$/,g=/^1[8-9]$/,y=/^2[0-1]$/,A=/^2[2-3]$/;return n.test(i)?e=t.daybreak:o.test(i)?e=t==null?void 0:t.morning:s.test(i)?e=t==null?void 0:t.noon:l.test(i)?e=t==null?void 0:t.afternoon:g.test(i)?e=t==null?void 0:t.dusk:y.test(i)?e=t==null?void 0:t.night:A.test(i)?e=t==null?void 0:t.lateNight:e=t==null?void 0:t.weeHours,e},qd=()=>console.log(` + %c 🎉🎉🎉 %c %c ✨ oh-my-live2d v0.19.3 - https://oml2d.com Happy Hacking !! ✨ %c %c 🎉🎉🎉 +`,"background: #add7fb; padding:5px 0;","background: #58b0fc; padding:5px 0;","color: #fff; background: #030307; padding:5px 0;","background: #58b0fc; padding:5px 0;","background: #add7fb; padding:5px 0;"),Qr=a=>{const t=Fd({},a);return"width"in a&&Ro(a.width)&&(t.width=`${a.width}px`),"height"in a&&Ro(a.height)&&(t.height=`${a.height}px`),t},ai=(a,t)=>{Object.assign(t.style,a)},Zd=a=>new Promise(t=>setTimeout(t,a)),ma=a=>{const t=document.createElement(a.tagName);return t.id=a.id,a.className&&(t.className=a.className),a.dataName&&t.setAttribute("data-name",a.dataName),a.children&&a.children.forEach(e=>{t.appendChild(ma(e))}),a.innerHtml&&(t.innerHTML=a.innerHtml),a.innerText&&(t.innerText=a.innerText),t},tp=()=>lr(void 0,null,function*(){const a=yield fetch("https://unpkg.com/oh-my-live2d@latest/package.json"),{version:t}=yield a.json();Wd(t,"0.19.3",">")&&console.warn("[oml2d] 检查到 oh-my-live2d 存在最新版:",`v${t}`,"请前往: https://oml2d.com 以获得最新版详细信息, 并及时更新.")}),h0=a=>lr(void 0,null,function*(){const t=yield(yield fetch("https://v1.hitokoto.cn")).json();return a?a(t):`${t.hitokoto}`}),tf=window.matchMedia("screen and (max-width: 768px)"),Hi=()=>tf.matches?rr.mobile:rr.pc,ep=a=>{tf.addEventListener("change",t=>{t.matches?a(rr.mobile):a(rr.pc)})},rp=(a,t)=>{const e=Ne(a,t);return e.parentElement=t.parentElement||document.body,e},xn=(a,t=0,e=!1)=>{switch(a){case"left":return e?{left:"auto",right:`${t}px`}:{left:`${t}px`,right:"auto"};case"right":return e?{left:`${t}px`,right:"auto"}:{left:"auto",right:`${t}px`}}},ap=(a,t)=>{let e=t;for(;e===t;)e=Math.floor(Math.random()*a);return e};class ip{constructor(t){Ft(this,"styleSheet"),this.options=t}create(){document.getElementById(_a.globalStyle)||(this.styleSheet=ma({tagName:"style",id:_a.globalStyle,innerHtml:e0(this.options.primaryColor)}))}mount(){this.styleSheet&&document.head.append(this.styleSheet)}initialize(){this.create(),this.mount(),this.reloadStyleSheet()}initializeStyle(){this.reloadStyleSheet()}reloadStyleSheet(){this.styleSheet&&(this.styleSheet.innerHTML=e0(this.options.primaryColor))}}class np{constructor(t,e){Ft(this,"element"),Ft(this,"style",{}),Ft(this,"itemStyle",{}),Ft(this,"menuItemList",[]),Ft(this,"_menuOptions",Si.menus),this.options=t,this.oml2d=e}reload(t){this.unmount(),this.create(),this.reloadStyle(),this.mount(t)}get menuOptions(){return this._menuOptions}set menuOptions(t){let e;pn(t)?e=Ne(Si.menus,t(this.options.models[this.oml2d.modelIndex||0],this.oml2d.modelIndex||0)):e=t,this._menuOptions=e}createMenuItemElements(t){this.menuItemList=t.map(e=>{const i=ma({id:e.id,tagName:"div",dataName:e.id,className:"oml2d-menus-item",innerHtml:``});return i.title=e.title,i.onclick=()=>{var n;(n=e.onClick)==null||n.call(e,this.oml2d)},i})}createMenuItem(){if(Qc(this.menuOptions.items))this.createMenuItemElements(this.menuOptions.items);else if(pn(this.menuOptions.items)){const t=this.menuOptions.items(Si.menus.items);this.createMenuItemElements(t)}}create(){this.menuOptions=this.options.menus,this.menuOptions.disable===!1&&(this.element=ma({id:_a.menus,tagName:"div",className:_a.menus}),this.createMenuItem())}unmountItems(){this.menuItemList.forEach(t=>{t.remove()})}unmount(){var t;this.unmountItems(),(t=this.element)==null||t.remove()}mountItems(){this.element&&this.element.append(...this.menuItemList)}mount(t){if(this.element){t.append(this.element),this.mountItems(),t.onmouseover=()=>{this.setStyle({opacity:1,visibility:"visible"})},t.onmouseout=()=>{this.setStyle({opacity:0,visibility:"hidden"})};let e;t.ontouchend=()=>{clearTimeout(e),this.setStyle({opacity:1,visibility:"visible"}),e=setTimeout(()=>{this.setStyle({opacity:0,visibility:"hidden"})},3e3)}}}reloadStyle(){switch(this.style={},Hi()){case rr.pc:this.setStyle(Qr(Ne(xn(this.options.dockedPosition,10,!0),this.menuOptions.style||{}))),this.setItemStyle(Qr(this.menuOptions.itemStyle||{}));break;case rr.mobile:this.setStyle(Qr(Ne(xn(this.options.dockedPosition,10,!0),this.menuOptions.mobileStyle||{}))),this.setItemStyle(Qr(this.menuOptions.mobileItemStyle||{}));break}}update(t){this.options=t,this.reloadStyle()}setStyle(t){this.element&&(this.style=Ne(this.style,t),ai(this.style,this.element))}setItemStyle(t){this.itemStyle=Ne(this.itemStyle,t),this.menuItemList.forEach(e=>{ai(this.itemStyle,e)})}}/*! + * @pixi/constants - v6.5.10 + * Compiled Thu, 06 Jul 2023 15:25:11 UTC + * + * @pixi/constants is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */var Zr;(function(a){a[a.WEBGL_LEGACY=0]="WEBGL_LEGACY",a[a.WEBGL=1]="WEBGL",a[a.WEBGL2=2]="WEBGL2"})(Zr||(Zr={}));var Oi;(function(a){a[a.UNKNOWN=0]="UNKNOWN",a[a.WEBGL=1]="WEBGL",a[a.CANVAS=2]="CANVAS"})(Oi||(Oi={}));var Tn;(function(a){a[a.COLOR=16384]="COLOR",a[a.DEPTH=256]="DEPTH",a[a.STENCIL=1024]="STENCIL"})(Tn||(Tn={}));var Pt;(function(a){a[a.NORMAL=0]="NORMAL",a[a.ADD=1]="ADD",a[a.MULTIPLY=2]="MULTIPLY",a[a.SCREEN=3]="SCREEN",a[a.OVERLAY=4]="OVERLAY",a[a.DARKEN=5]="DARKEN",a[a.LIGHTEN=6]="LIGHTEN",a[a.COLOR_DODGE=7]="COLOR_DODGE",a[a.COLOR_BURN=8]="COLOR_BURN",a[a.HARD_LIGHT=9]="HARD_LIGHT",a[a.SOFT_LIGHT=10]="SOFT_LIGHT",a[a.DIFFERENCE=11]="DIFFERENCE",a[a.EXCLUSION=12]="EXCLUSION",a[a.HUE=13]="HUE",a[a.SATURATION=14]="SATURATION",a[a.COLOR=15]="COLOR",a[a.LUMINOSITY=16]="LUMINOSITY",a[a.NORMAL_NPM=17]="NORMAL_NPM",a[a.ADD_NPM=18]="ADD_NPM",a[a.SCREEN_NPM=19]="SCREEN_NPM",a[a.NONE=20]="NONE",a[a.SRC_OVER=0]="SRC_OVER",a[a.SRC_IN=21]="SRC_IN",a[a.SRC_OUT=22]="SRC_OUT",a[a.SRC_ATOP=23]="SRC_ATOP",a[a.DST_OVER=24]="DST_OVER",a[a.DST_IN=25]="DST_IN",a[a.DST_OUT=26]="DST_OUT",a[a.DST_ATOP=27]="DST_ATOP",a[a.ERASE=26]="ERASE",a[a.SUBTRACT=28]="SUBTRACT",a[a.XOR=29]="XOR"})(Pt||(Pt={}));var xr;(function(a){a[a.POINTS=0]="POINTS",a[a.LINES=1]="LINES",a[a.LINE_LOOP=2]="LINE_LOOP",a[a.LINE_STRIP=3]="LINE_STRIP",a[a.TRIANGLES=4]="TRIANGLES",a[a.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",a[a.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(xr||(xr={}));var st;(function(a){a[a.RGBA=6408]="RGBA",a[a.RGB=6407]="RGB",a[a.RG=33319]="RG",a[a.RED=6403]="RED",a[a.RGBA_INTEGER=36249]="RGBA_INTEGER",a[a.RGB_INTEGER=36248]="RGB_INTEGER",a[a.RG_INTEGER=33320]="RG_INTEGER",a[a.RED_INTEGER=36244]="RED_INTEGER",a[a.ALPHA=6406]="ALPHA",a[a.LUMINANCE=6409]="LUMINANCE",a[a.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",a[a.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",a[a.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(st||(st={}));var Pa;(function(a){a[a.TEXTURE_2D=3553]="TEXTURE_2D",a[a.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",a[a.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",a[a.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",a[a.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",a[a.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",a[a.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",a[a.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",a[a.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(Pa||(Pa={}));var Et;(function(a){a[a.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",a[a.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",a[a.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",a[a.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",a[a.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",a[a.UNSIGNED_INT=5125]="UNSIGNED_INT",a[a.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",a[a.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",a[a.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",a[a.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",a[a.BYTE=5120]="BYTE",a[a.SHORT=5122]="SHORT",a[a.INT=5124]="INT",a[a.FLOAT=5126]="FLOAT",a[a.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",a[a.HALF_FLOAT=36193]="HALF_FLOAT"})(Et||(Et={}));var An;(function(a){a[a.FLOAT=0]="FLOAT",a[a.INT=1]="INT",a[a.UINT=2]="UINT"})(An||(An={}));var Dr;(function(a){a[a.NEAREST=0]="NEAREST",a[a.LINEAR=1]="LINEAR"})(Dr||(Dr={}));var Nr;(function(a){a[a.CLAMP=33071]="CLAMP",a[a.REPEAT=10497]="REPEAT",a[a.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(Nr||(Nr={}));var Ir;(function(a){a[a.OFF=0]="OFF",a[a.POW2=1]="POW2",a[a.ON=2]="ON",a[a.ON_MANUAL=3]="ON_MANUAL"})(Ir||(Ir={}));var Sr;(function(a){a[a.NPM=0]="NPM",a[a.UNPACK=1]="UNPACK",a[a.PMA=2]="PMA",a[a.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",a[a.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",a[a.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",a[a.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(Sr||(Sr={}));var yr;(function(a){a[a.NO=0]="NO",a[a.YES=1]="YES",a[a.AUTO=2]="AUTO",a[a.BLEND=0]="BLEND",a[a.CLEAR=1]="CLEAR",a[a.BLIT=2]="BLIT"})(yr||(yr={}));var In;(function(a){a[a.AUTO=0]="AUTO",a[a.MANUAL=1]="MANUAL"})(In||(In={}));var fr;(function(a){a.LOW="lowp",a.MEDIUM="mediump",a.HIGH="highp"})(fr||(fr={}));var we;(function(a){a[a.NONE=0]="NONE",a[a.SCISSOR=1]="SCISSOR",a[a.STENCIL=2]="STENCIL",a[a.SPRITE=3]="SPRITE",a[a.COLOR=4]="COLOR"})(we||(we={}));var fu;(function(a){a[a.RED=1]="RED",a[a.GREEN=2]="GREEN",a[a.BLUE=4]="BLUE",a[a.ALPHA=8]="ALPHA"})(fu||(fu={}));var _e;(function(a){a[a.NONE=0]="NONE",a[a.LOW=2]="LOW",a[a.MEDIUM=4]="MEDIUM",a[a.HIGH=8]="HIGH"})(_e||(_e={}));var Fr;(function(a){a[a.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",a[a.ARRAY_BUFFER=34962]="ARRAY_BUFFER",a[a.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(Fr||(Fr={}));/*! + * @pixi/settings - v6.5.10 + * Compiled Thu, 06 Jul 2023 15:25:11 UTC + * + * @pixi/settings is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */var ef={createCanvas:function(a,t){var e=document.createElement("canvas");return e.width=a,e.height=t,e},getWebGLRenderingContext:function(){return WebGLRenderingContext},getNavigator:function(){return navigator},getBaseUrl:function(){var a;return(a=document.baseURI)!==null&&a!==void 0?a:window.location.href},fetch:function(a,t){return fetch(a,t)}},ys=/iPhone/i,c0=/iPod/i,f0=/iPad/i,d0=/\biOS-universal(?:.+)Mac\b/i,bs=/\bAndroid(?:.+)Mobile\b/i,p0=/Android/i,pi=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,zn=/Silk/i,ua=/Windows Phone/i,_0=/\bWindows(?:.+)ARM\b/i,m0=/BlackBerry/i,g0=/BB10/i,v0=/Opera Mini/i,y0=/\b(CriOS|Chrome)(?:.+)Mobile/i,b0=/Mobile(?:.+)Firefox\b/i,x0=function(a){return typeof a<"u"&&a.platform==="MacIntel"&&typeof a.maxTouchPoints=="number"&&a.maxTouchPoints>1&&typeof MSStream>"u"};function op(a){return function(t){return t.test(a)}}function sp(a){var t={userAgent:"",platform:"",maxTouchPoints:0};!a&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof a=="string"?t.userAgent=a:a&&a.userAgent&&(t={userAgent:a.userAgent,platform:a.platform,maxTouchPoints:a.maxTouchPoints||0});var e=t.userAgent,i=e.split("[FBAN");typeof i[1]<"u"&&(e=i[0]),i=e.split("Twitter"),typeof i[1]<"u"&&(e=i[0]);var n=op(e),o={apple:{phone:n(ys)&&!n(ua),ipod:n(c0),tablet:!n(ys)&&(n(f0)||x0(t))&&!n(ua),universal:n(d0),device:(n(ys)||n(c0)||n(f0)||n(d0)||x0(t))&&!n(ua)},amazon:{phone:n(pi),tablet:!n(pi)&&n(zn),device:n(pi)||n(zn)},android:{phone:!n(ua)&&n(pi)||!n(ua)&&n(bs),tablet:!n(ua)&&!n(pi)&&!n(bs)&&(n(zn)||n(p0)),device:!n(ua)&&(n(pi)||n(zn)||n(bs)||n(p0))||n(/\bokhttp\b/i)},windows:{phone:n(ua),tablet:n(_0),device:n(ua)||n(_0)},other:{blackberry:n(m0),blackberry10:n(g0),opera:n(v0),firefox:n(b0),chrome:n(y0),device:n(m0)||n(g0)||n(v0)||n(b0)||n(y0)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}var Tr=sp(globalThis.navigator);function up(){return!Tr.apple.device}function lp(a){var t=!0;if(Tr.tablet||Tr.phone){if(Tr.apple.device){var e=navigator.userAgent.match(/OS (\d+)_(\d+)?/);if(e){var i=parseInt(e[1],10);i<11&&(t=!1)}}if(Tr.android.device){var e=navigator.userAgent.match(/Android\s([0-9.]*)/);if(e){var i=parseInt(e[1],10);i<7&&(t=!1)}}}return t?a:4}var gt={ADAPTER:ef,MIPMAP_TEXTURES:Ir.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:_e.NONE,SPRITE_MAX_TEXTURES:lp(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,width:800,height:600,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlpha:!0,clearBeforeRender:!0,antialias:!1,preserveDrawingBuffer:!1},GC_MODE:In.AUTO,GC_MAX_IDLE:60*60,GC_MAX_CHECK_COUNT:60*10,WRAP_MODE:Nr.CLAMP,SCALE_MODE:Dr.LINEAR,PRECISION_VERTEX:fr.HIGH,PRECISION_FRAGMENT:Tr.apple.device?fr.HIGH:fr.MEDIUM,CAN_UPLOAD_SAME_BUFFER:up(),CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1},Ao=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vl(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function hp(a){if(a.__esModule)return a;var t=a.default;if(typeof t=="function"){var e=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};e.prototype=t.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(a).forEach(function(i){var n=Object.getOwnPropertyDescriptor(a,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:function(){return a[i]}})}),e}var rf={exports:{}};(function(a){var t=Object.prototype.hasOwnProperty,e="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(e=!1));function n(g,y,A){this.fn=g,this.context=y,this.once=A||!1}function o(g,y,A,x,E){if(typeof A!="function")throw new TypeError("The listener must be a function");var O=new n(A,x||g,E),R=e?e+y:y;return g._events[R]?g._events[R].fn?g._events[R]=[g._events[R],O]:g._events[R].push(O):(g._events[R]=O,g._eventsCount++),g}function s(g,y){--g._eventsCount===0?g._events=new i:delete g._events[y]}function l(){this._events=new i,this._eventsCount=0}l.prototype.eventNames=function(){var g=[],y,A;if(this._eventsCount===0)return g;for(A in y=this._events)t.call(y,A)&&g.push(e?A.slice(1):A);return Object.getOwnPropertySymbols?g.concat(Object.getOwnPropertySymbols(y)):g},l.prototype.listeners=function(g){var y=e?e+g:g,A=this._events[y];if(!A)return[];if(A.fn)return[A.fn];for(var x=0,E=A.length,O=new Array(E);x80*e){l=y=a[0],g=A=a[1];for(var R=e;Ry&&(y=x),E>A&&(A=E);O=Math.max(y-l,A-g),O=O!==0?32767/O:0}return Sn(o,s,e,l,g,O,0),s}function af(a,t,e,i,n){var o,s;if(n===_u(a,t,e,i)>0)for(o=t;o=t;o-=i)s=T0(o,a[o],a[o+1],s);return s&&Jo(s,s.next)&&(Pn(s),s=s.next),s}function ii(a,t){if(!a)return a;t||(t=a);var e=a,i;do if(i=!1,!e.steiner&&(Jo(e,e.next)||Ae(e.prev,e,e.next)===0)){if(Pn(e),e=t=e.prev,e===e.next)break;i=!0}else e=e.next;while(i||e!==t);return t}function Sn(a,t,e,i,n,o,s){if(a){!s&&o&&xp(a,i,n,o);for(var l=a,g,y;a.prev!==a.next;){if(g=a.prev,y=a.next,o?dp(a,i,n,o):fp(a)){t.push(g.i/e|0),t.push(a.i/e|0),t.push(y.i/e|0),Pn(a),a=y.next,l=y.next;continue}if(a=y,a===l){s?s===1?(a=pp(ii(a),t,e),Sn(a,t,e,i,n,o,2)):s===2&&_p(a,t,e,i,n,o):Sn(ii(a),t,e,i,n,o,1);break}}}}function fp(a){var t=a.prev,e=a,i=a.next;if(Ae(t,e,i)>=0)return!1;for(var n=t.x,o=e.x,s=i.x,l=t.y,g=e.y,y=i.y,A=no?n>s?n:s:o>s?o:s,O=l>g?l>y?l:y:g>y?g:y,R=i.next;R!==t;){if(R.x>=A&&R.x<=E&&R.y>=x&&R.y<=O&&Ii(n,l,o,g,s,y,R.x,R.y)&&Ae(R.prev,R,R.next)>=0)return!1;R=R.next}return!0}function dp(a,t,e,i){var n=a.prev,o=a,s=a.next;if(Ae(n,o,s)>=0)return!1;for(var l=n.x,g=o.x,y=s.x,A=n.y,x=o.y,E=s.y,O=lg?l>y?l:y:g>y?g:y,N=A>x?A>E?A:E:x>E?x:E,B=du(O,R,t,e,i),k=du(L,N,t,e,i),X=a.prevZ,J=a.nextZ;X&&X.z>=B&&J&&J.z<=k;){if(X.x>=O&&X.x<=L&&X.y>=R&&X.y<=N&&X!==n&&X!==s&&Ii(l,A,g,x,y,E,X.x,X.y)&&Ae(X.prev,X,X.next)>=0||(X=X.prevZ,J.x>=O&&J.x<=L&&J.y>=R&&J.y<=N&&J!==n&&J!==s&&Ii(l,A,g,x,y,E,J.x,J.y)&&Ae(J.prev,J,J.next)>=0))return!1;J=J.nextZ}for(;X&&X.z>=B;){if(X.x>=O&&X.x<=L&&X.y>=R&&X.y<=N&&X!==n&&X!==s&&Ii(l,A,g,x,y,E,X.x,X.y)&&Ae(X.prev,X,X.next)>=0)return!1;X=X.prevZ}for(;J&&J.z<=k;){if(J.x>=O&&J.x<=L&&J.y>=R&&J.y<=N&&J!==n&&J!==s&&Ii(l,A,g,x,y,E,J.x,J.y)&&Ae(J.prev,J,J.next)>=0)return!1;J=J.nextZ}return!0}function pp(a,t,e){var i=a;do{var n=i.prev,o=i.next.next;!Jo(n,o)&&nf(n,i,i.next,o)&&En(n,o)&&En(o,n)&&(t.push(n.i/e|0),t.push(i.i/e|0),t.push(o.i/e|0),Pn(i),Pn(i.next),i=a=o),i=i.next}while(i!==a);return ii(i)}function _p(a,t,e,i,n,o){var s=a;do{for(var l=s.next.next;l!==s.prev;){if(s.i!==l.i&&Ip(s,l)){var g=of(s,l);s=ii(s,s.next),g=ii(g,g.next),Sn(s,t,e,i,n,o,0),Sn(g,t,e,i,n,o,0);return}l=l.next}s=s.next}while(s!==a)}function mp(a,t,e,i){var n=[],o,s,l,g,y;for(o=0,s=t.length;o=e.next.y&&e.next.y!==e.y){var l=e.x+(n-e.y)*(e.next.x-e.x)/(e.next.y-e.y);if(l<=i&&l>o&&(o=l,s=e.x=e.x&&e.x>=y&&i!==e.x&&Ii(ns.x||e.x===s.x&&bp(s,e)))&&(s=e,x=E)),e=e.next;while(e!==g);return s}function bp(a,t){return Ae(a.prev,a,t.prev)<0&&Ae(t.next,a,a.next)<0}function xp(a,t,e,i){var n=a;do n.z===0&&(n.z=du(n.x,n.y,t,e,i)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next;while(n!==a);n.prevZ.nextZ=null,n.prevZ=null,Tp(n)}function Tp(a){var t,e,i,n,o,s,l,g,y=1;do{for(e=a,a=null,o=null,s=0;e;){for(s++,i=e,l=0,t=0;t0||g>0&&i;)l!==0&&(g===0||!i||e.z<=i.z)?(n=e,e=e.nextZ,l--):(n=i,i=i.nextZ,g--),o?o.nextZ=n:a=n,n.prevZ=o,o=n;e=i}o.nextZ=null,y*=2}while(s>1);return a}function du(a,t,e,i,n){return a=(a-e)*n|0,t=(t-i)*n|0,a=(a|a<<8)&16711935,a=(a|a<<4)&252645135,a=(a|a<<2)&858993459,a=(a|a<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,a|t<<1}function Ap(a){var t=a,e=a;do(t.x=(a-s)*(o-l)&&(a-s)*(i-l)>=(e-s)*(t-l)&&(e-s)*(o-l)>=(n-s)*(i-l)}function Ip(a,t){return a.next.i!==t.i&&a.prev.i!==t.i&&!Sp(a,t)&&(En(a,t)&&En(t,a)&&Ep(a,t)&&(Ae(a.prev,a,t.prev)||Ae(a,t.prev,t))||Jo(a,t)&&Ae(a.prev,a,a.next)>0&&Ae(t.prev,t,t.next)>0)}function Ae(a,t,e){return(t.y-a.y)*(e.x-t.x)-(t.x-a.x)*(e.y-t.y)}function Jo(a,t){return a.x===t.x&&a.y===t.y}function nf(a,t,e,i){var n=Kn(Ae(a,t,e)),o=Kn(Ae(a,t,i)),s=Kn(Ae(e,i,a)),l=Kn(Ae(e,i,t));return!!(n!==o&&s!==l||n===0&&Wn(a,e,t)||o===0&&Wn(a,i,t)||s===0&&Wn(e,a,i)||l===0&&Wn(e,t,i))}function Wn(a,t,e){return t.x<=Math.max(a.x,e.x)&&t.x>=Math.min(a.x,e.x)&&t.y<=Math.max(a.y,e.y)&&t.y>=Math.min(a.y,e.y)}function Kn(a){return a>0?1:a<0?-1:0}function Sp(a,t){var e=a;do{if(e.i!==a.i&&e.next.i!==a.i&&e.i!==t.i&&e.next.i!==t.i&&nf(e,e.next,a,t))return!0;e=e.next}while(e!==a);return!1}function En(a,t){return Ae(a.prev,a,a.next)<0?Ae(a,t,a.next)>=0&&Ae(a,a.prev,t)>=0:Ae(a,t,a.prev)<0||Ae(a,a.next,t)<0}function Ep(a,t){var e=a,i=!1,n=(a.x+t.x)/2,o=(a.y+t.y)/2;do e.y>o!=e.next.y>o&&e.next.y!==e.y&&n<(e.next.x-e.x)*(o-e.y)/(e.next.y-e.y)+e.x&&(i=!i),e=e.next;while(e!==a);return i}function of(a,t){var e=new pu(a.i,a.x,a.y),i=new pu(t.i,t.x,t.y),n=a.next,o=t.prev;return a.next=t,t.prev=a,e.next=n,n.prev=e,i.next=e,e.prev=i,o.next=i,i.prev=o,i}function T0(a,t,e,i){var n=new pu(a,t,e);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function Pn(a){a.next.prev=a.prev,a.prev.next=a.next,a.prevZ&&(a.prevZ.nextZ=a.nextZ),a.nextZ&&(a.nextZ.prevZ=a.prevZ)}function pu(a,t,e){this.i=a,this.x=t,this.y=e,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}Vo.deviation=function(a,t,e,i){var n=t&&t.length,o=n?t[0]*e:a.length,s=Math.abs(_u(a,0,o,e));if(n)for(var l=0,g=t.length;l0&&(i+=a[n-1].length,e.holes.push(i))}return e};var Pp=yl.exports;const bl=vl(Pp);var Co={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Co.exports;(function(a,t){(function(e){var i=t&&!t.nodeType&&t,n=a&&!a.nodeType&&a,o=typeof Ao=="object"&&Ao;(o.global===o||o.window===o||o.self===o)&&(e=o);var s,l=2147483647,g=36,y=1,A=26,x=38,E=700,O=72,R=128,L="-",N=/^xn--/,B=/[^\x20-\x7E]/,k=/[\x2E\u3002\uFF0E\uFF61]/g,X={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},J=g-y,j=Math.floor,z=String.fromCharCode,Q;function at(ct){throw new RangeError(X[ct])}function q(ct,nt){for(var kt=ct.length,Yt=[];kt--;)Yt[kt]=nt(ct[kt]);return Yt}function tt(ct,nt){var kt=ct.split("@"),Yt="";kt.length>1&&(Yt=kt[0]+"@",ct=kt[1]),ct=ct.replace(k,".");var Qt=ct.split("."),ce=q(Qt,nt).join(".");return Yt+ce}function ht(ct){for(var nt=[],kt=0,Yt=ct.length,Qt,ce;kt=55296&&Qt<=56319&&kt65535&&(nt-=65536,kt+=z(nt>>>10&1023|55296),nt=56320|nt&1023),kt+=z(nt),kt}).join("")}function St(ct){return ct-48<10?ct-22:ct-65<26?ct-65:ct-97<26?ct-97:g}function Ht(ct,nt){return ct+22+75*(ct<26)-((nt!=0)<<5)}function pt(ct,nt,kt){var Yt=0;for(ct=kt?j(ct/E):ct>>1,ct+=j(ct/nt);ct>J*A>>1;Yt+=g)ct=j(ct/J);return j(Yt+(J+1)*ct/(ct+x))}function dt(ct){var nt=[],kt=ct.length,Yt,Qt=0,ce=R,se=O,ue,Me,Be,ge,Xt,ee,re,Gt,He;for(ue=ct.lastIndexOf(L),ue<0&&(ue=0),Me=0;Me=128&&at("not-basic"),nt.push(ct.charCodeAt(Me));for(Be=ue>0?ue+1:0;Be=kt&&at("invalid-input"),re=St(ct.charCodeAt(Be++)),(re>=g||re>j((l-Qt)/Xt))&&at("overflow"),Qt+=re*Xt,Gt=ee<=se?y:ee>=se+A?A:ee-se,!(rej(l/He)&&at("overflow"),Xt*=He;Yt=nt.length+1,se=pt(Qt-ge,Yt,ge==0),j(Qt/Yt)>l-ce&&at("overflow"),ce+=j(Qt/Yt),Qt%=Yt,nt.splice(Qt++,0,ce)}return xt(nt)}function Ct(ct){var nt,kt,Yt,Qt,ce,se,ue,Me,Be,ge,Xt,ee=[],re,Gt,He,Y;for(ct=ht(ct),re=ct.length,nt=R,kt=0,ce=O,se=0;se=nt&&Xtj((l-kt)/Gt)&&at("overflow"),kt+=(ue-nt)*Gt,nt=ue,se=0;sel&&at("overflow"),Xt==nt){for(Me=kt,Be=g;ge=Be<=ce?y:Be>=ce+A?A:Be-ce,!(Me"u"||!Je?Wt:Je(Uint8Array),ti={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Wt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Wt:ArrayBuffer,"%ArrayIteratorPrototype%":_i&&Je?Je([][Symbol.iterator]()):Wt,"%AsyncFromSyncIteratorPrototype%":Wt,"%AsyncFunction%":Ti,"%AsyncGenerator%":Ti,"%AsyncGeneratorFunction%":Ti,"%AsyncIteratorPrototype%":Ti,"%Atomics%":typeof Atomics>"u"?Wt:Atomics,"%BigInt%":typeof BigInt>"u"?Wt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Wt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Wt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Wt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Qp,"%eval%":eval,"%EvalError%":qp,"%Float32Array%":typeof Float32Array>"u"?Wt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Wt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Wt:FinalizationRegistry,"%Function%":uf,"%GeneratorFunction%":Ti,"%Int8Array%":typeof Int8Array>"u"?Wt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Wt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Wt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_i&&Je?Je(Je([][Symbol.iterator]())):Wt,"%JSON%":typeof JSON=="object"?JSON:Wt,"%Map%":typeof Map>"u"?Wt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_i||!Je?Wt:Je(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Wt:Promise,"%Proxy%":typeof Proxy>"u"?Wt:Proxy,"%RangeError%":Zp,"%ReferenceError%":t_,"%Reflect%":typeof Reflect>"u"?Wt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Wt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_i||!Je?Wt:Je(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Wt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_i&&Je?Je(""[Symbol.iterator]()):Wt,"%Symbol%":_i?Symbol:Wt,"%SyntaxError%":Ri,"%ThrowTypeError%":r_,"%TypedArray%":i_,"%TypeError%":Ei,"%Uint8Array%":typeof Uint8Array>"u"?Wt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Wt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Wt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Wt:Uint32Array,"%URIError%":e_,"%WeakMap%":typeof WeakMap>"u"?Wt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Wt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Wt:WeakSet};if(Je)try{null.error}catch(a){var n_=Je(Je(a));ti["%Error.prototype%"]=n_}var o_=function a(t){var e;if(t==="%AsyncFunction%")e=Ts("async function () {}");else if(t==="%GeneratorFunction%")e=Ts("function* () {}");else if(t==="%AsyncGeneratorFunction%")e=Ts("async function* () {}");else if(t==="%AsyncGenerator%"){var i=a("%AsyncGeneratorFunction%");i&&(e=i.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=a("%AsyncGenerator%");n&&Je&&(e=Je(n.prototype))}return ti[t]=e,e},S0={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Un=xl,Lo=Kp,s_=Un.call(Function.call,Array.prototype.concat),u_=Un.call(Function.apply,Array.prototype.splice),E0=Un.call(Function.call,String.prototype.replace),$o=Un.call(Function.call,String.prototype.slice),l_=Un.call(Function.call,RegExp.prototype.exec),h_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,c_=/\\(\\)?/g,f_=function(a){var t=$o(a,0,1),e=$o(a,-1);if(t==="%"&&e!=="%")throw new Ri("invalid intrinsic syntax, expected closing `%`");if(e==="%"&&t!=="%")throw new Ri("invalid intrinsic syntax, expected opening `%`");var i=[];return E0(a,h_,function(n,o,s,l){i[i.length]=s?E0(l,c_,"$1"):o||n}),i},d_=function(a,t){var e=a,i;if(Lo(S0,e)&&(i=S0[e],e="%"+i[0]+"%"),Lo(ti,e)){var n=ti[e];if(n===Ti&&(n=o_(e)),typeof n>"u"&&!t)throw new Ei("intrinsic "+a+" exists, but is not available. Please file an issue!");return{alias:i,name:e,value:n}}throw new Ri("intrinsic "+a+" does not exist!")},ki=function(a,t){if(typeof a!="string"||a.length===0)throw new Ei("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Ei('"allowMissing" argument must be a boolean');if(l_(/^%?[^%]*%?$/,a)===null)throw new Ri("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var e=f_(a),i=e.length>0?e[0]:"",n=d_("%"+i+"%",t),o=n.name,s=n.value,l=!1,g=n.alias;g&&(i=g[0],u_(e,s_([0,1],g)));for(var y=1,A=!0;y=e.length){var R=Za(s,x);A=!!R,A&&"get"in R&&!("originalValue"in R.get)?s=R.get:s=s[x]}else A=Lo(s,x),s=s[x];A&&!l&&(ti[o]=s)}}return s},lf={exports:{}},Is,P0;function Tl(){if(P0)return Is;P0=1;var a=ki,t=a("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return Is=t,Is}var p_=ki,Io=p_("%Object.getOwnPropertyDescriptor%",!0);if(Io)try{Io([],"length")}catch{Io=null}var hf=Io,M0=Tl(),__=sf,mi=kn,w0=hf,m_=function(a,t,e){if(!a||typeof a!="object"&&typeof a!="function")throw new mi("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new mi("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new mi("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new mi("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new mi("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new mi("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,n=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!w0&&w0(a,t);if(M0)M0(a,t,{configurable:o===null&&l?l.configurable:!o,enumerable:i===null&&l?l.enumerable:!i,value:e,writable:n===null&&l?l.writable:!n});else if(s||!i&&!n&&!o)a[t]=e;else throw new __("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},mu=Tl(),cf=function(){return!!mu};cf.hasArrayLengthDefineBug=function(){if(!mu)return null;try{return mu([],"length",{value:1}).length!==1}catch{return!0}};var g_=cf,v_=ki,O0=m_,y_=g_(),R0=hf,C0=kn,b_=v_("%Math.floor%"),x_=function(a,t){if(typeof a!="function")throw new C0("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||b_(t)!==t)throw new C0("`length` must be a positive 32-bit integer");var e=arguments.length>2&&!!arguments[2],i=!0,n=!0;if("length"in a&&R0){var o=R0(a,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(n=!1)}return(i||n||!e)&&(y_?O0(a,"length",t,!0,!0):O0(a,"length",t)),a};(function(a){var t=xl,e=ki,i=x_,n=kn,o=e("%Function.prototype.apply%"),s=e("%Function.prototype.call%"),l=e("%Reflect.apply%",!0)||t.call(s,o),g=Tl(),y=e("%Math.max%");a.exports=function(x){if(typeof x!="function")throw new n("a function is required");var E=l(t,s,arguments);return i(E,1+y(0,x.length-(arguments.length-1)),!0)};var A=function(){return l(t,o,arguments)};g?g(a.exports,"apply",{value:A}):a.exports.apply=A})(lf);var T_=lf.exports,ff=ki,df=T_,A_=df(ff("String.prototype.indexOf")),I_=function(a,t){var e=ff(a,!!t);return typeof e=="function"&&A_(a,".prototype.")>-1?df(e):e};const S_={},E_=Object.freeze(Object.defineProperty({__proto__:null,default:S_},Symbol.toStringTag,{value:"Module"})),P_=hp(E_);var Al=typeof Map=="function"&&Map.prototype,Ss=Object.getOwnPropertyDescriptor&&Al?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Do=Al&&Ss&&typeof Ss.get=="function"?Ss.get:null,L0=Al&&Map.prototype.forEach,Il=typeof Set=="function"&&Set.prototype,Es=Object.getOwnPropertyDescriptor&&Il?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,No=Il&&Es&&typeof Es.get=="function"?Es.get:null,$0=Il&&Set.prototype.forEach,M_=typeof WeakMap=="function"&&WeakMap.prototype,_n=M_?WeakMap.prototype.has:null,w_=typeof WeakSet=="function"&&WeakSet.prototype,mn=w_?WeakSet.prototype.has:null,O_=typeof WeakRef=="function"&&WeakRef.prototype,D0=O_?WeakRef.prototype.deref:null,R_=Boolean.prototype.valueOf,C_=Object.prototype.toString,L_=Function.prototype.toString,$_=String.prototype.match,Sl=String.prototype.slice,Sa=String.prototype.replace,D_=String.prototype.toUpperCase,N0=String.prototype.toLowerCase,pf=RegExp.prototype.test,F0=Array.prototype.concat,zr=Array.prototype.join,N_=Array.prototype.slice,B0=Math.floor,gu=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ps=Object.getOwnPropertySymbols,vu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Ci=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ar=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Ci||!0)?Symbol.toStringTag:null,_f=Object.prototype.propertyIsEnumerable,H0=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(a){return a.__proto__}:null);function k0(a,t){if(a===1/0||a===-1/0||a!==a||a&&a>-1e3&&a<1e3||pf.call(/e/,t))return t;var e=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof a=="number"){var i=a<0?-B0(-a):B0(a);if(i!==a){var n=String(i),o=Sl.call(t,n.length+1);return Sa.call(n,e,"$&_")+"."+Sa.call(Sa.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Sa.call(t,e,"$&_")}var yu=P_,U0=yu.custom,G0=gf(U0)?U0:null,F_=function a(t,e,i,n){var o=e||{};if(Aa(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Aa(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Aa(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Aa(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Aa(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return yf(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var g=String(t);return l?k0(t,g):g}if(typeof t=="bigint"){var y=String(t)+"n";return l?k0(t,y):y}var A=typeof o.depth>"u"?5:o.depth;if(typeof i>"u"&&(i=0),i>=A&&A>0&&typeof t=="object")return bu(t)?"[Array]":"[Object]";var x=e1(o,i);if(typeof n>"u")n=[];else if(vf(n,t)>=0)return"[Circular]";function E(St,Ht,pt){if(Ht&&(n=N_.call(n),n.push(Ht)),pt){var dt={depth:o.depth};return Aa(o,"quoteStyle")&&(dt.quoteStyle=o.quoteStyle),a(St,dt,i+1,n)}return a(St,o,i+1,n)}if(typeof t=="function"&&!X0(t)){var O=J_(t),R=Qn(t,E);return"[Function"+(O?": "+O:" (anonymous)")+"]"+(R.length>0?" { "+zr.call(R,", ")+" }":"")}if(gf(t)){var L=Ci?Sa.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):vu.call(t);return typeof t=="object"&&!Ci?Ki(L):L}if(q_(t)){for(var N="<"+N0.call(String(t.nodeName)),B=t.attributes||[],k=0;k",N}if(bu(t)){if(t.length===0)return"[]";var X=Qn(t,E);return x&&!t1(X)?"["+xu(X,x)+"]":"[ "+zr.call(X,", ")+" ]"}if(k_(t)){var J=Qn(t,E);return!("cause"in Error.prototype)&&"cause"in t&&!_f.call(t,"cause")?"{ ["+String(t)+"] "+zr.call(F0.call("[cause]: "+E(t.cause),J),", ")+" }":J.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+zr.call(J,", ")+" }"}if(typeof t=="object"&&s){if(G0&&typeof t[G0]=="function"&&yu)return yu(t,{depth:A-i});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Y_(t)){var j=[];return L0&&L0.call(t,function(St,Ht){j.push(E(Ht,t,!0)+" => "+E(St,t))}),j0("Map",Do.call(t),j,x)}if(K_(t)){var z=[];return $0&&$0.call(t,function(St){z.push(E(St,t))}),j0("Set",No.call(t),z,x)}if(z_(t))return Ms("WeakMap");if(Q_(t))return Ms("WeakSet");if(W_(t))return Ms("WeakRef");if(G_(t))return Ki(E(Number(t)));if(j_(t))return Ki(E(gu.call(t)));if(X_(t))return Ki(R_.call(t));if(U_(t))return Ki(E(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===Ao)return"{ [object globalThis] }";if(!H_(t)&&!X0(t)){var Q=Qn(t,E),at=H0?H0(t)===Object.prototype:t instanceof Object||t.constructor===Object,q=t instanceof Object?"":"null prototype",tt=!at&&ar&&Object(t)===t&&ar in t?Sl.call($a(t),8,-1):q?"Object":"",ht=at||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",xt=ht+(tt||q?"["+zr.call(F0.call([],tt||[],q||[]),": ")+"] ":"");return Q.length===0?xt+"{}":x?xt+"{"+xu(Q,x)+"}":xt+"{ "+zr.call(Q,", ")+" }"}return String(t)};function mf(a,t,e){var i=(e.quoteStyle||t)==="double"?'"':"'";return i+a+i}function B_(a){return Sa.call(String(a),/"/g,""")}function bu(a){return $a(a)==="[object Array]"&&(!ar||!(typeof a=="object"&&ar in a))}function H_(a){return $a(a)==="[object Date]"&&(!ar||!(typeof a=="object"&&ar in a))}function X0(a){return $a(a)==="[object RegExp]"&&(!ar||!(typeof a=="object"&&ar in a))}function k_(a){return $a(a)==="[object Error]"&&(!ar||!(typeof a=="object"&&ar in a))}function U_(a){return $a(a)==="[object String]"&&(!ar||!(typeof a=="object"&&ar in a))}function G_(a){return $a(a)==="[object Number]"&&(!ar||!(typeof a=="object"&&ar in a))}function X_(a){return $a(a)==="[object Boolean]"&&(!ar||!(typeof a=="object"&&ar in a))}function gf(a){if(Ci)return a&&typeof a=="object"&&a instanceof Symbol;if(typeof a=="symbol")return!0;if(!a||typeof a!="object"||!vu)return!1;try{return vu.call(a),!0}catch{}return!1}function j_(a){if(!a||typeof a!="object"||!gu)return!1;try{return gu.call(a),!0}catch{}return!1}var V_=Object.prototype.hasOwnProperty||function(a){return a in this};function Aa(a,t){return V_.call(a,t)}function $a(a){return C_.call(a)}function J_(a){if(a.name)return a.name;var t=$_.call(L_.call(a),/^function\s*([\w$]+)/);return t?t[1]:null}function vf(a,t){if(a.indexOf)return a.indexOf(t);for(var e=0,i=a.length;et.maxStringLength){var e=a.length-t.maxStringLength,i="... "+e+" more character"+(e>1?"s":"");return yf(Sl.call(a,0,t.maxStringLength),t)+i}var n=Sa.call(Sa.call(a,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Z_);return mf(n,"single",t)}function Z_(a){var t=a.charCodeAt(0),e={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return e?"\\"+e:"\\x"+(t<16?"0":"")+D_.call(t.toString(16))}function Ki(a){return"Object("+a+")"}function Ms(a){return a+" { ? }"}function j0(a,t,e,i){var n=i?xu(e,i):zr.call(e,", ");return a+" ("+t+") {"+n+"}"}function t1(a){for(var t=0;t=0)return!1;return!0}function e1(a,t){var e;if(a.indent===" ")e=" ";else if(typeof a.indent=="number"&&a.indent>0)e=zr.call(Array(a.indent+1)," ");else return null;return{base:e,prev:zr.call(Array(t+1),e)}}function xu(a,t){if(a.length===0)return"";var e=` +`+t.prev+t.base;return e+zr.call(a,","+e)+` +`+t.prev}function Qn(a,t){var e=bu(a),i=[];if(e){i.length=a.length;for(var n=0;n1;){var t=a.pop(),e=t.obj[t.prop];if(Qa(e)){for(var i=[],n=0;n=48&&g<=57||g>=65&&g<=90||g>=97&&g<=122||n===m1.RFC1738&&(g===40||g===41)){s+=o.charAt(l);continue}if(g<128){s=s+Vr[g];continue}if(g<2048){s=s+(Vr[192|g>>6]+Vr[128|g&63]);continue}if(g<55296||g>=57344){s=s+(Vr[224|g>>12]+Vr[128|g>>6&63]+Vr[128|g&63]);continue}l+=1,g=65536+((g&1023)<<10|o.charCodeAt(l)&1023),s+=Vr[240|g>>18]+Vr[128|g>>12&63]+Vr[128|g>>6&63]+Vr[128|g&63]}return s},T1=function(a){for(var t=[{obj:{o:a},prop:"o"}],e=[],i=0;i"u"&&(X=0)}if(typeof g=="function"?B=g(e,B):B instanceof Date?B=x(B):i==="comma"&&ca(B)&&(B=So.maybeMap(B,function(dt){return dt instanceof Date?x(dt):dt})),B===null){if(o)return l&&!R?l(e,er.encoder,L,"key",E):e;B=""}if(O1(B)||So.isBuffer(B)){if(l){var z=R?e:l(e,er.encoder,L,"key",E);return[O(z)+"="+O(l(B,er.encoder,L,"value",E))]}return[O(e)+"="+O(String(B))]}var Q=[];if(typeof B>"u")return Q;var at;if(i==="comma"&&ca(B))R&&l&&(B=So.maybeMap(B,l)),at=[{value:B.length>0?B.join(",")||null:void 0}];else if(ca(g))at=g;else{var q=Object.keys(B);at=y?q.sort(y):q}for(var tt=n&&ca(B)&&B.length===1?e+"[]":e,ht=0;ht"u"?er.allowDots:!!a.allowDots,charset:t,charsetSentinel:typeof a.charsetSentinel=="boolean"?a.charsetSentinel:er.charsetSentinel,delimiter:typeof a.delimiter>"u"?er.delimiter:a.delimiter,encode:typeof a.encode=="boolean"?a.encode:er.encode,encoder:typeof a.encoder=="function"?a.encoder:er.encoder,encodeValuesOnly:typeof a.encodeValuesOnly=="boolean"?a.encodeValuesOnly:er.encodeValuesOnly,filter:n,format:e,formatter:i,serializeDate:typeof a.serializeDate=="function"?a.serializeDate:er.serializeDate,skipNulls:typeof a.skipNulls=="boolean"?a.skipNulls:er.skipNulls,sort:typeof a.sort=="function"?a.sort:null,strictNullHandling:typeof a.strictNullHandling=="boolean"?a.strictNullHandling:er.strictNullHandling}},L1=function(a,t){var e=a,i=C1(t),n,o;typeof i.filter=="function"?(o=i.filter,e=o("",e)):ca(i.filter)&&(o=i.filter,n=o);var s=[];if(typeof e!="object"||e===null)return"";var l;t&&t.arrayFormat in V0?l=t.arrayFormat:t&&"indices"in t?l=t.indices?"indices":"repeat":l="indices";var g=V0[l];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var y=g==="comma"&&t&&t.commaRoundTrip;n||(n=Object.keys(e)),i.sort&&n.sort(i.sort);for(var A=Af(),x=0;x0?R+O:""},Li=Tf,Tu=Object.prototype.hasOwnProperty,$1=Array.isArray,Ve={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Li.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},D1=function(a){return a.replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(parseInt(e,10))})},Sf=function(a,t){return a&&typeof a=="string"&&t.comma&&a.indexOf(",")>-1?a.split(","):a},N1="utf8=%26%2310003%3B",F1="utf8=%E2%9C%93",B1=function(a,t){var e={__proto__:null},i=t.ignoreQueryPrefix?a.replace(/^\?/,""):a,n=t.parameterLimit===1/0?void 0:t.parameterLimit,o=i.split(t.delimiter,n),s=-1,l,g=t.charset;if(t.charsetSentinel)for(l=0;l-1&&(O=$1(O)?[O]:O),Tu.call(e,E)?e[E]=Li.combine(e[E],O):e[E]=O}return e},H1=function(a,t,e,i){for(var n=i?t:Sf(t,e),o=a.length-1;o>=0;--o){var s,l=a[o];if(l==="[]"&&e.parseArrays)s=[].concat(n);else{s=e.plainObjects?Object.create(null):{};var g=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,y=parseInt(g,10);!e.parseArrays&&g===""?s={0:n}:!isNaN(y)&&l!==g&&String(y)===g&&y>=0&&e.parseArrays&&y<=e.arrayLimit?(s=[],s[y]=n):g!=="__proto__"&&(s[g]=n)}n=s}return n},k1=function(a,t,e,i){if(a){var n=e.allowDots?a.replace(/\.([^.[]+)/g,"[$1]"):a,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=e.depth>0&&o.exec(n),g=l?n.slice(0,l.index):n,y=[];if(g){if(!e.plainObjects&&Tu.call(Object.prototype,g)&&!e.allowPrototypes)return;y.push(g)}for(var A=0;e.depth>0&&(l=s.exec(n))!==null&&A"u"?Ve.charset:a.charset;return{allowDots:typeof a.allowDots>"u"?Ve.allowDots:!!a.allowDots,allowPrototypes:typeof a.allowPrototypes=="boolean"?a.allowPrototypes:Ve.allowPrototypes,allowSparse:typeof a.allowSparse=="boolean"?a.allowSparse:Ve.allowSparse,arrayLimit:typeof a.arrayLimit=="number"?a.arrayLimit:Ve.arrayLimit,charset:t,charsetSentinel:typeof a.charsetSentinel=="boolean"?a.charsetSentinel:Ve.charsetSentinel,comma:typeof a.comma=="boolean"?a.comma:Ve.comma,decoder:typeof a.decoder=="function"?a.decoder:Ve.decoder,delimiter:typeof a.delimiter=="string"||Li.isRegExp(a.delimiter)?a.delimiter:Ve.delimiter,depth:typeof a.depth=="number"||a.depth===!1?+a.depth:Ve.depth,ignoreQueryPrefix:a.ignoreQueryPrefix===!0,interpretNumericEntities:typeof a.interpretNumericEntities=="boolean"?a.interpretNumericEntities:Ve.interpretNumericEntities,parameterLimit:typeof a.parameterLimit=="number"?a.parameterLimit:Ve.parameterLimit,parseArrays:a.parseArrays!==!1,plainObjects:typeof a.plainObjects=="boolean"?a.plainObjects:Ve.plainObjects,strictNullHandling:typeof a.strictNullHandling=="boolean"?a.strictNullHandling:Ve.strictNullHandling}},G1=function(a,t){var e=U1(t);if(a===""||a===null||typeof a>"u")return e.plainObjects?Object.create(null):{};for(var i=typeof a=="string"?B1(a,e):a,n=e.plainObjects?Object.create(null):{},o=Object.keys(i),s=0;s",'"',"`"," ","\r",` +`," "],q1=["{","}","|","\\","^","`"].concat(Q1),Au=["'"].concat(q1),Y0=["%","/","?",";","#"].concat(Au),z0=["/","?","#"],Z1=255,W0=/^[+a-z0-9A-Z_-]{0,63}$/,tm=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,em={javascript:!0,"javascript:":!0},Iu={javascript:!0,"javascript:":!0},Pi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Su=J1;function Yo(a,t,e){if(a&&typeof a=="object"&&a instanceof Br)return a;var i=new Br;return i.parse(a,t,e),i}Br.prototype.parse=function(a,t,e){if(typeof a!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof a);var i=a.indexOf("?"),n=i!==-1&&i127?j+="x":j+=J[z];if(!j.match(W0)){var at=k.slice(0,O),q=k.slice(O+1),tt=J.match(tm);tt&&(at.push(tt[1]),q.unshift(tt[2])),q.length&&(l="/"+q.join(".")+l),this.hostname=at.join(".");break}}}this.hostname.length>Z1?this.hostname="":this.hostname=this.hostname.toLowerCase(),B||(this.hostname=Y1.toASCII(this.hostname));var ht=this.port?":"+this.port:"",xt=this.hostname||"";this.host=xt+ht,this.href+=this.host,B&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),l[0]!=="/"&&(l="/"+l))}if(!em[A])for(var O=0,X=Au.length;O0?e.host.split("@"):!1;j&&(e.auth=j.shift(),e.hostname=j.shift(),e.host=e.hostname)}return e.search=a.search,e.query=a.query,(e.pathname!==null||e.search!==null)&&(e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")),e.href=e.format(),e}if(!k.length)return e.pathname=null,e.search?e.path="/"+e.search:e.path=null,e.href=e.format(),e;for(var z=k.slice(-1)[0],Q=(e.host||a.host||k.length>1)&&(z==="."||z==="..")||z==="",at=0,q=k.length;q>=0;q--)z=k[q],z==="."?k.splice(q,1):z===".."?(k.splice(q,1),at++):at&&(k.splice(q,1),at--);if(!N&&!B)for(;at--;at)k.unshift("..");N&&k[0]!==""&&(!k[0]||k[0].charAt(0)!=="/")&&k.unshift(""),Q&&k.join("/").substr(-1)!=="/"&&k.push("");var tt=k[0]===""||k[0]&&k[0].charAt(0)==="/";if(J){e.hostname=tt?"":k.length?k.shift():"",e.host=e.hostname;var j=e.host&&e.host.indexOf("@")>0?e.host.split("@"):!1;j&&(e.auth=j.shift(),e.hostname=j.shift(),e.host=e.hostname)}return N=N||e.host&&k.length,N&&!tt&&k.unshift(""),k.length>0?e.pathname=k.join("/"):(e.pathname=null,e.path=null),(e.pathname!==null||e.search!==null)&&(e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")),e.auth=a.auth||e.auth,e.slashes=e.slashes||a.slashes,e.href=e.format(),e};Br.prototype.parseHost=function(){var a=this.host,t=W1.exec(a);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),a=a.substr(0,a.length-t.length)),a&&(this.hostname=a)};var im=Yo,nm=am,om=rm;/*! + * @pixi/utils - v6.5.10 + * Compiled Thu, 06 Jul 2023 15:25:11 UTC + * + * @pixi/utils is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */var qr={parse:im,format:om,resolve:nm};function Rr(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function K0(a){var t=a.split("?")[0];return t.split("#")[0]}function sm(a){return a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function um(a,t,e){return a.replace(new RegExp(sm(t),"g"),e)}function lm(a,t){for(var e="",i=0,n=-1,o=0,s,l=0;l<=a.length;++l){if(l2){var g=e.lastIndexOf("/");if(g!==e.length-1){g===-1?(e="",i=0):(e=e.slice(0,g),i=e.length-1-e.lastIndexOf("/")),n=l,o=0;continue}}else if(e.length===2||e.length===1){e="",i=0,n=l,o=0;continue}}}else e.length>0?e+="/"+a.slice(n+1,l):e=a.slice(n+1,l),i=l-n-1;n=l,o=0}else s===46&&o!==-1?++o:o=-1}return e}var Ef={toPosix:function(a){return um(a,"\\","/")},isUrl:function(a){return/^https?:/.test(this.toPosix(a))},isDataUrl:function(a){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(a)},hasProtocol:function(a){return/^[^/:]+:\//.test(this.toPosix(a))},getProtocol:function(a){Rr(a),a=this.toPosix(a);var t="",e=/^file:\/\/\//.exec(a),i=/^[^/:]+:\/\//.exec(a),n=/^[^/:]+:\//.exec(a);if(e||i||n){var o=(e==null?void 0:e[0])||(i==null?void 0:i[0])||(n==null?void 0:n[0]);t=o,a=a.slice(o.length)}return t},toAbsolute:function(a,t,e){if(this.isDataUrl(a))return a;var i=K0(this.toPosix(t??gt.ADAPTER.getBaseUrl())),n=K0(this.toPosix(e??this.rootname(i)));if(Rr(a),a=this.toPosix(a),a.startsWith("/"))return Ef.join(n,a.slice(1));var o=this.isAbsolute(a)?a:this.join(i,a);return o},normalize:function(a){if(a=this.toPosix(a),Rr(a),a.length===0)return".";var t="",e=a.startsWith("/");this.hasProtocol(a)&&(t=this.rootname(a),a=a.slice(t.length));var i=a.endsWith("/");return a=lm(a),a.length>0&&i&&(a+="/"),e?"/"+a:t+a},isAbsolute:function(a){return Rr(a),a=this.toPosix(a),this.hasProtocol(a)?!0:a.startsWith("/")},join:function(){for(var a=arguments,t,e=[],i=0;i0)if(n===void 0)n=s;else{var l=(t=e[o-1])!==null&&t!==void 0?t:"";this.extname(l)?n+="/../"+s:n+="/"+s}}return n===void 0?".":this.normalize(n)},dirname:function(a){if(Rr(a),a.length===0)return".";a=this.toPosix(a);var t=a.charCodeAt(0),e=t===47,i=-1,n=!0,o=this.getProtocol(a),s=a;a=a.slice(o.length);for(var l=a.length-1;l>=1;--l)if(t=a.charCodeAt(l),t===47){if(!n){i=l;break}}else n=!1;return i===-1?e?"/":this.isUrl(s)?o+a:o:e&&i===1?"//":o+a.slice(0,i)},rootname:function(a){Rr(a),a=this.toPosix(a);var t="";if(a.startsWith("/")?t="/":t=this.getProtocol(a),this.isUrl(a)){var e=a.indexOf("/",t.length);e!==-1?t=a.slice(0,e):t=a,t.endsWith("/")||(t+="/")}return t},basename:function(a,t){Rr(a),t&&Rr(t),a=this.toPosix(a);var e=0,i=-1,n=!0,o;if(t!==void 0&&t.length>0&&t.length<=a.length){if(t.length===a.length&&t===a)return"";var s=t.length-1,l=-1;for(o=a.length-1;o>=0;--o){var g=a.charCodeAt(o);if(g===47){if(!n){e=o+1;break}}else l===-1&&(n=!1,l=o+1),s>=0&&(g===t.charCodeAt(s)?--s===-1&&(i=o):(s=-1,i=l))}return e===i?i=l:i===-1&&(i=a.length),a.slice(e,i)}for(o=a.length-1;o>=0;--o)if(a.charCodeAt(o)===47){if(!n){e=o+1;break}}else i===-1&&(n=!1,i=o+1);return i===-1?"":a.slice(e,i)},extname:function(a){Rr(a),a=this.toPosix(a);for(var t=-1,e=0,i=-1,n=!0,o=0,s=a.length-1;s>=0;--s){var l=a.charCodeAt(s);if(l===47){if(!n){e=s+1;break}continue}i===-1&&(n=!1,i=s+1),l===46?t===-1?t=s:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||i===-1||o===0||o===1&&t===i-1&&t===e+1?"":a.slice(t,i)},parse:function(a){Rr(a);var t={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return t;a=this.toPosix(a);var e=a.charCodeAt(0),i=this.isAbsolute(a),n;t.root=this.rootname(a),i||this.hasProtocol(a)?n=1:n=0;for(var o=-1,s=0,l=-1,g=!0,y=a.length-1,A=0;y>=n;--y){if(e=a.charCodeAt(y),e===47){if(!g){s=y+1;break}continue}l===-1&&(g=!1,l=y+1),e===46?o===-1?o=y:A!==1&&(A=1):o!==-1&&(A=-1)}return o===-1||l===-1||A===0||A===1&&o===l-1&&o===s+1?l!==-1&&(s===0&&i?t.base=t.name=a.slice(1,l):t.base=t.name=a.slice(s,l)):(s===0&&i?(t.name=a.slice(1,o),t.base=a.slice(1,l)):(t.name=a.slice(s,o),t.base=a.slice(s,l)),t.ext=a.slice(o,l)),t.dir=this.dirname(a),t},sep:"/",delimiter:":"};gt.RETINA_PREFIX=/@([0-9\.]+)x/;gt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var Eu=!1,Q0="6.5.10";function hm(){Eu=!0}function Pf(a){var t;if(!Eu){if(gt.ADAPTER.getNavigator().userAgent.toLowerCase().indexOf("chrome")>-1){var e=[` + %c %c %c PixiJS `+Q0+" - ✰ "+a+` ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ + +`,"background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(t=globalThis.console).log.apply(t,e)}else globalThis.console&&globalThis.console.log("PixiJS "+Q0+" - "+a+" - http://www.pixijs.com/");Eu=!0}}var Cs;function Mf(){return typeof Cs>"u"&&(Cs=function(){var a={stencil:!0,failIfMajorPerformanceCaveat:gt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!gt.ADAPTER.getWebGLRenderingContext())return!1;var t=gt.ADAPTER.createCanvas(),e=t.getContext("webgl",a)||t.getContext("experimental-webgl",a),i=!!(e&&e.getContextAttributes().stencil);if(e){var n=e.getExtension("WEBGL_lose_context");n&&n.loseContext()}return e=null,i}catch{return!1}}()),Cs}var cm="#f0f8ff",fm="#faebd7",dm="#00ffff",pm="#7fffd4",_m="#f0ffff",mm="#f5f5dc",gm="#ffe4c4",vm="#000000",ym="#ffebcd",bm="#0000ff",xm="#8a2be2",Tm="#a52a2a",Am="#deb887",Im="#5f9ea0",Sm="#7fff00",Em="#d2691e",Pm="#ff7f50",Mm="#6495ed",wm="#fff8dc",Om="#dc143c",Rm="#00ffff",Cm="#00008b",Lm="#008b8b",$m="#b8860b",Dm="#a9a9a9",Nm="#006400",Fm="#a9a9a9",Bm="#bdb76b",Hm="#8b008b",km="#556b2f",Um="#ff8c00",Gm="#9932cc",Xm="#8b0000",jm="#e9967a",Vm="#8fbc8f",Jm="#483d8b",Ym="#2f4f4f",zm="#2f4f4f",Wm="#00ced1",Km="#9400d3",Qm="#ff1493",qm="#00bfff",Zm="#696969",tg="#696969",eg="#1e90ff",rg="#b22222",ag="#fffaf0",ig="#228b22",ng="#ff00ff",og="#dcdcdc",sg="#f8f8ff",ug="#daa520",lg="#ffd700",hg="#808080",cg="#008000",fg="#adff2f",dg="#808080",pg="#f0fff0",_g="#ff69b4",mg="#cd5c5c",gg="#4b0082",vg="#fffff0",yg="#f0e68c",bg="#fff0f5",xg="#e6e6fa",Tg="#7cfc00",Ag="#fffacd",Ig="#add8e6",Sg="#f08080",Eg="#e0ffff",Pg="#fafad2",Mg="#d3d3d3",wg="#90ee90",Og="#d3d3d3",Rg="#ffb6c1",Cg="#ffa07a",Lg="#20b2aa",$g="#87cefa",Dg="#778899",Ng="#778899",Fg="#b0c4de",Bg="#ffffe0",Hg="#00ff00",kg="#32cd32",Ug="#faf0e6",Gg="#ff00ff",Xg="#800000",jg="#66cdaa",Vg="#0000cd",Jg="#ba55d3",Yg="#9370db",zg="#3cb371",Wg="#7b68ee",Kg="#00fa9a",Qg="#48d1cc",qg="#c71585",Zg="#191970",tv="#f5fffa",ev="#ffe4e1",rv="#ffe4b5",av="#ffdead",iv="#000080",nv="#fdf5e6",ov="#808000",sv="#6b8e23",uv="#ffa500",lv="#ff4500",hv="#da70d6",cv="#eee8aa",fv="#98fb98",dv="#afeeee",pv="#db7093",_v="#ffefd5",mv="#ffdab9",gv="#cd853f",vv="#ffc0cb",yv="#dda0dd",bv="#b0e0e6",xv="#800080",Tv="#663399",Av="#ff0000",Iv="#bc8f8f",Sv="#4169e1",Ev="#8b4513",Pv="#fa8072",Mv="#f4a460",wv="#2e8b57",Ov="#fff5ee",Rv="#a0522d",Cv="#c0c0c0",Lv="#87ceeb",$v="#6a5acd",Dv="#708090",Nv="#708090",Fv="#fffafa",Bv="#00ff7f",Hv="#4682b4",kv="#d2b48c",Uv="#008080",Gv="#d8bfd8",Xv="#ff6347",jv="#40e0d0",Vv="#ee82ee",Jv="#f5deb3",Yv="#ffffff",zv="#f5f5f5",Wv="#ffff00",Kv="#9acd32",Qv={aliceblue:cm,antiquewhite:fm,aqua:dm,aquamarine:pm,azure:_m,beige:mm,bisque:gm,black:vm,blanchedalmond:ym,blue:bm,blueviolet:xm,brown:Tm,burlywood:Am,cadetblue:Im,chartreuse:Sm,chocolate:Em,coral:Pm,cornflowerblue:Mm,cornsilk:wm,crimson:Om,cyan:Rm,darkblue:Cm,darkcyan:Lm,darkgoldenrod:$m,darkgray:Dm,darkgreen:Nm,darkgrey:Fm,darkkhaki:Bm,darkmagenta:Hm,darkolivegreen:km,darkorange:Um,darkorchid:Gm,darkred:Xm,darksalmon:jm,darkseagreen:Vm,darkslateblue:Jm,darkslategray:Ym,darkslategrey:zm,darkturquoise:Wm,darkviolet:Km,deeppink:Qm,deepskyblue:qm,dimgray:Zm,dimgrey:tg,dodgerblue:eg,firebrick:rg,floralwhite:ag,forestgreen:ig,fuchsia:ng,gainsboro:og,ghostwhite:sg,goldenrod:ug,gold:lg,gray:hg,green:cg,greenyellow:fg,grey:dg,honeydew:pg,hotpink:_g,indianred:mg,indigo:gg,ivory:vg,khaki:yg,lavenderblush:bg,lavender:xg,lawngreen:Tg,lemonchiffon:Ag,lightblue:Ig,lightcoral:Sg,lightcyan:Eg,lightgoldenrodyellow:Pg,lightgray:Mg,lightgreen:wg,lightgrey:Og,lightpink:Rg,lightsalmon:Cg,lightseagreen:Lg,lightskyblue:$g,lightslategray:Dg,lightslategrey:Ng,lightsteelblue:Fg,lightyellow:Bg,lime:Hg,limegreen:kg,linen:Ug,magenta:Gg,maroon:Xg,mediumaquamarine:jg,mediumblue:Vg,mediumorchid:Jg,mediumpurple:Yg,mediumseagreen:zg,mediumslateblue:Wg,mediumspringgreen:Kg,mediumturquoise:Qg,mediumvioletred:qg,midnightblue:Zg,mintcream:tv,mistyrose:ev,moccasin:rv,navajowhite:av,navy:iv,oldlace:nv,olive:ov,olivedrab:sv,orange:uv,orangered:lv,orchid:hv,palegoldenrod:cv,palegreen:fv,paleturquoise:dv,palevioletred:pv,papayawhip:_v,peachpuff:mv,peru:gv,pink:vv,plum:yv,powderblue:bv,purple:xv,rebeccapurple:Tv,red:Av,rosybrown:Iv,royalblue:Sv,saddlebrown:Ev,salmon:Pv,sandybrown:Mv,seagreen:wv,seashell:Ov,sienna:Rv,silver:Cv,skyblue:Lv,slateblue:$v,slategray:Dv,slategrey:Nv,snow:Fv,springgreen:Bv,steelblue:Hv,tan:kv,teal:Uv,thistle:Gv,tomato:Xv,turquoise:jv,violet:Vv,wheat:Jv,white:Yv,whitesmoke:zv,yellow:Wv,yellowgreen:Kv};function ni(a,t){return t===void 0&&(t=[]),t[0]=(a>>16&255)/255,t[1]=(a>>8&255)/255,t[2]=(a&255)/255,t}function Ml(a){var t=a.toString(16);return t="000000".substring(0,6-t.length)+t,"#"+t}function wl(a){return typeof a=="string"&&(a=Qv[a.toLowerCase()]||a,a[0]==="#"&&(a=a.slice(1))),parseInt(a,16)}function qv(a){return(a[0]*255<<16)+(a[1]*255<<8)+(a[2]*255|0)}function Zv(){for(var a=[],t=[],e=0;e<32;e++)a[e]=e,t[e]=e;a[Pt.NORMAL_NPM]=Pt.NORMAL,a[Pt.ADD_NPM]=Pt.ADD,a[Pt.SCREEN_NPM]=Pt.SCREEN,t[Pt.NORMAL]=Pt.NORMAL_NPM,t[Pt.ADD]=Pt.ADD_NPM,t[Pt.SCREEN]=Pt.SCREEN_NPM;var i=[];return i.push(t),i.push(a),i}var Ol=Zv();function Rl(a,t){return Ol[t?1:0][a]}function wf(a,t,e,i){return e=e||new Float32Array(4),i||i===void 0?(e[0]=a[0]*t,e[1]=a[1]*t,e[2]=a[2]*t):(e[0]=a[0],e[1]=a[1],e[2]=a[2]),e[3]=t,e}function zo(a,t){if(t===1)return(t*255<<24)+a;if(t===0)return 0;var e=a>>16&255,i=a>>8&255,n=a&255;return e=e*t+.5|0,i=i*t+.5|0,n=n*t+.5|0,(t*255<<24)+(e<<16)+(i<<8)+n}function Cl(a,t,e,i){return e=e||new Float32Array(4),e[0]=(a>>16&255)/255,e[1]=(a>>8&255)/255,e[2]=(a&255)/255,(i||i===void 0)&&(e[0]*=t,e[1]*=t,e[2]*=t),e[3]=t,e}function Of(a,t){t===void 0&&(t=null);var e=a*6;if(t=t||new Uint16Array(e),t.length!==e)throw new Error("Out buffer length is incorrect, got "+t.length+" and expected "+e);for(var i=0,n=0;i>>1,a|=a>>>2,a|=a>>>4,a|=a>>>8,a|=a>>>16,a+1}function Pu(a){return!(a&a-1)&&!!a}function Mu(a){var t=(a>65535?1:0)<<4;a>>>=t;var e=(a>255?1:0)<<3;return a>>>=e,t|=e,e=(a>15?1:0)<<2,a>>>=e,t|=e,e=(a>3?1:0)<<1,a>>>=e,t|=e,t|a>>1}function ei(a,t,e){var i=a.length,n;if(!(t>=i||e===0)){e=t+e>i?i-t:e;var o=i-e;for(n=t;n"u"?console.warn("PixiJS Deprecation Warning: ",t+` +Deprecated since v`+a):(i=i.split(` +`).splice(e).join(` +`),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",t+` +Deprecated since v`+a),console.warn(i),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",t+` +Deprecated since v`+a),console.warn(i))),q0[t]=!0}}var wu={},cr=Object.create(null),vr=Object.create(null);function ay(){var a;for(a in cr)cr[a].destroy();for(a in vr)vr[a].destroy()}function iy(){var a;for(a in cr)delete cr[a];for(a in vr)delete vr[a]}var Ou=function(){function a(t,e,i){this.canvas=gt.ADAPTER.createCanvas(),this.context=this.canvas.getContext("2d"),this.resolution=i||gt.RESOLUTION,this.resize(t,e)}return a.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},a.prototype.resize=function(t,e){this.canvas.width=Math.round(t*this.resolution),this.canvas.height=Math.round(e*this.resolution)},a.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(a.prototype,"width",{get:function(){return this.canvas.width},set:function(t){this.canvas.width=Math.round(t)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"height",{get:function(){return this.canvas.height},set:function(t){this.canvas.height=Math.round(t)},enumerable:!1,configurable:!0}),a}();function Rf(a){var t=a.width,e=a.height,i=a.getContext("2d",{willReadFrequently:!0}),n=i.getImageData(0,0,t,e),o=n.data,s=o.length,l={top:null,left:null,right:null,bottom:null},g=null,y,A,x;for(y=0;y=this.x&&t=this.y&&et.right?t.right:this.right;if(n<=i)return!1;var o=this.yt.bottom?t.bottom:this.bottom;return s>o}var l=this.left,g=this.right,y=this.top,A=this.bottom;if(g<=l||A<=y)return!1;var x=eo[0].set(t.left,t.top),E=eo[1].set(t.left,t.bottom),O=eo[2].set(t.right,t.top),R=eo[3].set(t.right,t.bottom);if(O.x<=x.x||E.y<=x.y)return!1;var L=Math.sign(e.a*e.d-e.b*e.c);if(L===0||(e.apply(x,x),e.apply(E,E),e.apply(O,O),e.apply(R,R),Math.max(x.x,E.x,O.x,R.x)<=l||Math.min(x.x,E.x,O.x,R.x)>=g||Math.max(x.y,E.y,O.y,R.y)<=y||Math.min(x.y,E.y,O.y,R.y)>=A))return!1;var N=L*(E.y-x.y),B=L*(x.x-E.x),k=N*l+B*y,X=N*g+B*y,J=N*l+B*A,j=N*g+B*A;if(Math.max(k,X,J,j)<=N*x.x+B*x.y||Math.min(k,X,J,j)>=N*R.x+B*R.y)return!1;var z=L*(x.y-O.y),Q=L*(O.x-x.x),at=z*l+Q*y,q=z*g+Q*y,tt=z*l+Q*A,ht=z*g+Q*A;return!(Math.max(at,q,tt,ht)<=z*x.x+Q*x.y||Math.min(at,q,tt,ht)>=z*R.x+Q*R.y)},a.prototype.pad=function(t,e){return t===void 0&&(t=0),e===void 0&&(e=t),this.x-=t,this.y-=e,this.width+=t*2,this.height+=e*2,this},a.prototype.fit=function(t){var e=Math.max(this.x,t.x),i=Math.min(this.x+this.width,t.x+t.width),n=Math.max(this.y,t.y),o=Math.min(this.y+this.height,t.y+t.height);return this.x=e,this.width=Math.max(i-e,0),this.y=n,this.height=Math.max(o-n,0),this},a.prototype.ceil=function(t,e){t===void 0&&(t=1),e===void 0&&(e=.001);var i=Math.ceil((this.x+this.width-e)*t)/t,n=Math.ceil((this.y+this.height-e)*t)/t;return this.x=Math.floor((this.x+e)*t)/t,this.y=Math.floor((this.y+e)*t)/t,this.width=i-this.x,this.height=n-this.y,this},a.prototype.enlarge=function(t){var e=Math.min(this.x,t.x),i=Math.max(this.x+this.width,t.x+t.width),n=Math.min(this.y,t.y),o=Math.max(this.y+this.height,t.y+t.height);return this.x=e,this.width=i-e,this.y=n,this.height=o-n,this},a.prototype.toString=function(){return"[@pixi/math:Rectangle x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},a}(),Nf=function(){function a(t,e,i){t===void 0&&(t=0),e===void 0&&(e=0),i===void 0&&(i=0),this.x=t,this.y=e,this.radius=i,this.type=je.CIRC}return a.prototype.clone=function(){return new a(this.x,this.y,this.radius)},a.prototype.contains=function(t,e){if(this.radius<=0)return!1;var i=this.radius*this.radius,n=this.x-t,o=this.y-e;return n*=n,o*=o,n+o<=i},a.prototype.getBounds=function(){return new Vt(this.x-this.radius,this.y-this.radius,this.radius*2,this.radius*2)},a.prototype.toString=function(){return"[@pixi/math:Circle x="+this.x+" y="+this.y+" radius="+this.radius+"]"},a}(),Ff=function(){function a(t,e,i,n){t===void 0&&(t=0),e===void 0&&(e=0),i===void 0&&(i=0),n===void 0&&(n=0),this.x=t,this.y=e,this.width=i,this.height=n,this.type=je.ELIP}return a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height)},a.prototype.contains=function(t,e){if(this.width<=0||this.height<=0)return!1;var i=(t-this.x)/this.width,n=(e-this.y)/this.height;return i*=i,n*=n,i+n<=1},a.prototype.getBounds=function(){return new Vt(this.x-this.width,this.y-this.height,this.width,this.height)},a.prototype.toString=function(){return"[@pixi/math:Ellipse x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},a}(),vn=function(){function a(){for(var t=arguments,e=[],i=0;ie!=A>e&&t<(y-l)*((e-g)/(A-g))+l;x&&(i=!i)}return i},a.prototype.toString=function(){return"[@pixi/math:Polygon"+("closeStroke="+this.closeStroke)+("points="+this.points.reduce(function(t,e){return t+", "+e},"")+"]")},a}(),Bf=function(){function a(t,e,i,n,o){t===void 0&&(t=0),e===void 0&&(e=0),i===void 0&&(i=0),n===void 0&&(n=0),o===void 0&&(o=20),this.x=t,this.y=e,this.width=i,this.height=n,this.radius=o,this.type=je.RREC}return a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.radius)},a.prototype.contains=function(t,e){if(this.width<=0||this.height<=0)return!1;if(t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height){var i=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(e>=this.y+i&&e<=this.y+this.height-i||t>=this.x+i&&t<=this.x+this.width-i)return!0;var n=t-(this.x+i),o=e-(this.y+i),s=i*i;if(n*n+o*o<=s||(n=t-(this.x+this.width-i),n*n+o*o<=s)||(o=e-(this.y+this.height-i),n*n+o*o<=s)||(n=t-(this.x+i),n*n+o*o<=s))return!0}return!1},a.prototype.toString=function(){return"[@pixi/math:RoundedRectangle x="+this.x+" y="+this.y+("width="+this.width+" height="+this.height+" radius="+this.radius+"]")},a}(),Ea=function(){function a(t,e,i,n){i===void 0&&(i=0),n===void 0&&(n=0),this._x=i,this._y=n,this.cb=t,this.scope=e}return a.prototype.clone=function(t,e){return t===void 0&&(t=this.cb),e===void 0&&(e=this.scope),new a(t,e,this._x,this._y)},a.prototype.set=function(t,e){return t===void 0&&(t=0),e===void 0&&(e=t),(this._x!==t||this._y!==e)&&(this._x=t,this._y=e,this.cb.call(this.scope)),this},a.prototype.copyFrom=function(t){return(this._x!==t.x||this._y!==t.y)&&(this._x=t.x,this._y=t.y,this.cb.call(this.scope)),this},a.prototype.copyTo=function(t){return t.set(this._x,this._y),t},a.prototype.equals=function(t){return t.x===this._x&&t.y===this._y},a.prototype.toString=function(){return"[@pixi/math:ObservablePoint x=0 y=0 scope="+this.scope+"]"},Object.defineProperty(a.prototype,"x",{get:function(){return this._x},set:function(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"y",{get:function(){return this._y},set:function(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),a}(),be=function(){function a(t,e,i,n,o,s){t===void 0&&(t=1),e===void 0&&(e=0),i===void 0&&(i=0),n===void 0&&(n=1),o===void 0&&(o=0),s===void 0&&(s=0),this.array=null,this.a=t,this.b=e,this.c=i,this.d=n,this.tx=o,this.ty=s}return a.prototype.fromArray=function(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]},a.prototype.set=function(t,e,i,n,o,s){return this.a=t,this.b=e,this.c=i,this.d=n,this.tx=o,this.ty=s,this},a.prototype.toArray=function(t,e){this.array||(this.array=new Float32Array(9));var i=e||this.array;return t?(i[0]=this.a,i[1]=this.b,i[2]=0,i[3]=this.c,i[4]=this.d,i[5]=0,i[6]=this.tx,i[7]=this.ty,i[8]=1):(i[0]=this.a,i[1]=this.c,i[2]=this.tx,i[3]=this.b,i[4]=this.d,i[5]=this.ty,i[6]=0,i[7]=0,i[8]=1),i},a.prototype.apply=function(t,e){e=e||new he;var i=t.x,n=t.y;return e.x=this.a*i+this.c*n+this.tx,e.y=this.b*i+this.d*n+this.ty,e},a.prototype.applyInverse=function(t,e){e=e||new he;var i=1/(this.a*this.d+this.c*-this.b),n=t.x,o=t.y;return e.x=this.d*i*n+-this.c*i*o+(this.ty*this.c-this.tx*this.d)*i,e.y=this.a*i*o+-this.b*i*n+(-this.ty*this.a+this.tx*this.b)*i,e},a.prototype.translate=function(t,e){return this.tx+=t,this.ty+=e,this},a.prototype.scale=function(t,e){return this.a*=t,this.d*=e,this.c*=t,this.b*=e,this.tx*=t,this.ty*=e,this},a.prototype.rotate=function(t){var e=Math.cos(t),i=Math.sin(t),n=this.a,o=this.c,s=this.tx;return this.a=n*e-this.b*i,this.b=n*i+this.b*e,this.c=o*e-this.d*i,this.d=o*i+this.d*e,this.tx=s*e-this.ty*i,this.ty=s*i+this.ty*e,this},a.prototype.append=function(t){var e=this.a,i=this.b,n=this.c,o=this.d;return this.a=t.a*e+t.b*n,this.b=t.a*i+t.b*o,this.c=t.c*e+t.d*n,this.d=t.c*i+t.d*o,this.tx=t.tx*e+t.ty*n+this.tx,this.ty=t.tx*i+t.ty*o+this.ty,this},a.prototype.setTransform=function(t,e,i,n,o,s,l,g,y){return this.a=Math.cos(l+y)*o,this.b=Math.sin(l+y)*o,this.c=-Math.sin(l-g)*s,this.d=Math.cos(l-g)*s,this.tx=t-(i*this.a+n*this.c),this.ty=e-(i*this.b+n*this.d),this},a.prototype.prepend=function(t){var e=this.tx;if(t.a!==1||t.b!==0||t.c!==0||t.d!==1){var i=this.a,n=this.c;this.a=i*t.a+this.b*t.c,this.b=i*t.b+this.b*t.d,this.c=n*t.a+this.d*t.c,this.d=n*t.b+this.d*t.d}return this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty,this},a.prototype.decompose=function(t){var e=this.a,i=this.b,n=this.c,o=this.d,s=t.pivot,l=-Math.atan2(-n,o),g=Math.atan2(i,e),y=Math.abs(l+g);return y<1e-5||Math.abs(On-y)<1e-5?(t.rotation=g,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=l,t.skew.y=g),t.scale.x=Math.sqrt(e*e+i*i),t.scale.y=Math.sqrt(n*n+o*o),t.position.x=this.tx+(s.x*e+s.y*n),t.position.y=this.ty+(s.x*i+s.y*o),t},a.prototype.invert=function(){var t=this.a,e=this.b,i=this.c,n=this.d,o=this.tx,s=t*n-e*i;return this.a=n/s,this.b=-e/s,this.c=-i/s,this.d=t/s,this.tx=(i*this.ty-n*o)/s,this.ty=-(t*this.ty-e*o)/s,this},a.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},a.prototype.clone=function(){var t=new a;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},a.prototype.copyTo=function(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},a.prototype.copyFrom=function(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this},a.prototype.toString=function(){return"[@pixi/math:Matrix a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+"]"},Object.defineProperty(a,"IDENTITY",{get:function(){return new a},enumerable:!1,configurable:!0}),Object.defineProperty(a,"TEMP_MATRIX",{get:function(){return new a},enumerable:!1,configurable:!0}),a}(),ja=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],Va=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],Ja=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],Ya=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],Ru=[],Hf=[],ro=Math.sign;function sy(){for(var a=0;a<16;a++){var t=[];Ru.push(t);for(var e=0;e<16;e++)for(var i=ro(ja[a]*ja[e]+Ja[a]*Va[e]),n=ro(Va[a]*ja[e]+Ya[a]*Va[e]),o=ro(ja[a]*Ja[e]+Ja[a]*Ya[e]),s=ro(Va[a]*Ja[e]+Ya[a]*Ya[e]),l=0;l<16;l++)if(ja[l]===i&&Va[l]===n&&Ja[l]===o&&Ya[l]===s){t.push(l);break}}for(var a=0;a<16;a++){var g=new be;g.set(ja[a],Va[a],Ja[a],Ya[a],0,0),Hf.push(g)}}sy();var ye={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:function(a){return ja[a]},uY:function(a){return Va[a]},vX:function(a){return Ja[a]},vY:function(a){return Ya[a]},inv:function(a){return a&8?a&15:-a&7},add:function(a,t){return Ru[a][t]},sub:function(a,t){return Ru[a][ye.inv(t)]},rotate180:function(a){return a^4},isVertical:function(a){return(a&3)===2},byDirection:function(a,t){return Math.abs(a)*2<=Math.abs(t)?t>=0?ye.S:ye.N:Math.abs(t)*2<=Math.abs(a)?a>0?ye.E:ye.W:t>0?a>0?ye.SE:ye.SW:a>0?ye.NE:ye.NW},matrixAppendRotationInv:function(a,t,e,i){e===void 0&&(e=0),i===void 0&&(i=0);var n=Hf[ye.inv(t)];n.tx=e,n.ty=i,a.append(n)}},Ko=function(){function a(){this.worldTransform=new be,this.localTransform=new be,this.position=new Ea(this.onChange,this,0,0),this.scale=new Ea(this.onChange,this,1,1),this.pivot=new Ea(this.onChange,this,0,0),this.skew=new Ea(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}return a.prototype.onChange=function(){this._localID++},a.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++},a.prototype.toString=function(){return"[@pixi/math:Transform "+("position=("+this.position.x+", "+this.position.y+") ")+("rotation="+this.rotation+" ")+("scale=("+this.scale.x+", "+this.scale.y+") ")+("skew=("+this.skew.x+", "+this.skew.y+") ")+"]"},a.prototype.updateLocalTransform=function(){var t=this.localTransform;this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1)},a.prototype.updateTransform=function(t){var e=this.localTransform;if(this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==t._worldID){var i=t.worldTransform,n=this.worldTransform;n.a=e.a*i.a+e.b*i.c,n.b=e.a*i.b+e.b*i.d,n.c=e.c*i.a+e.d*i.c,n.d=e.c*i.b+e.d*i.d,n.tx=e.tx*i.a+e.ty*i.c+i.tx,n.ty=e.tx*i.b+e.ty*i.d+i.ty,this._parentID=t._worldID,this._worldID++}},a.prototype.setFromMatrix=function(t){t.decompose(this),this._localID++},Object.defineProperty(a.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation!==t&&(this._rotation=t,this.updateSkew())},enumerable:!1,configurable:!0}),a.IDENTITY=new a,a}();/*! + * @pixi/extensions - v6.5.10 + * Compiled Thu, 06 Jul 2023 15:25:11 UTC + * + * @pixi/extensions is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + *//*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var yn=function(){return yn=Object.assign||function(a){for(var t=arguments,e,i=1,n=arguments.length;i8)throw new Error("max arguments reached");var y=this,A=y.name,x=y.items;this._aliasCount++;for(var E=0,O=x.length;E0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},a.prototype.add=function(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this},a.prototype.remove=function(t){var e=this.items.indexOf(t);return e!==-1&&(this.ensureNonAliasedItems(),this.items.splice(e,1)),this},a.prototype.contains=function(t){return this.items.indexOf(t)!==-1},a.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},a.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(a.prototype,"empty",{get:function(){return this.items.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),a}();Object.defineProperties(Ye.prototype,{dispatch:{value:Ye.prototype.emit},run:{value:Ye.prototype.emit}});/*! + * @pixi/ticker - v6.5.10 + * Compiled Thu, 06 Jul 2023 15:25:11 UTC + * + * @pixi/ticker is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */gt.TARGET_FPMS=.06;var ta;(function(a){a[a.INTERACTION=50]="INTERACTION",a[a.HIGH=25]="HIGH",a[a.NORMAL=0]="NORMAL",a[a.LOW=-25]="LOW",a[a.UTILITY=-50]="UTILITY"})(ta||(ta={}));var Ls=function(){function a(t,e,i,n){e===void 0&&(e=null),i===void 0&&(i=0),n===void 0&&(n=!1),this.next=null,this.previous=null,this._destroyed=!1,this.fn=t,this.context=e,this.priority=i,this.once=n}return a.prototype.match=function(t,e){return e===void 0&&(e=null),this.fn===t&&this.context===e},a.prototype.emit=function(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));var e=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),e},a.prototype.connect=function(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this},a.prototype.destroy=function(t){t===void 0&&(t=!1),this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var e=this.next;return this.next=t?null:e,this.previous=null,e},a}(),ze=function(){function a(){var t=this;this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new Ls(null,null,1/0),this.deltaMS=1/gt.TARGET_FPMS,this.elapsedMS=1/gt.TARGET_FPMS,this._tick=function(e){t._requestId=null,t.started&&(t.update(e),t.started&&t._requestId===null&&t._head.next&&(t._requestId=requestAnimationFrame(t._tick)))}}return a.prototype._requestIfNeeded=function(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},a.prototype._cancelIfNeeded=function(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)},a.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},a.prototype.add=function(t,e,i){return i===void 0&&(i=ta.NORMAL),this._addListener(new Ls(t,e,i))},a.prototype.addOnce=function(t,e,i){return i===void 0&&(i=ta.NORMAL),this._addListener(new Ls(t,e,i,!0))},a.prototype._addListener=function(t){var e=this._head.next,i=this._head;if(!e)t.connect(i);else{for(;e;){if(t.priority>e.priority){t.connect(i);break}i=e,e=e.next}t.previous||t.connect(i)}return this._startIfPossible(),this},a.prototype.remove=function(t,e){for(var i=this._head.next;i;)i.match(t,e)?i=i.destroy():i=i.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(a.prototype,"count",{get:function(){if(!this._head)return 0;for(var t=0,e=this._head;e=e.next;)t++;return t},enumerable:!1,configurable:!0}),a.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},a.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},a.prototype.destroy=function(){if(!this._protected){this.stop();for(var t=this._head.next;t;)t=t.destroy(!0);this._head.destroy(),this._head=null}},a.prototype.update=function(t){t===void 0&&(t=performance.now());var e;if(t>this.lastTime){if(e=this.elapsedMS=t-this.lastTime,e>this._maxElapsedMS&&(e=this._maxElapsedMS),e*=this.speed,this._minElapsedMS){var i=t-this._lastFrame|0;if(i=0;--n){var o=Rn[n];if(o.test&&o.test(a,e))return new o(a,t)}throw new Error("Unrecognized source type to auto-detect Resource")}/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var Cu=function(a,t){return Cu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},Cu(a,t)};function pe(a,t){Cu(a,t);function e(){this.constructor=a}a.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Lu=function(){return Lu=Object.assign||function(a){for(var t=arguments,e,i=1,n=arguments.length;i0&&A>0,n.textureCacheIds=[],n.destroyed=!1,n.resource=null,n._batchEnabled=0,n._batchLocation=0,n.parentTextureArray=null,n.setResource(e),n}return Object.defineProperty(t.prototype,"realWidth",{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"realHeight",{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mipmap",{get:function(){return this._mipmap},set:function(e){this._mipmap!==e&&(this._mipmap=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(e){this._scaleMode!==e&&(this._scaleMode=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapMode",{get:function(){return this._wrapMode},set:function(e){this._wrapMode!==e&&(this._wrapMode=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),t.prototype.setStyle=function(e,i){var n;return e!==void 0&&e!==this.scaleMode&&(this.scaleMode=e,n=!0),i!==void 0&&i!==this.mipmap&&(this.mipmap=i,n=!0),n&&this.dirtyStyleId++,this},t.prototype.setSize=function(e,i,n){return n=n||this.resolution,this.setRealSize(e*n,i*n,n)},t.prototype.setRealSize=function(e,i,n){return this.resolution=n||this.resolution,this.width=Math.round(e)/this.resolution,this.height=Math.round(i)/this.resolution,this._refreshPOT(),this.update(),this},t.prototype._refreshPOT=function(){this.isPowerOfTwo=Pu(this.realWidth)&&Pu(this.realHeight)},t.prototype.setResolution=function(e){var i=this.resolution;return i===e?this:(this.resolution=e,this.valid&&(this.width=Math.round(this.width*i)/e,this.height=Math.round(this.height*i)/e,this.emit("update",this)),this._refreshPOT(),this)},t.prototype.setResource=function(e){if(this.resource===e)return this;if(this.resource)throw new Error("Resource can be set only once");return e.bind(this),this.resource=e,this},t.prototype.update=function(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))},t.prototype.onError=function(e){this.emit("error",this,e)},t.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete vr[this.cacheId],delete cr[this.cacheId],this.cacheId=null),this.dispose(),t.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},t.prototype.dispose=function(){this.emit("dispose",this)},t.prototype.castToBaseTexture=function(){return this},t.from=function(e,i,n){n===void 0&&(n=gt.STRICT_TEXTURE_CACHE);var o=typeof e=="string",s=null;if(o)s=e;else{if(!e._pixiId){var l=i&&i.pixiIdPrefix||"pixiid";e._pixiId=l+"_"+Oa()}s=e._pixiId}var g=vr[s];if(o&&n&&!g)throw new Error('The cacheId "'+s+'" does not exist in BaseTextureCache.');return g||(g=new t(e,i),g.cacheId=s,t.addToCache(g,s)),g},t.fromBuffer=function(e,i,n,o){e=e||new Float32Array(i*n*4);var s=new si(e,{width:i,height:n}),l=e instanceof Float32Array?Et.FLOAT:Et.UNSIGNED_BYTE;return new t(s,Object.assign({},ly,o||{width:i,height:n,type:l}))},t.addToCache=function(e,i){i&&(e.textureCacheIds.indexOf(i)===-1&&e.textureCacheIds.push(i),vr[i]&&console.warn("BaseTexture added to the cache with an id ["+i+"] that already had an entry"),vr[i]=e)},t.removeFromCache=function(e){if(typeof e=="string"){var i=vr[e];if(i){var n=i.textureCacheIds.indexOf(e);return n>-1&&i.textureCacheIds.splice(n,1),delete vr[e],i}}else if(e&&e.textureCacheIds){for(var o=0;o0)if(e.resource)this.addResourceAt(e.resource,i);else throw new Error("CubeResource does not support copying of renderTexture.");else e.target=Pa.TEXTURE_CUBE_MAP_POSITIVE_X+i,e.parentTextureArray=this.baseTexture,this.items[i]=e;return e.valid&&!this.valid&&this.resize(e.realWidth,e.realHeight),this.items[i]=e,this},t.prototype.upload=function(e,i,n){for(var o=this.itemDirtyIds,s=0;s)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,t}(ea),Fl=function(a){pe(t,a);function t(e,i){var n=this;if(i=i||{},!(e instanceof HTMLVideoElement)){var o=document.createElement("video");o.setAttribute("preload","auto"),o.setAttribute("webkit-playsinline",""),o.setAttribute("playsinline",""),typeof e=="string"&&(e=[e]);var s=e[0].src||e[0];ea.crossOrigin(o,s,i.crossorigin);for(var l=0;l2},t.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(ze.shared.add(this.update,this),this._isConnectedToTicker=!0)},t.prototype._onPlayStop=function(){this._isConnectedToTicker&&(ze.shared.remove(this.update,this),this._isConnectedToTicker=!1)},t.prototype._onCanPlay=function(){var e=this.source;e.removeEventListener("canplay",this._onCanPlay),e.removeEventListener("canplaythrough",this._onCanPlay);var i=this.valid;this.resize(e.videoWidth,e.videoHeight),!i&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&e.play()},t.prototype.dispose=function(){this._isConnectedToTicker&&(ze.shared.remove(this.update,this),this._isConnectedToTicker=!1);var e=this.source;e&&(e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load()),a.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isConnectedToTicker?(ze.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(ze.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(e){e!==this._updateFPS&&(this._updateFPS=e)},enumerable:!1,configurable:!0}),t.test=function(e,i){return globalThis.HTMLVideoElement&&e instanceof HTMLVideoElement||t.TYPES.indexOf(i)>-1},t.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],t.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},t}(ea),Bl=function(a){pe(t,a);function t(e){return a.call(this,e)||this}return t.test=function(e){return!!globalThis.createImageBitmap&&typeof ImageBitmap<"u"&&e instanceof ImageBitmap},t}(ea);Rn.push(Zo,Bl,$l,Fl,Nl,si,Dl,Ll);var Uf={__proto__:null,Resource:oi,BaseImageResource:ea,INSTALLED:Rn,autoDetectResource:Qo,AbstractMultiResource:qo,ArrayResource:Ll,BufferResource:si,CanvasResource:$l,CubeResource:Dl,ImageResource:Zo,SVGResource:Nl,VideoResource:Fl,ImageBitmapResource:Bl},hy=function(a){pe(t,a);function t(){return a!==null&&a.apply(this,arguments)||this}return t.prototype.upload=function(e,i,n){var o=e.gl;o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i.alphaMode===Sr.UNPACK);var s=i.realWidth,l=i.realHeight;return n.width===s&&n.height===l?o.texSubImage2D(i.target,0,0,0,s,l,i.format,n.type,this.data):(n.width=s,n.height=l,o.texImage2D(i.target,0,n.internalFormat,s,l,0,i.format,n.type,this.data)),!0},t}(si),Fo=function(){function a(t,e){this.width=Math.round(t||100),this.height=Math.round(e||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new Ye("disposeFramebuffer"),this.multisample=_e.NONE}return Object.defineProperty(a.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),a.prototype.addColorTexture=function(t,e){return t===void 0&&(t=0),this.colorTextures[t]=e||new Kt(null,{scaleMode:Dr.NEAREST,resolution:1,mipmap:Ir.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},a.prototype.addDepthTexture=function(t){return this.depthTexture=t||new Kt(new hy(null,{width:this.width,height:this.height}),{scaleMode:Dr.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:Ir.OFF,format:st.DEPTH_COMPONENT,type:Et.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},a.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},a.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},a.prototype.resize=function(t,e){if(t=Math.round(t),e=Math.round(e),!(t===this.width&&e===this.height)){this.width=t,this.height=e,this.dirtyId++,this.dirtySize++;for(var i=0;i-1&&i.textureCacheIds.splice(n,1),delete cr[e],i}}else if(e&&e.textureCacheIds){for(var o=0;othis.baseTexture.width,g=n+s>this.baseTexture.height;if(l||g){var y=l&&g?"and":"or",A="X: "+i+" + "+o+" = "+(i+o)+" > "+this.baseTexture.width,x="Y: "+n+" + "+s+" = "+(n+s)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+(A+" "+y+" "+x))}this.valid=o&&s&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=e),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this._rotate},set:function(e){this._rotate=e,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),t.prototype.castToBaseTexture=function(){return this.baseTexture},Object.defineProperty(t,"EMPTY",{get:function(){return t._EMPTY||(t._EMPTY=new t(new Kt),ao(t._EMPTY),ao(t._EMPTY.baseTexture)),t._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(t,"WHITE",{get:function(){if(!t._WHITE){var e=gt.ADAPTER.createCanvas(16,16),i=e.getContext("2d");e.width=16,e.height=16,i.fillStyle="white",i.fillRect(0,0,16,16),t._WHITE=new t(Kt.from(e)),ao(t._WHITE),ao(t._WHITE.baseTexture)}return t._WHITE},enumerable:!1,configurable:!0}),t}(ga),Ra=function(a){pe(t,a);function t(e,i){var n=a.call(this,e,i)||this;return n.valid=!0,n.filterFrame=null,n.filterPoolKey=null,n.updateUvs(),n}return Object.defineProperty(t.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(e){this.framebuffer.multisample=e},enumerable:!1,configurable:!0}),t.prototype.resize=function(e,i,n){n===void 0&&(n=!0);var o=this.baseTexture.resolution,s=Math.round(e*o)/o,l=Math.round(i*o)/o;this.valid=s>0&&l>0,this._frame.width=this.orig.width=s,this._frame.height=this.orig.height=l,n&&this.baseTexture.resize(s,l),this.updateUvs()},t.prototype.setResolution=function(e){var i=this.baseTexture;i.resolution!==e&&(i.setResolution(e),this.resize(i.width,i.height,!1))},t.create=function(e){for(var i=arguments,n=[],o=1;o>>0,n>1&&(o+=n*4294967296)):o=n>1?-n:-1,this.texturePool[o]||(this.texturePool[o]=[]);var s=this.texturePool[o].pop();return s||(s=this.createTexture(t,e,n)),s.filterPoolKey=o,s.setResolution(i),s},a.prototype.getFilterTexture=function(t,e,i){var n=this.getOptimalTexture(t.width,t.height,e||t.resolution,i||_e.NONE);return n.filterFrame=t.filterFrame,n},a.prototype.returnTexture=function(t){var e=t.filterPoolKey;t.filterFrame=null,this.texturePool[e].push(t)},a.prototype.returnFilterTexture=function(t){this.returnTexture(t)},a.prototype.clear=function(t){if(t=t!==!1,t)for(var e in this.texturePool){var i=this.texturePool[e];if(i)for(var n=0;n0&&t.height>0;for(var e in this.texturePool)if(Number(e)<0){var i=this.texturePool[e];if(i)for(var n=0;n1){for(var A=0;A1&&(x=this.getOptimalFilterTexture(A.width,A.height,e.resolution),x.filterFrame=A.filterFrame),i[E].apply(this,A,x,yr.CLEAR,e);var O=A;A=x,x=O}i[E].apply(this,A,y.renderTexture,yr.BLEND,e),E>1&&e.multisample>1&&this.returnFilterTexture(e.renderTexture),this.returnFilterTexture(A),this.returnFilterTexture(x)}e.clear(),this.statePool.push(e)},a.prototype.bindAndClear=function(t,e){e===void 0&&(e=yr.CLEAR);var i=this.renderer,n=i.renderTexture,o=i.state;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t&&t.filterFrame){var s=this.tempRect;s.x=0,s.y=0,s.width=t.filterFrame.width,s.height=t.filterFrame.height,n.bind(t,t.filterFrame,s)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?n.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var l=o.stateId&1||this.forceClear;(e===yr.CLEAR||e===yr.BLIT&&l)&&this.renderer.framebuffer.clear(0,0,0,0)},a.prototype.applyFilter=function(t,e,i,n){var o=this.renderer;o.state.set(t.state),this.bindAndClear(i,n),t.uniforms.uSampler=e,t.uniforms.filterGlobals=this.globalUniforms,o.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(e._frame,e.filterFrame),o.geometry.bind(this.quadUv),o.geometry.draw(xr.TRIANGLES)):(o.geometry.bind(this.quad),o.geometry.draw(xr.TRIANGLE_STRIP))},a.prototype.calculateSpriteMatrix=function(t,e){var i=this.activeState,n=i.sourceFrame,o=i.destinationFrame,s=e._texture.orig,l=t.set(o.width,0,0,o.height,n.x,n.y),g=e.worldTransform.copyTo(be.TEMP_MATRIX);return g.invert(),l.prepend(g),l.scale(1/s.width,1/s.height),l.translate(e.anchor.x,e.anchor.y),l},a.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},a.prototype.getOptimalFilterTexture=function(t,e,i,n){return i===void 0&&(i=1),n===void 0&&(n=_e.NONE),this.texturePool.getOptimalTexture(t,e,i,n)},a.prototype.getFilterTexture=function(t,e,i){if(typeof t=="number"){var n=t;t=e,e=n}t=t||this.activeState.renderTexture;var o=this.texturePool.getOptimalTexture(t.width,t.height,e||t.resolution,i||_e.NONE);return o.filterFrame=t.filterFrame,o},a.prototype.returnFilterTexture=function(t){this.texturePool.returnTexture(t)},a.prototype.emptyPool=function(){this.texturePool.clear(!0)},a.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},a.prototype.transformAABB=function(t,e){var i=io[0],n=io[1],o=io[2],s=io[3];i.set(e.left,e.top),n.set(e.left,e.bottom),o.set(e.right,e.top),s.set(e.right,e.bottom),t.apply(i,i),t.apply(n,n),t.apply(o,o),t.apply(s,s);var l=Math.min(i.x,n.x,o.x,s.x),g=Math.min(i.y,n.y,o.y,s.y),y=Math.max(i.x,n.x,o.x,s.x),A=Math.max(i.y,n.y,o.y,s.y);e.x=l,e.y=g,e.width=y-l,e.height=A-g},a.prototype.roundFrame=function(t,e,i,n,o){if(!(t.width<=0||t.height<=0||i.width<=0||i.height<=0)){if(o){var s=o.a,l=o.b,g=o.c,y=o.d;if((Math.abs(l)>1e-4||Math.abs(g)>1e-4)&&(Math.abs(s)>1e-4||Math.abs(y)>1e-4))return}o=o?$s.copyFrom(o):$s.identity(),o.translate(-i.x,-i.y).scale(n.width/i.width,n.height/i.height).translate(n.x,n.y),this.transformAABB(o,t),t.ceil(e),this.transformAABB(o.invert(),t)}},a}(),Gn=function(){function a(t){this.renderer=t}return a.prototype.flush=function(){},a.prototype.destroy=function(){this.renderer=null},a.prototype.start=function(){},a.prototype.stop=function(){this.flush()},a.prototype.render=function(t){},a}(),Xl=function(){function a(t){this.renderer=t,this.emptyRenderer=new Gn(t),this.currentRenderer=this.emptyRenderer}return a.prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},a.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},a.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},a.prototype.copyBoundTextures=function(t,e){for(var i=this.renderer.texture.boundTextures,n=e-1;n>=0;--n)t[n]=i[n]||null,t[n]&&(t[n]._batchLocation=n)},a.prototype.boundArray=function(t,e,i,n){for(var o=t.elements,s=t.ids,l=t.count,g=0,y=0;y=0&&x=Zr.WEBGL2&&(i=t.getContext("webgl2",e)),i)this.webGLVersion=2;else if(this.webGLVersion=1,i=t.getContext("webgl",e)||t.getContext("experimental-webgl",e),!i)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=i,this.getExtensions(),this.gl},a.prototype.getExtensions=function(){var t=this.gl,e={loseContext:t.getExtension("WEBGL_lose_context"),anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,e,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,e,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})},a.prototype.handleContextLost=function(t){var e=this;t.preventDefault(),setTimeout(function(){e.gl.isContextLost()&&e.extensions.loseContext&&e.extensions.loseContext.restoreContext()},0)},a.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},a.prototype.destroy=function(){var t=this.renderer.view;this.renderer=null,t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},a.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},a.prototype.validateContext=function(t){var e=t.getContextAttributes(),i="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;i&&(this.webGLVersion=2),e&&!e.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var n=i||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=n,n||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},a}(),Vf=function(){function a(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=_e.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return a}(),gy=new Vt,Vl=function(){function a(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new Fo(10,10),this.msaaSamples=null}return a.prototype.contextChange=function(){this.disposeAll(!0);var t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new Vt,this.hasMRT=!0,this.writeDepthTexture=!0,this.renderer.context.webGLVersion===1){var e=this.renderer.context.extensions.drawBuffers,i=this.renderer.context.extensions.depthTexture;gt.PREFER_ENV===Zr.WEBGL_LEGACY&&(e=null,i=null),e?t.drawBuffers=function(n){return e.drawBuffersWEBGL(n)}:(this.hasMRT=!1,t.drawBuffers=function(){}),i||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)},a.prototype.bind=function(t,e,i){i===void 0&&(i=0);var n=this.gl;if(t){var o=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,n.bindFramebuffer(n.FRAMEBUFFER,o.framebuffer)),o.mipLevel!==i&&(t.dirtyId++,t.dirtyFormat++,o.mipLevel=i),o.dirtyId!==t.dirtyId&&(o.dirtyId=t.dirtyId,o.dirtyFormat!==t.dirtyFormat?(o.dirtyFormat=t.dirtyFormat,o.dirtySize=t.dirtySize,this.updateFramebuffer(t,i)):o.dirtySize!==t.dirtySize&&(o.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var s=0;s>i,y=e.height>>i,A=g/e.width;this.setViewport(e.x*A,e.y*A,g,y)}else{var g=t.width>>i,y=t.height>>i;this.setViewport(0,0,g,y)}}else this.current&&(this.current=null,n.bindFramebuffer(n.FRAMEBUFFER,null)),e?this.setViewport(e.x,e.y,e.width,e.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},a.prototype.setViewport=function(t,e,i,n){var o=this.viewport;t=Math.round(t),e=Math.round(e),i=Math.round(i),n=Math.round(n),(o.width!==i||o.height!==n||o.x!==t||o.y!==e)&&(o.x=t,o.y=e,o.width=i,o.height=n,this.gl.viewport(t,e,i,n))},Object.defineProperty(a.prototype,"size",{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),a.prototype.clear=function(t,e,i,n,o){o===void 0&&(o=Tn.COLOR|Tn.DEPTH);var s=this.gl;s.clearColor(t,e,i,n),s.clear(o)},a.prototype.initFramebuffer=function(t){var e=this.gl,i=new Vf(e.createFramebuffer());return i.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=i,this.managedFramebuffers.push(t),t.disposeRunner.add(this),i},a.prototype.resizeFramebuffer=function(t){var e=this.gl,i=t.glFramebuffers[this.CONTEXT_UID];i.msaaBuffer&&(e.bindRenderbuffer(e.RENDERBUFFER,i.msaaBuffer),e.renderbufferStorageMultisample(e.RENDERBUFFER,i.multisample,e.RGBA8,t.width,t.height)),i.stencil&&(e.bindRenderbuffer(e.RENDERBUFFER,i.stencil),i.msaaBuffer?e.renderbufferStorageMultisample(e.RENDERBUFFER,i.multisample,e.DEPTH24_STENCIL8,t.width,t.height):e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,t.width,t.height));var n=t.colorTextures,o=n.length;e.drawBuffers||(o=Math.min(o,1));for(var s=0;s1&&this.canMultisampleFramebuffer(t)?(n.msaaBuffer=n.msaaBuffer||i.createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,n.msaaBuffer),i.renderbufferStorageMultisample(i.RENDERBUFFER,n.multisample,i.RGBA8,t.width,t.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.RENDERBUFFER,n.msaaBuffer)):n.msaaBuffer&&(i.deleteRenderbuffer(n.msaaBuffer),n.msaaBuffer=null,n.blitFramebuffer&&(n.blitFramebuffer.dispose(),n.blitFramebuffer=null));for(var l=[],g=0;g1&&i.drawBuffers(l),t.depthTexture){var x=this.writeDepthTexture;if(x){var E=t.depthTexture;this.renderer.texture.bind(E,0),i.framebufferTexture2D(i.FRAMEBUFFER,i.DEPTH_ATTACHMENT,i.TEXTURE_2D,E._glTextures[this.CONTEXT_UID].texture,e)}}(t.stencil||t.depth)&&!(t.depthTexture&&this.writeDepthTexture)?(n.stencil=n.stencil||i.createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,n.stencil),n.msaaBuffer?i.renderbufferStorageMultisample(i.RENDERBUFFER,n.multisample,i.DEPTH24_STENCIL8,t.width,t.height):i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_STENCIL,t.width,t.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.DEPTH_STENCIL_ATTACHMENT,i.RENDERBUFFER,n.stencil)):n.stencil&&(i.deleteRenderbuffer(n.stencil),n.stencil=null)},a.prototype.canMultisampleFramebuffer=function(t){return this.renderer.context.webGLVersion!==1&&t.colorTextures.length<=1&&!t.depthTexture},a.prototype.detectSamples=function(t){var e=this.msaaSamples,i=_e.NONE;if(t<=1||e===null)return i;for(var n=0;n=0&&this.managedFramebuffers.splice(o,1),t.disposeRunner.remove(this),e||(n.deleteFramebuffer(i.framebuffer),i.msaaBuffer&&n.deleteRenderbuffer(i.msaaBuffer),i.stencil&&n.deleteRenderbuffer(i.stencil)),i.blitFramebuffer&&i.blitFramebuffer.dispose()}},a.prototype.disposeAll=function(t){var e=this.managedFramebuffers;this.managedFramebuffers=[];for(var i=0;i=Zr.WEBGL2&&(t=a.getContext("webgl2",{})),t||(t=a.getContext("webgl",{})||a.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),Qi=t}return Qi}var no;function yy(){if(!no){no=fr.MEDIUM;var a=Wf();if(a&&a.getShaderPrecisionFormat){var t=a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.HIGH_FLOAT);no=t.precision?fr.HIGH:fr.MEDIUM}}return no}function nc(a,t,e){if(a.substring(0,9)!=="precision"){var i=t;return t===fr.HIGH&&e!==fr.HIGH&&(i=fr.MEDIUM),"precision "+i+` float; +`+a}else if(e!==fr.HIGH&&a.substring(0,15)==="precision highp")return a.replace("precision highp","precision mediump");return a}var by={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 Kf(a){return by[a]}var oo=null,oc={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 Qf(a,t){if(!oo){var e=Object.keys(oc);oo={};for(var i=0;i0&&(t+=` +else `),e"u"?.5:e,this.isSimple=!1}return Object.defineProperty(a.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture=t,this._textureID=-1},enumerable:!1,configurable:!0}),a.prototype.multiplyUvs=function(t,e){e===void 0&&(e=t);for(var i=this.mapCoord,n=0;n0?this.maskStack[this.maskStack.length-1]._colorMask:15;i!==e&&this.renderer.gl.colorMask((i&1)!==0,(i&2)!==0,(i&4)!==0,(i&8)!==0)},a.prototype.destroy=function(){this.renderer=null},a}(),t2=function(){function a(t){this.renderer=t,this.maskStack=[],this.glConst=0}return a.prototype.getStackLength=function(){return this.maskStack.length},a.prototype.setMaskStack=function(t){var e=this.renderer.gl,i=this.getStackLength();this.maskStack=t;var n=this.getStackLength();n!==i&&(n===0?e.disable(this.glConst):(e.enable(this.glConst),this._useCurrent()))},a.prototype._useCurrent=function(){},a.prototype.destroy=function(){this.renderer=null,this.maskStack=null},a}(),uc=new be,lc=[],zl=function(a){pe(t,a);function t(e){var i=a.call(this,e)||this;return i.glConst=gt.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST,i}return t.prototype.getStackLength=function(){var e=this.maskStack[this.maskStack.length-1];return e?e._scissorCounter:0},t.prototype.calcScissorRect=function(e){var i;if(!e._scissorRectLocal){var n=e._scissorRect,o=e.maskObject,s=this.renderer,l=s.renderTexture,g=o.getBounds(!0,(i=lc.pop())!==null&&i!==void 0?i:new Vt);this.roundFrameToPixels(g,l.current?l.current.resolution:s.resolution,l.sourceFrame,l.destinationFrame,s.projection.transform),n&&g.fit(n),e._scissorRectLocal=g}},t.isMatrixRotated=function(e){if(!e)return!1;var i=e.a,n=e.b,o=e.c,s=e.d;return(Math.abs(n)>1e-4||Math.abs(o)>1e-4)&&(Math.abs(i)>1e-4||Math.abs(s)>1e-4)},t.prototype.testScissor=function(e){var i=e.maskObject;if(!i.isFastRect||!i.isFastRect()||t.isMatrixRotated(i.worldTransform)||t.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(e);var n=e._scissorRectLocal;return n.width>0&&n.height>0},t.prototype.roundFrameToPixels=function(e,i,n,o,s){t.isMatrixRotated(s)||(s=s?uc.copyFrom(s):uc.identity(),s.translate(-n.x,-n.y).scale(o.width/n.width,o.height/n.height).translate(o.x,o.y),this.renderer.filter.transformAABB(s,e),e.fit(o),e.x=Math.round(e.x*i),e.y=Math.round(e.y*i),e.width=Math.round(e.width*i),e.height=Math.round(e.height*i))},t.prototype.push=function(e){e._scissorRectLocal||this.calcScissorRect(e);var i=this.renderer.gl;e._scissorRect||i.enable(i.SCISSOR_TEST),e._scissorCounter++,e._scissorRect=e._scissorRectLocal,this._useCurrent()},t.prototype.pop=function(e){var i=this.renderer.gl;e&&lc.push(e._scissorRectLocal),this.getStackLength()>0?this._useCurrent():i.disable(i.SCISSOR_TEST)},t.prototype._useCurrent=function(){var e=this.maskStack[this.maskStack.length-1]._scissorRect,i;this.renderer.renderTexture.current?i=e.y:i=this.renderer.height-e.height-e.y,this.renderer.gl.scissor(e.x,i,e.width,e.height)},t}(t2),Wl=function(a){pe(t,a);function t(e){var i=a.call(this,e)||this;return i.glConst=gt.ADAPTER.getWebGLRenderingContext().STENCIL_TEST,i}return t.prototype.getStackLength=function(){var e=this.maskStack[this.maskStack.length-1];return e?e._stencilCounter:0},t.prototype.push=function(e){var i=e.maskObject,n=this.renderer.gl,o=e._stencilCounter;o===0&&(this.renderer.framebuffer.forceStencil(),n.clearStencil(0),n.clear(n.STENCIL_BUFFER_BIT),n.enable(n.STENCIL_TEST)),e._stencilCounter++;var s=e._colorMask;s!==0&&(e._colorMask=0,n.colorMask(!1,!1,!1,!1)),n.stencilFunc(n.EQUAL,o,4294967295),n.stencilOp(n.KEEP,n.KEEP,n.INCR),i.renderable=!0,i.render(this.renderer),this.renderer.batch.flush(),i.renderable=!1,s!==0&&(e._colorMask=s,n.colorMask((s&1)!==0,(s&2)!==0,(s&4)!==0,(s&8)!==0)),this._useCurrent()},t.prototype.pop=function(e){var i=this.renderer.gl;if(this.getStackLength()===0)i.disable(i.STENCIL_TEST);else{var n=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null,o=n?n._colorMask:15;o!==0&&(n._colorMask=0,i.colorMask(!1,!1,!1,!1)),i.stencilOp(i.KEEP,i.KEEP,i.DECR),e.renderable=!0,e.render(this.renderer),this.renderer.batch.flush(),e.renderable=!1,o!==0&&(n._colorMask=o,i.colorMask((o&1)!==0,(o&2)!==0,(o&4)!==0,(o&8)!==0)),this._useCurrent()}},t.prototype._useCurrent=function(){var e=this.renderer.gl;e.stencilFunc(e.EQUAL,this.getStackLength(),4294967295),e.stencilOp(e.KEEP,e.KEEP,e.KEEP)},t}(t2),Kl=function(){function a(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new be,this.transform=null}return a.prototype.update=function(t,e,i,n){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=e||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,i,n),this.transform&&this.projectionMatrix.append(this.transform);var o=this.renderer;o.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,o.globalUniforms.update(),o.shader.shader&&o.shader.syncUniformGroup(o.shader.shader.uniforms.globals)},a.prototype.calculateProjection=function(t,e,i,n){var o=this.projectionMatrix,s=n?-1:1;o.identity(),o.a=1/e.width*2,o.d=s*(1/e.height*2),o.tx=-1-e.x*o.a,o.ty=-s-e.y*o.d},a.prototype.setTransform=function(t){},a.prototype.destroy=function(){this.renderer=null},a}(),Ba=new Vt,Zi=new Vt,Ql=function(){function a(t){this.renderer=t,this.clearColor=t._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new Vt,this.destinationFrame=new Vt,this.viewportFrame=new Vt}return a.prototype.bind=function(t,e,i){t===void 0&&(t=null);var n=this.renderer;this.current=t;var o,s,l;t?(o=t.baseTexture,l=o.resolution,e||(Ba.width=t.frame.width,Ba.height=t.frame.height,e=Ba),i||(Zi.x=t.frame.x,Zi.y=t.frame.y,Zi.width=e.width,Zi.height=e.height,i=Zi),s=o.framebuffer):(l=n.resolution,e||(Ba.width=n.screen.width,Ba.height=n.screen.height,e=Ba),i||(i=Ba,i.width=e.width,i.height=e.height));var g=this.viewportFrame;g.x=i.x*l,g.y=i.y*l,g.width=i.width*l,g.height=i.height*l,t||(g.y=n.view.height-(g.y+g.height)),g.ceil(),this.renderer.framebuffer.bind(s,g),this.renderer.projection.update(i,e,l,!s),t?this.renderer.mask.setMaskStack(o.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(e),this.destinationFrame.copyFrom(i)},a.prototype.clear=function(t,e){this.current?t=t||this.current.baseTexture.clearColor:t=t||this.clearColor;var i=this.destinationFrame,n=this.current?this.current.baseTexture:this.renderer.screen,o=i.width!==n.width||i.height!==n.height;if(o){var s=this.viewportFrame,l=s.x,g=s.y,y=s.width,A=s.height;l=Math.round(l),g=Math.round(g),y=Math.round(y),A=Math.round(A),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(l,g,y,A)}this.renderer.framebuffer.clear(t[0],t[1],t[2],t[3],e),o&&this.renderer.scissor.pop()},a.prototype.resize=function(){this.bind(null)},a.prototype.reset=function(){this.bind(null)},a.prototype.destroy=function(){this.renderer=null},a}();function $y(a,t,e,i,n){e.buffer.update(n)}var Dy={float:` + data[offset] = v; + `,vec2:` + data[offset] = v[0]; + data[offset+1] = v[1]; + `,vec3:` + data[offset] = v[0]; + data[offset+1] = v[1]; + data[offset+2] = v[2]; + + `,vec4:` + data[offset] = v[0]; + data[offset+1] = v[1]; + data[offset+2] = v[2]; + data[offset+3] = v[3]; + `,mat2:` + data[offset] = v[0]; + data[offset+1] = v[1]; + + data[offset+4] = v[2]; + data[offset+5] = v[3]; + `,mat3:` + data[offset] = v[0]; + data[offset+1] = v[1]; + data[offset+2] = v[2]; + + data[offset + 4] = v[3]; + data[offset + 5] = v[4]; + data[offset + 6] = v[5]; + + data[offset + 8] = v[6]; + data[offset + 9] = v[7]; + data[offset + 10] = v[8]; + `,mat4:` + for(var i = 0; i < 16; i++) + { + data[offset + i] = v[i]; + } + `},e2={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:16*2,mat3:16*3,mat4:16*4};function r2(a){for(var t=a.map(function(g){return{data:g,offset:0,dataLen:0,dirty:0}}),e=0,i=0,n=0,o=0;o1&&(e=Math.max(e,16)*s.data.size),s.dataLen=e,i%e!==0&&i<16){var l=i%e%16;i+=l,n+=l}i+e>16?(n=Math.ceil(n/16)*16,s.offset=n,n+=e,i=e):(s.offset=n,i+=e,n+=e)}return n=Math.ceil(n/16)*16,{uboElements:t,size:n}}function a2(a,t){var e=[];for(var i in a)t[i]&&e.push(t[i]);return e.sort(function(n,o){return n.index-o.index}),e}function i2(a,t){if(!a.autoManage)return{size:0,syncFunc:$y};for(var e=a2(a.uniforms,t),i=r2(e),n=i.uboElements,o=i.size,s=[` + var v = null; + var v2 = null; + var cv = null; + var t = 0; + var gl = renderer.gl + var index = 0; + var data = buffer.data; + `],l=0;l1){var R=Kf(g.data.type),L=Math.max(e2[g.data.type]/16,1),N=R/L,B=(4-N%4)%4;s.push(` + cv = ud.`+A+`.value; + v = uv.`+A+`; + offset = `+g.offset/4+`; + + t = 0; + + for(var i=0; i < `+g.data.size*L+`; i++) + { + for(var j = 0; j < `+N+`; j++) + { + data[offset++] = v[t++]; + } + offset += `+B+`; + } + + `)}else{var k=Dy[g.data.type];s.push(` + cv = ud.`+A+`.value; + v = uv.`+A+`; + offset = `+g.offset/4+`; + `+k+`; + `)}}return s.push(` + renderer.buffer.update(buffer); + `),{size:o,syncFunc:new Function("ud","uv","renderer","syncData","buffer",s.join(` +`))}}var Ny=function(){function a(){}return a}(),n2=function(){function a(t,e){this.program=t,this.uniformData=e,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return a.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},a}();function Fy(a,t){for(var e={},i=t.getProgramParameter(a,t.ACTIVE_ATTRIBUTES),n=0;nx?1:-1});for(var s=0;s>1,i++;this.stateId=t.data}for(var i=0;ithis.checkCountMax&&(this.checkCount=0,this.run())))},a.prototype.run=function(){for(var t=this.renderer.texture,e=t.managedTextures,i=!1,n=0;nthis.maxIdle&&(t.destroyTexture(o,!0),e[n]=null,i=!0)}if(i){for(var s=0,n=0;n=0;n--)this.unload(t.children[n])},a.prototype.destroy=function(){this.renderer=null},a}();function Yy(a){var t,e,i,n,o,s,l,g,y,A,x,E,O,R,L,N,B,k,X,J,j,z,Q;return"WebGL2RenderingContext"in globalThis&&a instanceof globalThis.WebGL2RenderingContext?Q=(t={},t[Et.UNSIGNED_BYTE]=(e={},e[st.RGBA]=a.RGBA8,e[st.RGB]=a.RGB8,e[st.RG]=a.RG8,e[st.RED]=a.R8,e[st.RGBA_INTEGER]=a.RGBA8UI,e[st.RGB_INTEGER]=a.RGB8UI,e[st.RG_INTEGER]=a.RG8UI,e[st.RED_INTEGER]=a.R8UI,e[st.ALPHA]=a.ALPHA,e[st.LUMINANCE]=a.LUMINANCE,e[st.LUMINANCE_ALPHA]=a.LUMINANCE_ALPHA,e),t[Et.BYTE]=(i={},i[st.RGBA]=a.RGBA8_SNORM,i[st.RGB]=a.RGB8_SNORM,i[st.RG]=a.RG8_SNORM,i[st.RED]=a.R8_SNORM,i[st.RGBA_INTEGER]=a.RGBA8I,i[st.RGB_INTEGER]=a.RGB8I,i[st.RG_INTEGER]=a.RG8I,i[st.RED_INTEGER]=a.R8I,i),t[Et.UNSIGNED_SHORT]=(n={},n[st.RGBA_INTEGER]=a.RGBA16UI,n[st.RGB_INTEGER]=a.RGB16UI,n[st.RG_INTEGER]=a.RG16UI,n[st.RED_INTEGER]=a.R16UI,n[st.DEPTH_COMPONENT]=a.DEPTH_COMPONENT16,n),t[Et.SHORT]=(o={},o[st.RGBA_INTEGER]=a.RGBA16I,o[st.RGB_INTEGER]=a.RGB16I,o[st.RG_INTEGER]=a.RG16I,o[st.RED_INTEGER]=a.R16I,o),t[Et.UNSIGNED_INT]=(s={},s[st.RGBA_INTEGER]=a.RGBA32UI,s[st.RGB_INTEGER]=a.RGB32UI,s[st.RG_INTEGER]=a.RG32UI,s[st.RED_INTEGER]=a.R32UI,s[st.DEPTH_COMPONENT]=a.DEPTH_COMPONENT24,s),t[Et.INT]=(l={},l[st.RGBA_INTEGER]=a.RGBA32I,l[st.RGB_INTEGER]=a.RGB32I,l[st.RG_INTEGER]=a.RG32I,l[st.RED_INTEGER]=a.R32I,l),t[Et.FLOAT]=(g={},g[st.RGBA]=a.RGBA32F,g[st.RGB]=a.RGB32F,g[st.RG]=a.RG32F,g[st.RED]=a.R32F,g[st.DEPTH_COMPONENT]=a.DEPTH_COMPONENT32F,g),t[Et.HALF_FLOAT]=(y={},y[st.RGBA]=a.RGBA16F,y[st.RGB]=a.RGB16F,y[st.RG]=a.RG16F,y[st.RED]=a.R16F,y),t[Et.UNSIGNED_SHORT_5_6_5]=(A={},A[st.RGB]=a.RGB565,A),t[Et.UNSIGNED_SHORT_4_4_4_4]=(x={},x[st.RGBA]=a.RGBA4,x),t[Et.UNSIGNED_SHORT_5_5_5_1]=(E={},E[st.RGBA]=a.RGB5_A1,E),t[Et.UNSIGNED_INT_2_10_10_10_REV]=(O={},O[st.RGBA]=a.RGB10_A2,O[st.RGBA_INTEGER]=a.RGB10_A2UI,O),t[Et.UNSIGNED_INT_10F_11F_11F_REV]=(R={},R[st.RGB]=a.R11F_G11F_B10F,R),t[Et.UNSIGNED_INT_5_9_9_9_REV]=(L={},L[st.RGB]=a.RGB9_E5,L),t[Et.UNSIGNED_INT_24_8]=(N={},N[st.DEPTH_STENCIL]=a.DEPTH24_STENCIL8,N),t[Et.FLOAT_32_UNSIGNED_INT_24_8_REV]=(B={},B[st.DEPTH_STENCIL]=a.DEPTH32F_STENCIL8,B),t):Q=(k={},k[Et.UNSIGNED_BYTE]=(X={},X[st.RGBA]=a.RGBA,X[st.RGB]=a.RGB,X[st.ALPHA]=a.ALPHA,X[st.LUMINANCE]=a.LUMINANCE,X[st.LUMINANCE_ALPHA]=a.LUMINANCE_ALPHA,X),k[Et.UNSIGNED_SHORT_5_6_5]=(J={},J[st.RGB]=a.RGB,J),k[Et.UNSIGNED_SHORT_4_4_4_4]=(j={},j[st.RGBA]=a.RGBA,j),k[Et.UNSIGNED_SHORT_5_5_5_1]=(z={},z[st.RGBA]=a.RGBA,z),k),Q}var Eo=function(){function a(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=Et.UNSIGNED_BYTE,this.internalFormat=st.RGBA,this.samplerType=0}return a}(),eh=function(){function a(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new Kt,this.hasIntegerTextures=!1}return a.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=Yy(t);var e=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=e;for(var i=0;i=0;--s){var l=i[s];if(l){var g=l._glTextures[o];g.samplerType!==An.FLOAT&&this.renderer.texture.unbind(l)}}},a.prototype.initTexture=function(t){var e=new Eo(this.gl.createTexture());return e.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=e,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),e},a.prototype.initTextureType=function(t,e){var i,n;e.internalFormat=(n=(i=this.internalFormats[t.type])===null||i===void 0?void 0:i[t.format])!==null&&n!==void 0?n:t.format,this.webGLVersion===2&&t.type===Et.HALF_FLOAT?e.type=this.gl.HALF_FLOAT:e.type=t.type},a.prototype.updateTexture=function(t){var e=t._glTextures[this.CONTEXT_UID];if(e){var i=this.renderer;if(this.initTextureType(t,e),t.resource&&t.resource.upload(i,t,e))e.samplerType!==An.FLOAT&&(this.hasIntegerTextures=!0);else{var n=t.realWidth,o=t.realHeight,s=i.gl;(e.width!==n||e.height!==o||e.dirtyId<0)&&(e.width=n,e.height=o,s.texImage2D(t.target,0,e.internalFormat,n,o,0,t.format,e.type,null))}t.dirtyStyleId!==e.dirtyStyleId&&this.updateTextureStyle(t),e.dirtyId=t.dirtyId}},a.prototype.destroyTexture=function(t,e){var i=this.gl;if(t=t.castToBaseTexture(),t._glTextures[this.CONTEXT_UID]&&(this.unbind(t),i.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!e)){var n=this.managedTextures.indexOf(t);n!==-1&&ei(this.managedTextures,n,1)}},a.prototype.updateTextureStyle=function(t){var e=t._glTextures[this.CONTEXT_UID];e&&((t.mipmap===Ir.POW2||this.webGLVersion!==2)&&!t.isPowerOfTwo?e.mipmap=!1:e.mipmap=t.mipmap>=1,this.webGLVersion!==2&&!t.isPowerOfTwo?e.wrapMode=Nr.CLAMP:e.wrapMode=t.wrapMode,t.resource&&t.resource.style(this.renderer,t,e)||this.setStyle(t,e),e.dirtyStyleId=t.dirtyStyleId)},a.prototype.setStyle=function(t,e){var i=this.gl;if(e.mipmap&&t.mipmap!==Ir.ON_MANUAL&&i.generateMipmap(t.target),i.texParameteri(t.target,i.TEXTURE_WRAP_S,e.wrapMode),i.texParameteri(t.target,i.TEXTURE_WRAP_T,e.wrapMode),e.mipmap){i.texParameteri(t.target,i.TEXTURE_MIN_FILTER,t.scaleMode===Dr.LINEAR?i.LINEAR_MIPMAP_LINEAR:i.NEAREST_MIPMAP_NEAREST);var n=this.renderer.context.extensions.anisotropicFiltering;if(n&&t.anisotropicLevel>0&&t.scaleMode===Dr.LINEAR){var o=Math.min(t.anisotropicLevel,i.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT));i.texParameterf(t.target,n.TEXTURE_MAX_ANISOTROPY_EXT,o)}}else i.texParameteri(t.target,i.TEXTURE_MIN_FILTER,t.scaleMode===Dr.LINEAR?i.LINEAR:i.NEAREST);i.texParameteri(t.target,i.TEXTURE_MAG_FILTER,t.scaleMode===Dr.LINEAR?i.LINEAR:i.NEAREST)},a.prototype.destroy=function(){this.renderer=null},a}(),s2={__proto__:null,FilterSystem:Gl,BatchSystem:Xl,ContextSystem:jl,FramebufferSystem:Vl,GeometrySystem:Jl,MaskSystem:Yl,ScissorSystem:zl,StencilSystem:Wl,ProjectionSystem:Kl,RenderTextureSystem:Ql,ShaderSystem:ql,StateSystem:Zl,TextureGCSystem:th,TextureSystem:eh},Xs=new be,u2=function(a){pe(t,a);function t(e,i){e===void 0&&(e=Oi.UNKNOWN);var n=a.call(this)||this;return i=Object.assign({},gt.RENDER_OPTIONS,i),n.options=i,n.type=e,n.screen=new Vt(0,0,i.width,i.height),n.view=i.view||gt.ADAPTER.createCanvas(),n.resolution=i.resolution||gt.RESOLUTION,n.useContextAlpha=i.useContextAlpha,n.autoDensity=!!i.autoDensity,n.preserveDrawingBuffer=i.preserveDrawingBuffer,n.clearBeforeRender=i.clearBeforeRender,n._backgroundColor=0,n._backgroundColorRgba=[0,0,0,1],n._backgroundColorString="#000000",n.backgroundColor=i.backgroundColor||n._backgroundColor,n.backgroundAlpha=i.backgroundAlpha,i.transparent!==void 0&&(nr("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),n.useContextAlpha=i.transparent,n.backgroundAlpha=i.transparent?0:1),n._lastObjectRendered=null,n.plugins={},n}return t.prototype.initPlugins=function(e){for(var i in e)this.plugins[i]=new e[i](this)},Object.defineProperty(t.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),t.prototype.resize=function(e,i){this.view.width=Math.round(e*this.resolution),this.view.height=Math.round(i*this.resolution);var n=this.view.width/this.resolution,o=this.view.height/this.resolution;this.screen.width=n,this.screen.height=o,this.autoDensity&&(this.view.style.width=n+"px",this.view.style.height=o+"px"),this.emit("resize",n,o)},t.prototype.generateTexture=function(e,i,n,o){i===void 0&&(i={}),typeof i=="number"&&(nr("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),i={scaleMode:i,resolution:n,region:o});var s=i.region,l=uy(i,["region"]);o=s||e.getLocalBounds(null,!0),o.width===0&&(o.width=1),o.height===0&&(o.height=1);var g=Ra.create(Lu({width:o.width,height:o.height},l));return Xs.tx=-o.x,Xs.ty=-o.y,this.render(e,{renderTexture:g,clear:!1,transform:Xs,skipUpdateTransform:!!e.parent}),g},t.prototype.destroy=function(e){for(var i in this.plugins)this.plugins[i].destroy(),this.plugins[i]=null;e&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);var n=this;n.plugins=null,n.type=Oi.UNKNOWN,n.view=null,n.screen=null,n._tempDisplayObjectParent=null,n.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(e){this._backgroundColor=e,this._backgroundColorString=Ml(e),ni(e,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(e){this._backgroundColorRgba[3]=e},enumerable:!1,configurable:!0}),t}(ga),zy=function(){function a(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return a}(),Wy=function(){function a(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}return a.prototype.destroy=function(){this.renderer=null},a.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},a.prototype.bind=function(t){var e=this,i=e.gl,n=e.CONTEXT_UID,o=t._glBuffers[n]||this.createGLBuffer(t);i.bindBuffer(t.type,o.buffer)},a.prototype.bindBufferBase=function(t,e){var i=this,n=i.gl,o=i.CONTEXT_UID;if(this.boundBufferBases[e]!==t){var s=t._glBuffers[o]||this.createGLBuffer(t);this.boundBufferBases[e]=t,n.bindBufferBase(n.UNIFORM_BUFFER,e,s.buffer)}},a.prototype.bindBufferRange=function(t,e,i){var n=this,o=n.gl,s=n.CONTEXT_UID;i=i||0;var l=t._glBuffers[s]||this.createGLBuffer(t);o.bindBufferRange(o.UNIFORM_BUFFER,e||0,l.buffer,i*256,256)},a.prototype.update=function(t){var e=this,i=e.gl,n=e.CONTEXT_UID,o=t._glBuffers[n];if(t._updateID!==o.updateID)if(o.updateID=t._updateID,i.bindBuffer(t.type,o.buffer),o.byteLength>=t.data.byteLength)i.bufferSubData(t.type,0,t.data);else{var s=t.static?i.STATIC_DRAW:i.DYNAMIC_DRAW;o.byteLength=t.data.byteLength,i.bufferData(t.type,t.data,s)}},a.prototype.dispose=function(t,e){if(this.managedBuffers[t.id]){delete this.managedBuffers[t.id];var i=t._glBuffers[this.CONTEXT_UID],n=this.gl;t.disposeRunner.remove(this),i&&(e||n.deleteBuffer(i.buffer),delete t._glBuffers[this.CONTEXT_UID])}},a.prototype.disposeAll=function(t){for(var e=Object.keys(this.managedBuffers),i=0;i=_e.HIGH?this.multisample=_e.HIGH:i>=_e.MEDIUM?this.multisample=_e.MEDIUM:i>=_e.LOW?this.multisample=_e.LOW:this.multisample=_e.NONE},t.prototype.addSystem=function(e,i){var n=new e(this);if(this[i])throw new Error('Whoops! The name "'+i+'" is already in use');this[i]=n;for(var o in this.runners)this.runners[o].add(n);return this},t.prototype.render=function(e,i){var n,o,s,l;if(i&&(i instanceof Ra?(nr("6.0.0","Renderer#render arguments changed, use options instead."),n=i,o=arguments[2],s=arguments[3],l=arguments[4]):(n=i.renderTexture,o=i.clear,s=i.transform,l=i.skipUpdateTransform)),this.renderingToScreen=!n,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=s,!this.context.isLost){if(n||(this._lastObjectRendered=e),!l){var g=e.enableTempParent();e.updateTransform(),e.disableTempParent(g)}this.renderTexture.bind(n),this.batch.currentRenderer.start(),(o!==void 0?o:this.clearBeforeRender)&&this.renderTexture.clear(),e.render(this),this.batch.currentRenderer.flush(),n&&n.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender")}},t.prototype.generateTexture=function(e,i,n,o){i===void 0&&(i={});var s=a.prototype.generateTexture.call(this,e,i,n,o);return this.framebuffer.blit(),s},t.prototype.resize=function(e,i){a.prototype.resize.call(this,e,i),this.runners.resize.emit(this.screen.height,this.screen.width)},t.prototype.reset=function(){return this.runners.reset.emit(),this},t.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},t.prototype.destroy=function(e){this.runners.destroy.emit();for(var i in this.runners)this.runners[i].destroy();a.prototype.destroy.call(this,e),this.gl=null},Object.defineProperty(t.prototype,"extract",{get:function(){return nr("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),t.registerPlugin=function(e,i){nr("6.5.0","Renderer.registerPlugin() has been deprecated, please use extensions.add() instead."),ra.add({name:e,type:oe.RendererPlugin,ref:i})},t.__plugins={},t}(u2);ra.handleByMap(oe.RendererPlugin,rh.__plugins);function l2(a){return rh.create(a)}var Ky=`attribute vec2 aVertexPosition; +attribute vec2 aTextureCoord; + +uniform mat3 projectionMatrix; + +varying vec2 vTextureCoord; + +void main(void) +{ + gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); + vTextureCoord = aTextureCoord; +}`,Qy=`attribute vec2 aVertexPosition; + +uniform mat3 projectionMatrix; + +varying vec2 vTextureCoord; + +uniform vec4 inputSize; +uniform vec4 outputFrame; + +vec4 filterVertexPosition( void ) +{ + vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy; + + return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0); +} + +vec2 filterTextureCoord( void ) +{ + return aVertexPosition * (outputFrame.zw * inputSize.zw); +} + +void main(void) +{ + gl_Position = filterVertexPosition(); + vTextureCoord = filterTextureCoord(); +} +`,h2=Ky,ah=Qy,qy=function(){function a(t){nr("6.1.0","System class is deprecated, implemement ISystem interface instead."),this.renderer=t}return a.prototype.destroy=function(){this.renderer=null},a}(),Bo=function(){function a(){this.texArray=null,this.blend=0,this.type=xr.TRIANGLES,this.start=0,this.size=0,this.data=null}return a}(),Ho=function(){function a(){this.elements=[],this.ids=[],this.count=0}return a.prototype.clear=function(){for(var t=0;tthis.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)},t.prototype.buildTexturesAndDrawCalls=function(){var e=this,i=e._bufferedTextures,n=e.MAX_TEXTURES,o=t._textureArrayPool,s=this.renderer.batch,l=this._tempBoundTextures,g=this.renderer.textureGC.count,y=++Kt._globalBatch,A=0,x=o[0],E=0;s.copyBoundTextures(l,n);for(var O=0;O=n&&(s.boundArray(x,l,y,n),this.buildDrawCalls(x,E,O),E=O,x=o[++A],++y),R._batchEnabled=y,R.touched=g,x.elements[x.count++]=R)}x.count>0&&(s.boundArray(x,l,y,n),this.buildDrawCalls(x,E,this._bufferSize),++A,++y);for(var O=0;O0&&(e+=` +else `),ithis.maxX||this.minY>this.maxY},a.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},a.prototype.getRectangle=function(t){return this.minX>this.maxX||this.minY>this.maxY?Vt.EMPTY:(t=t||new Vt(0,0,1,1),t.x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)},a.prototype.addPoint=function(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)},a.prototype.addPointMatrix=function(t,e){var i=t.a,n=t.b,o=t.c,s=t.d,l=t.tx,g=t.ty,y=i*e.x+o*e.y+l,A=n*e.x+s*e.y+g;this.minX=Math.min(this.minX,y),this.maxX=Math.max(this.maxX,y),this.minY=Math.min(this.minY,A),this.maxY=Math.max(this.maxY,A)},a.prototype.addQuad=function(t){var e=this.minX,i=this.minY,n=this.maxX,o=this.maxY,s=t[0],l=t[1];e=sn?s:n,o=l>o?l:o,s=t[2],l=t[3],e=sn?s:n,o=l>o?l:o,s=t[4],l=t[5],e=sn?s:n,o=l>o?l:o,s=t[6],l=t[7],e=sn?s:n,o=l>o?l:o,this.minX=e,this.minY=i,this.maxX=n,this.maxY=o},a.prototype.addFrame=function(t,e,i,n,o){this.addFrameMatrix(t.worldTransform,e,i,n,o)},a.prototype.addFrameMatrix=function(t,e,i,n,o){var s=t.a,l=t.b,g=t.c,y=t.d,A=t.tx,x=t.ty,E=this.minX,O=this.minY,R=this.maxX,L=this.maxY,N=s*e+g*i+A,B=l*e+y*i+x;E=NR?N:R,L=B>L?B:L,N=s*n+g*i+A,B=l*n+y*i+x,E=NR?N:R,L=B>L?B:L,N=s*e+g*o+A,B=l*e+y*o+x,E=NR?N:R,L=B>L?B:L,N=s*n+g*o+A,B=l*n+y*o+x,E=NR?N:R,L=B>L?B:L,this.minX=E,this.minY=O,this.maxX=R,this.maxY=L},a.prototype.addVertexData=function(t,e,i){for(var n=this.minX,o=this.minY,s=this.maxX,l=this.maxY,g=e;gs?y:s,l=A>l?A:l}this.minX=n,this.minY=o,this.maxX=s,this.maxY=l},a.prototype.addVertices=function(t,e,i,n){this.addVerticesMatrix(t.worldTransform,e,i,n)},a.prototype.addVerticesMatrix=function(t,e,i,n,o,s){o===void 0&&(o=0),s===void 0&&(s=o);for(var l=t.a,g=t.b,y=t.c,A=t.d,x=t.tx,E=t.ty,O=this.minX,R=this.minY,L=this.maxX,N=this.maxY,B=i;Bn?t.maxX:n,this.maxY=t.maxY>o?t.maxY:o},a.prototype.addBoundsMask=function(t,e){var i=t.minX>e.minX?t.minX:e.minX,n=t.minY>e.minY?t.minY:e.minY,o=t.maxXy?o:y,this.maxY=s>A?s:A}},a.prototype.addBoundsMatrix=function(t,e){this.addFrameMatrix(e,t.minX,t.minY,t.maxX,t.maxY)},a.prototype.addBoundsArea=function(t,e){var i=t.minX>e.x?t.minX:e.x,n=t.minY>e.y?t.minY:e.y,o=t.maxXy?o:y,this.maxY=s>A?s:A}},a.prototype.pad=function(t,e){t===void 0&&(t=0),e===void 0&&(e=t),this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=e,this.maxY+=e)},a.prototype.addFramePad=function(t,e,i,n,o,s){t-=o,e-=s,i+=o,n+=s,this.minX=this.minXi?this.maxX:i,this.minY=this.minYn?this.maxY:n},a}();/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var Du=function(a,t){return Du=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},Du(a,t)};function sh(a,t){Du(a,t);function e(){this.constructor=a}a.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Pe=function(a){sh(t,a);function t(){var e=a.call(this)||this;return e.tempDisplayObjectParent=null,e.transform=new Ko,e.alpha=1,e.visible=!0,e.renderable=!0,e.cullable=!1,e.cullArea=null,e.parent=null,e.worldAlpha=1,e._lastSortedIndex=0,e._zIndex=0,e.filterArea=null,e.filters=null,e._enabledFilters=null,e._bounds=new Cn,e._localBounds=null,e._boundsID=0,e._boundsRect=null,e._localBoundsRect=null,e._mask=null,e._maskRefCount=0,e._destroyed=!1,e.isSprite=!1,e.isMask=!1,e}return t.mixin=function(e){for(var i=Object.keys(e),n=0;n1)for(var o=0;othis.children.length)throw new Error(e+"addChildAt: The index "+i+" supplied is out of bounds "+this.children.length);return e.parent&&e.parent.removeChild(e),e.parent=this,this.sortDirty=!0,e.transform._parentID=-1,this.children.splice(i,0,e),this._boundsID++,this.onChildrenChange(i),e.emit("added",this),this.emit("childAdded",e,this,i),e},t.prototype.swapChildren=function(e,i){if(e!==i){var n=this.getChildIndex(e),o=this.getChildIndex(i);this.children[n]=i,this.children[o]=e,this.onChildrenChange(n=this.children.length)throw new Error("The index "+i+" supplied is out of bounds "+this.children.length);var n=this.getChildIndex(e);ei(this.children,n,1),this.children.splice(i,0,e),this.onChildrenChange(i)},t.prototype.getChildAt=function(e){if(e<0||e>=this.children.length)throw new Error("getChildAt: Index ("+e+") does not exist.");return this.children[e]},t.prototype.removeChild=function(){for(var e=arguments,i=[],n=0;n1)for(var o=0;o0&&s<=o){l=this.children.splice(n,s);for(var g=0;g1&&this.children.sort(rb),this.sortDirty=!1},t.prototype.updateTransform=function(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var e=0,i=this.children.length;e0&&i.height>0){var n,o;if(this.cullArea?(n=this.cullArea,o=this.worldTransform):this._render!==t.prototype._render&&(n=this.getBounds(!0)),n&&i.intersects(n,o))this._render(e);else if(this.cullArea)return;for(var s=0,l=this.children.length;snew Promise((i,n)=>{var o=g=>{try{l(e.next(g))}catch(y){n(y)}},s=g=>{try{l(e.throw(g))}catch(y){n(y)}},l=g=>g.done?i(g.value):Promise.resolve(g.value).then(o,s);l((e=e.apply(a,t)).next())});const fc=2,dc=2;var Ln;(a=>{a.supportMoreMaskDivisions=!0,a.setOpacityFromMotion=!1})(Ln||(Ln={}));var qe;(a=>{a.LOG_LEVEL_VERBOSE=0,a.LOG_LEVEL_WARNING=1,a.LOG_LEVEL_ERROR=2,a.LOG_LEVEL_NONE=999,a.logLevel=a.LOG_LEVEL_WARNING,a.sound=!0,a.motionSync=!0,a.motionFadingDuration=500,a.idleMotionFadingDuration=2e3,a.expressionFadingDuration=500,a.preserveExpressionOnMotion=!0,a.cubism4=Ln})(qe||(qe={}));const le={log(a,...t){qe.logLevel<=qe.LOG_LEVEL_VERBOSE&&console.log(`[${a}]`,...t)},warn(a,...t){qe.logLevel<=qe.LOG_LEVEL_WARNING&&console.warn(`[${a}]`,...t)},error(a,...t){qe.logLevel<=qe.LOG_LEVEL_ERROR&&console.error(`[${a}]`,...t)}};function Uo(a,t,e){return ae?e:a}function ab(a,t){return Math.random()*(t-a)+a}function tn(a,t,e,i,n){const o=t[i];o!==null&&typeof o===a&&(e[n]=o)}function en(a,t,e,i,n){const o=t[i];Array.isArray(o)&&(e[n]=o.filter(s=>s!==null&&typeof s===a))}function m2(a,t){t.forEach(e=>{Object.getOwnPropertyNames(e.prototype).forEach(i=>{i!=="constructor"&&Object.defineProperty(a.prototype,i,Object.getOwnPropertyDescriptor(e.prototype,i))})})}function ib(a){let t=a.lastIndexOf("/");return t!=-1&&(a=a.slice(0,t)),t=a.lastIndexOf("/"),t!==-1&&(a=a.slice(t+1)),a}function nb(a,t){const e=a.indexOf(t);e!==-1&&a.splice(e,1)}class lh extends ga{constructor(t,e){super(),this.expressions=[],this.reserveExpressionIndex=-1,this.destroyed=!1,this.settings=t,this.tag=`ExpressionManager(${t.name})`}init(){this.defaultExpression=this.createExpression({},void 0),this.currentExpression=this.defaultExpression,this.stopAllExpressions()}loadExpression(t){return Te(this,null,function*(){if(!this.definitions[t]){le.warn(this.tag,`Undefined expression at [${t}]`);return}if(this.expressions[t]===null){le.warn(this.tag,`Cannot set expression at [${t}] because it's already failed in loading.`);return}if(this.expressions[t])return this.expressions[t];const e=yield this._loadExpression(t);return this.expressions[t]=e,e})}_loadExpression(t){throw new Error("Not implemented.")}setRandomExpression(){return Te(this,null,function*(){if(this.definitions.length){const t=[];for(let e=0;e-1&&ty&&(s*=y/g,l*=y/g),this.vx+=s,this.vy+=l;const A=Math.sqrt(Ha(this.vx,2)+Ha(this.vy,2)),x=.5*(Math.sqrt(Ha(y,2)+8*y*n)-y);A>x&&(this.vx*=x/A,this.vy*=x/A),this.x+=this.vx,this.y+=this.vy}}class es{constructor(t){this.json=t;let e=t.url;if(typeof e!="string")throw new TypeError("The `url` field in settings JSON must be defined as a string.");this.url=e,this.name=ib(this.url)}resolveURL(t){return qr.resolve(this.url,t)}replaceFiles(t){this.moc=t(this.moc,"moc"),this.pose!==void 0&&(this.pose=t(this.pose,"pose")),this.physics!==void 0&&(this.physics=t(this.physics,"physics"));for(let e=0;e(t.push(e),e)),t}validateFiles(t){const e=(i,n)=>{const o=this.resolveURL(i);if(!t.includes(o)){if(n)throw new Error(`File "${i}" is defined in settings, but doesn't exist in given files`);return!1}return!0};return[this.moc,...this.textures].forEach(i=>e(i,!0)),this.getDefinedFiles().filter(i=>e(i,!1))}}var Nu=(a=>(a[a.NONE=0]="NONE",a[a.IDLE=1]="IDLE",a[a.NORMAL=2]="NORMAL",a[a.FORCE=3]="FORCE",a))(Nu||{});class lb{constructor(){this.debug=!1,this.currentPriority=0,this.reservePriority=0}reserve(t,e,i){if(i<=0)return le.log(this.tag,"Cannot start a motion with MotionPriority.NONE."),!1;if(t===this.currentGroup&&e===this.currentIndex)return le.log(this.tag,"Motion is already playing.",this.dump(t,e)),!1;if(t===this.reservedGroup&&e===this.reservedIndex||t===this.reservedIdleGroup&&e===this.reservedIdleIndex)return le.log(this.tag,"Motion is already reserved.",this.dump(t,e)),!1;if(i===1){if(this.currentPriority!==0)return le.log(this.tag,"Cannot start idle motion because another motion is playing.",this.dump(t,e)),!1;if(this.reservedIdleGroup!==void 0)return le.log(this.tag,"Cannot start idle motion because another idle motion has reserved.",this.dump(t,e)),!1;this.setReservedIdle(t,e)}else{if(i<3){if(i<=this.currentPriority)return le.log(this.tag,"Cannot start motion because another motion is playing as an equivalent or higher priority.",this.dump(t,e)),!1;if(i<=this.reservePriority)return le.log(this.tag,"Cannot start motion because another motion has reserved as an equivalent or higher priority.",this.dump(t,e)),!1}this.setReserved(t,e,i)}return!0}start(t,e,i,n){if(n===1){if(this.setReservedIdle(void 0,void 0),this.currentPriority!==0)return le.log(this.tag,"Cannot start idle motion because another motion is playing.",this.dump(e,i)),!1}else{if(e!==this.reservedGroup||i!==this.reservedIndex)return le.log(this.tag,"Cannot start motion because another motion has taken the place.",this.dump(e,i)),!1;this.setReserved(void 0,void 0,0)}return t?(this.setCurrent(e,i,n),!0):!1}complete(){this.setCurrent(void 0,void 0,0)}setCurrent(t,e,i){this.currentPriority=i,this.currentGroup=t,this.currentIndex=e}setReserved(t,e,i){this.reservePriority=i,this.reservedGroup=t,this.reservedIndex=e}setReservedIdle(t,e){this.reservedIdleGroup=t,this.reservedIdleIndex=e}isActive(t,e){return t===this.currentGroup&&e===this.currentIndex||t===this.reservedGroup&&e===this.reservedIndex||t===this.reservedIdleGroup&&e===this.reservedIdleIndex}reset(){this.setCurrent(void 0,void 0,0),this.setReserved(void 0,void 0,0),this.setReservedIdle(void 0,void 0)}shouldRequestIdleMotion(){return this.currentGroup===void 0&&this.reservedIdleGroup===void 0}shouldOverrideExpression(){return!qe.preserveExpressionOnMotion&&this.currentPriority>1}dump(t,e){if(this.debug){const i=["currentPriority","reservePriority","currentGroup","currentIndex","reservedGroup","reservedIndex","reservedIdleGroup","reservedIdleIndex"];return` + group = "${t}", index = ${e} +`+i.map(n=>"["+n+"] "+this[n]).join(` +`)}return""}}const hb="SoundManager",cb=.5;class Ia{static get volume(){return this._volume}static set volume(t){this._volume=(t>1?1:t<0?0:t)||0,this.audios.forEach(e=>e.volume=this._volume)}static add(t,e,i){const n=new Audio(t);return n.volume=this._volume,n.preload="auto",n.addEventListener("ended",()=>{this.dispose(n),e==null||e()}),n.addEventListener("error",o=>{this.dispose(n),le.warn(hb,`Error occurred on "${t}"`,o.error),i==null||i(o.error)}),this.audios.push(n),n}static play(t){return new Promise((e,i)=>{var n;(n=t.play())==null||n.catch(o=>{t.dispatchEvent(new ErrorEvent("error",{error:o})),i(o)}),t.readyState===t.HAVE_ENOUGH_DATA?e():t.addEventListener("canplaythrough",e)})}static dispose(t){t.pause(),t.removeAttribute("src"),nb(this.audios,t)}static destroy(){for(let t=this.audios.length-1;t>=0;t--)this.dispose(this.audios[t])}}Ia.audios=[];Ia._volume=cb;class rs extends ga{constructor(t,e){super(),this.motionGroups={},this.state=new lb,this.playing=!1,this.destroyed=!1,this.settings=t,this.tag=`MotionManager(${t.name})`,this.state.tag=this.tag}init(t){t!=null&&t.idleMotionGroup&&(this.groups.idle=t.idleMotionGroup),this.setupMotions(t),this.stopAllMotions()}setupMotions(t){for(const i of Object.keys(this.definitions))this.motionGroups[i]=[];let e;switch(t==null?void 0:t.motionPreload){case"NONE":return;case"ALL":e=Object.keys(this.definitions);break;case"IDLE":default:e=[this.groups.idle];break}for(const i of e)if(this.definitions[i])for(let n=0;nthis.currentAudio=void 0,()=>this.currentAudio=void 0),this.currentAudio=g}catch(x){le.warn(this.tag,"Failed to create audio",A,x)}}const y=yield this.loadMotion(i,n);if(g){const A=Ia.play(g).catch(x=>le.warn(this.tag,"Failed to play audio",g.src,x));qe.motionSync&&(yield A)}return this.state.start(y,i,n,o)?(le.log(this.tag,"Start motion:",this.getMotionName(l)),this.emit("motionStart",i,n,g),this.state.shouldOverrideExpression()&&this.expressionManager&&this.expressionManager.resetExpression(),this.playing=!0,this._startMotion(y),!0):(g&&(Ia.dispose(g),this.currentAudio=void 0),!1)})}startRandomMotion(t,e){return Te(this,null,function*(){const i=this.definitions[t];if(i!=null&&i.length){const n=[];for(let o=0;oe.index>=0);for(const e of t)this.hitAreas[e.name]=e}hitTest(t,e){return Object.keys(this.hitAreas).filter(i=>this.isHit(i,t,e))}isHit(t,e,i){if(!this.hitAreas[t])return!1;const n=this.hitAreas[t].index,o=this.getDrawableBounds(n,fb);return o.x<=e&&e<=o.x+o.width&&o.y<=i&&i<=o.y+o.height}getDrawableBounds(t,e){const i=this.getDrawableVertices(t);let n=i[0],o=i[0],s=i[1],l=i[1];for(let g=0;g{(o.status===200||o.status===0)&&o.response?i(o.response):o.onerror()},o.onerror=()=>{le.warn(db,`Failed to load resource as ${o.responseType} (Status ${o.status}): ${t}`),n(new _c("Network error.",t,o.status))},o.onabort=()=>n(new _c("Aborted.",t,o.status,!0)),o.onloadend=()=>{var s;ir.allXhrSet.delete(o),a&&((s=ir.xhrMap.get(a))==null||s.delete(o))},o}static cancelXHRs(){var a;(a=ir.xhrMap.get(this))==null||a.forEach(t=>{t.abort(),ir.allXhrSet.delete(t)}),ir.xhrMap.delete(this)}static release(){ir.allXhrSet.forEach(a=>a.abort()),ir.allXhrSet.clear(),ir.xhrMap=new WeakMap}};let as=ir;as.xhrMap=new WeakMap;as.allXhrSet=new Set;as.loader=(a,t)=>new Promise((e,i)=>{ir.createXHR(a.target,a.settings?a.settings.resolveURL(a.url):a.url,a.type,n=>{a.result=n,e()},i).send()});function v2(a,t){let e=-1;return i(0);function i(n,o){if(o)return Promise.reject(o);if(n<=e)return Promise.reject(new Error("next() called multiple times"));e=n;const s=a[n];if(!s)return Promise.resolve();try{return Promise.resolve(s(t,i.bind(null,n+1)))}catch(l){return Promise.reject(l)}}}class Ca{static load(t){return v2(this.middlewares,t).then(()=>t.result)}}Ca.middlewares=[as.loader];function pb(a,t={}){const e={resourceOptions:{crossorigin:t.crossOrigin}};if(Rt.fromURL)return Rt.fromURL(a,e).catch(o=>{if(o instanceof Error)throw o;const s=new Error("Texture loading error");throw s.event=o,s});e.resourceOptions.autoLoad=!1;const i=Rt.from(a,e);if(i.baseTexture.valid)return Promise.resolve(i);const n=i.baseTexture.resource;return n._live2d_load!=null||(n._live2d_load=new Promise((o,s)=>{const l=g=>{n.source.removeEventListener("error",l);const y=new Error("Texture loading error");y.event=g,s(y)};n.source.addEventListener("error",l),n.load().then(()=>o(i)).catch(l)})),n._live2d_load}const mc="Live2DFactory",y2=(a,t)=>Te(void 0,null,function*(){if(typeof a.source=="string"){const e=yield Ca.load({url:a.source,type:"json",target:a.live2dModel});e.url=a.source,a.source=e,a.live2dModel.emit("settingsJSONLoaded",e)}return t()}),b2=(a,t)=>Te(void 0,null,function*(){if(a.source instanceof es)return a.settings=a.source,t();if(typeof a.source=="object"){const e=xe.findRuntime(a.source);if(e){const i=e.createModelSettings(a.source);return a.settings=i,a.live2dModel.emit("settingsLoaded",i),t()}}throw new TypeError("Unknown settings format.")}),x2=(a,t)=>{if(a.settings){const e=xe.findRuntime(a.settings);if(e)return e.ready().then(t)}return t()},T2=(a,t)=>Te(void 0,null,function*(){yield t();const e=a.internalModel;if(e){const i=a.settings,n=xe.findRuntime(i);if(n){const o=[];i.pose&&o.push(Ca.load({settings:i,url:i.pose,type:"json",target:e}).then(s=>{e.pose=n.createPose(e.coreModel,s),a.live2dModel.emit("poseLoaded",e.pose)}).catch(s=>{a.live2dModel.emit("poseLoadError",s),le.warn(mc,"Failed to load pose.",s)})),i.physics&&o.push(Ca.load({settings:i,url:i.physics,type:"json",target:e}).then(s=>{e.physics=n.createPhysics(e.coreModel,s),a.live2dModel.emit("physicsLoaded",e.physics)}).catch(s=>{a.live2dModel.emit("physicsLoadError",s),le.warn(mc,"Failed to load physics.",s)})),o.length&&(yield Promise.all(o))}}}),A2=(a,t)=>Te(void 0,null,function*(){if(a.settings){const e=a.live2dModel,i=a.settings.textures.map(n=>{const o=a.settings.resolveURL(n);return pb(o,{crossOrigin:a.options.crossOrigin})});if(yield t(),a.internalModel)e.internalModel=a.internalModel,e.emit("modelLoaded",a.internalModel);else throw new TypeError("Missing internal model.");e.textures=yield Promise.all(i),e.emit("textureLoaded",e.textures)}else throw new TypeError("Missing settings.")}),I2=(a,t)=>Te(void 0,null,function*(){const e=a.settings;if(e instanceof es){const i=xe.findRuntime(e);if(!i)throw new TypeError("Unknown model settings.");const n=yield Ca.load({settings:e,url:e.moc,type:"arraybuffer",target:a.live2dModel});if(!i.isValidMoc(n))throw new Error("Invalid moc data");const o=i.createCoreModel(n);return a.internalModel=i.createInternalModel(o,e,a.options),t()}throw new TypeError("Missing settings.")}),Qe=class{static registerRuntime(a){Qe.runtimes.push(a),Qe.runtimes.sort((t,e)=>e.version-t.version)}static findRuntime(a){for(const t of Qe.runtimes)if(t.test(a))return t}static setupLive2DModel(a,t,e){return Te(this,null,function*(){const i=new Promise(s=>a.once("textureLoaded",s)),n=new Promise(s=>a.once("modelLoaded",s)),o=Promise.all([i,n]).then(()=>a.emit("ready"));yield v2(Qe.live2DModelMiddlewares,{live2dModel:a,source:t,options:e||{}}),yield o,a.emit("load")})}static loadMotion(a,t,e){var i,n;const o=s=>a.emit("motionLoadError",t,e,s);try{const s=(i=a.definitions[t])==null?void 0:i[e];if(!s)return Promise.resolve(void 0);a.listeners("destroy").includes(Qe.releaseTasks)||a.once("destroy",Qe.releaseTasks);let l=Qe.motionTasksMap.get(a);l||(l={},Qe.motionTasksMap.set(a,l));let g=l[t];g||(g=[],l[t]=g);const y=a.getMotionFile(s);return(n=g[e])!=null||(g[e]=Ca.load({url:y,settings:a.settings,type:a.motionDataType,target:a}).then(A=>{var x;const E=(x=Qe.motionTasksMap.get(a))==null?void 0:x[t];E&&delete E[e];const O=a.createMotion(A,t,s);return a.emit("motionLoaded",t,e,O),O}).catch(A=>{le.warn(a.tag,`Failed to load motion: ${y} +`,A),o(A)})),g[e]}catch(s){le.warn(a.tag,`Failed to load motion at "${t}"[${e}] +`,s),o(s)}return Promise.resolve(void 0)}static loadExpression(a,t){var e;const i=n=>a.emit("expressionLoadError",t,n);try{const n=a.definitions[t];if(!n)return Promise.resolve(void 0);a.listeners("destroy").includes(Qe.releaseTasks)||a.once("destroy",Qe.releaseTasks);let o=Qe.expressionTasksMap.get(a);o||(o=[],Qe.expressionTasksMap.set(a,o));const s=a.getExpressionFile(n);return(e=o[t])!=null||(o[t]=Ca.load({url:s,settings:a.settings,type:"json",target:a}).then(l=>{const g=Qe.expressionTasksMap.get(a);g&&delete g[t];const y=a.createExpression(l,n);return a.emit("expressionLoaded",t,y),y}).catch(l=>{le.warn(a.tag,`Failed to load expression: ${s} +`,l),i(l)})),o[t]}catch(n){le.warn(a.tag,`Failed to load expression at [${t}] +`,n),i(n)}return Promise.resolve(void 0)}static releaseTasks(){this instanceof rs?Qe.motionTasksMap.delete(this):Qe.expressionTasksMap.delete(this)}};let xe=Qe;xe.runtimes=[];xe.urlToJSON=y2;xe.jsonToSettings=b2;xe.waitUntilReady=x2;xe.setupOptionals=T2;xe.setupEssentials=A2;xe.createInternalModel=I2;xe.live2DModelMiddlewares=[y2,b2,x2,T2,A2,I2];xe.motionTasksMap=new WeakMap;xe.expressionTasksMap=new WeakMap;rs.prototype._loadMotion=function(a,t){return xe.loadMotion(this,a,t)};lh.prototype._loadExpression=function(a){return xe.loadExpression(this,a)};class _b{constructor(){this._autoInteract=!1}get autoInteract(){return this._autoInteract}set autoInteract(t){t!==this._autoInteract&&(t?this.on("pointertap",gc,this):this.off("pointertap",gc,this),this._autoInteract=t)}registerInteraction(t){t!==this.interactionManager&&(this.unregisterInteraction(),this._autoInteract&&t&&(this.interactionManager=t,t.on("pointermove",vc,this)))}unregisterInteraction(){var t;this.interactionManager&&((t=this.interactionManager)==null||t.off("pointermove",vc,this),this.interactionManager=void 0)}}function gc(a){this.tap(a.data.global.x,a.data.global.y)}function vc(a){this.focus(a.data.global.x,a.data.global.y)}class mb extends Ko{}const mr=new he,gb=new be;let ba;class S2 extends Er{constructor(t){super(),this.tag="Live2DModel(uninitialized)",this.textures=[],this.transform=new mb,this.anchor=new Ea(this.onAnchorChange,this,0,0),this.glContextID=-1,this.elapsedTime=performance.now(),this.deltaTime=0,this._autoUpdate=!1,this.once("modelLoaded",()=>this.init(t))}static from(t,e){const i=new this(e);return xe.setupLive2DModel(i,t,e).then(()=>i)}static fromSync(t,e){const i=new this(e);return xe.setupLive2DModel(i,t,e).then(e==null?void 0:e.onLoad).catch(e==null?void 0:e.onError),i}static registerTicker(t){ba=t}get autoUpdate(){return this._autoUpdate}set autoUpdate(t){var e;ba||(ba=(e=window.PIXI)==null?void 0:e.Ticker),t?this._destroyed||(ba?(ba.shared.add(this.onTickerUpdate,this),this._autoUpdate=!0):le.warn(this.tag,"No Ticker registered, please call Live2DModel.registerTicker(Ticker).")):(ba==null||ba.shared.remove(this.onTickerUpdate,this),this._autoUpdate=!1)}init(t){this.tag=`Live2DModel(${this.internalModel.settings.name})`;const e=Object.assign({autoUpdate:!0,autoInteract:!0},t);e.autoInteract&&(this.interactive=!0),this.autoInteract=e.autoInteract,this.autoUpdate=e.autoUpdate}onAnchorChange(){this.pivot.set(this.anchor.x*this.internalModel.width,this.anchor.y*this.internalModel.height)}motion(t,e,i){return e===void 0?this.internalModel.motionManager.startRandomMotion(t,i):this.internalModel.motionManager.startMotion(t,e,i)}expression(t){return this.internalModel.motionManager.expressionManager?t===void 0?this.internalModel.motionManager.expressionManager.setRandomExpression():this.internalModel.motionManager.expressionManager.setExpression(t):Promise.resolve(!1)}focus(t,e,i=!1){mr.x=t,mr.y=e,this.toModelPosition(mr,mr,!0);let n=mr.x/this.internalModel.originalWidth*2-1,o=mr.y/this.internalModel.originalHeight*2-1,s=Math.atan2(o,n);this.internalModel.focusController.focus(Math.cos(s),-Math.sin(s),i)}tap(t,e){const i=this.hitTest(t,e);i.length&&(le.log(this.tag,"Hit",i),this.emit("hit",i))}hitTest(t,e){return mr.x=t,mr.y=e,this.toModelPosition(mr,mr),this.internalModel.hitTest(mr.x,mr.y)}toModelPosition(t,e=t.clone(),i){return i||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.transform.worldTransform.applyInverse(t,e),this.internalModel.localTransform.applyInverse(e,e),e}containsPoint(t){return this.getBounds(!0).contains(t.x,t.y)}_calculateBounds(){this._bounds.addFrame(this.transform,0,0,this.internalModel.width,this.internalModel.height)}onTickerUpdate(){this.update(ba.shared.deltaMS)}update(t){this.deltaTime+=t,this.elapsedTime+=t}_render(t){this.registerInteraction(t.plugins.interaction),t.batch.reset(),t.geometry.reset(),t.shader.reset(),t.state.reset();let e=!1;this.glContextID!==t.CONTEXT_UID&&(this.glContextID=t.CONTEXT_UID,this.internalModel.updateWebGLContext(t.gl,this.glContextID),e=!0);for(let o=0;oe.destroy(t.baseTexture)),this.internalModel.destroy(),super.destroy(t)}}m2(S2,[_b]);const Wr=class{static resolveURL(a,t){var e;const i=(e=Wr.filesMap[a])==null?void 0:e[t];if(i===void 0)throw new Error("Cannot find this file from uploaded files: "+t);return i}static upload(a,t){return Te(this,null,function*(){const e={};for(const i of t.getDefinedFiles()){const n=decodeURI(qr.resolve(t.url,i)),o=a.find(s=>s.webkitRelativePath===n);o&&(e[i]=URL.createObjectURL(o))}Wr.filesMap[t._objectURL]=e})}static createSettings(a){return Te(this,null,function*(){const t=a.find(s=>s.name.endsWith("model.json")||s.name.endsWith("model3.json"));if(!t)throw new TypeError("Settings file not found");const e=yield Wr.readText(t),i=JSON.parse(e);i.url=t.webkitRelativePath;const n=xe.findRuntime(i);if(!n)throw new Error("Unknown settings JSON");const o=n.createModelSettings(i);return o._objectURL=URL.createObjectURL(t),o})}static readText(a){return Te(this,null,function*(){return new Promise((t,e)=>{const i=new FileReader;i.onload=()=>t(i.result),i.onerror=e,i.readAsText(a,"utf8")})})}};let hh=Wr;hh.filesMap={};hh.factory=(a,t)=>Te(void 0,null,function*(){if(Array.isArray(a.source)&&a.source[0]instanceof File){const e=a.source;let i=e.settings;if(!i)i=yield Wr.createSettings(e);else if(!i._objectURL)throw new Error('"_objectURL" must be specified in ModelSettings');i.validateFiles(e.map(n=>encodeURI(n.webkitRelativePath))),yield Wr.upload(e,i),i.resolveURL=function(n){return Wr.resolveURL(this._objectURL,n)},a.source=i,a.live2dModel.once("modelLoaded",n=>{n.once("destroy",function(){const o=this.settings._objectURL;if(URL.revokeObjectURL(o),Wr.filesMap[o])for(const s of Object.values(Wr.filesMap[o]))URL.revokeObjectURL(s);delete Wr.filesMap[o]})})}return t()});xe.live2DModelMiddlewares.unshift(hh.factory);const hr=class{static unzip(a,t){return Te(this,null,function*(){const e=yield hr.getFilePaths(a),i=[];for(const o of t.getDefinedFiles()){const s=decodeURI(qr.resolve(t.url,o));e.includes(s)&&i.push(s)}const n=yield hr.getFiles(a,i);for(let o=0;oo.endsWith("model.json")||o.endsWith("model3.json"));if(!t)throw new Error("Settings file not found");const e=yield hr.readText(a,t);if(!e)throw new Error("Empty settings file: "+t);const i=JSON.parse(e);i.url=t;const n=xe.findRuntime(i);if(!n)throw new Error("Unknown settings JSON");return n.createModelSettings(i)})}static zipReader(a,t){return Te(this,null,function*(){throw new Error("Not implemented")})}static getFilePaths(a){return Te(this,null,function*(){throw new Error("Not implemented")})}static getFiles(a,t){return Te(this,null,function*(){throw new Error("Not implemented")})}static readText(a,t){return Te(this,null,function*(){throw new Error("Not implemented")})}static releaseReader(a){}};let is=hr;is.ZIP_PROTOCOL="zip://";is.uid=0;is.factory=(a,t)=>Te(void 0,null,function*(){const e=a.source;let i,n,o;if(typeof e=="string"&&(e.endsWith(".zip")||e.startsWith(hr.ZIP_PROTOCOL))?(e.startsWith(hr.ZIP_PROTOCOL)?i=e.slice(hr.ZIP_PROTOCOL.length):i=e,n=yield Ca.load({url:i,type:"blob",target:a.live2dModel})):Array.isArray(e)&&e.length===1&&e[0]instanceof File&&e[0].name.endsWith(".zip")&&(n=e[0],i=URL.createObjectURL(n),o=e.settings),n){if(!n.size)throw new Error("Empty zip file");const s=yield hr.zipReader(n,i);o||(o=yield hr.createSettings(s)),o._objectURL=hr.ZIP_PROTOCOL+hr.uid+"/"+o.url;const l=yield hr.unzip(s,o);l.settings=o,a.source=l,i.startsWith("blob:")&&a.live2dModel.once("modelLoaded",g=>{g.once("destroy",function(){URL.revokeObjectURL(i)})}),hr.releaseReader(s)}return t()});xe.live2DModelMiddlewares.unshift(is.factory);if(!window.Live2D)throw new Error("Could not find Cubism 2 runtime. This plugin requires live2d.min.js to be loaded.");const vb=Live2DMotion.prototype.updateParam;Live2DMotion.prototype.updateParam=function(a,t){vb.call(this,a,t),t.isFinished()&&this.onFinishHandler&&(this.onFinishHandler(this),delete this.onFinishHandler)};class yb extends AMotion{constructor(t){super(),this.params=[],this.setFadeIn(t.fade_in>0?t.fade_in:qe.expressionFadingDuration),this.setFadeOut(t.fade_out>0?t.fade_out:qe.expressionFadingDuration),Array.isArray(t.params)&&t.params.forEach(e=>{const i=e.calc||"add";if(i==="add"){const n=e.def||0;e.val-=n}else if(i==="mult"){const n=e.def||1;e.val/=n}this.params.push({calc:i,val:e.val,id:e.id})})}updateParamExe(t,e,i,n){this.params.forEach(o=>{t.setParamFloat(o.id,o.val*i)})}}class bb extends lh{constructor(t,e){var i;super(t,e),this.queueManager=new MotionQueueManager,this.definitions=(i=this.settings.expressions)!=null?i:[],this.init()}isFinished(){return this.queueManager.isFinished()}getExpressionIndex(t){return this.definitions.findIndex(e=>e.name===t)}getExpressionFile(t){return t.file}createExpression(t,e){return new yb(t)}_setExpression(t){return this.queueManager.startMotion(t)}stopAllExpressions(){this.queueManager.stopAllMotions()}updateParameters(t,e){return this.queueManager.updateParam(t)}}class xb extends rs{constructor(t,e){super(t,e),this.groups={idle:"idle"},this.motionDataType="arraybuffer",this.queueManager=new MotionQueueManager,this.definitions=this.settings.motions,this.init(e)}init(t){super.init(t),this.settings.expressions&&(this.expressionManager=new bb(this.settings,t))}isFinished(){return this.queueManager.isFinished()}createMotion(t,e,i){const n=Live2DMotion.loadMotion(t),o=e===this.groups.idle?qe.idleMotionFadingDuration:qe.motionFadingDuration;return n.setFadeIn(i.fade_in>0?i.fade_in:o),n.setFadeOut(i.fade_out>0?i.fade_out:o),n}getMotionFile(t){return t.file}getMotionName(t){return t.file}getSoundFile(t){return t.sound}_startMotion(t,e){return t.onFinishHandler=e,this.queueManager.stopAllMotions(),this.queueManager.startMotion(t)}_stopAllMotions(){this.queueManager.stopAllMotions()}updateParameters(t,e){return this.queueManager.updateParam(t)}destroy(){super.destroy(),this.queueManager=void 0}}class Tb{constructor(t){this.coreModel=t,this.blinkInterval=4e3,this.closingDuration=100,this.closedDuration=50,this.openingDuration=150,this.eyeState=0,this.eyeParamValue=1,this.closedTimer=0,this.nextBlinkTimeLeft=this.blinkInterval,this.leftParam=t.getParamIndex("PARAM_EYE_L_OPEN"),this.rightParam=t.getParamIndex("PARAM_EYE_R_OPEN")}setEyeParams(t){this.eyeParamValue=Uo(t,0,1),this.coreModel.setParamFloat(this.leftParam,this.eyeParamValue),this.coreModel.setParamFloat(this.rightParam,this.eyeParamValue)}update(t){switch(this.eyeState){case 0:this.nextBlinkTimeLeft-=t,this.nextBlinkTimeLeft<0&&(this.eyeState=1,this.nextBlinkTimeLeft=this.blinkInterval+this.closingDuration+this.closedDuration+this.openingDuration+ab(0,2e3));break;case 1:this.setEyeParams(this.eyeParamValue+t/this.closingDuration),this.eyeParamValue<=0&&(this.eyeState=2,this.closedTimer=0);break;case 2:this.closedTimer+=t,this.closedTimer>=this.closedDuration&&(this.eyeState=3);break;case 3:this.setEyeParams(this.eyeParamValue+t/this.openingDuration),this.eyeParamValue>=1&&(this.eyeState=0)}}}const ka=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);class Ab extends g2{constructor(t,e,i){super(),this.textureFlipY=!0,this.drawDataCount=0,this.disableCulling=!1,this.coreModel=t,this.settings=e,this.motionManager=new xb(e,i),this.eyeBlink=new Tb(t),this.eyeballXParamIndex=t.getParamIndex("PARAM_EYE_BALL_X"),this.eyeballYParamIndex=t.getParamIndex("PARAM_EYE_BALL_Y"),this.angleXParamIndex=t.getParamIndex("PARAM_ANGLE_X"),this.angleYParamIndex=t.getParamIndex("PARAM_ANGLE_Y"),this.angleZParamIndex=t.getParamIndex("PARAM_ANGLE_Z"),this.bodyAngleXParamIndex=t.getParamIndex("PARAM_BODY_ANGLE_X"),this.breathParamIndex=t.getParamIndex("PARAM_BREATH"),this.init()}init(){super.init(),this.settings.initParams&&this.settings.initParams.forEach(({id:o,value:s})=>this.coreModel.setParamFloat(o,s)),this.settings.initOpacities&&this.settings.initOpacities.forEach(({id:o,value:s})=>this.coreModel.setPartsOpacity(o,s)),this.coreModel.saveParam();const t=this.coreModel.getModelContext()._$aS;t!=null&&t.length&&(this.drawDataCount=t.length);let e=this.coreModel.drawParamWebGL.culling;Object.defineProperty(this.coreModel.drawParamWebGL,"culling",{set:o=>e=o,get:()=>this.disableCulling?!1:e});const i=this.coreModel.getModelContext().clipManager,n=i.setupClip;i.setupClip=(o,s)=>{n.call(i,o,s),s.gl.viewport(...this.viewport)}}getSize(){return[this.coreModel.getCanvasWidth(),this.coreModel.getCanvasHeight()]}getLayout(){const t={};if(this.settings.layout)for(const e of Object.keys(this.settings.layout)){let i=e;e==="center_x"?i="centerX":e==="center_y"&&(i="centerY"),t[i]=this.settings.layout[e]}return t}updateWebGLContext(t,e){const i=this.coreModel.drawParamWebGL;i.firstDraw=!0,i.setGL(t),i.glno=e;for(const s in i)i.hasOwnProperty(s)&&i[s]instanceof WebGLBuffer&&(i[s]=null);const n=this.coreModel.getModelContext().clipManager;n.curFrameNo=e;const o=t.getParameter(t.FRAMEBUFFER_BINDING);n.getMaskRenderTexture(),t.bindFramebuffer(t.FRAMEBUFFER,o)}bindTexture(t,e){this.coreModel.setTexture(t,e)}getHitAreaDefs(){var t;return((t=this.settings.hitAreas)==null?void 0:t.map(e=>({id:e.id,name:e.name,index:this.coreModel.getDrawDataIndex(e.id)})))||[]}getDrawableIDs(){const t=this.coreModel.getModelContext(),e=[];for(let i=0;i0&&t.textures.every(i=>typeof i=="string")}copy(t){tn("string",t,this,"name","name"),tn("string",t,this,"pose","pose"),tn("string",t,this,"physics","physics"),tn("object",t,this,"layout","layout"),tn("object",t,this,"motions","motions"),en("object",t,this,"hit_areas","hitAreas"),en("object",t,this,"expressions","expressions"),en("object",t,this,"init_params","initParams"),en("object",t,this,"init_opacities","initOpacities")}replaceFiles(t){super.replaceFiles(t);for(const[e,i]of Object.entries(this.motions))for(let n=0;n{const n=new PhysicsHair;return n.setup(i.setup.length,i.setup.regist,i.setup.mass),i.src.forEach(({id:o,ptype:s,scale:l,weight:g})=>{const y=Ib[s];y&&n.addSrcParam(y,o,l,g)}),i.targets.forEach(({id:o,ptype:s,scale:l,weight:g})=>{const y=Sb[s];y&&n.addTargetParam(y,o,l,g)}),n}))}update(t){this.physicsHairs.forEach(e=>e.update(this.coreModel,t))}}class yc{constructor(t){this.id=t,this.paramIndex=-1,this.partsIndex=-1,this.link=[]}initIndex(t){this.paramIndex=t.getParamIndex("VISIBLE:"+this.id),this.partsIndex=t.getPartsDataIndex(PartsDataID.getID(this.id)),t.setParamFloat(this.paramIndex,1)}}class Pb{constructor(t,e){this.coreModel=t,this.opacityAnimDuration=500,this.partsGroups=[],e.parts_visible&&(this.partsGroups=e.parts_visible.map(({group:i})=>i.map(({id:n,link:o})=>{const s=new yc(n);return o&&(s.link=o.map(l=>new yc(l))),s})),this.init())}init(){this.partsGroups.forEach(t=>{t.forEach(e=>{if(e.initIndex(this.coreModel),e.paramIndex>=0){const i=this.coreModel.getParamFloat(e.paramIndex)!==0;this.coreModel.setPartsOpacity(e.partsIndex,i?1:0),this.coreModel.setParamFloat(e.paramIndex,i?1:0),e.link.length>0&&e.link.forEach(n=>n.initIndex(this.coreModel))}})})}normalizePartsOpacityGroup(t,e){const i=this.coreModel,n=.5,o=.15;let s=1,l=t.findIndex(({paramIndex:g,partsIndex:y})=>y>=0&&i.getParamFloat(g)!==0);if(l>=0){const g=i.getPartsOpacity(t[l].partsIndex);s=Uo(g+e/this.opacityAnimDuration,0,1)}else l=0,s=1;t.forEach(({partsIndex:g},y)=>{if(g>=0)if(l==y)i.setPartsOpacity(g,s);else{let A=i.getPartsOpacity(g),x;so&&(x=1-o/(1-s)),A>x&&(A=x),i.setPartsOpacity(g,A)}})}copyOpacity(t){const e=this.coreModel;t.forEach(({partsIndex:i,link:n})=>{if(i>=0&&n){const o=e.getPartsOpacity(i);n.forEach(({partsIndex:s})=>{s>=0&&e.setPartsOpacity(s,o)})}})}update(t){this.partsGroups.forEach(e=>{this.normalizePartsOpacityGroup(e,t),this.copyOpacity(e)})}}xe.registerRuntime({version:2,test(a){return a instanceof bn||bn.isValidJSON(a)},ready(){return Promise.resolve()},isValidMoc(a){if(a.byteLength<3)return!1;const t=new Int8Array(a,0,3);return String.fromCharCode(...t)==="moc"},createModelSettings(a){return new bn(a)},createCoreModel(a){const t=Live2DModelWebGL.loadModel(a),e=Live2D.getError();if(e)throw e;return t},createInternalModel(a,t,e){return new Ab(a,t,e)},createPose(a,t){return new Pb(a,t)},createPhysics(a,t){return new Eb(a,t)}});if(!window.Live2DCubismCore)throw new Error("Could not find Cubism 4 runtime. This plugin requires live2dcubismcore.js to be loaded.");class Dt{constructor(t,e){this.x=t||0,this.y=e||0}add(t){const e=new Dt(0,0);return e.x=this.x+t.x,e.y=this.y+t.y,e}substract(t){const e=new Dt(0,0);return e.x=this.x-t.x,e.y=this.y-t.y,e}multiply(t){const e=new Dt(0,0);return e.x=this.x*t.x,e.y=this.y*t.y,e}multiplyByScaler(t){return this.multiply(new Dt(t,t))}division(t){const e=new Dt(0,0);return e.x=this.x/t.x,e.y=this.y/t.y,e}divisionByScalar(t){return this.division(new Dt(t,t))}getLength(){return Math.sqrt(this.x*this.x+this.y*this.y)}getDistanceWith(t){return Math.sqrt((this.x-t.x)*(this.x-t.x)+(this.y-t.y)*(this.y-t.y))}dot(t){return this.x*t.x+this.y*t.y}normalize(){const t=Math.pow(this.x*this.x+this.y*this.y,.5);this.x=this.x/t,this.y=this.y/t}isEqual(t){return this.x==t.x&&this.y==t.y}isNotEqual(t){return!this.isEqual(t)}}const Po=class{static range(a,t,e){return ae&&(a=e),a}static sin(a){return Math.sin(a)}static cos(a){return Math.cos(a)}static abs(a){return Math.abs(a)}static sqrt(a){return Math.sqrt(a)}static cbrt(a){if(a===0)return a;let t=a;const e=t<0;e&&(t=-t);let i;return t===1/0?i=1/0:(i=Math.exp(Math.log(t)/3),i=(t/(i*i)+2*i)/3),e?-i:i}static getEasingSine(a){return a<0?0:a>1?1:.5-.5*this.cos(a*Math.PI)}static max(a,t){return a>t?a:t}static min(a,t){return a>t?t:a}static degreesToRadian(a){return a/180*Math.PI}static radianToDegrees(a){return a*180/Math.PI}static directionToRadian(a,t){const e=Math.atan2(t.y,t.x),i=Math.atan2(a.y,a.x);let n=e-i;for(;n<-Math.PI;)n+=Math.PI*2;for(;n>Math.PI;)n-=Math.PI*2;return n}static directionToDegrees(a,t){const e=this.directionToRadian(a,t);let i=this.radianToDegrees(e);return t.x-a.x>0&&(i=-i),i}static radianToDirection(a){const t=new Dt;return t.x=this.sin(a),t.y=this.cos(a),t}static quadraticEquation(a,t,e){return this.abs(a)1&&(t=1),e<0?e=0:e>1&&(e=1),i<0?i=0:i>1&&(i=1),n<0?n=0:n>1&&(n=1),this._modelColor.R=t,this._modelColor.G=e,this._modelColor.B=i,this._modelColor.A=n}getModelColor(){return Object.assign({},this._modelColor)}setIsPremultipliedAlpha(t){this._isPremultipliedAlpha=t}isPremultipliedAlpha(){return this._isPremultipliedAlpha}setIsCulling(t){this._isCulling=t}isCulling(){return this._isCulling}setAnisotropy(t){this._anisortopy=t}getAnisotropy(){return this._anisortopy}getModel(){return this._model}constructor(){this._isCulling=!1,this._isPremultipliedAlpha=!1,this._anisortopy=0,this._modelColor=new ln,this._mvpMatrix4x4=new Ar,this._mvpMatrix4x4.loadIdentity()}}var wa=(a=>(a[a.CubismBlendMode_Normal=0]="CubismBlendMode_Normal",a[a.CubismBlendMode_Additive=1]="CubismBlendMode_Additive",a[a.CubismBlendMode_Multiplicative=2]="CubismBlendMode_Multiplicative",a))(wa||{});class ln{constructor(){this.R=1,this.G=1,this.B=1,this.A=1}}let Jr=!1,gi=!1,vi;const js={vertexOffset:0,vertexStep:2};class $n{static startUp(t){if(Jr)return rn("CubismFramework.startUp() is already done."),Jr;if(Live2DCubismCore._isStarted)return Jr=!0,!0;if(Live2DCubismCore._isStarted=!0,vi=t,vi&&Live2DCubismCore.Logging.csmSetLogFunction(vi.logFunction),Jr=!0,Jr){const e=Live2DCubismCore.Version.csmGetVersion(),i=(e&4278190080)>>24,n=(e&16711680)>>16,o=e&65535,s=e;rn("Live2D Cubism Core version: {0}.{1}.{2} ({3})",("00"+i).slice(-2),("00"+n).slice(-2),("0000"+o).slice(-4),s)}return rn("CubismFramework.startUp() is complete."),Jr}static cleanUp(){Jr=!1,gi=!1,vi=void 0}static initialize(){if(!Jr){hn("CubismFramework is not started.");return}if(gi){hn("CubismFramework.initialize() skipped, already initialized.");return}gi=!0,rn("CubismFramework.initialize() is complete.")}static dispose(){if(!Jr){hn("CubismFramework is not started.");return}if(!gi){hn("CubismFramework.dispose() skipped, not initialized.");return}ch.staticRelease(),gi=!1,rn("CubismFramework.dispose() is complete.")}static isStarted(){return Jr}static isInitialized(){return gi}static coreLogFunction(t){Live2DCubismCore.Logging.csmGetLogFunction()&&Live2DCubismCore.Logging.csmGetLogFunction()(t)}static getLoggingLevel(){return vi!=null?vi.loggingLevel:ui.LogLevel_Off}constructor(){}}var ui=(a=>(a[a.LogLevel_Verbose=0]="LogLevel_Verbose",a[a.LogLevel_Debug=1]="LogLevel_Debug",a[a.LogLevel_Info=2]="LogLevel_Info",a[a.LogLevel_Warning=3]="LogLevel_Warning",a[a.LogLevel_Error=4]="LogLevel_Error",a[a.LogLevel_Off=5]="LogLevel_Off",a))(ui||{});const lo=()=>{};function bc(a,...t){ns.print(ui.LogLevel_Debug,"[CSM][D]"+a+` +`,t)}function rn(a,...t){ns.print(ui.LogLevel_Info,"[CSM][I]"+a+` +`,t)}function hn(a,...t){ns.print(ui.LogLevel_Warning,"[CSM][W]"+a+` +`,t)}function Ai(a,...t){ns.print(ui.LogLevel_Error,"[CSM][E]"+a+` +`,t)}class ns{static print(t,e,i){if(t<$n.getLoggingLevel())return;const n=$n.coreLogFunction;if(!n)return;const o=e.replace(/{(\d+)}/g,(s,l)=>i[l]);n(o)}static dumpBytes(t,e,i){for(let n=0;n0?this.print(t,` +`):n%8==0&&n>0&&this.print(t," "),this.print(t,"{0} ",[e[n]&255]);this.print(t,` +`)}constructor(){}}class E2{constructor(){this._fadeInSeconds=-1,this._fadeOutSeconds=-1,this._weight=1,this._offsetSeconds=0,this._firedEventValues=[]}release(){this._weight=0}updateParameters(t,e,i){if(!e.isAvailable()||e.isFinished())return;if(!e.isStarted()){e.setIsStarted(!0),e.setStartTime(i-this._offsetSeconds),e.setFadeInStartTime(i);const l=this.getDuration();e.getEndTime()<0&&e.setEndTime(l<=0?-1:e.getStartTime()+l)}let n=this._weight;const o=this._fadeInSeconds==0?1:de.getEasingSine((i-e.getFadeInStartTime())/this._fadeInSeconds),s=this._fadeOutSeconds==0||e.getEndTime()<0?1:de.getEasingSine((e.getEndTime()-i)/this._fadeOutSeconds);n=n*o*s,e.setState(i,n),this.doUpdateParameters(t,i,n,e),e.getEndTime()>0&&e.getEndTime()(a[a.ExpressionBlendType_Add=0]="ExpressionBlendType_Add",a[a.ExpressionBlendType_Multiply=1]="ExpressionBlendType_Multiply",a[a.ExpressionBlendType_Overwrite=2]="ExpressionBlendType_Overwrite",a))(za||{});class Mb{constructor(){this._autoDelete=!1,this._available=!0,this._finished=!1,this._started=!1,this._startTimeSeconds=-1,this._fadeInStartTimeSeconds=0,this._endTimeSeconds=-1,this._stateTimeSeconds=0,this._stateWeight=0,this._lastEventCheckSeconds=0,this._motionQueueEntryHandle=this,this._fadeOutSeconds=0,this._isTriggeredFadeOut=!1}release(){this._autoDelete&&this._motion&&this._motion.release()}setFadeOut(t){this._fadeOutSeconds=t,this._isTriggeredFadeOut=!0}startFadeOut(t,e){const i=e+t;this._isTriggeredFadeOut=!0,(this._endTimeSeconds<0||ie!=null&&e._motionQueueEntryHandle==t)}setEventCallback(t,e=null){this._eventCallBack=t,this._eventCustomData=e}doUpdateMotion(t,e){let i=!1,n=0;for(;ne.Name===t)}getExpressionFile(t){return t.File}createExpression(t,e){return fh.create(t)}_setExpression(t){return this.queueManager.startMotion(t,!1,performance.now())}stopAllExpressions(){this.queueManager.stopAllMotions()}updateParameters(t,e){return this.queueManager.doUpdateMotion(t,e)}}class M2{constructor(t){this.groups=t.Groups,this.hitAreas=t.HitAreas,this.layout=t.Layout,this.moc=t.FileReferences.Moc,this.expressions=t.FileReferences.Expressions,this.motions=t.FileReferences.Motions,this.textures=t.FileReferences.Textures,this.physics=t.FileReferences.Physics,this.pose=t.FileReferences.Pose}getEyeBlinkParameters(){var t,e;return(e=(t=this.groups)==null?void 0:t.find(i=>i.Name==="EyeBlink"))==null?void 0:e.Ids}getLipSyncParameters(){var t,e;return(e=(t=this.groups)==null?void 0:t.find(i=>i.Name==="LipSync"))==null?void 0:e.Ids}}class Mi extends es{constructor(t){if(super(t),!Mi.isValidJSON(t))throw new TypeError("Invalid JSON.");Object.assign(this,new M2(t))}static isValidJSON(t){var e;return!!(t!=null&&t.FileReferences)&&typeof t.FileReferences.Moc=="string"&&((e=t.FileReferences.Textures)==null?void 0:e.length)>0&&t.FileReferences.Textures.every(i=>typeof i=="string")}replaceFiles(t){if(super.replaceFiles(t),this.motions)for(const[e,i]of Object.entries(this.motions))for(let n=0;n(a[a.CubismMotionCurveTarget_Model=0]="CubismMotionCurveTarget_Model",a[a.CubismMotionCurveTarget_Parameter=1]="CubismMotionCurveTarget_Parameter",a[a.CubismMotionCurveTarget_PartOpacity=2]="CubismMotionCurveTarget_PartOpacity",a))(Wa||{}),Yr=(a=>(a[a.CubismMotionSegmentType_Linear=0]="CubismMotionSegmentType_Linear",a[a.CubismMotionSegmentType_Bezier=1]="CubismMotionSegmentType_Bezier",a[a.CubismMotionSegmentType_Stepped=2]="CubismMotionSegmentType_Stepped",a[a.CubismMotionSegmentType_InverseStepped=3]="CubismMotionSegmentType_InverseStepped",a))(Yr||{});class Ta{constructor(t=0,e=0){this.time=t,this.value=e}}class Rb{constructor(){this.basePointIndex=0,this.segmentType=0}}class Cb{constructor(){this.id="",this.type=0,this.segmentCount=0,this.baseSegmentIndex=0,this.fadeInTime=0,this.fadeOutTime=0}}class Lb{constructor(){this.fireTime=0,this.value=""}}class $b{constructor(){this.duration=0,this.loop=!1,this.curveCount=0,this.eventCount=0,this.fps=0,this.curves=[],this.segments=[],this.points=[],this.events=[]}}class w2{constructor(t){this._json=t}release(){this._json=void 0}getMotionDuration(){return this._json.Meta.Duration}isMotionLoop(){return this._json.Meta.Loop||!1}getEvaluationOptionFlag(t){return dh.EvaluationOptionFlag_AreBeziersRistricted==t?!!this._json.Meta.AreBeziersRestricted:!1}getMotionCurveCount(){return this._json.Meta.CurveCount}getMotionFps(){return this._json.Meta.Fps}getMotionTotalSegmentCount(){return this._json.Meta.TotalSegmentCount}getMotionTotalPointCount(){return this._json.Meta.TotalPointCount}getMotionFadeInTime(){return this._json.Meta.FadeInTime}getMotionFadeOutTime(){return this._json.Meta.FadeOutTime}getMotionCurveTarget(t){return this._json.Curves[t].Target}getMotionCurveId(t){return this._json.Curves[t].Id}getMotionCurveFadeInTime(t){return this._json.Curves[t].FadeInTime}getMotionCurveFadeOutTime(t){return this._json.Curves[t].FadeOutTime}getMotionCurveSegmentCount(t){return this._json.Curves[t].Segments.length}getMotionCurveSegment(t,e){return this._json.Curves[t].Segments[e]}getEventCount(){return this._json.Meta.UserDataCount||0}getTotalEventValueSize(){return this._json.Meta.TotalUserDataSize}getEventTime(t){return this._json.UserData[t].Time}getEventValue(t){return this._json.UserData[t].Value}}var dh=(a=>(a[a.EvaluationOptionFlag_AreBeziersRistricted=0]="EvaluationOptionFlag_AreBeziersRistricted",a))(dh||{});const Db="EyeBlink",Nb="LipSync",Fb="Model",Bb="Parameter",Hb="PartOpacity",kb=!1;function br(a,t,e){const i=new Ta;return i.time=a.time+(t.time-a.time)*e,i.value=a.value+(t.value-a.value)*e,i}function Ub(a,t){let e=(t-a[0].time)/(a[1].time-a[0].time);return e<0&&(e=0),a[0].value+(a[1].value-a[0].value)*e}function Gb(a,t){let e=(t-a[0].time)/(a[3].time-a[0].time);e<0&&(e=0);const i=br(a[0],a[1],e),n=br(a[1],a[2],e),o=br(a[2],a[3],e),s=br(i,n,e),l=br(n,o,e);return br(s,l,e).value}function Xb(a,t){const e=t,i=a[0].time,n=a[3].time,o=a[1].time,s=a[2].time,l=n-3*s+3*o-i,g=3*s-6*o+3*i,y=3*o-3*i,A=i-e,x=de.cardanoAlgorithmForBezier(l,g,y,A),E=br(a[0],a[1],x),O=br(a[1],a[2],x),R=br(a[2],a[3],x),L=br(E,O,x),N=br(O,R,x);return br(L,N,x).value}function jb(a,t){return a[0].value}function Vb(a,t){return a[1].value}function Vs(a,t,e){const i=a.curves[t];let n=-1;const o=i.baseSegmentIndex+i.segmentCount;let s=0;for(let g=i.baseSegmentIndex;ge){n=g;break}if(n==-1)return a.points[s].value;const l=a.segments[n];return l.evaluate(a.points.slice(l.basePointIndex),e)}class ph extends E2{constructor(){super(),this._eyeBlinkParameterIds=[],this._lipSyncParameterIds=[],this._sourceFrameRate=30,this._loopDurationSeconds=-1,this._isLoop=!1,this._isLoopFadeIn=!0,this._lastWeight=0}static create(t,e){const i=new ph;return i.parse(t),i._sourceFrameRate=i._motionData.fps,i._loopDurationSeconds=i._motionData.duration,i._onFinishedMotion=e,i}doUpdateParameters(t,e,i,n){this._modelCurveIdEyeBlink==null&&(this._modelCurveIdEyeBlink=Db),this._modelCurveIdLipSync==null&&(this._modelCurveIdLipSync=Nb);let o=e-n.getStartTime();o<0&&(o=0);let s=Number.MAX_VALUE,l=Number.MAX_VALUE;const g=64;let y=0,A=0;this._eyeBlinkParameterIds.length>g&&bc("too many eye blink targets : {0}",this._eyeBlinkParameterIds.length),this._lipSyncParameterIds.length>g&&bc("too many lip sync targets : {0}",this._lipSyncParameterIds.length);const x=this._fadeInSeconds<=0?1:de.getEasingSine((e-n.getFadeInStartTime())/this._fadeInSeconds),E=this._fadeOutSeconds<=0||n.getEndTime()<0?1:de.getEasingSine((n.getEndTime()-e)/this._fadeOutSeconds);let O,R,L,N=o;if(this._isLoop)for(;N>this._motionData.duration;)N-=this._motionData.duration;const B=this._motionData.curves;for(R=0;R>k&1)continue;const J=X+(l-X)*i;t.setParameterValueById(this._eyeBlinkParameterIds[k],J)}if(s!=Number.MAX_VALUE)for(let k=0;k>k&1)continue;const J=X+(s-X)*i;t.setParameterValueById(this._lipSyncParameterIds[k],J)}}for(;R=this._motionData.duration&&(this._isLoop?(n.setStartTime(e),this._isLoopFadeIn&&n.setFadeInStartTime(e)):(this._onFinishedMotion&&this._onFinishedMotion(this),n.setIsFinished(!0))),this._lastWeight=i}setIsLoop(t){this._isLoop=t}isLoop(){return this._isLoop}setIsLoopFadeIn(t){this._isLoopFadeIn=t}isLoopFadeIn(){return this._isLoopFadeIn}getDuration(){return this._isLoop?-1:this._loopDurationSeconds}getLoopDuration(){return this._loopDurationSeconds}setParameterFadeInTime(t,e){const i=this._motionData.curves;for(let n=0;nnew Cb),this._motionData.segments=Array.from({length:e.getMotionTotalSegmentCount()}).map(()=>new Rb),this._motionData.events=Array.from({length:this._motionData.eventCount}).map(()=>new Lb),this._motionData.points=[];let s=0,l=0;for(let g=0;gt&&this._motionData.events[i].fireTime<=e&&this._firedEventValues.push(this._motionData.events[i].value);return this._firedEventValues}}class Jb extends rs{constructor(t,e){var i;super(t,e),this.groups={idle:"Idle"},this.motionDataType="json",this.queueManager=new P2,this.definitions=(i=t.motions)!=null?i:{},this.eyeBlinkIds=t.getEyeBlinkParameters()||[],this.lipSyncIds=t.getLipSyncParameters()||[],this.init(e)}init(t){super.init(t),this.settings.expressions&&(this.expressionManager=new Ob(this.settings,t)),this.queueManager.setEventCallback((e,i,n)=>{this.emit("motion:"+i)})}isFinished(){return this.queueManager.isFinished()}_startMotion(t,e){return t.setFinishedMotionHandler(e),this.queueManager.stopAllMotions(),this.queueManager.startMotion(t,!1,performance.now())}_stopAllMotions(){this.queueManager.stopAllMotions()}createMotion(t,e,i){const n=ph.create(t),o=new w2(t),s=(e===this.groups.idle?qe.idleMotionFadingDuration:qe.motionFadingDuration)/1e3;return o.getMotionFadeInTime()===void 0&&n.setFadeInTime(i.FadeInTime>0?i.FadeInTime:s),o.getMotionFadeOutTime()===void 0&&n.setFadeOutTime(i.FadeOutTime>0?i.FadeOutTime:s),n.setEffectIds(this.eyeBlinkIds,this.lipSyncIds),n}getMotionFile(t){return t.File}getMotionName(t){return t.File}getSoundFile(t){return t.Sound}updateParameters(t,e){return this.queueManager.doUpdateMotion(t,e)}destroy(){super.destroy(),this.queueManager.release(),this.queueManager=void 0}}const Yb="ParamAngleX",zb="ParamAngleY",Wb="ParamAngleZ",Kb="ParamEyeBallX",Qb="ParamEyeBallY",qb="ParamBodyAngleX",Zb="ParamBreath";class _h{constructor(){this._breathParameters=[],this._currentTime=0}static create(){return new _h}setParameters(t){this._breathParameters=t}getParameters(){return this._breathParameters}updateParameters(t,e){this._currentTime+=e;const i=this._currentTime*2*3.14159;for(let n=0;n=1&&(i=1,this._blinkingState=gr.EyeState_Closed,this._stateStartTimeSeconds=this._userTimeSeconds),e=1-i;break;case gr.EyeState_Closed:i=(this._userTimeSeconds-this._stateStartTimeSeconds)/this._closedSeconds,i>=1&&(this._blinkingState=gr.EyeState_Opening,this._stateStartTimeSeconds=this._userTimeSeconds),e=0;break;case gr.EyeState_Opening:i=(this._userTimeSeconds-this._stateStartTimeSeconds)/this._openingSeconds,i>=1&&(i=1,this._blinkingState=gr.EyeState_Interval,this._nextBlinkingTime=this.determinNextBlinkingTiming()),e=i;break;case gr.EyeState_Interval:this._nextBlinkingTime(a[a.EyeState_First=0]="EyeState_First",a[a.EyeState_Interval=1]="EyeState_Interval",a[a.EyeState_Closing=2]="EyeState_Closing",a[a.EyeState_Closed=3]="EyeState_Closed",a[a.EyeState_Opening=4]="EyeState_Opening",a))(gr||{});class Bu{constructor(t=0,e=0,i=0,n=0){this.x=t,this.y=e,this.width=i,this.height=n}getCenterX(){return this.x+.5*this.width}getCenterY(){return this.y+.5*this.height}getRight(){return this.x+this.width}getBottom(){return this.y+this.height}setRect(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height}expand(t,e){this.x-=t,this.y-=e,this.width+=t*2,this.height+=e*2}}const Js=4,tx=10;let yi,cn,Hu;class Ys{getChannelFlagAsColor(t){return this._channelColors[t]}getMaskRenderTexture(){let t=0;if(this._maskTexture&&this._maskTexture.texture!=0&&(this._maskTexture.frameNo=this._currentFrameNo,t=this._maskTexture.texture),t==0){const e=this._clippingMaskBufferSize;this._colorBuffer=this.gl.createTexture(),this.gl.bindTexture(this.gl.TEXTURE_2D,this._colorBuffer),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,e,e,0,this.gl.RGBA,this.gl.UNSIGNED_BYTE,null),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MIN_FILTER,this.gl.LINEAR),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MAG_FILTER,this.gl.LINEAR),this.gl.bindTexture(this.gl.TEXTURE_2D,null),t=this.gl.createFramebuffer(),this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,t),this.gl.framebufferTexture2D(this.gl.FRAMEBUFFER,this.gl.COLOR_ATTACHMENT0,this.gl.TEXTURE_2D,this._colorBuffer,0),this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,Hu),this._maskTexture=new ex(this._currentFrameNo,t)}return t}setGL(t){this.gl=t}calcClippedDrawTotalBounds(t,e){let i=Number.MAX_VALUE,n=Number.MAX_VALUE,o=Number.MIN_VALUE,s=Number.MIN_VALUE;const l=e._clippedDrawableIndexList.length;for(let g=0;gR&&(R=k),XL&&(L=X)}if(E!=Number.MAX_VALUE)if(Eo&&(o=R),L>s&&(s=L),i==Number.MAX_VALUE)e._allClippedDrawRect.x=0,e._allClippedDrawRect.y=0,e._allClippedDrawRect.width=0,e._allClippedDrawRect.height=0,e._isUsing=!1;else{e._isUsing=!0;const B=o-i,k=s-n;e._allClippedDrawRect.x=i,e._allClippedDrawRect.y=n,e._allClippedDrawRect.width=B,e._allClippedDrawRect.height=k}}}constructor(){this._maskRenderTexture=null,this._colorBuffer=null,this._currentFrameNo=0,this._clippingMaskBufferSize=256,this._clippingContextListForMask=[],this._clippingContextListForDraw=[],this._channelColors=[],this._tmpBoundsOnModel=new Bu,this._tmpMatrix=new Ar,this._tmpMatrixForMask=new Ar,this._tmpMatrixForDraw=new Ar;let t=new ln;t.R=1,t.G=0,t.B=0,t.A=0,this._channelColors.push(t),t=new ln,t.R=0,t.G=1,t.B=0,t.A=0,this._channelColors.push(t),t=new ln,t.R=0,t.G=0,t.B=1,t.A=0,this._channelColors.push(t),t=new ln,t.R=0,t.G=0,t.B=0,t.A=1,this._channelColors.push(t)}release(){var t,e,i;const n=this;for(let o=0;o0){this.gl.viewport(0,0,this._clippingMaskBufferSize,this._clippingMaskBufferSize),this._maskRenderTexture=this.getMaskRenderTexture(),e.getMvpMatrix(),e.preDraw(),this.setupLayoutBounds(i),this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this._maskRenderTexture),this.gl.clearColor(1,1,1,1),this.gl.clear(this.gl.COLOR_BUFFER_BIT);for(let n=0;n(a[a.ShaderNames_SetupMask=0]="ShaderNames_SetupMask",a[a.ShaderNames_NormalPremultipliedAlpha=1]="ShaderNames_NormalPremultipliedAlpha",a[a.ShaderNames_NormalMaskedPremultipliedAlpha=2]="ShaderNames_NormalMaskedPremultipliedAlpha",a[a.ShaderNames_NomralMaskedInvertedPremultipliedAlpha=3]="ShaderNames_NomralMaskedInvertedPremultipliedAlpha",a[a.ShaderNames_AddPremultipliedAlpha=4]="ShaderNames_AddPremultipliedAlpha",a[a.ShaderNames_AddMaskedPremultipliedAlpha=5]="ShaderNames_AddMaskedPremultipliedAlpha",a[a.ShaderNames_AddMaskedPremultipliedAlphaInverted=6]="ShaderNames_AddMaskedPremultipliedAlphaInverted",a[a.ShaderNames_MultPremultipliedAlpha=7]="ShaderNames_MultPremultipliedAlpha",a[a.ShaderNames_MultMaskedPremultipliedAlpha=8]="ShaderNames_MultMaskedPremultipliedAlpha",a[a.ShaderNames_MultMaskedPremultipliedAlphaInverted=9]="ShaderNames_MultMaskedPremultipliedAlphaInverted",a))(fn||{});const ax="attribute vec4 a_position;attribute vec2 a_texCoord;varying vec2 v_texCoord;varying vec4 v_myPos;uniform mat4 u_clipMatrix;void main(){ gl_Position = u_clipMatrix * a_position; v_myPos = u_clipMatrix * a_position; v_texCoord = a_texCoord; v_texCoord.y = 1.0 - v_texCoord.y;}",ix="precision mediump float;varying vec2 v_texCoord;varying vec4 v_myPos;uniform vec4 u_baseColor;uniform vec4 u_channelFlag;uniform sampler2D s_texture0;void main(){ float isInside = step(u_baseColor.x, v_myPos.x/v_myPos.w) * step(u_baseColor.y, v_myPos.y/v_myPos.w) * step(v_myPos.x/v_myPos.w, u_baseColor.z) * step(v_myPos.y/v_myPos.w, u_baseColor.w); gl_FragColor = u_channelFlag * texture2D(s_texture0, v_texCoord).a * isInside;}",nx="attribute vec4 a_position;attribute vec2 a_texCoord;varying vec2 v_texCoord;uniform mat4 u_matrix;void main(){ gl_Position = u_matrix * a_position; v_texCoord = a_texCoord; v_texCoord.y = 1.0 - v_texCoord.y;}",Tc="attribute vec4 a_position;attribute vec2 a_texCoord;varying vec2 v_texCoord;varying vec4 v_clipPos;uniform mat4 u_matrix;uniform mat4 u_clipMatrix;void main(){ gl_Position = u_matrix * a_position; v_clipPos = u_clipMatrix * a_position; v_texCoord = a_texCoord; v_texCoord.y = 1.0 - v_texCoord.y;}",ox="precision mediump float;varying vec2 v_texCoord;uniform vec4 u_baseColor;uniform sampler2D s_texture0;void main(){ gl_FragColor = texture2D(s_texture0 , v_texCoord) * u_baseColor;}",sx="precision mediump float;varying vec2 v_texCoord;varying vec4 v_clipPos;uniform vec4 u_baseColor;uniform vec4 u_channelFlag;uniform sampler2D s_texture0;uniform sampler2D s_texture1;void main(){ vec4 col_formask = texture2D(s_texture0 , v_texCoord) * u_baseColor; vec4 clipMask = (1.0 - texture2D(s_texture1, v_clipPos.xy / v_clipPos.w)) * u_channelFlag; float maskVal = clipMask.r + clipMask.g + clipMask.b + clipMask.a; col_formask = col_formask * maskVal; gl_FragColor = col_formask;}",ux="precision mediump float;varying vec2 v_texCoord;varying vec4 v_clipPos;uniform sampler2D s_texture0;uniform sampler2D s_texture1;uniform vec4 u_channelFlag;uniform vec4 u_baseColor;void main(){vec4 col_formask = texture2D(s_texture0, v_texCoord) * u_baseColor;vec4 clipMask = (1.0 - texture2D(s_texture1, v_clipPos.xy / v_clipPos.w)) * u_channelFlag;float maskVal = clipMask.r + clipMask.g + clipMask.b + clipMask.a;col_formask = col_formask * (1.0 - maskVal);gl_FragColor = col_formask;}";class R2 extends ch{constructor(){super(),this._clippingContextBufferForMask=null,this._clippingContextBufferForDraw=null,this._clippingManager=new Ys,this.firstDraw=!0,this._textures={},this._sortedDrawableIndexList=[],this._bufferData={vertex:null,uv:null,index:null}}initialize(t){t.isUsingMasking()&&(this._clippingManager=new Ys,this._clippingManager.initialize(t,t.getDrawableCount(),t.getDrawableMasks(),t.getDrawableMaskCounts()));for(let e=t.getDrawableCount()-1;e>=0;e--)this._sortedDrawableIndexList[e]=0;super.initialize(t)}bindTexture(t,e){this._textures[t]=e}getBindedTextures(){return this._textures}setClippingMaskBufferSize(t){this._clippingManager.release(),this._clippingManager=new Ys,this._clippingManager.setClippingMaskBufferSize(t),this._clippingManager.initialize(this.getModel(),this.getModel().getDrawableCount(),this.getModel().getDrawableMasks(),this.getModel().getDrawableMaskCounts())}getClippingMaskBufferSize(){return this._clippingManager.getClippingMaskBufferSize()}release(){var t,e,i;const n=this;this._clippingManager.release(),n._clippingManager=void 0,(t=this.gl)==null||t.deleteBuffer(this._bufferData.vertex),this._bufferData.vertex=null,(e=this.gl)==null||e.deleteBuffer(this._bufferData.uv),this._bufferData.uv=null,(i=this.gl)==null||i.deleteBuffer(this._bufferData.index),this._bufferData.index=null,n._bufferData=void 0,n._textures=void 0}doDrawModel(){this.preDraw(),this._clippingManager!=null&&this._clippingManager.setupClippingContext(this.getModel(),this);const t=this.getModel().getDrawableCount(),e=this.getModel().getDrawableRenderOrders();for(let i=0;i{R2.doStaticRelease()};const Ac=new Ar;class lx extends g2{constructor(t,e,i){super(),this.lipSync=!0,this.breath=_h.create(),this.renderer=new R2,this.idParamAngleX=Yb,this.idParamAngleY=zb,this.idParamAngleZ=Wb,this.idParamEyeBallX=Kb,this.idParamEyeBallY=Qb,this.idParamBodyAngleX=qb,this.idParamBreath=Zb,this.pixelsPerUnit=1,this.centeringTransform=new be,this.coreModel=t,this.settings=e,this.motionManager=new Jb(e,i),this.init()}init(){var t;super.init(),((t=this.settings.getEyeBlinkParameters())==null?void 0:t.length)>0&&(this.eyeBlink=O2.create(this.settings)),this.breath.setParameters([new an(this.idParamAngleX,0,15,6.5345,.5),new an(this.idParamAngleY,0,8,3.5345,.5),new an(this.idParamAngleZ,0,10,5.5345,.5),new an(this.idParamBodyAngleX,0,4,15.5345,.5),new an(this.idParamBreath,0,.5,3.2345,.5)]),this.renderer.initialize(this.coreModel),this.renderer.setIsPremultipliedAlpha(!0)}getSize(){return[this.coreModel.getModel().canvasinfo.CanvasWidth,this.coreModel.getModel().canvasinfo.CanvasHeight]}getLayout(){const t={};if(this.settings.layout)for(const e of Object.keys(this.settings.layout)){const i=e.charAt(0).toLowerCase()+e.slice(1);t[i]=this.settings.layout[e]}return t}setupLayout(){super.setupLayout(),this.pixelsPerUnit=this.coreModel.getModel().canvasinfo.PixelsPerUnit,this.centeringTransform.scale(this.pixelsPerUnit,this.pixelsPerUnit).translate(this.originalWidth/2,this.originalHeight/2)}updateWebGLContext(t,e){this.renderer.firstDraw=!0,this.renderer._bufferData={vertex:null,uv:null,index:null},this.renderer.startUp(t),this.renderer._clippingManager._currentFrameNo=e,this.renderer._clippingManager._maskTexture=void 0,wi.getInstance()._shaderSets=[]}bindTexture(t,e){this.renderer.bindTexture(t,e)}getHitAreaDefs(){var t,e;return(e=(t=this.settings.hitAreas)==null?void 0:t.map(i=>({id:i.Id,name:i.Name,index:this.coreModel.getDrawableIndex(i.Id)})))!=null?e:[]}getDrawableIDs(){return this.coreModel.getDrawableIds()}getDrawableIndex(t){return this.coreModel.getDrawableIndex(t)}getDrawableVertices(t){if(typeof t=="string"&&(t=this.coreModel.getDrawableIndex(t),t===-1))throw new TypeError("Unable to find drawable ID: "+t);const e=this.coreModel.getDrawableVertices(t).slice();for(let i=0;i{function e(){try{cx(),a()}catch(i){if(Ic--,Ic<0){const n=new Error("Failed to start up Cubism 4 framework.");n.cause=i,t(n);return}le.log("Cubism4","Startup failed, retrying 10ms later..."),setTimeout(e,10)}}e()})),zs)}function cx(a){a=Object.assign({logFunction:console.log,loggingLevel:ui.LogLevel_Verbose},a),$n.startUp(a),$n.initialize()}const fx=.001,Sc=.5;class mh{static create(t){const e=new mh;typeof t.FadeInTime=="number"&&(e._fadeTimeSeconds=t.FadeInTime,e._fadeTimeSeconds<=0&&(e._fadeTimeSeconds=Sc));const i=t.Groups,n=i.length;for(let o=0;ofx){if(o>=0)break;o=y,s=t.getPartOpacityByIndex(A),s+=e/this._fadeTimeSeconds,s>1&&(s=1)}}o<0&&(o=0,s=1);for(let y=i;yg&&(E=1-g/(1-s)),x>E&&(x=E),t.setPartOpacityByIndex(A,x)}}}constructor(){this._fadeTimeSeconds=Sc,this._lastModel=void 0,this._partGroups=[],this._partGroupCounts=[]}}class Go{constructor(t){this.parameterIndex=0,this.partIndex=0,this.partId="",this.link=[],t!=null&&this.assignment(t)}assignment(t){return this.partId=t.partId,this.link=t.link.map(e=>e.clone()),this}initialize(t){this.parameterIndex=t.getParameterIndex(this.partId),this.partIndex=t.getPartIndex(this.partId),t.setParameterValueByIndex(this.parameterIndex,1)}clone(){const t=new Go;return t.partId=this.partId,t.parameterIndex=this.parameterIndex,t.partIndex=this.partIndex,t.link=this.link.map(e=>e.clone()),t}}class dx{update(){this._model.update(),this._model.drawables.resetDynamicFlags()}getCanvasWidth(){return this._model==null?0:this._model.canvasinfo.CanvasWidth/this._model.canvasinfo.PixelsPerUnit}getCanvasHeight(){return this._model==null?0:this._model.canvasinfo.CanvasHeight/this._model.canvasinfo.PixelsPerUnit}saveParameters(){const t=this._model.parameters.count,e=this._savedParameters.length;for(let i=0;ie&&(e=this._model.parameters.minimumValues[t]),this._parameterValues[t]=i==1?e:this._parameterValues[t]=this._parameterValues[t]*(1-i)+e*i}setParameterValueById(t,e,i=1){const n=this.getParameterIndex(t);this.setParameterValueByIndex(n,e,i)}addParameterValueByIndex(t,e,i=1){this.setParameterValueByIndex(t,this.getParameterValueByIndex(t)+e*i)}addParameterValueById(t,e,i=1){const n=this.getParameterIndex(t);this.addParameterValueByIndex(n,e,i)}multiplyParameterValueById(t,e,i=1){const n=this.getParameterIndex(t);this.multiplyParameterValueByIndex(n,e,i)}multiplyParameterValueByIndex(t,e,i=1){this.setParameterValueByIndex(t,this.getParameterValueByIndex(t)*(1+(e-1)*i))}getDrawableIds(){return this._drawableIds.slice()}getDrawableIndex(t){const e=this._model.drawables.count;for(let i=0;ie&&(t=e);for(let i=0;i(a[a.CubismPhysicsTargetType_Parameter=0]="CubismPhysicsTargetType_Parameter",a))(ku||{}),Ka=(a=>(a[a.CubismPhysicsSource_X=0]="CubismPhysicsSource_X",a[a.CubismPhysicsSource_Y=1]="CubismPhysicsSource_Y",a[a.CubismPhysicsSource_Angle=2]="CubismPhysicsSource_Angle",a))(Ka||{});class px{constructor(){this.initialPosition=new Dt(0,0),this.position=new Dt(0,0),this.lastPosition=new Dt(0,0),this.lastGravity=new Dt(0,0),this.force=new Dt(0,0),this.velocity=new Dt(0,0)}}class _x{constructor(){this.normalizationPosition={},this.normalizationAngle={}}}class mx{constructor(){this.source={}}}class gx{constructor(){this.destination={},this.translationScale=new Dt(0,0)}}class vx{constructor(){this.settings=[],this.inputs=[],this.outputs=[],this.particles=[],this.gravity=new Dt(0,0),this.wind=new Dt(0,0)}}class yx{constructor(t){this._json=t}release(){this._json=void 0}getGravity(){const t=new Dt(0,0);return t.x=this._json.Meta.EffectiveForces.Gravity.X,t.y=this._json.Meta.EffectiveForces.Gravity.Y,t}getWind(){const t=new Dt(0,0);return t.x=this._json.Meta.EffectiveForces.Wind.X,t.y=this._json.Meta.EffectiveForces.Wind.Y,t}getSubRigCount(){return this._json.Meta.PhysicsSettingCount}getTotalInputCount(){return this._json.Meta.TotalInputCount}getTotalOutputCount(){return this._json.Meta.TotalOutputCount}getVertexCount(){return this._json.Meta.VertexCount}getNormalizationPositionMinimumValue(t){return this._json.PhysicsSettings[t].Normalization.Position.Minimum}getNormalizationPositionMaximumValue(t){return this._json.PhysicsSettings[t].Normalization.Position.Maximum}getNormalizationPositionDefaultValue(t){return this._json.PhysicsSettings[t].Normalization.Position.Default}getNormalizationAngleMinimumValue(t){return this._json.PhysicsSettings[t].Normalization.Angle.Minimum}getNormalizationAngleMaximumValue(t){return this._json.PhysicsSettings[t].Normalization.Angle.Maximum}getNormalizationAngleDefaultValue(t){return this._json.PhysicsSettings[t].Normalization.Angle.Default}getInputCount(t){return this._json.PhysicsSettings[t].Input.length}getInputWeight(t,e){return this._json.PhysicsSettings[t].Input[e].Weight}getInputReflect(t,e){return this._json.PhysicsSettings[t].Input[e].Reflect}getInputType(t,e){return this._json.PhysicsSettings[t].Input[e].Type}getInputSourceId(t,e){return this._json.PhysicsSettings[t].Input[e].Source.Id}getOutputCount(t){return this._json.PhysicsSettings[t].Output.length}getOutputVertexIndex(t,e){return this._json.PhysicsSettings[t].Output[e].VertexIndex}getOutputAngleScale(t,e){return this._json.PhysicsSettings[t].Output[e].Scale}getOutputWeight(t,e){return this._json.PhysicsSettings[t].Output[e].Weight}getOutputDestinationId(t,e){return this._json.PhysicsSettings[t].Output[e].Destination.Id}getOutputType(t,e){return this._json.PhysicsSettings[t].Output[e].Type}getOutputReflect(t,e){return this._json.PhysicsSettings[t].Output[e].Reflect}getParticleCount(t){return this._json.PhysicsSettings[t].Vertices.length}getParticleMobility(t,e){return this._json.PhysicsSettings[t].Vertices[e].Mobility}getParticleDelay(t,e){return this._json.PhysicsSettings[t].Vertices[e].Delay}getParticleAcceleration(t,e){return this._json.PhysicsSettings[t].Vertices[e].Acceleration}getParticleRadius(t,e){return this._json.PhysicsSettings[t].Vertices[e].Radius}getParticlePosition(t,e){const i=new Dt(0,0);return i.x=this._json.PhysicsSettings[t].Vertices[e].Position.X,i.y=this._json.PhysicsSettings[t].Vertices[e].Position.Y,i}}const Ec="X",Pc="Y",Mc="Angle",bx=5,C2=100,xx=.001;class vh{static create(t){const e=new vh;return e.parse(t),e._physicsRig.gravity.y=0,e}evaluate(t,e){let i,n,o,s;const l=new Dt;let g,y,A,x,E,O,R,L;E=t.getModel().parameters.values,O=t.getModel().parameters.maximumValues,R=t.getModel().parameters.minimumValues,L=t.getModel().parameters.defaultValues;for(let N=0;N=g.particleCount)break;A[B].destinationParameterIndex==-1&&(A[B].destinationParameterIndex=t.getParameterIndex(A[B].destination.id));const X=new Dt;X.x=x[k].position.x-x[k-1].position.x,X.y=x[k].position.y-x[k-1].position.y,s=A[B].getValue(X,x,k,A[B].reflect,this._options.gravity);const J=A[B].destinationParameterIndex,j=!Float32Array.prototype.slice&&"subarray"in Float32Array.prototype?JSON.parse(JSON.stringify(E.subarray(J))):E.slice(J);Dx(j,R[J],O[J],s,A[B]);for(let z=J,Q=0;z=2?n=t[e-1].position.substract(t[e-2].position):n=n.multiplyByScaler(-1),o=de.directionToRadian(n,a),i&&(o*=-1),o}function wx(a,t){return Math.abs(Math.max(a,t)-Math.min(a,t))}function Ox(a,t){return Math.min(a,t)+wx(a,t)/2}function Rx(a,t){return a.x}function Cx(a,t){return a.y}function Lx(a,t){return t}function $x(a,t,e,i,n,o,s,l){let g,y,A,x,E=new Dt(0,0),O=new Dt(0,0),R=new Dt(0,0),L=new Dt(0,0);a[0].position=new Dt(e.x,e.y),g=de.degreesToRadian(i),x=de.radianToDirection(g),x.normalize();for(let N=1;Ne&&(s>n.valueExceededMaximum&&(n.valueExceededMaximum=s),s=e),l=n.weight/C2,l>=1||(s=a[0]*(1-l)+s*l),a[0]=s}function yh(a,t,e,i,n,o,s,l){let g=0;const y=de.max(e,t);ya&&(a=A);const x=de.min(n,o),E=de.max(n,o),O=s,R=Ox(A,y),L=a-R;switch(Math.sign(L)){case 1:{const N=E-O,B=y-R;B!=0&&(g=L*(N/B),g+=O);break}case-1:{const N=x-O,B=A-R;B!=0&&(g=L*(N/B),g+=O);break}case 0:{g=O;break}}return l?g:g*-1}xe.registerRuntime({version:4,ready:hx,test(a){return a instanceof Mi||Mi.isValidJSON(a)},isValidMoc(a){if(a.byteLength<4)return!1;const t=new Int8Array(a,0,4);return String.fromCharCode(...t)==="MOC3"},createModelSettings(a){return new Mi(a)},createCoreModel(a){const t=gh.create(a);try{const e=t.createModel();return e.__moc=t,e}catch(e){try{t.release()}catch{}throw e}},createInternalModel(a,t,e){const i=new lx(a,t,e),n=a;return n.__moc&&(i.__moc=n.__moc,delete n.__moc,i.once("destroy",Nx)),i},createPhysics(a,t){return vh.create(t)},createPose(a,t){return mh.create(t)}});function Nx(){var a;(a=this.__moc)==null||a.release()}/*! + * @pixi/graphics - v6.5.10 + * Compiled Thu, 06 Jul 2023 15:25:11 UTC + * + * @pixi/graphics is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */var Kr;(function(a){a.MITER="miter",a.BEVEL="bevel",a.ROUND="round"})(Kr||(Kr={}));var da;(function(a){a.BUTT="butt",a.ROUND="round",a.SQUARE="square"})(da||(da={}));var $i={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(a,t){if(t===void 0&&(t=20),!this.adaptive||!a||isNaN(a))return t;var e=Math.ceil(a/this.maxLength);return ethis.maxSegments&&(e=this.maxSegments),e}},bh=function(){function a(){this.color=16777215,this.alpha=1,this.texture=Rt.WHITE,this.matrix=null,this.visible=!1,this.reset()}return a.prototype.clone=function(){var t=new a;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t},a.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=Rt.WHITE,this.matrix=null,this.visible=!1},a.prototype.destroy=function(){this.texture=null,this.matrix=null},a}();/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var Uu=function(a,t){return Uu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},Uu(a,t)};function xh(a,t){Uu(a,t);function e(){this.constructor=a}a.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function wc(a,t){var e,i;t===void 0&&(t=!1);var n=a.length;if(!(n<6)){for(var o=0,s=0,l=a[n-2],g=a[n-1];s0||t&&o<=0)for(var x=n/2,s=x+x%2;s=6){wc(e,!1);for(var s=[],l=0;l=0&&l>=0&&n>=0&&o>=0)){t.length=0;return}var O=Math.ceil(2.3*Math.sqrt(s+l)),R=O*8+(n?4:0)+(o?4:0);if(t.length=R,R!==0){if(O===0){t.length=8,t[0]=t[6]=e+n,t[1]=t[3]=i+o,t[2]=t[4]=e-n,t[5]=t[7]=i-o;return}var L=0,N=O*4+(n?2:0)+2,B=N,k=R;{var X=n+s,J=o,j=e+X,z=e-X,Q=i+J;if(t[L++]=j,t[L++]=Q,t[--N]=Q,t[--N]=z,o){var at=i-J;t[B++]=z,t[B++]=at,t[--k]=at,t[--k]=j}}for(var q=1;qx&&(x+=Math.PI*2);var E=A,O=x-A,R=Math.abs(O),L=Math.sqrt(g*g+y*y),N=(15*R*Math.sqrt(L)/Math.PI>>0)+1,B=O/N;if(E+=B,l){s.push(a,t),s.push(e,i);for(var k=1,X=E;k=0&&(o.join===Kr.ROUND?R+=Ua(j,z,j-q*pt,z-tt*pt,j-ht*pt,z-xt*pt,E,!1)+4:R+=2,E.push(j-ht*dt,z-xt*dt),E.push(j+ht*pt,z+xt*pt));continue}var ce=(-q+X)*(-tt+z)-(-q+j)*(-tt+J),se=(-ht+Q)*(-xt+z)-(-ht+j)*(-xt+at),ue=(me*se-ct*ce)/Yt,Me=(nt*ce-Jt*se)/Yt,Be=(ue-j)*(ue-j)+(Me-z)*(Me-z),ge=j+(ue-j)*pt,Xt=z+(Me-z)*pt,ee=j-(ue-j)*dt,re=z-(Me-z)*dt,Gt=Math.min(me*me+Jt*Jt,ct*ct+nt*nt),He=Qt?pt:dt,Y=Gt+He*He*B,qt=Be<=Y;qt?o.join===Kr.BEVEL||Be/B>k?(Qt?(E.push(ge,Xt),E.push(j+q*dt,z+tt*dt),E.push(ge,Xt),E.push(j+ht*dt,z+xt*dt)):(E.push(j-q*pt,z-tt*pt),E.push(ee,re),E.push(j-ht*pt,z-xt*pt),E.push(ee,re)),R+=2):o.join===Kr.ROUND?Qt?(E.push(ge,Xt),E.push(j+q*dt,z+tt*dt),R+=Ua(j,z,j+q*dt,z+tt*dt,j+ht*dt,z+xt*dt,E,!0)+4,E.push(ge,Xt),E.push(j+ht*dt,z+xt*dt)):(E.push(j-q*pt,z-tt*pt),E.push(ee,re),R+=Ua(j,z,j-q*pt,z-tt*pt,j-ht*pt,z-xt*pt,E,!1)+4,E.push(j-ht*pt,z-xt*pt),E.push(ee,re)):(E.push(ge,Xt),E.push(ee,re)):(E.push(j-q*pt,z-tt*pt),E.push(j+q*dt,z+tt*dt),o.join===Kr.ROUND?Qt?R+=Ua(j,z,j+q*dt,z+tt*dt,j+ht*dt,z+xt*dt,E,!0)+2:R+=Ua(j,z,j-q*pt,z-tt*pt,j-ht*pt,z-xt*pt,E,!1)+2:o.join===Kr.MITER&&Be/B<=k&&(Qt?(E.push(ee,re),E.push(ee,re)):(E.push(ge,Xt),E.push(ge,Xt)),R+=2),E.push(j-ht*pt,z-xt*pt),E.push(j+ht*dt,z+xt*dt),R+=2)}X=i[(O-2)*2],J=i[(O-2)*2+1],j=i[(O-1)*2],z=i[(O-1)*2+1],q=-(J-z),tt=X-j,St=Math.sqrt(q*q+tt*tt),q/=St,tt/=St,q*=N,tt*=N,E.push(j-q*pt,z-tt*pt),E.push(j+q*dt,z+tt*dt),g||(o.cap===da.ROUND?R+=Ua(j-q*(pt-dt)*.5,z-tt*(pt-dt)*.5,j-q*pt,z-tt*pt,j+q*dt,z+tt*dt,E,!1)+2:o.cap===da.SQUARE&&(R+=Oc(j,z,q,tt,pt,dt,!1,E)));for(var dr=t.indices,aa=$i.epsilon*$i.epsilon,Ct=L;CtE*y}},a.arc=function(t,e,i,n,o,s,l,g,y){for(var A=l-s,x=$i._segmentsCount(Math.abs(A)*o,Math.ceil(Math.abs(A)/On)*40),E=A/(x*2),O=E*2,R=Math.cos(E),L=Math.sin(E),N=x-1,B=N%1/N,k=0;k<=N;++k){var X=k+B*k,J=E+s+O*X,j=Math.cos(J),z=-Math.sin(J);y.push((R*j+L*z)*o+i,(R*-z+L*j)*o+n)}},a}(),D2=function(){function a(){}return a.curveLength=function(t,e,i,n,o,s,l,g){for(var y=10,A=0,x=0,E=0,O=0,R=0,L=0,N=0,B=0,k=0,X=0,J=0,j=t,z=e,Q=1;Q<=y;++Q)x=Q/y,E=x*x,O=E*x,R=1-x,L=R*R,N=L*R,B=N*t+3*L*x*i+3*R*E*o+O*l,k=N*e+3*L*x*n+3*R*E*s+O*g,X=j-B,J=z-k,j=B,z=k,A+=Math.sqrt(X*X+J*J);return A},a.curveTo=function(t,e,i,n,o,s,l){var g=l[l.length-2],y=l[l.length-1];l.length-=2;var A=$i._segmentsCount(a.curveLength(g,y,t,e,i,n,o,s)),x=0,E=0,O=0,R=0,L=0;l.push(g,y);for(var N=1,B=0;N<=A;++N)B=N/A,x=1-B,E=x*x,O=E*x,R=B*B,L=R*B,l.push(O*g+3*E*B*t+3*x*R*i+L*o,O*y+3*E*B*e+3*x*R*n+L*s)},a}(),N2=function(){function a(){}return a.curveLength=function(t,e,i,n,o,s){var l=t-2*i+o,g=e-2*n+s,y=2*i-2*t,A=2*n-2*e,x=4*(l*l+g*g),E=4*(l*y+g*A),O=y*y+A*A,R=2*Math.sqrt(x+E+O),L=Math.sqrt(x),N=2*x*L,B=2*Math.sqrt(O),k=E/L;return(N*R+L*E*(R-B)+(4*O*x-E*E)*Math.log((2*L+k+R)/(k+B)))/(4*N)},a.curveTo=function(t,e,i,n,o){for(var s=o[o.length-2],l=o[o.length-1],g=$i._segmentsCount(a.curveLength(s,l,t,e,i,n)),y=0,A=0,x=1;x<=g;++x){var E=x/g;y=s+(t-s)*E,A=l+(e-l)*E,o.push(y+(t+(i-t)*E-y)*E,A+(e+(n-e)*E-A)*E)}},a}(),F2=function(){function a(){this.reset()}return a.prototype.begin=function(t,e,i){this.reset(),this.style=t,this.start=e,this.attribStart=i},a.prototype.end=function(t,e){this.attribSize=e-this.attribStart,this.size=t-this.start},a.prototype.reset=function(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0},a}(),Ga,Mo=(Ga={},Ga[je.POLY]=Th,Ga[je.CIRC]=Dn,Ga[je.ELIP]=Dn,Ga[je.RECT]=L2,Ga[je.RREC]=$2,Ga),ju=[],dn=[],Vu=function(){function a(t,e,i,n){e===void 0&&(e=null),i===void 0&&(i=null),n===void 0&&(n=null),this.points=[],this.holes=[],this.shape=t,this.lineStyle=i,this.fillStyle=e,this.matrix=n,this.type=t.type}return a.prototype.clone=function(){return new a(this.shape,this.fillStyle,this.lineStyle,this.matrix)},a.prototype.destroy=function(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null},a}(),xi=new he,B2=function(a){xh(t,a);function t(){var e=a.call(this)||this;return e.closePointEps=1e-4,e.boundsPadding=0,e.uvsFloat32=null,e.indicesUint16=null,e.batchable=!1,e.points=[],e.colors=[],e.uvs=[],e.indices=[],e.textureIds=[],e.graphicsData=[],e.drawCalls=[],e.batchDirty=-1,e.batches=[],e.dirty=0,e.cacheDirty=-1,e.clearDirty=0,e.shapeIndex=0,e._bounds=new Cn,e.boundsDirty=-1,e}return Object.defineProperty(t.prototype,"bounds",{get:function(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds},enumerable:!1,configurable:!0}),t.prototype.invalidate=function(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(var e=0;e0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this},t.prototype.drawShape=function(e,i,n,o){i===void 0&&(i=null),n===void 0&&(n=null),o===void 0&&(o=null);var s=new Vu(e,i,n,o);return this.graphicsData.push(s),this.dirty++,this},t.prototype.drawHole=function(e,i){if(i===void 0&&(i=null),!this.graphicsData.length)return null;var n=new Vu(e,null,null,i),o=this.graphicsData[this.graphicsData.length-1];return n.lineStyle=o.lineStyle,o.holes.push(n),this.dirty++,this},t.prototype.destroy=function(){a.prototype.destroy.call(this);for(var e=0;e0&&(n=this.batches[this.batches.length-1],o=n.style);for(var s=this.shapeIndex;s65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&X===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=X?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}},t.prototype._compareStyles=function(e,i){return!(!e||!i||e.texture.baseTexture!==i.texture.baseTexture||e.color+e.alpha!==i.color+i.alpha||!!e.native!=!!i.native)},t.prototype.validateBatching=function(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(var e=0,i=this.graphicsData.length;e65535*2)return!1;for(var e=this.batches,i=0;i0&&(s=dn.pop(),s||(s=new Bo,s.texArray=new Ho),this.drawCalls.push(s)),s.start=E,s.size=0,s.texArray.count=0,s.type=x),N.touched=1,N._batchEnabled=e,N._batchLocation=l,N.wrapMode=Nr.REPEAT,s.texArray.elements[s.texArray.count++]=N,l++)),s.size+=O.size,E+=O.size,y=N._batchLocation,this.addColors(n,L.color,L.alpha,O.attribSize,O.attribStart),this.addTextureIds(o,y,O.attribSize,O.attribStart)}Kt._globalBatch=e,this.packAttributes()},t.prototype.packAttributes=function(){for(var e=this.points,i=this.uvs,n=this.colors,o=this.textureIds,s=new ArrayBuffer(e.length*3*4),l=new Float32Array(s),g=new Uint32Array(s),y=0,A=0;A>16)+(i&65280)+((i&255)<<16),g=zo(l,n);e.length=Math.max(e.length,s+o);for(var y=0;y0&&e.alpha>0;return i?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._lineStyle,{visible:i},e)):this._lineStyle.reset(),this},t.prototype.startPoly=function(){if(this.currentPath){var e=this.currentPath.points,i=this.currentPath.points.length;i>2&&(this.drawShape(this.currentPath),this.currentPath=new vn,this.currentPath.closeStroke=!1,this.currentPath.points.push(e[i-2],e[i-1]))}else this.currentPath=new vn,this.currentPath.closeStroke=!1},t.prototype.finishPoly=function(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)},t.prototype.moveTo=function(e,i){return this.startPoly(),this.currentPath.points[0]=e,this.currentPath.points[1]=i,this},t.prototype.lineTo=function(e,i){this.currentPath||this.moveTo(0,0);var n=this.currentPath.points,o=n[n.length-2],s=n[n.length-1];return(o!==e||s!==i)&&n.push(e,i),this},t.prototype._initCurve=function(e,i){e===void 0&&(e=0),i===void 0&&(i=0),this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[e,i]):this.moveTo(e,i)},t.prototype.quadraticCurveTo=function(e,i,n,o){this._initCurve();var s=this.currentPath.points;return s.length===0&&this.moveTo(0,0),N2.curveTo(e,i,n,o,s),this},t.prototype.bezierCurveTo=function(e,i,n,o,s,l){return this._initCurve(),D2.curveTo(e,i,n,o,s,l,this.currentPath.points),this},t.prototype.arcTo=function(e,i,n,o,s){this._initCurve(e,i);var l=this.currentPath.points,g=Xu.curveTo(e,i,n,o,s,l);if(g){var y=g.cx,A=g.cy,x=g.radius,E=g.startAngle,O=g.endAngle,R=g.anticlockwise;this.arc(y,A,x,E,O,R)}return this},t.prototype.arc=function(e,i,n,o,s,l){if(l===void 0&&(l=!1),o===s)return this;!l&&s<=o?s+=On:l&&o<=s&&(o+=On);var g=s-o;if(g===0)return this;var y=e+Math.cos(o)*n,A=i+Math.sin(o)*n,x=this._geometry.closePointEps,E=this.currentPath?this.currentPath.points:null;if(E){var O=Math.abs(E[E.length-2]-y),R=Math.abs(E[E.length-1]-A);O0;return i?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._fillStyle,{visible:i},e)):this._fillStyle.reset(),this},t.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},t.prototype.drawRect=function(e,i,n,o){return this.drawShape(new Vt(e,i,n,o))},t.prototype.drawRoundedRect=function(e,i,n,o,s){return this.drawShape(new Bf(e,i,n,o,s))},t.prototype.drawCircle=function(e,i,n){return this.drawShape(new Nf(e,i,n))},t.prototype.drawEllipse=function(e,i,n,o){return this.drawShape(new Ff(e,i,n,o))},t.prototype.drawPolygon=function(){for(var e=arguments,i=[],n=0;n>16&255)/255*s,l.tint[1]=(o>>8&255)/255*s,l.tint[2]=(o&255)/255*s,l.tint[3]=s,e.shader.bind(i),e.geometry.bind(n,i),e.state.set(this.state);for(var y=0,A=g.length;y>16)+(y&65280)+((y&255)<<16)}}},t.prototype.calculateVertices=function(){var e=this.transform._worldID;if(this._transformID!==e){this._transformID=e;for(var i=this.transform.worldTransform,n=i.a,o=i.b,s=i.c,l=i.d,g=i.tx,y=i.ty,A=this._geometry.points,x=this.vertexData,E=0,O=0;O=o&&nn.x=s&&nn.y>16)+(e&65280)+((e&255)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texture",{get:function(){return this._texture},set:function(e){this._texture!==e&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=e||Rt.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,e&&(e.baseTexture.valid?this._onTextureUpdate():e.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),t}(Er);/*! + * @pixi/text - v6.5.10 + * Compiled Thu, 06 Jul 2023 15:25:11 UTC + * + * @pixi/text is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + *//*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var Yu=function(a,t){return Yu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},Yu(a,t)};function Xx(a,t){Yu(a,t);function e(){this.constructor=a}a.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Ni;(function(a){a[a.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",a[a.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL"})(Ni||(Ni={}));var Ks={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:Ni.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100,leading:0},jx=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],La=function(){function a(t){this.styleID=0,this.reset(),qs(this,t,t)}return a.prototype.clone=function(){var t={};return qs(t,this,Ks),new a(t)},a.prototype.reset=function(){qs(this,Ks,Ks)},Object.defineProperty(a.prototype,"align",{get:function(){return this._align},set:function(t){this._align!==t&&(this._align=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"breakWords",{get:function(){return this._breakWords},set:function(t){this._breakWords!==t&&(this._breakWords=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"dropShadow",{get:function(){return this._dropShadow},set:function(t){this._dropShadow!==t&&(this._dropShadow=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"dropShadowAlpha",{get:function(){return this._dropShadowAlpha},set:function(t){this._dropShadowAlpha!==t&&(this._dropShadowAlpha=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"dropShadowAngle",{get:function(){return this._dropShadowAngle},set:function(t){this._dropShadowAngle!==t&&(this._dropShadowAngle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"dropShadowBlur",{get:function(){return this._dropShadowBlur},set:function(t){this._dropShadowBlur!==t&&(this._dropShadowBlur=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"dropShadowColor",{get:function(){return this._dropShadowColor},set:function(t){var e=Qs(t);this._dropShadowColor!==e&&(this._dropShadowColor=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"dropShadowDistance",{get:function(){return this._dropShadowDistance},set:function(t){this._dropShadowDistance!==t&&(this._dropShadowDistance=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"fill",{get:function(){return this._fill},set:function(t){var e=Qs(t);this._fill!==e&&(this._fill=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"fillGradientType",{get:function(){return this._fillGradientType},set:function(t){this._fillGradientType!==t&&(this._fillGradientType=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"fillGradientStops",{get:function(){return this._fillGradientStops},set:function(t){Vx(this._fillGradientStops,t)||(this._fillGradientStops=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(t){this.fontFamily!==t&&(this._fontFamily=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"fontSize",{get:function(){return this._fontSize},set:function(t){this._fontSize!==t&&(this._fontSize=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(t){this._fontStyle!==t&&(this._fontStyle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"fontVariant",{get:function(){return this._fontVariant},set:function(t){this._fontVariant!==t&&(this._fontVariant=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(t){this._fontWeight!==t&&(this._fontWeight=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(t){this._letterSpacing!==t&&(this._letterSpacing=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"lineHeight",{get:function(){return this._lineHeight},set:function(t){this._lineHeight!==t&&(this._lineHeight=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"leading",{get:function(){return this._leading},set:function(t){this._leading!==t&&(this._leading=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"lineJoin",{get:function(){return this._lineJoin},set:function(t){this._lineJoin!==t&&(this._lineJoin=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"miterLimit",{get:function(){return this._miterLimit},set:function(t){this._miterLimit!==t&&(this._miterLimit=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"padding",{get:function(){return this._padding},set:function(t){this._padding!==t&&(this._padding=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"stroke",{get:function(){return this._stroke},set:function(t){var e=Qs(t);this._stroke!==e&&(this._stroke=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"strokeThickness",{get:function(){return this._strokeThickness},set:function(t){this._strokeThickness!==t&&(this._strokeThickness=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"textBaseline",{get:function(){return this._textBaseline},set:function(t){this._textBaseline!==t&&(this._textBaseline=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"trim",{get:function(){return this._trim},set:function(t){this._trim!==t&&(this._trim=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"whiteSpace",{get:function(){return this._whiteSpace},set:function(t){this._whiteSpace!==t&&(this._whiteSpace=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"wordWrap",{get:function(){return this._wordWrap},set:function(t){this._wordWrap!==t&&(this._wordWrap=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"wordWrapWidth",{get:function(){return this._wordWrapWidth},set:function(t){this._wordWrapWidth!==t&&(this._wordWrapWidth=t,this.styleID++)},enumerable:!1,configurable:!0}),a.prototype.toFontString=function(){var t=typeof this.fontSize=="number"?this.fontSize+"px":this.fontSize,e=this.fontFamily;Array.isArray(this.fontFamily)||(e=this.fontFamily.split(","));for(var i=e.length-1;i>=0;i--){var n=e[i].trim();!/([\"\'])[^\'\"]+\1/.test(n)&&jx.indexOf(n)<0&&(n='"'+n+'"'),e[i]=n}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+t+" "+e.join(",")},a}();function Rc(a){return typeof a=="number"?Ml(a):(typeof a=="string"&&a.indexOf("0x")===0&&(a=a.replace("0x","#")),a)}function Qs(a){if(Array.isArray(a)){for(var t=0;tR)if(s!==""&&(l+=a.addLine(s),s="",o=0),a.canBreakWords(B,e.breakWords))for(var j=a.wordWrapSplit(B),z=0;zR&&(l+=a.addLine(s),O=!1,s="",o=0),s+=Q,o+=ht}else{s.length>0&&(l+=a.addLine(s),s="",o=0);var xt=N===L.length-1;l+=a.addLine(B,!xt),O=!1,s="",o=0}else J+o>R&&(O=!1,l+=a.addLine(s),s="",o=0),(s.length>0||!a.isBreakingSpace(B)||O)&&(s+=B,o+=J)}return l+=a.addLine(s,!1),l},a.addLine=function(t,e){return e===void 0&&(e=!0),t=a.trimRight(t),t=e?t+` +`:t,t},a.getFromCache=function(t,e,i,n){var o=i[t];if(typeof o!="number"){var s=t.length*e;o=n.measureText(t).width+s,i[t]=o}return o},a.collapseSpaces=function(t){return t==="normal"||t==="pre-line"},a.collapseNewlines=function(t){return t==="normal"},a.trimRight=function(t){if(typeof t!="string")return"";for(var e=t.length-1;e>=0;e--){var i=t[e];if(!a.isBreakingSpace(i))break;t=t.slice(0,-1)}return t},a.isNewline=function(t){return typeof t!="string"?!1:a._newlines.indexOf(t.charCodeAt(0))>=0},a.isBreakingSpace=function(t,e){return typeof t!="string"?!1:a._breakingSpaces.indexOf(t.charCodeAt(0))>=0},a.tokenize=function(t){var e=[],i="";if(typeof t!="string")return e;for(var n=0;nl;--E){for(var L=0;L0&&N>B&&(k=(B+N)/2);var X=B+L,J=n.lineHeight*(R+1),j=X;R+1{const n=new os(i,e);return n.visible=!1,this.addChild(n),n})}onPointerMove(t){const e=this.parent.hitTest(t.data.global.x,t.data.global.y);this.texts.forEach(i=>{i.visible=e.includes(i.text)})}_render(t){const e=this.parent.internalModel,i=1/Math.sqrt(Cc(this.transform.worldTransform.a,2)+Cc(this.transform.worldTransform.b,2));this.texts.forEach(n=>{this.lineStyle({width:this.strokeWidth*i,color:n.visible?this.activeColor:this.normalColor});const o=e.getDrawableBounds(e.hitAreas[n.text].index,Yx),s=e.localTransform;o.x=o.x*s.a+s.tx,o.y=o.y*s.d+s.ty,o.width=o.width*s.a,o.height=o.height*s.d,this.drawRect(o.x,o.y,o.width,o.height),n.x=o.x+this.strokeWidth*i,n.y=o.y+this.strokeWidth*i,n.scale.set(i)}),super._render(t),this.clear()}}class Wx{constructor(t,e){Ft(this,"model"),Ft(this,"currentModelIndex",0),Ft(this,"currentClothesIndex",0),Ft(this,"hitAreaFrames"),this.options=t,this.events=e,this.hitAreaFrames=new zx}get modelIndex(){return this.currentModelIndex}set modelIndex(t){this.currentModelIndex=t}get modelClothesIndex(){return this.currentClothesIndex}set modelClothesIndex(t){this.currentClothesIndex=t}get currentModelOptions(){return this.options.models[this.modelIndex]}create(){return new Promise((t,e)=>{this.events.emit("load","loading");let i=this.currentModelOptions.path;Array.isArray(i)&&(i=this.currentModelOptions.path[this.modelClothesIndex]),this.model=S2.fromSync(i,{motionPreload:this.currentModelOptions.motionPreloadStrategy||Zc.IDLE,onError:()=>{this.events.emit("load","fail"),e()}}),this.model.on("load",()=>{this.events.emit("load","success"),t()}),this.model.on("hit",n=>{this.events.emit("hit",n),this.playRandomMotion(n)})})}settingModel(){switch(Hi()){case rr.mobile:this.setPosition(...this.currentModelOptions.mobilePosition||[]),this.setScale(this.currentModelOptions.mobileScale);break;case rr.pc:this.setPosition(...this.currentModelOptions.position||[]),this.setScale(this.currentModelOptions.scale);break}this.currentModelOptions.showHitAreaFrames&&this.addHitAreaFrames(),Ro(this.currentModelOptions.volume)&&(Ia.volume=this.currentModelOptions.volume),this.setAnchor(...this.currentModelOptions.anchor||[]),this.setRotation(this.currentModelOptions.rotation)}addHitAreaFrames(){var t;(t=this.model)==null||t.addChild(this.hitAreaFrames)}removeHitAreaFrames(){var t;(t=this.model)==null||t.removeChildren(0)}get modelSize(){var t,e;return{width:((t=this.model)==null?void 0:t.width)||0,height:((e=this.model)==null?void 0:e.height)||0}}setScale(t=.1){var e;(e=this.model)==null||e.scale.set(t,t)}setPosition(t=0,e=0){this.model.x=t,this.model.y=e}setRotation(t=0){this.model.rotation=Math.PI*t/180}setAnchor(t=0,e=0){this.model.anchor.set(t,e)}playMotion(t,e){var i;(i=this.model)==null||i.motion(t,e)}playRandomMotion(t){var e;const i=Object.keys(((e=this.model)==null?void 0:e.internalModel.motionManager.motionGroups)||{});let n=i.find(o=>t[0].includes(o.toLowerCase())||o.toLowerCase().includes(t[0]));n||(n=cu(i)),this.playMotion(n||"")}}function Kx(a){var t=this.constructor;return this.then(function(e){return t.resolve(a()).then(function(){return e})},function(e){return t.resolve(a()).then(function(){return t.reject(e)})})}function Qx(a){var t=this;return new t(function(e,i){if(!(a&&typeof a.length<"u"))return i(new TypeError(typeof a+" "+a+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var n=Array.prototype.slice.call(a);if(n.length===0)return e([]);var o=n.length;function s(g,y){if(y&&(typeof y=="object"||typeof y=="function")){var A=y.then;if(typeof A=="function"){A.call(y,function(x){s(g,x)},function(x){n[g]={status:"rejected",reason:x},--o===0&&e(n)});return}}n[g]={status:"fulfilled",value:y},--o===0&&e(n)}for(var l=0;l"u"&&(typeof self<"u"?self.globalThis=self:typeof global<"u"&&(global.globalThis=global));globalThis.Promise||(globalThis.Promise=Se);Object.assign||(Object.assign=u4);var l4=16;Date.now&&Date.prototype.getTime||(Date.now=function(){return new Date().getTime()});if(!(globalThis.performance&&globalThis.performance.now)){var h4=Date.now();globalThis.performance||(globalThis.performance={}),globalThis.performance.now=function(){return Date.now()-h4}}var Zs=Date.now(),$c=["ms","moz","webkit","o"];for(var tu=0;tu<$c.length&&!globalThis.requestAnimationFrame;++tu){var eu=$c[tu];globalThis.requestAnimationFrame=globalThis[eu+"RequestAnimationFrame"],globalThis.cancelAnimationFrame=globalThis[eu+"CancelAnimationFrame"]||globalThis[eu+"CancelRequestAnimationFrame"]}globalThis.requestAnimationFrame||(globalThis.requestAnimationFrame=function(a){if(typeof a!="function")throw new TypeError(a+"is not a function");var t=Date.now(),e=l4+Zs-t;return e<0&&(e=0),Zs=t,globalThis.self.setTimeout(function(){Zs=Date.now(),a(performance.now())},e)});globalThis.cancelAnimationFrame||(globalThis.cancelAnimationFrame=function(a){return clearTimeout(a)});Math.sign||(Math.sign=function(a){return a=Number(a),a===0||isNaN(a)?a:a>0?1:-1});Number.isInteger||(Number.isInteger=function(a){return typeof a=="number"&&isFinite(a)&&Math.floor(a)===a});globalThis.ArrayBuffer||(globalThis.ArrayBuffer=Array);globalThis.Float32Array||(globalThis.Float32Array=Array);globalThis.Uint32Array||(globalThis.Uint32Array=Array);globalThis.Uint16Array||(globalThis.Uint16Array=Array);globalThis.Uint8Array||(globalThis.Uint8Array=Array);globalThis.Int32Array||(globalThis.Int32Array=Array);/*! + * @pixi/accessibility - v6.5.10 + * Compiled Thu, 06 Jul 2023 15:25:11 UTC + * + * @pixi/accessibility is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */var j2={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:null,accessibleType:"button",accessiblePointerEvents:"auto",accessibleChildren:!0,renderId:-1};Pe.mixin(j2);var c4=9,fo=100,f4=0,d4=0,Dc=2,Nc=1,p4=-1e3,_4=-1e3,m4=2,V2=function(){function a(t){this.debug=!1,this._isActive=!1,this._isMobileAccessibility=!1,this.pool=[],this.renderId=0,this.children=[],this.androidUpdateCount=0,this.androidUpdateFrequency=500,this._hookDiv=null,(Tr.tablet||Tr.phone)&&this.createTouchHook();var e=document.createElement("div");e.style.width=fo+"px",e.style.height=fo+"px",e.style.position="absolute",e.style.top=f4+"px",e.style.left=d4+"px",e.style.zIndex=Dc.toString(),this.div=e,this.renderer=t,this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),globalThis.addEventListener("keydown",this._onKeyDown,!1)}return Object.defineProperty(a.prototype,"isActive",{get:function(){return this._isActive},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"isMobileAccessibility",{get:function(){return this._isMobileAccessibility},enumerable:!1,configurable:!0}),a.prototype.createTouchHook=function(){var t=this,e=document.createElement("button");e.style.width=Nc+"px",e.style.height=Nc+"px",e.style.position="absolute",e.style.top=p4+"px",e.style.left=_4+"px",e.style.zIndex=m4.toString(),e.style.backgroundColor="#FF0000",e.title="select to enable accessibility for this content",e.addEventListener("focus",function(){t._isMobileAccessibility=!0,t.activate(),t.destroyTouchHook()}),document.body.appendChild(e),this._hookDiv=e},a.prototype.destroyTouchHook=function(){this._hookDiv&&(document.body.removeChild(this._hookDiv),this._hookDiv=null)},a.prototype.activate=function(){var t;this._isActive||(this._isActive=!0,globalThis.document.addEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),(t=this.renderer.view.parentNode)===null||t===void 0||t.appendChild(this.div))},a.prototype.deactivate=function(){var t;!this._isActive||this._isMobileAccessibility||(this._isActive=!1,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),(t=this.div.parentNode)===null||t===void 0||t.removeChild(this.div))},a.prototype.updateAccessibleObjects=function(t){if(!(!t.visible||!t.accessibleChildren)){t.accessible&&t.interactive&&(t._accessibleActive||this.addChild(t),t.renderId=this.renderId);var e=t.children;if(e)for(var i=0;i title : "+t.title+"
tabIndex: "+t.tabIndex},a.prototype.capHitArea=function(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0);var e=this.renderer,i=e.width,n=e.height;t.x+t.width>i&&(t.width=i-t.x),t.y+t.height>n&&(t.height=n-t.y)},a.prototype.addChild=function(t){var e=this.pool.pop();e||(e=document.createElement("button"),e.style.width=fo+"px",e.style.height=fo+"px",e.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",e.style.position="absolute",e.style.zIndex=Dc.toString(),e.style.borderStyle="none",navigator.userAgent.toLowerCase().indexOf("chrome")>-1?e.setAttribute("aria-live","off"):e.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?e.setAttribute("aria-relevant","additions"):e.setAttribute("aria-relevant","text"),e.addEventListener("click",this._onClick.bind(this)),e.addEventListener("focus",this._onFocus.bind(this)),e.addEventListener("focusout",this._onFocusOut.bind(this))),e.style.pointerEvents=t.accessiblePointerEvents,e.type=t.accessibleType,t.accessibleTitle&&t.accessibleTitle!==null?e.title=t.accessibleTitle:(!t.accessibleHint||t.accessibleHint===null)&&(e.title="displayObject "+t.tabIndex),t.accessibleHint&&t.accessibleHint!==null&&e.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(e),t._accessibleActive=!0,t._accessibleDiv=e,e.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex},a.prototype._onClick=function(t){var e=this.renderer.plugins.interaction,i=t.target.displayObject,n=e.eventData;e.dispatchEvent(i,"click",n),e.dispatchEvent(i,"pointertap",n),e.dispatchEvent(i,"tap",n)},a.prototype._onFocus=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","assertive");var e=this.renderer.plugins.interaction,i=t.target.displayObject,n=e.eventData;e.dispatchEvent(i,"mouseover",n)},a.prototype._onFocusOut=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","polite");var e=this.renderer.plugins.interaction,i=t.target.displayObject,n=e.eventData;e.dispatchEvent(i,"mouseout",n)},a.prototype._onKeyDown=function(t){t.keyCode===c4&&this.activate()},a.prototype._onMouseMove=function(t){t.movementX===0&&t.movementY===0||this.deactivate()},a.prototype.destroy=function(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},a.extension={name:"accessibility",type:[oe.RendererPlugin,oe.CanvasRendererPlugin]},a}();/*! + * @pixi/interaction - v6.5.10 + * Compiled Thu, 06 Jul 2023 15:25:11 UTC + * + * @pixi/interaction is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */var Ku=function(){function a(){this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0,this.global=new he,this.target=null,this.originalEvent=null,this.identifier=null,this.isPrimary=!1,this.button=0,this.buttons=0,this.width=0,this.height=0,this.tiltX=0,this.tiltY=0,this.pointerType=null,this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0}return Object.defineProperty(a.prototype,"pointerId",{get:function(){return this.identifier},enumerable:!1,configurable:!0}),a.prototype.getLocalPosition=function(t,e,i){return t.worldTransform.applyInverse(i||this.global,e)},a.prototype.copyEvent=function(t){"isPrimary"in t&&t.isPrimary&&(this.isPrimary=!0),this.button="button"in t&&t.button;var e="buttons"in t&&t.buttons;this.buttons=Number.isInteger(e)?e:"which"in t&&t.which,this.width="width"in t&&t.width,this.height="height"in t&&t.height,this.tiltX="tiltX"in t&&t.tiltX,this.tiltY="tiltY"in t&&t.tiltY,this.pointerType="pointerType"in t&&t.pointerType,this.pressure="pressure"in t&&t.pressure,this.rotationAngle="rotationAngle"in t&&t.rotationAngle,this.twist="twist"in t&&t.twist||0,this.tangentialPressure="tangentialPressure"in t&&t.tangentialPressure||0},a.prototype.reset=function(){this.isPrimary=!1},a}();/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var Qu=function(a,t){return Qu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},Qu(a,t)};function g4(a,t){Qu(a,t);function e(){this.constructor=a}a.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var J2=function(){function a(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}return a.prototype.stopPropagation=function(){this.stopped=!0,this.stopPropagationHint=!0,this.stopsPropagatingAt=this.currentTarget},a.prototype.reset=function(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.currentTarget=null,this.target=null},a}(),wo=function(){function a(t){this._pointerId=t,this._flags=a.FLAGS.NONE}return a.prototype._doSet=function(t,e){e?this._flags=this._flags|t:this._flags=this._flags&~t},Object.defineProperty(a.prototype,"pointerId",{get:function(){return this._pointerId},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"flags",{get:function(){return this._flags},set:function(t){this._flags=t},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"none",{get:function(){return this._flags===a.FLAGS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"over",{get:function(){return(this._flags&a.FLAGS.OVER)!==0},set:function(t){this._doSet(a.FLAGS.OVER,t)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"rightDown",{get:function(){return(this._flags&a.FLAGS.RIGHT_DOWN)!==0},set:function(t){this._doSet(a.FLAGS.RIGHT_DOWN,t)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"leftDown",{get:function(){return(this._flags&a.FLAGS.LEFT_DOWN)!==0},set:function(t){this._doSet(a.FLAGS.LEFT_DOWN,t)},enumerable:!1,configurable:!0}),a.FLAGS=Object.freeze({NONE:0,OVER:1,LEFT_DOWN:2,RIGHT_DOWN:4}),a}(),v4=function(){function a(){this._tempPoint=new he}return a.prototype.recursiveFindHit=function(t,e,i,n,o){var s;if(!e||!e.visible)return!1;var l=t.data.global;o=e.interactive||o;var g=!1,y=o,A=!0;if(e.hitArea)n&&(e.worldTransform.applyInverse(l,this._tempPoint),e.hitArea.contains(this._tempPoint.x,this._tempPoint.y)?g=!0:(n=!1,A=!1)),y=!1;else if(e._mask&&n){var x=e._mask.isMaskData?e._mask.maskObject:e._mask;x&&!(!((s=x.containsPoint)===null||s===void 0)&&s.call(x,l))&&(n=!1)}if(A&&e.interactiveChildren&&e.children)for(var E=e.children,O=E.length-1;O>=0;O--){var R=E[O],L=this.recursiveFindHit(t,R,i,n,y);if(L){if(!R.parent)continue;y=!1,L&&(t.target&&(n=!1),g=!0)}}return o&&(n&&!t.target&&!e.hitArea&&e.containsPoint&&e.containsPoint(l)&&(g=!0),e.interactive&&(g&&!t.target&&(t.target=e),i&&i(t,e,!!g))),g},a.prototype.findHit=function(t,e,i,n){this.recursiveFindHit(t,e,i,n,!1)},a}(),Y2={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return this.cursor==="pointer"},set buttonMode(a){a?this.cursor="pointer":this.cursor==="pointer"&&(this.cursor=null)},cursor:null,get trackedPointers(){return this._trackedPointers===void 0&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0};Pe.mixin(Y2);var po=1,_o={target:null,data:{global:null}},z2=function(a){g4(t,a);function t(e,i){var n=a.call(this)||this;return i=i||{},n.renderer=e,n.autoPreventDefault=i.autoPreventDefault!==void 0?i.autoPreventDefault:!0,n.interactionFrequency=i.interactionFrequency||10,n.mouse=new Ku,n.mouse.identifier=po,n.mouse.global.set(-999999),n.activeInteractionData={},n.activeInteractionData[po]=n.mouse,n.interactionDataPool=[],n.eventData=new J2,n.interactionDOMElement=null,n.moveWhenInside=!1,n.eventsAdded=!1,n.tickerAdded=!1,n.mouseOverRenderer=!("PointerEvent"in globalThis),n.supportsTouchEvents="ontouchstart"in globalThis,n.supportsPointerEvents=!!globalThis.PointerEvent,n.onPointerUp=n.onPointerUp.bind(n),n.processPointerUp=n.processPointerUp.bind(n),n.onPointerCancel=n.onPointerCancel.bind(n),n.processPointerCancel=n.processPointerCancel.bind(n),n.onPointerDown=n.onPointerDown.bind(n),n.processPointerDown=n.processPointerDown.bind(n),n.onPointerMove=n.onPointerMove.bind(n),n.processPointerMove=n.processPointerMove.bind(n),n.onPointerOut=n.onPointerOut.bind(n),n.processPointerOverOut=n.processPointerOverOut.bind(n),n.onPointerOver=n.onPointerOver.bind(n),n.cursorStyles={default:"inherit",pointer:"pointer"},n.currentCursorMode=null,n.cursor=null,n.resolution=1,n.delayedEvents=[],n.search=new v4,n._tempDisplayObject=new uh,n._eventListenerOptions={capture:!0,passive:!1},n._useSystemTicker=i.useSystemTicker!==void 0?i.useSystemTicker:!0,n.setTargetElement(n.renderer.view,n.renderer.resolution),n}return Object.defineProperty(t.prototype,"useSystemTicker",{get:function(){return this._useSystemTicker},set:function(e){this._useSystemTicker=e,e?this.addTickerListener():this.removeTickerListener()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastObjectRendered",{get:function(){return this.renderer._lastObjectRendered||this._tempDisplayObject},enumerable:!1,configurable:!0}),t.prototype.hitTest=function(e,i){return _o.target=null,_o.data.global=e,i||(i=this.lastObjectRendered),this.processInteractive(_o,i,null,!0),_o.target},t.prototype.setTargetElement=function(e,i){i===void 0&&(i=1),this.removeTickerListener(),this.removeEvents(),this.interactionDOMElement=e,this.resolution=i,this.addEvents(),this.addTickerListener()},t.prototype.addTickerListener=function(){this.tickerAdded||!this.interactionDOMElement||!this._useSystemTicker||(ze.system.add(this.tickerUpdate,this,ta.INTERACTION),this.tickerAdded=!0)},t.prototype.removeTickerListener=function(){this.tickerAdded&&(ze.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)},t.prototype.addEvents=function(){if(!(this.eventsAdded||!this.interactionDOMElement)){var e=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(e.msContentZooming="none",e.msTouchAction="none"):this.supportsPointerEvents&&(e.touchAction="none"),this.supportsPointerEvents?(globalThis.document.addEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.addEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.addEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.eventsAdded=!0}},t.prototype.removeEvents=function(){if(!(!this.eventsAdded||!this.interactionDOMElement)){var e=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(e.msContentZooming="",e.msTouchAction=""):this.supportsPointerEvents&&(e.touchAction=""),this.supportsPointerEvents?(globalThis.document.removeEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.removeEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.removeEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.interactionDOMElement=null,this.eventsAdded=!1}},t.prototype.tickerUpdate=function(e){this._deltaTime+=e,!(this._deltaTime0&&(l=e.composedPath()[0]);for(var g=l!==this.interactionDOMElement?"outside":"",y=0;y"u"&&(s.button=e.touches.length?1:0),typeof s.buttons>"u"&&(s.buttons=e.touches.length?1:0),typeof s.isPrimary>"u"&&(s.isPrimary=e.touches.length===1&&e.type==="touchstart"),typeof s.width>"u"&&(s.width=s.radiusX||1),typeof s.height>"u"&&(s.height=s.radiusY||1),typeof s.tiltX>"u"&&(s.tiltX=0),typeof s.tiltY>"u"&&(s.tiltY=0),typeof s.pointerType>"u"&&(s.pointerType="touch"),typeof s.pointerId>"u"&&(s.pointerId=s.identifier||0),typeof s.pressure>"u"&&(s.pressure=s.force||.5),typeof s.twist>"u"&&(s.twist=0),typeof s.tangentialPressure>"u"&&(s.tangentialPressure=0),typeof s.layerX>"u"&&(s.layerX=s.offsetX=s.clientX),typeof s.layerY>"u"&&(s.layerY=s.offsetY=s.clientY),s.isNormalized=!0,i.push(s)}else if(!globalThis.MouseEvent||e instanceof MouseEvent&&(!this.supportsPointerEvents||!(e instanceof globalThis.PointerEvent))){var l=e;typeof l.isPrimary>"u"&&(l.isPrimary=!0),typeof l.width>"u"&&(l.width=1),typeof l.height>"u"&&(l.height=1),typeof l.tiltX>"u"&&(l.tiltX=0),typeof l.tiltY>"u"&&(l.tiltY=0),typeof l.pointerType>"u"&&(l.pointerType="mouse"),typeof l.pointerId>"u"&&(l.pointerId=po),typeof l.pressure>"u"&&(l.pressure=.5),typeof l.twist>"u"&&(l.twist=0),typeof l.tangentialPressure>"u"&&(l.tangentialPressure=0),l.isNormalized=!0,i.push(l)}else i.push(e);return i},t.prototype.destroy=function(){this.removeEvents(),this.removeTickerListener(),this.removeAllListeners(),this.renderer=null,this.mouse=null,this.eventData=null,this.interactionDOMElement=null,this.onPointerDown=null,this.processPointerDown=null,this.onPointerUp=null,this.processPointerUp=null,this.onPointerCancel=null,this.processPointerCancel=null,this.onPointerMove=null,this.processPointerMove=null,this.onPointerOut=null,this.processPointerOverOut=null,this.onPointerOver=null,this.search=null},t.extension={name:"interaction",type:[oe.RendererPlugin,oe.CanvasRendererPlugin]},t}(ga);/*! + * @pixi/extract - v6.5.10 + * Compiled Thu, 06 Jul 2023 15:25:11 UTC + * + * @pixi/extract is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */var y4=new Vt,b4=4,W2=function(){function a(t){this.renderer=t}return a.prototype.image=function(t,e,i){var n=new Image;return n.src=this.base64(t,e,i),n},a.prototype.base64=function(t,e,i){return this.canvas(t).toDataURL(e,i)},a.prototype.canvas=function(t,e){var i=this._rawPixels(t,e),n=i.pixels,o=i.width,s=i.height,l=i.flipY,g=new Ou(o,s,1),y=g.context.getImageData(0,0,o,s);if(a.arrayPostDivide(n,y.data),g.context.putImageData(y,0,0),l){var A=new Ou(g.width,g.height,1);A.context.scale(1,-1),A.context.drawImage(g.canvas,0,-s),g.destroy(),g=A}return g.canvas},a.prototype.pixels=function(t,e){var i=this._rawPixels(t,e).pixels;return a.arrayPostDivide(i,i),i},a.prototype._rawPixels=function(t,e){var i=this.renderer,n,o=!1,s,l=!1;if(t)if(t instanceof Ra)s=t;else{var g=i.context.webGLVersion>=2?i.multisample:_e.NONE;if(s=this.renderer.generateTexture(t,{multisample:g}),g!==_e.NONE){var y=Ra.create({width:s.width,height:s.height});i.framebuffer.bind(s.framebuffer),i.framebuffer.blit(y.framebuffer),i.framebuffer.bind(null),s.destroy(!0),s=y}l=!0}s?(n=s.baseTexture.resolution,e=e??s.frame,o=!1,i.renderTexture.bind(s)):(n=i.resolution,e||(e=y4,e.width=i.width,e.height=i.height),o=!0,i.renderTexture.bind(null));var A=Math.round(e.width*n),x=Math.round(e.height*n),E=new Uint8Array(b4*A*x),O=i.gl;return O.readPixels(Math.round(e.x*n),Math.round(e.y*n),A,x,O.RGBA,O.UNSIGNED_BYTE,E),l&&s.destroy(!0),{pixels:E,width:A,height:x,flipY:o}},a.prototype.destroy=function(){this.renderer=null},a.arrayPostDivide=function(t,e){for(var i=0;i"u"&&(ru=!!(globalThis.XDomainRequest&&!("withCredentials"in new XMLHttpRequest))),ru&&this.crossOrigin?this._loadXdr():this._loadXhr();break}}},a.prototype._hasFlag=function(t){return(this._flags&t)!==0},a.prototype._setFlag=function(t,e){this._flags=e?this._flags|t:this._flags&~t},a.prototype._clearEvents=function(){clearTimeout(this._elementTimer),this.data&&this.data.removeEventListener&&(this.data.removeEventListener("error",this._boundOnError,!1),this.data.removeEventListener("load",this._boundComplete,!1),this.data.removeEventListener("progress",this._boundOnProgress,!1),this.data.removeEventListener("canplaythrough",this._boundComplete,!1)),this.xhr&&(this.xhr.removeEventListener?(this.xhr.removeEventListener("error",this._boundXhrOnError,!1),this.xhr.removeEventListener("timeout",this._boundXhrOnTimeout,!1),this.xhr.removeEventListener("abort",this._boundXhrOnAbort,!1),this.xhr.removeEventListener("progress",this._boundOnProgress,!1),this.xhr.removeEventListener("load",this._boundXhrOnLoad,!1)):(this.xhr.onerror=null,this.xhr.ontimeout=null,this.xhr.onprogress=null,this.xhr.onload=null))},a.prototype._finish=function(){if(this.isComplete)throw new Error("Complete called again for an already completed resource.");this._setFlag(a.STATUS_FLAGS.COMPLETE,!0),this._setFlag(a.STATUS_FLAGS.LOADING,!1),this.onComplete.dispatch(this)},a.prototype._loadElement=function(t){this.metadata.loadElement?this.data=this.metadata.loadElement:t==="image"&&typeof globalThis.Image<"u"?this.data=new Image:this.data=document.createElement(t),this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.metadata.skipSource||(this.data.src=this.url),this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))},a.prototype._loadSourceElement=function(t){if(this.metadata.loadElement?this.data=this.metadata.loadElement:t==="audio"&&typeof globalThis.Audio<"u"?this.data=new Audio:this.data=document.createElement(t),this.data===null){this.abort("Unsupported element: "+t);return}if(this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),!this.metadata.skipSource)if(navigator.isCocoonJS)this.data.src=Array.isArray(this.url)?this.url[0]:this.url;else if(Array.isArray(this.url))for(var e=this.metadata.mimeType,i=0;i"u"?Bc:t.status;(t.responseType===""||t.responseType==="text"||typeof t.responseType>"u")&&(e=t.responseText),i===x4&&(e.length>0||t.responseType===a.XHR_RESPONSE_TYPE.BUFFER)?i=Bc:i===A4&&(i=T4);var n=i/100|0;if(n===I4)if(this.xhrType===a.XHR_RESPONSE_TYPE.TEXT)this.data=e,this.type=a.TYPE.TEXT;else if(this.xhrType===a.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(e),this.type=a.TYPE.JSON}catch(l){this.abort("Error trying to parse loaded json: "+l);return}else if(this.xhrType===a.XHR_RESPONSE_TYPE.DOCUMENT)try{if(globalThis.DOMParser){var o=new DOMParser;this.data=o.parseFromString(e,"text/xml")}else{var s=document.createElement("div");s.innerHTML=e,this.data=s}this.type=a.TYPE.XML}catch(l){this.abort("Error trying to parse loaded xml: "+l);return}else this.data=t.response||e;else{this.abort("["+t.status+"] "+t.statusText+": "+t.responseURL);return}this.complete()},a.prototype._determineCrossOrigin=function(t,e){if(t.indexOf("data:")===0)return"";if(globalThis.origin!==globalThis.location.origin)return"anonymous";e=e||globalThis.location,go||(go=document.createElement("a")),go.href=t;var i=K2(go.href,{strictMode:!0}),n=!i.port&&e.port===""||i.port===e.port,o=i.protocol?i.protocol+":":"";return i.host!==e.hostname||!n||o!==e.protocol?"anonymous":""},a.prototype._determineXhrType=function(){return a._xhrTypeMap[this.extension]||a.XHR_RESPONSE_TYPE.TEXT},a.prototype._determineLoadType=function(){return a._loadTypeMap[this.extension]||a.LOAD_TYPE.XHR},a.prototype._getExtension=function(t){t===void 0&&(t=this.url);var e="";if(this.isDataUrl){var i=t.indexOf("/");e=t.substring(i+1,t.indexOf(";",i))}else{var n=t.indexOf("?"),o=t.indexOf("#"),s=Math.min(n>-1?n:t.length,o>-1?o:t.length);t=t.substring(0,s),e=t.substring(t.lastIndexOf(".")+1)}return e.toLowerCase()},a.prototype._getMimeFromXhrType=function(t){switch(t){case a.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case a.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case a.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case a.XHR_RESPONSE_TYPE.JSON:return"application/json";case a.XHR_RESPONSE_TYPE.DEFAULT:case a.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},a}();(function(a){(function(t){t[t.NONE=0]="NONE",t[t.DATA_URL=1]="DATA_URL",t[t.COMPLETE=2]="COMPLETE",t[t.LOADING=4]="LOADING"})(a.STATUS_FLAGS||(a.STATUS_FLAGS={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.JSON=1]="JSON",t[t.XML=2]="XML",t[t.IMAGE=3]="IMAGE",t[t.AUDIO=4]="AUDIO",t[t.VIDEO=5]="VIDEO",t[t.TEXT=6]="TEXT"}(a.TYPE||(a.TYPE={})),function(t){t[t.XHR=1]="XHR",t[t.IMAGE=2]="IMAGE",t[t.AUDIO=3]="AUDIO",t[t.VIDEO=4]="VIDEO"}(a.LOAD_TYPE||(a.LOAD_TYPE={})),function(t){t.DEFAULT="text",t.BUFFER="arraybuffer",t.BLOB="blob",t.DOCUMENT="document",t.JSON="json",t.TEXT="text"}(a.XHR_RESPONSE_TYPE||(a.XHR_RESPONSE_TYPE={})),a._loadTypeMap={gif:a.LOAD_TYPE.IMAGE,png:a.LOAD_TYPE.IMAGE,bmp:a.LOAD_TYPE.IMAGE,jpg:a.LOAD_TYPE.IMAGE,jpeg:a.LOAD_TYPE.IMAGE,tif:a.LOAD_TYPE.IMAGE,tiff:a.LOAD_TYPE.IMAGE,webp:a.LOAD_TYPE.IMAGE,tga:a.LOAD_TYPE.IMAGE,avif:a.LOAD_TYPE.IMAGE,svg:a.LOAD_TYPE.IMAGE,"svg+xml":a.LOAD_TYPE.IMAGE,mp3:a.LOAD_TYPE.AUDIO,ogg:a.LOAD_TYPE.AUDIO,wav:a.LOAD_TYPE.AUDIO,mp4:a.LOAD_TYPE.VIDEO,webm:a.LOAD_TYPE.VIDEO},a._xhrTypeMap={xhtml:a.XHR_RESPONSE_TYPE.DOCUMENT,html:a.XHR_RESPONSE_TYPE.DOCUMENT,htm:a.XHR_RESPONSE_TYPE.DOCUMENT,xml:a.XHR_RESPONSE_TYPE.DOCUMENT,tmx:a.XHR_RESPONSE_TYPE.DOCUMENT,svg:a.XHR_RESPONSE_TYPE.DOCUMENT,tsx:a.XHR_RESPONSE_TYPE.DOCUMENT,gif:a.XHR_RESPONSE_TYPE.BLOB,png:a.XHR_RESPONSE_TYPE.BLOB,bmp:a.XHR_RESPONSE_TYPE.BLOB,jpg:a.XHR_RESPONSE_TYPE.BLOB,jpeg:a.XHR_RESPONSE_TYPE.BLOB,tif:a.XHR_RESPONSE_TYPE.BLOB,tiff:a.XHR_RESPONSE_TYPE.BLOB,webp:a.XHR_RESPONSE_TYPE.BLOB,tga:a.XHR_RESPONSE_TYPE.BLOB,avif:a.XHR_RESPONSE_TYPE.BLOB,json:a.XHR_RESPONSE_TYPE.JSON,text:a.XHR_RESPONSE_TYPE.TEXT,txt:a.XHR_RESPONSE_TYPE.TEXT,ttf:a.XHR_RESPONSE_TYPE.BUFFER,otf:a.XHR_RESPONSE_TYPE.BUFFER},a.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="})(Ie||(Ie={}));function Xa(){}function S4(a){return function(){for(var t=arguments,e=[],i=0;i>2,n[1]=(i[0]&3)<<4|i[1]>>4,n[2]=(i[1]&15)<<2|i[2]>>6,n[3]=i[2]&63;var s=e-(a.length-1);switch(s){case 2:n[3]=64,n[2]=64;break;case 1:n[3]=64;break}for(var o=0;o0&&o[o.length-1])&&(y[0]===6||y[0]===2)){e=0;continue}if(y[0]===3&&(!o||y[1]>o[0]&&y[1]=33776&&e<=33779)return"s3tc";if(e>=37488&&e<=37497)return"etc";if(e>=35840&&e<=35843)return"pvrtc";if(e>=36196)return"etc1";if(e>=35986&&e<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")},t._createLevelBuffers=function(e,i,n,o,s,l,g){for(var y=new Array(n),A=e.byteOffset,x=l,E=g,O=x+o-1&~(o-1),R=E+s-1&~(s-1),L=O*R*Bn[i],N=0;N1?x:O,levelHeight:n>1?E:R,levelBuffer:new Uint8Array(e.buffer,A,L)},A+=L,x=x>>1||1,E=E>>1||1,O=x+o-1&~(o-1),R=E+s-1&~(s-1),L=O*R*Bn[i];return y},t}(td),ed=function(){function a(){}return a.use=function(t,e){var i=t.data,n=this;if(t.type===Ie.TYPE.JSON&&i&&i.cacheID&&i.textures){for(var o=i.textures,s=void 0,l=void 0,g=0,y=o.length;g>>1,tt=tt>>>1}for(var pt=z,ht=0;ht1||o!==0?q:ht,levelHeight:O>1||o!==0?tt:xt,levelBuffer:new Uint8Array(t,dt,at)},dt+=at}St+=pt+4,St=St%4!==0?St+4-St%4:St,q=q>>1||1,tt=tt>>1||1,ht=q+L-1&~(L-1),xt=tt+N-1&~(N-1),at=ht*xt*j}return o!==0?{uncompressed:X.map(function(Jt){var ct=Jt[0].levelBuffer,nt=!1;return o===Et.FLOAT?ct=new Float32Array(Jt[0].levelBuffer.buffer,Jt[0].levelBuffer.byteOffset,Jt[0].levelBuffer.byteLength/4):o===Et.UNSIGNED_INT?(nt=!0,ct=new Uint32Array(Jt[0].levelBuffer.buffer,Jt[0].levelBuffer.byteOffset,Jt[0].levelBuffer.byteLength/4)):o===Et.INT&&(nt=!0,ct=new Int32Array(Jt[0].levelBuffer.buffer,Jt[0].levelBuffer.byteOffset,Jt[0].levelBuffer.byteLength/4)),{resource:new si(ct,{width:Jt[0].levelWidth,height:Jt[0].levelHeight}),type:o,format:nt?q4(s):s}}),kvData:z}:{compressed:X.map(function(Jt){return new Xo(null,{format:l,width:g,height:y,levels:O,levelBuffers:Jt})}),kvData:z}}function Q4(a,t){for(var e=0;et-n){console.error("KTXLoader: keyAndValueByteSize out of bounds");break}for(var g=0;gl&&(n=l),s._properties=[!1,!0,!1,!1,!1],s._maxSize=e,s._batchSize=n,s._buffers=null,s._bufferUpdateIDs=[],s._updateID=0,s.interactiveChildren=!1,s.blendMode=Pt.NORMAL,s.autoResize=o,s.roundPixels=!0,s.baseTexture=null,s.setProperties(i),s._tint=0,s.tintRgb=new Float32Array(4),s.tint=16777215,s}return t.prototype.setProperties=function(e){e&&(this._properties[0]="vertices"in e||"scale"in e?!!e.vertices||!!e.scale:this._properties[0],this._properties[1]="position"in e?!!e.position:this._properties[1],this._properties[2]="rotation"in e?!!e.rotation:this._properties[2],this._properties[3]="uvs"in e?!!e.uvs:this._properties[3],this._properties[4]="tint"in e||"alpha"in e?!!e.tint||!!e.alpha:this._properties[4])},t.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},Object.defineProperty(t.prototype,"tint",{get:function(){return this._tint},set:function(e){this._tint=e,ni(e,this.tintRgb)},enumerable:!1,configurable:!0}),t.prototype.render=function(e){var i=this;!this.visible||this.worldAlpha<=0||!this.children.length||!this.renderable||(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.valid||this.baseTexture.once("update",function(){return i.onChildrenChange(0)})),e.batch.setObjectRenderer(e.plugins.particle),e.plugins.particle.render(this))},t.prototype.onChildrenChange=function(e){for(var i=Math.floor(e/this._batchSize);this._bufferUpdateIDs.lengthn&&!e.autoResize&&(l=n);var g=e._buffers;g||(g=e._buffers=this.generateBuffers(e));var y=i[0]._texture.baseTexture,A=y.alphaMode>0;this.state.blendMode=Rl(e.blendMode,A),s.state.set(this.state);var x=s.gl,E=e.worldTransform.copyTo(this.tempMatrix);E.prepend(s.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=E.toArray(!0),this.shader.uniforms.uColor=wf(e.tintRgb,e.worldAlpha,this.shader.uniforms.uColor,A),this.shader.uniforms.uSampler=y,this.renderer.shader.bind(this.shader);for(var O=!1,R=0,L=0;Ro&&(N=o),L>=g.length&&g.push(this._generateOneMoreBuffer(e));var B=g[L];B.uploadDynamic(i,R,N);var k=e._bufferUpdateIDs[L]||0;O=O||B._updateID0,x=y.alpha,E=x<1&&A?zo(y._tintRGB,x):y._tintRGB+(x*255<<24);o[l]=E,o[l+s]=E,o[l+s*2]=E,o[l+s*3]=E,l+=s*4}},t.prototype.destroy=function(){a.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null},t.extension={name:"particle",type:oe.RendererPlugin},t}(Gn);/*! + * @pixi/prepare - v6.5.10 + * Compiled Thu, 06 Jul 2023 15:25:11 UTC + * + * @pixi/prepare is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */gt.UPLOADS_PER_FRAME=4;/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var al=function(a,t){return al=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},al(a,t)};function aT(a,t){al(a,t);function e(){this.constructor=a}a.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var cd=function(){function a(t){this.maxItemsPerFrame=t,this.itemsLeft=0}return a.prototype.beginFrame=function(){this.itemsLeft=this.maxItemsPerFrame},a.prototype.allowedToUpload=function(){return this.itemsLeft-- >0},a}();function iT(a,t){var e=!1;if(a&&a._textures&&a._textures.length){for(var i=0;i=0;e--)this.add(t.children[e]);return this},a.prototype.destroy=function(){this.ticking&&ze.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null},a}();function dd(a,t){return t instanceof Kt?(t._glTextures[a.CONTEXT_UID]||a.texture.bind(t),!0):!1}function cT(a,t){if(!(t instanceof Di))return!1;var e=t.geometry;t.finishPoly(),e.updateBatches();for(var i=e.batches,n=0;n=o&&un.x=s&&un.y1?pa.from(gT,vT,i):pa.from(jc,mT,i)},t.prototype.render=function(e){var i=this.renderer,n=this.quad,o=n.vertices;o[0]=o[6]=e._width*-e.anchor.x,o[1]=o[3]=e._height*-e.anchor.y,o[2]=o[4]=e._width*(1-e.anchor.x),o[5]=o[7]=e._height*(1-e.anchor.y);var s=e.uvRespectAnchor?e.anchor.x:0,l=e.uvRespectAnchor?e.anchor.y:0;o=n.uvs,o[0]=o[6]=-s,o[1]=o[3]=-l,o[2]=o[4]=1-s,o[5]=o[7]=1-l,n.invalidate();var g=e._texture,y=g.baseTexture,A=y.alphaMode>0,x=e.tileTransform.localTransform,E=e.uvMatrix,O=y.isPowerOfTwo&&g.frame.width===y.width&&g.frame.height===y.height;O&&(y._glTextures[i.CONTEXT_UID]?O=y.wrapMode!==Nr.CLAMP:y.wrapMode===Nr.CLAMP&&(y.wrapMode=Nr.REPEAT));var R=O?this.simpleShader:this.shader,L=g.width,N=g.height,B=e._width,k=e._height;xo.set(x.a*L/B,x.b*L/k,x.c*N/B,x.d*N/k,x.tx/B,x.ty/k),xo.invert(),O?xo.prepend(E.mapCoord):(R.uniforms.uMapCoord=E.mapCoord.toArray(!0),R.uniforms.uClampFrame=E.uClampFrame,R.uniforms.uClampOffset=E.uClampOffset),R.uniforms.uTransform=xo.toArray(!0),R.uniforms.uColor=Cl(e.tint,e.worldAlpha,R.uniforms.uColor,A),R.uniforms.translationMatrix=e.transform.worldTransform.toArray(!0),R.uniforms.uSampler=g,i.shader.bind(R),i.geometry.bind(n),this.state.blendMode=Rl(e.blendMode,A),i.state.set(this.state),i.geometry.draw(this.renderer.gl.TRIANGLES,6,0)},t.extension={name:"tilingSprite",type:oe.RendererPlugin},t}(Gn);/*! + * @pixi/mesh - v6.5.10 + * Compiled Thu, 06 Jul 2023 15:25:11 UTC + * + * @pixi/mesh is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + *//*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var nl=function(a,t){return nl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},nl(a,t)};function Ah(a,t){nl(a,t);function e(){this.constructor=a}a.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var yd=function(){function a(t,e){this.uvBuffer=t,this.uvMatrix=e,this.data=null,this._bufferUpdateId=-1,this._textureUpdateId=-1,this._updateID=0}return a.prototype.update=function(t){if(!(!t&&this._bufferUpdateId===this.uvBuffer._updateID&&this._textureUpdateId===this.uvMatrix._updateID)){this._bufferUpdateId=this.uvBuffer._updateID,this._textureUpdateId=this.uvMatrix._updateID;var e=this.uvBuffer.data;(!this.data||this.data.length!==e.length)&&(this.data=new Float32Array(e.length)),this.uvMatrix.multiplyUvs(e,this.data),this._updateID++}},a}(),su=new he,Vc=new vn,Fi=function(a){Ah(t,a);function t(e,i,n,o){o===void 0&&(o=xr.TRIANGLES);var s=a.call(this)||this;return s.geometry=e,s.shader=i,s.state=n||Da.for2d(),s.drawMode=o,s.start=0,s.size=0,s.uvs=null,s.indices=null,s.vertexData=new Float32Array(1),s.vertexDirty=-1,s._transformID=-1,s._roundPixels=gt.ROUND_PIXELS,s.batchUvs=null,s}return Object.defineProperty(t.prototype,"geometry",{get:function(){return this._geometry},set:function(e){this._geometry!==e&&(this._geometry&&(this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose()),this._geometry=e,this._geometry&&this._geometry.refCount++,this.vertexDirty=-1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uvBuffer",{get:function(){return this.geometry.buffers[1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verticesBuffer",{get:function(){return this.geometry.buffers[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"material",{get:function(){return this.shader},set:function(e){this.shader=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(e){this.state.blendMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(e){this._roundPixels!==e&&(this._transformID=-1),this._roundPixels=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tint",{get:function(){return"tint"in this.shader?this.shader.tint:null},set:function(e){this.shader.tint=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texture",{get:function(){return"texture"in this.shader?this.shader.texture:null},set:function(e){this.shader.texture=e},enumerable:!1,configurable:!0}),t.prototype._render=function(e){var i=this.geometry.buffers[0].data,n=this.shader;n.batchable&&this.drawMode===xr.TRIANGLES&&i.length>16)+(e&65280)+((e&255)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),t.prototype.update=function(){if(this._colorDirty){this._colorDirty=!1;var e=this.texture.baseTexture;Cl(this._tint,this._alpha,this.uniforms.uColor,e.alphaMode)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)},t}(pa),Xn=function(a){Ah(t,a);function t(e,i,n){var o=a.call(this)||this,s=new Fe(e),l=new Fe(i,!0),g=new Fe(n,!0,!0);return o.addAttribute("aVertexPosition",s,2,!1,Et.FLOAT).addAttribute("aTextureCoord",l,2,!1,Et.FLOAT).addIndex(g),o._updateId=-1,o}return Object.defineProperty(t.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0}),t}(Gi);/*! + * @pixi/text-bitmap - v6.5.10 + * Compiled Thu, 06 Jul 2023 15:25:11 UTC + * + * @pixi/text-bitmap is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + *//*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var ol=function(a,t){return ol=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},ol(a,t)};function xT(a,t){ol(a,t);function e(){this.constructor=a}a.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Hn=function(){function a(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]}return a}(),bd=function(){function a(){}return a.test=function(t){return typeof t=="string"&&t.indexOf("info face=")===0},a.parse=function(t){var e=t.match(/^[a-z]+\s+.+$/gm),i={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(var n in e){var o=e[n].match(/^[a-z]+/gm)[0],s=e[n].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),l={};for(var g in s){var y=s[g].split("="),A=y[0],x=y[1].replace(/"/gm,""),E=parseFloat(x),O=isNaN(E)?x:E;l[A]=O}i[o].push(l)}var R=new Hn;return i.info.forEach(function(L){return R.info.push({face:L.face,size:parseInt(L.size,10)})}),i.common.forEach(function(L){return R.common.push({lineHeight:parseInt(L.lineHeight,10)})}),i.page.forEach(function(L){return R.page.push({id:parseInt(L.id,10),file:L.file})}),i.char.forEach(function(L){return R.char.push({id:parseInt(L.id,10),page:parseInt(L.page,10),x:parseInt(L.x,10),y:parseInt(L.y,10),width:parseInt(L.width,10),height:parseInt(L.height,10),xoffset:parseInt(L.xoffset,10),yoffset:parseInt(L.yoffset,10),xadvance:parseInt(L.xadvance,10)})}),i.kerning.forEach(function(L){return R.kerning.push({first:parseInt(L.first,10),second:parseInt(L.second,10),amount:parseInt(L.amount,10)})}),i.distanceField.forEach(function(L){return R.distanceField.push({distanceRange:parseInt(L.distanceRange,10),fieldType:L.fieldType})}),R},a}(),jo=function(){function a(){}return a.test=function(t){return t instanceof XMLDocument&&t.getElementsByTagName("page").length&&t.getElementsByTagName("info")[0].getAttribute("face")!==null},a.parse=function(t){for(var e=new Hn,i=t.getElementsByTagName("info"),n=t.getElementsByTagName("common"),o=t.getElementsByTagName("page"),s=t.getElementsByTagName("char"),l=t.getElementsByTagName("kerning"),g=t.getElementsByTagName("distanceField"),y=0;y")>-1){var e=new globalThis.DOMParser().parseFromString(t,"text/xml");return jo.test(e)}return!1},a.parse=function(t){var e=new globalThis.DOMParser().parseFromString(t,"text/xml");return jo.parse(e)},a}(),uu=[bd,jo,xd];function Ih(a){for(var t=0;t=y-q*l){if(L===0)throw new Error("[BitmapFont] textureHeight "+y+"px is too small "+("(fontFamily: '"+x.fontFamily+"', fontSize: "+x.fontSize+"px, char: '"+z+"')"));--j,N=null,B=null,k=null,L=0,R=0,X=0;continue}if(X=Math.max(q+Q.fontProperties.descent,X),tt*l+R>=E){if(R===0)throw new Error("[BitmapFont] textureWidth "+g+"px is too small "+("(fontFamily: '"+x.fontFamily+"', fontSize: "+x.fontSize+"px, char: '"+z+"')"));--j,L+=X*l,L=Math.ceil(L),R=0,X=0;continue}AT(N,B,Q,R,L,l,x);var ht=Oo(Q.text);O.char.push({id:ht,page:J.length-1,x:R/l,y:L/l,width:tt,height:q,xoffset:0,yoffset:0,xadvance:Math.ceil(at-(x.dropShadow?x.dropShadowDistance:0)-(x.stroke?x.strokeThickness:0))}),R+=(tt+2*s)*l,R=Math.ceil(R)}if(!(i!=null&&i.skipKerning))for(var j=0,xt=A.length;j 0.99) {\r + alpha = 1.0;\r + }\r +\r + // NPM Textures, NPM outputs\r + gl_FragColor = vec4(uColor.rgb, uColor.a * alpha);\r +\r +}\r +`,ET=`// Mesh material default fragment\r +attribute vec2 aVertexPosition;\r +attribute vec2 aTextureCoord;\r +\r +uniform mat3 projectionMatrix;\r +uniform mat3 translationMatrix;\r +uniform mat3 uTextureMatrix;\r +\r +varying vec2 vTextureCoord;\r +\r +void main(void)\r +{\r + gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\r +\r + vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\r +}\r +`,Jc=[],Yc=[],zc=[],PT=function(a){xT(t,a);function t(e,i){i===void 0&&(i={});var n=a.call(this)||this;n._tint=16777215;var o=Object.assign({},t.styleDefaults,i),s=o.align,l=o.tint,g=o.maxWidth,y=o.letterSpacing,A=o.fontName,x=o.fontSize;if(!ha.available[A])throw new Error('Missing BitmapFont "'+A+'"');return n._activePagesMeshData=[],n._textWidth=0,n._textHeight=0,n._align=s,n._tint=l,n._font=void 0,n._fontName=A,n._fontSize=x,n.text=e,n._maxWidth=g,n._maxLineHeight=0,n._letterSpacing=y,n._anchor=new Ea(function(){n.dirty=!0},n,0,0),n._roundPixels=gt.ROUND_PIXELS,n.dirty=!0,n._resolution=gt.RESOLUTION,n._autoResolution=!0,n._textureCache={},n}return t.prototype.updateText=function(){for(var e,i=ha.available[this._fontName],n=this.fontSize,o=n/i.size,s=new he,l=[],g=[],y=[],A=this._text.replace(/(?:\r\n|\r)/g,` +`)||" ",x=Td(A),E=this._maxWidth*i.size/n,O=i.distanceFieldType==="none"?Jc:Yc,R=null,L=0,N=0,B=0,k=-1,X=0,J=0,j=0,z=0,Q=0;Q0&&s.x>E&&(++J,ei(l,1+k-J,1+Q-k),Q=k,k=-1,g.push(X),y.push(l.length>0?l[l.length-1].prevSpaces:0),N=Math.max(N,X),B++,s.x=0,s.y+=i.lineHeight,R=null,z=0)}}var xt=x[x.length-1];xt!=="\r"&&xt!==` +`&&(/(?:\s)/.test(xt)&&(L=X),g.push(L),N=Math.max(N,L),y.push(-1));for(var St=[],Q=0;Q<=B;Q++){var Ht=0;this._align==="right"?Ht=N-g[Q]:this._align==="center"?Ht=(N-g[Q])/2:this._align==="justify"&&(Ht=y[Q]<0?0:(N-g[Q])/y[Q]),St.push(Ht)}var pt=l.length,dt={},Ct=[],me=this._activePagesMeshData;O.push.apply(O,me);for(var Q=0;Q6*ue)||nt.vertices.length=e&&(s=a-l-1),g=g.replace("%value%",t[s].toString()),n+=g,n+=` +`}return i=i.replace("%blur%",n),i=i.replace("%size%",a.toString()),i}var ll=function(a){Id(t,a);function t(e,i,n,o,s){i===void 0&&(i=8),n===void 0&&(n=4),o===void 0&&(o=gt.FILTER_RESOLUTION),s===void 0&&(s=5);var l=this,g=CT(s,e),y=DT(s);return l=a.call(this,g,y)||this,l.horizontal=e,l.resolution=o,l._quality=0,l.quality=n,l.blur=i,l}return t.prototype.apply=function(e,i,n,o){if(n?this.horizontal?this.uniforms.strength=1/n.width*(n.width/i.width):this.uniforms.strength=1/n.height*(n.height/i.height):this.horizontal?this.uniforms.strength=1/e.renderer.width*(e.renderer.width/i.width):this.uniforms.strength=1/e.renderer.height*(e.renderer.height/i.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,this.passes===1)e.applyFilter(this,i,n,o);else{var s=e.getFilterTexture(),l=e.renderer,g=i,y=s;this.state.blend=!1,e.applyFilter(this,g,y,yr.CLEAR);for(var A=1;A 0.0) { + c.rgb /= c.a; + } + + vec4 result; + + result.r = (m[0] * c.r); + result.r += (m[1] * c.g); + result.r += (m[2] * c.b); + result.r += (m[3] * c.a); + result.r += m[4]; + + result.g = (m[5] * c.r); + result.g += (m[6] * c.g); + result.g += (m[7] * c.b); + result.g += (m[8] * c.a); + result.g += m[9]; + + result.b = (m[10] * c.r); + result.b += (m[11] * c.g); + result.b += (m[12] * c.b); + result.b += (m[13] * c.a); + result.b += m[14]; + + result.a = (m[15] * c.r); + result.a += (m[16] * c.g); + result.a += (m[17] * c.b); + result.a += (m[18] * c.a); + result.a += m[19]; + + vec3 rgb = mix(c.rgb, result.rgb, uAlpha); + + // Premultiply alpha again. + rgb *= result.a; + + gl_FragColor = vec4(rgb, result.a); +} +`,cl=function(a){FT(t,a);function t(){var e=this,i={m:new Float32Array([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]),uAlpha:1};return e=a.call(this,ah,BT,i)||this,e.alpha=1,e}return t.prototype._loadMatrix=function(e,i){i===void 0&&(i=!1);var n=e;i&&(this._multiply(n,this.uniforms.m,e),n=this._colorMatrix(n)),this.uniforms.m=n},t.prototype._multiply=function(e,i,n){return e[0]=i[0]*n[0]+i[1]*n[5]+i[2]*n[10]+i[3]*n[15],e[1]=i[0]*n[1]+i[1]*n[6]+i[2]*n[11]+i[3]*n[16],e[2]=i[0]*n[2]+i[1]*n[7]+i[2]*n[12]+i[3]*n[17],e[3]=i[0]*n[3]+i[1]*n[8]+i[2]*n[13]+i[3]*n[18],e[4]=i[0]*n[4]+i[1]*n[9]+i[2]*n[14]+i[3]*n[19]+i[4],e[5]=i[5]*n[0]+i[6]*n[5]+i[7]*n[10]+i[8]*n[15],e[6]=i[5]*n[1]+i[6]*n[6]+i[7]*n[11]+i[8]*n[16],e[7]=i[5]*n[2]+i[6]*n[7]+i[7]*n[12]+i[8]*n[17],e[8]=i[5]*n[3]+i[6]*n[8]+i[7]*n[13]+i[8]*n[18],e[9]=i[5]*n[4]+i[6]*n[9]+i[7]*n[14]+i[8]*n[19]+i[9],e[10]=i[10]*n[0]+i[11]*n[5]+i[12]*n[10]+i[13]*n[15],e[11]=i[10]*n[1]+i[11]*n[6]+i[12]*n[11]+i[13]*n[16],e[12]=i[10]*n[2]+i[11]*n[7]+i[12]*n[12]+i[13]*n[17],e[13]=i[10]*n[3]+i[11]*n[8]+i[12]*n[13]+i[13]*n[18],e[14]=i[10]*n[4]+i[11]*n[9]+i[12]*n[14]+i[13]*n[19]+i[14],e[15]=i[15]*n[0]+i[16]*n[5]+i[17]*n[10]+i[18]*n[15],e[16]=i[15]*n[1]+i[16]*n[6]+i[17]*n[11]+i[18]*n[16],e[17]=i[15]*n[2]+i[16]*n[7]+i[17]*n[12]+i[18]*n[17],e[18]=i[15]*n[3]+i[16]*n[8]+i[17]*n[13]+i[18]*n[18],e[19]=i[15]*n[4]+i[16]*n[9]+i[17]*n[14]+i[18]*n[19]+i[19],e},t.prototype._colorMatrix=function(e){var i=new Float32Array(e);return i[4]/=255,i[9]/=255,i[14]/=255,i[19]/=255,i},t.prototype.brightness=function(e,i){var n=[e,0,0,0,0,0,e,0,0,0,0,0,e,0,0,0,0,0,1,0];this._loadMatrix(n,i)},t.prototype.tint=function(e,i){var n=e>>16&255,o=e>>8&255,s=e&255,l=[n/255,0,0,0,0,0,o/255,0,0,0,0,0,s/255,0,0,0,0,0,1,0];this._loadMatrix(l,i)},t.prototype.greyscale=function(e,i){var n=[e,e,e,0,0,e,e,e,0,0,e,e,e,0,0,0,0,0,1,0];this._loadMatrix(n,i)},t.prototype.blackAndWhite=function(e){var i=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(i,e)},t.prototype.hue=function(e,i){e=(e||0)/180*Math.PI;var n=Math.cos(e),o=Math.sin(e),s=Math.sqrt,l=1/3,g=s(l),y=n+(1-n)*l,A=l*(1-n)-g*o,x=l*(1-n)+g*o,E=l*(1-n)+g*o,O=n+l*(1-n),R=l*(1-n)-g*o,L=l*(1-n)-g*o,N=l*(1-n)+g*o,B=n+l*(1-n),k=[y,A,x,0,0,E,O,R,0,0,L,N,B,0,0,0,0,0,1,0];this._loadMatrix(k,i)},t.prototype.contrast=function(e,i){var n=(e||0)+1,o=-.5*(n-1),s=[n,0,0,0,o,0,n,0,0,o,0,0,n,0,o,0,0,0,1,0];this._loadMatrix(s,i)},t.prototype.saturate=function(e,i){e===void 0&&(e=0);var n=e*2/3+1,o=(n-1)*-.5,s=[n,o,o,0,0,o,n,o,0,0,o,o,n,0,0,0,0,0,1,0];this._loadMatrix(s,i)},t.prototype.desaturate=function(){this.saturate(-1)},t.prototype.negative=function(e){var i=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(i,e)},t.prototype.sepia=function(e){var i=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(i,e)},t.prototype.technicolor=function(e){var i=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0];this._loadMatrix(i,e)},t.prototype.polaroid=function(e){var i=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0];this._loadMatrix(i,e)},t.prototype.toBGR=function(e){var i=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(i,e)},t.prototype.kodachrome=function(e){var i=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0];this._loadMatrix(i,e)},t.prototype.browni=function(e){var i=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0];this._loadMatrix(i,e)},t.prototype.vintage=function(e){var i=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0];this._loadMatrix(i,e)},t.prototype.colorTone=function(e,i,n,o,s){e=e||.2,i=i||.15,n=n||16770432,o=o||3375104;var l=(n>>16&255)/255,g=(n>>8&255)/255,y=(n&255)/255,A=(o>>16&255)/255,x=(o>>8&255)/255,E=(o&255)/255,O=[.3,.59,.11,0,0,l,g,y,e,0,A,x,E,i,0,l-A,g-x,y-E,0,0];this._loadMatrix(O,s)},t.prototype.night=function(e,i){e=e||.1;var n=[e*-2,-e,0,0,0,-e,0,e,0,0,0,e,e*2,0,0,0,0,0,1,0];this._loadMatrix(n,i)},t.prototype.predator=function(e,i){var n=[11.224130630493164*e,-4.794486999511719*e,-2.8746118545532227*e,0*e,.40342438220977783*e,-3.6330697536468506*e,9.193157196044922*e,-2.951810836791992*e,0*e,-1.316135048866272*e,-3.2184197902679443*e,-4.2375030517578125*e,7.476448059082031*e,0*e,.8044459223747253*e,0,0,0,1,0];this._loadMatrix(n,i)},t.prototype.lsd=function(e){var i=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(i,e)},t.prototype.reset=function(){var e=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(e,!1)},Object.defineProperty(t.prototype,"matrix",{get:function(){return this.uniforms.m},set:function(e){this.uniforms.m=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(e){this.uniforms.uAlpha=e},enumerable:!1,configurable:!0}),t}(va);cl.prototype.grayscale=cl.prototype.greyscale;/*! + * @pixi/filter-displacement - v6.5.10 + * Compiled Thu, 06 Jul 2023 15:25:11 UTC + * + * @pixi/filter-displacement is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + *//*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var fl=function(a,t){return fl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},fl(a,t)};function HT(a,t){fl(a,t);function e(){this.constructor=a}a.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var kT=`varying vec2 vFilterCoord; +varying vec2 vTextureCoord; + +uniform vec2 scale; +uniform mat2 rotation; +uniform sampler2D uSampler; +uniform sampler2D mapSampler; + +uniform highp vec4 inputSize; +uniform vec4 inputClamp; + +void main(void) +{ + vec4 map = texture2D(mapSampler, vFilterCoord); + + map -= 0.5; + map.xy = scale * inputSize.zw * (rotation * map.xy); + + gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw)); +} +`,UT=`attribute vec2 aVertexPosition; + +uniform mat3 projectionMatrix; +uniform mat3 filterMatrix; + +varying vec2 vTextureCoord; +varying vec2 vFilterCoord; + +uniform vec4 inputSize; +uniform vec4 outputFrame; + +vec4 filterVertexPosition( void ) +{ + vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy; + + return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0); +} + +vec2 filterTextureCoord( void ) +{ + return aVertexPosition * (outputFrame.zw * inputSize.zw); +} + +void main(void) +{ + gl_Position = filterVertexPosition(); + vTextureCoord = filterTextureCoord(); + vFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0) ).xy; +} +`,GT=function(a){HT(t,a);function t(e,i){var n=this,o=new be;return e.renderable=!1,n=a.call(this,UT,kT,{mapSampler:e._texture,filterMatrix:o,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])})||this,n.maskSprite=e,n.maskMatrix=o,i==null&&(i=20),n.scale=new he(i,i),n}return t.prototype.apply=function(e,i,n,o){this.uniforms.filterMatrix=e.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;var s=this.maskSprite.worldTransform,l=Math.sqrt(s.a*s.a+s.b*s.b),g=Math.sqrt(s.c*s.c+s.d*s.d);l!==0&&g!==0&&(this.uniforms.rotation[0]=s.a/l,this.uniforms.rotation[1]=s.b/l,this.uniforms.rotation[2]=s.c/g,this.uniforms.rotation[3]=s.d/g),e.applyFilter(this,i,n,o)},Object.defineProperty(t.prototype,"map",{get:function(){return this.uniforms.mapSampler},set:function(e){this.uniforms.mapSampler=e},enumerable:!1,configurable:!0}),t}(va);/*! + * @pixi/filter-fxaa - v6.5.10 + * Compiled Thu, 06 Jul 2023 15:25:11 UTC + * + * @pixi/filter-fxaa is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + *//*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var dl=function(a,t){return dl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},dl(a,t)};function XT(a,t){dl(a,t);function e(){this.constructor=a}a.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var jT=` +attribute vec2 aVertexPosition; + +uniform mat3 projectionMatrix; + +varying vec2 v_rgbNW; +varying vec2 v_rgbNE; +varying vec2 v_rgbSW; +varying vec2 v_rgbSE; +varying vec2 v_rgbM; + +varying vec2 vFragCoord; + +uniform vec4 inputSize; +uniform vec4 outputFrame; + +vec4 filterVertexPosition( void ) +{ + vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy; + + return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0); +} + +void texcoords(vec2 fragCoord, vec2 inverseVP, + out vec2 v_rgbNW, out vec2 v_rgbNE, + out vec2 v_rgbSW, out vec2 v_rgbSE, + out vec2 v_rgbM) { + v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP; + v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP; + v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP; + v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP; + v_rgbM = vec2(fragCoord * inverseVP); +} + +void main(void) { + + gl_Position = filterVertexPosition(); + + vFragCoord = aVertexPosition * outputFrame.zw; + + texcoords(vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM); +} +`,VT=`varying vec2 v_rgbNW; +varying vec2 v_rgbNE; +varying vec2 v_rgbSW; +varying vec2 v_rgbSE; +varying vec2 v_rgbM; + +varying vec2 vFragCoord; +uniform sampler2D uSampler; +uniform highp vec4 inputSize; + + +/** + Basic FXAA implementation based on the code on geeks3d.com with the + modification that the texture2DLod stuff was removed since it's + unsupported by WebGL. + + -- + + From: + https://github.com/mitsuhiko/webgl-meincraft + + Copyright (c) 2011 by Armin Ronacher. + + Some rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * The names of the contributors may not be used to endorse or + promote products derived from this software without specific + prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef FXAA_REDUCE_MIN +#define FXAA_REDUCE_MIN (1.0/ 128.0) +#endif +#ifndef FXAA_REDUCE_MUL +#define FXAA_REDUCE_MUL (1.0 / 8.0) +#endif +#ifndef FXAA_SPAN_MAX +#define FXAA_SPAN_MAX 8.0 +#endif + +//optimized version for mobile, where dependent +//texture reads can be a bottleneck +vec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 inverseVP, + vec2 v_rgbNW, vec2 v_rgbNE, + vec2 v_rgbSW, vec2 v_rgbSE, + vec2 v_rgbM) { + vec4 color; + vec3 rgbNW = texture2D(tex, v_rgbNW).xyz; + vec3 rgbNE = texture2D(tex, v_rgbNE).xyz; + vec3 rgbSW = texture2D(tex, v_rgbSW).xyz; + vec3 rgbSE = texture2D(tex, v_rgbSE).xyz; + vec4 texColor = texture2D(tex, v_rgbM); + vec3 rgbM = texColor.xyz; + vec3 luma = vec3(0.299, 0.587, 0.114); + float lumaNW = dot(rgbNW, luma); + float lumaNE = dot(rgbNE, luma); + float lumaSW = dot(rgbSW, luma); + float lumaSE = dot(rgbSE, luma); + float lumaM = dot(rgbM, luma); + float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE))); + float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE))); + + mediump vec2 dir; + dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE)); + dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE)); + + float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) * + (0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN); + + float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce); + dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX), + max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX), + dir * rcpDirMin)) * inverseVP; + + vec3 rgbA = 0.5 * ( + texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz + + texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz); + vec3 rgbB = rgbA * 0.5 + 0.25 * ( + texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz + + texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz); + + float lumaB = dot(rgbB, luma); + if ((lumaB < lumaMin) || (lumaB > lumaMax)) + color = vec4(rgbA, texColor.a); + else + color = vec4(rgbB, texColor.a); + return color; +} + +void main() { + + vec4 color; + + color = fxaa(uSampler, vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM); + + gl_FragColor = color; +} +`,JT=function(a){XT(t,a);function t(){return a.call(this,jT,VT)||this}return t}(va);/*! + * @pixi/filter-noise - v6.5.10 + * Compiled Thu, 06 Jul 2023 15:25:11 UTC + * + * @pixi/filter-noise is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + *//*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var pl=function(a,t){return pl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},pl(a,t)};function YT(a,t){pl(a,t);function e(){this.constructor=a}a.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var zT=`precision highp float; + +varying vec2 vTextureCoord; +varying vec4 vColor; + +uniform float uNoise; +uniform float uSeed; +uniform sampler2D uSampler; + +float rand(vec2 co) +{ + return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453); +} + +void main() +{ + vec4 color = texture2D(uSampler, vTextureCoord); + float randomValue = rand(gl_FragCoord.xy * uSeed); + float diff = (randomValue - 0.5) * uNoise; + + // Un-premultiply alpha before applying the color matrix. See issue #3539. + if (color.a > 0.0) { + color.rgb /= color.a; + } + + color.r += diff; + color.g += diff; + color.b += diff; + + // Premultiply alpha again. + color.rgb *= color.a; + + gl_FragColor = color; +} +`,WT=function(a){YT(t,a);function t(e,i){e===void 0&&(e=.5),i===void 0&&(i=Math.random());var n=a.call(this,ah,zT,{uNoise:0,uSeed:0})||this;return n.noise=e,n.seed=i,n}return Object.defineProperty(t.prototype,"noise",{get:function(){return this.uniforms.uNoise},set:function(e){this.uniforms.uNoise=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"seed",{get:function(){return this.uniforms.uSeed},set:function(e){this.uniforms.uSeed=e},enumerable:!1,configurable:!0}),t}(va);/*! + * @pixi/mixin-cache-as-bitmap - v6.5.10 + * Compiled Thu, 06 Jul 2023 15:25:11 UTC + * + * @pixi/mixin-cache-as-bitmap is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */var Sd=new be;Pe.prototype._cacheAsBitmap=!1;Pe.prototype._cacheData=null;Pe.prototype._cacheAsBitmapResolution=null;Pe.prototype._cacheAsBitmapMultisample=_e.NONE;var KT=function(){function a(){this.textureCacheId=null,this.originalRender=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.originalContainsPoint=null,this.sprite=null}return a}();Object.defineProperties(Pe.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(a){a!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=a,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get:function(){return this._cacheAsBitmapMultisample},set:function(a){a!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=a,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(a){if(this._cacheAsBitmap!==a){this._cacheAsBitmap=a;var t;a?(this._cacheData||(this._cacheData=new KT),t=this._cacheData,t.originalRender=this.render,t.originalRenderCanvas=this.renderCanvas,t.originalUpdateTransform=this.updateTransform,t.originalCalculateBounds=this.calculateBounds,t.originalGetLocalBounds=this.getLocalBounds,t.originalDestroy=this.destroy,t.originalContainsPoint=this.containsPoint,t.originalMask=this._mask,t.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):(t=this._cacheData,t.sprite&&this._destroyCachedDisplayObject(),this.render=t.originalRender,this.renderCanvas=t.originalRenderCanvas,this.calculateBounds=t.originalCalculateBounds,this.getLocalBounds=t.originalGetLocalBounds,this.destroy=t.originalDestroy,this.updateTransform=t.originalUpdateTransform,this.containsPoint=t.originalContainsPoint,this._mask=t.originalMask,this.filterArea=t.originalFilterArea)}}}});Pe.prototype._renderCached=function(a){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(a),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(a))};Pe.prototype._initCachedDisplayObject=function(a){var t;if(!(this._cacheData&&this._cacheData.sprite)){var e=this.alpha;this.alpha=1,a.batch.flush();var i=this.getLocalBounds(null,!0).clone();if(this.filters&&this.filters.length){var n=this.filters[0].padding;i.pad(n)}i.ceil(gt.RESOLUTION);var o=a.renderTexture.current,s=a.renderTexture.sourceFrame.clone(),l=a.renderTexture.destinationFrame.clone(),g=a.projection.transform,y=Ra.create({width:i.width,height:i.height,resolution:this.cacheAsBitmapResolution||a.resolution,multisample:(t=this.cacheAsBitmapMultisample)!==null&&t!==void 0?t:a.multisample}),A="cacheAsBitmap_"+Oa();this._cacheData.textureCacheId=A,Kt.addToCache(y.baseTexture,A),Rt.addToCache(y,A);var x=this.transform.localTransform.copyTo(Sd).invert().translate(-i.x,-i.y);this.render=this._cacheData.originalRender,a.render(this,{renderTexture:y,clear:!0,transform:x,skipUpdateTransform:!1}),a.framebuffer.blit(),a.projection.transform=g,a.renderTexture.bind(o,s,l),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=e;var E=new ji(y);E.transform.worldTransform=this.transform.worldTransform,E.anchor.x=-(i.x/i.width),E.anchor.y=-(i.y/i.height),E.alpha=e,E._bounds=this._bounds,this._cacheData.sprite=E,this.transform._parentID=-1,this.parent?this.updateTransform():(this.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=E.containsPoint.bind(E)}};Pe.prototype._renderCachedCanvas=function(a){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(a),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(a))};Pe.prototype._initCachedDisplayObjectCanvas=function(a){if(!(this._cacheData&&this._cacheData.sprite)){var t=this.getLocalBounds(null,!0),e=this.alpha;this.alpha=1;var i=a.context,n=a._projTransform;t.ceil(gt.RESOLUTION);var o=Ra.create({width:t.width,height:t.height}),s="cacheAsBitmap_"+Oa();this._cacheData.textureCacheId=s,Kt.addToCache(o.baseTexture,s),Rt.addToCache(o,s);var l=Sd;this.transform.localTransform.copyTo(l),l.invert(),l.tx-=t.x,l.ty-=t.y,this.renderCanvas=this._cacheData.originalRenderCanvas,a.render(this,{renderTexture:o,clear:!0,transform:l,skipUpdateTransform:!1}),a.context=i,a._projTransform=n,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=e;var g=new ji(o);g.transform.worldTransform=this.transform.worldTransform,g.anchor.x=-(t.x/t.width),g.anchor.y=-(t.y/t.height),g.alpha=e,g._bounds=this._bounds,this._cacheData.sprite=g,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=a._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=g.containsPoint.bind(g)}};Pe.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID};Pe.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)};Pe.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,Kt.removeFromCache(this._cacheData.textureCacheId),Rt.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null};Pe.prototype._cacheAsBitmapDestroy=function(a){this.cacheAsBitmap=!1,this.destroy(a)};/*! + * @pixi/mixin-get-child-by-name - v6.5.10 + * Compiled Thu, 06 Jul 2023 15:25:11 UTC + * + * @pixi/mixin-get-child-by-name is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */Pe.prototype.name=null;Er.prototype.getChildByName=function(a,t){for(var e=0,i=this.children.length;e0){var R=y.x-e[E].x,L=y.y-e[E].y,N=Math.sqrt(R*R+L*L);y=e[E],g+=N/A}else g=E/(x-1);s[O]=g,s[O+1]=0,s[O+2]=g,s[O+3]=1}for(var B=0,E=0;E0?this.textureScale*this._width/2:this._width/2;o/=E,s/=E,o*=O,s*=O,l[x]=A.x+o,l[x+1]=A.y+s,l[x+2]=A.x-o,l[x+3]=A.y-s,i=A}this.buffers[0].update()}},t.prototype.update=function(){this.textureScale>0?this.build():this.updateVertices()},t}(Xn),QT=function(a){Vi(t,a);function t(e,i,n){n===void 0&&(n=0);var o=this,s=new Md(e.height,i,n),l=new Bi(e);return n>0&&(e.baseTexture.wrapMode=Nr.REPEAT),o=a.call(this,s,l)||this,o.autoUpdate=!0,o}return t.prototype._render=function(e){var i=this.geometry;(this.autoUpdate||i._width!==this.shader.texture.height)&&(i._width=this.shader.texture.height,i.update()),a.prototype._render.call(this,e)},t}(Fi),wd=function(a){Vi(t,a);function t(e,i,n){var o=this,s=new Pd(e.width,e.height,i,n),l=new Bi(Rt.WHITE);return o=a.call(this,s,l)||this,o.texture=e,o.autoResize=!0,o}return t.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID;var e=this.geometry,i=this.shader.texture,n=i.width,o=i.height;this.autoResize&&(e.width!==n||e.height!==o)&&(e.width=this.shader.texture.width,e.height=this.shader.texture.height,e.build())},Object.defineProperty(t.prototype,"texture",{get:function(){return this.shader.texture},set:function(e){this.shader.texture!==e&&(this.shader.texture=e,this._textureID=-1,e.baseTexture.valid?this.textureUpdated():e.once("update",this.textureUpdated,this))},enumerable:!1,configurable:!0}),t.prototype._render=function(e){this._textureID!==this.shader.texture._updateID&&this.textureUpdated(),a.prototype._render.call(this,e)},t.prototype.destroy=function(e){this.shader.texture.off("update",this.textureUpdated,this),a.prototype.destroy.call(this,e)},t}(Fi),qT=function(a){Vi(t,a);function t(e,i,n,o,s){e===void 0&&(e=Rt.EMPTY);var l=this,g=new Xn(i,n,o);g.getBuffer("aVertexPosition").static=!1;var y=new Bi(e);return l=a.call(this,g,y,null,s)||this,l.autoUpdate=!0,l}return Object.defineProperty(t.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(e){this.geometry.getBuffer("aVertexPosition").data=e},enumerable:!1,configurable:!0}),t.prototype._render=function(e){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),a.prototype._render.call(this,e)},t}(Fi),To=10,ZT=function(a){Vi(t,a);function t(e,i,n,o,s){i===void 0&&(i=To),n===void 0&&(n=To),o===void 0&&(o=To),s===void 0&&(s=To);var l=a.call(this,Rt.WHITE,4,4)||this;return l._origWidth=e.orig.width,l._origHeight=e.orig.height,l._width=l._origWidth,l._height=l._origHeight,l._leftWidth=i,l._rightWidth=o,l._topHeight=n,l._bottomHeight=s,l.texture=e,l}return t.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID,this._refresh()},Object.defineProperty(t.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(e){this.geometry.getBuffer("aVertexPosition").data=e},enumerable:!1,configurable:!0}),t.prototype.updateHorizontalVertices=function(){var e=this.vertices,i=this._getMinScale();e[9]=e[11]=e[13]=e[15]=this._topHeight*i,e[17]=e[19]=e[21]=e[23]=this._height-this._bottomHeight*i,e[25]=e[27]=e[29]=e[31]=this._height},t.prototype.updateVerticalVertices=function(){var e=this.vertices,i=this._getMinScale();e[2]=e[10]=e[18]=e[26]=this._leftWidth*i,e[4]=e[12]=e[20]=e[28]=this._width-this._rightWidth*i,e[6]=e[14]=e[22]=e[30]=this._width},t.prototype._getMinScale=function(){var e=this._leftWidth+this._rightWidth,i=this._width>e?1:this._width/e,n=this._topHeight+this._bottomHeight,o=this._height>n?1:this._height/n,s=Math.min(i,o);return s},Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftWidth",{get:function(){return this._leftWidth},set:function(e){this._leftWidth=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightWidth",{get:function(){return this._rightWidth},set:function(e){this._rightWidth=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"topHeight",{get:function(){return this._topHeight},set:function(e){this._topHeight=e,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottomHeight",{get:function(){return this._bottomHeight},set:function(e){this._bottomHeight=e,this._refresh()},enumerable:!1,configurable:!0}),t.prototype._refresh=function(){var e=this.texture,i=this.geometry.buffers[1].data;this._origWidth=e.orig.width,this._origHeight=e.orig.height;var n=1/this._origWidth,o=1/this._origHeight;i[0]=i[8]=i[16]=i[24]=0,i[1]=i[3]=i[5]=i[7]=0,i[6]=i[14]=i[22]=i[30]=1,i[25]=i[27]=i[29]=i[31]=1,i[2]=i[10]=i[18]=i[26]=n*this._leftWidth,i[4]=i[12]=i[20]=i[28]=1-n*this._rightWidth,i[9]=i[11]=i[13]=i[15]=o*this._topHeight,i[17]=i[19]=i[21]=i[23]=1-o*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.geometry.buffers[0].update(),this.geometry.buffers[1].update()},t}(wd);/*! + * @pixi/sprite-animated - v6.5.10 + * Compiled Thu, 06 Jul 2023 15:25:11 UTC + * + * @pixi/sprite-animated is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + *//*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var ml=function(a,t){return ml=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},ml(a,t)};function tA(a,t){ml(a,t);function e(){this.constructor=a}a.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var eA=function(a){tA(t,a);function t(e,i){i===void 0&&(i=!0);var n=a.call(this,e[0]instanceof Rt?e[0]:e[0].texture)||this;return n._textures=null,n._durations=null,n._autoUpdate=i,n._isConnectedToTicker=!1,n.animationSpeed=1,n.loop=!0,n.updateAnchor=!1,n.onComplete=null,n.onFrameChange=null,n.onLoop=null,n._currentTime=0,n._playing=!1,n._previousFrame=null,n.textures=e,n}return t.prototype.stop=function(){this._playing&&(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(ze.shared.remove(this.update,this),this._isConnectedToTicker=!1))},t.prototype.play=function(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(ze.shared.add(this.update,this,ta.HIGH),this._isConnectedToTicker=!0))},t.prototype.gotoAndStop=function(e){this.stop();var i=this.currentFrame;this._currentTime=e,i!==this.currentFrame&&this.updateTexture()},t.prototype.gotoAndPlay=function(e){var i=this.currentFrame;this._currentTime=e,i!==this.currentFrame&&this.updateTexture(),this.play()},t.prototype.update=function(e){if(this._playing){var i=this.animationSpeed*e,n=this.currentFrame;if(this._durations!==null){var o=this._currentTime%1*this._durations[this.currentFrame];for(o+=i/60*1e3;o<0;)this._currentTime--,o+=this._durations[this.currentFrame];var s=Math.sign(this.animationSpeed*e);for(this._currentTime=Math.floor(this._currentTime);o>=this._durations[this.currentFrame];)o-=this._durations[this.currentFrame]*s,this._currentTime+=s;this._currentTime+=o/this._durations[this.currentFrame]}else this._currentTime+=i;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):n!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFramen&&this.onLoop()),this.updateTexture())}},t.prototype.updateTexture=function(){var e=this.currentFrame;this._previousFrame!==e&&(this._previousFrame=e,this._texture=this._textures[e],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))},t.prototype.destroy=function(e){this.stop(),a.prototype.destroy.call(this,e),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},t.fromFrames=function(e){for(var i=[],n=0;n0&&this.app.stage.removeChildren(0)}resize(){var t;(t=this.app)==null||t.resize()}}const gl=a=>{localStorage.setItem("OML2D_STATUS",a)},Wc=()=>localStorage.getItem("OML2D_STATUS"),nA=a=>{localStorage.setItem("OML2D_MODEL_INDEX",a.toString())},oA=()=>Number(localStorage.getItem("OML2D_MODEL_INDEX")),sA=a=>{localStorage.setItem("OML2D_MODEL_CLOTHES_INDEX",a.toString())},uA=()=>Number(localStorage.getItem("OML2D_MODEL_CLOTHES_INDEX"));class lA{constructor(t,e){Ft(this,"element"),Ft(this,"canvasElement"),Ft(this,"status",!1),Ft(this,"style",{}),Ft(this,"canvasStyle",{}),Ft(this,"currentModelIndex",0),this.options=t,this.events=e}create(){this.element=ma({id:_a.stage,tagName:"div"}),this.canvasElement=ma({id:_a.canvas,tagName:"canvas"})}set modelIndex(t){this.currentModelIndex=t}get modelIndex(){return this.currentModelIndex}mount(){this.element&&this.canvasElement&&(this.element.append(this.canvasElement),this.options.parentElement.append(this.element))}reloadStyle(t={}){var e,i,n,o;switch(t=Ne(t,this.options.stageStyle),t=Ne(t,xn(this.options.dockedPosition)),Hi()){case rr.mobile:t=Ne(t,((i=(e=this.options.models)==null?void 0:e[this.modelIndex])==null?void 0:i.mobileStageStyle)||{});break;case rr.pc:t=Ne(t,((o=(n=this.options.models)==null?void 0:n[this.modelIndex])==null?void 0:o.stageStyle)||{});break}this.setStyle(Qr(Ne(Gd,t)))}unMount(){var t;(t=this.element)==null||t.remove()}reMount(){this.unMount(),this.mount()}setStyle(t,e){this.element&&(this.style={},this.style=Ne(this.style,t),ai(this.style,this.element),this.setCanvasStyle({width:"100%",height:"100%",zIndex:"9998",position:"relative"}),e==null||e())}setCanvasStyle(t){this.canvasElement&&(this.canvasStyle=Ne(this.canvasStyle,t),ai(this.canvasStyle,this.canvasElement))}get transitionTime(){return this.options.transitionTime}slideIn(){return this.setStyle({animationName:"oml2d-stage-slide-in",animationDuration:`${this.transitionTime}ms`,animationFillMode:"forwards"}),new Promise(t=>{setTimeout(()=>{this.status=!0,this.events.emit("stageSlideIn"),gl("active"),t()},this.transitionTime)})}slideOut(){return new Promise(t=>{this.status?(this.setStyle({animationName:"oml2d-stage-slide-out",animationDuration:`${this.transitionTime}ms`,animationFillMode:"forwards"}),setTimeout(()=>{this.status=!1,this.events.emit("stageSlideOut"),gl("sleep"),t()},this.transitionTime)):t()})}}class hA{constructor(t){Ft(this,"element"),Ft(this,"style",{}),Ft(this,"timer",0),Ft(this,"status",!1),this.options=t}get statusBarOptions(){return this.options.statusBar}create(){this.options.statusBar.disable||(this.element=ma({id:_a.statusBar,tagName:"div",innerText:""}))}mount(){this.element&&this.options.parentElement.append(this.element)}reloadStyle(){switch(this.style={},Hi()){case rr.pc:this.setStyle(Qr(Ne(xn(this.options.dockedPosition),this.options.statusBar.style||{})));break;case rr.mobile:this.setStyle(Qr(Ne(xn(this.options.dockedPosition),this.options.statusBar.mobileStyle||{})));break}}initializeStyle(){this.setColor(this.options.primaryColor),this.reloadStyle()}unMount(){var t;(t=this.element)==null||t.remove()}reMounte(){this.unMount(),this.mount()}setStyle(t){this.element&&(this.style=Ne(this.style,t),ai(t,this.element))}slideIn(){return new Promise(t=>{this.status&&t(),this.setStyle({animationName:`oml2d-status-bar-${this.options.dockedPosition}-slide-in`,animationDuration:`${this.statusBarOptions.transitionTime}ms`,animationFillMode:"forwards"}),setTimeout(()=>{this.status=!0,t()},this.statusBarOptions.transitionTime)})}slideOut(){return new Promise(t=>{this.status?(this.setStyle({animationName:`oml2d-status-bar-${this.options.dockedPosition}-slide-out`,animationDuration:`${this.statusBarOptions.transitionTime}ms`,animationFillMode:"forwards"}),setTimeout(()=>{this.status=!0,t()},this.statusBarOptions.transitionTime)):t()})}showLoading(){this.open(` +

${this.statusBarOptions.loadingMessage}
+ + `)}hideLoading(){this.popup(this.statusBarOptions.loadSuccessMessage,1e3)}setHoverEvent(t){this.element&&(this.element.onmouseover=(t==null?void 0:t.onIn)||null,this.element.onmouseout=(t==null?void 0:t.onOut)||null)}setClickEvent(t){this.element&&(this.element.onclick=t)}clearHoverEvent(){this.element&&(this.element.onmouseover=null,this.element.onmouseout=null)}clearClickEvent(){this.element&&(this.element.onclick=null)}rest(){this.popup(this.statusBarOptions.restMessage,this.statusBarOptions.restMessageDuration)}loadingError(t){this.setHoverEvent({onIn:()=>{this.setContent(this.statusBarOptions.reloadMessage)},onOut:()=>{this.setContent(this.statusBarOptions.loadFailMessage)}}),this.setClickEvent(()=>{t()}),this.open(this.statusBarOptions.loadFailMessage,this.options.statusBar.errorColor)}get stateColor(){return{info:this.options.primaryColor,error:this.options.statusBar.errorColor}}setColor(t){t&&this.setStyle({backgroundColor:t})}open(t,e=this.options.primaryColor){this.popup(t,!1,e)}close(t,e=this.options.primaryColor,i=0){this.popup(t,i,e)}popup(t,e=0,i=this.options.primaryColor){clearTimeout(this.timer),this.setColor(i),t&&this.setContent(t),this.slideIn(),Ro(e)&&(this.timer=setTimeout(()=>{this.slideOut()},e+this.statusBarOptions.transitionTime))}setContent(t){this.element&&(this.element.innerHTML=t)}}class cA{constructor(t,e){Ft(this,"idlePlayer"),Ft(this,"element"),Ft(this,"contentElement"),Ft(this,"closeTimer",0),Ft(this,"transitionTime",1e3),Ft(this,"style",{}),Ft(this,"priority",0),Ft(this,"contentStyle",{}),Ft(this,"_tipsOptions",Si.tips),this.options=t,this.oml2d=e}reload(t){this.clear(),this.unmount(),this.create(),this.reloadStyle(),this.mount(t)}get tipsOptions(){return this._tipsOptions}set tipsOptions(t){let e;pn(t)?e=Ne(Si.tips,t(this.options.models[this.oml2d.modelIndex||0],this.oml2d.modelIndex||0)):e=t,this._tipsOptions=e}create(){this.tipsOptions=this.options.tips,this.idlePlayer=this.createIdleMessagePlayer(),this.element=ma({id:_a.tips,tagName:"div"}),this.contentElement=ma({id:"oml2d-tips-content",tagName:"div"})}mount(t){this.element&&this.contentElement&&(this.element.append(this.contentElement),t.append(this.element))}unmount(){var t,e;(t=this.element)==null||t.remove(),(e=this.contentElement)==null||e.remove()}get primaryColor(){return this.options.primaryColor}reloadStyle(){switch(this.style={},this.setContentStyle({wordBreak:"break-all",display:"-webkit-box",textOverflow:"ellipsis",WebkitBoxOrient:"vertical",WebkitLineClamp:this.tipsOptions.messageLine,overflow:"hidden"}),Hi()){case rr.pc:this.setStyle(Qr(this.tipsOptions.style||{}));break;case rr.mobile:this.setStyle(Qr(this.tipsOptions.mobileStyle||{}));break}}setStyle(t={}){var e;this.element&&(this.style=Ne(this.style,t),(e=this.style).backgroundColor||(e.backgroundColor=this.options.primaryColor),ai(this.style,this.element))}setContentStyle(t){this.contentElement&&(this.contentStyle=Ne(this.contentStyle,t),ai(this.contentStyle,this.contentElement))}setContent(t){this.contentElement&&(this.contentElement.innerHTML=t)}showMessage(t,e=3e3,i=0){i{this.setStyle({animationName:"oml2d-hidden-tips,oml2d-shake-tips"}),this.priority=0},e))}clear(){var t;this.setStyle({animationName:"oml2d-hidden-tips,oml2d-shake-tips"}),(t=this.idlePlayer)==null||t.stop(),clearTimeout(this.closeTimer),this.priority=0}notification(t,e=3e3,i=3){var n;(n=this.idlePlayer)==null||n.stop(),this.showMessage(t,e,i),setTimeout(()=>{var o;(o=this.idlePlayer)==null||o.start()},e+this.transitionTime)}welcome(){const t=Qd(this.tipsOptions.welcomeTips||{}),{duration:e,priority:i}=this.tipsOptions.welcomeTips;this.notification(t,e,i)}copy(){if(this.tipsOptions.copyTips.message.length){const t=cu(this.tipsOptions.copyTips.message)||"";this.notification(t,this.tipsOptions.copyTips.duration,this.tipsOptions.copyTips.priority)}}createIdleMessagePlayer(){let t="";const e=Hd(()=>lr(this,null,function*(){this.tipsOptions.idleTips.wordTheDay?pn(this.tipsOptions.idleTips.wordTheDay)?t=yield h0(this.tipsOptions.idleTips.wordTheDay):t=yield h0():pn(this.tipsOptions.idleTips.message)?t=yield this.tipsOptions.idleTips.message():t=cu(this.tipsOptions.idleTips.message||[])||"",t?(this.showMessage(t,this.tipsOptions.idleTips.duration,this.tipsOptions.idleTips.priority),yield Zd(this.tipsOptions.idleTips.duration)):e.stop()}),this.tipsOptions.idleTips.interval);return e}}class fA{constructor(t){Ft(this,"globalStyle"),Ft(this,"stage"),Ft(this,"statusBar"),Ft(this,"tips"),Ft(this,"menus"),Ft(this,"models"),Ft(this,"pixiApp"),Ft(this,"_modelIndex",0),Ft(this,"_modelClothesIndex",0),Ft(this,"version","0.19.3"),Ft(this,"options"),Ft(this,"events"),this.events=new kd,this.options=rp(Si,t),this.globalStyle=new ip(this.options),this.stage=new lA(this.options,this.events),this.statusBar=new hA(this.options),this.tips=new cA(this.options,this),this.menus=new np(this.options,this),this.models=new Wx(this.options,this.events),this.modelIndex=oA(),this.modelClothesIndex=uA(),this.initialize()}set modelIndex(t){t>this.options.models.length-1&&(t=0),this._modelIndex=t,this.stage.modelIndex=t,this.models.modelIndex=t,nA(t)}get modelIndex(){return this._modelIndex}set modelClothesIndex(t){this._modelClothesIndex=t,this.models.modelClothesIndex=t,sA(t)}get modelClothesIndex(){return this._modelClothesIndex}showModelHitAreaFrames(){this.models.removeHitAreaFrames()}hideModelHitAreaFrames(){this.models.addHitAreaFrames()}setModelScale(t){this.models.setScale(t)}stopTipsIdle(){var t;(t=this.tips.idlePlayer)==null||t.stop()}startTipsIdle(){var t;(t=this.tips.idlePlayer)==null||t.start()}statusBarPopup(t,e,i){this.statusBar.popup(t,e,i)}setStatusBarHoverEvent(t){this.statusBar.setHoverEvent(t)}tipsMessage(t,e,i){this.tips.notification(t,e,i)}setStageStyle(t){this.stage.setStyle(Qr(t))}setModelPosition(t){const{x:e=0,y:i=0}=t;this.models.setPosition(e,i)}get mobileHidden(){return!this.options.mobileDisplay&&Hi()===rr.mobile}create(){this.stage.create(),this.pixiApp=new iA(this.stage),this.statusBar.create(),this.statusBar.initializeStyle()}mount(){this.stage.mount(),this.statusBar.mount()}loadModel(){return lr(this,null,function*(){if(this.tips.clear(),yield this.stage.slideOut(),!(!this.options.models||!this.options.models.length)){if(this.mobileHidden){this.statusBar.rest();return}return this.statusBar.showLoading(),this.models.create().catch(()=>{this.statusBar.loadingError(()=>void this.reloadModel())}).then(()=>{var t,e;(t=this.pixiApp)==null||t.mount(this.models.model),this.menus.reload(this.stage.element),this.tips.reload(this.stage.element),this.models.settingModel(),this.stage.reloadStyle(this.models.modelSize),(e=this.pixiApp)==null||e.resize(),this.statusBar.hideLoading()})}})}reloadModel(){return lr(this,null,function*(){var t;yield this.loadModel(),yield this.stage.slideIn(),(t=this.tips.idlePlayer)==null||t.start()})}loadRandomModel(){return lr(this,null,function*(){var t;this.modelIndex=ap(this.options.models.length,this.modelIndex),this.modelClothesIndex=0,this.statusBar.open(this.options.statusBar.switchingMessage),yield this.loadModel(),yield this.stage.slideIn(),(t=this.tips.idlePlayer)==null||t.start()})}loadNextModel(){return lr(this,null,function*(){var t;++this.modelIndex>=this.options.models.length&&(this.modelIndex=0),this.modelClothesIndex=0,this.statusBar.open(this.options.statusBar.switchingMessage),yield this.loadModel(),yield this.stage.slideIn(),(t=this.tips.idlePlayer)==null||t.start()})}loadModelByIndex(t,e){return lr(this,null,function*(){var i;t>=0&&to.name===t);n>0&&(this.modelIndex=n,this.modelClothesIndex=e||0,this.statusBar.open(this.options.statusBar.switchingMessage),yield this.loadModel(),yield this.stage.slideIn(),(i=this.tips.idlePlayer)==null||i.start())})}loadNextModelClothes(){return lr(this,null,function*(){const t=this.options.models[this.modelIndex].path;Qc(this.options.models[this.modelIndex].path)&&this.options.models.length?(++this.modelClothesIndex>=t.length&&(this.modelClothesIndex=0),yield this.loadModel(),yield this.stage.slideIn()):this.tips.notification("该模型没有其他衣服~",5e3,3)})}setModelRotation(t){this.models.setRotation(t)}setModelAnchor(t){const{x:e,y:i}=t;this.models.setAnchor(e,i)}initialize(){tp(),this.options.sayHello&&qd(),this.registerGlobalEvent(),this.globalStyle.initialize(),this.create(),this.mount(),this.loadModel().then(()=>{const t=Wc()||this.options.initialStatus;Wc()||gl(this.options.initialStatus),t==="sleep"?(this.tips.clear(),this.statusBar.open(this.options.statusBar.restMessage),this.statusBar.setClickEvent(()=>{var e;this.stage.slideIn(),(e=this.tips.idlePlayer)==null||e.start(),this.statusBar.close(),this.statusBar.clearHoverEvent(),this.statusBar.clearClickEvent()})):this.stage.slideIn()})}stageSlideIn(){return lr(this,null,function*(){yield this.stage.slideIn()})}stageSlideOut(){return lr(this,null,function*(){yield this.stage.slideOut()})}statusBarOpen(t,e){this.statusBar.open(t,e)}clearTips(){this.tips.clear()}setStatusBarClickEvent(t){this.statusBar.setClickEvent(t)}statusBarClose(t,e,i){this.statusBar.close(t,i,e)}statusBarClearEvents(){this.statusBar.clearClickEvent(),this.statusBar.clearHoverEvent()}onStageSlideIn(t){this.events.add("stageSlideIn",t)}onStageSlideOut(t){this.events.add("stageSlideOut",t)}onLoad(t){this.events.add("load",t)}registerGlobalEvent(){ep(()=>{this.reloadModel()}),this.onStageSlideIn(()=>{this.tips.welcome()}),window.document.oncopy=()=>{this.tips.copy()}}}const dA=a=>new fA(a);export{dA as loadOml2d}; diff --git a/assets/chunks/theme.e78CgNTD.js b/assets/chunks/theme.e78CgNTD.js new file mode 100644 index 0000000..90dcd60 --- /dev/null +++ b/assets/chunks/theme.e78CgNTD.js @@ -0,0 +1,117 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = [] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{d as L,o as g,c as k,r as A,a as be,t as D,n as N,b as H,w as C,e as O,T as at,_ as ne,u as Re,i as Wd,f as Gd,g as St,h as I,j as Nn,k as w,l as me,m as _,p as u,q as xe,s as Ae,v as An,x as vr,y as Q,z as zt,A as Wt,B as Rl,C as Dl,D as Ud,F as se,E as ve,G as Fe,H as Ot,I as bs,J as B,K as Hl,L as Le,M as pt,N as ft,O as fe,P as qd,Q as Oe,R as Kd,S as Yd,U as _e,V as jl,W as _s,X as De,Y as Ne,Z as it,$ as jr,a0 as ge,a1 as Ie,a2 as Wr,a3 as Be,a4 as Wl,a5 as Gl,a6 as Ye,a7 as Ul,a8 as Xd,a9 as Vn,aa as ql,ab as Kl,ac as Qd,ad as En,ae as He,af as Co,ag as dt,ah as _t,ai as Zd,aj as yt,ak as Ha,al as Jd,am as _o,an as tt,ao as qn,ap as nt,aq as ef,ar as Yl,as as tf,at as Xl,au as nf,av as of,aw as ja,ax as sf,ay as Ql,az as Fs,aA as rf,aB as af,aC as lf,aD as hr,aE as ws,aF as Vo,aG as Zl}from"./framework.DBQkAOx6.js";const cf=L({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(e){return(t,n)=>(g(),k("span",{class:N(["VPBadge",t.type])},[A(t.$slots,"default",{},()=>[be(D(t.text),1)])],2))}}),uf={key:0,class:"VPBackdrop"},df=L({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(e){return(t,n)=>(g(),H(at,{name:"fade"},{default:C(()=>[t.show?(g(),k("div",uf)):O("",!0)]),_:1}))}}),ff=ne(df,[["__scopeId","data-v-25e026ac"]]),ye=Re;function pf(e,t){let n,o=!1;return()=>{n&&clearTimeout(n),o?n=setTimeout(e,t):(e(),(o=!0)&&setTimeout(()=>o=!1,t))}}function mr(e){return/^\//.test(e)?e:`/${e}`}function Gr(e){const{pathname:t,search:n,hash:o,protocol:s}=new URL(e,"http://a.com");if(Wd(e)||e.startsWith("#")||!s.startsWith("http")||!Gd(t))return e;const{site:r}=ye(),a=t.endsWith("/")||t.endsWith(".html")?e:e.replace(/(?:(^\.+)\/)?.*$/,`$1${t.replace(/(\.md)?$/,r.value.cleanUrls?"":".html")}${n}${o}`);return St(a)}const Ur=I(Nn?location.hash:"");Nn&&window.addEventListener("hashchange",()=>{Ur.value=location.hash});function Mo({removeCurrent:e=!0,correspondingLink:t=!1}={}){const{site:n,localeIndex:o,page:s,theme:r}=ye(),a=w(()=>{var l,c;return{label:(l=n.value.locales[o.value])==null?void 0:l.label,link:((c=n.value.locales[o.value])==null?void 0:c.link)||(o.value==="root"?"/":`/${o.value}/`)}});return{localeLinks:w(()=>Object.entries(n.value.locales).flatMap(([l,c])=>e&&a.value.label===c.label?[]:{text:c.label,link:vf(c.link||(l==="root"?"/":`/${l}/`),r.value.i18nRouting!==!1&&t,s.value.relativePath.slice(a.value.link.length-1),!n.value.cleanUrls)+Ur.value})),currentLang:a}}function vf(e,t,n,o){return t?e.replace(/\/$/,"")+mr(n.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,o?".html":"")):e}const hf=e=>(xe("data-v-cfe565af"),e=e(),Ae(),e),mf={class:"NotFound"},gf={class:"code"},yf={class:"title"},bf=hf(()=>_("div",{class:"divider"},null,-1)),_f={class:"quote"},wf={class:"action"},Sf=["href","aria-label"],kf=L({__name:"NotFound",setup(e){const{site:t,theme:n}=ye(),{localeLinks:o}=Mo({removeCurrent:!1}),s=I("/");return me(()=>{var a;const r=window.location.pathname.replace(t.value.base,"").replace(/(^.*?\/).*$/,"/$1");o.value.length&&(s.value=((a=o.value.find(({link:i})=>i.startsWith(r)))==null?void 0:a.link)||o.value[0].link)}),(r,a)=>{var i,l,c,d,f;return g(),k("div",mf,[_("p",gf,D(((i=u(n).notFound)==null?void 0:i.code)??"404"),1),_("h1",yf,D(((l=u(n).notFound)==null?void 0:l.title)??"PAGE NOT FOUND"),1),bf,_("blockquote",_f,D(((c=u(n).notFound)==null?void 0:c.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),_("div",wf,[_("a",{class:"link",href:u(St)(s.value),"aria-label":((d=u(n).notFound)==null?void 0:d.linkLabel)??"go to home"},D(((f=u(n).notFound)==null?void 0:f.linkText)??"Take me home"),9,Sf)])])}}}),$f=ne(kf,[["__scopeId","data-v-cfe565af"]]);function Jl(e,t){if(Array.isArray(e))return Zo(e);if(e==null)return[];t=mr(t);const n=Object.keys(e).sort((s,r)=>r.split("/").length-s.split("/").length).find(s=>t.startsWith(mr(s))),o=n?e[n]:[];return Array.isArray(o)?Zo(o):Zo(o.items,o.base)}function Tf(e){const t=[];let n=0;for(const o in e){const s=e[o];if(s.items){n=t.push(s);continue}t[n]||t.push({items:[]}),t[n].items.push(s)}return t}function Cf(e){const t=[];function n(o){for(const s of o)s.text&&s.link&&t.push({text:s.text,link:s.link,docFooterText:s.docFooterText}),s.items&&n(s.items)}return n(e),t}function gr(e,t){return Array.isArray(t)?t.some(n=>gr(e,n)):An(e,t.link)?!0:t.items?gr(e,t.items):!1}function Zo(e,t){return[...e].map(n=>{const o={...n},s=o.base||t;return s&&o.link&&(o.link=s+o.link),o.items&&(o.items=Zo(o.items,s)),o})}function an(){const{frontmatter:e,page:t,theme:n}=ye(),o=vr("(min-width: 960px)"),s=I(!1),r=w(()=>{const p=n.value.sidebar,b=t.value.relativePath;return p?Jl(p,b):[]}),a=I(r.value);Q(r,(p,b)=>{JSON.stringify(p)!==JSON.stringify(b)&&(a.value=r.value)});const i=w(()=>e.value.sidebar!==!1&&a.value.length>0&&e.value.layout!=="home"),l=w(()=>c?e.value.aside==null?n.value.aside==="left":e.value.aside==="left":!1),c=w(()=>e.value.layout==="home"?!1:e.value.aside!=null?!!e.value.aside:n.value.aside!==!1),d=w(()=>i.value&&o.value),f=w(()=>i.value?Tf(a.value):[]);function v(){s.value=!0}function h(){s.value=!1}function m(){s.value?h():v()}return{isOpen:s,sidebar:a,sidebarGroups:f,hasSidebar:i,hasAside:c,leftAside:l,isSidebarEnabled:d,open:v,close:h,toggle:m}}function Mf(e,t){let n;zt(()=>{n=e.value?document.activeElement:void 0}),me(()=>{window.addEventListener("keyup",o)}),Wt(()=>{window.removeEventListener("keyup",o)});function o(s){s.key==="Escape"&&e.value&&(t(),n==null||n.focus())}}function Ef(e){const{page:t}=ye(),n=I(!1),o=w(()=>e.value.collapsed!=null),s=w(()=>!!e.value.link),r=I(!1),a=()=>{r.value=An(t.value.relativePath,e.value.link)};Q([t,e,Ur],a),me(a);const i=w(()=>r.value?!0:e.value.items?gr(t.value.relativePath,e.value.items):!1),l=w(()=>!!(e.value.items&&e.value.items.length));zt(()=>{n.value=!!(o.value&&e.value.collapsed)}),Rl(()=>{(r.value||i.value)&&(n.value=!1)});function c(){o.value&&(n.value=!n.value)}return{collapsed:n,collapsible:o,isLink:s,isActiveLink:r,hasActiveLink:i,hasChildren:l,toggle:c}}function If(){const{hasSidebar:e}=an(),t=vr("(min-width: 960px)"),n=vr("(min-width: 1280px)");return{isAsideEnabled:w(()=>!n.value&&!t.value?!1:e.value?n.value:t.value)}}const yr=[];function ec(e){return typeof e.outline=="object"&&!Array.isArray(e.outline)&&e.outline.label||e.outlineTitle||"On this page"}function qr(e){const t=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(n=>n.id&&n.hasChildNodes()).map(n=>{const o=Number(n.tagName[1]);return{element:n,title:Pf(n),link:"#"+n.id,level:o}});return xf(t,e)}function Pf(e){let t="";for(const n of e.childNodes)if(n.nodeType===1){if(n.classList.contains("VPBadge")||n.classList.contains("header-anchor")||n.classList.contains("ignore-header"))continue;t+=n.textContent}else n.nodeType===3&&(t+=n.textContent);return t.trim()}function xf(e,t){if(t===!1)return[];const n=(typeof t=="object"&&!Array.isArray(t)?t.level:t)||2,[o,s]=typeof n=="number"?[n,n]:n==="deep"?[2,6]:n;e=e.filter(a=>a.level>=o&&a.level<=s),yr.length=0;for(const{element:a,link:i}of e)yr.push({element:a,link:i});const r=[];e:for(let a=0;a=0;l--){const c=e[l];if(c.level{requestAnimationFrame(r),window.addEventListener("scroll",o)}),Dl(()=>{a(location.hash)}),Wt(()=>{window.removeEventListener("scroll",o)});function r(){if(!n.value)return;const i=window.scrollY,l=window.innerHeight,c=document.body.offsetHeight,d=Math.abs(i+l-c)<1,f=yr.map(({element:h,link:m})=>({link:m,top:Lf(h)})).filter(({top:h})=>!Number.isNaN(h)).sort((h,m)=>h.top-m.top);if(!f.length){a(null);return}if(i<1){a(null);return}if(d){a(f[f.length-1].link);return}let v=null;for(const{link:h,top:m}of f){if(m>i+Ud()+4)break;v=h}a(v)}function a(i){s&&s.classList.remove("active"),i==null?s=null:s=e.value.querySelector(`a[href="${decodeURIComponent(i)}"]`);const l=s;l?(l.classList.add("active"),t.value.style.top=l.offsetTop+39+"px",t.value.style.opacity="1"):(t.value.style.top="33px",t.value.style.opacity="0")}}function Lf(e){let t=0;for(;e!==document.body;){if(e===null)return NaN;t+=e.offsetTop,e=e.offsetParent}return t}const Of=["href","title"],zf=L({__name:"VPDocOutlineItem",props:{headers:{},root:{type:Boolean}},setup(e){function t({target:n}){const o=n.href.split("#")[1],s=document.getElementById(decodeURIComponent(o));s==null||s.focus({preventScroll:!0})}return(n,o)=>{const s=Fe("VPDocOutlineItem",!0);return g(),k("ul",{class:N(["VPDocOutlineItem",n.root?"root":"nested"])},[(g(!0),k(se,null,ve(n.headers,({children:r,link:a,title:i})=>(g(),k("li",null,[_("a",{class:"outline-link",href:a,onClick:t,title:i},D(i),9,Of),r!=null&&r.length?(g(),H(s,{key:0,headers:r},null,8,["headers"])):O("",!0)]))),256))],2)}}}),tc=ne(zf,[["__scopeId","data-v-8836a507"]]),Bf=e=>(xe("data-v-e40b7472"),e=e(),Ae(),e),Nf={class:"content"},Vf={class:"outline-title",role:"heading","aria-level":"2"},Ff={"aria-labelledby":"doc-outline-aria-label"},Rf=Bf(()=>_("span",{class:"visually-hidden",id:"doc-outline-aria-label"}," Table of Contents for current page ",-1)),Df=L({__name:"VPDocAsideOutline",setup(e){const{frontmatter:t,theme:n}=ye(),o=Ot([]);bs(()=>{o.value=qr(t.value.outline??n.value.outline)});const s=I(),r=I();return Af(s,r),(a,i)=>(g(),k("div",{class:N(["VPDocAsideOutline",{"has-outline":o.value.length>0}]),ref_key:"container",ref:s,role:"navigation"},[_("div",Nf,[_("div",{class:"outline-marker",ref_key:"marker",ref:r},null,512),_("div",Vf,D(u(ec)(u(n))),1),_("nav",Ff,[Rf,B(tc,{headers:o.value,root:!0},null,8,["headers"])])])],2))}}),nc=ne(Df,[["__scopeId","data-v-e40b7472"]]),Hf={class:"VPDocAsideCarbonAds"},jf=L({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(e){const t=()=>null;return(n,o)=>(g(),k("div",Hf,[B(u(t),{"carbon-ads":n.carbonAds},null,8,["carbon-ads"])]))}}),Wf=e=>(xe("data-v-fef72ae6"),e=e(),Ae(),e),Gf={class:"VPDocAside"},Uf=Wf(()=>_("div",{class:"spacer"},null,-1)),qf=L({__name:"VPDocAside",setup(e){const{theme:t}=ye();return(n,o)=>(g(),k("div",Gf,[A(n.$slots,"aside-top",{},void 0,!0),A(n.$slots,"aside-outline-before",{},void 0,!0),B(nc),A(n.$slots,"aside-outline-after",{},void 0,!0),Uf,A(n.$slots,"aside-ads-before",{},void 0,!0),u(t).carbonAds?(g(),H(jf,{key:0,"carbon-ads":u(t).carbonAds},null,8,["carbon-ads"])):O("",!0),A(n.$slots,"aside-ads-after",{},void 0,!0),A(n.$slots,"aside-bottom",{},void 0,!0)]))}}),Kf=ne(qf,[["__scopeId","data-v-fef72ae6"]]);function Yf(){const{theme:e,page:t}=ye();return w(()=>{const{text:n="Edit this page",pattern:o=""}=e.value.editLink||{};let s;return typeof o=="function"?s=o(t.value):s=o.replace(/:path/g,t.value.filePath),{url:s,text:n}})}function Xf(){const{page:e,theme:t,frontmatter:n}=ye();return w(()=>{var l,c,d,f,v,h,m,p;const o=Jl(t.value.sidebar,e.value.relativePath),s=Cf(o),r=s.findIndex(b=>An(e.value.relativePath,b.link)),a=((l=t.value.docFooter)==null?void 0:l.prev)===!1&&!n.value.prev||n.value.prev===!1,i=((c=t.value.docFooter)==null?void 0:c.next)===!1&&!n.value.next||n.value.next===!1;return{prev:a?void 0:{text:(typeof n.value.prev=="string"?n.value.prev:typeof n.value.prev=="object"?n.value.prev.text:void 0)??((d=s[r-1])==null?void 0:d.docFooterText)??((f=s[r-1])==null?void 0:f.text),link:(typeof n.value.prev=="object"?n.value.prev.link:void 0)??((v=s[r-1])==null?void 0:v.link)},next:i?void 0:{text:(typeof n.value.next=="string"?n.value.next:typeof n.value.next=="object"?n.value.next.text:void 0)??((h=s[r+1])==null?void 0:h.docFooterText)??((m=s[r+1])==null?void 0:m.text),link:(typeof n.value.next=="object"?n.value.next.link:void 0)??((p=s[r+1])==null?void 0:p.link)}}})}const Dt=L({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(e){const t=e,n=w(()=>t.tag??(t.href?"a":"span")),o=w(()=>t.href&&Hl.test(t.href));return(s,r)=>(g(),H(Le(n.value),{class:N(["VPLink",{link:s.href,"vp-external-link-icon":o.value,"no-icon":s.noIcon}]),href:s.href?u(Gr)(s.href):void 0,target:s.target??(o.value?"_blank":void 0),rel:s.rel??(o.value?"noreferrer":void 0)},{default:C(()=>[A(s.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),Qf={class:"VPLastUpdated"},Zf=["datetime"],Jf=L({__name:"VPDocFooterLastUpdated",setup(e){const{theme:t,page:n,frontmatter:o,lang:s}=ye(),r=w(()=>new Date(o.value.lastUpdated??n.value.lastUpdated)),a=w(()=>r.value.toISOString()),i=I("");return me(()=>{zt(()=>{var l,c,d;i.value=new Intl.DateTimeFormat((c=(l=t.value.lastUpdated)==null?void 0:l.formatOptions)!=null&&c.forceLocale?s.value:void 0,((d=t.value.lastUpdated)==null?void 0:d.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(r.value)})}),(l,c)=>{var d;return g(),k("p",Qf,[be(D(((d=u(t).lastUpdated)==null?void 0:d.text)||u(t).lastUpdatedText||"Last updated")+": ",1),_("time",{datetime:a.value},D(i.value),9,Zf)])}}}),ep=ne(Jf,[["__scopeId","data-v-d7bf4c83"]]),tp=e=>(xe("data-v-a68f74fe"),e=e(),Ae(),e),np={key:0,class:"VPDocFooter"},op={key:0,class:"edit-info"},sp={key:0,class:"edit-link"},rp=tp(()=>_("span",{class:"vpi-square-pen edit-link-icon"},null,-1)),ap={key:1,class:"last-updated"},ip={key:1,class:"prev-next"},lp={class:"pager"},cp=["innerHTML"],up=["innerHTML"],dp={class:"pager"},fp=["innerHTML"],pp=["innerHTML"],vp=L({__name:"VPDocFooter",setup(e){const{theme:t,page:n,frontmatter:o}=ye(),s=Yf(),r=Xf(),a=w(()=>t.value.editLink&&o.value.editLink!==!1),i=w(()=>n.value.lastUpdated&&o.value.lastUpdated!==!1),l=w(()=>a.value||i.value||r.value.prev||r.value.next);return(c,d)=>{var f,v,h,m;return l.value?(g(),k("footer",np,[A(c.$slots,"doc-footer-before",{},void 0,!0),a.value||i.value?(g(),k("div",op,[a.value?(g(),k("div",sp,[B(Dt,{class:"edit-link-button",href:u(s).url,"no-icon":!0},{default:C(()=>[rp,be(" "+D(u(s).text),1)]),_:1},8,["href"])])):O("",!0),i.value?(g(),k("div",ap,[B(ep)])):O("",!0)])):O("",!0),(f=u(r).prev)!=null&&f.link||(v=u(r).next)!=null&&v.link?(g(),k("nav",ip,[_("div",lp,[(h=u(r).prev)!=null&&h.link?(g(),H(Dt,{key:0,class:"pager-link prev",href:u(r).prev.link},{default:C(()=>{var p;return[_("span",{class:"desc",innerHTML:((p=u(t).docFooter)==null?void 0:p.prev)||"Previous page"},null,8,cp),_("span",{class:"title",innerHTML:u(r).prev.text},null,8,up)]}),_:1},8,["href"])):O("",!0)]),_("div",dp,[(m=u(r).next)!=null&&m.link?(g(),H(Dt,{key:0,class:"pager-link next",href:u(r).next.link},{default:C(()=>{var p;return[_("span",{class:"desc",innerHTML:((p=u(t).docFooter)==null?void 0:p.next)||"Next page"},null,8,fp),_("span",{class:"title",innerHTML:u(r).next.text},null,8,pp)]}),_:1},8,["href"])):O("",!0)])])):O("",!0)])):O("",!0)}}}),hp=ne(vp,[["__scopeId","data-v-a68f74fe"]]),mp=e=>(xe("data-v-f8a8b9c2"),e=e(),Ae(),e),gp={class:"container"},yp=mp(()=>_("div",{class:"aside-curtain"},null,-1)),bp={class:"aside-container"},_p={class:"aside-content"},wp={class:"content"},Sp={class:"content-container"},kp={class:"main"},$p=L({__name:"VPDoc",setup(e){const{theme:t}=ye(),n=pt(),{hasSidebar:o,hasAside:s,leftAside:r}=an(),a=w(()=>n.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(i,l)=>{const c=Fe("Content");return g(),k("div",{class:N(["VPDoc",{"has-sidebar":u(o),"has-aside":u(s)}])},[A(i.$slots,"doc-top",{},void 0,!0),_("div",gp,[u(s)?(g(),k("div",{key:0,class:N(["aside",{"left-aside":u(r)}])},[yp,_("div",bp,[_("div",_p,[B(Kf,null,{"aside-top":C(()=>[A(i.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":C(()=>[A(i.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":C(()=>[A(i.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":C(()=>[A(i.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":C(()=>[A(i.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":C(()=>[A(i.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):O("",!0),_("div",wp,[_("div",Sp,[A(i.$slots,"doc-before",{},void 0,!0),_("main",kp,[B(c,{class:N(["vp-doc",[a.value,u(t).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),B(hp,null,{"doc-footer-before":C(()=>[A(i.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),A(i.$slots,"doc-after",{},void 0,!0)])])]),A(i.$slots,"doc-bottom",{},void 0,!0)],2)}}}),Tp=ne($p,[["__scopeId","data-v-f8a8b9c2"]]),Cp=L({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{},target:{},rel:{}},setup(e){const t=e,n=w(()=>t.href&&Hl.test(t.href)),o=w(()=>t.tag||t.href?"a":"button");return(s,r)=>(g(),H(Le(o.value),{class:N(["VPButton",[s.size,s.theme]]),href:s.href?u(Gr)(s.href):void 0,target:t.target??(n.value?"_blank":void 0),rel:t.rel??(n.value?"noreferrer":void 0)},{default:C(()=>[be(D(s.text),1)]),_:1},8,["class","href","target","rel"]))}}),Mp=ne(Cp,[["__scopeId","data-v-a7aac15b"]]),Ep=["src","alt"],Ip=L({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(e){return(t,n)=>{const o=Fe("VPImage",!0);return t.image?(g(),k(se,{key:0},[typeof t.image=="string"||"src"in t.image?(g(),k("img",ft({key:0,class:"VPImage"},typeof t.image=="string"?t.$attrs:{...t.image,...t.$attrs},{src:u(St)(typeof t.image=="string"?t.image:t.image.src),alt:t.alt??(typeof t.image=="string"?"":t.image.alt||"")}),null,16,Ep)):(g(),k(se,{key:1},[B(o,ft({class:"dark",image:t.image.dark,alt:t.image.alt},t.$attrs),null,16,["image","alt"]),B(o,ft({class:"light",image:t.image.light,alt:t.image.alt},t.$attrs),null,16,["image","alt"])],64))],64)):O("",!0)}}}),os=ne(Ip,[["__scopeId","data-v-e30c0e6c"]]),Pp=e=>(xe("data-v-ab747c69"),e=e(),Ae(),e),xp={class:"container"},Ap={class:"main"},Lp={key:0,class:"name"},Op=["innerHTML"],zp=["innerHTML"],Bp=["innerHTML"],Np={key:0,class:"actions"},Vp={key:0,class:"image"},Fp={class:"image-container"},Rp=Pp(()=>_("div",{class:"image-bg"},null,-1)),Dp=L({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(e){const t=fe("hero-image-slot-exists");return(n,o)=>(g(),k("div",{class:N(["VPHero",{"has-image":n.image||u(t)}])},[_("div",xp,[_("div",Ap,[A(n.$slots,"home-hero-info-before",{},void 0,!0),A(n.$slots,"home-hero-info",{},()=>[n.name?(g(),k("h1",Lp,[_("span",{innerHTML:n.name,class:"clip"},null,8,Op)])):O("",!0),n.text?(g(),k("p",{key:1,innerHTML:n.text,class:"text"},null,8,zp)):O("",!0),n.tagline?(g(),k("p",{key:2,innerHTML:n.tagline,class:"tagline"},null,8,Bp)):O("",!0)],!0),A(n.$slots,"home-hero-info-after",{},void 0,!0),n.actions?(g(),k("div",Np,[(g(!0),k(se,null,ve(n.actions,s=>(g(),k("div",{key:s.link,class:"action"},[B(Mp,{tag:"a",size:"medium",theme:s.theme,text:s.text,href:s.link,target:s.target,rel:s.rel},null,8,["theme","text","href","target","rel"])]))),128))])):O("",!0),A(n.$slots,"home-hero-actions-after",{},void 0,!0)]),n.image||u(t)?(g(),k("div",Vp,[_("div",Fp,[Rp,A(n.$slots,"home-hero-image",{},()=>[n.image?(g(),H(os,{key:0,class:"image-src",image:n.image},null,8,["image"])):O("",!0)],!0)])])):O("",!0)])],2))}}),Hp=ne(Dp,[["__scopeId","data-v-ab747c69"]]),jp=L({__name:"VPHomeHero",setup(e){const{frontmatter:t}=ye();return(n,o)=>u(t).hero?(g(),H(Hp,{key:0,class:"VPHomeHero",name:u(t).hero.name,text:u(t).hero.text,tagline:u(t).hero.tagline,image:u(t).hero.image,actions:u(t).hero.actions},{"home-hero-info-before":C(()=>[A(n.$slots,"home-hero-info-before")]),"home-hero-info":C(()=>[A(n.$slots,"home-hero-info")]),"home-hero-info-after":C(()=>[A(n.$slots,"home-hero-info-after")]),"home-hero-actions-after":C(()=>[A(n.$slots,"home-hero-actions-after")]),"home-hero-image":C(()=>[A(n.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):O("",!0)}}),Wp=e=>(xe("data-v-fc1476f4"),e=e(),Ae(),e),Gp={class:"box"},Up={key:0,class:"icon"},qp=["innerHTML"],Kp=["innerHTML"],Yp=["innerHTML"],Xp={key:4,class:"link-text"},Qp={class:"link-text-value"},Zp=Wp(()=>_("span",{class:"vpi-arrow-right link-text-icon"},null,-1)),Jp=L({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(e){return(t,n)=>(g(),H(Dt,{class:"VPFeature",href:t.link,rel:t.rel,target:t.target,"no-icon":!0,tag:t.link?"a":"div"},{default:C(()=>[_("article",Gp,[typeof t.icon=="object"&&t.icon.wrap?(g(),k("div",Up,[B(os,{image:t.icon,alt:t.icon.alt,height:t.icon.height||48,width:t.icon.width||48},null,8,["image","alt","height","width"])])):typeof t.icon=="object"?(g(),H(os,{key:1,image:t.icon,alt:t.icon.alt,height:t.icon.height||48,width:t.icon.width||48},null,8,["image","alt","height","width"])):t.icon?(g(),k("div",{key:2,class:"icon",innerHTML:t.icon},null,8,qp)):O("",!0),_("h2",{class:"title",innerHTML:t.title},null,8,Kp),t.details?(g(),k("p",{key:3,class:"details",innerHTML:t.details},null,8,Yp)):O("",!0),t.linkText?(g(),k("div",Xp,[_("p",Qp,[be(D(t.linkText)+" ",1),Zp])])):O("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),ev=ne(Jp,[["__scopeId","data-v-fc1476f4"]]),tv={key:0,class:"VPFeatures"},nv={class:"container"},ov={class:"items"},sv=L({__name:"VPFeatures",props:{features:{}},setup(e){const t=e,n=w(()=>{const o=t.features.length;if(o){if(o===2)return"grid-2";if(o===3)return"grid-3";if(o%3===0)return"grid-6";if(o>3)return"grid-4"}else return});return(o,s)=>o.features?(g(),k("div",tv,[_("div",nv,[_("div",ov,[(g(!0),k(se,null,ve(o.features,r=>(g(),k("div",{key:r.title,class:N(["item",[n.value]])},[B(ev,{icon:r.icon,title:r.title,details:r.details,link:r.link,"link-text":r.linkText,rel:r.rel,target:r.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):O("",!0)}}),rv=ne(sv,[["__scopeId","data-v-8a4078e8"]]),av=L({__name:"VPHomeFeatures",setup(e){const{frontmatter:t}=ye();return(n,o)=>u(t).features?(g(),H(rv,{key:0,class:"VPHomeFeatures",features:u(t).features},null,8,["features"])):O("",!0)}}),iv=L({__name:"VPHomeContent",setup(e){const{width:t}=qd({includeScrollbar:!1});return(n,o)=>(g(),k("div",{class:"vp-doc container",style:Oe(u(t)?{"--vp-offset":`calc(50% - ${u(t)/2}px)`}:{})},[A(n.$slots,"default",{},void 0,!0)],4))}}),lv=ne(iv,[["__scopeId","data-v-e1d394be"]]),cv={class:"VPHome"},uv=L({__name:"VPHome",setup(e){const{frontmatter:t}=ye();return(n,o)=>{const s=Fe("Content");return g(),k("div",cv,[A(n.$slots,"home-hero-before",{},void 0,!0),B(jp,null,{"home-hero-info-before":C(()=>[A(n.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":C(()=>[A(n.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":C(()=>[A(n.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":C(()=>[A(n.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":C(()=>[A(n.$slots,"home-hero-image",{},void 0,!0)]),_:3}),A(n.$slots,"home-hero-after",{},void 0,!0),A(n.$slots,"home-features-before",{},void 0,!0),B(av),A(n.$slots,"home-features-after",{},void 0,!0),u(t).markdownStyles!==!1?(g(),H(lv,{key:0},{default:C(()=>[B(s)]),_:1})):(g(),H(s,{key:1}))])}}}),dv=ne(uv,[["__scopeId","data-v-ee85334b"]]),fv={},pv={class:"VPPage"};function vv(e,t){const n=Fe("Content");return g(),k("div",pv,[A(e.$slots,"page-top"),B(n),A(e.$slots,"page-bottom")])}const hv=ne(fv,[["render",vv]]),mv=L({__name:"VPContent",setup(e){const{page:t,frontmatter:n}=ye(),{hasSidebar:o}=an();return(s,r)=>(g(),k("div",{class:N(["VPContent",{"has-sidebar":u(o),"is-home":u(n).layout==="home"}]),id:"VPContent"},[u(t).isNotFound?A(s.$slots,"not-found",{key:0},()=>[B($f)],!0):u(n).layout==="page"?(g(),H(hv,{key:1},{"page-top":C(()=>[A(s.$slots,"page-top",{},void 0,!0)]),"page-bottom":C(()=>[A(s.$slots,"page-bottom",{},void 0,!0)]),_:3})):u(n).layout==="home"?(g(),H(dv,{key:2},{"home-hero-before":C(()=>[A(s.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":C(()=>[A(s.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":C(()=>[A(s.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":C(()=>[A(s.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":C(()=>[A(s.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":C(()=>[A(s.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":C(()=>[A(s.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":C(()=>[A(s.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":C(()=>[A(s.$slots,"home-features-after",{},void 0,!0)]),_:3})):u(n).layout&&u(n).layout!=="doc"?(g(),H(Le(u(n).layout),{key:3})):(g(),H(Tp,{key:4},{"doc-top":C(()=>[A(s.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":C(()=>[A(s.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":C(()=>[A(s.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":C(()=>[A(s.$slots,"doc-before",{},void 0,!0)]),"doc-after":C(()=>[A(s.$slots,"doc-after",{},void 0,!0)]),"aside-top":C(()=>[A(s.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":C(()=>[A(s.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":C(()=>[A(s.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":C(()=>[A(s.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":C(()=>[A(s.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":C(()=>[A(s.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),gv=ne(mv,[["__scopeId","data-v-845c10f0"]]),yv={class:"container"},bv=["innerHTML"],_v=["innerHTML"],wv=L({__name:"VPFooter",setup(e){const{theme:t,frontmatter:n}=ye(),{hasSidebar:o}=an();return(s,r)=>u(t).footer&&u(n).footer!==!1?(g(),k("footer",{key:0,class:N(["VPFooter",{"has-sidebar":u(o)}])},[_("div",yv,[u(t).footer.message?(g(),k("p",{key:0,class:"message",innerHTML:u(t).footer.message},null,8,bv)):O("",!0),u(t).footer.copyright?(g(),k("p",{key:1,class:"copyright",innerHTML:u(t).footer.copyright},null,8,_v)):O("",!0)])],2)):O("",!0)}}),Sv=ne(wv,[["__scopeId","data-v-a14ac51f"]]);function oc(){const{theme:e,frontmatter:t}=ye(),n=Ot([]),o=w(()=>n.value.length>0);return bs(()=>{n.value=qr(t.value.outline??e.value.outline)}),{headers:n,hasLocalNav:o}}const kv=e=>(xe("data-v-7432023f"),e=e(),Ae(),e),$v=kv(()=>_("span",{class:"vpi-chevron-right icon"},null,-1)),Tv={class:"header"},Cv={class:"outline"},Mv=L({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(e){const t=e,{theme:n}=ye(),o=I(!1),s=I(0),r=I(),a=I();Kd(r,()=>{o.value=!1}),Yd("Escape",()=>{o.value=!1}),bs(()=>{o.value=!1});function i(){o.value=!o.value,s.value=window.innerHeight+Math.min(window.scrollY-t.navHeight,0)}function l(d){d.target.classList.contains("outline-link")&&(a.value&&(a.value.style.transition="none"),_e(()=>{o.value=!1}))}function c(){o.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(d,f)=>(g(),k("div",{class:"VPLocalNavOutlineDropdown",style:Oe({"--vp-vh":s.value+"px"}),ref_key:"main",ref:r},[d.headers.length>0?(g(),k("button",{key:0,onClick:i,class:N({open:o.value})},[be(D(u(ec)(u(n)))+" ",1),$v],2)):(g(),k("button",{key:1,onClick:c},D(u(n).returnToTopLabel||"Return to top"),1)),B(at,{name:"flyout"},{default:C(()=>[o.value?(g(),k("div",{key:0,ref_key:"items",ref:a,class:"items",onClick:l},[_("div",Tv,[_("a",{class:"top-link",href:"#",onClick:c},D(u(n).returnToTopLabel||"Return to top"),1)]),_("div",Cv,[B(tc,{headers:d.headers},null,8,["headers"])])],512)):O("",!0)]),_:1})],4))}}),Ev=ne(Mv,[["__scopeId","data-v-7432023f"]]),Iv=e=>(xe("data-v-c481d8df"),e=e(),Ae(),e),Pv={class:"container"},xv=["aria-expanded"],Av=Iv(()=>_("span",{class:"vpi-align-left menu-icon"},null,-1)),Lv={class:"menu-text"},Ov=L({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(e){const{theme:t,frontmatter:n}=ye(),{hasSidebar:o}=an(),{headers:s}=oc(),{y:r}=jl(),a=I(0);me(()=>{a.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),bs(()=>{s.value=qr(n.value.outline??t.value.outline)});const i=w(()=>s.value.length===0),l=w(()=>i.value&&!o.value),c=w(()=>({VPLocalNav:!0,"has-sidebar":o.value,empty:i.value,fixed:l.value}));return(d,f)=>u(n).layout!=="home"&&(!l.value||u(r)>=a.value)?(g(),k("div",{key:0,class:N(c.value)},[_("div",Pv,[u(o)?(g(),k("button",{key:0,class:"menu","aria-expanded":d.open,"aria-controls":"VPSidebarNav",onClick:f[0]||(f[0]=v=>d.$emit("open-menu"))},[Av,_("span",Lv,D(u(t).sidebarMenuLabel||"Menu"),1)],8,xv)):O("",!0),B(Ev,{headers:u(s),navHeight:a.value},null,8,["headers","navHeight"])])],2)):O("",!0)}}),zv=ne(Ov,[["__scopeId","data-v-c481d8df"]]);function Bv(){const e=I(!1);function t(){e.value=!0,window.addEventListener("resize",s)}function n(){e.value=!1,window.removeEventListener("resize",s)}function o(){e.value?n():t()}function s(){window.outerWidth>=768&&n()}const r=pt();return Q(()=>r.path,n),{isScreenOpen:e,openScreen:t,closeScreen:n,toggleScreen:o}}const Nv={},Vv={class:"VPSwitch",type:"button",role:"switch"},Fv={class:"check"},Rv={key:0,class:"icon"};function Dv(e,t){return g(),k("button",Vv,[_("span",Fv,[e.$slots.default?(g(),k("span",Rv,[A(e.$slots,"default",{},void 0,!0)])):O("",!0)])])}const Hv=ne(Nv,[["render",Dv],["__scopeId","data-v-e3927e38"]]),sc=e=>(xe("data-v-32b2581c"),e=e(),Ae(),e),jv=sc(()=>_("span",{class:"vpi-sun sun"},null,-1)),Wv=sc(()=>_("span",{class:"vpi-moon moon"},null,-1)),Gv=L({__name:"VPSwitchAppearance",setup(e){const{isDark:t,theme:n}=ye(),o=fe("toggle-appearance",()=>{t.value=!t.value}),s=w(()=>t.value?n.value.lightModeSwitchTitle||"Switch to light theme":n.value.darkModeSwitchTitle||"Switch to dark theme");return(r,a)=>(g(),H(Hv,{title:s.value,class:"VPSwitchAppearance","aria-checked":u(t),onClick:u(o)},{default:C(()=>[jv,Wv]),_:1},8,["title","aria-checked","onClick"]))}}),Kr=ne(Gv,[["__scopeId","data-v-32b2581c"]]),Uv={key:0,class:"VPNavBarAppearance"},qv=L({__name:"VPNavBarAppearance",setup(e){const{site:t}=ye();return(n,o)=>u(t).appearance&&u(t).appearance!=="force-dark"?(g(),k("div",Uv,[B(Kr)])):O("",!0)}}),Kv=ne(qv,[["__scopeId","data-v-9896999d"]]),Yr=I();let rc=!1,Rs=0;function Yv(e){const t=I(!1);if(Nn){!rc&&Xv(),Rs++;const n=Q(Yr,o=>{var s,r,a;o===e.el.value||(s=e.el.value)!=null&&s.contains(o)?(t.value=!0,(r=e.onFocus)==null||r.call(e)):(t.value=!1,(a=e.onBlur)==null||a.call(e))});Wt(()=>{n(),Rs--,Rs||Qv()})}return _s(t)}function Xv(){document.addEventListener("focusin",ac),rc=!0,Yr.value=document.activeElement}function Qv(){document.removeEventListener("focusin",ac)}function ac(){Yr.value=document.activeElement}const Zv={class:"VPMenuLink"},Jv=L({__name:"VPMenuLink",props:{item:{}},setup(e){const{page:t}=ye();return(n,o)=>(g(),k("div",Zv,[B(Dt,{class:N({active:u(An)(u(t).relativePath,n.item.activeMatch||n.item.link,!!n.item.activeMatch)}),href:n.item.link,target:n.item.target,rel:n.item.rel},{default:C(()=>[be(D(n.item.text),1)]),_:1},8,["class","href","target","rel"])]))}}),Ss=ne(Jv,[["__scopeId","data-v-bd49be69"]]),eh={class:"VPMenuGroup"},th={key:0,class:"title"},nh=L({__name:"VPMenuGroup",props:{text:{},items:{}},setup(e){return(t,n)=>(g(),k("div",eh,[t.text?(g(),k("p",th,D(t.text),1)):O("",!0),(g(!0),k(se,null,ve(t.items,o=>(g(),k(se,null,["link"in o?(g(),H(Ss,{key:0,item:o},null,8,["item"])):O("",!0)],64))),256))]))}}),oh=ne(nh,[["__scopeId","data-v-6e005854"]]),sh={class:"VPMenu"},rh={key:0,class:"items"},ah=L({__name:"VPMenu",props:{items:{}},setup(e){return(t,n)=>(g(),k("div",sh,[t.items?(g(),k("div",rh,[(g(!0),k(se,null,ve(t.items,o=>(g(),k(se,{key:o.text},["link"in o?(g(),H(Ss,{key:0,item:o},null,8,["item"])):(g(),H(oh,{key:1,text:o.text,items:o.items},null,8,["text","items"]))],64))),128))])):O("",!0),A(t.$slots,"default",{},void 0,!0)]))}}),ih=ne(ah,[["__scopeId","data-v-e3b6e26c"]]),lh=e=>(xe("data-v-6a5a1afe"),e=e(),Ae(),e),ch=["aria-expanded","aria-label"],uh={key:0,class:"text"},dh=["innerHTML"],fh=lh(()=>_("span",{class:"vpi-chevron-down text-icon"},null,-1)),ph={key:1,class:"vpi-more-horizontal icon"},vh={class:"menu"},hh=L({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(e){const t=I(!1),n=I();Yv({el:n,onBlur:o});function o(){t.value=!1}return(s,r)=>(g(),k("div",{class:"VPFlyout",ref_key:"el",ref:n,onMouseenter:r[1]||(r[1]=a=>t.value=!0),onMouseleave:r[2]||(r[2]=a=>t.value=!1)},[_("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":t.value,"aria-label":s.label,onClick:r[0]||(r[0]=a=>t.value=!t.value)},[s.button||s.icon?(g(),k("span",uh,[s.icon?(g(),k("span",{key:0,class:N([s.icon,"option-icon"])},null,2)):O("",!0),s.button?(g(),k("span",{key:1,innerHTML:s.button},null,8,dh)):O("",!0),fh])):(g(),k("span",ph))],8,ch),_("div",vh,[B(ih,{items:s.items},{default:C(()=>[A(s.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),Xr=ne(hh,[["__scopeId","data-v-6a5a1afe"]]),mh=["href","aria-label","innerHTML"],gh=L({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(e){const t=e,n=w(()=>typeof t.icon=="object"?t.icon.svg:``);return(o,s)=>(g(),k("a",{class:"VPSocialLink no-icon",href:o.link,"aria-label":o.ariaLabel??(typeof o.icon=="string"?o.icon:""),target:"_blank",rel:"noopener",innerHTML:n.value},null,8,mh))}}),yh=ne(gh,[["__scopeId","data-v-34eee19f"]]),bh={class:"VPSocialLinks"},_h=L({__name:"VPSocialLinks",props:{links:{}},setup(e){return(t,n)=>(g(),k("div",bh,[(g(!0),k(se,null,ve(t.links,({link:o,icon:s,ariaLabel:r})=>(g(),H(yh,{key:o,icon:s,link:o,ariaLabel:r},null,8,["icon","link","ariaLabel"]))),128))]))}}),Qr=ne(_h,[["__scopeId","data-v-eaf1f01e"]]),wh={key:0,class:"group translations"},Sh={class:"trans-title"},kh={key:1,class:"group"},$h={class:"item appearance"},Th={class:"label"},Ch={class:"appearance-action"},Mh={key:2,class:"group"},Eh={class:"item social-links"},Ih=L({__name:"VPNavBarExtra",setup(e){const{site:t,theme:n}=ye(),{localeLinks:o,currentLang:s}=Mo({correspondingLink:!0}),r=w(()=>o.value.length&&s.value.label||t.value.appearance||n.value.socialLinks);return(a,i)=>r.value?(g(),H(Xr,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:C(()=>[u(o).length&&u(s).label?(g(),k("div",wh,[_("p",Sh,D(u(s).label),1),(g(!0),k(se,null,ve(u(o),l=>(g(),H(Ss,{key:l.link,item:l},null,8,["item"]))),128))])):O("",!0),u(t).appearance&&u(t).appearance!=="force-dark"?(g(),k("div",kh,[_("div",$h,[_("p",Th,D(u(n).darkModeSwitchLabel||"Appearance"),1),_("div",Ch,[B(Kr)])])])):O("",!0),u(n).socialLinks?(g(),k("div",Mh,[_("div",Eh,[B(Qr,{class:"social-links-list",links:u(n).socialLinks},null,8,["links"])])])):O("",!0)]),_:1})):O("",!0)}}),Ph=ne(Ih,[["__scopeId","data-v-0babc128"]]),xh=e=>(xe("data-v-9722961b"),e=e(),Ae(),e),Ah=["aria-expanded"],Lh=xh(()=>_("span",{class:"container"},[_("span",{class:"top"}),_("span",{class:"middle"}),_("span",{class:"bottom"})],-1)),Oh=[Lh],zh=L({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(e){return(t,n)=>(g(),k("button",{type:"button",class:N(["VPNavBarHamburger",{active:t.active}]),"aria-label":"mobile navigation","aria-expanded":t.active,"aria-controls":"VPNavScreen",onClick:n[0]||(n[0]=o=>t.$emit("click"))},Oh,10,Ah))}}),Bh=ne(zh,[["__scopeId","data-v-9722961b"]]),Nh=["innerHTML"],Vh=L({__name:"VPNavBarMenuLink",props:{item:{}},setup(e){const{page:t}=ye();return(n,o)=>(g(),H(Dt,{class:N({VPNavBarMenuLink:!0,active:u(An)(u(t).relativePath,n.item.activeMatch||n.item.link,!!n.item.activeMatch)}),href:n.item.link,target:n.item.target,rel:n.item.rel,tabindex:"0"},{default:C(()=>[_("span",{innerHTML:n.item.text},null,8,Nh)]),_:1},8,["class","href","target","rel"]))}}),Fh=ne(Vh,[["__scopeId","data-v-23cee756"]]),Rh=L({__name:"VPNavBarMenuGroup",props:{item:{}},setup(e){const t=e,{page:n}=ye(),o=r=>"link"in r?An(n.value.relativePath,r.link,!!t.item.activeMatch):r.items.some(o),s=w(()=>o(t.item));return(r,a)=>(g(),H(Xr,{class:N({VPNavBarMenuGroup:!0,active:u(An)(u(n).relativePath,r.item.activeMatch,!!r.item.activeMatch)||s.value}),button:r.item.text,items:r.item.items},null,8,["class","button","items"]))}}),Dh=e=>(xe("data-v-ae613558"),e=e(),Ae(),e),Hh={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},jh=Dh(()=>_("span",{id:"main-nav-aria-label",class:"visually-hidden"},"Main Navigation",-1)),Wh=L({__name:"VPNavBarMenu",setup(e){const{theme:t}=ye();return(n,o)=>u(t).nav?(g(),k("nav",Hh,[jh,(g(!0),k(se,null,ve(u(t).nav,s=>(g(),k(se,{key:s.text},["link"in s?(g(),H(Fh,{key:0,item:s},null,8,["item"])):(g(),H(Rh,{key:1,item:s},null,8,["item"]))],64))),128))])):O("",!0)}}),Gh=ne(Wh,[["__scopeId","data-v-ae613558"]]);var Wa;const ic=typeof window<"u",Uh=e=>typeof e=="string",Jo=()=>{};ic&&((Wa=window==null?void 0:window.navigator)!=null&&Wa.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function br(e){return typeof e=="function"?e():u(e)}function qh(e,t){function n(...o){e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})}return n}function Kh(e,t={}){let n,o;return s=>{const r=br(e),a=br(t.maxWait);if(n&&clearTimeout(n),r<=0||a!==void 0&&a<=0)return o&&(clearTimeout(o),o=null),s();a&&!o&&(o=setTimeout(()=>{n&&clearTimeout(n),o=null,s()},a)),n=setTimeout(()=>{o&&clearTimeout(o),o=null,s()},r)}}function Yh(e){return e}function Xh(e){return Wl()?(Gl(e),!0):!1}function lc(e,t=200,n={}){return qh(Kh(t,n),e)}function Ds(e,t=200,n={}){if(t<=0)return e;const o=I(e.value),s=lc(()=>{o.value=e.value},t,n);return Q(e,()=>s()),o}function cc(e,t,n){return Q(e,(o,s,r)=>{o&&t(o,s,r)},n)}function Qh(e){var t;const n=br(e);return(t=n==null?void 0:n.$el)!=null?t:n}const uc=ic?window:void 0;function Fo(...e){let t,n,o,s;if(Uh(e[0])?([n,o,s]=e,t=uc):[t,n,o,s]=e,!t)return Jo;let r=Jo;const a=Q(()=>Qh(t),l=>{r(),l&&(l.addEventListener(n,o,s),r=()=>{l.removeEventListener(n,o,s),r=Jo})},{immediate:!0,flush:"post"}),i=()=>{a(),r()};return Xh(i),i}const Ga=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ua="__vueuse_ssr_handlers__";Ga[Ua]=Ga[Ua]||{};const Zh={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function Jh(e={}){const{reactive:t=!1,target:n=uc,aliasMap:o=Zh,passive:s=!0,onEventFired:r=Jo}=e,a=De(new Set),i={toJSON(){return{}},current:a},l=t?De(i):i,c=new Set,d=new Set;function f(p,b){p in l&&(t?l[p]=b:l[p].value=b)}function v(){for(const p of d)f(p,!1)}function h(p,b){var y,$;const S=(y=p.key)==null?void 0:y.toLowerCase(),T=[($=p.code)==null?void 0:$.toLowerCase(),S].filter(Boolean);S&&(b?a.add(S):a.delete(S));for(const M of T)d.add(M),f(M,b);S==="meta"&&!b?(c.forEach(M=>{a.delete(M),f(M,!1)}),c.clear()):typeof p.getModifierState=="function"&&p.getModifierState("Meta")&&b&&[...a,...T].forEach(M=>c.add(M))}Fo(n,"keydown",p=>(h(p,!0),r(p)),{passive:s}),Fo(n,"keyup",p=>(h(p,!1),r(p)),{passive:s}),Fo("blur",v,{passive:!0}),Fo("focus",v,{passive:!0});const m=new Proxy(l,{get(p,b,y){if(typeof b!="string")return Reflect.get(p,b,y);if(b=b.toLowerCase(),b in o&&(b=o[b]),!(b in l))if(/[+_-]/.test(b)){const S=b.split(/[+_-]/g).map(T=>T.trim());l[b]=w(()=>S.every(T=>u(m[T])))}else l[b]=I(!1);const $=Reflect.get(p,b,y);return t?u($):$}});return m}var qa;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(qa||(qa={}));var e0=Object.defineProperty,Ka=Object.getOwnPropertySymbols,t0=Object.prototype.hasOwnProperty,n0=Object.prototype.propertyIsEnumerable,Ya=(e,t,n)=>t in e?e0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,o0=(e,t)=>{for(var n in t||(t={}))t0.call(t,n)&&Ya(e,n,t[n]);if(Ka)for(var n of Ka(t))n0.call(t,n)&&Ya(e,n,t[n]);return e};const s0={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};o0({linear:Yh},s0);function nn(e){return Array.isArray?Array.isArray(e):pc(e)==="[object Array]"}const r0=1/0;function a0(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-r0?"-0":t}function i0(e){return e==null?"":a0(e)}function Rt(e){return typeof e=="string"}function dc(e){return typeof e=="number"}function l0(e){return e===!0||e===!1||c0(e)&&pc(e)=="[object Boolean]"}function fc(e){return typeof e=="object"}function c0(e){return fc(e)&&e!==null}function ut(e){return e!=null}function Hs(e){return!e.trim().length}function pc(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const u0="Incorrect 'index' type",d0=e=>`Invalid value for key ${e}`,f0=e=>`Pattern length exceeds max of ${e}.`,p0=e=>`Missing ${e} property in key`,v0=e=>`Property 'weight' in key '${e}' must be a positive integer`,Xa=Object.prototype.hasOwnProperty;let h0=class{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(o=>{let s=vc(o);n+=s.weight,this._keys.push(s),this._keyMap[s.id]=s,n+=s.weight}),this._keys.forEach(o=>{o.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function vc(e){let t=null,n=null,o=null,s=1,r=null;if(Rt(e)||nn(e))o=e,t=Qa(e),n=_r(e);else{if(!Xa.call(e,"name"))throw new Error(p0("name"));const a=e.name;if(o=a,Xa.call(e,"weight")&&(s=e.weight,s<=0))throw new Error(v0(a));t=Qa(a),n=_r(a),r=e.getFn}return{path:t,id:n,weight:s,src:o,getFn:r}}function Qa(e){return nn(e)?e:e.split(".")}function _r(e){return nn(e)?e.join("."):e}function m0(e,t){let n=[],o=!1;const s=(r,a,i)=>{if(ut(r))if(!a[i])n.push(r);else{let l=a[i];const c=r[l];if(!ut(c))return;if(i===a.length-1&&(Rt(c)||dc(c)||l0(c)))n.push(i0(c));else if(nn(c)){o=!0;for(let d=0,f=c.length;de.score===t.score?e.idx{this._keysMap[n.id]=o})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Rt(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();Rt(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,o=this.size();n{let a=s.getFn?s.getFn(t):this.getFn(t,s.path);if(ut(a)){if(nn(a)){let i=[];const l=[{nestedArrIndex:-1,value:a}];for(;l.length;){const{nestedArrIndex:c,value:d}=l.pop();if(ut(d))if(Rt(d)&&!Hs(d)){let f={v:d,i:c,n:this.norm.get(d)};i.push(f)}else nn(d)&&d.forEach((f,v)=>{l.push({nestedArrIndex:v,value:f})})}o.$[r]=i}else if(Rt(a)&&!Hs(a)){let i={v:a,n:this.norm.get(a)};o.$[r]=i}}}),this.records.push(o)}toJSON(){return{keys:this.keys,records:this.records}}}function hc(e,t,{getFn:n=ue.getFn,fieldNormWeight:o=ue.fieldNormWeight}={}){const s=new Zr({getFn:n,fieldNormWeight:o});return s.setKeys(e.map(vc)),s.setSources(t),s.create(),s}function k0(e,{getFn:t=ue.getFn,fieldNormWeight:n=ue.fieldNormWeight}={}){const{keys:o,records:s}=e,r=new Zr({getFn:t,fieldNormWeight:n});return r.setKeys(o),r.setIndexRecords(s),r}function Ro(e,{errors:t=0,currentLocation:n=0,expectedLocation:o=0,distance:s=ue.distance,ignoreLocation:r=ue.ignoreLocation}={}){const a=t/e.length;if(r)return a;const i=Math.abs(o-n);return s?a+i/s:i?1:a}function $0(e=[],t=ue.minMatchCharLength){let n=[],o=-1,s=-1,r=0;for(let a=e.length;r=t&&n.push([o,s]),o=-1)}return e[r-1]&&r-o>=t&&n.push([o,r-1]),n}const In=32;function T0(e,t,n,{location:o=ue.location,distance:s=ue.distance,threshold:r=ue.threshold,findAllMatches:a=ue.findAllMatches,minMatchCharLength:i=ue.minMatchCharLength,includeMatches:l=ue.includeMatches,ignoreLocation:c=ue.ignoreLocation}={}){if(t.length>In)throw new Error(f0(In));const d=t.length,f=e.length,v=Math.max(0,Math.min(o,f));let h=r,m=v;const p=i>1||l,b=p?Array(f):[];let y;for(;(y=e.indexOf(t,m))>-1;){let P=Ro(t,{currentLocation:y,expectedLocation:v,distance:s,ignoreLocation:c});if(h=Math.min(P,h),m=y+d,p){let E=0;for(;E=z;U-=1){let Z=U-1,te=n[e.charAt(Z)];if(p&&(b[Z]=+!!te),V[U]=(V[U+1]<<1|1)&te,P&&(V[U]|=($[U+1]|$[U])<<1|1|$[U+1]),V[U]&M&&(S=Ro(t,{errors:P,currentLocation:Z,expectedLocation:v,distance:s,ignoreLocation:c}),S<=h)){if(h=S,m=Z,m<=v)break;z=Math.max(1,2*v-m)}}if(Ro(t,{errors:P+1,currentLocation:v,expectedLocation:v,distance:s,ignoreLocation:c})>h)break;$=V}const x={isMatch:m>=0,score:Math.max(.001,S)};if(p){const P=$0(b,i);P.length?l&&(x.indices=P):x.isMatch=!1}return x}function C0(e){let t={};for(let n=0,o=e.length;n{this.chunks.push({pattern:v,alphabet:C0(v),startIndex:h})},f=this.pattern.length;if(f>In){let v=0;const h=f%In,m=f-h;for(;v{const{isMatch:y,score:$,indices:S}=T0(t,m,p,{location:s+b,distance:r,threshold:a,findAllMatches:i,minMatchCharLength:l,includeMatches:o,ignoreLocation:c});y&&(v=!0),f+=$,y&&S&&(d=[...d,...S])});let h={isMatch:v,score:v?f/this.chunks.length:1};return v&&o&&(h.indices=d),h}};class _n{constructor(t){this.pattern=t}static isMultiMatch(t){return Za(t,this.multiRegex)}static isSingleMatch(t){return Za(t,this.singleRegex)}search(){}}function Za(e,t){const n=e.match(t);return n?n[1]:null}class M0 extends _n{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class E0 extends _n{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const n=t.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class I0 extends _n{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class P0 extends _n{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class x0 extends _n{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class A0 extends _n{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}let gc=class extends _n{constructor(t,{location:n=ue.location,threshold:o=ue.threshold,distance:s=ue.distance,includeMatches:r=ue.includeMatches,findAllMatches:a=ue.findAllMatches,minMatchCharLength:i=ue.minMatchCharLength,isCaseSensitive:l=ue.isCaseSensitive,ignoreLocation:c=ue.ignoreLocation}={}){super(t),this._bitapSearch=new mc(t,{location:n,threshold:o,distance:s,includeMatches:r,findAllMatches:a,minMatchCharLength:i,isCaseSensitive:l,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}},yc=class extends _n{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,o;const s=[],r=this.pattern.length;for(;(o=t.indexOf(this.pattern,n))>-1;)n=o+r,s.push([o,n-1]);const a=!!s.length;return{isMatch:a,score:a?0:1,indices:s}}};const wr=[M0,yc,I0,P0,A0,x0,E0,gc],Ja=wr.length,L0=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,O0="|";function z0(e,t={}){return e.split(O0).map(n=>{let o=n.trim().split(L0).filter(r=>r&&!!r.trim()),s=[];for(let r=0,a=o.length;r!!(e[ss.AND]||e[ss.OR]),F0=e=>!!e[$r.PATH],R0=e=>!nn(e)&&fc(e)&&!Tr(e),ei=e=>({[ss.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function bc(e,t,{auto:n=!0}={}){const o=s=>{let r=Object.keys(s);const a=F0(s);if(!a&&r.length>1&&!Tr(s))return o(ei(s));if(R0(s)){const l=a?s[$r.PATH]:r[0],c=a?s[$r.PATTERN]:s[l];if(!Rt(c))throw new Error(d0(l));const d={keyId:_r(l),pattern:c};return n&&(d.searcher=kr(c,t)),d}let i={children:[],operator:r[0]};return r.forEach(l=>{const c=s[l];nn(c)&&c.forEach(d=>{i.children.push(o(d))})}),i};return Tr(e)||(e=ei(e)),o(e)}function D0(e,{ignoreFieldNorm:t=ue.ignoreFieldNorm}){e.forEach(n=>{let o=1;n.matches.forEach(({key:s,norm:r,score:a})=>{const i=s?s.weight:null;o*=Math.pow(a===0&&i?Number.EPSILON:a,(i||1)*(t?1:r))}),n.score=o})}function H0(e,t){const n=e.matches;t.matches=[],ut(n)&&n.forEach(o=>{if(!ut(o.indices)||!o.indices.length)return;const{indices:s,value:r}=o;let a={indices:s,value:r};o.key&&(a.key=o.key.src),o.idx>-1&&(a.refIndex=o.idx),t.matches.push(a)})}function j0(e,t){t.score=e.score}function W0(e,t,{includeMatches:n=ue.includeMatches,includeScore:o=ue.includeScore}={}){const s=[];return n&&s.push(H0),o&&s.push(j0),e.map(r=>{const{idx:a}=r,i={item:t[a],refIndex:a};return s.length&&s.forEach(l=>{l(r,i)}),i})}class Ln{constructor(t,n={},o){this.options={...ue,...n},this.options.useExtendedSearch,this._keyStore=new h0(this.options.keys),this.setCollection(t,o)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof Zr))throw new Error(u0);this._myIndex=n||hc(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){!ut(t)||(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let o=0,s=this._docs.length;o-1&&(l=l.slice(0,n)),W0(l,this._docs,{includeMatches:o,includeScore:s})}_searchStringList(t){const n=kr(t,this.options),{records:o}=this._myIndex,s=[];return o.forEach(({v:r,i:a,n:i})=>{if(!ut(r))return;const{isMatch:l,score:c,indices:d}=n.searchIn(r);l&&s.push({item:r,idx:a,matches:[{score:c,value:r,norm:i,indices:d}]})}),s}_searchLogical(t){const n=bc(t,this.options),o=(i,l,c)=>{if(!i.children){const{keyId:f,searcher:v}=i,h=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(l,f),searcher:v});return h&&h.length?[{idx:c,item:l,matches:h}]:[]}const d=[];for(let f=0,v=i.children.length;f{if(ut(i)){let c=o(n,i,l);c.length&&(r[l]||(r[l]={idx:l,item:i,matches:[]},a.push(r[l])),c.forEach(({matches:d})=>{r[l].matches.push(...d)}))}}),a}_searchObjectList(t){const n=kr(t,this.options),{keys:o,records:s}=this._myIndex,r=[];return s.forEach(({$:a,i})=>{if(!ut(a))return;let l=[];o.forEach((c,d)=>{l.push(...this._findMatches({key:c,value:a[d],searcher:n}))}),l.length&&r.push({idx:i,item:a,matches:l})}),r}_findMatches({key:t,value:n,searcher:o}){if(!ut(n))return[];let s=[];if(nn(n))n.forEach(({v:r,i:a,n:i})=>{if(!ut(r))return;const{isMatch:l,score:c,indices:d}=o.searchIn(r);l&&s.push({score:c,key:t,value:r,idx:a,norm:i,indices:d})});else{const{v:r,n:a}=n,{isMatch:i,score:l,indices:c}=o.searchIn(r);i&&s.push({score:l,key:t,value:r,norm:a,indices:c})}return s}}Ln.version="6.6.2";Ln.createIndex=hc;Ln.parseIndex=k0;Ln.config=ue;Ln.parseQuery=bc;V0(N0);const ti=De({selectedNode:"",selectedGroup:"",search:"",dataValue:"",filtered:{count:0,items:new Map,groups:new Set}}),to=()=>({isSearching:w(()=>ti.search!==""),...Wr(ti)});function G0(e){return{all:e=e||new Map,on:function(t,n){var o=e.get(t);o?o.push(n):e.set(t,[n])},off:function(t,n){var o=e.get(t);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var o=e.get(t);o&&o.slice().map(function(s){s(n)}),(o=e.get("*"))&&o.slice().map(function(s){s(t,n)})}}}const U0=G0(),ks=()=>({emitter:U0});function q0(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function K0(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}const Y0=["command-theme"],X0={"command-root":""},Q0=L({name:"Command"}),Z0=L({...Q0,props:{theme:{type:String,default:"default"},fuseOptions:{type:Object,default:()=>({threshold:.2,keys:["label"]})}},emits:["select-item"],setup(e,{emit:t}){const n=e,o='[command-item=""]',s="command-item-key",r='[command-group=""]',a="command-group-key",i='[command-group-heading=""]',l=`${o}:not([aria-disabled="true"])`,c=`${o}[aria-selected="true"]`,d="command-item-select",f="data-value";Ne("theme",n.theme||"default");const{selectedNode:v,search:h,dataValue:m,filtered:p}=to(),{emitter:b}=ks(),y=I(),$=Ds(I(new Map),333),S=Ds(I(new Set),333),T=Ds(I(new Map)),M=w(()=>{const G=[];for(const[ie,re]of $.value.entries())G.push({key:ie,label:re});return G}),x=w(()=>{const G=Ln.createIndex(n.fuseOptions.keys,M.value);return new Ln(M.value,n.fuseOptions,G)}),P=()=>{var G,ie,re;const X=E();X&&(((G=X.parentElement)==null?void 0:G.firstElementChild)===X&&((re=(ie=X.closest(r))==null?void 0:ie.querySelector(i))==null||re.scrollIntoView({block:"nearest"})),X.scrollIntoView({block:"nearest"}))},E=()=>{var G;return(G=y.value)==null?void 0:G.querySelector(c)},j=(G=y.value)=>{const ie=G==null?void 0:G.querySelectorAll(l);return ie?Array.from(ie):[]},z=()=>{var G;const ie=(G=y.value)==null?void 0:G.querySelectorAll(r);return ie?Array.from(ie):[]},F=()=>{const[G]=j();G&&G.getAttribute(s)&&(v.value=G.getAttribute(s)||"")},V=G=>{const ie=j()[G];ie&&(v.value=ie.getAttribute(s)||"")},U=G=>{const ie=E(),re=j(),X=re.findIndex($e=>$e===ie),le=re[X+G];le?v.value=le.getAttribute(s)||"":G>0?V(0):V(re.length-1)},Z=G=>{const ie=E();let re=ie==null?void 0:ie.closest(r),X=null;for(;re&&!X;)re=G>0?q0(re,r):K0(re,r),X=re==null?void 0:re.querySelector(l);X?v.value=X.getAttribute(s)||"":U(G)},te=()=>V(0),oe=()=>V(j().length-1),W=G=>{G.preventDefault(),G.metaKey?oe():G.altKey?Z(1):U(1)},q=G=>{G.preventDefault(),G.metaKey?te():G.altKey?Z(-1):U(-1)},Y=G=>{switch(G.key){case"n":case"j":{G.ctrlKey&&W(G);break}case"ArrowDown":{W(G);break}case"p":case"k":{G.ctrlKey&&q(G);break}case"ArrowUp":{q(G);break}case"Home":{te();break}case"End":{oe();break}case"Enter":{const ie=E();if(ie){const re=new Event(d);ie.dispatchEvent(re)}}}},J=()=>{if(!h.value){p.value.count=S.value.size;return}p.value.groups=new Set("");const G=new Map,ie=x.value.search(h.value).map(re=>re.item);for(const{key:re,label:X}of ie)G.set(re,X);for(const[re,X]of T.value)for(const le of X)G.get(le)&&p.value.groups.add(re);_e(()=>{p.value.count=G.size,p.value.items=G})},ae=()=>{const G=j(),ie=z();for(const re of G){const X=re.getAttribute(s)||"",le=re.getAttribute(f)||"";S.value.add(X),$.value.set(X,le),p.value.count=$.value.size}for(const re of ie){const X=j(re),le=re.getAttribute(a)||"",$e=new Set("");for(const Je of X){const Ue=Je.getAttribute(s)||"";$e.add(Ue)}T.value.set(le,$e)}};Q(()=>v.value,G=>{G&&_e(P)},{deep:!0}),Q(()=>h.value,G=>{J(),_e(F)}),b.on("selectItem",G=>{t("select-item",G)});const ce=lc(G=>{G&&(ae(),_e(F))},100);return b.on("rerenderList",ce),me(()=>{ae(),F()}),(G,ie)=>(g(),k("div",{class:N(e.theme),onKeydown:Y,ref_key:"commandRef",ref:y,"command-theme":e.theme},[_("div",X0,[A(G.$slots,"default")])],42,Y0))}}),no=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},Cr=no(Z0,[["__file","/Users/xiaoyunwei/Documents/GitHub/oss/vue-command-palette/packages/Command.vue"]]),J0={"command-dialog":""},e1={"command-dialog-mask":""},t1={"command-dialog-wrapper":""},n1={"command-dialog-header":""},o1={"command-dialog-body":""},s1={key:0,"command-dialog-footer":""},r1=L({name:"Command.Dialog"}),a1=L({...r1,props:{visible:{type:Boolean,required:!0},theme:{type:String,required:!0}},emits:["select-item"],setup(e,{emit:t}){const n=e,{search:o,filtered:s}=to(),{emitter:r}=ks(),a=I();r.on("selectItem",l=>{t("select-item",l)});const i=()=>{o.value="",s.value.count=0,s.value.items=new Map,s.value.groups=new Set};return cc(()=>n.visible,i),it(i),(l,c)=>(g(),H(jr,{to:"body",ref_key:"dialogRef",ref:a},[B(at,{name:"command-dialog",appear:""},{default:C(()=>[e.visible?(g(),H(Cr,{key:0,theme:e.theme},{default:C(()=>[_("div",J0,[_("div",e1,[_("div",t1,[_("div",n1,[A(l.$slots,"header")]),_("div",o1,[A(l.$slots,"body")]),l.$slots.footer?(g(),k("div",s1,[A(l.$slots,"footer")])):O("v-if",!0)])])])]),_:3},8,["theme"])):O("v-if",!0)]),_:3})],512))}}),i1=no(a1,[["__file","/Users/xiaoyunwei/Documents/GitHub/oss/vue-command-palette/packages/CommandDialog.vue"]]);let _c=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");const l1=["command-group-key","data-value"],c1={key:0,"command-group-heading":""},u1={"command-group-items":"",role:"group"},d1=L({name:"Command.Group"}),f1=L({...d1,props:{heading:{type:String,required:!0}},setup(e){const t=w(()=>`command-group-${_c()}`),{filtered:n,isSearching:o}=to(),s=w(()=>o.value?n.value.groups.has(t.value):!0);return(r,a)=>ge((g(),k("div",{"command-group":"",role:"presentation",key:u(t),"command-group-key":u(t),"data-value":e.heading},[e.heading?(g(),k("div",c1,D(e.heading),1)):O("v-if",!0),_("div",u1,[A(r.$slots,"default")])],8,l1)),[[Ie,u(s)]])}}),p1=no(f1,[["__file","/Users/xiaoyunwei/Documents/GitHub/oss/vue-command-palette/packages/CommandGroup.vue"]]),v1=["placeholder","value"],h1=L({name:"Command.Input"}),m1=L({...h1,props:{placeholder:{type:String,required:!0},value:{type:String,required:!1}},emits:["input","update:value"],setup(e,{emit:t}){const n=I(null),{search:o}=to(),s=w(()=>o.value),r=a=>{const i=a,l=a.target;o.value=l==null?void 0:l.value,t("input",i),t("update:value",o.value)};return zt(()=>{var a;(a=n.value)==null||a.focus()}),(a,i)=>(g(),k("input",{ref_key:"inputRef",ref:n,"command-input":"","auto-focus":"","auto-complete":"off","auto-correct":"off","spell-check":!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,placeholder:e.placeholder,value:u(s),onInput:r},null,40,v1))}}),g1=no(m1,[["__file","/Users/xiaoyunwei/Documents/GitHub/oss/vue-command-palette/packages/CommandInput.vue"]]),y1=["aria-selected","aria-disabled","command-item-key"],b1=L({name:"Command.Item"}),_1=L({...b1,props:{shortcut:{type:Array,required:!1},perform:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const n=e,o="command-item-select",s="data-value",{current:r}=Jh(),{selectedNode:a,filtered:i,isSearching:l}=to(),{emitter:c}=ks(),d=I(),f=w(()=>`command-item-${_c()}`),v=w(()=>{const p=i.value.items.get(f.value);return l.value?p!==void 0:!0}),h=w(()=>Array.from(r)),m=()=>{var p;const b={key:f.value,value:((p=d.value)==null?void 0:p.getAttribute(s))||""};t("select",b),c.emit("selectItem",b)};return cc(h,p=>{n.shortcut&&n.shortcut.length>0&&n.shortcut.every(b=>r.has(b.toLowerCase()))&&n.perform&&n.perform()}),zt(()=>{var p;(p=d.value)==null||p.addEventListener(o,m)}),it(()=>{var p;(p=d.value)==null||p.removeEventListener(o,m)}),(p,b)=>ge((g(),k("div",{ref_key:"itemRef",ref:d,"command-item":"",role:"option","aria-selected":u(a)===u(f),"aria-disabled":!u(v),key:u(f),"command-item-key":u(f),onClick:m},[A(p.$slots,"default")],8,y1)),[[Ie,u(v)]])}}),w1=no(_1,[["__file","/Users/xiaoyunwei/Documents/GitHub/oss/vue-command-palette/packages/CommandItem.vue"]]),S1=L({name:"Command.List"}),k1=L({...S1,setup(e){const{emitter:t}=ks(),n=I(),o=I();let s=null,r;return zt(()=>{r=o.value;const a=n.value;r&&a&&(s=new ResizeObserver(i=>{_e(()=>{const l=r==null?void 0:r.offsetHeight;a==null||a.style.setProperty("--command-list-height",`${l==null?void 0:l.toFixed(1)}px`),t.emit("rerenderList",!0)})}),s.observe(r))}),it(()=>{s!==null&&r&&s.unobserve(r)}),(a,i)=>(g(),k("div",{"command-list":"",role:"listbox","aria-label":"Suggestions",ref_key:"listRef",ref:n},[_("div",{"command-list-sizer":"",ref_key:"heightRef",ref:o},[A(a.$slots,"default")],512)],512))}}),$1=no(k1,[["__file","/Users/xiaoyunwei/Documents/GitHub/oss/vue-command-palette/packages/CommandList.vue"]]),T1=L({name:"Command.Empty",setup(e,{attrs:t,slots:n}){const{filtered:o}=to(),s=w(()=>o.value.count===0);return()=>s.value?Be("div",{"command-empty":"",role:"presentation",...t},n):Be("div",{"command-empty":"hidden",role:"presentation",style:{display:"none"},...t})}}),C1=L({name:"Command.Loading",setup(e,{attrs:t,slots:n}){return()=>Be("div",{"command-loading":"",role:"progressbar",...t},n)}}),M1=L({name:"Command.Separator",setup(e,{attrs:t,slots:n}){return()=>Be("div",{"command-separator":"",role:"separator",...t})}}),Dn=Object.assign(Cr,{Dialog:i1,Empty:T1,Group:p1,Input:g1,Item:w1,List:$1,Loading:C1,Separator:M1,Root:Cr});var ni;const Ce=typeof window<"u",wc=e=>typeof e=="function",E1=e=>typeof e=="string",on=()=>{},I1=Ce&&((ni=window==null?void 0:window.navigator)==null?void 0:ni.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function bt(e){return typeof e=="function"?e():u(e)}function Jr(e,t){function n(...o){return new Promise((s,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(r)})}return n}const Sc=e=>e();function P1(e,t={}){let n,o,s=on;const r=i=>{clearTimeout(i),s(),s=on};return i=>{const l=bt(e),c=bt(t.maxWait);return n&&r(n),l<=0||c!==void 0&&c<=0?(o&&(r(o),o=null),Promise.resolve(i())):new Promise((d,f)=>{s=t.rejectOnCancel?f:d,c&&!o&&(o=setTimeout(()=>{n&&r(n),o=null,d(i())},c)),n=setTimeout(()=>{o&&r(o),o=null,d(i())},l)})}}function x1(e,t=!0,n=!0,o=!1){let s=0,r,a=!0,i=on,l;const c=()=>{r&&(clearTimeout(r),r=void 0,i(),i=on)};return f=>{const v=bt(e),h=Date.now()-s,m=()=>l=f();return c(),v<=0?(s=Date.now(),m()):(h>v&&(n||!a)?(s=Date.now(),m()):t&&(l=new Promise((p,b)=>{i=o?b:p,r=setTimeout(()=>{s=Date.now(),a=!0,p(m()),c()},Math.max(0,v-h))})),!n&&!r&&(r=setTimeout(()=>a=!0,v)),a=!1,l)}}function A1(e=Sc){const t=I(!0);function n(){t.value=!1}function o(){t.value=!0}const s=(...r)=>{t.value&&e(...r)};return{isActive:_s(t),pause:n,resume:o,eventFilter:s}}function L1(e){return e}function yn(e){return Wl()?(Gl(e),!0):!1}function kc(e,t=200,n={}){return Jr(P1(t,n),e)}function $c(e,t=200,n=!1,o=!0,s=!1){return Jr(x1(t,n,o,s),e)}function O1(e){return typeof e=="function"?w(e):I(e)}function ea(e,t=!0){Ye()?me(e):t?e():_e(e)}function z1(e,t=1e3,n={}){const{immediate:o=!0,immediateCallback:s=!1}=n;let r=null;const a=I(!1);function i(){r&&(clearInterval(r),r=null)}function l(){a.value=!1,i()}function c(){const d=bt(t);d<=0||(a.value=!0,s&&e(),i(),r=setInterval(e,d))}if(o&&Ce&&c(),Ul(t)||wc(t)){const d=Q(t,()=>{a.value&&Ce&&c()});yn(d)}return yn(l),{isActive:a,pause:l,resume:c}}function B1(e,t,n={}){const{immediate:o=!0}=n,s=I(!1);let r=null;function a(){r&&(clearTimeout(r),r=null)}function i(){s.value=!1,a()}function l(...c){a(),s.value=!0,r=setTimeout(()=>{s.value=!1,r=null,e(...c)},bt(t))}return o&&(s.value=!0,Ce&&l()),yn(i),{isPending:_s(s),start:l,stop:i}}var oi=Object.getOwnPropertySymbols,N1=Object.prototype.hasOwnProperty,V1=Object.prototype.propertyIsEnumerable,F1=(e,t)=>{var n={};for(var o in e)N1.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&oi)for(var o of oi(e))t.indexOf(o)<0&&V1.call(e,o)&&(n[o]=e[o]);return n};function R1(e,t,n={}){const o=n,{eventFilter:s=Sc}=o,r=F1(o,["eventFilter"]);return Q(e,Jr(s,t),r)}var D1=Object.defineProperty,H1=Object.defineProperties,j1=Object.getOwnPropertyDescriptors,rs=Object.getOwnPropertySymbols,Tc=Object.prototype.hasOwnProperty,Cc=Object.prototype.propertyIsEnumerable,si=(e,t,n)=>t in e?D1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,W1=(e,t)=>{for(var n in t||(t={}))Tc.call(t,n)&&si(e,n,t[n]);if(rs)for(var n of rs(t))Cc.call(t,n)&&si(e,n,t[n]);return e},G1=(e,t)=>H1(e,j1(t)),U1=(e,t)=>{var n={};for(var o in e)Tc.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&rs)for(var o of rs(e))t.indexOf(o)<0&&Cc.call(e,o)&&(n[o]=e[o]);return n};function Mc(e,t,n={}){const o=n,{eventFilter:s}=o,r=U1(o,["eventFilter"]),{eventFilter:a,pause:i,resume:l,isActive:c}=A1(s);return{stop:R1(e,t,G1(W1({},r),{eventFilter:a})),pause:i,resume:l,isActive:c}}function ot(e){var t;const n=bt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ke=Ce?window:void 0;function Me(...e){let t,n,o,s;if(E1(e[0])||Array.isArray(e[0])?([n,o,s]=e,t=Ke):[t,n,o,s]=e,!t)return on;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(d=>d()),r.length=0},i=(d,f,v,h)=>(d.addEventListener(f,v,h),()=>d.removeEventListener(f,v,h)),l=Q(()=>[ot(t),bt(s)],([d,f])=>{a(),d&&r.push(...n.flatMap(v=>o.map(h=>i(d,v,h,f))))},{immediate:!0,flush:"post"}),c=()=>{l(),a()};return yn(c),c}let ri=!1;function q1(e,t,n={}){const{window:o=Ke,ignore:s=[],capture:r=!0,detectIframe:a=!1}=n;if(!o)return;I1&&!ri&&(ri=!0,Array.from(o.document.body.children).forEach(v=>v.addEventListener("click",on)));let i=!0;const l=v=>s.some(h=>{if(typeof h=="string")return Array.from(o.document.querySelectorAll(h)).some(m=>m===v.target||v.composedPath().includes(m));{const m=ot(h);return m&&(v.target===m||v.composedPath().includes(m))}}),d=[Me(o,"click",v=>{const h=ot(e);if(!(!h||h===v.target||v.composedPath().includes(h))){if(v.detail===0&&(i=!l(v)),!i){i=!0;return}t(v)}},{passive:!0,capture:r}),Me(o,"pointerdown",v=>{const h=ot(e);h&&(i=!v.composedPath().includes(h)&&!l(v))},{passive:!0}),a&&Me(o,"blur",v=>{var h;const m=ot(e);((h=o.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(m!=null&&m.contains(o.document.activeElement))&&t(v)})].filter(Boolean);return()=>d.forEach(v=>v())}function ta(e,t=!1){const n=I(),o=()=>n.value=!!e();return o(),ea(o,t),n}function K1(e,t={}){const{window:n=Ke}=t,o=ta(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let s;const r=I(!1),a=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",i):s.removeListener(i))},i=()=>{o.value&&(a(),s=n.matchMedia(O1(e).value),r.value=s.matches,"addEventListener"in s?s.addEventListener("change",i):s.addListener(i))};return zt(i),yn(()=>a()),r}function Y1({window:e=Ke}={}){const t=o=>{const{state:s,length:r}=(e==null?void 0:e.history)||{},{hash:a,host:i,hostname:l,href:c,origin:d,pathname:f,port:v,protocol:h,search:m}=(e==null?void 0:e.location)||{};return{trigger:o,state:s,length:r,hash:a,host:i,hostname:l,href:c,origin:d,pathname:f,port:v,protocol:h,search:m}},n=I(t("load"));return e&&(Me(e,"popstate",()=>n.value=t("popstate"),{passive:!0}),Me(e,"hashchange",()=>n.value=t("hashchange"),{passive:!0})),n}const Mr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Er="__vueuse_ssr_handlers__";Mr[Er]=Mr[Er]||{};const X1=Mr[Er];function Ec(e,t){return X1[e]||t}function Q1(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var Z1=Object.defineProperty,ai=Object.getOwnPropertySymbols,J1=Object.prototype.hasOwnProperty,em=Object.prototype.propertyIsEnumerable,ii=(e,t,n)=>t in e?Z1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,li=(e,t)=>{for(var n in t||(t={}))J1.call(t,n)&&ii(e,n,t[n]);if(ai)for(var n of ai(t))em.call(t,n)&&ii(e,n,t[n]);return e};const tm={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},ci="vueuse-storage";function Ic(e,t,n,o={}){var s;const{flush:r="pre",deep:a=!0,listenToStorageChanges:i=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:d,window:f=Ke,eventFilter:v,onError:h=E=>{console.error(E)}}=o,m=(d?Ot:I)(t);if(!n)try{n=Ec("getDefaultStorage",()=>{var E;return(E=Ke)==null?void 0:E.localStorage})()}catch(E){h(E)}if(!n)return m;const p=bt(t),b=Q1(p),y=(s=o.serializer)!=null?s:tm[b],{pause:$,resume:S}=Mc(m,()=>T(m.value),{flush:r,deep:a,eventFilter:v});return f&&i&&(Me(f,"storage",P),Me(f,ci,x)),P(),m;function T(E){try{if(E==null)n.removeItem(e);else{const j=y.write(E),z=n.getItem(e);z!==j&&(n.setItem(e,j),f&&f.dispatchEvent(new CustomEvent(ci,{detail:{key:e,oldValue:z,newValue:j,storageArea:n}})))}}catch(j){h(j)}}function M(E){const j=E?E.newValue:n.getItem(e);if(j==null)return l&&p!==null&&n.setItem(e,y.write(p)),p;if(!E&&c){const z=y.read(j);return wc(c)?c(z,p):b==="object"&&!Array.isArray(z)?li(li({},p),z):z}else return typeof j!="string"?j:y.read(j)}function x(E){P(E.detail)}function P(E){if(!(E&&E.storageArea!==n)){if(E&&E.key==null){m.value=p;return}if(!(E&&E.key!==e)){$();try{m.value=M(E)}catch(j){h(j)}finally{E?_e(S):S()}}}}}function Pc(e){return K1("(prefers-color-scheme: dark)",e)}var nm=Object.defineProperty,ui=Object.getOwnPropertySymbols,om=Object.prototype.hasOwnProperty,sm=Object.prototype.propertyIsEnumerable,di=(e,t,n)=>t in e?nm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rm=(e,t)=>{for(var n in t||(t={}))om.call(t,n)&&di(e,n,t[n]);if(ui)for(var n of ui(t))sm.call(t,n)&&di(e,n,t[n]);return e};function xc(e={}){const{selector:t="html",attribute:n="class",initialValue:o="auto",window:s=Ke,storage:r,storageKey:a="vueuse-color-scheme",listenToStorageChanges:i=!0,storageRef:l,emitAuto:c}=e,d=rm({auto:"",light:"light",dark:"dark"},e.modes||{}),f=Pc({window:s}),v=w(()=>f.value?"dark":"light"),h=l||(a==null?I(o):Ic(a,o,r,{window:s,listenToStorageChanges:i})),m=w({get(){return h.value==="auto"&&!c?v.value:h.value},set($){h.value=$}}),p=Ec("updateHTMLAttrs",($,S,T)=>{const M=s==null?void 0:s.document.querySelector($);if(M)if(S==="class"){const x=T.split(/\s/g);Object.values(d).flatMap(P=>(P||"").split(/\s/g)).filter(Boolean).forEach(P=>{x.includes(P)?M.classList.add(P):M.classList.remove(P)})}else M.setAttribute(S,T)});function b($){var S;const T=$==="auto"?v.value:$;p(t,n,(S=d[T])!=null?S:T)}function y($){e.onChanged?e.onChanged($,b):b($)}return Q(m,y,{flush:"post",immediate:!0}),c&&Q(v,()=>y(m.value),{flush:"post"}),ea(()=>y(m.value)),m}var am=Object.defineProperty,im=Object.defineProperties,lm=Object.getOwnPropertyDescriptors,fi=Object.getOwnPropertySymbols,cm=Object.prototype.hasOwnProperty,um=Object.prototype.propertyIsEnumerable,pi=(e,t,n)=>t in e?am(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dm=(e,t)=>{for(var n in t||(t={}))cm.call(t,n)&&pi(e,n,t[n]);if(fi)for(var n of fi(t))um.call(t,n)&&pi(e,n,t[n]);return e},fm=(e,t)=>im(e,lm(t));function Ac(e={}){const{valueDark:t="dark",valueLight:n="",window:o=Ke}=e,s=xc(fm(dm({},e),{onChanged:(i,l)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,i==="dark"):l(i)},modes:{dark:t,light:n}})),r=Pc({window:o});return w({get(){return s.value==="dark"},set(i){i===r.value?s.value="auto":s.value=i?"dark":"light"}})}var vi=Object.getOwnPropertySymbols,pm=Object.prototype.hasOwnProperty,vm=Object.prototype.propertyIsEnumerable,hm=(e,t)=>{var n={};for(var o in e)pm.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&vi)for(var o of vi(e))t.indexOf(o)<0&&vm.call(e,o)&&(n[o]=e[o]);return n};function mt(e,t,n={}){const o=n,{window:s=Ke}=o,r=hm(o,["window"]);let a;const i=ta(()=>s&&"ResizeObserver"in s),l=()=>{a&&(a.disconnect(),a=void 0)},c=Q(()=>ot(e),f=>{l(),i.value&&s&&f&&(a=new ResizeObserver(t),a.observe(f,r))},{immediate:!0,flush:"post"}),d=()=>{l(),c()};return yn(d),{isSupported:i,stop:d}}function Lc(e,t={width:0,height:0},n={}){const{window:o=Ke,box:s="content-box"}=n,r=w(()=>{var l,c;return(c=(l=ot(e))==null?void 0:l.namespaceURI)==null?void 0:c.includes("svg")}),a=I(t.width),i=I(t.height);return mt(e,([l])=>{const c=s==="border-box"?l.borderBoxSize:s==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(o&&r.value){const d=ot(e);if(d){const f=o.getComputedStyle(d);a.value=parseFloat(f.width),i.value=parseFloat(f.height)}}else if(c){const d=Array.isArray(c)?c:[c];a.value=d.reduce((f,{inlineSize:v})=>f+v,0),i.value=d.reduce((f,{blockSize:v})=>f+v,0)}else a.value=l.contentRect.width,i.value=l.contentRect.height},n),Q(()=>ot(e),l=>{a.value=l?t.width:0,i.value=l?t.height:0}),{width:a,height:i}}function mm(e,{window:t=Ke,scrollTarget:n}={}){const o=I(!1),s=()=>{if(!t)return;const r=t.document,a=ot(e);if(!a)o.value=!1;else{const i=a.getBoundingClientRect();o.value=i.top<=(t.innerHeight||r.documentElement.clientHeight)&&i.left<=(t.innerWidth||r.documentElement.clientWidth)&&i.bottom>=0&&i.right>=0}};return Q(()=>ot(e),()=>s(),{immediate:!0,flush:"post"}),t&&Me(n||t,"scroll",s,{capture:!1,passive:!0}),o}const hi=1;function gm(e,t={}){const{throttle:n=0,idle:o=200,onStop:s=on,onScroll:r=on,offset:a={left:0,right:0,top:0,bottom:0},eventListenerOptions:i={capture:!1,passive:!0},behavior:l="auto"}=t,c=I(0),d=I(0),f=w({get(){return c.value},set(T){h(T,void 0)}}),v=w({get(){return d.value},set(T){h(void 0,T)}});function h(T,M){var x,P,E;const j=bt(e);j&&((E=j instanceof Document?document.body:j)==null||E.scrollTo({top:(x=bt(M))!=null?x:v.value,left:(P=bt(T))!=null?P:f.value,behavior:bt(l)}))}const m=I(!1),p=De({left:!0,right:!1,top:!0,bottom:!1}),b=De({left:!1,right:!1,top:!1,bottom:!1}),y=T=>{m.value&&(m.value=!1,b.left=!1,b.right=!1,b.top=!1,b.bottom=!1,s(T))},$=kc(y,n+o),S=T=>{const M=T.target===document?T.target.documentElement:T.target,x=M.scrollLeft;b.left=xd.value,p.left=x<=0+(a.left||0),p.right=x+M.clientWidth>=M.scrollWidth-(a.right||0)-hi,c.value=x;let P=M.scrollTop;T.target===document&&!P&&(P=document.body.scrollTop),b.top=Pd.value,p.top=P<=0+(a.top||0),p.bottom=P+M.clientHeight>=M.scrollHeight-(a.bottom||0)-hi,d.value=P,m.value=!0,$(T),r(T)};return Me(e,"scroll",n?$c(S,n,!0,!1):S,i),Me(e,"scrollend",y,i),{x:f,y:v,isScrolling:m,arrivedState:p,directions:b}}function ym(e,t,n={}){const{window:o=Ke}=n;return Ic(e,t,o==null?void 0:o.localStorage,n)}const bm={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function _m(e={}){const{reactive:t=!1,target:n=Ke,aliasMap:o=bm,passive:s=!0,onEventFired:r=on}=e,a=De(new Set),i={toJSON(){return{}},current:a},l=t?De(i):i,c=new Set,d=new Set;function f(p,b){p in l&&(t?l[p]=b:l[p].value=b)}function v(){a.clear();for(const p of d)f(p,!1)}function h(p,b){var y,$;const S=(y=p.key)==null?void 0:y.toLowerCase(),M=[($=p.code)==null?void 0:$.toLowerCase(),S].filter(Boolean);S&&(b?a.add(S):a.delete(S));for(const x of M)d.add(x),f(x,b);S==="meta"&&!b?(c.forEach(x=>{a.delete(x),f(x,!1)}),c.clear()):typeof p.getModifierState=="function"&&p.getModifierState("Meta")&&b&&[...a,...M].forEach(x=>c.add(x))}Me(n,"keydown",p=>(h(p,!0),r(p)),{passive:s}),Me(n,"keyup",p=>(h(p,!1),r(p)),{passive:s}),Me("blur",v,{passive:!0}),Me("focus",v,{passive:!0});const m=new Proxy(l,{get(p,b,y){if(typeof b!="string")return Reflect.get(p,b,y);if(b=b.toLowerCase(),b in o&&(b=o[b]),!(b in l))if(/[+_-]/.test(b)){const S=b.split(/[+_-]/g).map(T=>T.trim());l[b]=w(()=>S.every(T=>u(m[T])))}else l[b]=I(!1);const $=Reflect.get(p,b,y);return t?u($):$}});return m}var mi=Object.getOwnPropertySymbols,wm=Object.prototype.hasOwnProperty,Sm=Object.prototype.propertyIsEnumerable,km=(e,t)=>{var n={};for(var o in e)wm.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&mi)for(var o of mi(e))t.indexOf(o)<0&&Sm.call(e,o)&&(n[o]=e[o]);return n};function $m(e,t,n={}){const o=n,{window:s=Ke}=o,r=km(o,["window"]);let a;const i=ta(()=>s&&"MutationObserver"in s),l=()=>{a&&(a.disconnect(),a=void 0)},c=Q(()=>ot(e),f=>{l(),i.value&&s&&f&&(a=new MutationObserver(t),a.observe(f,r))},{immediate:!0}),d=()=>{l(),c()};return yn(d),{isSupported:i,stop:d}}var gi;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(gi||(gi={}));var Tm=Object.defineProperty,yi=Object.getOwnPropertySymbols,Cm=Object.prototype.hasOwnProperty,Mm=Object.prototype.propertyIsEnumerable,bi=(e,t,n)=>t in e?Tm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Em=(e,t)=>{for(var n in t||(t={}))Cm.call(t,n)&&bi(e,n,t[n]);if(yi)for(var n of yi(t))Mm.call(t,n)&&bi(e,n,t[n]);return e};const Im={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};Em({linear:L1},Im);function Pm(e="history",t={}){const{initialValue:n={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:r=!0,window:a=Ke}=t;if(!a)return De(n);const i=De({});function l(){if(e==="history")return a.location.search||"";if(e==="hash"){const y=a.location.hash||"",$=y.indexOf("?");return $>0?y.slice($):""}else return(a.location.hash||"").replace(/^#/,"")}function c(y){const $=y.toString();if(e==="history")return`${$?`?${$}`:""}${a.location.hash||""}`;if(e==="hash-params")return`${a.location.search||""}${$?`#${$}`:""}`;const S=a.location.hash||"#",T=S.indexOf("?");return T>0?`${S.slice(0,T)}${$?`?${$}`:""}`:`${S}${$?`?${$}`:""}`}function d(){return new URLSearchParams(l())}function f(y){const $=new Set(Object.keys(i));for(const S of y.keys()){const T=y.getAll(S);i[S]=T.length>1?T:y.get(S)||"",$.delete(S)}Array.from($).forEach(S=>delete i[S])}const{pause:v,resume:h}=Mc(i,()=>{const y=new URLSearchParams("");Object.keys(i).forEach($=>{const S=i[$];Array.isArray(S)?S.forEach(T=>y.append($,T)):o&&S==null||s&&!S?y.delete($):y.set($,S)}),m(y)},{deep:!0});function m(y,$){v(),$&&f(y),a.history.replaceState(a.history.state,a.document.title,a.location.pathname+c(y)),h()}function p(){r&&m(d(),!0)}Me(a,"popstate",p,!1),e!=="history"&&Me(a,"hashchange",p,!1);const b=d();return b.keys().next().value?f(b):Object.assign(i,n),i}function na(e={}){const{window:t=Ke,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:s=!0,includeScrollbar:r=!0}=e,a=I(n),i=I(o),l=()=>{t&&(r?(a.value=t.innerWidth,i.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};return l(),ea(l),Me("resize",l,{passive:!0}),s&&Me("orientationchange",l,{passive:!0}),{width:a,height:i}}const xm={},Am={},Lm={width:"594",height:"112",viewBox:"0 0 594 112",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Om=Xd('',11),zm=[Om];function Bm(e,t){return g(),k("svg",Lm,zm)}const Nm=ne(Am,[["render",Bm]]);function Vm(e){if(!e)return{};try{const t=decodeURIComponent(atob(e));return JSON.parse(t)}catch{return{}}}function Fm(e){const{sub_results:t,anchors:n,weighted_locations:o}=e;o.sort((v,h)=>h.weight===v.weight?h.location-v.location:h.weight-v.weight);let s=null;for(const{location:v}of o)if(s=t.filter(m=>{const{locations:p}=m,[b]=p||[];if(!b)return!1;const y=p.length===1?Number.POSITIVE_INFINITY:p[p.length-1];return b<=v&&v<=y}).reduce((m,p)=>m&&m.locations.length>p.locations.length?m:p,null),s)break;const r=(s==null?void 0:s.url)||(e==null?void 0:e.url),a=(s==null?void 0:s.excerpt)||(e==null?void 0:e.excerpt),i=(n==null?void 0:n.filter(v=>s?v.location<=s.anchor.location&&v.element<=s.anchor.element:!1))||[];i.reverse();const l=i.reduce((v,h)=>(v.some(p=>p.element===h.element)||v.unshift(h),v),[]),c=l.length?l.map(v=>v.text.trim()).filter(v=>!!v).join(" > "):e.meta.title,{base64:d,...f}=e.meta;return{route:r,meta:{...Vm(d),...f,title:c,description:a},result:e}}function Rm(e,t="yyyy-MM-dd hh:mm:ss"){e instanceof Date||(e=new Date(e));const n={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,`${e.getFullYear()}`.substr(4-RegExp.$1.length)));for(const o in n)new RegExp(`(${o})`).test(t)&&(t=t.replace(RegExp.$1,RegExp.$1.length===1?n[o]:`00${n[o]}`.substr(`${n[o]}`.length)));return t}function Dm(e,t){const n=+new Date(e),s=+new Date-n,r=1e3,a=r*60,i=a*60,l=i*24,c=l*7,d={"zh-cn":{justNow:"刚刚",secondsAgo:"秒前",minutesAgo:"分钟前",hoursAgo:"小时前",daysAgo:"天前",weeksAgo:"周前"},"en-us":{justNow:" just now",secondsAgo:" seconds ago",minutesAgo:" minutes ago",hoursAgo:" hours ago",daysAgo:" days ago",weeksAgo:" weeks ago"}},f=d[t.toLowerCase()]||d["en-us"];return s<10?f.justNow:s(xe("data-v-f37c7efc"),e=e(),Ae(),e),Hm={class:"blog-search","data-pagefind-ignore":"all"},jm=oo(()=>_("span",null,[_("svg",{width:"14",height:"14",viewBox:"0 0 20 20"},[_("path",{d:"M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z",stroke:"currentColor",fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),Wm={class:"search-tip"},Gm={class:"metaKey"},Um={class:"search-bar"},qm={class:"search-actions before"},Km=oo(()=>_("span",{class:"vpi-arrow-left local-search-icon"},null,-1)),Ym=[Km],Xm={class:"search-actions"},Qm=oo(()=>_("span",{class:"vpi-layout-list local-search-icon"},null,-1)),Zm=[Qm],Jm=["disabled"],eg=oo(()=>_("span",{class:"vpi-delete local-search-icon"},null,-1)),tg=[eg],ng={class:"link"},og={class:"title"},sg={class:"headings"},rg={key:0,class:"prefix"},ag={key:0,class:"date"},ig=["innerHTML"],lg={class:"command-palette-logo"},cg={href:"https://github.com/cloudcannon/pagefind",target:"_blank",rel:"noopener noreferrer"},ug=oo(()=>_("span",{class:"command-palette-Label"},"Search by",-1)),dg=oo(()=>_("ul",{class:"command-palette-commands"},[_("li",null,[_("kbd",{class:"command-palette-commands-key"},[_("svg",{width:"15",height:"15","aria-label":"Enter key",role:"img"},[_("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.2"},[_("path",{d:"M12 3.53088v3c0 1-1 2-2 2H4M7 11.53088l-3-3 3-3"})])])]),_("span",{class:"command-palette-Label"},"to select")]),_("li",null,[_("kbd",{class:"command-palette-commands-key"},[_("svg",{width:"15",height:"15","aria-label":"Arrow down",role:"img"},[_("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.2"},[_("path",{d:"M7.5 3.5v8M10.5 8.5l-3 3-3-3"})])])]),_("kbd",{class:"command-palette-commands-key"},[_("svg",{width:"15",height:"15","aria-label":"Arrow up",role:"img"},[_("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.2"},[_("path",{d:"M7.5 11.5v-8M10.5 6.5l-3-3-3 3"})])])]),_("span",{class:"command-palette-Label"},"to navigate")]),_("li",null,[_("kbd",{class:"command-palette-commands-key"},[_("svg",{width:"15",height:"15","aria-label":"Escape key",role:"img"},[_("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.2"},[_("path",{d:"M13.6167 8.936c-.1065.3583-.6883.962-1.4875.962-.7993 0-1.653-.9165-1.653-2.1258v-.5678c0-1.2548.7896-2.1016 1.653-2.1016.8634 0 1.3601.4778 1.4875 1.0724M9 6c-.1352-.4735-.7506-.9219-1.46-.8972-.7092.0246-1.344.57-1.344 1.2166s.4198.8812 1.3445.9805C8.465 7.3992 8.968 7.9337 9 8.5c.032.5663-.454 1.398-1.4595 1.398C6.6593 9.898 6 9 5.963 8.4851m-1.4748.5368c-.2635.5941-.8099.876-1.5443.876s-1.7073-.6248-1.7073-2.204v-.4603c0-1.0416.721-2.131 1.7073-2.131.9864 0 1.6425 1.031 1.5443 2.2492h-2.956"})])])]),_("span",{class:"command-palette-Label"},"to close")])],-1)),fg=L({__name:"Search",setup(e){const t=I([]),n=xm,{localeIndex:o,site:s,lang:r}=Re(),a=w(()=>{var Y;return{...n,...((Y=n==null?void 0:n.locales)==null?void 0:Y[o.value])||{}}}),i=w(()=>{var Y;return((Y=a.value)==null?void 0:Y.ignorePublish)??!1}),l=w(()=>{var Y;return((Y=a.value)==null?void 0:Y.showDate)??!1}),c=w(()=>typeof a.value.showDate=="function"?a.value.showDate:Dm),d=w(()=>{var Y;return(Y=a.value)!=null&&Y.heading?a.value.heading.replace(/\{\{searchResult\}\}/,`${t.value.length}`):`Total: ${t.value.length} search results.`}),f=I("");me(()=>{f.value=/(Mac|iPhone|iPod|iPad)/i.test(navigator==null?void 0:navigator.platform)?"⌘":"Ctrl"});const v=I(!1);function h(){v.value=!0}function m(){v.value=!1}const p=_m({passive:!1,onEventFired(Y){Y.ctrlKey&&Y.key==="k"&&Y.type==="keydown"&&Y.preventDefault()}}),b=p["Meta+K"],y=p["Ctrl+K"],$=p.Escape;Q(b,Y=>{Y&&h()}),Q(y,Y=>{Y&&h()}),Q($,Y=>{Y&&m()});const S=I("");function T(){if(!S.value){t.value=[];return}t.value=[{route:"#",meta:{title:"只在构建后才生效",description:"only support after build, only support after build"}}]}const M=/[\u4E00-\u9FA5]/g;function x(Y){return Y.replace(M," $& ").replace(/\s+/g," ").trim()}Q(()=>S.value,async()=>{var J,ae,ce;if(!((J=window==null?void 0:window.__pagefind__)!=null&&J.search)){T();return}const Y=typeof a.value.customSearchQuery=="function"?a.value.customSearchQuery(S.value):M.test(S.value)?x(S.value):S.value;await((ce=(ae=window==null?void 0:window.__pagefind__)==null?void 0:ae.search)==null?void 0:ce.call(ae,Y).then(async G=>{const re=(await Promise.all(G.results.map(X=>X.data()))).map(X=>{const le=Fm(X);return le.route=le.route.startsWith(s.value.base)?le.route:St(le.route),le}).filter(X=>i.value||X.meta.publish!==!1);a.value.sort&&re.sort(a.value.sort),t.value=re.filter(a.value.filter??(()=>!0))})),_e(()=>{document.querySelectorAll('div[aria-disabled="true"]').forEach(G=>{G.setAttribute("aria-disabled","false")})})});function P(Y){Y.target===Y.currentTarget&&m()}Q(()=>v.value,Y=>{var J;Y?_e(()=>{var ae;(ae=document.querySelector("div[command-dialog-mask]"))==null||ae.addEventListener("click",P)}):(J=document.querySelector("div[command-dialog-mask]"))==null||J.removeEventListener("click",P)});const E=I(999),j=I(0),z=w(()=>{const J=j.value%Math.ceil(t.value.length/E.value)*E.value;return t.value.slice(J,J+E.value)}),F=Vn(),V=pt();function U(Y){m(),V.path!==Y.value&&F.go(Y.value)}const Z=w(()=>a.value.langReload??!0);Q(()=>r.value,()=>{Z.value&&window.location.reload()});const te=I();function oe(){S.value="",_e(()=>{te.value&&(te.value.$el.value="")})}const W=ym("pagefind-search-showDetail",!1);function q(){W.value=!W.value}return(Y,J)=>{var ce;const ae=Fe("ClientOnly");return g(),k("div",Hm,[_("div",{class:"nav-search-btn-wait",onClick:J[0]||(J[0]=G=>v.value=!0)},[jm,_("span",Wm,D(((ce=a.value)==null?void 0:ce.btnPlaceholder)||"Search"),1),_("span",Gm,D(f.value)+" K ",1)]),B(ae,null,{default:C(()=>[B(u(Dn).Dialog,{visible:v.value,theme:"algolia"},ql({header:C(()=>{var G;return[_("div",Um,[_("div",qm,[_("button",{class:"back-button",title:"Close search",onClick:J[1]||(J[1]=ie=>v.value=!1)},Ym)]),B(u(Dn).Input,{ref_key:"searchInput",ref:te,value:S.value,"onUpdate:value":J[2]||(J[2]=ie=>S.value=ie),placeholder:((G=a.value)==null?void 0:G.placeholder)||"Search Docs"},null,8,["value","placeholder"]),_("div",Xm,[_("button",{class:N([{active:u(W)},"toggle-layout-button"]),type:"button",title:"Display detailed list",onClick:q},Zm,2),_("button",{disabled:!S.value,class:"clear-button",type:"reset",title:"Reset search",onClick:oe},tg,8,Jm)])])]}),body:C(()=>[_("div",{class:N(["search-dialog",{"detail-list":u(W)}])},[B(u(Dn).List,null,{default:C(()=>[t.value.length?(g(),H(u(Dn).Group,{key:1,heading:d.value},{default:C(()=>[(g(!0),k(se,null,ve(z.value,G=>(g(),H(u(Dn).Item,{key:G.route,"data-value":G.route,onSelect:U},{default:C(()=>[_("div",ng,[_("div",og,[_("span",sg,[G.meta.title?(g(),k("i",rg,"# ")):O("",!0),be(D(G.meta.title),1)]),l.value&&G.meta.date?(g(),k("span",ag,D(c.value(G.meta.date,u(r))),1)):O("",!0)]),_("div",{class:"des",innerHTML:G.meta.description},null,8,ig)])]),_:2},1032,["data-value"]))),128))]),_:1},8,["heading"])):(g(),H(u(Dn).Empty,{key:0},{default:C(()=>{var G;return[be(D(((G=a.value)==null?void 0:G.emptyText)||"No results found."),1)]}),_:1}))]),_:1})],2)]),_:2},[t.value.length?{name:"footer",fn:C(()=>[_("div",lg,[_("a",cg,[ug,B(Nm,{style:{width:"77px"}})])]),dg]),key:"0"}:void 0]),1032,["visible"])]),_:1})])}}}),pg=ne(fg,[["__scopeId","data-v-f37c7efc"]]),vg=L({__name:"VPNavBarSocialLinks",setup(e){const{theme:t}=ye();return(n,o)=>u(t).socialLinks?(g(),H(Qr,{key:0,class:"VPNavBarSocialLinks",links:u(t).socialLinks},null,8,["links"])):O("",!0)}}),hg=ne(vg,[["__scopeId","data-v-ab107420"]]),mg=["href","rel","target"],gg={key:1},yg={key:2},bg=L({__name:"VPNavBarTitle",setup(e){const{site:t,theme:n}=ye(),{hasSidebar:o}=an(),{currentLang:s}=Mo(),r=w(()=>{var l;return typeof n.value.logoLink=="string"?n.value.logoLink:(l=n.value.logoLink)==null?void 0:l.link}),a=w(()=>{var l;return typeof n.value.logoLink=="string"||(l=n.value.logoLink)==null?void 0:l.rel}),i=w(()=>{var l;return typeof n.value.logoLink=="string"||(l=n.value.logoLink)==null?void 0:l.target});return(l,c)=>(g(),k("div",{class:N(["VPNavBarTitle",{"has-sidebar":u(o)}])},[_("a",{class:"title",href:r.value??u(Gr)(u(s).link),rel:a.value,target:i.value},[A(l.$slots,"nav-bar-title-before",{},void 0,!0),u(n).logo?(g(),H(os,{key:0,class:"logo",image:u(n).logo},null,8,["image"])):O("",!0),u(n).siteTitle?(g(),k("span",gg,D(u(n).siteTitle),1)):u(n).siteTitle===void 0?(g(),k("span",yg,D(u(t).title),1)):O("",!0),A(l.$slots,"nav-bar-title-after",{},void 0,!0)],8,mg)],2))}}),_g=ne(bg,[["__scopeId","data-v-ce3494a0"]]),wg={class:"items"},Sg={class:"title"},kg=L({__name:"VPNavBarTranslations",setup(e){const{theme:t}=ye(),{localeLinks:n,currentLang:o}=Mo({correspondingLink:!0});return(s,r)=>u(n).length&&u(o).label?(g(),H(Xr,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:u(t).langMenuLabel||"Change language"},{default:C(()=>[_("div",wg,[_("p",Sg,D(u(o).label),1),(g(!0),k(se,null,ve(u(n),a=>(g(),H(Ss,{key:a.link,item:a},null,8,["item"]))),128))])]),_:1},8,["label"])):O("",!0)}}),$g=ne(kg,[["__scopeId","data-v-6c87fb32"]]),Tg=e=>(xe("data-v-5fae156f"),e=e(),Ae(),e),Cg={class:"wrapper"},Mg={class:"container"},Eg={class:"title"},Ig={class:"content"},Pg={class:"content-body"},xg=Tg(()=>_("div",{class:"divider"},[_("div",{class:"divider-line"})],-1)),Ag=L({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(e){const{y:t}=jl(),{hasSidebar:n}=an(),{hasLocalNav:o}=oc(),{frontmatter:s}=ye(),r=I({});return Rl(()=>{r.value={"has-sidebar":n.value,"has-local-nav":o.value,top:s.value.layout==="home"&&t.value===0}}),(a,i)=>(g(),k("div",{class:N(["VPNavBar",r.value])},[_("div",Cg,[_("div",Mg,[_("div",Eg,[B(_g,null,{"nav-bar-title-before":C(()=>[A(a.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":C(()=>[A(a.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),_("div",Ig,[_("div",Pg,[A(a.$slots,"nav-bar-content-before",{},void 0,!0),B(pg,{class:"search"}),B(Gh,{class:"menu"}),B($g,{class:"translations"}),B(Kv,{class:"appearance"}),B(hg,{class:"social-links"}),B(Ph,{class:"extra"}),A(a.$slots,"nav-bar-content-after",{},void 0,!0),B(Bh,{class:"hamburger",active:a.isScreenOpen,onClick:i[0]||(i[0]=l=>a.$emit("toggle-screen"))},null,8,["active"])])])])]),xg],2))}}),Lg=ne(Ag,[["__scopeId","data-v-5fae156f"]]),Og={key:0,class:"VPNavScreenAppearance"},zg={class:"text"},Bg=L({__name:"VPNavScreenAppearance",setup(e){const{site:t,theme:n}=ye();return(o,s)=>u(t).appearance&&u(t).appearance!=="force-dark"?(g(),k("div",Og,[_("p",zg,D(u(n).darkModeSwitchLabel||"Appearance"),1),B(Kr)])):O("",!0)}}),Ng=ne(Bg,[["__scopeId","data-v-32a9a686"]]),Vg=L({__name:"VPNavScreenMenuLink",props:{item:{}},setup(e){const t=fe("close-screen");return(n,o)=>(g(),H(Dt,{class:"VPNavScreenMenuLink",href:n.item.link,target:n.item.target,rel:n.item.rel,onClick:u(t)},{default:C(()=>[be(D(n.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),Fg=ne(Vg,[["__scopeId","data-v-c4fee90c"]]),Rg=L({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(e){const t=fe("close-screen");return(n,o)=>(g(),H(Dt,{class:"VPNavScreenMenuGroupLink",href:n.item.link,target:n.item.target,rel:n.item.rel,onClick:u(t)},{default:C(()=>[be(D(n.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),Oc=ne(Rg,[["__scopeId","data-v-e764f202"]]),Dg={class:"VPNavScreenMenuGroupSection"},Hg={key:0,class:"title"},jg=L({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(e){return(t,n)=>(g(),k("div",Dg,[t.text?(g(),k("p",Hg,D(t.text),1)):O("",!0),(g(!0),k(se,null,ve(t.items,o=>(g(),H(Oc,{key:o.text,item:o},null,8,["item"]))),128))]))}}),Wg=ne(jg,[["__scopeId","data-v-92498763"]]),Gg=e=>(xe("data-v-b2671dae"),e=e(),Ae(),e),Ug=["aria-controls","aria-expanded"],qg=["innerHTML"],Kg=Gg(()=>_("span",{class:"vpi-plus button-icon"},null,-1)),Yg=["id"],Xg={key:1,class:"group"},Qg=L({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(e){const t=e,n=I(!1),o=w(()=>`NavScreenGroup-${t.text.replace(" ","-").toLowerCase()}`);function s(){n.value=!n.value}return(r,a)=>(g(),k("div",{class:N(["VPNavScreenMenuGroup",{open:n.value}])},[_("button",{class:"button","aria-controls":o.value,"aria-expanded":n.value,onClick:s},[_("span",{class:"button-text",innerHTML:r.text},null,8,qg),Kg],8,Ug),_("div",{id:o.value,class:"items"},[(g(!0),k(se,null,ve(r.items,i=>(g(),k(se,{key:i.text},["link"in i?(g(),k("div",{key:i.text,class:"item"},[B(Oc,{item:i},null,8,["item"])])):(g(),k("div",Xg,[B(Wg,{text:i.text,items:i.items},null,8,["text","items"])]))],64))),128))],8,Yg)],2))}}),Zg=ne(Qg,[["__scopeId","data-v-b2671dae"]]),Jg={key:0,class:"VPNavScreenMenu"},e2=L({__name:"VPNavScreenMenu",setup(e){const{theme:t}=ye();return(n,o)=>u(t).nav?(g(),k("nav",Jg,[(g(!0),k(se,null,ve(u(t).nav,s=>(g(),k(se,{key:s.text},["link"in s?(g(),H(Fg,{key:0,item:s},null,8,["item"])):(g(),H(Zg,{key:1,text:s.text||"",items:s.items},null,8,["text","items"]))],64))),128))])):O("",!0)}}),t2=L({__name:"VPNavScreenSocialLinks",setup(e){const{theme:t}=ye();return(n,o)=>u(t).socialLinks?(g(),H(Qr,{key:0,class:"VPNavScreenSocialLinks",links:u(t).socialLinks},null,8,["links"])):O("",!0)}}),zc=e=>(xe("data-v-97c478d9"),e=e(),Ae(),e),n2=zc(()=>_("span",{class:"vpi-languages icon lang"},null,-1)),o2=zc(()=>_("span",{class:"vpi-chevron-down icon chevron"},null,-1)),s2={class:"list"},r2=L({__name:"VPNavScreenTranslations",setup(e){const{localeLinks:t,currentLang:n}=Mo({correspondingLink:!0}),o=I(!1);function s(){o.value=!o.value}return(r,a)=>u(t).length&&u(n).label?(g(),k("div",{key:0,class:N(["VPNavScreenTranslations",{open:o.value}])},[_("button",{class:"title",onClick:s},[n2,be(" "+D(u(n).label)+" ",1),o2]),_("ul",s2,[(g(!0),k(se,null,ve(u(t),i=>(g(),k("li",{key:i.link,class:"item"},[B(Dt,{class:"link",href:i.link},{default:C(()=>[be(D(i.text),1)]),_:2},1032,["href"])]))),128))])],2)):O("",!0)}}),a2=ne(r2,[["__scopeId","data-v-97c478d9"]]),i2={class:"container"},l2=L({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(e){const t=I(null),n=Kl(Nn?document.body:null);return(o,s)=>(g(),H(at,{name:"fade",onEnter:s[0]||(s[0]=r=>n.value=!0),onAfterLeave:s[1]||(s[1]=r=>n.value=!1)},{default:C(()=>[o.open?(g(),k("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:t,id:"VPNavScreen"},[_("div",i2,[A(o.$slots,"nav-screen-content-before",{},void 0,!0),B(e2,{class:"menu"}),B(a2,{class:"translations"}),B(Ng,{class:"appearance"}),B(t2,{class:"social-links"}),A(o.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):O("",!0)]),_:3}))}}),c2=ne(l2,[["__scopeId","data-v-0ba6d639"]]),u2={key:0,class:"VPNav"},d2=L({__name:"VPNav",setup(e){const{isScreenOpen:t,closeScreen:n,toggleScreen:o}=Bv(),{frontmatter:s}=ye(),r=w(()=>s.value.navbar!==!1);return Ne("close-screen",n),zt(()=>{Nn&&document.documentElement.classList.toggle("hide-nav",!r.value)}),(a,i)=>r.value?(g(),k("header",u2,[B(Lg,{"is-screen-open":u(t),onToggleScreen:u(o)},{"nav-bar-title-before":C(()=>[A(a.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":C(()=>[A(a.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":C(()=>[A(a.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":C(()=>[A(a.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),B(c2,{open:u(t)},{"nav-screen-content-before":C(()=>[A(a.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":C(()=>[A(a.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):O("",!0)}}),f2=ne(d2,[["__scopeId","data-v-7bb06f98"]]),Bc=e=>(xe("data-v-6019963d"),e=e(),Ae(),e),p2=["role","tabindex"],v2=Bc(()=>_("div",{class:"indicator"},null,-1)),h2=Bc(()=>_("span",{class:"vpi-chevron-right caret-icon"},null,-1)),m2=[h2],g2={key:1,class:"items"},y2=L({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(e){const t=e,{collapsed:n,collapsible:o,isLink:s,isActiveLink:r,hasActiveLink:a,hasChildren:i,toggle:l}=Ef(w(()=>t.item)),c=w(()=>i.value?"section":"div"),d=w(()=>s.value?"a":"div"),f=w(()=>i.value?t.depth+2===7?"p":`h${t.depth+2}`:"p"),v=w(()=>s.value?void 0:"button"),h=w(()=>[[`level-${t.depth}`],{collapsible:o.value},{collapsed:n.value},{"is-link":s.value},{"is-active":r.value},{"has-active":a.value}]);function m(b){"key"in b&&b.key!=="Enter"||!t.item.link&&l()}function p(){t.item.link&&l()}return(b,y)=>{const $=Fe("VPSidebarItem",!0);return g(),H(Le(c.value),{class:N(["VPSidebarItem",h.value])},{default:C(()=>[b.item.text?(g(),k("div",ft({key:0,class:"item",role:v.value},Qd(b.item.items?{click:m,keydown:m}:{},!0),{tabindex:b.item.items&&0}),[v2,b.item.link?(g(),H(Dt,{key:0,tag:d.value,class:"link",href:b.item.link,rel:b.item.rel,target:b.item.target},{default:C(()=>[(g(),H(Le(f.value),{class:"text",innerHTML:b.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(g(),H(Le(f.value),{key:1,class:"text",innerHTML:b.item.text},null,8,["innerHTML"])),b.item.collapsed!=null?(g(),k("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:p,onKeydown:En(p,["enter"]),tabindex:"0"},m2,32)):O("",!0)],16,p2)):O("",!0),b.item.items&&b.item.items.length?(g(),k("div",g2,[b.depth<5?(g(!0),k(se,{key:0},ve(b.item.items,S=>(g(),H($,{key:S.text,item:S,depth:b.depth+1},null,8,["item","depth"]))),128)):O("",!0)])):O("",!0)]),_:1},8,["class"])}}}),b2=ne(y2,[["__scopeId","data-v-6019963d"]]),Nc=e=>(xe("data-v-d1158681"),e=e(),Ae(),e),_2=Nc(()=>_("div",{class:"curtain"},null,-1)),w2={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},S2=Nc(()=>_("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),k2=L({__name:"VPSidebar",props:{open:{type:Boolean}},setup(e){const{sidebarGroups:t,hasSidebar:n}=an(),o=e,s=I(null),r=Kl(Nn?document.body:null);return Q([o,s],()=>{var a;o.open?(r.value=!0,(a=s.value)==null||a.focus()):r.value=!1},{immediate:!0,flush:"post"}),(a,i)=>u(n)?(g(),k("aside",{key:0,class:N(["VPSidebar",{open:a.open}]),ref_key:"navEl",ref:s,onClick:i[0]||(i[0]=He(()=>{},["stop"]))},[_2,_("nav",w2,[S2,A(a.$slots,"sidebar-nav-before",{},void 0,!0),(g(!0),k(se,null,ve(u(t),l=>(g(),k("div",{key:l.text,class:"group"},[B(b2,{item:l,depth:0},null,8,["item"])]))),128)),A(a.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):O("",!0)}}),$2=ne(k2,[["__scopeId","data-v-d1158681"]]),T2=L({__name:"VPSkipLink",setup(e){const t=pt(),n=I();Q(()=>t.path,()=>n.value.focus());function o({target:s}){const r=document.getElementById(decodeURIComponent(s.hash).slice(1));if(r){const a=()=>{r.removeAttribute("tabindex"),r.removeEventListener("blur",a)};r.setAttribute("tabindex","-1"),r.addEventListener("blur",a),r.focus(),window.scrollTo(0,0)}}return(s,r)=>(g(),k(se,null,[_("span",{ref_key:"backToTop",ref:n,tabindex:"-1"},null,512),_("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:o}," Skip to content ")],64))}}),C2=ne(T2,[["__scopeId","data-v-673450c5"]]),M2=L({__name:"Layout",setup(e){const{isOpen:t,open:n,close:o}=an(),s=pt();Q(()=>s.path,o),Mf(t,o);const{frontmatter:r}=ye(),a=Co(),i=w(()=>!!a["home-hero-image"]);return Ne("hero-image-slot-exists",i),(l,c)=>{const d=Fe("Content");return u(r).layout!==!1?(g(),k("div",{key:0,class:N(["Layout",u(r).pageClass])},[A(l.$slots,"layout-top",{},void 0,!0),B(C2),B(ff,{class:"backdrop",show:u(t),onClick:u(o)},null,8,["show","onClick"]),B(f2,null,{"nav-bar-title-before":C(()=>[A(l.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":C(()=>[A(l.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":C(()=>[A(l.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":C(()=>[A(l.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":C(()=>[A(l.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":C(()=>[A(l.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),B(zv,{open:u(t),onOpenMenu:u(n)},null,8,["open","onOpenMenu"]),B($2,{open:u(t)},{"sidebar-nav-before":C(()=>[A(l.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":C(()=>[A(l.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),B(gv,{"data-pagefind-body":""},{"page-top":C(()=>[A(l.$slots,"page-top",{},void 0,!0)]),"page-bottom":C(()=>[A(l.$slots,"page-bottom",{},void 0,!0)]),"not-found":C(()=>[A(l.$slots,"not-found",{},void 0,!0)]),"home-hero-before":C(()=>[A(l.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":C(()=>[A(l.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":C(()=>[A(l.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":C(()=>[A(l.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":C(()=>[A(l.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":C(()=>[A(l.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":C(()=>[A(l.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":C(()=>[A(l.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":C(()=>[A(l.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":C(()=>[A(l.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":C(()=>[A(l.$slots,"doc-before",{},void 0,!0)]),"doc-after":C(()=>[A(l.$slots,"doc-after",{},void 0,!0)]),"doc-top":C(()=>[A(l.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":C(()=>[A(l.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":C(()=>[A(l.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":C(()=>[A(l.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":C(()=>[A(l.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":C(()=>[A(l.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":C(()=>[A(l.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":C(()=>[A(l.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),B(Sv),A(l.$slots,"layout-bottom",{},void 0,!0)],2)):(g(),H(d,{key:1}))}}}),E2=ne(M2,[["__scopeId","data-v-098e9bd2"]]),Ir={Layout:E2,enhanceApp:({app:e})=>{e.component("Badge",cf)}},I2=e=>{if(typeof document>"u")return{stabilizeScrollPosition:s=>async(...r)=>s(...r)};const t=document.documentElement;return{stabilizeScrollPosition:o=>async(...s)=>{const r=o(...s),a=e.value;if(!a)return r;const i=a.offsetTop-t.scrollTop;return await _e(),t.scrollTop=a.offsetTop-i,r}}},Vc=Symbol(),po=typeof localStorage<"u"?localStorage:null,Fc="vitepress:tabsSharedState",P2=()=>{const e=po==null?void 0:po.getItem(Fc);if(e)try{return JSON.parse(e)}catch{}return{}},x2=e=>{po&&po.setItem(Fc,JSON.stringify(e))},A2=e=>{const t=De(P2());Q(t,n=>{x2(n)}),e.provide(Vc,t)},L2=(e,t)=>{const n=fe(Vc);if(!n)throw new Error("[vitepress-plugin-tabs] TabsSharedState should be injected");const o=I(),s=w({get(){const a=t.value,i=e.value;if(a){const l=n[a];if(l&&i.includes(l))return l}else{const l=o.value;if(l)return l}return i[0]},set(a){const i=t.value;i?n[i]=a:o.value=a}});return{selected:s,select:a=>{s.value=a}}};let _i=0;const O2=()=>(_i++,""+_i),z2={class:"plugin-tabs"},B2=["id","aria-selected","aria-controls","tabindex","onClick"],N2=["id","aria-labelledby"],V2=L({__name:"PluginTabs",props:{tabLabels:{},sharedStateKey:{}},setup(e){const t=e,{selected:n,select:o}=L2(dt(t,"tabLabels"),dt(t,"sharedStateKey")),s=I(),{stabilizeScrollPosition:r}=I2(s),a=r(o),i=I([]),l=d=>{var h;const f=t.tabLabels.indexOf(n.value);let v;d.key==="ArrowLeft"?v=f>=1?f-1:t.tabLabels.length-1:d.key==="ArrowRight"&&(v=f(g(),k("div",z2,[_("div",{ref_key:"tablist",ref:s,class:"plugin-tabs--tab-list",role:"tablist",onKeydown:l},[(g(!0),k(se,null,ve(d.tabLabels,v=>(g(),k("button",{id:`tab-${v}-${u(c)}`,ref_for:!0,ref_key:"buttonRefs",ref:i,key:v,role:"tab",class:"plugin-tabs--tab","aria-selected":v===u(n),"aria-controls":`panel-${v}-${u(c)}`,tabindex:v===u(n)?0:-1,onClick:()=>u(a)(v)},D(v),9,B2))),128))],544),(g(!0),k(se,null,ve(d.tabLabels,v=>(g(),k(se,{key:v},[v===u(n)?(g(),k("div",{key:0,id:`panel-${v}-${u(c)}`,class:"plugin-tabs--content",role:"tabpanel",tabindex:"0","aria-labelledby":`tab-${v}-${u(c)}`},[A(d.$slots,v)],8,N2)):O("",!0)],64))),128))]))}}),F2=e=>{A2(e),e.component("PluginTabs",V2)},wn=Symbol("theme-config"),Rc=Symbol("active-tag"),Dc=Symbol("home-page-num"),Hc=Symbol("user-works"),jc=Symbol("home-footer");function R2(e){return L({name:"ConfigProvider",setup(t,{slots:n}){var l,c,d;const{theme:o}=Re(),s=w(()=>U2(o.value));Ne(jc,(l=s.value.blog)==null?void 0:l.footer),Ne(wn,s),Ne(Hc,I(((c=s.value.blog)==null?void 0:c.works)||{title:"",description:"",list:[]}));const r=I({label:"",type:""});Ne(Rc,r);const a=I(1);Ne(Dc,a);const i=xc({attribute:"theme",modes:{"vp-default":"vp-default","vp-green":"vp-green","vp-yellow":"vp-yellow","vp-red":"vp-red","el-blue":"el-blue","el-yellow":"el-yellow","el-green":"el-green","el-red":"el-red"}});return i.value=((d=s.value.blog)==null?void 0:d.themeColor)??"vp-default",()=>Be(e,null,n)}})}function D2(){const e=Eo(),{frontmatter:t}=Re();return w(()=>{var n,o,s;return((n=t.value)==null?void 0:n.docMetaInsertSelector)||((s=(o=e.config)==null?void 0:o.blog)==null?void 0:s.docMetaInsertSelector)||"h1"})}function H2(){const e=Eo(),{frontmatter:t}=Re();return w(()=>{var n,o,s;return((n=t.value)==null?void 0:n.docMetaInsertPosition)||((s=(o=e.config)==null?void 0:o.blog)==null?void 0:s.docMetaInsertPosition)||"after"})}function Eo(){return{config:fe(wn).value}}function je(){return fe(wn).value.blog}function j2(){var e;return(e=fe(wn).value.blog)==null?void 0:e.oml2d}function Wc(){var e;return((e=fe(wn).value.blog)==null?void 0:e.darkTransition)??!0}function W2(){var e,t;return((t=(e=fe(wn).value)==null?void 0:e.blog)==null?void 0:t.blog)??!0}function Io(){const e=Eo();return w(()=>{var n,o;return((o=(n=e.config)==null?void 0:n.blog)==null?void 0:o.pagesData)||[]})}function Gc(){return fe(Rc)}function Uc(){return fe(Dc)}function qc(){const e=Eo(),t=pt(),n=w(()=>{var s,r;return(r=(s=e.config)==null?void 0:s.blog)==null?void 0:r.pagesData});return w(()=>{var a;const s=t.path.replace(/.html$/,""),r=[s,decodeURIComponent(s)];return s.endsWith("/")&&r.push(`${s}index`,`${decodeURIComponent(s)}index`),(a=n.value)==null?void 0:a.find(i=>r.includes(St(i.route)))})}function G2(){return fe(Hc)}function U2(e){var t;return{...e,blog:{...e==null?void 0:e.blog,pagesData:((t=e==null?void 0:e.blog)==null?void 0:t.pagesData)||[]}}}function q2(){const e=I(null);return me(()=>{const{hash:t}=window.location;t&&(e.value=document.querySelector(decodeURIComponent(t)))}),e}function K2(){const e=De({id:"",top:-1}),t=()=>{const o=document.querySelectorAll("h1, h2, h3, h4, h5, h6");for(let s=0;s{t()};return me(()=>{window.addEventListener("scroll",n)}),Wt(()=>{window.removeEventListener("scroll",n)}),e}function Y2(){return fe(jc)}function X2(){return je().backToTop}function oa(){const{site:e}=Re();return!!e.value.cleanUrls}function Q2(){var e,t,n;return((n=(t=(e=fe(wn))==null?void 0:e.value)==null?void 0:t.blog)==null?void 0:n.imageStyle)||{}}function Z2(){var e,t,n,o;return(o=(n=(t=(e=fe(wn))==null?void 0:e.value)==null?void 0:t.blog)==null?void 0:n.home)==null?void 0:o.analysis}function J2(){const{isDark:e}=Re();if(!Wc())return;const n=()=>"startViewTransition"in document&&window.matchMedia("(prefers-reduced-motion: no-preference)").matches;Ne("toggle-appearance",async({clientX:o,clientY:s})=>{if(!n()){e.value=!e.value;return}const r=[`circle(0px at ${o}px ${s}px)`,`circle(${Math.hypot(Math.max(o,innerWidth-o),Math.max(s,innerHeight-s))}px at ${o}px ${s}px)`];await document.startViewTransition(async()=>{e.value=!e.value,await _e()}).ready,document.documentElement.animate({clipPath:e.value?r.reverse():r},{duration:300,easing:"ease-in",pseudoElement:`::view-transition-${e.value?"old":"new"}(root)`})})}function ey(e){const t=[...e];for(let n=t.length-1;n>0;n--){const o=Math.floor(Math.random()*(n+1));[t[n],t[o]]=[t[o],t[n]]}return t}function as(e,t="yyyy-MM-dd hh:mm:ss"){e instanceof Date||(e=new Date(e));const n={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,`${e.getFullYear()}`.substr(4-RegExp.$1.length)));for(const o in n)new RegExp(`(${o})`).test(t)&&(t=t.replace(RegExp.$1,RegExp.$1.length===1?n[o]:`00${n[o]}`.substr(`${n[o]}`.length)));return t}function ty(e,t){const n=t||new Date,o=new Date(n.getFullYear(),n.getMonth(),n.getDate()),s=1e3*60*60*24,r=o.getDay(),a=o.getTime()-(r===0?6:r-1)*s;return+e>=a&&+e<=a+7*s}function $s(e){const t=e?+new Date(e):+new Date,o=+new Date-t,s=1e3,r=s*60,a=r*60,i=a*24,l=i*7;return o=19968?n+=t[o].length:n+=1;return n}function sy(e){const t=e.match(/github.com\/(.+)/);if(!(t!=null&&t[1]))return Promise.reject(new Error("Github地址格式错误"));const[n,o]=t[1].split("/");return fetch(`https://api.github.com/repos/${n}/${o}`).then(s=>s.json()).then(s=>s.updated_at)}function ry(e,t,n,o){let s=`https://api.github.com/repos/${e}/${t}/commits`;return o&&(s+=`/${o}`),n&&(s+=`?path=${n}`),fetch(s).then(r=>r.json()).then(r=>[r].flat()[0].commit.committer.date)}function ay(e,t){return typeof e=="string"?e:"src"in e?e.src:"light"in e&&"dark"in e?t?e.dark:e.light:""}function is(e,t){const n=t.replace(/\.html$/,"");return e?n:`${n}.html`}const iy={key:0,class:"blog-author"},ly=["src"],cy={key:1},uy={__name:"BlogAuthor",setup(e){const{home:t}=je(),{frontmatter:n,site:o}=Re(),s=w(()=>{var i,l,c,d;return n.value.author??((l=(i=n.value)==null?void 0:i.blog)==null?void 0:l.author)??(t==null?void 0:t.author)??((d=(c=o.value.themeConfig)==null?void 0:c.blog)==null?void 0:d.author)}),r=w(()=>{var i,l;return n.value.logo??((l=(i=n.value)==null?void 0:i.blog)==null?void 0:l.logo)??(t==null?void 0:t.logo)??o.value.themeConfig.logo}),a=w(()=>s.value||r.value);return(i,l)=>a.value?(g(),k("div",iy,[r.value?(g(),k("img",{key:0,src:u(St)(r.value),alt:"avatar"},null,8,ly)):O("",!0),s.value?(g(),k("p",cy,D(s.value),1)):O("",!0)])):O("",!0)}},wi=ne(uy,[["__scopeId","data-v-68993174"]]),Kc=e=>(xe("data-v-f744186e"),e=e(),Ae(),e),dy={class:"card"},fy={class:"overview-data"},py={class:"overview-item"},vy={class:"count"},hy={class:"label"},my=Kc(()=>_("div",{class:"split"},null,-1)),gy={class:"overview-item"},yy={class:"count"},by={class:"label"},_y=Kc(()=>_("div",{class:"split"},null,-1)),wy={class:"overview-item"},Sy={class:"count"},ky={class:"label"},$y=L({__name:"BlogHomeOverview",setup(e){const{home:t}=je(),{frontmatter:n}=Re(),o=w(()=>{var m,p;return((p=(m=n.value)==null?void 0:m.blog)==null?void 0:p.avatarMode)||(t==null?void 0:t.avatarMode)||"card"}),s=w(()=>o.value==="card"),r=w(()=>o.value==="split"),a=Io(),i=w(()=>a.value.filter(m=>{var p;return((p=m.meta)==null?void 0:p.publish)!==!1})),l=new Date().getMonth(),c=new Date().getFullYear(),d=w(()=>i.value.filter(m=>{var b;const p=new Date((b=m.meta)==null?void 0:b.date);return(p==null?void 0:p.getMonth())===l&&p.getFullYear()===c})),f=w(()=>i.value.filter(m=>{var b;const p=new Date((b=m.meta)==null?void 0:b.date);return ty(p)})),v=Z2(),h=w(()=>{var m,p,b,y,$;return((y=(b=(p=(m=n.value)==null?void 0:m.blog)==null?void 0:p.analysis)==null?void 0:b.articles)==null?void 0:y.title)||(($=v==null?void 0:v.articles)==null?void 0:$.title)||[]});return(m,p)=>{var b,y;return g(),k(se,null,[r.value?(g(),H(wi,{key:0})):O("",!0),_("div",dy,[s.value?(g(),H(wi,{key:0})):O("",!0),_("div",fy,[_("div",py,[_("span",vy,D(i.value.length),1),_("span",hy,D(h.value[0]||"博客文章"),1)]),my,_("div",gy,[_("span",yy,"+"+D((b=d.value)==null?void 0:b.length),1),_("span",by,D(h.value[1]||"本月更新"),1)]),_y,_("div",wy,[_("span",Sy,"+"+D((y=f.value)==null?void 0:y.length),1),_("span",ky,D(h.value[2]||"本周更新"),1)])])])],64)}}}),Ty=ne($y,[["__scopeId","data-v-f744186e"]]),Zt=(e,t,{checkForDefaultPrevented:n=!0}={})=>s=>{const r=e==null?void 0:e(s);if(n===!1||!r)return t==null?void 0:t(s)},Cy=()=>Ce&&/firefox/i.test(window.navigator.userAgent),My=(e,t)=>{if(!Ce||!e||!t)return!1;const n=e.getBoundingClientRect();let o;return t instanceof Element?o=t.getBoundingClientRect():o={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.topo.top&&n.right>o.left&&n.left-1&&e%1==0&&e-1&&e%1==0&&e<=g4}function y4(e){return e!=null&&sa(e.length)&&!Zc(e)}var b4=Object.prototype;function _4(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||b4;return e===n}function w4(e,t){for(var n=-1,o=Array(e);++n-1}function Eb(e,t){var n=this.__data__,o=Cs(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function ln(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ti))return!1;var c=r.get(e),d=r.get(t);if(c&&d)return c==t&&d==e;var f=-1,v=!0,h=n&m3?new ls:void 0;for(r.set(e,t),r.set(t,e);++f=t||P<0||f&&E>=r}function y(){var x=Us();if(b(x))return $(x);i=setTimeout(y,p(x))}function $(x){return i=void 0,v&&o?h(x):(o=s=void 0,a)}function S(){i!==void 0&&clearTimeout(i),c=0,o=l=s=i=void 0}function T(){return i===void 0?a:$(Us())}function M(){var x=Us(),P=b(x);if(o=arguments,s=this,l=x,P){if(i===void 0)return m(l);if(f)return clearTimeout(i),i=setTimeout(y,t),h(l)}return i===void 0&&(i=setTimeout(y,t)),a}return M.cancel=S,M.flush=T,M}var s8=Math.max,r8=Math.min;function a8(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var s=o-1;return n!==void 0&&(s=Xy(n),s=n<0?s8(o+s,0):r8(s,o-1)),v4(e,e8(t),s,!0)}function cs(e){for(var t=-1,n=e==null?0:e.length,o={};++te===void 0,pu=e=>typeof e=="boolean",Te=e=>typeof e=="number",Bn=e=>typeof Element>"u"?!1:e instanceof Element,c8=e=>_t(e)?!Number.isNaN(Number(e)):!1,u8=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),us=e=>Object.keys(e);class d8 extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function f8(e,t){throw new d8(`[${e}] ${t}`)}const p8=(e,t)=>{var n;if(!Ce||!e||!t)return"";let o=Zd(t);o==="float"&&(o="cssFloat");try{const s=e.style[o];if(s)return s;const r=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return r?r[o]:""}catch{return e.style[o]}};function ds(e,t="px"){if(!e)return"";if(Te(e)||c8(e))return`${e}${t}`;if(_t(e))return e}const v8=(e,t)=>{if(!Ce)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],o=p8(e,n);return["scroll","auto","overlay"].some(s=>o.includes(s))},h8=(e,t)=>{if(!Ce)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(v8(n,t))return n;n=n.parentNode}return n};function m8(e,t){if(!Ce)return;if(!t){e.scrollTop=0;return}const n=[];let o=t.offsetParent;for(;o!==null&&e!==o&&e.contains(o);)n.push(o),o=o.offsetParent;const s=t.offsetTop+n.reduce((l,c)=>l+c.offsetTop,0),r=s+t.offsetHeight,a=e.scrollTop,i=a+e.clientHeight;si&&(e.scrollTop=r-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var g8=L({name:"AlarmClock",__name:"alarm-clock",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),_("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128z"})]))}}),qs=g8,y8=L({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),b8=y8,_8=L({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),la=_8,w8=L({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),ca=w8,S8=L({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),_("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),k8=S8,$8=L({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),ua=$8,T8=L({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),_("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),da=T8,C8=L({name:"Clock",__name:"clock",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),_("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),_("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),M8=C8,E8=L({name:"Close",__name:"close",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),fs=E8,I8=L({name:"CollectionTag",__name:"collection-tag",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32"})]))}}),P8=I8,x8=L({name:"Comment",__name:"comment",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"})]))}}),A8=x8,L8=L({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),O8=L8,z8=L({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),B8=z8,N8=L({name:"EditPen",__name:"edit-pen",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112-56.64 98.112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64h-448z"})]))}}),Ks=N8,V8=L({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),F8=V8,R8=L({name:"Hide",__name:"hide",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),_("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),D8=R8,H8=L({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),vu=H8,j8=L({name:"Loading",__name:"loading",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),hu=j8,W8=L({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),Ui=W8,G8=L({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),U8=G8,q8=L({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}}),K8=q8,Y8=L({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),X8=Y8,Q8=L({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),mu=Q8,Z8=L({name:"UserFilled",__name:"user-filled",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"})]))}}),J8=Z8,e_=L({name:"View",__name:"view",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),t_=e_,n_=L({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),gu=n_,o_=L({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),s_=o_,r_=L({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(g(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),a_=r_;const yu="__epPropKey",de=e=>e,i_=e=>yt(e)&&!!e[yu],Ps=(e,t)=>{if(!yt(e)||i_(e))return e;const{values:n,required:o,default:s,type:r,validator:a}=e,l={type:r,required:!!o,validator:n||a?c=>{let d=!1,f=[];if(n&&(f=Array.from(n),Ha(e,"default")&&f.push(s),d||(d=f.includes(c))),a&&(d||(d=a(c))),!d&&f.length>0){const v=[...new Set(f)].map(h=>JSON.stringify(h)).join(", ");Jd(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${v}], got value ${JSON.stringify(c)}.`)}return d}:void 0,[yu]:!0};return Ha(e,"default")&&(l.default=s),l},ke=e=>cs(Object.entries(e).map(([t,n])=>[t,Ps(n,t)])),kt=de([String,Object,Function]),bu={Close:fs,SuccessFilled:mu,InfoFilled:vu,WarningFilled:gu,CircleCloseFilled:ua},ps={success:mu,warning:gu,error:ua,info:vu},_u={validating:hu,success:k8,error:da},Ze=(e,t)=>{if(e.install=n=>{for(const o of[e,...Object.values(t??{})])n.component(o.name,o)},t)for(const[n,o]of Object.entries(t))e[n]=o;return e},l_=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),xs=e=>(e.install=_o,e),gt={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},At="update:modelValue",wu="change",xo=["","default","small","large"],mo=e=>{const t=tt(e)?e:[e],n=[];return t.forEach(o=>{var s;tt(o)?n.push(...mo(o)):qn(o)&&tt(o.children)?n.push(...mo(o.children)):(n.push(o),qn(o)&&((s=o.component)!=null&&s.subTree)&&n.push(...mo(o.component.subTree)))}),n},Su=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),ao=e=>e,c_=["class","style"],u_=/^on[A-Z]/,ku=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=w(()=>((n==null?void 0:n.value)||[]).concat(c_)),s=Ye();return s?w(()=>{var r;return cs(Object.entries((r=s.proxy)==null?void 0:r.$attrs).filter(([a])=>!o.value.includes(a)&&!(t&&u_.test(a))))}):w(()=>({}))},d_=({from:e,replacement:t,scope:n,version:o,ref:s,type:r="API"},a)=>{Q(()=>u(a),i=>{},{immediate:!0})};var f_={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const p_=e=>(t,n)=>v_(t,n,u(e)),v_=(e,t,n)=>Jt(n,e,e).replace(/\{(\w+)\}/g,(o,s)=>{var r;return`${(r=t==null?void 0:t[s])!=null?r:`{${s}}`}`}),h_=e=>{const t=w(()=>u(e).name),n=Ul(e)?e:I(e);return{lang:t,locale:n,t:p_(e)}},$u=Symbol("localeContextKey"),Ct=e=>{const t=e||fe($u,I());return h_(w(()=>t.value||f_))},es="el",m_="is-",Cn=(e,t,n,o,s)=>{let r=`${e}-${t}`;return n&&(r+=`-${n}`),o&&(r+=`__${o}`),s&&(r+=`--${s}`),r},Tu=Symbol("namespaceContextKey"),fa=e=>{const t=e||(Ye()?fe(Tu,I(es)):I(es));return w(()=>u(t)||es)},Se=(e,t)=>{const n=fa(t);return{namespace:n,b:(p="")=>Cn(n.value,e,p,"",""),e:p=>p?Cn(n.value,e,"",p,""):"",m:p=>p?Cn(n.value,e,"","",p):"",be:(p,b)=>p&&b?Cn(n.value,e,p,b,""):"",em:(p,b)=>p&&b?Cn(n.value,e,"",p,b):"",bm:(p,b)=>p&&b?Cn(n.value,e,p,"",b):"",bem:(p,b,y)=>p&&b&&y?Cn(n.value,e,p,b,y):"",is:(p,...b)=>{const y=b.length>=1?b[0]:!0;return p&&y?`${m_}${p}`:""},cssVar:p=>{const b={};for(const y in p)p[y]&&(b[`--${n.value}-${y}`]=p[y]);return b},cssVarName:p=>`--${n.value}-${p}`,cssVarBlock:p=>{const b={};for(const y in p)p[y]&&(b[`--${n.value}-${e}-${y}`]=p[y]);return b},cssVarBlockName:p=>`--${n.value}-${e}-${p}`}},g_=Ps({type:de(Boolean),default:null}),y_=Ps({type:de(Function)}),Cu=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],s={[e]:g_,[n]:y_};return{useModelToggle:({indicator:a,toggleReason:i,shouldHideWhenRouteChanges:l,shouldProceed:c,onShow:d,onHide:f})=>{const v=Ye(),{emit:h}=v,m=v.props,p=w(()=>nt(m[n])),b=w(()=>m[e]===null),y=P=>{a.value!==!0&&(a.value=!0,i&&(i.value=P),nt(d)&&d(P))},$=P=>{a.value!==!1&&(a.value=!1,i&&(i.value=P),nt(f)&&f(P))},S=P=>{if(m.disabled===!0||nt(c)&&!c())return;const E=p.value&&Ce;E&&h(t,!0),(b.value||!E)&&y(P)},T=P=>{if(m.disabled===!0||!Ce)return;const E=p.value&&Ce;E&&h(t,!1),(b.value||!E)&&$(P)},M=P=>{pu(P)&&(m.disabled&&P?p.value&&h(t,!1):a.value!==P&&(P?y():$()))},x=()=>{a.value?T():S()};return Q(()=>m[e],M),l&&v.appContext.config.globalProperties.$route!==void 0&&Q(()=>({...v.proxy.$route}),()=>{l.value&&a.value&&T()}),me(()=>{M(m[e])}),{hide:T,show:S,toggle:x,hasUpdateHandler:p}},useModelToggleProps:s,useModelToggleEmits:o}};Cu("modelValue");const Mu=e=>{const t=Ye();return w(()=>{var n,o;return(o=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:o[e]})};var st="top",$t="bottom",Tt="right",rt="left",pa="auto",Ao=[st,$t,Tt,rt],Yn="start",$o="end",b_="clippingParents",Eu="viewport",fo="popper",__="reference",qi=Ao.reduce(function(e,t){return e.concat([t+"-"+Yn,t+"-"+$o])},[]),As=[].concat(Ao,[pa]).reduce(function(e,t){return e.concat([t,t+"-"+Yn,t+"-"+$o])},[]),w_="beforeRead",S_="read",k_="afterRead",$_="beforeMain",T_="main",C_="afterMain",M_="beforeWrite",E_="write",I_="afterWrite",P_=[w_,S_,k_,$_,T_,C_,M_,E_,I_];function jt(e){return e?(e.nodeName||"").toLowerCase():null}function Bt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xn(e){var t=Bt(e).Element;return e instanceof t||e instanceof Element}function wt(e){var t=Bt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function va(e){if(typeof ShadowRoot>"u")return!1;var t=Bt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function x_(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},s=t.attributes[n]||{},r=t.elements[n];!wt(r)||!jt(r)||(Object.assign(r.style,o),Object.keys(s).forEach(function(a){var i=s[a];i===!1?r.removeAttribute(a):r.setAttribute(a,i===!0?"":i)}))})}function A_(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var s=t.elements[o],r=t.attributes[o]||{},a=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),i=a.reduce(function(l,c){return l[c]="",l},{});!wt(s)||!jt(s)||(Object.assign(s.style,i),Object.keys(r).forEach(function(l){s.removeAttribute(l)}))})}}var Iu={name:"applyStyles",enabled:!0,phase:"write",fn:x_,effect:A_,requires:["computeStyles"]};function Ht(e){return e.split("-")[0]}var xn=Math.max,vs=Math.min,Qn=Math.round;function Zn(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,s=1;if(wt(e)&&t){var r=e.offsetHeight,a=e.offsetWidth;a>0&&(o=Qn(n.width)/a||1),r>0&&(s=Qn(n.height)/r||1)}return{width:n.width/o,height:n.height/s,top:n.top/s,right:n.right/o,bottom:n.bottom/s,left:n.left/o,x:n.left/o,y:n.top/s}}function ha(e){var t=Zn(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Pu(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&va(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function rn(e){return Bt(e).getComputedStyle(e)}function L_(e){return["table","td","th"].indexOf(jt(e))>=0}function Sn(e){return((Xn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ls(e){return jt(e)==="html"?e:e.assignedSlot||e.parentNode||(va(e)?e.host:null)||Sn(e)}function Ki(e){return!wt(e)||rn(e).position==="fixed"?null:e.offsetParent}function O_(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&wt(e)){var o=rn(e);if(o.position==="fixed")return null}var s=Ls(e);for(va(s)&&(s=s.host);wt(s)&&["html","body"].indexOf(jt(s))<0;){var r=rn(s);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return s;s=s.parentNode}return null}function Lo(e){for(var t=Bt(e),n=Ki(e);n&&L_(n)&&rn(n).position==="static";)n=Ki(n);return n&&(jt(n)==="html"||jt(n)==="body"&&rn(n).position==="static")?t:n||O_(e)||t}function ma(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function go(e,t,n){return xn(e,vs(t,n))}function z_(e,t,n){var o=go(e,t,n);return o>n?n:o}function xu(){return{top:0,right:0,bottom:0,left:0}}function Au(e){return Object.assign({},xu(),e)}function Lu(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var B_=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Au(typeof e!="number"?e:Lu(e,Ao))};function N_(e){var t,n=e.state,o=e.name,s=e.options,r=n.elements.arrow,a=n.modifiersData.popperOffsets,i=Ht(n.placement),l=ma(i),c=[rt,Tt].indexOf(i)>=0,d=c?"height":"width";if(!(!r||!a)){var f=B_(s.padding,n),v=ha(r),h=l==="y"?st:rt,m=l==="y"?$t:Tt,p=n.rects.reference[d]+n.rects.reference[l]-a[l]-n.rects.popper[d],b=a[l]-n.rects.reference[l],y=Lo(r),$=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,S=p/2-b/2,T=f[h],M=$-v[d]-f[m],x=$/2-v[d]/2+S,P=go(T,x,M),E=l;n.modifiersData[o]=(t={},t[E]=P,t.centerOffset=P-x,t)}}function V_(e){var t=e.state,n=e.options,o=n.element,s=o===void 0?"[data-popper-arrow]":o;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||!Pu(t.elements.popper,s)||(t.elements.arrow=s))}var F_={name:"arrow",enabled:!0,phase:"main",fn:N_,effect:V_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Jn(e){return e.split("-")[1]}var R_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function D_(e){var t=e.x,n=e.y,o=window,s=o.devicePixelRatio||1;return{x:Qn(t*s)/s||0,y:Qn(n*s)/s||0}}function Yi(e){var t,n=e.popper,o=e.popperRect,s=e.placement,r=e.variation,a=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,v=a.x,h=v===void 0?0:v,m=a.y,p=m===void 0?0:m,b=typeof d=="function"?d({x:h,y:p}):{x:h,y:p};h=b.x,p=b.y;var y=a.hasOwnProperty("x"),$=a.hasOwnProperty("y"),S=rt,T=st,M=window;if(c){var x=Lo(n),P="clientHeight",E="clientWidth";if(x===Bt(n)&&(x=Sn(n),rn(x).position!=="static"&&i==="absolute"&&(P="scrollHeight",E="scrollWidth")),x=x,s===st||(s===rt||s===Tt)&&r===$o){T=$t;var j=f&&x===M&&M.visualViewport?M.visualViewport.height:x[P];p-=j-o.height,p*=l?1:-1}if(s===rt||(s===st||s===$t)&&r===$o){S=Tt;var z=f&&x===M&&M.visualViewport?M.visualViewport.width:x[E];h-=z-o.width,h*=l?1:-1}}var F=Object.assign({position:i},c&&R_),V=d===!0?D_({x:h,y:p}):{x:h,y:p};if(h=V.x,p=V.y,l){var U;return Object.assign({},F,(U={},U[T]=$?"0":"",U[S]=y?"0":"",U.transform=(M.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",U))}return Object.assign({},F,(t={},t[T]=$?p+"px":"",t[S]=y?h+"px":"",t.transform="",t))}function H_(e){var t=e.state,n=e.options,o=n.gpuAcceleration,s=o===void 0?!0:o,r=n.adaptive,a=r===void 0?!0:r,i=n.roundOffsets,l=i===void 0?!0:i,c={placement:Ht(t.placement),variation:Jn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Yi(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Yi(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Ou={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:H_,data:{}},Ho={passive:!0};function j_(e){var t=e.state,n=e.instance,o=e.options,s=o.scroll,r=s===void 0?!0:s,a=o.resize,i=a===void 0?!0:a,l=Bt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(d){d.addEventListener("scroll",n.update,Ho)}),i&&l.addEventListener("resize",n.update,Ho),function(){r&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Ho)}),i&&l.removeEventListener("resize",n.update,Ho)}}var zu={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:j_,data:{}},W_={left:"right",right:"left",bottom:"top",top:"bottom"};function ts(e){return e.replace(/left|right|bottom|top/g,function(t){return W_[t]})}var G_={start:"end",end:"start"};function Xi(e){return e.replace(/start|end/g,function(t){return G_[t]})}function ga(e){var t=Bt(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function ya(e){return Zn(Sn(e)).left+ga(e).scrollLeft}function U_(e){var t=Bt(e),n=Sn(e),o=t.visualViewport,s=n.clientWidth,r=n.clientHeight,a=0,i=0;return o&&(s=o.width,r=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=o.offsetLeft,i=o.offsetTop)),{width:s,height:r,x:a+ya(e),y:i}}function q_(e){var t,n=Sn(e),o=ga(e),s=(t=e.ownerDocument)==null?void 0:t.body,r=xn(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=xn(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),i=-o.scrollLeft+ya(e),l=-o.scrollTop;return rn(s||n).direction==="rtl"&&(i+=xn(n.clientWidth,s?s.clientWidth:0)-r),{width:r,height:a,x:i,y:l}}function ba(e){var t=rn(e),n=t.overflow,o=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+o)}function Bu(e){return["html","body","#document"].indexOf(jt(e))>=0?e.ownerDocument.body:wt(e)&&ba(e)?e:Bu(Ls(e))}function yo(e,t){var n;t===void 0&&(t=[]);var o=Bu(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),r=Bt(o),a=s?[r].concat(r.visualViewport||[],ba(o)?o:[]):o,i=t.concat(a);return s?i:i.concat(yo(Ls(a)))}function Br(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function K_(e){var t=Zn(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Qi(e,t){return t===Eu?Br(U_(e)):Xn(t)?K_(t):Br(q_(Sn(e)))}function Y_(e){var t=yo(Ls(e)),n=["absolute","fixed"].indexOf(rn(e).position)>=0,o=n&&wt(e)?Lo(e):e;return Xn(o)?t.filter(function(s){return Xn(s)&&Pu(s,o)&&jt(s)!=="body"}):[]}function X_(e,t,n){var o=t==="clippingParents"?Y_(e):[].concat(t),s=[].concat(o,[n]),r=s[0],a=s.reduce(function(i,l){var c=Qi(e,l);return i.top=xn(c.top,i.top),i.right=vs(c.right,i.right),i.bottom=vs(c.bottom,i.bottom),i.left=xn(c.left,i.left),i},Qi(e,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Nu(e){var t=e.reference,n=e.element,o=e.placement,s=o?Ht(o):null,r=o?Jn(o):null,a=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(s){case st:l={x:a,y:t.y-n.height};break;case $t:l={x:a,y:t.y+t.height};break;case Tt:l={x:t.x+t.width,y:i};break;case rt:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var c=s?ma(s):null;if(c!=null){var d=c==="y"?"height":"width";switch(r){case Yn:l[c]=l[c]-(t[d]/2-n[d]/2);break;case $o:l[c]=l[c]+(t[d]/2-n[d]/2);break}}return l}function To(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=o===void 0?e.placement:o,r=n.boundary,a=r===void 0?b_:r,i=n.rootBoundary,l=i===void 0?Eu:i,c=n.elementContext,d=c===void 0?fo:c,f=n.altBoundary,v=f===void 0?!1:f,h=n.padding,m=h===void 0?0:h,p=Au(typeof m!="number"?m:Lu(m,Ao)),b=d===fo?__:fo,y=e.rects.popper,$=e.elements[v?b:d],S=X_(Xn($)?$:$.contextElement||Sn(e.elements.popper),a,l),T=Zn(e.elements.reference),M=Nu({reference:T,element:y,strategy:"absolute",placement:s}),x=Br(Object.assign({},y,M)),P=d===fo?x:T,E={top:S.top-P.top+p.top,bottom:P.bottom-S.bottom+p.bottom,left:S.left-P.left+p.left,right:P.right-S.right+p.right},j=e.modifiersData.offset;if(d===fo&&j){var z=j[s];Object.keys(E).forEach(function(F){var V=[Tt,$t].indexOf(F)>=0?1:-1,U=[st,$t].indexOf(F)>=0?"y":"x";E[F]+=z[U]*V})}return E}function Q_(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=n.boundary,r=n.rootBoundary,a=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?As:l,d=Jn(o),f=d?i?qi:qi.filter(function(m){return Jn(m)===d}):Ao,v=f.filter(function(m){return c.indexOf(m)>=0});v.length===0&&(v=f);var h=v.reduce(function(m,p){return m[p]=To(e,{placement:p,boundary:s,rootBoundary:r,padding:a})[Ht(p)],m},{});return Object.keys(h).sort(function(m,p){return h[m]-h[p]})}function Z_(e){if(Ht(e)===pa)return[];var t=ts(e);return[Xi(e),t,Xi(t)]}function J_(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var s=n.mainAxis,r=s===void 0?!0:s,a=n.altAxis,i=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,v=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,p=n.allowedAutoPlacements,b=t.options.placement,y=Ht(b),$=y===b,S=l||($||!m?[ts(b)]:Z_(b)),T=[b].concat(S).reduce(function(ie,re){return ie.concat(Ht(re)===pa?Q_(t,{placement:re,boundary:d,rootBoundary:f,padding:c,flipVariations:m,allowedAutoPlacements:p}):re)},[]),M=t.rects.reference,x=t.rects.popper,P=new Map,E=!0,j=T[0],z=0;z=0,te=Z?"width":"height",oe=To(t,{placement:F,boundary:d,rootBoundary:f,altBoundary:v,padding:c}),W=Z?U?Tt:rt:U?$t:st;M[te]>x[te]&&(W=ts(W));var q=ts(W),Y=[];if(r&&Y.push(oe[V]<=0),i&&Y.push(oe[W]<=0,oe[q]<=0),Y.every(function(ie){return ie})){j=F,E=!1;break}P.set(F,Y)}if(E)for(var J=m?3:1,ae=function(ie){var re=T.find(function(X){var le=P.get(X);if(le)return le.slice(0,ie).every(function($e){return $e})});if(re)return j=re,"break"},ce=J;ce>0;ce--){var G=ae(ce);if(G==="break")break}t.placement!==j&&(t.modifiersData[o]._skip=!0,t.placement=j,t.reset=!0)}}var e6={name:"flip",enabled:!0,phase:"main",fn:J_,requiresIfExists:["offset"],data:{_skip:!1}};function Zi(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ji(e){return[st,Tt,$t,rt].some(function(t){return e[t]>=0})}function t6(e){var t=e.state,n=e.name,o=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,a=To(t,{elementContext:"reference"}),i=To(t,{altBoundary:!0}),l=Zi(a,o),c=Zi(i,s,r),d=Ji(l),f=Ji(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var n6={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:t6};function o6(e,t,n){var o=Ht(e),s=[rt,st].indexOf(o)>=0?-1:1,r=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=r[0],i=r[1];return a=a||0,i=(i||0)*s,[rt,Tt].indexOf(o)>=0?{x:i,y:a}:{x:a,y:i}}function s6(e){var t=e.state,n=e.options,o=e.name,s=n.offset,r=s===void 0?[0,0]:s,a=As.reduce(function(d,f){return d[f]=o6(f,t.rects,r),d},{}),i=a[t.placement],l=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=a}var r6={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:s6};function a6(e){var t=e.state,n=e.name;t.modifiersData[n]=Nu({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Vu={name:"popperOffsets",enabled:!0,phase:"read",fn:a6,data:{}};function i6(e){return e==="x"?"y":"x"}function l6(e){var t=e.state,n=e.options,o=e.name,s=n.mainAxis,r=s===void 0?!0:s,a=n.altAxis,i=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,v=n.tether,h=v===void 0?!0:v,m=n.tetherOffset,p=m===void 0?0:m,b=To(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:d}),y=Ht(t.placement),$=Jn(t.placement),S=!$,T=ma(y),M=i6(T),x=t.modifiersData.popperOffsets,P=t.rects.reference,E=t.rects.popper,j=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,z=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(x){if(r){var U,Z=T==="y"?st:rt,te=T==="y"?$t:Tt,oe=T==="y"?"height":"width",W=x[T],q=W+b[Z],Y=W-b[te],J=h?-E[oe]/2:0,ae=$===Yn?P[oe]:E[oe],ce=$===Yn?-E[oe]:-P[oe],G=t.elements.arrow,ie=h&&G?ha(G):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:xu(),X=re[Z],le=re[te],$e=go(0,P[oe],ie[oe]),Je=S?P[oe]/2-J-$e-X-z.mainAxis:ae-$e-X-z.mainAxis,Ue=S?-P[oe]/2+J+$e+le+z.mainAxis:ce+$e+le+z.mainAxis,We=t.elements.arrow&&Lo(t.elements.arrow),qe=We?T==="y"?We.clientTop||0:We.clientLeft||0:0,Mt=(U=F==null?void 0:F[T])!=null?U:0,Et=W+Je-Mt-qe,Ut=W+Ue-Mt,Nt=go(h?vs(q,Et):q,W,h?xn(Y,Ut):Y);x[T]=Nt,V[T]=Nt-W}if(i){var un,qt=T==="x"?st:rt,kn=T==="x"?$t:Tt,Xe=x[M],Kt=M==="y"?"height":"width",dn=Xe+b[qt],$n=Xe-b[kn],Yt=[st,rt].indexOf(y)!==-1,K=(un=F==null?void 0:F[M])!=null?un:0,he=Yt?dn:Xe-P[Kt]-E[Kt]-K+z.altAxis,ze=Yt?Xe+P[Kt]+E[Kt]-K-z.altAxis:$n,Xt=h&&Yt?z_(he,Xe,ze):go(h?he:dn,Xe,h?ze:$n);x[M]=Xt,V[M]=Xt-Xe}t.modifiersData[o]=V}}var c6={name:"preventOverflow",enabled:!0,phase:"main",fn:l6,requiresIfExists:["offset"]};function u6(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function d6(e){return e===Bt(e)||!wt(e)?ga(e):u6(e)}function f6(e){var t=e.getBoundingClientRect(),n=Qn(t.width)/e.offsetWidth||1,o=Qn(t.height)/e.offsetHeight||1;return n!==1||o!==1}function p6(e,t,n){n===void 0&&(n=!1);var o=wt(t),s=wt(t)&&f6(t),r=Sn(t),a=Zn(e,s),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((jt(t)!=="body"||ba(r))&&(i=d6(t)),wt(t)?(l=Zn(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=ya(r))),{x:a.left+i.scrollLeft-l.x,y:a.top+i.scrollTop-l.y,width:a.width,height:a.height}}function v6(e){var t=new Map,n=new Set,o=[];e.forEach(function(r){t.set(r.name,r)});function s(r){n.add(r.name);var a=[].concat(r.requires||[],r.requiresIfExists||[]);a.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&s(l)}}),o.push(r)}return e.forEach(function(r){n.has(r.name)||s(r)}),o}function h6(e){var t=v6(e);return P_.reduce(function(n,o){return n.concat(t.filter(function(s){return s.phase===o}))},[])}function m6(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function g6(e){var t=e.reduce(function(n,o){var s=n[o.name];return n[o.name]=s?Object.assign({},s,o,{options:Object.assign({},s.options,o.options),data:Object.assign({},s.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var el={placement:"bottom",modifiers:[],strategy:"absolute"};function tl(){for(var e=arguments.length,t=new Array(e),n=0;n{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const c=S6(l);Object.assign(a.value,c)},requires:["computeStyles"]},s=w(()=>{const{onFirstUpdate:l,placement:c,strategy:d,modifiers:f}=u(n);return{onFirstUpdate:l,placement:c||"bottom",strategy:d||"absolute",modifiers:[...f||[],o,{name:"applyStyles",enabled:!1}]}}),r=Ot(),a=I({styles:{popper:{position:u(s).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{r.value&&(r.value.destroy(),r.value=void 0)};return Q(s,l=>{const c=u(r);c&&c.setOptions(l)},{deep:!0}),Q([e,t],([l,c])=>{i(),!(!l||!c)&&(r.value=_6(l,c,u(s)))}),it(()=>{i()}),{state:w(()=>{var l;return{...((l=u(r))==null?void 0:l.state)||{}}}),styles:w(()=>u(a).styles),attributes:w(()=>u(a).attributes),update:()=>{var l;return(l=u(r))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=u(r))==null?void 0:l.forceUpdate()},instanceRef:w(()=>u(r))}};function S6(e){const t=Object.keys(e.elements),n=cs(t.map(s=>[s,e.styles[s]||{}])),o=cs(t.map(s=>[s,e.attributes[s]]));return{styles:n,attributes:o}}function nl(){let e;const t=(o,s)=>{n(),e=window.setTimeout(o,s)},n=()=>window.clearTimeout(e);return yn(()=>n()),{registerTimeout:t,cancelTimeout:n}}const ol={prefix:Math.floor(Math.random()*1e4),current:0},k6=Symbol("elIdInjection"),Fu=()=>Ye()?fe(k6,ol):ol,Os=e=>{const t=Fu(),n=fa();return w(()=>u(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Gn=[];const sl=e=>{const t=e;t.key===gt.esc&&Gn.forEach(n=>n(t))},$6=e=>{me(()=>{Gn.length===0&&document.addEventListener("keydown",sl),Ce&&Gn.push(e)}),it(()=>{Gn=Gn.filter(t=>t!==e),Gn.length===0&&Ce&&document.removeEventListener("keydown",sl)})};let rl;const Ru=()=>{const e=fa(),t=Fu(),n=w(()=>`${e.value}-popper-container-${t.prefix}`),o=w(()=>`#${n.value}`);return{id:n,selector:o}},T6=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},C6=()=>{const{id:e,selector:t}=Ru();return ef(()=>{Ce&&!rl&&!document.body.querySelector(t.value)&&(rl=T6(e.value))}),{id:e,selector:t}},M6=ke({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),E6=({showAfter:e,hideAfter:t,autoClose:n,open:o,close:s})=>{const{registerTimeout:r}=nl(),{registerTimeout:a,cancelTimeout:i}=nl();return{onOpen:d=>{r(()=>{o(d);const f=u(n);Te(f)&&f>0&&a(()=>{s(d)},f)},u(e))},onClose:d=>{i(),r(()=>{s(d)},u(t))}}},Du=Symbol("elForwardRef"),I6=e=>{Ne(Du,{setForwardRef:n=>{e.value=n}})},P6=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),al=I(0),Hu=2e3,ju=Symbol("zIndexContextKey"),wa=e=>{const t=e||(Ye()?fe(ju,void 0):void 0),n=w(()=>{const r=u(t);return Te(r)?r:Hu}),o=w(()=>n.value+al.value);return{initialZIndex:n,currentZIndex:o,nextZIndex:()=>(al.value++,o.value)}};function x6(e){const t=I();function n(){if(e.value==null)return;const{selectionStart:s,selectionEnd:r,value:a}=e.value;if(s==null||r==null)return;const i=a.slice(0,Math.max(0,s)),l=a.slice(Math.max(0,r));t.value={selectionStart:s,selectionEnd:r,value:a,beforeTxt:i,afterTxt:l}}function o(){if(e.value==null||t.value==null)return;const{value:s}=e.value,{beforeTxt:r,afterTxt:a,selectionStart:i}=t.value;if(r==null||a==null||i==null)return;let l=s.length;if(s.endsWith(a))l=s.length-a.length;else if(s.startsWith(r))l=r.length;else{const c=r[i-1],d=s.indexOf(c,i-1);d!==-1&&(l=d+1)}e.value.setSelectionRange(l,l)}return[n,o]}const A6=(e,t,n)=>mo(e.subTree).filter(r=>{var a;return qn(r)&&((a=r.type)==null?void 0:a.name)===t&&!!r.component}).map(r=>r.component.uid).map(r=>n[r]).filter(r=>!!r),L6=(e,t)=>{const n={},o=Ot([]);return{children:o,addChild:a=>{n[a.uid]=a,o.value=A6(e,t,n)},removeChild:a=>{delete n[a],o.value=o.value.filter(i=>i.uid!==a)}}},Sa=Ps({type:String,values:xo,required:!1}),Wu=Symbol("size"),O6=()=>{const e=fe(Wu,{});return w(()=>u(e.size)||"")};function Gu(e,{afterFocus:t,beforeBlur:n,afterBlur:o}={}){const s=Ye(),{emit:r}=s,a=Ot(),i=I(!1),l=f=>{i.value||(i.value=!0,r("focus",f),t==null||t())},c=f=>{var v;nt(n)&&n(f)||f.relatedTarget&&((v=a.value)!=null&&v.contains(f.relatedTarget))||(i.value=!1,r("blur",f),o==null||o())},d=()=>{var f;(f=e.value)==null||f.focus()};return Q(a,f=>{f&&f.setAttribute("tabindex","-1")}),Me(a,"click",d),{wrapperRef:a,isFocused:i,handleFocus:l,handleBlur:c}}const Uu=Symbol(),hs=I();function ka(e,t=void 0){const n=Ye()?fe(Uu,hs):hs;return e?w(()=>{var o,s;return(s=(o=n.value)==null?void 0:o[e])!=null?s:t}):n}function z6(e,t){const n=ka(),o=Se(e,w(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||es})),s=Ct(w(()=>{var i;return(i=n.value)==null?void 0:i.locale})),r=wa(w(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||Hu})),a=w(()=>{var i;return u(t)||((i=n.value)==null?void 0:i.size)||""});return B6(w(()=>u(n)||{})),{ns:o,locale:s,zIndex:r,size:a}}const B6=(e,t,n=!1)=>{var o;const s=!!Ye(),r=s?ka():void 0,a=(o=t==null?void 0:t.provide)!=null?o:s?Ne:void 0;if(!a)return;const i=w(()=>{const l=u(e);return r!=null&&r.value?N6(r.value,l):l});return a(Uu,i),a($u,w(()=>i.value.locale)),a(Tu,w(()=>i.value.namespace)),a(ju,w(()=>i.value.zIndex)),a(Wu,{size:w(()=>i.value.size||"")}),(n||!hs.value)&&(hs.value=i.value),i},N6=(e,t)=>{var n;const o=[...new Set([...us(e),...us(t)])],s={};for(const r of o)s[r]=(n=t[r])!=null?n:e[r];return s},il={};var we=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n};const V6=ke({size:{type:de([Number,String])},color:{type:String}}),F6=L({name:"ElIcon",inheritAttrs:!1}),R6=L({...F6,props:V6,setup(e){const t=e,n=Se("icon"),o=w(()=>{const{size:s,color:r}=t;return!s&&!r?{}:{fontSize:ia(s)?void 0:ds(s),"--color":r}});return(s,r)=>(g(),k("i",ft({class:u(n).b(),style:u(o)},s.$attrs),[A(s.$slots,"default")],16))}});var D6=we(R6,[["__file","icon.vue"]]);const pe=Ze(D6),H6=["light","dark"],j6=ke({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:us(ps),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:H6,default:"light"}}),W6={close:e=>e instanceof MouseEvent},G6=L({name:"ElAlert"}),U6=L({...G6,props:j6,emits:W6,setup(e,{emit:t}){const n=e,{Close:o}=bu,s=Co(),r=Se("alert"),a=I(!0),i=w(()=>ps[n.type]),l=w(()=>[r.e("icon"),{[r.is("big")]:!!n.description||!!s.default}]),c=w(()=>({"with-description":n.description||s.default})),d=f=>{a.value=!1,t("close",f)};return(f,v)=>(g(),H(at,{name:u(r).b("fade"),persisted:""},{default:C(()=>[ge(_("div",{class:N([u(r).b(),u(r).m(f.type),u(r).is("center",f.center),u(r).is(f.effect)]),role:"alert"},[f.showIcon&&u(i)?(g(),H(u(pe),{key:0,class:N(u(l))},{default:C(()=>[(g(),H(Le(u(i))))]),_:1},8,["class"])):O("v-if",!0),_("div",{class:N(u(r).e("content"))},[f.title||f.$slots.title?(g(),k("span",{key:0,class:N([u(r).e("title"),u(c)])},[A(f.$slots,"title",{},()=>[be(D(f.title),1)])],2)):O("v-if",!0),f.$slots.default||f.description?(g(),k("p",{key:1,class:N(u(r).e("description"))},[A(f.$slots,"default",{},()=>[be(D(f.description),1)])],2)):O("v-if",!0),f.closable?(g(),k(se,{key:2},[f.closeText?(g(),k("div",{key:0,class:N([u(r).e("close-btn"),u(r).is("customed")]),onClick:d},D(f.closeText),3)):(g(),H(u(pe),{key:1,class:N(u(r).e("close-btn")),onClick:d},{default:C(()=>[B(u(o))]),_:1},8,["class"]))],64)):O("v-if",!0)],2)],2),[[Ie,a.value]])]),_:3},8,["name"]))}});var q6=we(U6,[["__file","alert.vue"]]);const K6=Ze(q6),$a=Symbol("formContextKey"),ms=Symbol("formItemContextKey"),zs=(e,t={})=>{const n=I(void 0),o=t.prop?n:Mu("size"),s=t.global?n:O6(),r=t.form?{size:void 0}:fe($a,void 0),a=t.formItem?{size:void 0}:fe(ms,void 0);return w(()=>o.value||u(e)||(a==null?void 0:a.size)||(r==null?void 0:r.size)||s.value||"")},Ta=e=>{const t=Mu("disabled"),n=fe($a,void 0);return w(()=>t.value||u(e)||(n==null?void 0:n.disabled)||!1)},Ca=()=>{const e=fe($a,void 0),t=fe(ms,void 0);return{form:e,formItem:t}},qu=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=I(!1)),o||(o=I(!1));const s=I();let r;const a=w(()=>{var i;return!!(!e.label&&t&&t.inputIds&&((i=t.inputIds)==null?void 0:i.length)<=1)});return me(()=>{r=Q([dt(e,"id"),n],([i,l])=>{const c=i??(l?void 0:Os().value);c!==s.value&&(t!=null&&t.removeInputId&&(s.value&&t.removeInputId(s.value),!(o!=null&&o.value)&&!l&&c&&t.addInputId(c)),s.value=c)},{immediate:!0})}),Wt(()=>{r&&r(),t!=null&&t.removeInputId&&s.value&&t.removeInputId(s.value)}),{isLabeledByFormItem:a,inputId:s}};let It;const Y6=` + height:0 !important; + visibility:hidden !important; + ${Cy()?"":"overflow:hidden !important;"} + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; +`,X6=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Q6(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),s=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:X6.map(a=>`${a}:${t.getPropertyValue(a)}`).join(";"),paddingSize:o,borderSize:s,boxSizing:n}}function ll(e,t=1,n){var o;It||(It=document.createElement("textarea"),document.body.appendChild(It));const{paddingSize:s,borderSize:r,boxSizing:a,contextStyle:i}=Q6(e);It.setAttribute("style",`${i};${Y6}`),It.value=e.value||e.placeholder||"";let l=It.scrollHeight;const c={};a==="border-box"?l=l+r:a==="content-box"&&(l=l-s),It.value="";const d=It.scrollHeight-s;if(Te(t)){let f=d*t;a==="border-box"&&(f=f+s+r),l=Math.max(f,l),c.minHeight=`${f}px`}if(Te(n)){let f=d*n;a==="border-box"&&(f=f+s+r),l=Math.min(f,l)}return c.height=`${l}px`,(o=It.parentNode)==null||o.removeChild(It),It=void 0,c}const Z6=ke({id:{type:String,default:void 0},size:Sa,disabled:Boolean,modelValue:{type:de([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:de([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:kt},prefixIcon:{type:kt},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:de([Object,Array,String]),default:()=>ao({})},autofocus:{type:Boolean,default:!1}}),J6={[At]:e=>_t(e),input:e=>_t(e),change:e=>_t(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},ew=["role"],tw=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],nw=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],ow=L({name:"ElInput",inheritAttrs:!1}),sw=L({...ow,props:Z6,emits:J6,setup(e,{expose:t,emit:n}){const o=e,s=Yl(),r=Co(),a=w(()=>{const K={};return o.containerRole==="combobox"&&(K["aria-haspopup"]=s["aria-haspopup"],K["aria-owns"]=s["aria-owns"],K["aria-expanded"]=s["aria-expanded"]),K}),i=w(()=>[o.type==="textarea"?b.b():p.b(),p.m(h.value),p.is("disabled",m.value),p.is("exceed",ie.value),{[p.b("group")]:r.prepend||r.append,[p.bm("group","append")]:r.append,[p.bm("group","prepend")]:r.prepend,[p.m("prefix")]:r.prefix||o.prefixIcon,[p.m("suffix")]:r.suffix||o.suffixIcon||o.clearable||o.showPassword,[p.bm("suffix","password-clear")]:J.value&&ae.value,[p.b("hidden")]:o.type==="hidden"},s.class]),l=w(()=>[p.e("wrapper"),p.is("focus",z.value)]),c=ku({excludeKeys:w(()=>Object.keys(a.value))}),{form:d,formItem:f}=Ca(),{inputId:v}=qu(o,{formItemContext:f}),h=zs(),m=Ta(),p=Se("input"),b=Se("textarea"),y=Ot(),$=Ot(),S=I(!1),T=I(!1),M=I(!1),x=I(),P=Ot(o.inputStyle),E=w(()=>y.value||$.value),{wrapperRef:j,isFocused:z,handleFocus:F,handleBlur:V}=Gu(E,{afterBlur(){var K;o.validateEvent&&((K=f==null?void 0:f.validate)==null||K.call(f,"blur").catch(he=>void 0))}}),U=w(()=>{var K;return(K=d==null?void 0:d.statusIcon)!=null?K:!1}),Z=w(()=>(f==null?void 0:f.validateState)||""),te=w(()=>Z.value&&_u[Z.value]),oe=w(()=>M.value?t_:D8),W=w(()=>[s.style]),q=w(()=>[o.inputStyle,P.value,{resize:o.resize}]),Y=w(()=>Po(o.modelValue)?"":String(o.modelValue)),J=w(()=>o.clearable&&!m.value&&!o.readonly&&!!Y.value&&(z.value||S.value)),ae=w(()=>o.showPassword&&!m.value&&!o.readonly&&!!Y.value&&(!!Y.value||z.value)),ce=w(()=>o.showWordLimit&&!!o.maxlength&&(o.type==="text"||o.type==="textarea")&&!m.value&&!o.readonly&&!o.showPassword),G=w(()=>Y.value.length),ie=w(()=>!!ce.value&&G.value>Number(o.maxlength)),re=w(()=>!!r.suffix||!!o.suffixIcon||J.value||o.showPassword||ce.value||!!Z.value&&U.value),[X,le]=x6(y);mt($,K=>{if(Ue(),!ce.value||o.resize!=="both")return;const he=K[0],{width:ze}=he.contentRect;x.value={right:`calc(100% - ${ze+15+6}px)`}});const $e=()=>{const{type:K,autosize:he}=o;if(!(!Ce||K!=="textarea"||!$.value))if(he){const ze=yt(he)?he.minRows:void 0,Xt=yt(he)?he.maxRows:void 0,lo=ll($.value,ze,Xt);P.value={overflowY:"hidden",...lo},_e(()=>{$.value.offsetHeight,P.value=lo})}else P.value={minHeight:ll($.value).minHeight}},Ue=(K=>{let he=!1;return()=>{var ze;if(he||!o.autosize)return;((ze=$.value)==null?void 0:ze.offsetParent)===null||(K(),he=!0)}})($e),We=()=>{const K=E.value,he=o.formatter?o.formatter(Y.value):Y.value;!K||K.value===he||(K.value=he)},qe=async K=>{X();let{value:he}=K.target;if(o.formatter&&(he=o.parser?o.parser(he):he),!T.value){if(he===Y.value){We();return}n(At,he),n("input",he),await _e(),We(),le()}},Mt=K=>{n("change",K.target.value)},Et=K=>{n("compositionstart",K),T.value=!0},Ut=K=>{var he;n("compositionupdate",K);const ze=(he=K.target)==null?void 0:he.value,Xt=ze[ze.length-1]||"";T.value=!Su(Xt)},Nt=K=>{n("compositionend",K),T.value&&(T.value=!1,qe(K))},un=()=>{M.value=!M.value,qt()},qt=async()=>{var K;await _e(),(K=E.value)==null||K.focus()},kn=()=>{var K;return(K=E.value)==null?void 0:K.blur()},Xe=K=>{S.value=!1,n("mouseleave",K)},Kt=K=>{S.value=!0,n("mouseenter",K)},dn=K=>{n("keydown",K)},$n=()=>{var K;(K=E.value)==null||K.select()},Yt=()=>{n(At,""),n("change",""),n("clear"),n("input","")};return Q(()=>o.modelValue,()=>{var K;_e(()=>$e()),o.validateEvent&&((K=f==null?void 0:f.validate)==null||K.call(f,"change").catch(he=>void 0))}),Q(Y,()=>We()),Q(()=>o.type,async()=>{await _e(),We(),$e()}),me(()=>{!o.formatter&&o.parser,We(),_e($e)}),t({input:y,textarea:$,ref:E,textareaStyle:q,autosize:dt(o,"autosize"),focus:qt,blur:kn,select:$n,clear:Yt,resizeTextarea:$e}),(K,he)=>(g(),k("div",ft(u(a),{class:u(i),style:u(W),role:K.containerRole,onMouseenter:Kt,onMouseleave:Xe}),[O(" input "),K.type!=="textarea"?(g(),k(se,{key:0},[O(" prepend slot "),K.$slots.prepend?(g(),k("div",{key:0,class:N(u(p).be("group","prepend"))},[A(K.$slots,"prepend")],2)):O("v-if",!0),_("div",{ref_key:"wrapperRef",ref:j,class:N(u(l))},[O(" prefix slot "),K.$slots.prefix||K.prefixIcon?(g(),k("span",{key:0,class:N(u(p).e("prefix"))},[_("span",{class:N(u(p).e("prefix-inner"))},[A(K.$slots,"prefix"),K.prefixIcon?(g(),H(u(pe),{key:0,class:N(u(p).e("icon"))},{default:C(()=>[(g(),H(Le(K.prefixIcon)))]),_:1},8,["class"])):O("v-if",!0)],2)],2)):O("v-if",!0),_("input",ft({id:u(v),ref_key:"input",ref:y,class:u(p).e("inner")},u(c),{minlength:K.minlength,maxlength:K.maxlength,type:K.showPassword?M.value?"text":"password":K.type,disabled:u(m),readonly:K.readonly,autocomplete:K.autocomplete,tabindex:K.tabindex,"aria-label":K.label,placeholder:K.placeholder,style:K.inputStyle,form:K.form,autofocus:K.autofocus,onCompositionstart:Et,onCompositionupdate:Ut,onCompositionend:Nt,onInput:qe,onFocus:he[0]||(he[0]=(...ze)=>u(F)&&u(F)(...ze)),onBlur:he[1]||(he[1]=(...ze)=>u(V)&&u(V)(...ze)),onChange:Mt,onKeydown:dn}),null,16,tw),O(" suffix slot "),u(re)?(g(),k("span",{key:1,class:N(u(p).e("suffix"))},[_("span",{class:N(u(p).e("suffix-inner"))},[!u(J)||!u(ae)||!u(ce)?(g(),k(se,{key:0},[A(K.$slots,"suffix"),K.suffixIcon?(g(),H(u(pe),{key:0,class:N(u(p).e("icon"))},{default:C(()=>[(g(),H(Le(K.suffixIcon)))]),_:1},8,["class"])):O("v-if",!0)],64)):O("v-if",!0),u(J)?(g(),H(u(pe),{key:1,class:N([u(p).e("icon"),u(p).e("clear")]),onMousedown:He(u(_o),["prevent"]),onClick:Yt},{default:C(()=>[B(u(da))]),_:1},8,["class","onMousedown"])):O("v-if",!0),u(ae)?(g(),H(u(pe),{key:2,class:N([u(p).e("icon"),u(p).e("password")]),onClick:un},{default:C(()=>[(g(),H(Le(u(oe))))]),_:1},8,["class"])):O("v-if",!0),u(ce)?(g(),k("span",{key:3,class:N(u(p).e("count"))},[_("span",{class:N(u(p).e("count-inner"))},D(u(G))+" / "+D(K.maxlength),3)],2)):O("v-if",!0),u(Z)&&u(te)&&u(U)?(g(),H(u(pe),{key:4,class:N([u(p).e("icon"),u(p).e("validateIcon"),u(p).is("loading",u(Z)==="validating")])},{default:C(()=>[(g(),H(Le(u(te))))]),_:1},8,["class"])):O("v-if",!0)],2)],2)):O("v-if",!0)],2),O(" append slot "),K.$slots.append?(g(),k("div",{key:1,class:N(u(p).be("group","append"))},[A(K.$slots,"append")],2)):O("v-if",!0)],64)):(g(),k(se,{key:1},[O(" textarea "),_("textarea",ft({id:u(v),ref_key:"textarea",ref:$,class:u(b).e("inner")},u(c),{minlength:K.minlength,maxlength:K.maxlength,tabindex:K.tabindex,disabled:u(m),readonly:K.readonly,autocomplete:K.autocomplete,style:u(q),"aria-label":K.label,placeholder:K.placeholder,form:K.form,autofocus:K.autofocus,onCompositionstart:Et,onCompositionupdate:Ut,onCompositionend:Nt,onInput:qe,onFocus:he[2]||(he[2]=(...ze)=>u(F)&&u(F)(...ze)),onBlur:he[3]||(he[3]=(...ze)=>u(V)&&u(V)(...ze)),onChange:Mt,onKeydown:dn}),null,16,nw),u(ce)?(g(),k("span",{key:0,style:Oe(x.value),class:N(u(p).e("count"))},D(u(G))+" / "+D(K.maxlength),7)):O("v-if",!0)],64))],16,ew))}});var rw=we(sw,[["__file","input.vue"]]);const Ku=Ze(rw),Hn=4,aw={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},iw=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),Ma=Symbol("scrollbarContextKey"),lw=ke({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),cw="Thumb",uw=L({__name:"thumb",props:lw,setup(e){const t=e,n=fe(Ma),o=Se("scrollbar");n||f8(cw,"can not inject scrollbar context");const s=I(),r=I(),a=I({}),i=I(!1);let l=!1,c=!1,d=Ce?document.onselectstart:null;const f=w(()=>aw[t.vertical?"vertical":"horizontal"]),v=w(()=>iw({size:t.size,move:t.move,bar:f.value})),h=w(()=>s.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/t.ratio/r.value[f.value.offset]),m=x=>{var P;if(x.stopPropagation(),x.ctrlKey||[1,2].includes(x.button))return;(P=window.getSelection())==null||P.removeAllRanges(),b(x);const E=x.currentTarget;E&&(a.value[f.value.axis]=E[f.value.offset]-(x[f.value.client]-E.getBoundingClientRect()[f.value.direction]))},p=x=>{if(!r.value||!s.value||!n.wrapElement)return;const P=Math.abs(x.target.getBoundingClientRect()[f.value.direction]-x[f.value.client]),E=r.value[f.value.offset]/2,j=(P-E)*100*h.value/s.value[f.value.offset];n.wrapElement[f.value.scroll]=j*n.wrapElement[f.value.scrollSize]/100},b=x=>{x.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",$),d=document.onselectstart,document.onselectstart=()=>!1},y=x=>{if(!s.value||!r.value||l===!1)return;const P=a.value[f.value.axis];if(!P)return;const E=(s.value.getBoundingClientRect()[f.value.direction]-x[f.value.client])*-1,j=r.value[f.value.offset]-P,z=(E-j)*100*h.value/s.value[f.value.offset];n.wrapElement[f.value.scroll]=z*n.wrapElement[f.value.scrollSize]/100},$=()=>{l=!1,a.value[f.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",$),M(),c&&(i.value=!1)},S=()=>{c=!1,i.value=!!t.size},T=()=>{c=!0,i.value=l};it(()=>{M(),document.removeEventListener("mouseup",$)});const M=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return Me(dt(n,"scrollbarElement"),"mousemove",S),Me(dt(n,"scrollbarElement"),"mouseleave",T),(x,P)=>(g(),H(at,{name:u(o).b("fade"),persisted:""},{default:C(()=>[ge(_("div",{ref_key:"instance",ref:s,class:N([u(o).e("bar"),u(o).is(u(f).key)]),onMousedown:p},[_("div",{ref_key:"thumb",ref:r,class:N(u(o).e("thumb")),style:Oe(u(v)),onMousedown:m},null,38)],34),[[Ie,x.always||i.value]])]),_:1},8,["name"]))}});var cl=we(uw,[["__file","thumb.vue"]]);const dw=ke({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),fw=L({__name:"bar",props:dw,setup(e,{expose:t}){const n=e,o=fe(Ma),s=I(0),r=I(0),a=I(""),i=I(""),l=I(1),c=I(1);return t({handleScroll:v=>{if(v){const h=v.offsetHeight-Hn,m=v.offsetWidth-Hn;r.value=v.scrollTop*100/h*l.value,s.value=v.scrollLeft*100/m*c.value}},update:()=>{const v=o==null?void 0:o.wrapElement;if(!v)return;const h=v.offsetHeight-Hn,m=v.offsetWidth-Hn,p=h**2/v.scrollHeight,b=m**2/v.scrollWidth,y=Math.max(p,n.minSize),$=Math.max(b,n.minSize);l.value=p/(h-p)/(y/(h-y)),c.value=b/(m-b)/($/(m-$)),i.value=y+Hn(g(),k(se,null,[B(cl,{move:s.value,ratio:c.value,size:a.value,always:v.always},null,8,["move","ratio","size","always"]),B(cl,{move:r.value,ratio:l.value,size:i.value,vertical:"",always:v.always},null,8,["move","ratio","size","always"])],64))}});var pw=we(fw,[["__file","bar.vue"]]);const vw=ke({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:de([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},id:String,role:String,ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical"]}}),hw={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Te)},mw="ElScrollbar",gw=L({name:mw}),yw=L({...gw,props:vw,emits:hw,setup(e,{expose:t,emit:n}){const o=e,s=Se("scrollbar");let r,a;const i=I(),l=I(),c=I(),d=I(),f=w(()=>{const S={};return o.height&&(S.height=ds(o.height)),o.maxHeight&&(S.maxHeight=ds(o.maxHeight)),[o.wrapStyle,S]}),v=w(()=>[o.wrapClass,s.e("wrap"),{[s.em("wrap","hidden-default")]:!o.native}]),h=w(()=>[s.e("view"),o.viewClass]),m=()=>{var S;l.value&&((S=d.value)==null||S.handleScroll(l.value),n("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function p(S,T){yt(S)?l.value.scrollTo(S):Te(S)&&Te(T)&&l.value.scrollTo(S,T)}const b=S=>{Te(S)&&(l.value.scrollTop=S)},y=S=>{Te(S)&&(l.value.scrollLeft=S)},$=()=>{var S;(S=d.value)==null||S.update()};return Q(()=>o.noresize,S=>{S?(r==null||r(),a==null||a()):({stop:r}=mt(c,$),a=Me("resize",$))},{immediate:!0}),Q(()=>[o.maxHeight,o.height],()=>{o.native||_e(()=>{var S;$(),l.value&&((S=d.value)==null||S.handleScroll(l.value))})}),Ne(Ma,De({scrollbarElement:i,wrapElement:l})),me(()=>{o.native||_e(()=>{$()})}),Dl(()=>$()),t({wrapRef:l,update:$,scrollTo:p,setScrollTop:b,setScrollLeft:y,handleScroll:m}),(S,T)=>(g(),k("div",{ref_key:"scrollbarRef",ref:i,class:N(u(s).b())},[_("div",{ref_key:"wrapRef",ref:l,class:N(u(v)),style:Oe(u(f)),onScroll:m},[(g(),H(Le(S.tag),{id:S.id,ref_key:"resizeRef",ref:c,class:N(u(h)),style:Oe(S.viewStyle),role:S.role,"aria-label":S.ariaLabel,"aria-orientation":S.ariaOrientation},{default:C(()=>[A(S.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),S.native?O("v-if",!0):(g(),H(pw,{key:0,ref_key:"barRef",ref:d,always:S.always,"min-size":S.minSize},null,8,["always","min-size"]))],2))}});var bw=we(yw,[["__file","scrollbar.vue"]]);const _w=Ze(bw),Ea=Symbol("popper"),Yu=Symbol("popperContent"),ww=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Xu=ke({role:{type:String,values:ww,default:"tooltip"}}),Sw=L({name:"ElPopper",inheritAttrs:!1}),kw=L({...Sw,props:Xu,setup(e,{expose:t}){const n=e,o=I(),s=I(),r=I(),a=I(),i=w(()=>n.role),l={triggerRef:o,popperInstanceRef:s,contentRef:r,referenceRef:a,role:i};return t(l),Ne(Ea,l),(c,d)=>A(c.$slots,"default")}});var $w=we(kw,[["__file","popper.vue"]]);const Qu=ke({arrowOffset:{type:Number,default:5}}),Tw=L({name:"ElPopperArrow",inheritAttrs:!1}),Cw=L({...Tw,props:Qu,setup(e,{expose:t}){const n=e,o=Se("popper"),{arrowOffset:s,arrowRef:r,arrowStyle:a}=fe(Yu,void 0);return Q(()=>n.arrowOffset,i=>{s.value=i}),it(()=>{r.value=void 0}),t({arrowRef:r}),(i,l)=>(g(),k("span",{ref_key:"arrowRef",ref:r,class:N(u(o).e("arrow")),style:Oe(u(a)),"data-popper-arrow":""},null,6))}});var Mw=we(Cw,[["__file","arrow.vue"]]);const Ew="ElOnlyChild",Iw=L({name:Ew,setup(e,{slots:t,attrs:n}){var o;const s=fe(Du),r=P6((o=s==null?void 0:s.setForwardRef)!=null?o:_o);return()=>{var a;const i=(a=t.default)==null?void 0:a.call(t,n);if(!i||i.length>1)return null;const l=Zu(i);return l?ge(tf(l,n),[[r]]):null}}});function Zu(e){if(!e)return null;const t=e;for(const n of t){if(yt(n))switch(n.type){case nf:continue;case Xl:case"svg":return ul(n);case se:return Zu(n.children);default:return n}return ul(n)}return null}function ul(e){const t=Se("only-child");return B("span",{class:t.e("content")},[e])}const Ju=ke({virtualRef:{type:de(Object)},virtualTriggering:Boolean,onMouseenter:{type:de(Function)},onMouseleave:{type:de(Function)},onClick:{type:de(Function)},onKeydown:{type:de(Function)},onFocus:{type:de(Function)},onBlur:{type:de(Function)},onContextmenu:{type:de(Function)},id:String,open:Boolean}),Pw=L({name:"ElPopperTrigger",inheritAttrs:!1}),xw=L({...Pw,props:Ju,setup(e,{expose:t}){const n=e,{role:o,triggerRef:s}=fe(Ea,void 0);I6(s);const r=w(()=>i.value?n.id:void 0),a=w(()=>{if(o&&o.value==="tooltip")return n.open&&n.id?n.id:void 0}),i=w(()=>{if(o&&o.value!=="tooltip")return o.value}),l=w(()=>i.value?`${n.open}`:void 0);let c;return me(()=>{Q(()=>n.virtualRef,d=>{d&&(s.value=ot(d))},{immediate:!0}),Q(s,(d,f)=>{c==null||c(),c=void 0,Bn(d)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(v=>{var h;const m=n[v];m&&(d.addEventListener(v.slice(2).toLowerCase(),m),(h=f==null?void 0:f.removeEventListener)==null||h.call(f,v.slice(2).toLowerCase(),m))}),c=Q([r,a,i,l],v=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,m)=>{Po(v[m])?d.removeAttribute(h):d.setAttribute(h,v[m])})},{immediate:!0})),Bn(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(v=>f.removeAttribute(v))},{immediate:!0})}),it(()=>{c==null||c(),c=void 0}),t({triggerRef:s}),(d,f)=>d.virtualTriggering?O("v-if",!0):(g(),H(u(Iw),ft({key:0},d.$attrs,{"aria-controls":u(r),"aria-describedby":u(a),"aria-expanded":u(l),"aria-haspopup":u(i)}),{default:C(()=>[A(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Aw=we(xw,[["__file","trigger.vue"]]);const Ys="focus-trap.focus-after-trapped",Xs="focus-trap.focus-after-released",Lw="focus-trap.focusout-prevented",dl={cancelable:!0,bubbles:!1},Ow={cancelable:!0,bubbles:!1},fl="focusAfterTrapped",pl="focusAfterReleased",zw=Symbol("elFocusTrap"),Ia=I(),Bs=I(0),Pa=I(0);let jo=0;const ed=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const s=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||s?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},vl=(e,t)=>{for(const n of e)if(!Bw(n,t))return n},Bw=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Nw=e=>{const t=ed(e),n=vl(t,e),o=vl(t.reverse(),e);return[n,o]},Vw=e=>e instanceof HTMLInputElement&&"select"in e,vn=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),Pa.value=window.performance.now(),e!==n&&Vw(e)&&t&&e.select()}};function hl(e,t){const n=[...e],o=e.indexOf(t);return o!==-1&&n.splice(o,1),n}const Fw=()=>{let e=[];return{push:o=>{const s=e[0];s&&o!==s&&s.pause(),e=hl(e,o),e.unshift(o)},remove:o=>{var s,r;e=hl(e,o),(r=(s=e[0])==null?void 0:s.resume)==null||r.call(s)}}},Rw=(e,t=!1)=>{const n=document.activeElement;for(const o of e)if(vn(o,t),document.activeElement!==n)return},ml=Fw(),Dw=()=>Bs.value>Pa.value,Wo=()=>{Ia.value="pointer",Bs.value=window.performance.now()},gl=()=>{Ia.value="keyboard",Bs.value=window.performance.now()},Hw=()=>(me(()=>{jo===0&&(document.addEventListener("mousedown",Wo),document.addEventListener("touchstart",Wo),document.addEventListener("keydown",gl)),jo++}),it(()=>{jo--,jo<=0&&(document.removeEventListener("mousedown",Wo),document.removeEventListener("touchstart",Wo),document.removeEventListener("keydown",gl))}),{focusReason:Ia,lastUserFocusTimestamp:Bs,lastAutomatedFocusTimestamp:Pa}),Go=e=>new CustomEvent(Lw,{...Ow,detail:e}),jw=L({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[fl,pl,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=I();let o,s;const{focusReason:r}=Hw();$6(m=>{e.trapped&&!a.paused&&t("release-requested",m)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=m=>{if(!e.loop&&!e.trapped||a.paused)return;const{key:p,altKey:b,ctrlKey:y,metaKey:$,currentTarget:S,shiftKey:T}=m,{loop:M}=e,x=p===gt.tab&&!b&&!y&&!$,P=document.activeElement;if(x&&P){const E=S,[j,z]=Nw(E);if(j&&z){if(!T&&P===z){const V=Go({focusReason:r.value});t("focusout-prevented",V),V.defaultPrevented||(m.preventDefault(),M&&vn(j,!0))}else if(T&&[j,E].includes(P)){const V=Go({focusReason:r.value});t("focusout-prevented",V),V.defaultPrevented||(m.preventDefault(),M&&vn(z,!0))}}else if(P===E){const V=Go({focusReason:r.value});t("focusout-prevented",V),V.defaultPrevented||m.preventDefault()}}};Ne(zw,{focusTrapRef:n,onKeydown:i}),Q(()=>e.focusTrapEl,m=>{m&&(n.value=m)},{immediate:!0}),Q([n],([m],[p])=>{m&&(m.addEventListener("keydown",i),m.addEventListener("focusin",d),m.addEventListener("focusout",f)),p&&(p.removeEventListener("keydown",i),p.removeEventListener("focusin",d),p.removeEventListener("focusout",f))});const l=m=>{t(fl,m)},c=m=>t(pl,m),d=m=>{const p=u(n);if(!p)return;const b=m.target,y=m.relatedTarget,$=b&&p.contains(b);e.trapped||y&&p.contains(y)||(o=y),$&&t("focusin",m),!a.paused&&e.trapped&&($?s=b:vn(s,!0))},f=m=>{const p=u(n);if(!(a.paused||!p))if(e.trapped){const b=m.relatedTarget;!Po(b)&&!p.contains(b)&&setTimeout(()=>{if(!a.paused&&e.trapped){const y=Go({focusReason:r.value});t("focusout-prevented",y),y.defaultPrevented||vn(s,!0)}},0)}else{const b=m.target;b&&p.contains(b)||t("focusout",m)}};async function v(){await _e();const m=u(n);if(m){ml.push(a);const p=m.contains(document.activeElement)?o:document.activeElement;if(o=p,!m.contains(p)){const y=new Event(Ys,dl);m.addEventListener(Ys,l),m.dispatchEvent(y),y.defaultPrevented||_e(()=>{let $=e.focusStartEl;_t($)||(vn($),document.activeElement!==$&&($="first")),$==="first"&&Rw(ed(m),!0),(document.activeElement===p||$==="container")&&vn(m)})}}}function h(){const m=u(n);if(m){m.removeEventListener(Ys,l);const p=new CustomEvent(Xs,{...dl,detail:{focusReason:r.value}});m.addEventListener(Xs,c),m.dispatchEvent(p),!p.defaultPrevented&&(r.value=="keyboard"||!Dw()||m.contains(document.activeElement))&&vn(o??document.body),m.removeEventListener(Xs,c),ml.remove(a)}}return me(()=>{e.trapped&&v(),Q(()=>e.trapped,m=>{m?v():h()})}),it(()=>{e.trapped&&h()}),{onKeydown:i}}});function Ww(e,t,n,o,s,r){return A(e.$slots,"default",{handleKeydown:e.onKeydown})}var Gw=we(jw,[["render",Ww],["__file","focus-trap.vue"]]);const Uw=["fixed","absolute"],qw=ke({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:de(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:As,default:"bottom"},popperOptions:{type:de(Object),default:()=>({})},strategy:{type:String,values:Uw,default:"absolute"}}),td=ke({...qw,id:String,style:{type:de([String,Array,Object])},className:{type:de([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:de([String,Array,Object])},popperStyle:{type:de([String,Array,Object])},referenceEl:{type:de(Object)},triggerTargetEl:{type:de(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),Kw={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Yw=(e,t=[])=>{const{placement:n,strategy:o,popperOptions:s}=e,r={placement:n,strategy:o,...s,modifiers:[...Qw(e),...t]};return Zw(r,s==null?void 0:s.modifiers),r},Xw=e=>{if(Ce)return ot(e)};function Qw(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:o}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:o}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function Zw(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const Jw=0,e5=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:o,role:s}=fe(Ea,void 0),r=I(),a=I(),i=w(()=>({name:"eventListeners",enabled:!!e.visible})),l=w(()=>{var y;const $=u(r),S=(y=u(a))!=null?y:Jw;return{name:"arrow",enabled:!i8($),options:{element:$,padding:S}}}),c=w(()=>({onFirstUpdate:()=>{m()},...Yw(e,[u(l),u(i)])})),d=w(()=>Xw(e.referenceEl)||u(o)),{attributes:f,state:v,styles:h,update:m,forceUpdate:p,instanceRef:b}=w6(d,n,c);return Q(b,y=>t.value=y),me(()=>{Q(()=>{var y;return(y=u(d))==null?void 0:y.getBoundingClientRect()},()=>{m()})}),{attributes:f,arrowRef:r,contentRef:n,instanceRef:b,state:v,styles:h,role:s,forceUpdate:p,update:m}},t5=(e,{attributes:t,styles:n,role:o})=>{const{nextZIndex:s}=wa(),r=Se("popper"),a=w(()=>u(t).popper),i=I(Te(e.zIndex)?e.zIndex:s()),l=w(()=>[r.b(),r.is("pure",e.pure),r.is(e.effect),e.popperClass]),c=w(()=>[{zIndex:u(i)},u(n).popper,e.popperStyle||{}]),d=w(()=>o.value==="dialog"?"false":void 0),f=w(()=>u(n).arrow||{});return{ariaModal:d,arrowStyle:f,contentAttrs:a,contentClass:l,contentStyle:c,contentZIndex:i,updateZIndex:()=>{i.value=Te(e.zIndex)?e.zIndex:s()}}},n5=(e,t)=>{const n=I(!1),o=I();return{focusStartRef:o,trapped:n,onFocusAfterReleased:c=>{var d;((d=c.detail)==null?void 0:d.focusReason)!=="pointer"&&(o.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:c=>{e.visible&&!n.value&&(c.target&&(o.value=c.target),n.value=!0)},onFocusoutPrevented:c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},o5=L({name:"ElPopperContent"}),s5=L({...o5,props:td,emits:Kw,setup(e,{expose:t,emit:n}){const o=e,{focusStartRef:s,trapped:r,onFocusAfterReleased:a,onFocusAfterTrapped:i,onFocusInTrap:l,onFocusoutPrevented:c,onReleaseRequested:d}=n5(o,n),{attributes:f,arrowRef:v,contentRef:h,styles:m,instanceRef:p,role:b,update:y}=e5(o),{ariaModal:$,arrowStyle:S,contentAttrs:T,contentClass:M,contentStyle:x,updateZIndex:P}=t5(o,{styles:m,attributes:f,role:b}),E=fe(ms,void 0),j=I();Ne(Yu,{arrowStyle:S,arrowRef:v,arrowOffset:j}),E&&(E.addInputId||E.removeInputId)&&Ne(ms,{...E,addInputId:_o,removeInputId:_o});let z;const F=(U=!0)=>{y(),U&&P()},V=()=>{F(!1),o.visible&&o.focusOnShow?r.value=!0:o.visible===!1&&(r.value=!1)};return me(()=>{Q(()=>o.triggerTargetEl,(U,Z)=>{z==null||z(),z=void 0;const te=u(U||h.value),oe=u(Z||h.value);Bn(te)&&(z=Q([b,()=>o.ariaLabel,$,()=>o.id],W=>{["role","aria-label","aria-modal","id"].forEach((q,Y)=>{Po(W[Y])?te.removeAttribute(q):te.setAttribute(q,W[Y])})},{immediate:!0})),oe!==te&&Bn(oe)&&["role","aria-label","aria-modal","id"].forEach(W=>{oe.removeAttribute(W)})},{immediate:!0}),Q(()=>o.visible,V,{immediate:!0})}),it(()=>{z==null||z(),z=void 0}),t({popperContentRef:h,popperInstanceRef:p,updatePopper:F,contentStyle:x}),(U,Z)=>(g(),k("div",ft({ref_key:"contentRef",ref:h},u(T),{style:u(x),class:u(M),tabindex:"-1",onMouseenter:Z[0]||(Z[0]=te=>U.$emit("mouseenter",te)),onMouseleave:Z[1]||(Z[1]=te=>U.$emit("mouseleave",te))}),[B(u(Gw),{trapped:u(r),"trap-on-focus-in":!0,"focus-trap-el":u(h),"focus-start-el":u(s),onFocusAfterTrapped:u(i),onFocusAfterReleased:u(a),onFocusin:u(l),onFocusoutPrevented:u(c),onReleaseRequested:u(d)},{default:C(()=>[A(U.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var r5=we(s5,[["__file","content.vue"]]);const a5=Ze($w),xa=Symbol("elTooltip"),Aa=ke({...M6,...td,appendTo:{type:de([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:de(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),nd=ke({...Ju,disabled:Boolean,trigger:{type:de([String,Array]),default:"hover"},triggerKeys:{type:de(Array),default:()=>[gt.enter,gt.space]}}),{useModelToggleProps:i5,useModelToggleEmits:l5,useModelToggle:c5}=Cu("visible"),u5=ke({...Xu,...i5,...Aa,...nd,...Qu,showArrow:{type:Boolean,default:!0}}),d5=[...l5,"before-show","before-hide","show","hide","open","close"],f5=(e,t)=>tt(e)?e.includes(t):e===t,jn=(e,t,n)=>o=>{f5(u(e),t)&&n(o)},p5=L({name:"ElTooltipTrigger"}),v5=L({...p5,props:nd,setup(e,{expose:t}){const n=e,o=Se("tooltip"),{controlled:s,id:r,open:a,onOpen:i,onClose:l,onToggle:c}=fe(xa,void 0),d=I(null),f=()=>{if(u(s)||n.disabled)return!0},v=dt(n,"trigger"),h=Zt(f,jn(v,"hover",i)),m=Zt(f,jn(v,"hover",l)),p=Zt(f,jn(v,"click",T=>{T.button===0&&c(T)})),b=Zt(f,jn(v,"focus",i)),y=Zt(f,jn(v,"focus",l)),$=Zt(f,jn(v,"contextmenu",T=>{T.preventDefault(),c(T)})),S=Zt(f,T=>{const{code:M}=T;n.triggerKeys.includes(M)&&(T.preventDefault(),c(T))});return t({triggerRef:d}),(T,M)=>(g(),H(u(Aw),{id:u(r),"virtual-ref":T.virtualRef,open:u(a),"virtual-triggering":T.virtualTriggering,class:N(u(o).e("trigger")),onBlur:u(y),onClick:u(p),onContextmenu:u($),onFocus:u(b),onMouseenter:u(h),onMouseleave:u(m),onKeydown:u(S)},{default:C(()=>[A(T.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var h5=we(v5,[["__file","trigger.vue"]]);const m5=L({name:"ElTooltipContent",inheritAttrs:!1}),g5=L({...m5,props:Aa,setup(e,{expose:t}){const n=e,{selector:o}=Ru(),s=Se("tooltip"),r=I(null),a=I(!1),{controlled:i,id:l,open:c,trigger:d,onClose:f,onOpen:v,onShow:h,onHide:m,onBeforeShow:p,onBeforeHide:b}=fe(xa,void 0),y=w(()=>n.transition||`${s.namespace.value}-fade-in-linear`),$=w(()=>n.persistent);it(()=>{a.value=!0});const S=w(()=>u($)?!0:u(c)),T=w(()=>n.disabled?!1:u(c)),M=w(()=>n.appendTo||o.value),x=w(()=>{var W;return(W=n.style)!=null?W:{}}),P=w(()=>!u(c)),E=()=>{m()},j=()=>{if(u(i))return!0},z=Zt(j,()=>{n.enterable&&u(d)==="hover"&&v()}),F=Zt(j,()=>{u(d)==="hover"&&f()}),V=()=>{var W,q;(q=(W=r.value)==null?void 0:W.updatePopper)==null||q.call(W),p==null||p()},U=()=>{b==null||b()},Z=()=>{h(),oe=q1(w(()=>{var W;return(W=r.value)==null?void 0:W.popperContentRef}),()=>{if(u(i))return;u(d)!=="hover"&&f()})},te=()=>{n.virtualTriggering||f()};let oe;return Q(()=>u(c),W=>{W||oe==null||oe()},{flush:"post"}),Q(()=>n.content,()=>{var W,q;(q=(W=r.value)==null?void 0:W.updatePopper)==null||q.call(W)}),t({contentRef:r}),(W,q)=>(g(),H(jr,{disabled:!W.teleported,to:u(M)},[B(at,{name:u(y),onAfterLeave:E,onBeforeEnter:V,onAfterEnter:Z,onBeforeLeave:U},{default:C(()=>[u(S)?ge((g(),H(u(r5),ft({key:0,id:u(l),ref_key:"contentRef",ref:r},W.$attrs,{"aria-label":W.ariaLabel,"aria-hidden":u(P),"boundaries-padding":W.boundariesPadding,"fallback-placements":W.fallbackPlacements,"gpu-acceleration":W.gpuAcceleration,offset:W.offset,placement:W.placement,"popper-options":W.popperOptions,strategy:W.strategy,effect:W.effect,enterable:W.enterable,pure:W.pure,"popper-class":W.popperClass,"popper-style":[W.popperStyle,u(x)],"reference-el":W.referenceEl,"trigger-target-el":W.triggerTargetEl,visible:u(T),"z-index":W.zIndex,onMouseenter:u(z),onMouseleave:u(F),onBlur:te,onClose:u(f)}),{default:C(()=>[a.value?O("v-if",!0):A(W.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[Ie,u(T)]]):O("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var y5=we(g5,[["__file","content.vue"]]);const b5=["innerHTML"],_5={key:1},w5=L({name:"ElTooltip"}),S5=L({...w5,props:u5,emits:d5,setup(e,{expose:t,emit:n}){const o=e;C6();const s=Os(),r=I(),a=I(),i=()=>{var y;const $=u(r);$&&((y=$.popperInstanceRef)==null||y.update())},l=I(!1),c=I(),{show:d,hide:f,hasUpdateHandler:v}=c5({indicator:l,toggleReason:c}),{onOpen:h,onClose:m}=E6({showAfter:dt(o,"showAfter"),hideAfter:dt(o,"hideAfter"),autoClose:dt(o,"autoClose"),open:d,close:f}),p=w(()=>pu(o.visible)&&!v.value);Ne(xa,{controlled:p,id:s,open:_s(l),trigger:dt(o,"trigger"),onOpen:y=>{h(y)},onClose:y=>{m(y)},onToggle:y=>{u(l)?m(y):h(y)},onShow:()=>{n("show",c.value)},onHide:()=>{n("hide",c.value)},onBeforeShow:()=>{n("before-show",c.value)},onBeforeHide:()=>{n("before-hide",c.value)},updatePopper:i}),Q(()=>o.disabled,y=>{y&&l.value&&(l.value=!1)});const b=y=>{var $,S;const T=(S=($=a.value)==null?void 0:$.contentRef)==null?void 0:S.popperContentRef,M=(y==null?void 0:y.relatedTarget)||document.activeElement;return T&&T.contains(M)};return of(()=>l.value&&f()),t({popperRef:r,contentRef:a,isFocusInsideContent:b,updatePopper:i,onOpen:h,onClose:m,hide:f}),(y,$)=>(g(),H(u(a5),{ref_key:"popperRef",ref:r,role:y.role},{default:C(()=>[B(h5,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:C(()=>[y.$slots.default?A(y.$slots,"default",{key:0}):O("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),B(y5,{ref_key:"contentRef",ref:a,"aria-label":y.ariaLabel,"boundaries-padding":y.boundariesPadding,content:y.content,disabled:y.disabled,effect:y.effect,enterable:y.enterable,"fallback-placements":y.fallbackPlacements,"hide-after":y.hideAfter,"gpu-acceleration":y.gpuAcceleration,offset:y.offset,persistent:y.persistent,"popper-class":y.popperClass,"popper-style":y.popperStyle,placement:y.placement,"popper-options":y.popperOptions,pure:y.pure,"raw-content":y.rawContent,"reference-el":y.referenceEl,"trigger-target-el":y.triggerTargetEl,"show-after":y.showAfter,strategy:y.strategy,teleported:y.teleported,transition:y.transition,"virtual-triggering":y.virtualTriggering,"z-index":y.zIndex,"append-to":y.appendTo},{default:C(()=>[A(y.$slots,"content",{},()=>[y.rawContent?(g(),k("span",{key:0,innerHTML:y.content},null,8,b5)):(g(),k("span",_5,D(y.content),1))]),y.showArrow?(g(),H(u(Mw),{key:0,"arrow-offset":y.arrowOffset},null,8,["arrow-offset"])):O("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var k5=we(S5,[["__file","tooltip.vue"]]);const $5=Ze(k5),T5=ke({size:{type:[Number,String],values:xo,default:"",validator:e=>Te(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:kt},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:de(String),default:"cover"}}),C5={error:e=>e instanceof Event},M5=["src","alt","srcset"],E5=L({name:"ElAvatar"}),I5=L({...E5,props:T5,emits:C5,setup(e,{emit:t}){const n=e,o=Se("avatar"),s=I(!1),r=w(()=>{const{size:c,icon:d,shape:f}=n,v=[o.b()];return _t(c)&&v.push(o.m(c)),d&&v.push(o.m("icon")),f&&v.push(o.m(f)),v}),a=w(()=>{const{size:c}=n;return Te(c)?o.cssVarBlock({size:ds(c)||""}):void 0}),i=w(()=>({objectFit:n.fit}));Q(()=>n.src,()=>s.value=!1);function l(c){s.value=!0,t("error",c)}return(c,d)=>(g(),k("span",{class:N(u(r)),style:Oe(u(a))},[(c.src||c.srcSet)&&!s.value?(g(),k("img",{key:0,src:c.src,alt:c.alt,srcset:c.srcSet,style:Oe(u(i)),onError:l},null,44,M5)):c.icon?(g(),H(u(pe),{key:1},{default:C(()=>[(g(),H(Le(c.icon)))]),_:1})):A(c.$slots,"default",{key:2})],6))}});var P5=we(I5,[["__file","avatar.vue"]]);const x5=Ze(P5),A5=ke({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0}}),L5=["textContent"],O5=L({name:"ElBadge"}),z5=L({...O5,props:A5,setup(e,{expose:t}){const n=e,o=Se("badge"),s=w(()=>n.isDot?"":Te(n.value)&&Te(n.max)?n.max(g(),k("div",{class:N(u(o).b())},[A(r.$slots,"default"),B(at,{name:`${u(o).namespace.value}-zoom-in-center`,persisted:""},{default:C(()=>[ge(_("sup",{class:N([u(o).e("content"),u(o).em("content",r.type),u(o).is("fixed",!!r.$slots.default),u(o).is("dot",r.isDot)]),textContent:D(u(s))},null,10,L5),[[Ie,!r.hidden&&(u(s)||r.isDot)]])]),_:1},8,["name"])],2))}});var B5=we(z5,[["__file","badge.vue"]]);const N5=Ze(B5),od=Symbol("buttonGroupContextKey"),V5=(e,t)=>{d_({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},w(()=>e.type==="text"));const n=fe(od,void 0),o=ka("button"),{form:s}=Ca(),r=zs(w(()=>n==null?void 0:n.size)),a=Ta(),i=I(),l=Co(),c=w(()=>e.type||(n==null?void 0:n.type)||""),d=w(()=>{var m,p,b;return(b=(p=e.autoInsertSpace)!=null?p:(m=o.value)==null?void 0:m.autoInsertSpace)!=null?b:!1}),f=w(()=>e.tag==="button"?{ariaDisabled:a.value||e.loading,disabled:a.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),v=w(()=>{var m;const p=(m=l.default)==null?void 0:m.call(l);if(d.value&&(p==null?void 0:p.length)===1){const b=p[0];if((b==null?void 0:b.type)===Xl){const y=b.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(y.trim())}}return!1});return{_disabled:a,_size:r,_type:c,_ref:i,_props:f,shouldAddSpace:v,handleClick:m=>{e.nativeType==="reset"&&(s==null||s.resetFields()),t("click",m)}}},F5=["default","primary","success","warning","info","danger","text",""],R5=["button","submit","reset"],Nr=ke({size:Sa,disabled:Boolean,type:{type:String,values:F5,default:""},icon:{type:kt},nativeType:{type:String,values:R5,default:"button"},loading:Boolean,loadingIcon:{type:kt,default:()=>hu},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:de([String,Object]),default:"button"}}),D5={click:e=>e instanceof MouseEvent};function Ge(e,t){H5(e)&&(e="100%");var n=j5(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Uo(e){return Math.min(1,Math.max(0,e))}function H5(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function j5(e){return typeof e=="string"&&e.indexOf("%")!==-1}function sd(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function qo(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Pn(e){return e.length===1?"0"+e:String(e)}function W5(e,t,n){return{r:Ge(e,255)*255,g:Ge(t,255)*255,b:Ge(n,255)*255}}function yl(e,t,n){e=Ge(e,255),t=Ge(t,255),n=Ge(n,255);var o=Math.max(e,t,n),s=Math.min(e,t,n),r=0,a=0,i=(o+s)/2;if(o===s)a=0,r=0;else{var l=o-s;switch(a=i>.5?l/(2-o-s):l/(o+s),o){case e:r=(t-n)/l+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function G5(e,t,n){var o,s,r;if(e=Ge(e,360),t=Ge(t,100),n=Ge(n,100),t===0)s=n,r=n,o=n;else{var a=n<.5?n*(1+t):n+t-n*t,i=2*n-a;o=Qs(i,a,e+1/3),s=Qs(i,a,e),r=Qs(i,a,e-1/3)}return{r:o*255,g:s*255,b:r*255}}function bl(e,t,n){e=Ge(e,255),t=Ge(t,255),n=Ge(n,255);var o=Math.max(e,t,n),s=Math.min(e,t,n),r=0,a=o,i=o-s,l=o===0?0:i/o;if(o===s)r=0;else{switch(o){case e:r=(t-n)/i+(t>16,g:(e&65280)>>8,b:e&255}}var Vr={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function X5(e){var t={r:0,g:0,b:0},n=1,o=null,s=null,r=null,a=!1,i=!1;return typeof e=="string"&&(e=J5(e)),typeof e=="object"&&(Qt(e.r)&&Qt(e.g)&&Qt(e.b)?(t=W5(e.r,e.g,e.b),a=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Qt(e.h)&&Qt(e.s)&&Qt(e.v)?(o=qo(e.s),s=qo(e.v),t=U5(e.h,o,s),a=!0,i="hsv"):Qt(e.h)&&Qt(e.s)&&Qt(e.l)&&(o=qo(e.s),r=qo(e.l),t=G5(e.h,o,r),a=!0,i="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=sd(n),{ok:a,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Q5="[-\\+]?\\d+%?",Z5="[-\\+]?\\d*\\.\\d+%?",mn="(?:".concat(Z5,")|(?:").concat(Q5,")"),Zs="[\\s|\\(]+(".concat(mn,")[,|\\s]+(").concat(mn,")[,|\\s]+(").concat(mn,")\\s*\\)?"),Js="[\\s|\\(]+(".concat(mn,")[,|\\s]+(").concat(mn,")[,|\\s]+(").concat(mn,")[,|\\s]+(").concat(mn,")\\s*\\)?"),xt={CSS_UNIT:new RegExp(mn),rgb:new RegExp("rgb"+Zs),rgba:new RegExp("rgba"+Js),hsl:new RegExp("hsl"+Zs),hsla:new RegExp("hsla"+Js),hsv:new RegExp("hsv"+Zs),hsva:new RegExp("hsva"+Js),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function J5(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Vr[e])e=Vr[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=xt.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=xt.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=xt.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=xt.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=xt.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=xt.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=xt.hex8.exec(e),n?{r:lt(n[1]),g:lt(n[2]),b:lt(n[3]),a:wl(n[4]),format:t?"name":"hex8"}:(n=xt.hex6.exec(e),n?{r:lt(n[1]),g:lt(n[2]),b:lt(n[3]),format:t?"name":"hex"}:(n=xt.hex4.exec(e),n?{r:lt(n[1]+n[1]),g:lt(n[2]+n[2]),b:lt(n[3]+n[3]),a:wl(n[4]+n[4]),format:t?"name":"hex8"}:(n=xt.hex3.exec(e),n?{r:lt(n[1]+n[1]),g:lt(n[2]+n[2]),b:lt(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Qt(e){return!!xt.CSS_UNIT.exec(String(e))}var e9=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var o;if(t instanceof e)return t;typeof t=="number"&&(t=Y5(t)),this.originalInput=t;var s=X5(t);this.originalInput=t,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=n.format)!==null&&o!==void 0?o:s.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=s.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,o,s,r=t.r/255,a=t.g/255,i=t.b/255;return r<=.03928?n=r/12.92:n=Math.pow((r+.055)/1.055,2.4),a<=.03928?o=a/12.92:o=Math.pow((a+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*n+.7152*o+.0722*s},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=sd(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=bl(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=bl(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),s=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(o,"%, ").concat(s,"%)"):"hsva(".concat(n,", ").concat(o,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=yl(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=yl(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),s=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(o,"%, ").concat(s,"%)"):"hsla(".concat(n,", ").concat(o,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),_l(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),q5(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(o,")"):"rgba(".concat(t,", ").concat(n,", ").concat(o,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Ge(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Ge(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+_l(this.r,this.g,this.b,!1),n=0,o=Object.entries(Vr);n=0,r=!n&&s&&(t.startsWith("hex")||t==="name");return r?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(o=this.toRgbString()),t==="prgb"&&(o=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(o=this.toHexString()),t==="hex3"&&(o=this.toHexString(!0)),t==="hex4"&&(o=this.toHex8String(!0)),t==="hex8"&&(o=this.toHex8String()),t==="name"&&(o=this.toName()),t==="hsl"&&(o=this.toHslString()),t==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Uo(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Uo(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Uo(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Uo(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var o=this.toRgb(),s=new e(t).toRgb(),r=n/100,a={r:(s.r-o.r)*r+o.r,g:(s.g-o.g)*r+o.g,b:(s.b-o.b)*r+o.b,a:(s.a-o.a)*r+o.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var o=this.toHsl(),s=360/n,r=[this];for(o.h=(o.h-(s*t>>1)+720)%360;--t;)o.h=(o.h+s)%360,r.push(new e(o));return r},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),o=n.h,s=n.s,r=n.v,a=[],i=1/t;t--;)a.push(new e({h:o,s,v:r})),r=(r+i)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),s=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/s,g:(n.g*n.a+o.g*o.a*(1-n.a))/s,b:(n.b*n.a+o.b*o.a*(1-n.a))/s,a:s})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,s=[this],r=360/t,a=1;a{let o={};const s=e.color;if(s){const r=new e9(s),a=e.dark?r.tint(20).toString():pn(r,20);if(e.plain)o=n.cssVarBlock({"bg-color":e.dark?pn(r,90):r.tint(90).toString(),"text-color":s,"border-color":e.dark?pn(r,50):r.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":s,"hover-border-color":s,"active-bg-color":a,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":a}),t.value&&(o[n.cssVarBlockName("disabled-bg-color")]=e.dark?pn(r,90):r.tint(90).toString(),o[n.cssVarBlockName("disabled-text-color")]=e.dark?pn(r,50):r.tint(50).toString(),o[n.cssVarBlockName("disabled-border-color")]=e.dark?pn(r,80):r.tint(80).toString());else{const i=e.dark?pn(r,30):r.tint(30).toString(),l=r.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(o=n.cssVarBlock({"bg-color":s,"text-color":l,"border-color":s,"hover-bg-color":i,"hover-text-color":l,"hover-border-color":i,"active-bg-color":a,"active-border-color":a}),t.value){const c=e.dark?pn(r,50):r.tint(50).toString();o[n.cssVarBlockName("disabled-bg-color")]=c,o[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,o[n.cssVarBlockName("disabled-border-color")]=c}}}return o})}const n9=L({name:"ElButton"}),o9=L({...n9,props:Nr,emits:D5,setup(e,{expose:t,emit:n}){const o=e,s=t9(o),r=Se("button"),{_ref:a,_size:i,_type:l,_disabled:c,_props:d,shouldAddSpace:f,handleClick:v}=V5(o,n);return t({ref:a,size:i,type:l,disabled:c,shouldAddSpace:f}),(h,m)=>(g(),H(Le(h.tag),ft({ref_key:"_ref",ref:a},u(d),{class:[u(r).b(),u(r).m(u(l)),u(r).m(u(i)),u(r).is("disabled",u(c)),u(r).is("loading",h.loading),u(r).is("plain",h.plain),u(r).is("round",h.round),u(r).is("circle",h.circle),u(r).is("text",h.text),u(r).is("link",h.link),u(r).is("has-bg",h.bg)],style:u(s),onClick:u(v)}),{default:C(()=>[h.loading?(g(),k(se,{key:0},[h.$slots.loading?A(h.$slots,"loading",{key:0}):(g(),H(u(pe),{key:1,class:N(u(r).is("loading"))},{default:C(()=>[(g(),H(Le(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?(g(),H(u(pe),{key:1},{default:C(()=>[h.icon?(g(),H(Le(h.icon),{key:0})):A(h.$slots,"icon",{key:1})]),_:3})):O("v-if",!0),h.$slots.default?(g(),k("span",{key:2,class:N({[u(r).em("text","expand")]:u(f)})},[A(h.$slots,"default")],2)):O("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var s9=we(o9,[["__file","button.vue"]]);const r9={size:Nr.size,type:Nr.type},a9=L({name:"ElButtonGroup"}),i9=L({...a9,props:r9,setup(e){const t=e;Ne(od,De({size:dt(t,"size"),type:dt(t,"type")}));const n=Se("button");return(o,s)=>(g(),k("div",{class:N(`${u(n).b("group")}`)},[A(o.$slots,"default")],2))}});var rd=we(i9,[["__file","button-group.vue"]]);const Ns=Ze(s9,{ButtonGroup:rd});xs(rd);function l9(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const hn=new Map;let Sl;Ce&&(document.addEventListener("mousedown",e=>Sl=e),document.addEventListener("mouseup",e=>{for(const t of hn.values())for(const{documentHandler:n}of t)n(e,Sl)}));function kl(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Bn(t.arg)&&n.push(t.arg),function(o,s){const r=t.instance.popperRef,a=o.target,i=s==null?void 0:s.target,l=!t||!t.instance,c=!a||!i,d=e.contains(a)||e.contains(i),f=e===a,v=n.length&&n.some(m=>m==null?void 0:m.contains(a))||n.length&&n.includes(i),h=r&&(r.contains(a)||r.contains(i));l||c||d||f||v||h||t.value(o,s)}}const c9={beforeMount(e,t){hn.has(e)||hn.set(e,[]),hn.get(e).push({documentHandler:kl(e,t),bindingFn:t.value})},updated(e,t){hn.has(e)||hn.set(e,[]);const n=hn.get(e),o=n.findIndex(r=>r.bindingFn===t.oldValue),s={documentHandler:kl(e,t),bindingFn:t.value};o>=0?n.splice(o,1,s):n.push(s)},unmounted(e){hn.delete(e)}},u9=ke({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:{type:Boolean,default:!1}}),d9={change:(e,t)=>[e,t].every(Te)},ad=Symbol("carouselContextKey"),$l=300,f9=(e,t,n)=>{const{children:o,addChild:s,removeChild:r}=L6(Ye(),"ElCarouselItem"),a=Co(),i=I(-1),l=I(null),c=I(!1),d=I(),f=I(0),v=I(!0),h=I(!0),m=I(!1),p=w(()=>e.arrow!=="never"&&!u($)),b=w(()=>o.value.some(X=>X.props.label.toString().length>0)),y=w(()=>e.type==="card"),$=w(()=>e.direction==="vertical"),S=w(()=>e.height!=="auto"?{height:e.height}:{height:`${f.value}px`,overflow:"hidden"}),T=ho(X=>{z(X)},$l,{trailing:!0}),M=ho(X=>{Y(X)},$l),x=X=>v.value?i.value<=1?X<=1:X>1:!0;function P(){l.value&&(clearInterval(l.value),l.value=null)}function E(){e.interval<=0||!e.autoplay||l.value||(l.value=setInterval(()=>j(),e.interval))}const j=()=>{h.value||(m.value=!0),h.value=!1,i.valueUe.props.name===X);Je.length>0&&(X=o.value.indexOf(Je[0]))}if(X=Number(X),Number.isNaN(X)||X!==Math.floor(X))return;const le=o.value.length,$e=i.value;X<0?i.value=e.loop?le-1:0:X>=le?i.value=e.loop?0:le-1:i.value=X,$e===i.value&&F($e),ce()}function F(X){o.value.forEach((le,$e)=>{le.translateItem($e,i.value,X)})}function V(X,le){var $e,Je,Ue,We;const qe=u(o),Mt=qe.length;if(Mt===0||!X.states.inStage)return!1;const Et=le+1,Ut=le-1,Nt=Mt-1,un=qe[Nt].states.active,qt=qe[0].states.active,kn=(Je=($e=qe[Et])==null?void 0:$e.states)==null?void 0:Je.active,Xe=(We=(Ue=qe[Ut])==null?void 0:Ue.states)==null?void 0:We.active;return le===Nt&&qt||kn?"left":le===0&&un||Xe?"right":!1}function U(){c.value=!0,e.pauseOnHover&&P()}function Z(){c.value=!1,E()}function te(){m.value=!1}function oe(X){u($)||o.value.forEach((le,$e)=>{X===V(le,$e)&&(le.states.hover=!0)})}function W(){u($)||o.value.forEach(X=>{X.states.hover=!1})}function q(X){X!==i.value&&(h.value||(m.value=!0)),i.value=X}function Y(X){e.trigger==="hover"&&X!==i.value&&(i.value=X,h.value||(m.value=!0))}function J(){z(i.value-1)}function ae(){z(i.value+1)}function ce(){P(),e.pauseOnHover||E()}function G(X){e.height==="auto"&&(f.value=X)}function ie(){var X;const le=(X=a.default)==null?void 0:X.call(a);if(!le)return null;const $e=mo(le),Je="ElCarouselItem",Ue=$e.filter(We=>qn(We)&&We.type.name===Je);return(Ue==null?void 0:Ue.length)===2&&e.loop&&!y.value?(v.value=!0,Ue):(v.value=!1,null)}Q(()=>i.value,(X,le)=>{F(le),v.value&&(X=X%2,le=le%2),le>-1&&t("change",X,le)}),Q(()=>e.autoplay,X=>{X?E():P()}),Q(()=>e.loop,()=>{z(i.value)}),Q(()=>e.interval,()=>{ce()});const re=Ot();return me(()=>{Q(()=>o.value,()=>{o.value.length>0&&z(e.initialIndex)},{immediate:!0}),re.value=mt(d.value,()=>{F()}),E()}),it(()=>{P(),d.value&&re.value&&re.value.stop()}),Ne(ad,{root:d,isCardType:y,isVertical:$,items:o,loop:e.loop,addItem:s,removeItem:r,setActiveItem:z,setContainerHeight:G}),{root:d,activeIndex:i,arrowDisplay:p,hasLabel:b,hover:c,isCardType:y,isTransitioning:m,items:o,isVertical:$,containerStyle:S,isItemsTwoLength:v,handleButtonEnter:oe,handleTransitionEnd:te,handleButtonLeave:W,handleIndicatorClick:q,handleMouseEnter:U,handleMouseLeave:Z,setActiveItem:z,prev:J,next:ae,PlaceholderItem:ie,isTwoLengthShow:x,throttledArrowClick:T,throttledIndicatorHover:M}},p9=["aria-label"],v9=["aria-label"],h9=["onMouseenter","onClick"],m9=["aria-label"],g9={key:0},y9={key:3,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},b9=_("defs",null,[_("filter",{id:"elCarouselHorizontal"},[_("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),_("filter",{id:"elCarouselVertical"},[_("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])],-1),_9=[b9],w9="ElCarousel",S9=L({name:w9}),k9=L({...S9,props:u9,emits:d9,setup(e,{expose:t,emit:n}){const o=e,{root:s,activeIndex:r,arrowDisplay:a,hasLabel:i,hover:l,isCardType:c,items:d,isVertical:f,containerStyle:v,handleButtonEnter:h,handleButtonLeave:m,isTransitioning:p,handleIndicatorClick:b,handleMouseEnter:y,handleMouseLeave:$,handleTransitionEnd:S,setActiveItem:T,prev:M,next:x,PlaceholderItem:P,isTwoLengthShow:E,throttledArrowClick:j,throttledIndicatorHover:z}=f9(o,n),F=Se("carousel"),{t:V}=Ct(),U=w(()=>{const oe=[F.b(),F.m(o.direction)];return u(c)&&oe.push(F.m("card")),oe}),Z=w(()=>{const oe=[F.e("container")];return o.motionBlur&&u(p)&&oe.push(u(f)?`${F.namespace.value}-transitioning-vertical`:`${F.namespace.value}-transitioning`),oe}),te=w(()=>{const oe=[F.e("indicators"),F.em("indicators",o.direction)];return u(i)&&oe.push(F.em("indicators","labels")),o.indicatorPosition==="outside"&&oe.push(F.em("indicators","outside")),u(f)&&oe.push(F.em("indicators","right")),oe});return t({setActiveItem:T,prev:M,next:x}),(oe,W)=>(g(),k("div",{ref_key:"root",ref:s,class:N(u(U)),onMouseenter:W[7]||(W[7]=He((...q)=>u(y)&&u(y)(...q),["stop"])),onMouseleave:W[8]||(W[8]=He((...q)=>u($)&&u($)(...q),["stop"]))},[u(a)?(g(),H(at,{key:0,name:"carousel-arrow-left",persisted:""},{default:C(()=>[ge(_("button",{type:"button",class:N([u(F).e("arrow"),u(F).em("arrow","left")]),"aria-label":u(V)("el.carousel.leftArrow"),onMouseenter:W[0]||(W[0]=q=>u(h)("left")),onMouseleave:W[1]||(W[1]=(...q)=>u(m)&&u(m)(...q)),onClick:W[2]||(W[2]=He(q=>u(j)(u(r)-1),["stop"]))},[B(u(pe),null,{default:C(()=>[B(u(la))]),_:1})],42,p9),[[Ie,(oe.arrow==="always"||u(l))&&(o.loop||u(r)>0)]])]),_:1})):O("v-if",!0),u(a)?(g(),H(at,{key:1,name:"carousel-arrow-right",persisted:""},{default:C(()=>[ge(_("button",{type:"button",class:N([u(F).e("arrow"),u(F).em("arrow","right")]),"aria-label":u(V)("el.carousel.rightArrow"),onMouseenter:W[3]||(W[3]=q=>u(h)("right")),onMouseleave:W[4]||(W[4]=(...q)=>u(m)&&u(m)(...q)),onClick:W[5]||(W[5]=He(q=>u(j)(u(r)+1),["stop"]))},[B(u(pe),null,{default:C(()=>[B(u(ca))]),_:1})],42,v9),[[Ie,(oe.arrow==="always"||u(l))&&(o.loop||u(r)u(S)&&u(S)(...q))},[B(u(P)),A(oe.$slots,"default")],38),oe.indicatorPosition!=="none"?(g(),k("ul",{key:2,class:N(u(te))},[(g(!0),k(se,null,ve(u(d),(q,Y)=>ge((g(),k("li",{key:Y,class:N([u(F).e("indicator"),u(F).em("indicator",oe.direction),u(F).is("active",Y===u(r))]),onMouseenter:J=>u(z)(Y),onClick:He(J=>u(b)(Y),["stop"])},[_("button",{class:N(u(F).e("button")),"aria-label":u(V)("el.carousel.indicator",{index:Y+1})},[u(i)?(g(),k("span",g9,D(q.props.label),1)):O("v-if",!0)],10,m9)],42,h9)),[[Ie,u(E)(Y)]])),128))],2)):O("v-if",!0),o.motionBlur?(g(),k("svg",y9,_9)):O("v-if",!0)],34))}});var $9=we(k9,[["__file","carousel.vue"]]);const T9=ke({name:{type:String,default:""},label:{type:[String,Number],default:""}}),C9=(e,t)=>{const n=fe(ad),o=Ye(),s=.83,r=I(),a=I(!1),i=I(0),l=I(1),c=I(!1),d=I(!1),f=I(!1),v=I(!1),{isCardType:h,isVertical:m}=n;function p(T,M,x){const P=x-1,E=M-1,j=M+1,z=x/2;return M===0&&T===P?-1:M===P&&T===0?x:T=z?x+1:T>j&&T-M>=z?-2:T}function b(T,M){var x,P;const E=u(m)?((x=n.root.value)==null?void 0:x.offsetHeight)||0:((P=n.root.value)==null?void 0:P.offsetWidth)||0;return f.value?E*((2-s)*(T-M)+1)/4:T{var P;const E=u(h),j=(P=n.items.value.length)!=null?P:Number.NaN,z=T===M;!E&&!ia(x)&&(v.value=z||T===x),!z&&j>2&&n.loop&&(T=p(T,M,j));const F=u(m);c.value=z,E?(f.value=Math.round(Math.abs(T-M))<=1,i.value=b(T,M),l.value=u(c)?1:s):i.value=y(T,M,F),d.value=!0,z&&r.value&&n.setContainerHeight(r.value.offsetHeight)};function S(){if(n&&u(h)){const T=n.items.value.findIndex(({uid:M})=>M===o.uid);n.setActiveItem(T)}}return me(()=>{n.addItem({props:e,states:De({hover:a,translate:i,scale:l,active:c,ready:d,inStage:f,animating:v}),uid:o.uid,translateItem:$})}),Wt(()=>{n.removeItem(o.uid)}),{carouselItemRef:r,active:c,animating:v,hover:a,inStage:f,isVertical:m,translate:i,isCardType:h,scale:l,ready:d,handleItemClick:S}},M9=L({name:"ElCarouselItem"}),E9=L({...M9,props:T9,setup(e){const t=e,n=Se("carousel"),{carouselItemRef:o,active:s,animating:r,hover:a,inStage:i,isVertical:l,translate:c,isCardType:d,scale:f,ready:v,handleItemClick:h}=C9(t),m=w(()=>[n.e("item"),n.is("active",s.value),n.is("in-stage",i.value),n.is("hover",a.value),n.is("animating",r.value),{[n.em("item","card")]:d.value,[n.em("item","card-vertical")]:d.value&&l.value}]),p=w(()=>{const y=`${`translate${u(l)?"Y":"X"}`}(${u(c)}px)`,$=`scale(${u(f)})`;return{transform:[y,$].join(" ")}});return(b,y)=>ge((g(),k("div",{ref_key:"carouselItemRef",ref:o,class:N(u(m)),style:Oe(u(p)),onClick:y[0]||(y[0]=(...$)=>u(h)&&u(h)(...$))},[u(d)?ge((g(),k("div",{key:0,class:N(u(n).e("mask"))},null,2)),[[Ie,!u(s)]]):O("v-if",!0),A(b.$slots,"default")],6)),[[Ie,u(v)]])}});var id=we(E9,[["__file","carousel-item.vue"]]);const I9=Ze($9,{CarouselItem:id}),P9=xs(id),ld=ke({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:xo},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),x9={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},A9=L({name:"ElTag"}),L9=L({...A9,props:ld,emits:x9,setup(e,{emit:t}){const n=e,o=zs(),s=Se("tag"),r=w(()=>{const{type:l,hit:c,effect:d,closable:f,round:v}=n;return[s.b(),s.is("closable",f),s.m(l||"primary"),s.m(o.value),s.m(d),s.is("hit",c),s.is("round",v)]}),a=l=>{t("close",l)},i=l=>{t("click",l)};return(l,c)=>l.disableTransitions?(g(),k("span",{key:0,class:N(u(r)),style:Oe({backgroundColor:l.color}),onClick:i},[_("span",{class:N(u(s).e("content"))},[A(l.$slots,"default")],2),l.closable?(g(),H(u(pe),{key:0,class:N(u(s).e("close")),onClick:He(a,["stop"])},{default:C(()=>[B(u(fs))]),_:1},8,["class","onClick"])):O("v-if",!0)],6)):(g(),H(at,{key:1,name:`${u(s).namespace.value}-zoom-in-center`,appear:""},{default:C(()=>[_("span",{class:N(u(r)),style:Oe({backgroundColor:l.color}),onClick:i},[_("span",{class:N(u(s).e("content"))},[A(l.$slots,"default")],2),l.closable?(g(),H(u(pe),{key:0,class:N(u(s).e("close")),onClick:He(a,["stop"])},{default:C(()=>[B(u(fs))]),_:1},8,["class","onClick"])):O("v-if",!0)],6)]),_:3},8,["name"]))}});var O9=we(L9,[["__file","tag.vue"]]);const Fr=Ze(O9),z9=ke({urlList:{type:de(Array),default:()=>ao([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:de(String)}}),B9={close:()=>!0,switch:e=>Te(e),rotate:e=>Te(e)},N9=["src","crossorigin"],V9=L({name:"ElImageViewer"}),F9=L({...V9,props:z9,emits:B9,setup(e,{expose:t,emit:n}){var o;const s=e,r={CONTAIN:{name:"contain",icon:ja(F8)},ORIGINAL:{name:"original",icon:ja(X8)}},{t:a}=Ct(),i=Se("image-viewer"),{nextZIndex:l}=wa(),c=I(),d=I([]),f=sf(),v=I(!0),h=I(s.initialIndex),m=Ot(r.CONTAIN),p=I({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),b=I((o=s.zIndex)!=null?o:l()),y=w(()=>{const{urlList:J}=s;return J.length<=1}),$=w(()=>h.value===0),S=w(()=>h.value===s.urlList.length-1),T=w(()=>s.urlList[h.value]),M=w(()=>[i.e("btn"),i.e("prev"),i.is("disabled",!s.infinite&&$.value)]),x=w(()=>[i.e("btn"),i.e("next"),i.is("disabled",!s.infinite&&S.value)]),P=w(()=>{const{scale:J,deg:ae,offsetX:ce,offsetY:G,enableTransition:ie}=p.value;let re=ce/J,X=G/J;switch(ae%360){case 90:case-270:[re,X]=[X,-re];break;case 180:case-180:[re,X]=[-re,-X];break;case 270:case-90:[re,X]=[-X,re];break}const le={transform:`scale(${J}) rotate(${ae}deg) translate(${re}px, ${X}px)`,transition:ie?"transform .3s":""};return m.value.name===r.CONTAIN.name&&(le.maxWidth=le.maxHeight="100%"),le});function E(){z(),n("close")}function j(){const J=ho(ce=>{switch(ce.code){case gt.esc:s.closeOnPressEscape&&E();break;case gt.space:te();break;case gt.left:W();break;case gt.up:Y("zoomIn");break;case gt.right:q();break;case gt.down:Y("zoomOut");break}}),ae=ho(ce=>{const G=ce.deltaY||ce.deltaX;Y(G<0?"zoomIn":"zoomOut",{zoomRate:s.zoomRate,enableTransition:!1})});f.run(()=>{Me(document,"keydown",J),Me(document,"wheel",ae)})}function z(){f.stop()}function F(){v.value=!1}function V(J){v.value=!1,J.target.alt=a("el.image.error")}function U(J){if(v.value||J.button!==0||!c.value)return;p.value.enableTransition=!1;const{offsetX:ae,offsetY:ce}=p.value,G=J.pageX,ie=J.pageY,re=ho(le=>{p.value={...p.value,offsetX:ae+le.pageX-G,offsetY:ce+le.pageY-ie}}),X=Me(document,"mousemove",re);Me(document,"mouseup",()=>{X()}),J.preventDefault()}function Z(){p.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function te(){if(v.value)return;const J=us(r),ae=Object.values(r),ce=m.value.name,ie=(ae.findIndex(re=>re.name===ce)+1)%J.length;m.value=r[J[ie]],Z()}function oe(J){const ae=s.urlList.length;h.value=(J+ae)%ae}function W(){$.value&&!s.infinite||oe(h.value-1)}function q(){S.value&&!s.infinite||oe(h.value+1)}function Y(J,ae={}){if(v.value)return;const{minScale:ce,maxScale:G}=s,{zoomRate:ie,rotateDeg:re,enableTransition:X}={zoomRate:s.zoomRate,rotateDeg:90,enableTransition:!0,...ae};switch(J){case"zoomOut":p.value.scale>ce&&(p.value.scale=Number.parseFloat((p.value.scale/ie).toFixed(3)));break;case"zoomIn":p.value.scale{_e(()=>{const J=d.value[0];J!=null&&J.complete||(v.value=!0)})}),Q(h,J=>{Z(),n("switch",J)}),me(()=>{var J,ae;j(),(ae=(J=c.value)==null?void 0:J.focus)==null||ae.call(J)}),t({setActiveItem:oe}),(J,ae)=>(g(),H(jr,{to:"body",disabled:!J.teleported},[B(at,{name:"viewer-fade",appear:""},{default:C(()=>[_("div",{ref_key:"wrapper",ref:c,tabindex:-1,class:N(u(i).e("wrapper")),style:Oe({zIndex:b.value})},[_("div",{class:N(u(i).e("mask")),onClick:ae[0]||(ae[0]=He(ce=>J.hideOnClickModal&&E(),["self"]))},null,2),O(" CLOSE "),_("span",{class:N([u(i).e("btn"),u(i).e("close")]),onClick:E},[B(u(pe),null,{default:C(()=>[B(u(fs))]),_:1})],2),O(" ARROW "),u(y)?O("v-if",!0):(g(),k(se,{key:0},[_("span",{class:N(u(M)),onClick:W},[B(u(pe),null,{default:C(()=>[B(u(la))]),_:1})],2),_("span",{class:N(u(x)),onClick:q},[B(u(pe),null,{default:C(()=>[B(u(ca))]),_:1})],2)],64)),O(" ACTIONS "),_("div",{class:N([u(i).e("btn"),u(i).e("actions")])},[_("div",{class:N(u(i).e("actions__inner"))},[B(u(pe),{onClick:ae[1]||(ae[1]=ce=>Y("zoomOut"))},{default:C(()=>[B(u(a_))]),_:1}),B(u(pe),{onClick:ae[2]||(ae[2]=ce=>Y("zoomIn"))},{default:C(()=>[B(u(s_))]),_:1}),_("i",{class:N(u(i).e("actions__divider"))},null,2),B(u(pe),{onClick:te},{default:C(()=>[(g(),H(Le(u(m).icon)))]),_:1}),_("i",{class:N(u(i).e("actions__divider"))},null,2),B(u(pe),{onClick:ae[3]||(ae[3]=ce=>Y("anticlockwise"))},{default:C(()=>[B(u(U8))]),_:1}),B(u(pe),{onClick:ae[4]||(ae[4]=ce=>Y("clockwise"))},{default:C(()=>[B(u(K8))]),_:1})],2)],2),O(" CANVAS "),_("div",{class:N(u(i).e("canvas"))},[(g(!0),k(se,null,ve(J.urlList,(ce,G)=>ge((g(),k("img",{ref_for:!0,ref:ie=>d.value[G]=ie,key:ce,src:ce,style:Oe(u(P)),class:N(u(i).e("img")),crossorigin:J.crossorigin,onLoad:F,onError:V,onMousedown:U},null,46,N9)),[[Ie,G===h.value]])),128))],2),A(J.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var R9=we(F9,[["__file","image-viewer.vue"]]);const cd=Ze(R9),D9=ke({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:de([String,Object])},previewSrcList:{type:de(Array),default:()=>ao([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:de(String)}}),H9={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>Te(e),close:()=>!0,show:()=>!0},j9=["src","loading","crossorigin"],W9={key:0},G9=L({name:"ElImage",inheritAttrs:!1}),U9=L({...G9,props:D9,emits:H9,setup(e,{emit:t}){const n=e;let o="";const{t:s}=Ct(),r=Se("image"),a=Yl(),i=ku(),l=I(),c=I(!1),d=I(!0),f=I(!1),v=I(),h=I(),m=Ce&&"loading"in HTMLImageElement.prototype;let p,b;const y=w(()=>[r.e("inner"),T.value&&r.e("preview"),d.value&&r.is("loading")]),$=w(()=>a.style),S=w(()=>{const{fit:q}=n;return Ce&&q?{objectFit:q}:{}}),T=w(()=>{const{previewSrcList:q}=n;return Array.isArray(q)&&q.length>0}),M=w(()=>{const{previewSrcList:q,initialIndex:Y}=n;let J=Y;return Y>q.length-1&&(J=0),J}),x=w(()=>n.loading==="eager"?!1:!m&&n.loading==="lazy"||n.lazy),P=()=>{Ce&&(d.value=!0,c.value=!1,l.value=n.src)};function E(q){d.value=!1,c.value=!1,t("load",q)}function j(q){d.value=!1,c.value=!0,t("error",q)}function z(){My(v.value,h.value)&&(P(),U())}const F=$c(z,200,!0);async function V(){var q;if(!Ce)return;await _e();const{scrollContainer:Y}=n;Bn(Y)?h.value=Y:_t(Y)&&Y!==""?h.value=(q=document.querySelector(Y))!=null?q:void 0:v.value&&(h.value=h8(v.value)),h.value&&(p=Me(h,"scroll",F),setTimeout(()=>z(),100))}function U(){!Ce||!h.value||!F||(p==null||p(),h.value=void 0)}function Z(q){if(q.ctrlKey){if(q.deltaY<0)return q.preventDefault(),!1;if(q.deltaY>0)return q.preventDefault(),!1}}function te(){T.value&&(b=Me("wheel",Z,{passive:!1}),o=document.body.style.overflow,document.body.style.overflow="hidden",f.value=!0,t("show"))}function oe(){b==null||b(),document.body.style.overflow=o,f.value=!1,t("close")}function W(q){t("switch",q)}return Q(()=>n.src,()=>{x.value?(d.value=!0,c.value=!1,U(),V()):P()}),me(()=>{x.value?V():P()}),(q,Y)=>(g(),k("div",{ref_key:"container",ref:v,class:N([u(r).b(),q.$attrs.class]),style:Oe(u($))},[c.value?A(q.$slots,"error",{key:0},()=>[_("div",{class:N(u(r).e("error"))},D(u(s)("el.image.error")),3)]):(g(),k(se,{key:1},[l.value!==void 0?(g(),k("img",ft({key:0},u(i),{src:l.value,loading:q.loading,style:u(S),class:u(y),crossorigin:q.crossorigin,onClick:te,onLoad:E,onError:j}),null,16,j9)):O("v-if",!0),d.value?(g(),k("div",{key:1,class:N(u(r).e("wrapper"))},[A(q.$slots,"placeholder",{},()=>[_("div",{class:N(u(r).e("placeholder"))},null,2)])],2)):O("v-if",!0)],64)),u(T)?(g(),k(se,{key:2},[f.value?(g(),H(u(cd),{key:0,"z-index":q.zIndex,"initial-index":u(M),infinite:q.infinite,"zoom-rate":q.zoomRate,"min-scale":q.minScale,"max-scale":q.maxScale,"url-list":q.previewSrcList,"hide-on-click-modal":q.hideOnClickModal,teleported:q.previewTeleported,"close-on-press-escape":q.closeOnPressEscape,onClose:oe,onSwitch:W},{default:C(()=>[q.$slots.viewer?(g(),k("div",W9,[A(q.$slots,"viewer")])):O("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):O("v-if",!0)],64)):O("v-if",!0)],6))}});var q9=we(U9,[["__file","image.vue"]]);const Tl=Ze(q9),ud=Symbol("elPaginationKey"),K9=ke({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:kt}}),Y9={click:e=>e instanceof MouseEvent},X9=["disabled","aria-label","aria-disabled"],Q9={key:0},Z9=L({name:"ElPaginationPrev"}),J9=L({...Z9,props:K9,emits:Y9,setup(e){const t=e,{t:n}=Ct(),o=w(()=>t.disabled||t.currentPage<=1);return(s,r)=>(g(),k("button",{type:"button",class:"btn-prev",disabled:u(o),"aria-label":s.prevText||u(n)("el.pagination.prev"),"aria-disabled":u(o),onClick:r[0]||(r[0]=a=>s.$emit("click",a))},[s.prevText?(g(),k("span",Q9,D(s.prevText),1)):(g(),H(u(pe),{key:1},{default:C(()=>[(g(),H(Le(s.prevIcon)))]),_:1}))],8,X9))}});var eS=we(J9,[["__file","prev.vue"]]);const tS=ke({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:kt}}),nS=["disabled","aria-label","aria-disabled"],oS={key:0},sS=L({name:"ElPaginationNext"}),rS=L({...sS,props:tS,emits:["click"],setup(e){const t=e,{t:n}=Ct(),o=w(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(s,r)=>(g(),k("button",{type:"button",class:"btn-next",disabled:u(o),"aria-label":s.nextText||u(n)("el.pagination.next"),"aria-disabled":u(o),onClick:r[0]||(r[0]=a=>s.$emit("click",a))},[s.nextText?(g(),k("span",oS,D(s.nextText),1)):(g(),H(u(pe),{key:1},{default:C(()=>[(g(),H(Le(s.nextIcon)))]),_:1}))],8,nS))}});var aS=we(rS,[["__file","next.vue"]]);const dd=Symbol("ElSelectGroup"),Vs=Symbol("ElSelect");function iS(e,t){const n=fe(Vs),o=fe(dd,{disabled:!1}),s=w(()=>n.props.multiple?d(n.props.modelValue,e.value):d([n.props.modelValue],e.value)),r=w(()=>{if(n.props.multiple){const h=n.props.modelValue||[];return!s.value&&h.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),a=w(()=>e.label||(yt(e.value)?"":e.value)),i=w(()=>e.value||e.label||""),l=w(()=>e.disabled||t.groupDisabled||r.value),c=Ye(),d=(h=[],m)=>{if(yt(e.value)){const p=n.props.valueKey;return h&&h.some(b=>Ql(Jt(b,p))===Jt(m,p))}else return h&&h.includes(m)},f=()=>{!e.disabled&&!o.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(c.proxy))},v=h=>{const m=new RegExp(u8(h),"i");t.visible=m.test(a.value)||e.created};return Q(()=>a.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),Q(()=>e.value,(h,m)=>{const{remote:p,valueKey:b}=n.props;if(ko(h,m)||(n.onOptionDestroy(m,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!p){if(b&&yt(h)&&yt(m)&&h[b]===m[b])return;n.setSelected()}}),Q(()=>o.disabled,()=>{t.groupDisabled=o.disabled},{immediate:!0}),{select:n,currentLabel:a,currentValue:i,itemSelected:s,isDisabled:l,hoverItem:f,updateOption:v}}const lS=L({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Se("select"),n=Os(),o=w(()=>[t.be("dropdown","item"),t.is("disabled",u(i)),t.is("selected",u(a)),t.is("hovering",u(v))]),s=De({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:r,itemSelected:a,isDisabled:i,select:l,hoverItem:c,updateOption:d}=iS(e,s),{visible:f,hover:v}=Wr(s),h=Ye().proxy;l.onOptionCreate(h),it(()=>{const p=h.value,{selected:b}=l.states,$=(l.props.multiple?b:[b]).some(S=>S.value===h.value);_e(()=>{l.states.cachedOptions.get(p)===h&&!$&&l.states.cachedOptions.delete(p)}),l.onOptionDestroy(p,h)});function m(){e.disabled!==!0&&s.groupDisabled!==!0&&l.handleOptionSelect(h)}return{ns:t,id:n,containerKls:o,currentLabel:r,itemSelected:a,isDisabled:i,select:l,hoverItem:c,updateOption:d,visible:f,hover:v,selectOptionClick:m,states:s}}}),cS=["id","aria-disabled","aria-selected"];function uS(e,t,n,o,s,r){return ge((g(),k("li",{id:e.id,class:N(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:t[0]||(t[0]=(...a)=>e.hoverItem&&e.hoverItem(...a)),onClick:t[1]||(t[1]=He((...a)=>e.selectOptionClick&&e.selectOptionClick(...a),["stop"]))},[A(e.$slots,"default",{},()=>[_("span",null,D(e.currentLabel),1)])],42,cS)),[[Ie,e.visible]])}var La=we(lS,[["render",uS],["__file","option.vue"]]);const dS=L({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=fe(Vs),t=Se("select"),n=w(()=>e.props.popperClass),o=w(()=>e.props.multiple),s=w(()=>e.props.fitInputWidth),r=I("");function a(){var i;r.value=`${(i=e.selectRef)==null?void 0:i.offsetWidth}px`}return me(()=>{a(),mt(e.selectRef,a)}),{ns:t,minWidth:r,popperClass:n,isMultiple:o,isFitInputWidth:s}}});function fS(e,t,n,o,s,r){return g(),k("div",{class:N([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Oe({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(g(),k("div",{key:0,class:N(e.ns.be("dropdown","header"))},[A(e.$slots,"header")],2)):O("v-if",!0),A(e.$slots,"default"),e.$slots.footer?(g(),k("div",{key:1,class:N(e.ns.be("dropdown","footer"))},[A(e.$slots,"footer")],2)):O("v-if",!0)],6)}var pS=we(dS,[["render",fS],["__file","select-dropdown.vue"]]);function vS(e){const t=I(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:r=>{const a=r.target.value,i=a[a.length-1]||"";t.value=!Su(i)},handleCompositionEnd:r=>{t.value&&(t.value=!1,nt(e)&&e(r))}}}const hS=11,mS=(e,t)=>{const{t:n}=Ct(),o=Os(),s=Se("select"),r=Se("input"),a=De({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:e.multiple?[]:{},selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),i=I(null),l=I(null),c=I(null),d=I(null),f=I(null),v=I(null),h=I(null),m=I(null),p=I(null),b=I(null),y=I(null),$=I(null),{wrapperRef:S,isFocused:T,handleFocus:M,handleBlur:x}=Gu(f,{afterFocus(){e.automaticDropdown&&!P.value&&(P.value=!0,a.menuVisibleOnFocus=!0)},beforeBlur(R){var ee,Ee;return((ee=c.value)==null?void 0:ee.isFocusInsideContent(R))||((Ee=d.value)==null?void 0:Ee.isFocusInsideContent(R))},afterBlur(){P.value=!1,a.menuVisibleOnFocus=!1}}),P=I(!1),E=I(),{form:j,formItem:z}=Ca(),{inputId:F}=qu(e,{formItemContext:z}),V=w(()=>e.disabled||(j==null?void 0:j.disabled)),U=w(()=>G.value.some(R=>R.value==="")),Z=w(()=>e.multiple?tt(e.modelValue)&&e.modelValue.length>0:!Po(e.modelValue)&&(e.modelValue!==""||U.value)),te=w(()=>e.clearable&&!V.value&&a.inputHovering&&Z.value),oe=w(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),W=w(()=>s.is("reverse",oe.value&&P.value)),q=w(()=>(z==null?void 0:z.validateState)||""),Y=w(()=>_u[q.value]),J=w(()=>e.remote?300:0),ae=w(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!a.inputValue&&a.options.size===0?!1:e.filterable&&a.inputValue&&a.options.size>0&&ce.value===0?e.noMatchText||n("el.select.noMatch"):a.options.size===0?e.noDataText||n("el.select.noData"):null),ce=w(()=>G.value.filter(R=>R.visible).length),G=w(()=>{const R=Array.from(a.options.values()),ee=[];return a.optionValues.forEach(Ee=>{const Ve=R.findIndex(fn=>fn.value===Ee);Ve>-1&&ee.push(R[Ve])}),ee.length>=R.length?ee:R}),ie=w(()=>Array.from(a.cachedOptions.values())),re=w(()=>{const R=G.value.filter(ee=>!ee.created).some(ee=>ee.currentLabel===a.inputValue);return e.filterable&&e.allowCreate&&a.inputValue!==""&&!R}),X=()=>{e.filterable&&nt(e.filterMethod)||e.filterable&&e.remote&&nt(e.remoteMethod)||G.value.forEach(R=>{R.updateOption(a.inputValue)})},le=zs(),$e=w(()=>["small"].includes(le.value)?"small":"default"),Je=w({get(){return P.value&&ae.value!==!1},set(R){P.value=R}}),Ue=w(()=>tt(e.modelValue)?e.modelValue.length===0&&!a.inputValue:e.filterable?!a.inputValue:!0),We=w(()=>{var R;const ee=(R=e.placeholder)!=null?R:n("el.select.placeholder");return e.multiple||!Z.value?ee:a.selectedLabel});Q(()=>e.modelValue,(R,ee)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(a.inputValue="",qe("")),Et(),!ko(R,ee)&&e.validateEvent&&(z==null||z.validate("change").catch(Ee=>void 0))},{flush:"post",deep:!0}),Q(()=>P.value,R=>{R?qe(a.inputValue):(a.inputValue="",a.previousQuery=null,a.isBeforeHide=!0),t("visible-change",R)}),Q(()=>a.options.entries(),()=>{var R;if(!Ce)return;const ee=((R=i.value)==null?void 0:R.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!ia(e.modelValue)||!Array.from(ee).includes(document.activeElement))&&Et(),e.defaultFirstOption&&(e.filterable||e.remote)&&ce.value&&Mt()},{flush:"post"}),Q(()=>a.hoveringIndex,R=>{Te(R)&&R>-1?E.value=G.value[R]||{}:E.value={},G.value.forEach(ee=>{ee.hover=E.value===ee})}),zt(()=>{a.isBeforeHide||X()});const qe=R=>{a.previousQuery!==R&&(a.previousQuery=R,e.filterable&&nt(e.filterMethod)?e.filterMethod(R):e.filterable&&e.remote&&nt(e.remoteMethod)&&e.remoteMethod(R),e.defaultFirstOption&&(e.filterable||e.remote)&&ce.value?_e(Mt):_e(Nt))},Mt=()=>{const R=G.value.filter(Ve=>Ve.visible&&!Ve.disabled&&!Ve.states.groupDisabled),ee=R.find(Ve=>Ve.created),Ee=R[0];a.hoveringIndex=Na(G.value,ee||Ee)},Et=()=>{if(e.multiple)a.selectedLabel="";else{const ee=Ut(e.modelValue);a.selectedLabel=ee.currentLabel,a.selected=ee;return}const R=[];tt(e.modelValue)&&e.modelValue.forEach(ee=>{R.push(Ut(ee))}),a.selected=R},Ut=R=>{let ee;const Ee=Fs(R).toLowerCase()==="object",Ve=Fs(R).toLowerCase()==="null",fn=Fs(R).toLowerCase()==="undefined";for(let Tn=a.cachedOptions.size-1;Tn>=0;Tn--){const Vt=ie.value[Tn];if(Ee?Jt(Vt.value,e.valueKey)===Jt(R,e.valueKey):Vt.value===R){ee={value:R,currentLabel:Vt.currentLabel,isDisabled:Vt.isDisabled};break}}if(ee)return ee;const Rn=Ee?R.label:!Ve&&!fn?R:"";return{value:R,currentLabel:Rn}},Nt=()=>{e.multiple?a.hoveringIndex=G.value.findIndex(R=>a.selected.some(ee=>co(ee)===co(R))):a.hoveringIndex=G.value.findIndex(R=>co(R)===co(a.selected))},un=()=>{a.selectionWidth=l.value.getBoundingClientRect().width},qt=()=>{a.calculatorWidth=v.value.getBoundingClientRect().width},kn=()=>{a.collapseItemWidth=y.value.getBoundingClientRect().width},Xe=()=>{var R,ee;(ee=(R=c.value)==null?void 0:R.updatePopper)==null||ee.call(R)},Kt=()=>{var R,ee;(ee=(R=d.value)==null?void 0:R.updatePopper)==null||ee.call(R)},dn=()=>{a.inputValue.length>0&&!P.value&&(P.value=!0),qe(a.inputValue)},$n=R=>{if(a.inputValue=R.target.value,e.remote)Yt();else return dn()},Yt=fu(()=>{dn()},J.value),K=R=>{ko(e.modelValue,R)||t(wu,R)},he=R=>a8(R,ee=>!a.disabledOptions.has(ee)),ze=R=>{if(e.multiple&&R.code!==gt.delete&&R.target.value.length<=0){const ee=e.modelValue.slice(),Ee=he(ee);if(Ee<0)return;ee.splice(Ee,1),t(At,ee),K(ee)}},Xt=(R,ee)=>{const Ee=a.selected.indexOf(ee);if(Ee>-1&&!V.value){const Ve=e.modelValue.slice();Ve.splice(Ee,1),t(At,Ve),K(Ve),t("remove-tag",ee.value)}R.stopPropagation(),Bo()},lo=R=>{R.stopPropagation();const ee=e.multiple?[]:void 0;if(e.multiple)for(const Ee of a.selected)Ee.isDisabled&&ee.push(Ee.value);t(At,ee),K(ee),a.hoveringIndex=-1,P.value=!1,t("clear"),Bo()},Ba=R=>{if(e.multiple){const ee=(e.modelValue||[]).slice(),Ee=Na(ee,R.value);Ee>-1?ee.splice(Ee,1):(e.multipleLimit<=0||ee.length{zo(R)})},Na=(R=[],ee)=>{if(!yt(ee))return R.indexOf(ee);const Ee=e.valueKey;let Ve=-1;return R.some((fn,Rn)=>Ql(Jt(fn,Ee))===Jt(ee,Ee)?(Ve=Rn,!0):!1),Ve},zo=R=>{var ee,Ee,Ve,fn,Rn;const No=tt(R)?R[0]:R;let Tn=null;if(No!=null&&No.value){const Vt=G.value.filter(Da=>Da.value===No.value);Vt.length>0&&(Tn=Vt[0].$el)}if(c.value&&Tn){const Vt=(fn=(Ve=(Ee=(ee=c.value)==null?void 0:ee.popperRef)==null?void 0:Ee.contentRef)==null?void 0:Ve.querySelector)==null?void 0:fn.call(Ve,`.${s.be("dropdown","wrap")}`);Vt&&m8(Vt,Tn)}(Rn=$.value)==null||Rn.handleScroll()},Cd=R=>{a.options.set(R.value,R),a.cachedOptions.set(R.value,R),R.disabled&&a.disabledOptions.set(R.value,R)},Md=(R,ee)=>{a.options.get(R)===ee&&a.options.delete(R)},{handleCompositionStart:Ed,handleCompositionUpdate:Id,handleCompositionEnd:Pd}=vS(R=>$n(R)),xd=w(()=>{var R,ee;return(ee=(R=c.value)==null?void 0:R.popperRef)==null?void 0:ee.contentRef}),Ad=()=>{_e(()=>zo(a.selected))},Bo=()=>{var R;(R=f.value)==null||R.focus()},Ld=()=>{Va()},Od=R=>{lo(R)},Va=R=>{if(P.value=!1,T.value){const ee=new FocusEvent("focus",R);_e(()=>x(ee))}},zd=()=>{a.inputValue.length>0?a.inputValue="":P.value=!1},Fa=()=>{V.value||(a.menuVisibleOnFocus?a.menuVisibleOnFocus=!1:P.value=!P.value)},Bd=()=>{P.value?G.value[a.hoveringIndex]&&Ba(G.value[a.hoveringIndex]):Fa()},co=R=>yt(R.value)?Jt(R.value,e.valueKey):R.value,Nd=w(()=>G.value.filter(R=>R.visible).every(R=>R.disabled)),Vd=w(()=>e.multiple?e.collapseTags?a.selected.slice(0,e.maxCollapseTags):a.selected:[]),Fd=w(()=>e.multiple?e.collapseTags?a.selected.slice(e.maxCollapseTags):[]:[]),Ra=R=>{if(!P.value){P.value=!0;return}if(!(a.options.size===0||ce.value===0)&&!Nd.value){R==="next"?(a.hoveringIndex++,a.hoveringIndex===a.options.size&&(a.hoveringIndex=0)):R==="prev"&&(a.hoveringIndex--,a.hoveringIndex<0&&(a.hoveringIndex=a.options.size-1));const ee=G.value[a.hoveringIndex];(ee.disabled===!0||ee.states.groupDisabled===!0||!ee.visible)&&Ra(R),_e(()=>zo(E.value))}},Rd=()=>{if(!l.value)return 0;const R=window.getComputedStyle(l.value);return Number.parseFloat(R.gap||"6px")},Dd=w(()=>{const R=Rd();return{maxWidth:`${y.value&&e.maxCollapseTags===1?a.selectionWidth-a.collapseItemWidth-R:a.selectionWidth}px`}}),Hd=w(()=>({maxWidth:`${a.selectionWidth}px`})),jd=w(()=>({width:`${Math.max(a.calculatorWidth,hS)}px`}));return e.multiple&&!tt(e.modelValue)&&t(At,[]),!e.multiple&&tt(e.modelValue)&&t(At,""),mt(l,un),mt(v,qt),mt(p,Xe),mt(S,Xe),mt(b,Kt),mt(y,kn),me(()=>{Et()}),{inputId:F,contentId:o,nsSelect:s,nsInput:r,states:a,isFocused:T,expanded:P,optionsArray:G,hoverOption:E,selectSize:le,filteredOptionsCount:ce,resetCalculatorWidth:qt,updateTooltip:Xe,updateTagTooltip:Kt,debouncedOnInputChange:Yt,onInput:$n,deletePrevTag:ze,deleteTag:Xt,deleteSelected:lo,handleOptionSelect:Ba,scrollToOption:zo,hasModelValue:Z,shouldShowPlaceholder:Ue,currentPlaceholder:We,showClose:te,iconComponent:oe,iconReverse:W,validateState:q,validateIcon:Y,showNewOption:re,updateOptions:X,collapseTagSize:$e,setSelected:Et,selectDisabled:V,emptyText:ae,handleCompositionStart:Ed,handleCompositionUpdate:Id,handleCompositionEnd:Pd,onOptionCreate:Cd,onOptionDestroy:Md,handleMenuEnter:Ad,handleFocus:M,focus:Bo,blur:Ld,handleBlur:x,handleClearClick:Od,handleClickOutside:Va,handleEsc:zd,toggleMenu:Fa,selectOption:Bd,getValueKey:co,navigateOptions:Ra,dropdownMenuVisible:Je,showTagList:Vd,collapseTagList:Fd,tagStyle:Dd,collapseTagStyle:Hd,inputStyle:jd,popperRef:xd,inputRef:f,tooltipRef:c,tagTooltipRef:d,calculatorRef:v,prefixRef:h,suffixRef:m,selectRef:i,wrapperRef:S,selectionRef:l,scrollbarRef:$,menuRef:p,tagMenuRef:b,collapseItemRef:y}};var gS=L({name:"ElOptions",setup(e,{slots:t}){const n=fe(Vs);let o=[];return()=>{var s,r;const a=(s=t.default)==null?void 0:s.call(t),i=[];function l(c){tt(c)&&c.forEach(d=>{var f,v,h,m;const p=(f=(d==null?void 0:d.type)||{})==null?void 0:f.name;p==="ElOptionGroup"?l(!_t(d.children)&&!tt(d.children)&&nt((v=d.children)==null?void 0:v.default)?(h=d.children)==null?void 0:h.default():d.children):p==="ElOption"?i.push((m=d.props)==null?void 0:m.value):tt(d.children)&&l(d.children)})}return a.length&&l((r=a[0])==null?void 0:r.children),ko(i,o)||(o=i,n&&(n.states.optionValues=i)),a}}});const yS=ke({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Sa,effect:{type:de(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:de(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Aa.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:kt,default:da},fitInputWidth:Boolean,suffixIcon:{type:kt,default:b8},tagType:{...ld.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:de(String),values:As,default:"bottom-start"},fallbackPlacements:{type:de(Array),default:["bottom-start","top-start","right","left"]},ariaLabel:{type:String,default:void 0}}),Cl="ElSelect",bS=L({name:Cl,componentName:Cl,components:{ElInput:Ku,ElSelectMenu:pS,ElOption:La,ElOptions:gS,ElTag:Fr,ElScrollbar:_w,ElTooltip:$5,ElIcon:pe},directives:{ClickOutside:c9},props:yS,emits:[At,wu,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=mS(e,t);return Ne(Vs,De({props:e,states:n.states,optionsArray:n.optionsArray,handleOptionSelect:n.handleOptionSelect,onOptionCreate:n.onOptionCreate,onOptionDestroy:n.onOptionDestroy,selectRef:n.selectRef,setSelected:n.setSelected})),{...n}}}),_S=["id","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],wS=["textContent"];function SS(e,t,n,o,s,r){const a=Fe("el-tag"),i=Fe("el-tooltip"),l=Fe("el-icon"),c=Fe("el-option"),d=Fe("el-options"),f=Fe("el-scrollbar"),v=Fe("el-select-menu"),h=rf("click-outside");return ge((g(),k("div",{ref:"selectRef",class:N([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[14]||(t[14]=m=>e.states.inputHovering=!0),onMouseleave:t[15]||(t[15]=m=>e.states.inputHovering=!1),onClick:t[16]||(t[16]=He((...m)=>e.toggleMenu&&e.toggleMenu(...m),["stop"]))},[B(i,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[13]||(t[13]=m=>e.states.isBeforeHide=!1)},{default:C(()=>{var m;return[_("div",{ref:"wrapperRef",class:N([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(g(),k("div",{key:0,ref:"prefixRef",class:N(e.nsSelect.e("prefix"))},[A(e.$slots,"prefix")],2)):O("v-if",!0),_("div",{ref:"selectionRef",class:N([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?A(e.$slots,"tag",{key:0},()=>[(g(!0),k(se,null,ve(e.showTagList,p=>(g(),k("div",{key:e.getValueKey(p),class:N(e.nsSelect.e("selected-item"))},[B(a,{closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",style:Oe(e.tagStyle),onClose:b=>e.deleteTag(b,p)},{default:C(()=>[_("span",{class:N(e.nsSelect.e("tags-text"))},D(p.currentLabel),3)]),_:2},1032,["closable","size","type","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(g(),H(i,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:C(()=>[_("div",{ref:"collapseItemRef",class:N(e.nsSelect.e("selected-item"))},[B(a,{closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",style:Oe(e.collapseTagStyle)},{default:C(()=>[_("span",{class:N(e.nsSelect.e("tags-text"))}," + "+D(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","style"])],2)]),content:C(()=>[_("div",{ref:"tagMenuRef",class:N(e.nsSelect.e("selection"))},[(g(!0),k(se,null,ve(e.collapseTagList,p=>(g(),k("div",{key:e.getValueKey(p),class:N(e.nsSelect.e("selected-item"))},[B(a,{class:"in-tooltip",closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",onClose:b=>e.deleteTag(b,p)},{default:C(()=>[_("span",{class:N(e.nsSelect.e("tags-text"))},D(p.currentLabel),3)]),_:2},1032,["closable","size","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):O("v-if",!0)]):O("v-if",!0),e.selectDisabled?O("v-if",!0):(g(),k("div",{key:1,class:N([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[ge(_("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":t[0]||(t[0]=p=>e.states.inputValue=p),type:"text",class:N([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Oe(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((m=e.hoverOption)==null?void 0:m.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:t[1]||(t[1]=(...p)=>e.handleFocus&&e.handleFocus(...p)),onBlur:t[2]||(t[2]=(...p)=>e.handleBlur&&e.handleBlur(...p)),onKeydown:[t[3]||(t[3]=En(He(p=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[4]||(t[4]=En(He(p=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),t[5]||(t[5]=En(He((...p)=>e.handleEsc&&e.handleEsc(...p),["stop","prevent"]),["esc"])),t[6]||(t[6]=En(He((...p)=>e.selectOption&&e.selectOption(...p),["stop","prevent"]),["enter"])),t[7]||(t[7]=En(He((...p)=>e.deletePrevTag&&e.deletePrevTag(...p),["stop"]),["delete"]))],onCompositionstart:t[8]||(t[8]=(...p)=>e.handleCompositionStart&&e.handleCompositionStart(...p)),onCompositionupdate:t[9]||(t[9]=(...p)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...p)),onCompositionend:t[10]||(t[10]=(...p)=>e.handleCompositionEnd&&e.handleCompositionEnd(...p)),onInput:t[11]||(t[11]=(...p)=>e.onInput&&e.onInput(...p)),onClick:t[12]||(t[12]=He((...p)=>e.toggleMenu&&e.toggleMenu(...p),["stop"]))},null,46,_S),[[af,e.states.inputValue]]),e.filterable?(g(),k("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:N(e.nsSelect.e("input-calculator")),textContent:D(e.states.inputValue)},null,10,wS)):O("v-if",!0)],2)),e.shouldShowPlaceholder?(g(),k("div",{key:2,class:N([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[_("span",null,D(e.currentPlaceholder),1)],2)):O("v-if",!0)],2),_("div",{ref:"suffixRef",class:N(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(g(),H(l,{key:0,class:N([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:C(()=>[(g(),H(Le(e.iconComponent)))]),_:1},8,["class"])):O("v-if",!0),e.showClose&&e.clearIcon?(g(),H(l,{key:1,class:N([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:C(()=>[(g(),H(Le(e.clearIcon)))]),_:1},8,["class","onClick"])):O("v-if",!0),e.validateState&&e.validateIcon?(g(),H(l,{key:2,class:N([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:C(()=>[(g(),H(Le(e.validateIcon)))]),_:1},8,["class"])):O("v-if",!0)],2)],2)]}),content:C(()=>[B(v,{ref:"menuRef"},{default:C(()=>[e.$slots.header?(g(),k("div",{key:0,class:N(e.nsSelect.be("dropdown","header"))},[A(e.$slots,"header")],2)):O("v-if",!0),ge(B(f,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:N([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:C(()=>[e.showNewOption?(g(),H(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):O("v-if",!0),B(d,null,{default:C(()=>[A(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[Ie,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(g(),k("div",{key:1,class:N(e.nsSelect.be("dropdown","loading"))},[A(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(g(),k("div",{key:2,class:N(e.nsSelect.be("dropdown","empty"))},[A(e.$slots,"empty",{},()=>[_("span",null,D(e.emptyText),1)])],2)):O("v-if",!0),e.$slots.footer?(g(),k("div",{key:3,class:N(e.nsSelect.be("dropdown","footer"))},[A(e.$slots,"footer")],2)):O("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","onBeforeShow"])],34)),[[h,e.handleClickOutside,e.popperRef]])}var kS=we(bS,[["render",SS],["__file","select.vue"]]);const $S=L({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Se("select"),n=I(null),o=Ye(),s=I([]);Ne(dd,De({...Wr(e)}));const r=w(()=>s.value.some(l=>l.visible===!0)),a=l=>{const c=[];return tt(l.children)&&l.children.forEach(d=>{var f,v;d.type&&d.type.name==="ElOption"&&d.component&&d.component.proxy?c.push(d.component.proxy):(f=d.children)!=null&&f.length?c.push(...a(d)):(v=d.component)!=null&&v.subTree&&c.push(...a(d.component.subTree))}),c},i=()=>{s.value=a(o.subTree)};return me(()=>{i()}),$m(n,i,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:r,ns:t}}});function TS(e,t,n,o,s,r){return ge((g(),k("ul",{ref:"groupRef",class:N(e.ns.be("group","wrap"))},[_("li",{class:N(e.ns.be("group","title"))},D(e.label),3),_("li",null,[_("ul",{class:N(e.ns.b("group"))},[A(e.$slots,"default")],2)])],2)),[[Ie,e.visible]])}var fd=we($S,[["render",TS],["__file","option-group.vue"]]);const CS=Ze(kS,{Option:La,OptionGroup:fd}),MS=xs(La);xs(fd);const Oa=()=>fe(ud,{}),ES=ke({pageSize:{type:Number,required:!0},pageSizes:{type:de(Array),default:()=>ao([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:xo}}),IS=L({name:"ElPaginationSizes"}),PS=L({...IS,props:ES,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:o}=Ct(),s=Se("pagination"),r=Oa(),a=I(n.pageSize);Q(()=>n.pageSizes,(c,d)=>{if(!ko(c,d)&&Array.isArray(c)){const f=c.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",f)}}),Q(()=>n.pageSize,c=>{a.value=c});const i=w(()=>n.pageSizes);function l(c){var d;c!==a.value&&(a.value=c,(d=r.handleSizeChange)==null||d.call(r,Number(c)))}return(c,d)=>(g(),k("span",{class:N(u(s).e("sizes"))},[B(u(CS),{"model-value":a.value,disabled:c.disabled,"popper-class":c.popperClass,size:c.size,teleported:c.teleported,"validate-event":!1,onChange:l},{default:C(()=>[(g(!0),k(se,null,ve(u(i),f=>(g(),H(u(MS),{key:f,value:f,label:f+u(o)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported"])],2))}});var xS=we(PS,[["__file","sizes.vue"]]);const AS=ke({size:{type:String,values:xo}}),LS=["disabled"],OS=L({name:"ElPaginationJumper"}),zS=L({...OS,props:AS,setup(e){const{t}=Ct(),n=Se("pagination"),{pageCount:o,disabled:s,currentPage:r,changeEvent:a}=Oa(),i=I(),l=w(()=>{var f;return(f=i.value)!=null?f:r==null?void 0:r.value});function c(f){i.value=f?+f:""}function d(f){f=Math.trunc(+f),a==null||a(f),i.value=void 0}return(f,v)=>(g(),k("span",{class:N(u(n).e("jump")),disabled:u(s)},[_("span",{class:N([u(n).e("goto")])},D(u(t)("el.pagination.goto")),3),B(u(Ku),{size:f.size,class:N([u(n).e("editor"),u(n).is("in-pagination")]),min:1,max:u(o),disabled:u(s),"model-value":u(l),"validate-event":!1,label:u(t)("el.pagination.page"),type:"number","onUpdate:modelValue":c,onChange:d},null,8,["size","class","max","disabled","model-value","label"]),_("span",{class:N([u(n).e("classifier")])},D(u(t)("el.pagination.pageClassifier")),3)],10,LS))}});var BS=we(zS,[["__file","jumper.vue"]]);const NS=ke({total:{type:Number,default:1e3}}),VS=["disabled"],FS=L({name:"ElPaginationTotal"}),RS=L({...FS,props:NS,setup(e){const{t}=Ct(),n=Se("pagination"),{disabled:o}=Oa();return(s,r)=>(g(),k("span",{class:N(u(n).e("total")),disabled:u(o)},D(u(t)("el.pagination.total",{total:s.total})),11,VS))}});var DS=we(RS,[["__file","total.vue"]]);const HS=ke({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),jS=["onKeyup"],WS=["aria-current","aria-label","tabindex"],GS=["tabindex","aria-label"],US=["aria-current","aria-label","tabindex"],qS=["tabindex","aria-label"],KS=["aria-current","aria-label","tabindex"],YS=L({name:"ElPaginationPager"}),XS=L({...YS,props:HS,emits:["change"],setup(e,{emit:t}){const n=e,o=Se("pager"),s=Se("icon"),{t:r}=Ct(),a=I(!1),i=I(!1),l=I(!1),c=I(!1),d=I(!1),f=I(!1),v=w(()=>{const T=n.pagerCount,M=(T-1)/2,x=Number(n.currentPage),P=Number(n.pageCount);let E=!1,j=!1;P>T&&(x>T-M&&(E=!0),x["more","btn-quickprev",s.b(),o.is("disabled",n.disabled)]),m=w(()=>["more","btn-quicknext",s.b(),o.is("disabled",n.disabled)]),p=w(()=>n.disabled?-1:0);zt(()=>{const T=(n.pagerCount-1)/2;a.value=!1,i.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-T&&(a.value=!0),n.currentPageP&&(x=P)),x!==E&&t("change",x)}return(T,M)=>(g(),k("ul",{class:N(u(o).b()),onClick:S,onKeyup:En($,["enter"])},[T.pageCount>0?(g(),k("li",{key:0,class:N([[u(o).is("active",T.currentPage===1),u(o).is("disabled",T.disabled)],"number"]),"aria-current":T.currentPage===1,"aria-label":u(r)("el.pagination.currentPage",{pager:1}),tabindex:u(p)}," 1 ",10,WS)):O("v-if",!0),a.value?(g(),k("li",{key:1,class:N(u(h)),tabindex:u(p),"aria-label":u(r)("el.pagination.prevPages",{pager:T.pagerCount-2}),onMouseenter:M[0]||(M[0]=x=>b(!0)),onMouseleave:M[1]||(M[1]=x=>l.value=!1),onFocus:M[2]||(M[2]=x=>y(!0)),onBlur:M[3]||(M[3]=x=>d.value=!1)},[(l.value||d.value)&&!T.disabled?(g(),H(u(O8),{key:0})):(g(),H(u(Ui),{key:1}))],42,GS)):O("v-if",!0),(g(!0),k(se,null,ve(u(v),x=>(g(),k("li",{key:x,class:N([[u(o).is("active",T.currentPage===x),u(o).is("disabled",T.disabled)],"number"]),"aria-current":T.currentPage===x,"aria-label":u(r)("el.pagination.currentPage",{pager:x}),tabindex:u(p)},D(x),11,US))),128)),i.value?(g(),k("li",{key:2,class:N(u(m)),tabindex:u(p),"aria-label":u(r)("el.pagination.nextPages",{pager:T.pagerCount-2}),onMouseenter:M[4]||(M[4]=x=>b()),onMouseleave:M[5]||(M[5]=x=>c.value=!1),onFocus:M[6]||(M[6]=x=>y()),onBlur:M[7]||(M[7]=x=>f.value=!1)},[(c.value||f.value)&&!T.disabled?(g(),H(u(B8),{key:0})):(g(),H(u(Ui),{key:1}))],42,qS)):O("v-if",!0),T.pageCount>1?(g(),k("li",{key:3,class:N([[u(o).is("active",T.currentPage===T.pageCount),u(o).is("disabled",T.disabled)],"number"]),"aria-current":T.currentPage===T.pageCount,"aria-label":u(r)("el.pagination.currentPage",{pager:T.pageCount}),tabindex:u(p)},D(T.pageCount),11,KS)):O("v-if",!0)],42,jS))}});var QS=we(XS,[["__file","pager.vue"]]);const Qe=e=>typeof e!="number",ZS=ke({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>Te(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:de(Array),default:()=>ao([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:kt,default:()=>la},nextText:{type:String,default:""},nextIcon:{type:kt,default:()=>ca},teleported:{type:Boolean,default:!0},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),JS={"update:current-page":e=>Te(e),"update:page-size":e=>Te(e),"size-change":e=>Te(e),change:(e,t)=>Te(e)&&Te(t),"current-change":e=>Te(e),"prev-click":e=>Te(e),"next-click":e=>Te(e)},Ml="ElPagination";var e7=L({name:Ml,props:ZS,emits:JS,setup(e,{emit:t,slots:n}){const{t:o}=Ct(),s=Se("pagination"),r=Ye().vnode.props||{},a="onUpdate:currentPage"in r||"onUpdate:current-page"in r||"onCurrentChange"in r,i="onUpdate:pageSize"in r||"onUpdate:page-size"in r||"onSizeChange"in r,l=w(()=>{if(Qe(e.total)&&Qe(e.pageCount)||!Qe(e.currentPage)&&!a)return!1;if(e.layout.includes("sizes")){if(Qe(e.pageCount)){if(!Qe(e.total)&&!Qe(e.pageSize)&&!i)return!1}else if(!i)return!1}return!0}),c=I(Qe(e.defaultPageSize)?10:e.defaultPageSize),d=I(Qe(e.defaultCurrentPage)?1:e.defaultCurrentPage),f=w({get(){return Qe(e.pageSize)?c.value:e.pageSize},set(S){Qe(e.pageSize)&&(c.value=S),i&&(t("update:page-size",S),t("size-change",S))}}),v=w(()=>{let S=0;return Qe(e.pageCount)?Qe(e.total)||(S=Math.max(1,Math.ceil(e.total/f.value))):S=e.pageCount,S}),h=w({get(){return Qe(e.currentPage)?d.value:e.currentPage},set(S){let T=S;S<1?T=1:S>v.value&&(T=v.value),Qe(e.currentPage)&&(d.value=T),a&&(t("update:current-page",T),t("current-change",T))}});Q(v,S=>{h.value>S&&(h.value=S)}),Q([h,f],S=>{t("change",...S)},{flush:"post"});function m(S){h.value=S}function p(S){f.value=S;const T=v.value;h.value>T&&(h.value=T)}function b(){e.disabled||(h.value-=1,t("prev-click",h.value))}function y(){e.disabled||(h.value+=1,t("next-click",h.value))}function $(S,T){S&&(S.props||(S.props={}),S.props.class=[S.props.class,T].join(" "))}return Ne(ud,{pageCount:v,disabled:w(()=>e.disabled),currentPage:h,changeEvent:m,handleSizeChange:p}),()=>{var S,T;if(!l.value)return o("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&v.value<=1)return null;const M=[],x=[],P=Be("div",{class:s.e("rightwrapper")},x),E={prev:Be(eS,{disabled:e.disabled,currentPage:h.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:b}),jumper:Be(BS,{size:e.small?"small":"default"}),pager:Be(QS,{currentPage:h.value,pageCount:v.value,pagerCount:e.pagerCount,onChange:m,disabled:e.disabled}),next:Be(aS,{disabled:e.disabled,currentPage:h.value,pageCount:v.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:y}),sizes:Be(xS,{pageSize:f.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:e.small?"small":"default"}),slot:(T=(S=n==null?void 0:n.default)==null?void 0:S.call(n))!=null?T:null,total:Be(DS,{total:Qe(e.total)?0:e.total})},j=e.layout.split(",").map(F=>F.trim());let z=!1;return j.forEach(F=>{if(F==="->"){z=!0;return}z?x.push(E[F]):M.push(E[F])}),$(M[0],s.is("first")),$(M[M.length-1],s.is("last")),z&&x.length>0&&($(x[0],s.is("first")),$(x[x.length-1],s.is("last")),M.push(P)),Be("div",{class:[s.b(),s.is("background",e.background),{[s.m("small")]:e.small}]},M)}}});const t7=Ze(e7),pd=["success","info","warning","error"],et=ao({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Ce?document.body:void 0}),n7=ke({customClass:{type:String,default:et.customClass},center:{type:Boolean,default:et.center},dangerouslyUseHTMLString:{type:Boolean,default:et.dangerouslyUseHTMLString},duration:{type:Number,default:et.duration},icon:{type:kt,default:et.icon},id:{type:String,default:et.id},message:{type:de([String,Object,Function]),default:et.message},onClose:{type:de(Function),required:!1},showClose:{type:Boolean,default:et.showClose},type:{type:String,values:pd,default:et.type},offset:{type:Number,default:et.offset},zIndex:{type:Number,default:et.zIndex},grouping:{type:Boolean,default:et.grouping},repeatNum:{type:Number,default:et.repeatNum}}),o7={destroy:()=>!0},Lt=lf([]),s7=e=>{const t=Lt.findIndex(s=>s.id===e),n=Lt[t];let o;return t>0&&(o=Lt[t-1]),{current:n,prev:o}},r7=e=>{const{prev:t}=s7(e);return t?t.vm.exposed.bottom.value:0},a7=(e,t)=>Lt.findIndex(o=>o.id===e)>0?16:t,i7=["id"],l7=["innerHTML"],c7=L({name:"ElMessage"}),u7=L({...c7,props:n7,emits:o7,setup(e,{expose:t}){const n=e,{Close:o}=bu,{ns:s,zIndex:r}=z6("message"),{currentZIndex:a,nextZIndex:i}=r,l=I(),c=I(!1),d=I(0);let f;const v=w(()=>n.type?n.type==="error"?"danger":n.type:"info"),h=w(()=>{const P=n.type;return{[s.bm("icon",P)]:P&&ps[P]}}),m=w(()=>n.icon||ps[n.type]||""),p=w(()=>r7(n.id)),b=w(()=>a7(n.id,n.offset)+p.value),y=w(()=>d.value+b.value),$=w(()=>({top:`${b.value}px`,zIndex:a.value}));function S(){n.duration!==0&&({stop:f}=B1(()=>{M()},n.duration))}function T(){f==null||f()}function M(){c.value=!1}function x({code:P}){P===gt.esc&&M()}return me(()=>{S(),i(),c.value=!0}),Q(()=>n.repeatNum,()=>{T(),S()}),Me(document,"keydown",x),mt(l,()=>{d.value=l.value.getBoundingClientRect().height}),t({visible:c,bottom:y,close:M}),(P,E)=>(g(),H(at,{name:u(s).b("fade"),onBeforeLeave:P.onClose,onAfterLeave:E[0]||(E[0]=j=>P.$emit("destroy")),persisted:""},{default:C(()=>[ge(_("div",{id:P.id,ref_key:"messageRef",ref:l,class:N([u(s).b(),{[u(s).m(P.type)]:P.type},u(s).is("center",P.center),u(s).is("closable",P.showClose),P.customClass]),style:Oe(u($)),role:"alert",onMouseenter:T,onMouseleave:S},[P.repeatNum>1?(g(),H(u(N5),{key:0,value:P.repeatNum,type:u(v),class:N(u(s).e("badge"))},null,8,["value","type","class"])):O("v-if",!0),u(m)?(g(),H(u(pe),{key:1,class:N([u(s).e("icon"),u(h)])},{default:C(()=>[(g(),H(Le(u(m))))]),_:1},8,["class"])):O("v-if",!0),A(P.$slots,"default",{},()=>[P.dangerouslyUseHTMLString?(g(),k(se,{key:1},[O(" Caution here, message could've been compromised, never use user's input as message "),_("p",{class:N(u(s).e("content")),innerHTML:P.message},null,10,l7)],2112)):(g(),k("p",{key:0,class:N(u(s).e("content"))},D(P.message),3))]),P.showClose?(g(),H(u(pe),{key:2,class:N(u(s).e("closeBtn")),onClick:He(M,["stop"])},{default:C(()=>[B(u(o))]),_:1},8,["class","onClick"])):O("v-if",!0)],46,i7),[[Ie,c.value]])]),_:3},8,["name","onBeforeLeave"]))}});var d7=we(u7,[["__file","message.vue"]]);let f7=1;const vd=e=>{const t=!e||_t(e)||qn(e)||nt(e)?{message:e}:e,n={...et,...t};if(!n.appendTo)n.appendTo=document.body;else if(_t(n.appendTo)){let o=document.querySelector(n.appendTo);Bn(o)||(o=document.body),n.appendTo=o}return n},p7=e=>{const t=Lt.indexOf(e);if(t===-1)return;Lt.splice(t,1);const{handler:n}=e;n.close()},v7=({appendTo:e,...t},n)=>{const o=`message_${f7++}`,s=t.onClose,r=document.createElement("div"),a={...t,id:o,onClose:()=>{s==null||s(),p7(d)},onDestroy:()=>{hr(null,r)}},i=B(d7,a,nt(a.message)||qn(a.message)?{default:nt(a.message)?a.message:()=>a.message}:null);i.appContext=n||eo._context,hr(i,r),e.appendChild(r.firstElementChild);const l=i.component,d={id:o,vnode:i,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:i.component.props};return d},eo=(e={},t)=>{if(!Ce)return{close:()=>{}};if(Te(il.max)&&Lt.length>=il.max)return{close:()=>{}};const n=vd(e);if(n.grouping&&Lt.length){const s=Lt.find(({vnode:r})=>{var a;return((a=r.props)==null?void 0:a.message)===n.message});if(s)return s.props.repeatNum+=1,s.props.type=n.type,s.handler}const o=v7(n,t);return Lt.push(o),o.handler};pd.forEach(e=>{eo[e]=(t={},n)=>{const o=vd(t);return eo({...o,type:e},n)}});function h7(e){for(const t of Lt)(!e||e===t.props.type)&&t.handler.close()}eo.closeAll=h7;eo._context=null;const m7=l_(eo,"$message"),g7=` + + + + + + + + + + + + + + + + + + +`,y7=` + + + + + + + + + + + + + + + + + + + + + + +`,b7=` +主题 + +`,_7='ICP备案号',El='',w7=` + + + +`,S7=` + + + +`,k7=` + + + + +`,$7=` + + + + +`,T7={key:0,class:"card recommend","data-pagefind-ignore":"all"},C7={class:"card-header"},M7=["innerHTML"],E7={key:0,class:"recommend-container"},I7={class:"num"},P7={class:"des"},x7=["href","onClick"],A7={class:"suffix"},L7={class:"tag"},O7={key:1,class:"empty-text"},z7=L({__name:"BlogHotArticle",setup(e){const{hotArticle:t}=je(),n=w(()=>t===!1?void 0:t),o=w(()=>{var b;return((b=n.value)==null?void 0:b.title)||`${g7}精选文章`}),s=w(()=>{var b;return((b=n.value)==null?void 0:b.nextText)||"换一组"}),r=w(()=>{var b;return((b=n.value)==null?void 0:b.pageSize)||9}),a=w(()=>{var b;return((b=n.value)==null?void 0:b.empty)??"暂无精选内容"}),i=Io(),l=w(()=>{const b=i.value.filter(y=>y.meta.sticky);return b.sort((y,$)=>$.meta.sticky-y.meta.sticky),[...b]}),c=I(1),d=Vn();function f(b){d.go(b)}function v(){const b=c.value%Math.ceil(l.value.length/r.value);c.value=b+1}const h=oa(),m=w(()=>{const b=(c.value-1)*r.value,y=b+r.value;return l.value.slice(b,y).map($=>({...$,route:is(h,$.route)}))}),p=w(()=>l.value.length>r.value);return(b,y)=>u(t)!==!1&&(l.value.length||a.value)?(g(),k("div",T7,[_("div",C7,[_("span",{class:"title svg-icon",innerHTML:o.value},null,8,M7),p.value?(g(),H(u(Ns),{key:0,size:"small",type:"primary",text:"",onClick:v},{default:C(()=>[be(D(s.value),1)]),_:1})):O("",!0)]),m.value.length?(g(),k("ol",E7,[(g(!0),k(se,null,ve(m.value,($,S)=>(g(),k("li",{key:$.route},[_("i",I7,D(S+1),1),_("div",P7,[_("a",{href:u(St)($.route),class:"title",onClick:T=>{T.preventDefault(),f(u(St)($.route))}},[_("span",null,D($.meta.title),1)],8,x7),_("div",A7,[_("span",L7,D(u($s)($.meta.date)),1)])])]))),128))])):(g(),k("div",O7,D(a.value),1))])):O("",!0)}}),B7=ne(z7,[["__scopeId","data-v-7f4057be"]]),N7={key:0,class:"card tags","data-pagefind-ignore":"all"},V7={class:"card-header"},F7=["innerHTML"],R7={class:"tag-list"},D7=L({__name:"BlogHomeTags",setup(e){var b,y,$;const t=pt(),n=Io(),o=($=(y=(b=Eo())==null?void 0:b.config)==null?void 0:y.blog)==null?void 0:$.homeTags,s=w(()=>!!(o??!0)),r=w(()=>typeof o=="boolean"||!(o!=null&&o.title)?`${$7}标签`:o==null?void 0:o.title),a=w(()=>[...new Set(n.value.map(S=>S.meta.tag||[]).flat(3))]),i=Gc(),l=Ac({storageKey:"vitepress-theme-appearance"}),c=w(()=>l.value?"light":"dark"),d=["","info","success","warning","danger"],f=Uc(),v=Vn();function h(){i.value.label="",i.value.type="",f.value=1,v.go(`${window.location.origin}${v.route.path}`)}const m=Y1();function p(S,T){if(S===i.value.label){h();return}i.value.type=T,i.value.label=S,f.value=1,v.go(`${m.value.origin}${v.route.path}?tag=${S}&type=${T}`)}return Q(m,()=>{if(m.value.href){const S=new URL(m.value.href);i.value.type=S.searchParams.get("type")||"",i.value.label=S.searchParams.get("tag")||""}},{immediate:!0}),Q(t,()=>{Pm().tag||(i.value.type="",i.value.label="")}),(S,T)=>s.value&&a.value.length?(g(),k("div",N7,[_("div",V7,[_("span",{class:"title svg-icon",innerHTML:r.value},null,8,F7),u(i).label?(g(),H(u(Fr),{key:0,type:u(i).type||"primary",effect:c.value,closable:"",onClose:h},{default:C(()=>[be(D(u(i).label),1)]),_:1},8,["type","effect"])):O("",!0)]),_("ul",R7,[(g(!0),k(se,null,ve(a.value,(M,x)=>(g(),k("li",{key:M},[B(u(Fr),{type:d[x%d.length]||"primary",effect:c.value,onClick:P=>p(M,d[x%d.length])},{default:C(()=>[be(D(M),1)]),_:2},1032,["type","effect","onClick"])]))),128))])])):O("",!0)}}),H7=ne(D7,[["__scopeId","data-v-3b3e128b"]]);function Il(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function za(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:Il(t[n])&&Il(e[n])&&Object.keys(t[n]).length>0&&za(e[n],t[n])})}const hd={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function io(){const e=typeof document<"u"?document:{};return za(e,hd),e}const j7={document:hd,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function vt(){const e=typeof window<"u"?window:{};return za(e,j7),e}function W7(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function G7(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function Rr(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function gs(){return Date.now()}function U7(e){const t=vt();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function q7(e,t){t===void 0&&(t="x");const n=vt();let o,s,r;const a=U7(e);return n.WebKitCSSMatrix?(s=a.transform||a.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(i=>i.replace(",",".")).join(", ")),r=new n.WebKitCSSMatrix(s==="none"?"":s)):(r=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),o=r.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?s=r.m41:o.length===16?s=parseFloat(o[12]):s=parseFloat(o[4])),t==="y"&&(n.WebKitCSSMatrix?s=r.m42:o.length===16?s=parseFloat(o[13]):s=parseFloat(o[5])),s||0}function Ko(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function K7(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function ct(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;nt.indexOf(r)<0);for(let r=0,a=s.length;rr?"next":"prev",d=(v,h)=>c==="next"&&v>=h||c==="prev"&&v<=h,f=()=>{i=new Date().getTime(),a===null&&(a=i);const v=Math.max(Math.min((i-a)/l,1),0),h=.5-Math.cos(v*Math.PI)/2;let m=r+h*(n-r);if(d(m,n)&&(m=n),t.wrapperEl.scrollTo({[o]:m}),d(m,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[o]:m})}),s.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=s.requestAnimationFrame(f)};f()}function en(e,t){return t===void 0&&(t=""),[...e.children].filter(n=>n.matches(t))}function ys(e){try{console.warn(e);return}catch{}}function Dr(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:W7(t)),n}function Y7(e,t){const n=[];for(;e.previousElementSibling;){const o=e.previousElementSibling;t?o.matches(t)&&n.push(o):n.push(o),e=o}return n}function X7(e,t){const n=[];for(;e.nextElementSibling;){const o=e.nextElementSibling;t?o.matches(t)&&n.push(o):n.push(o),e=o}return n}function gn(e,t){return vt().getComputedStyle(e,null).getPropertyValue(t)}function Pl(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function Q7(e,t){const n=[];let o=e.parentElement;for(;o;)t?o.matches(t)&&n.push(o):n.push(o),o=o.parentElement;return n}function xl(e,t,n){const o=vt();return n?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(o.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(o.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}let er;function Z7(){const e=vt(),t=io();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function gd(){return er||(er=Z7()),er}let tr;function J7(e){let{userAgent:t}=e===void 0?{}:e;const n=gd(),o=vt(),s=o.navigator.platform,r=t||o.navigator.userAgent,a={ios:!1,android:!1},i=o.screen.width,l=o.screen.height,c=r.match(/(Android);?[\s\/]+([\d.]+)?/);let d=r.match(/(iPad).*OS\s([\d_]+)/);const f=r.match(/(iPod)(.*OS\s([\d_]+))?/),v=!d&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=s==="Win32";let m=s==="MacIntel";const p=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&m&&n.touch&&p.indexOf(`${i}x${l}`)>=0&&(d=r.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),m=!1),c&&!h&&(a.os="android",a.android=!0),(d||v||f)&&(a.os="ios",a.ios=!0),a}function yd(e){return e===void 0&&(e={}),tr||(tr=J7(e)),tr}let nr;function ek(){const e=vt(),t=yd();let n=!1;function o(){const i=e.navigator.userAgent.toLowerCase();return i.indexOf("safari")>=0&&i.indexOf("chrome")<0&&i.indexOf("android")<0}if(o()){const i=String(e.navigator.userAgent);if(i.includes("Version/")){const[l,c]=i.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));n=l<16||l===16&&c<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),r=o(),a=r||s&&t.ios;return{isSafari:n||r,needPerspectiveFix:n,need3dFix:a,isWebView:s}}function tk(){return nr||(nr=ek()),nr}function nk(e){let{swiper:t,on:n,emit:o}=e;const s=vt();let r=null,a=null;const i=()=>{!t||t.destroyed||!t.initialized||(o("beforeResize"),o("resize"))},l=()=>{!t||t.destroyed||!t.initialized||(r=new ResizeObserver(f=>{a=s.requestAnimationFrame(()=>{const{width:v,height:h}=t;let m=v,p=h;f.forEach(b=>{let{contentBoxSize:y,contentRect:$,target:S}=b;S&&S!==t.el||(m=$?$.width:(y[0]||y).inlineSize,p=$?$.height:(y[0]||y).blockSize)}),(m!==v||p!==h)&&i()})}),r.observe(t.el))},c=()=>{a&&s.cancelAnimationFrame(a),r&&r.unobserve&&t.el&&(r.unobserve(t.el),r=null)},d=()=>{!t||t.destroyed||!t.initialized||o("orientationchange")};n("init",()=>{if(t.params.resizeObserver&&typeof s.ResizeObserver<"u"){l();return}s.addEventListener("resize",i),s.addEventListener("orientationchange",d)}),n("destroy",()=>{c(),s.removeEventListener("resize",i),s.removeEventListener("orientationchange",d)})}function ok(e){let{swiper:t,extendParams:n,on:o,emit:s}=e;const r=[],a=vt(),i=function(d,f){f===void 0&&(f={});const v=a.MutationObserver||a.WebkitMutationObserver,h=new v(m=>{if(t.__preventObserver__)return;if(m.length===1){s("observerUpdate",m[0]);return}const p=function(){s("observerUpdate",m[0])};a.requestAnimationFrame?a.requestAnimationFrame(p):a.setTimeout(p,0)});h.observe(d,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:typeof f.childList>"u"?!0:f.childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),r.push(h)},l=()=>{if(t.params.observer){if(t.params.observeParents){const d=Q7(t.hostEl);for(let f=0;f{r.forEach(d=>{d.disconnect()}),r.splice(0,r.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),o("init",l),o("destroy",c)}var sk={on(e,t,n){const o=this;if(!o.eventsListeners||o.destroyed||typeof t!="function")return o;const s=n?"unshift":"push";return e.split(" ").forEach(r=>{o.eventsListeners[r]||(o.eventsListeners[r]=[]),o.eventsListeners[r][s](t)}),o},once(e,t,n){const o=this;if(!o.eventsListeners||o.destroyed||typeof t!="function")return o;function s(){o.off(e,s),s.__emitterProxy&&delete s.__emitterProxy;for(var r=arguments.length,a=new Array(r),i=0;i=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(o=>{typeof t>"u"?n.eventsListeners[o]=[]:n.eventsListeners[o]&&n.eventsListeners[o].forEach((s,r)=>{(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&n.eventsListeners[o].splice(r,1)})}),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,n,o;for(var s=arguments.length,r=new Array(s),a=0;a{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(c=>{c.apply(o,[l,...n])}),e.eventsListeners&&e.eventsListeners[l]&&e.eventsListeners[l].forEach(c=>{c.apply(o,n)})}),e}};function rk(){const e=this;let t,n;const o=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=o.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=o.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(gn(o,"padding-left")||0,10)-parseInt(gn(o,"padding-right")||0,10),n=n-parseInt(gn(o,"padding-top")||0,10)-parseInt(gn(o,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function ak(){const e=this;function t(z,F){return parseFloat(z.getPropertyValue(e.getDirectionLabel(F))||0)}const n=e.params,{wrapperEl:o,slidesEl:s,size:r,rtlTranslate:a,wrongRTL:i}=e,l=e.virtual&&n.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,d=en(s,`.${e.params.slideClass}, swiper-slide`),f=l?e.virtual.slides.length:d.length;let v=[];const h=[],m=[];let p=n.slidesOffsetBefore;typeof p=="function"&&(p=n.slidesOffsetBefore.call(e));let b=n.slidesOffsetAfter;typeof b=="function"&&(b=n.slidesOffsetAfter.call(e));const y=e.snapGrid.length,$=e.slidesGrid.length;let S=n.spaceBetween,T=-p,M=0,x=0;if(typeof r>"u")return;typeof S=="string"&&S.indexOf("%")>=0?S=parseFloat(S.replace("%",""))/100*r:typeof S=="string"&&(S=parseFloat(S)),e.virtualSize=-S,d.forEach(z=>{a?z.style.marginLeft="":z.style.marginRight="",z.style.marginBottom="",z.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(Yo(o,"--swiper-centered-offset-before",""),Yo(o,"--swiper-centered-offset-after",""));const P=n.grid&&n.grid.rows>1&&e.grid;P?e.grid.initSlides(d):e.grid&&e.grid.unsetSlides();let E;const j=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(z=>typeof n.breakpoints[z].slidesPerView<"u").length>0;for(let z=0;z1&&v.push(e.virtualSize-r)}if(l&&n.loop){const z=m[0]+S;if(n.slidesPerGroup>1){const F=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),V=z*n.slidesPerGroup;for(let U=0;U!n.cssMode||n.loop?!0:V!==d.length-1).forEach(F=>{F.style[z]=`${S}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let z=0;m.forEach(V=>{z+=V+(S||0)}),z-=S;const F=z-r;v=v.map(V=>V<=0?-p:V>F?F+b:V)}if(n.centerInsufficientSlides){let z=0;m.forEach(V=>{z+=V+(S||0)}),z-=S;const F=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(z+F{v[Z]=U-V}),h.forEach((U,Z)=>{h[Z]=U+V})}}if(Object.assign(e,{slides:d,snapGrid:v,slidesGrid:h,slidesSizesGrid:m}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){Yo(o,"--swiper-centered-offset-before",`${-v[0]}px`),Yo(o,"--swiper-centered-offset-after",`${e.size/2-m[m.length-1]/2}px`);const z=-e.snapGrid[0],F=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(V=>V+z),e.slidesGrid=e.slidesGrid.map(V=>V+F)}if(f!==c&&e.emit("slidesLengthChange"),v.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==$&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!l&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const z=`${n.containerModifierClass}backface-hidden`,F=e.el.classList.contains(z);f<=n.maxBackfaceHiddenSlides?F||e.el.classList.add(z):F&&e.el.classList.remove(z)}}function ik(e){const t=this,n=[],o=t.virtual&&t.params.virtual.enabled;let s=0,r;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const a=i=>o?t.slides[t.getSlideIndexByData(i)]:t.slides[i];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(i=>{n.push(i)});else for(r=0;rt.slides.length&&!o)break;n.push(a(i))}else n.push(a(t.activeIndex));for(r=0;rs?i:s}(s||s===0)&&(t.wrapperEl.style.height=`${s}px`)}function lk(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let o=0;o{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function ck(e){e===void 0&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:o,rtlTranslate:s,snapGrid:r}=t;if(o.length===0)return;typeof o[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let a=-e;s&&(a=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let i=n.spaceBetween;typeof i=="string"&&i.indexOf("%")>=0?i=parseFloat(i.replace("%",""))/100*t.size:typeof i=="string"&&(i=parseFloat(i));for(let l=0;l=0&&h<=t.size-t.slidesSizesGrid[l],b=h>=0&&h1&&m<=t.size||h<=0&&m>=t.size;b&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(l)),Al(c,b,n.slideVisibleClass),Al(c,p,n.slideFullyVisibleClass),c.progress=s?-f:f,c.originalProgress=s?-v:v}}function uk(e){const t=this;if(typeof e>"u"){const d=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*d||0}const n=t.params,o=t.maxTranslate()-t.minTranslate();let{progress:s,isBeginning:r,isEnd:a,progressLoop:i}=t;const l=r,c=a;if(o===0)s=0,r=!0,a=!0;else{s=(e-t.minTranslate())/o;const d=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;r=d||s<=0,a=f||s>=1,d&&(s=0),f&&(s=1)}if(n.loop){const d=t.getSlideIndexByData(0),f=t.getSlideIndexByData(t.slides.length-1),v=t.slidesGrid[d],h=t.slidesGrid[f],m=t.slidesGrid[t.slidesGrid.length-1],p=Math.abs(e);p>=v?i=(p-v)/m:i=(p+m-h)/m,i>1&&(i-=1)}Object.assign(t,{progress:s,progressLoop:i,isBeginning:r,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),r&&!l&&t.emit("reachBeginning toEdge"),a&&!c&&t.emit("reachEnd toEdge"),(l&&!r||c&&!a)&&t.emit("fromEdge"),t.emit("progress",s)}const or=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function dk(){const e=this,{slides:t,params:n,slidesEl:o,activeIndex:s}=e,r=e.virtual&&n.virtual.enabled,a=e.grid&&n.grid&&n.grid.rows>1,i=f=>en(o,`.${n.slideClass}${f}, swiper-slide${f}`)[0];let l,c,d;if(r)if(n.loop){let f=s-e.virtual.slidesBefore;f<0&&(f=e.virtual.slides.length+f),f>=e.virtual.slides.length&&(f-=e.virtual.slides.length),l=i(`[data-swiper-slide-index="${f}"]`)}else l=i(`[data-swiper-slide-index="${s}"]`);else a?(l=t.filter(f=>f.column===s)[0],d=t.filter(f=>f.column===s+1)[0],c=t.filter(f=>f.column===s-1)[0]):l=t[s];l&&(a||(d=X7(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d&&(d=t[0]),c=Y7(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c===0&&(c=t[t.length-1]))),t.forEach(f=>{or(f,f===l,n.slideActiveClass),or(f,f===d,n.slideNextClass),or(f,f===c,n.slidePrevClass)}),e.emitSlidesClasses()}const ns=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,o=t.closest(n());if(o){let s=o.querySelector(`.${e.params.lazyPreloaderClass}`);!s&&e.isElement&&(o.shadowRoot?s=o.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{o.shadowRoot&&(s=o.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),s&&s.remove())})),s&&s.remove()}},sr=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Hr=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const o=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),s=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const a=s,i=[a-t];i.push(...Array.from({length:t}).map((l,c)=>a+o+c)),e.slides.forEach((l,c)=>{i.includes(l.column)&&sr(e,c)});return}const r=s+o-1;if(e.params.rewind||e.params.loop)for(let a=s-t;a<=r+t;a+=1){const i=(a%n+n)%n;(ir)&&sr(e,i)}else for(let a=Math.max(s-t,0);a<=Math.min(r+t,n-1);a+=1)a!==s&&(a>r||a=t[r]&&o=t[r]&&o=t[r]&&(s=r);return n.normalizeSlideIndex&&(s<0||typeof s>"u")&&(s=0),s}function pk(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:o,params:s,activeIndex:r,realIndex:a,snapIndex:i}=t;let l=e,c;const d=h=>{let m=h-t.virtual.slidesBefore;return m<0&&(m=t.virtual.slides.length+m),m>=t.virtual.slides.length&&(m-=t.virtual.slides.length),m};if(typeof l>"u"&&(l=fk(t)),o.indexOf(n)>=0)c=o.indexOf(n);else{const h=Math.min(s.slidesPerGroupSkip,l);c=h+Math.floor((l-h)/s.slidesPerGroup)}if(c>=o.length&&(c=o.length-1),l===r&&!t.params.loop){c!==i&&(t.snapIndex=c,t.emit("snapIndexChange"));return}if(l===r&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=d(l);return}const f=t.grid&&s.grid&&s.grid.rows>1;let v;if(t.virtual&&s.virtual.enabled&&s.loop)v=d(l);else if(f){const h=t.slides.filter(p=>p.column===l)[0];let m=parseInt(h.getAttribute("data-swiper-slide-index"),10);Number.isNaN(m)&&(m=Math.max(t.slides.indexOf(h),0)),v=Math.floor(m/s.grid.rows)}else if(t.slides[l]){const h=t.slides[l].getAttribute("data-swiper-slide-index");h?v=parseInt(h,10):v=l}else v=l;Object.assign(t,{previousSnapIndex:i,snapIndex:c,previousRealIndex:a,realIndex:v,previousIndex:r,activeIndex:l}),t.initialized&&Hr(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(a!==v&&t.emit("realIndexChange"),t.emit("slideChange"))}function vk(e,t){const n=this,o=n.params;let s=e.closest(`.${o.slideClass}, swiper-slide`);!s&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(i=>{!s&&i.matches&&i.matches(`.${o.slideClass}, swiper-slide`)&&(s=i)});let r=!1,a;if(s){for(let i=0;il?d=l:o&&ea?i="next":r"u"&&(t=r.params.speed);const p=Math.min(r.params.slidesPerGroupSkip,a);let b=p+Math.floor((a-p)/r.params.slidesPerGroup);b>=l.length&&(b=l.length-1);const y=-l[b];if(i.normalizeSlideIndex)for(let S=0;S=M&&T=M&&T=M&&(a=S)}if(r.initialized&&a!==f&&(!r.allowSlideNext&&(v?y>r.translate&&y>r.minTranslate():yr.translate&&y>r.maxTranslate()&&(f||0)!==a))return!1;a!==(d||0)&&n&&r.emit("beforeSlideChangeStart"),r.updateProgress(y);let $;if(a>f?$="next":a0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[S?"scrollLeft":"scrollTop"]=T})):h[S?"scrollLeft":"scrollTop"]=T,M&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1})}else{if(!r.support.smoothScroll)return md({swiper:r,targetPosition:T,side:S?"left":"top"}),!0;h.scrollTo({[S?"left":"top"]:T,behavior:"smooth"})}return!0}return r.setTransition(t),r.setTranslate(y),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,o),r.transitionStart(n,$),t===0?r.transitionEnd(n,$):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(T){!r||r.destroyed||T.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(n,$))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0}function Mk(e,t,n,o){e===void 0&&(e=0),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const s=this;if(s.destroyed)return;typeof t>"u"&&(t=s.params.speed);const r=s.grid&&s.params.grid&&s.params.grid.rows>1;let a=e;if(s.params.loop)if(s.virtual&&s.params.virtual.enabled)a=a+s.virtual.slidesBefore;else{let i;if(r){const v=a*s.params.grid.rows;i=s.slides.filter(h=>h.getAttribute("data-swiper-slide-index")*1===v)[0].column}else i=s.getSlideIndexByData(a);const l=r?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:c}=s.params;let d=s.params.slidesPerView;d==="auto"?d=s.slidesPerViewDynamic():(d=Math.ceil(parseFloat(s.params.slidesPerView,10)),c&&d%2===0&&(d=d+1));let f=l-ih.getAttribute("data-swiper-slide-index")*1===v)[0].column}else a=s.getSlideIndexByData(a)}return requestAnimationFrame(()=>{s.slideTo(a,t,n,o)}),s}function Ek(e,t,n){t===void 0&&(t=!0);const o=this,{enabled:s,params:r,animating:a}=o;if(!s||o.destroyed)return o;typeof e>"u"&&(e=o.params.speed);let i=r.slidesPerGroup;r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(i=Math.max(o.slidesPerViewDynamic("current",!0),1));const l=o.activeIndex{o.slideTo(o.activeIndex+l,e,t,n)}),!0}return r.rewind&&o.isEnd?o.slideTo(0,e,t,n):o.slideTo(o.activeIndex+l,e,t,n)}function Ik(e,t,n){t===void 0&&(t=!0);const o=this,{params:s,snapGrid:r,slidesGrid:a,rtlTranslate:i,enabled:l,animating:c}=o;if(!l||o.destroyed)return o;typeof e>"u"&&(e=o.params.speed);const d=o.virtual&&s.virtual.enabled;if(s.loop){if(c&&!d&&s.loopPreventsSliding)return!1;o.loopFix({direction:"prev"}),o._clientLeft=o.wrapperEl.clientLeft}const f=i?o.translate:-o.translate;function v(y){return y<0?-Math.floor(Math.abs(y)):Math.floor(y)}const h=v(f),m=r.map(y=>v(y));let p=r[m.indexOf(h)-1];if(typeof p>"u"&&s.cssMode){let y;r.forEach(($,S)=>{h>=$&&(y=S)}),typeof y<"u"&&(p=r[y>0?y-1:y])}let b=0;if(typeof p<"u"&&(b=a.indexOf(p),b<0&&(b=o.activeIndex-1),s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(b=b-o.slidesPerViewDynamic("previous",!0)+1,b=Math.max(b,0))),s.rewind&&o.isBeginning){const y=o.params.virtual&&o.params.virtual.enabled&&o.virtual?o.virtual.slides.length-1:o.slides.length-1;return o.slideTo(y,e,t,n)}else if(s.loop&&o.activeIndex===0&&s.cssMode)return requestAnimationFrame(()=>{o.slideTo(b,e,t,n)}),!0;return o.slideTo(b,e,t,n)}function Pk(e,t,n){t===void 0&&(t=!0);const o=this;if(!o.destroyed)return typeof e>"u"&&(e=o.params.speed),o.slideTo(o.activeIndex,e,t,n)}function xk(e,t,n,o){t===void 0&&(t=!0),o===void 0&&(o=.5);const s=this;if(s.destroyed)return;typeof e>"u"&&(e=s.params.speed);let r=s.activeIndex;const a=Math.min(s.params.slidesPerGroupSkip,r),i=a+Math.floor((r-a)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[i]){const c=s.snapGrid[i],d=s.snapGrid[i+1];l-c>(d-c)*o&&(r+=s.params.slidesPerGroup)}else{const c=s.snapGrid[i-1],d=s.snapGrid[i];l-c<=(d-c)*o&&(r-=s.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,s.slidesGrid.length-1),s.slideTo(r,e,t,n)}function Ak(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,o=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let s=e.clickedIndex,r;const a=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;r=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?se.slides.length-e.loopedSlides+o/2?(e.loopFix(),s=e.getSlideIndex(en(n,`${a}[data-swiper-slide-index="${r}"]`)[0]),Rr(()=>{e.slideTo(s)})):e.slideTo(s):s>e.slides.length-o?(e.loopFix(),s=e.getSlideIndex(en(n,`${a}[data-swiper-slide-index="${r}"]`)[0]),Rr(()=>{e.slideTo(s)})):e.slideTo(s)}else e.slideTo(s)}var Lk={slideTo:Ck,slideToLoop:Mk,slideNext:Ek,slidePrev:Ik,slideReset:Pk,slideToClosest:xk,slideToClickedSlide:Ak};function Ok(e){const t=this,{params:n,slidesEl:o}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;const s=()=>{en(o,`.${n.slideClass}, swiper-slide`).forEach((f,v)=>{f.setAttribute("data-swiper-slide-index",v)})},r=t.grid&&n.grid&&n.grid.rows>1,a=n.slidesPerGroup*(r?n.grid.rows:1),i=t.slides.length%a!==0,l=r&&t.slides.length%n.grid.rows!==0,c=d=>{for(let f=0;f1;c.length"u"?r=l.getSlideIndex(c.filter(U=>U.classList.contains(h.slideActiveClass))[0]):M=r;const x=o==="next"||!o,P=o==="prev"||!o;let E=0,j=0;const z=$?Math.ceil(c.length/h.grid.rows):c.length,V=($?c[r].column:r)+(m&&typeof s>"u"?-p/2+.5:0);if(V=0;oe-=1)c[oe].column===te&&S.push(oe)}else S.push(z-Z-1)}}else if(V+p>z-y){j=Math.max(V-(z-y*2),b);for(let U=0;U{te.column===Z&&T.push(oe)}):T.push(Z)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),P&&S.forEach(U=>{c[U].swiperLoopMoveDOM=!0,v.prepend(c[U]),c[U].swiperLoopMoveDOM=!1}),x&&T.forEach(U=>{c[U].swiperLoopMoveDOM=!0,v.append(c[U]),c[U].swiperLoopMoveDOM=!1}),l.recalcSlides(),h.slidesPerView==="auto"?l.updateSlides():$&&(S.length>0&&P||T.length>0&&x)&&l.slides.forEach((U,Z)=>{l.grid.updateSlide(Z,U,l.slides)}),h.watchSlidesProgress&&l.updateSlidesOffset(),n){if(S.length>0&&P){if(typeof t>"u"){const U=l.slidesGrid[M],te=l.slidesGrid[M+E]-U;i?l.setTranslate(l.translate-te):(l.slideTo(M+Math.ceil(E),0,!1,!0),s&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-te,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-te))}else if(s){const U=$?S.length/h.grid.rows:S.length;l.slideTo(l.activeIndex+U,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(T.length>0&&x)if(typeof t>"u"){const U=l.slidesGrid[M],te=l.slidesGrid[M-j]-U;i?l.setTranslate(l.translate-te):(l.slideTo(M-j,0,!1,!0),s&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-te,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-te))}else{const U=$?T.length/h.grid.rows:T.length;l.slideTo(l.activeIndex-U,0,!1,!0)}}if(l.allowSlidePrev=d,l.allowSlideNext=f,l.controller&&l.controller.control&&!a){const U={slideRealIndex:t,direction:o,setTranslate:s,activeSlideIndex:r,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(Z=>{!Z.destroyed&&Z.params.loop&&Z.loopFix({...U,slideTo:Z.params.slidesPerView===h.slidesPerView?n:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...U,slideTo:l.controller.control.params.slidesPerView===h.slidesPerView?n:!1})}l.emit("loopFix")}function Bk(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const o=[];e.slides.forEach(s=>{const r=typeof s.swiperSlideIndex>"u"?s.getAttribute("data-swiper-slide-index")*1:s.swiperSlideIndex;o[r]=s}),e.slides.forEach(s=>{s.removeAttribute("data-swiper-slide-index")}),o.forEach(s=>{n.append(s)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var Nk={loopCreate:Ok,loopFix:zk,loopDestroy:Bk};function Vk(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function Fk(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var Rk={setGrabCursor:Vk,unsetGrabCursor:Fk};function Dk(e,t){t===void 0&&(t=this);function n(o){if(!o||o===io()||o===vt())return null;o.assignedSlot&&(o=o.assignedSlot);const s=o.closest(e);return!s&&!o.getRootNode?null:s||n(o.getRootNode().host)}return n(t)}function Ll(e,t,n){const o=vt(),{params:s}=e,r=s.edgeSwipeDetection,a=s.edgeSwipeThreshold;return r&&(n<=a||n>=o.innerWidth-a)?r==="prevent"?(t.preventDefault(),!0):!1:!0}function Hk(e){const t=this,n=io();let o=e;o.originalEvent&&(o=o.originalEvent);const s=t.touchEventsData;if(o.type==="pointerdown"){if(s.pointerId!==null&&s.pointerId!==o.pointerId)return;s.pointerId=o.pointerId}else o.type==="touchstart"&&o.targetTouches.length===1&&(s.touchId=o.targetTouches[0].identifier);if(o.type==="touchstart"){Ll(t,o,o.targetTouches[0].pageX);return}const{params:r,touches:a,enabled:i}=t;if(!i||!r.simulateTouch&&o.pointerType==="mouse"||t.animating&&r.preventInteractionOnTransition)return;!t.animating&&r.cssMode&&r.loop&&t.loopFix();let l=o.target;if(r.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(l)||"which"in o&&o.which===3||"button"in o&&o.button>0||s.isTouched&&s.isMoved)return;const c=!!r.noSwipingClass&&r.noSwipingClass!=="",d=o.composedPath?o.composedPath():o.path;c&&o.target&&o.target.shadowRoot&&d&&(l=d[0]);const f=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,v=!!(o.target&&o.target.shadowRoot);if(r.noSwiping&&(v?Dk(f,l):l.closest(f))){t.allowClick=!0;return}if(r.swipeHandler&&!l.closest(r.swipeHandler))return;a.currentX=o.pageX,a.currentY=o.pageY;const h=a.currentX,m=a.currentY;if(!Ll(t,o,h))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=h,a.startY=m,s.touchStartTime=gs(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,r.threshold>0&&(s.allowThresholdMove=!1);let p=!0;l.matches(s.focusableElements)&&(p=!1,l.nodeName==="SELECT"&&(s.isTouched=!1)),n.activeElement&&n.activeElement.matches(s.focusableElements)&&n.activeElement!==l&&n.activeElement.blur();const b=p&&t.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||b)&&!l.isContentEditable&&o.preventDefault(),r.freeMode&&r.freeMode.enabled&&t.freeMode&&t.animating&&!r.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",o)}function jk(e){const t=io(),n=this,o=n.touchEventsData,{params:s,touches:r,rtlTranslate:a,enabled:i}=n;if(!i||!s.simulateTouch&&e.pointerType==="mouse")return;let l=e;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(o.touchId!==null||l.pointerId!==o.pointerId))return;let c;if(l.type==="touchmove"){if(c=[...l.changedTouches].filter(x=>x.identifier===o.touchId)[0],!c||c.identifier!==o.touchId)return}else c=l;if(!o.isTouched){o.startMoving&&o.isScrolling&&n.emit("touchMoveOpposite",l);return}const d=c.pageX,f=c.pageY;if(l.preventedByNestedSwiper){r.startX=d,r.startY=f;return}if(!n.allowTouchMove){l.target.matches(o.focusableElements)||(n.allowClick=!1),o.isTouched&&(Object.assign(r,{startX:d,startY:f,currentX:d,currentY:f}),o.touchStartTime=gs());return}if(s.touchReleaseOnEdges&&!s.loop){if(n.isVertical()){if(fr.startY&&n.translate>=n.minTranslate()){o.isTouched=!1,o.isMoved=!1;return}}else if(dr.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&l.target===t.activeElement&&l.target.matches(o.focusableElements)){o.isMoved=!0,n.allowClick=!1;return}o.allowTouchCallbacks&&n.emit("touchMove",l),r.previousX=r.currentX,r.previousY=r.currentY,r.currentX=d,r.currentY=f;const v=r.currentX-r.startX,h=r.currentY-r.startY;if(n.params.threshold&&Math.sqrt(v**2+h**2)"u"){let x;n.isHorizontal()&&r.currentY===r.startY||n.isVertical()&&r.currentX===r.startX?o.isScrolling=!1:v*v+h*h>=25&&(x=Math.atan2(Math.abs(h),Math.abs(v))*180/Math.PI,o.isScrolling=n.isHorizontal()?x>s.touchAngle:90-x>s.touchAngle)}if(o.isScrolling&&n.emit("touchMoveOpposite",l),typeof o.startMoving>"u"&&(r.currentX!==r.startX||r.currentY!==r.startY)&&(o.startMoving=!0),o.isScrolling||l.type==="touchmove"&&o.preventTouchMoveFromPointerMove){o.isTouched=!1;return}if(!o.startMoving)return;n.allowClick=!1,!s.cssMode&&l.cancelable&&l.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&l.stopPropagation();let m=n.isHorizontal()?v:h,p=n.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;s.oneWayMovement&&(m=Math.abs(m)*(a?1:-1),p=Math.abs(p)*(a?1:-1)),r.diff=m,m*=s.touchRatio,a&&(m=-m,p=-p);const b=n.touchesDirection;n.swipeDirection=m>0?"prev":"next",n.touchesDirection=p>0?"prev":"next";const y=n.params.loop&&!s.cssMode,$=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!o.isMoved){if(y&&$&&n.loopFix({direction:n.swipeDirection}),o.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const x=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(x)}o.allowMomentumBounce=!1,s.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let S;if(new Date().getTime(),o.isMoved&&o.allowThresholdMove&&b!==n.touchesDirection&&y&&$&&Math.abs(m)>=1){Object.assign(r,{startX:d,startY:f,currentX:d,currentY:f,startTranslate:o.currentTranslate}),o.loopSwapReset=!0,o.startTranslate=o.currentTranslate;return}n.emit("sliderMove",l),o.isMoved=!0,o.currentTranslate=m+o.startTranslate;let T=!0,M=s.resistanceRatio;if(s.touchReleaseOnEdges&&(M=0),m>0?(y&&$&&!S&&o.allowThresholdMove&&o.currentTranslate>(s.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),o.currentTranslate>n.minTranslate()&&(T=!1,s.resistance&&(o.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+o.startTranslate+m)**M))):m<0&&(y&&$&&!S&&o.allowThresholdMove&&o.currentTranslate<(s.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(s.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),o.currentTranslateo.startTranslate&&(o.currentTranslate=o.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(o.currentTranslate=o.startTranslate),s.threshold>0)if(Math.abs(m)>s.threshold||o.allowThresholdMove){if(!o.allowThresholdMove){o.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,o.currentTranslate=o.startTranslate,r.diff=n.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY;return}}else{o.currentTranslate=o.startTranslate;return}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&n.freeMode||s.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(o.currentTranslate),n.setTranslate(o.currentTranslate))}function Wk(e){const t=this,n=t.touchEventsData;let o=e;o.originalEvent&&(o=o.originalEvent);let s;if(o.type==="touchend"||o.type==="touchcancel"){if(s=[...o.changedTouches].filter(M=>M.identifier===n.touchId)[0],!s||s.identifier!==n.touchId)return}else{if(n.touchId!==null||o.pointerId!==n.pointerId)return;s=o}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(o.type)&&!(["pointercancel","contextmenu"].includes(o.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:a,touches:i,rtlTranslate:l,slidesGrid:c,enabled:d}=t;if(!d||!a.simulateTouch&&o.pointerType==="mouse")return;if(n.allowTouchCallbacks&&t.emit("touchEnd",o),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const f=gs(),v=f-n.touchStartTime;if(t.allowClick){const M=o.path||o.composedPath&&o.composedPath();t.updateClickedSlide(M&&M[0]||o.target,M),t.emit("tap click",o),v<300&&f-n.lastClickTime<300&&t.emit("doubleTap doubleClick",o)}if(n.lastClickTime=gs(),Rr(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||i.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let h;if(a.followFinger?h=l?t.translate:-t.translate:h=-n.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:h});return}const m=h>=-t.maxTranslate()&&!t.params.loop;let p=0,b=t.slidesSizesGrid[0];for(let M=0;M=c[M]&&h=c[M])&&(p=M,b=c[c.length-1]-c[c.length-2])}let y=null,$=null;a.rewind&&(t.isBeginning?$=a.virtual&&a.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(y=0));const S=(h-c[p])/b,T=pa.longSwipesMs){if(!a.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(S>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?y:p+T):t.slideTo(p)),t.swipeDirection==="prev"&&(S>1-a.longSwipesRatio?t.slideTo(p+T):$!==null&&S<0&&Math.abs(S)>a.longSwipesRatio?t.slideTo($):t.slideTo(p))}else{if(!a.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(o.target===t.navigation.nextEl||o.target===t.navigation.prevEl)?o.target===t.navigation.nextEl?t.slideTo(p+T):t.slideTo(p):(t.swipeDirection==="next"&&t.slideTo(y!==null?y:p+T),t.swipeDirection==="prev"&&t.slideTo($!==null?$:p))}}function Ol(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:o,allowSlidePrev:s,snapGrid:r}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const i=a&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!i?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=s,e.allowSlideNext=o,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function Gk(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Uk(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:o}=e;if(!o)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let s;const r=e.maxTranslate()-e.minTranslate();r===0?s=0:s=(e.translate-e.minTranslate())/r,s!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function qk(e){const t=this;ns(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function Kk(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const _d=(e,t)=>{const n=io(),{params:o,el:s,wrapperEl:r,device:a}=e,i=!!o.nested,l=t==="on"?"addEventListener":"removeEventListener",c=t;!s||typeof s=="string"||(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:i}),s[l]("touchstart",e.onTouchStart,{passive:!1}),s[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:i}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:i}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(o.preventClicks||o.preventClicksPropagation)&&s[l]("click",e.onClick,!0),o.cssMode&&r[l]("scroll",e.onScroll),o.updateOnWindowResize?e[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",Ol,!0):e[c]("observerUpdate",Ol,!0),s[l]("load",e.onLoad,{capture:!0}))};function Yk(){const e=this,{params:t}=e;e.onTouchStart=Hk.bind(e),e.onTouchMove=jk.bind(e),e.onTouchEnd=Wk.bind(e),e.onDocumentTouchStart=Kk.bind(e),t.cssMode&&(e.onScroll=Uk.bind(e)),e.onClick=Gk.bind(e),e.onLoad=qk.bind(e),_d(e,"on")}function Xk(){_d(this,"off")}var Qk={attachEvents:Yk,detachEvents:Xk};const zl=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function Zk(){const e=this,{realIndex:t,initialized:n,params:o,el:s}=e,r=o.breakpoints;if(!r||r&&Object.keys(r).length===0)return;const a=e.getBreakpoint(r,e.params.breakpointsBase,e.el);if(!a||e.currentBreakpoint===a)return;const l=(a in r?r[a]:void 0)||e.originalParams,c=zl(e,o),d=zl(e,l),f=e.params.grabCursor,v=l.grabCursor,h=o.enabled;c&&!d?(s.classList.remove(`${o.containerModifierClass}grid`,`${o.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&d&&(s.classList.add(`${o.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&o.grid.fill==="column")&&s.classList.add(`${o.containerModifierClass}grid-column`),e.emitContainerClasses()),f&&!v?e.unsetGrabCursor():!f&&v&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(S=>{if(typeof l[S]>"u")return;const T=o[S]&&o[S].enabled,M=l[S]&&l[S].enabled;T&&!M&&e[S].disable(),!T&&M&&e[S].enable()});const m=l.direction&&l.direction!==o.direction,p=o.loop&&(l.slidesPerView!==o.slidesPerView||m),b=o.loop;m&&n&&e.changeDirection(),ct(e.params,l);const y=e.params.enabled,$=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),h&&!y?e.disable():!h&&y&&e.enable(),e.currentBreakpoint=a,e.emit("_beforeBreakpoint",l),n&&(p?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!b&&$?(e.loopCreate(t),e.updateSlides()):b&&!$&&e.loopDestroy()),e.emit("breakpoint",l)}function Jk(e,t,n){if(t===void 0&&(t="window"),!e||t==="container"&&!n)return;let o=!1;const s=vt(),r=t==="window"?s.innerHeight:n.clientHeight,a=Object.keys(e).map(i=>{if(typeof i=="string"&&i.indexOf("@")===0){const l=parseFloat(i.substr(1));return{value:r*l,point:i}}return{value:i,point:i}});a.sort((i,l)=>parseInt(i.value,10)-parseInt(l.value,10));for(let i=0;i{typeof o=="object"?Object.keys(o).forEach(s=>{o[s]&&n.push(t+s)}):typeof o=="string"&&n.push(t+o)}),n}function n$(){const e=this,{classNames:t,params:n,rtl:o,el:s,device:r}=e,a=t$(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:o},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:r.android},{ios:r.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),s.classList.add(...t),e.emitContainerClasses()}function o$(){const e=this,{el:t,classNames:n}=e;!t||typeof t=="string"||(t.classList.remove(...n),e.emitContainerClasses())}var s$={addClasses:n$,removeClasses:o$};function r$(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:o}=n;if(o){const s=e.slides.length-1,r=e.slidesGrid[s]+e.slidesSizesGrid[s]+o*2;e.isLocked=e.size>r}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var a$={checkOverflow:r$},Bl={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function i$(e,t){return function(o){o===void 0&&(o={});const s=Object.keys(o)[0],r=o[s];if(typeof r!="object"||r===null){ct(t,o);return}if(e[s]===!0&&(e[s]={enabled:!0}),s==="navigation"&&e[s]&&e[s].enabled&&!e[s].prevEl&&!e[s].nextEl&&(e[s].auto=!0),["pagination","scrollbar"].indexOf(s)>=0&&e[s]&&e[s].enabled&&!e[s].el&&(e[s].auto=!0),!(s in e&&"enabled"in r)){ct(t,o);return}typeof e[s]=="object"&&!("enabled"in e[s])&&(e[s].enabled=!0),e[s]||(e[s]={enabled:!1}),ct(t,o)}}const rr={eventsEmitter:sk,update:hk,translate:wk,transition:Tk,slide:Lk,loop:Nk,grabCursor:Rk,events:Qk,breakpoints:e$,checkOverflow:a$,classes:s$},ar={};class ht{constructor(){let t,n;for(var o=arguments.length,s=new Array(o),r=0;r1){const d=[];return a.querySelectorAll(n.el).forEach(f=>{const v=ct({},n,{el:f});d.push(new ht(v))}),d}const i=this;i.__swiper__=!0,i.support=gd(),i.device=yd({userAgent:n.userAgent}),i.browser=tk(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],n.modules&&Array.isArray(n.modules)&&i.modules.push(...n.modules);const l={};i.modules.forEach(d=>{d({params:n,swiper:i,extendParams:i$(n,l),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const c=ct({},Bl,l);return i.params=ct({},c,ar,n),i.originalParams=ct({},i.params),i.passedParams=ct({},n),i.params&&i.params.on&&Object.keys(i.params.on).forEach(d=>{i.on(d,i.params.on[d])}),i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return i.params.direction==="horizontal"},isVertical(){return i.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:n,params:o}=this,s=en(n,`.${o.slideClass}, swiper-slide`),r=Pl(s[0]);return Pl(t)-r}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:o}=t;t.slides=en(n,`.${o.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const o=this;t=Math.min(Math.max(t,0),1);const s=o.minTranslate(),a=(o.maxTranslate()-s)*t+s;o.translateTo(a,typeof n>"u"?0:n),o.updateActiveIndex(),o.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(o=>o.indexOf("swiper")===0||o.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(o=>o.indexOf("swiper-slide")===0||o.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(o=>{const s=t.getSlideClasses(o);n.push({slideEl:o,classNames:s}),t.emit("_slideClass",o,s)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t,n){t===void 0&&(t="current"),n===void 0&&(n=!1);const o=this,{params:s,slides:r,slidesGrid:a,slidesSizesGrid:i,size:l,activeIndex:c}=o;let d=1;if(typeof s.slidesPerView=="number")return s.slidesPerView;if(s.centeredSlides){let f=r[c]?Math.ceil(r[c].swiperSlideSize):0,v;for(let h=c+1;hl&&(v=!0));for(let h=c-1;h>=0;h-=1)r[h]&&!v&&(f+=r[h].swiperSlideSize,d+=1,f>l&&(v=!0))}else if(t==="current")for(let f=c+1;f=0;f-=1)a[c]-a[f]{a.complete&&ns(t,a)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function s(){const a=t.rtlTranslate?t.translate*-1:t.translate,i=Math.min(Math.max(a,t.maxTranslate()),t.minTranslate());t.setTranslate(i),t.updateActiveIndex(),t.updateSlidesClasses()}let r;if(o.freeMode&&o.freeMode.enabled&&!o.cssMode)s(),o.autoHeight&&t.updateAutoHeight();else{if((o.slidesPerView==="auto"||o.slidesPerView>1)&&t.isEnd&&!o.centeredSlides){const a=t.virtual&&o.virtual.enabled?t.virtual.slides:t.slides;r=t.slideTo(a.length-1,0,!1,!0)}else r=t.slideTo(t.activeIndex,0,!1,!0);r||s()}o.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n){n===void 0&&(n=!0);const o=this,s=o.params.direction;return t||(t=s==="horizontal"?"vertical":"horizontal"),t===s||t!=="horizontal"&&t!=="vertical"||(o.el.classList.remove(`${o.params.containerModifierClass}${s}`),o.el.classList.add(`${o.params.containerModifierClass}${t}`),o.emitContainerClasses(),o.params.direction=t,o.slides.forEach(r=>{t==="vertical"?r.style.width="":r.style.height=""}),o.emit("changeDirection"),n&&o.update()),o}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let o=t||n.params.el;if(typeof o=="string"&&(o=document.querySelector(o)),!o)return!1;o.swiper=n,o.parentNode&&o.parentNode.host&&o.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const s=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=o&&o.shadowRoot&&o.shadowRoot.querySelector?o.shadowRoot.querySelector(s()):en(o,s())[0];return!a&&n.params.createElements&&(a=Dr("div",n.params.wrapperClass),o.append(a),en(o,`.${n.params.slideClass}`).forEach(i=>{a.append(i)})),Object.assign(n,{el:o,wrapperEl:a,slidesEl:n.isElement&&!o.parentNode.host.slideSlots?o.parentNode.host:a,hostEl:n.isElement?o.parentNode.host:o,mounted:!0,rtl:o.dir.toLowerCase()==="rtl"||gn(o,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(o.dir.toLowerCase()==="rtl"||gn(o,"direction")==="rtl"),wrongRTL:gn(a,"display")==="-webkit-box"}),!0}init(t){const n=this;if(n.initialized||n.mount(t)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents();const s=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&s.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach(r=>{r.complete?ns(n,r):r.addEventListener("load",a=>{ns(n,a.target)})}),Hr(n),n.initialized=!0,Hr(n),n.emit("init"),n.emit("afterInit"),n}destroy(t,n){t===void 0&&(t=!0),n===void 0&&(n=!0);const o=this,{params:s,el:r,wrapperEl:a,slides:i}=o;return typeof o.params>"u"||o.destroyed||(o.emit("beforeDestroy"),o.initialized=!1,o.detachEvents(),s.loop&&o.loopDestroy(),n&&(o.removeClasses(),r&&typeof r!="string"&&r.removeAttribute("style"),a&&a.removeAttribute("style"),i&&i.length&&i.forEach(l=>{l.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),o.emit("destroy"),Object.keys(o.eventsListeners).forEach(l=>{o.off(l)}),t!==!1&&(o.el&&typeof o.el!="string"&&(o.el.swiper=null),G7(o)),o.destroyed=!0),null}static extendDefaults(t){ct(ar,t)}static get extendedDefaults(){return ar}static get defaults(){return Bl}static installModule(t){ht.prototype.__modules__||(ht.prototype.__modules__=[]);const n=ht.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>ht.installModule(n)),ht):(ht.installModule(t),ht)}}Object.keys(rr).forEach(e=>{Object.keys(rr[e]).forEach(t=>{ht.prototype[t]=rr[e][t]})});ht.use([nk,ok]);const l$={key:0,class:"card friend-wrapper"},c$={class:"card-header"},u$=["innerHTML"],d$={class:"friend-list swiper-wrapper"},f$=["href"],p$={class:"info-wrapper"},v$={class:"nickname"},h$={class:"des"},m$=76,g$=L({__name:"BlogFriendLink",setup(e){const t=Ac({storageKey:"vitepress-theme-appearance"}),{friend:n}=je(),o=w(()=>({list:[],random:!1,limit:Number.MAX_SAFE_INTEGER,title:`${k7}友情链接`,...Array.isArray(n)?{list:n}:n})),s=w(()=>{const{limit:h}=o.value;return!h||h<=0?0:h||Number.MAX_SAFE_INTEGER}),r=w(()=>{const{scrollSpeed:h}=o.value;return h??1500}),a=w(()=>r.value>0&&s.value{const h=[...o.value.list];return o.value.random&&h.splice(0,h.length,...ey(h)),r.value===0&&s.value&&h.splice(s.value),h.map(p=>{const{avatar:b,nickname:y}=p,$=ay(b,t.value);let S=y;return typeof b!="string"&&(S=b.alt||""),{...p,avatar:$,alt:S}})}),l=w(()=>a.value?s.value*m$:0),c=w(()=>l.value?`${l.value}px`:"auto"),d=I(),{resume:f,pause:v}=z1(()=>{var h;(h=d.value)==null||h.slideNext()},r.value);return me(()=>{v(),a.value&&(d.value=new ht(".scroll-wrapper",{direction:"vertical",slidesPerView:s.value,loop:!0}),f())}),Wt(()=>{v()}),(h,m)=>{var p;return(p=i.value)!=null&&p.length?(g(),k("div",l$,[_("div",c$,[_("span",{class:"title svg-icon",innerHTML:o.value.title},null,8,u$)]),_("div",{class:"scroll-wrapper",style:Oe({height:c.value})},[_("ol",d$,[(g(!0),k(se,null,ve(i.value,(b,y)=>(g(),k("li",{key:y,class:"swiper-slide"},[_("a",{href:b.url,target:"_blank"},[B(u(x5),{size:50,src:b.avatar,alt:b.alt},null,8,["src","alt"]),_("div",p$,[_("span",v$,D(b.nickname),1),_("p",h$,D(b.des),1)])],8,f$)]))),128))])],4)])):O("",!0)}}}),y$=ne(g$,[["__scopeId","data-v-b9dbe97d"]]),b$={class:"blog-info","data-pagefind-ignore":"all"},_$=L({__name:"BlogHomeInfo",setup(e){return(t,n)=>{const o=Fe("ClientOnly");return g(),k("div",b$,[B(Ty),B(B7),B(o,null,{default:C(()=>[B(y$)]),_:1}),B(H7)])}}}),w$=ne(_$,[["__scopeId","data-v-2b34737f"]]),S$={class:"name"},k$={class:"inspiring-wrapper"},$$=L({__name:"BlogHomeBanner",setup(e){const{site:t,frontmatter:n}=Re(),{home:o}=je(),s=w(()=>{var h;return(((h=n.value.blog)==null?void 0:h.name)??t.value.title)||(o==null?void 0:o.name)||""}),r=w(()=>{var h;return((h=n.value.blog)==null?void 0:h.motto)||(o==null?void 0:o.motto)||""}),a=I(""),i=w(()=>{var h;return[...new Set([(h=n.value.blog)==null?void 0:h.inspiring,o==null?void 0:o.inspiring].flat().filter(m=>!!m))]}),l=I(-1),c=w(()=>{var h;return((h=n.value.blog)==null?void 0:h.inspiringTimeout)||(o==null?void 0:o.inspiringTimeout)||0});Q(c,()=>{f()});const d=I(0);function f(){d.value&&clearTimeout(d.value),c.value>0&&(d.value=setTimeout(()=>{v()},c.value))}me(()=>{v()}),Wt(()=>{d.value&&clearTimeout(d.value)});async function v(){if(f(),i.value.length<1)return;l.value=(l.value+1)%i.value.length;const h=i.value[l.value];h!==a.value&&(a.value="",setTimeout(()=>{a.value=h},100))}return(h,m)=>(g(),k("div",null,[_("h1",null,[_("span",S$,D(s.value),1),ge(_("span",{class:"motto"},D(r.value),513),[[Ie,r.value]])]),_("div",k$,[ge(_("h2",{onClick:v},D(a.value),513),[[Ie,!!a.value]])])]))}}),T$=ne($$,[["__scopeId","data-v-ff4460db"]]),C$=["href"],M$={class:"pin"},E$={class:"title mobile-visible"},I$={class:"info-container"},P$={class:"info-part"},x$={class:"title pc-visible"},A$=["innerHTML"],L$={class:"badge-list pc-visible"},O$={class:"split"},z$={key:0,class:"split"},B$={class:"badge-list mobile-visible"},N$={class:"split"},V$={key:0,class:"split"},F$=L({__name:"BlogItem",props:{route:{},title:{},date:{},sticky:{},description:{},descriptionHTML:{},tag:{},author:{},cover:{type:[String,Boolean]},pin:{}},setup(e){const t=e,n=w(()=>$s(t.date)),o=oa(),s=w(()=>St(is(!!o,t.route))),r=Vn();function a(){r.go(s.value)}const{coverPreview:i}=Q2(),l=w(()=>{if(!t.cover)return"";const c=St(t.cover),d=[i].flat().filter(m=>!!m).find(m=>m?m.rule instanceof RegExp?m.rule.test(c):c.includes(m.rule):!1);if(!d)return c;const{suffix:f,replace:v,rule:h}=d;return!v&&f?`${c}${f}`:typeof v=="function"?v(c):typeof v=="string"?c.replace(h,v):c});return(c,d)=>{var f,v,h,m;return g(),k("a",{class:"blog-item",href:s.value,onClick:d[0]||(d[0]=p=>{p.preventDefault(),a()})},[ge(_("i",M$,null,512),[[Ie,!!c.pin]]),_("p",E$,D(c.title),1),_("div",I$,[_("div",P$,[_("p",x$,D(c.title),1),ge(_("p",{class:"description"},D(c.description),513),[[Ie,!c.descriptionHTML&&!!c.description]]),c.descriptionHTML?(g(),k("div",{key:0,class:"description-html",innerHTML:c.descriptionHTML},null,8,A$)):O("",!0),_("div",L$,[ge(_("span",{class:"split"},D(c.author),513),[[Ie,c.author]]),_("span",O$,D(n.value),1),(f=c.tag)!=null&&f.length?(g(),k("span",z$,D((v=c.tag)==null?void 0:v.join(" · ")),1)):O("",!0)])]),ge(_("div",{class:"cover-img",style:Oe(`background-image: url(${l.value});`)},null,4),[[Ie,c.cover]])]),_("div",B$,[ge(_("span",{class:"split"},D(c.author),513),[[Ie,c.author]]),_("span",N$,D(n.value),1),(h=c.tag)!=null&&h.length?(g(),k("span",V$,D((m=c.tag)==null?void 0:m.join(" · ")),1)):O("",!0)])],8,C$)}}}),R$=ne(F$,[["__scopeId","data-v-faabe328"]]),D$={"data-pagefind-ignore":"all"},H$={class:"el-pagination-wrapper"},ir="pageNum",j$=L({__name:"BlogList",setup(e){const{theme:t,frontmatter:n}=Re(),o=w(()=>{var y;return((y=t.value.blog)==null?void 0:y.author)||""}),s=Io(),r=Gc(),a=w(()=>r.value.label),i=w(()=>{const y=s.value.filter(S=>!S.meta.hidden&&!!S.meta.top);y.sort((S,T)=>{var P;const M=(P=S==null?void 0:S.meta)==null?void 0:P.top,x=T==null?void 0:T.meta.top;return Number(M)-Number(x)});const $=s.value.filter(S=>S.meta.date&&S.meta.title&&!S.meta.top&&!S.meta.hidden);return $.sort((S,T)=>+new Date(T.meta.date)-+new Date(S.meta.date)),y.concat($)}),l=w(()=>a.value?i.value.filter(y=>{var $,S;return(S=($=y.meta)==null?void 0:$.tag)==null?void 0:S.includes(a.value)}):i.value),{home:c}=je(),d=w(()=>{var y;return((y=n.value.blog)==null?void 0:y.pageSize)||(c==null?void 0:c.pageSize)||6}),f=Uc(),v=w(()=>{const y=(f.value-1)*d.value,$=y+d.value;return l.value.slice(y,$)}),h=Vn();function m(y){if(f.value===y)return;f.value=y;const{searchParams:$}=new URL(window.location.href);$.delete(ir),$.append(ir,String(y)),window.scrollTo({top:0,behavior:"auto"}),h.go(`${h.route.path}?${$.toString()}`)}const p=pt();function b(){if(typeof window>"u")return;const y=window.location.search.slice(1),$=new URLSearchParams(y),S=Number($.get(ir))||1;S!==f.value&&(f.value=S)}return Q(p,()=>{b()},{immediate:!0}),h.onAfterRouteChanged=()=>{b()},(y,$)=>{const S=Fe("ClientOnly");return g(),k(se,null,[_("ul",D$,[(g(!0),k(se,null,ve(v.value,T=>(g(),k("li",{key:T.route},[B(R$,{route:T.route,title:T.meta.title,description:T.meta.description,"description-h-t-m-l":T.meta.descriptionHTML,date:T.meta.date,tag:T.meta.tag,cover:T.meta.cover,author:T.meta.author||o.value,pin:T.meta.top},null,8,["route","title","description","description-h-t-m-l","date","tag","cover","author","pin"])]))),128))]),B(S,null,{default:C(()=>[_("div",H$,[i.value.length>=d.value?(g(),H(u(t7),{key:0,small:"",background:"","default-current-page":1,"current-page":u(f),"page-size":d.value,total:l.value.length,layout:"prev, pager, next, jumper","onUpdate:currentPage":m},null,8,["current-page","page-size","total"])):O("",!0)])]),_:1})],64)}}}),W$=ne(j$,[["__scopeId","data-v-28ffc08a"]]),G$={class:"card-header"},U$=["innerHTML"],q$={key:0,class:"recommend-container"},K$={class:"num"},Y$={class:"des"},X$=["href","onClick"],Q$={class:"suffix"},Z$={class:"tag"},J$={key:1,class:"empty-text"},eT=L({__name:"BlogRecommendArticle",setup(e){ws(E=>({c6862748:o.value}));const{recommend:t}=je(),n=w(()=>t&&(t!=null&&t.style)?t.style:"sidebar"),o=w(()=>n.value==="card"?"10px":"0px"),s=w(()=>t===!1?void 0:t),r=w(()=>{var E;return((E=s.value)==null?void 0:E.title)??`${y7}相关文章`}),a=w(()=>{var E;return((E=s.value)==null?void 0:E.pageSize)||9}),i=w(()=>{var E;return((E=s.value)==null?void 0:E.nextText)||"换一组"}),l=w(()=>{var E;return((E=s.value)==null?void 0:E.empty)??"暂无相关文章"}),c=Io(),d=pt();function f(E){if(!E)return[];const{meta:j}=E;return Array.isArray(j.recommend)?j.recommend.filter(z=>typeof z=="string"):typeof j.recommend=="string"?[j.recommend]:[]}function v(E){var j;return Array.isArray((j=E==null?void 0:E.meta)==null?void 0:j.recommend)?E.meta.recommend[E.meta.recommend.length-1]:E==null?void 0:E.meta.recommend}function h(E,j){return E.some(z=>j.includes(z))}const m=w(()=>{var oe;const E=decodeURIComponent(d.path).split("/"),j=c.value.find(W=>p(W.route)),z=f(j),F=c.value.map(W=>({...W,route:St(W.route)})).filter(W=>z.length?h(z,f(W)):W.route.split("/").length===E.length&&W.route.startsWith(E.slice(0,E.length-1).join("/"))).filter(W=>!!W.meta.title).filter(W=>{var q;return(((q=s.value)==null?void 0:q.showSelf)??!0)||W.route!==decodeURIComponent(d.path).replace(/.html$/,"")}).filter(W=>W.meta.recommend!==!1).filter(W=>{var q,Y;return((Y=(q=s.value)==null?void 0:q.filter)==null?void 0:Y.call(q,W))??!0}),V=F.filter(W=>typeof v(W)=="number");V.sort((W,q)=>Number(v(W))-Number(v(q)));const U=F.filter(W=>typeof v(W)!="number"),Z=((oe=s.value)==null?void 0:oe.sort)??"date";let te=(W,q)=>+new Date(q.meta.date)-+new Date(W.meta.date);return Z==="filename"&&(te=(W,q)=>{const Y=W.route.split("/").pop(),J=q.route.split("/").pop();return Y.localeCompare(J)}),typeof Z=="function"&&(te=Z),U.sort(te),V.concat(U)});function p(E){const j=decodeURIComponent(d.path).replace(/.html$/,"");return[E,E.replace(/index$/,"")].includes(j)}const b=I(1);function y(){const E=b.value%Math.ceil(m.value.length/a.value);return b.value=E+1,E+1}const $=w(()=>(b.value-1)*a.value),S=w(()=>{const E=(b.value-1)*a.value,j=E+a.value;return m.value.slice(E,j)}),T=w(()=>m.value.length>a.value);me(()=>{const E=m.value.findIndex(z=>p(z.route));if(E===-1)return;const j=Math.floor(E/a.value)+1;b.value=j});const M=oa(),x=Vn();function P(E){x.go(E)}return(E,j)=>u(t)!==!1&&(m.value.length||l.value)?(g(),k("div",{key:0,class:N(["recommend",{card:n.value==="card"}]),"data-pagefind-ignore":"all"},[_("div",G$,[r.value?(g(),k("span",{key:0,class:"title",innerHTML:r.value},null,8,U$)):O("",!0),T.value?(g(),H(u(Ns),{key:1,size:"small",type:"primary",text:"",onClick:y},{default:C(()=>[be(D(i.value),1)]),_:1})):O("",!0)]),S.value.length?(g(),k("ol",q$,[(g(!0),k(se,null,ve(S.value,(z,F)=>(g(),k("li",{key:z.route},[_("i",K$,D($.value+F+1),1),_("div",Y$,[_("a",{class:N(["title",{current:p(z.route)}]),href:u(is)(u(M),z.route),onClick:V=>{V.preventDefault(),P(u(is)(u(M),z.route))}},[_("span",null,D(z.meta.title),1)],10,X$),_("div",Q$,[_("span",Z$,D(u($s)(z.meta.date)),1)])])]))),128))])):(g(),k("div",J$,D(l.value),1))],2)):O("",!0)}}),tT=ne(eT,[["__scopeId","data-v-7caf2a1b"]]),nT={key:0,class:"sidebar","data-pagefind-ignore":"all"},oT=L({__name:"BlogSidebar",setup(e){ws(r=>({b24388ca:o.value,"4ff58e92":s.value}));const{recommend:t}=je(),n=w(()=>t&&(t!=null&&t.style)?t.style:"card"),o=w(()=>n.value==="card"?"40px":"0px"),s=w(()=>n.value==="card"?"60px":"0px");return(r,a)=>u(t)!==!1?(g(),k("div",nT,[B(tT)])):O("",!0)}}),sT=ne(oT,[["__scopeId","data-v-2c475018"]]),rT=L({__name:"BlogImagePreview",setup(e){const t=I(!1),n=De({url:"",list:[],idx:0});function o(s){const r=s.target,a=s.currentTarget;if(r.tagName.toLowerCase()==="img"){const i=a.querySelectorAll(".content-container .main img"),l=Array.from(i).findIndex(f=>f===r),c=Array.from(i).map(f=>f.src),d=r.getAttribute("src");n.url=d,n.list=c,n.idx=l,l===-1&&d&&(n.list.push(d),n.idx=n.list.length-1),t.value=!0}}return me(()=>{const s=document.querySelector("#VPContent");s==null||s.addEventListener("click",o)}),Wt(()=>{const s=document.querySelector("#VPContent");s==null||s.removeEventListener("click",o)}),(s,r)=>t.value?(g(),H(u(cd),{key:0,infinite:!1,"hide-on-click-modal":"",teleported:"","url-list":n.list,"initial-index":n.idx,onClose:r[0]||(r[0]=a=>t.value=!1)},null,8,["url-list","initial-index"])):O("",!0)}}),aT=["src"],iT=L({__name:"BlogDocCover",setup(e){const{frontmatter:t}=Re(),n=w(()=>t.value.cover),o=qc(),s=w(()=>{var i,l;return(l=(i=o.value)==null?void 0:i.meta)==null?void 0:l.cover}),{article:r}=je(),a=w(()=>{var i;return((i=t.value)==null?void 0:i.hiddenCover)??(r==null?void 0:r.hiddenCover)??!1});return(i,l)=>n.value&&!a.value?(g(),k("img",{key:0,class:"blog-doc-cover",src:s.value},null,8,aT)):O("",!0)}}),lT=ne(iT,[["__scopeId","data-v-3e974c9e"]]),cT={key:0,class:"doc-analyze","data-pagefind-ignore":"all"},uT={key:0,class:"author",title:"本文作者"},dT=["href","title"],fT=["title"],pT={key:2,class:"tags",title:"标签"},vT=["href"],hT={title:"文章字数"},mT={title:"预计阅读时间"},gT={key:4,style:{width:"100%"},class:"new-line-meta-des"},yT={title:"文章字数"},bT={title:"预计阅读时间"},_T=L({__name:"BlogArticleAnalyze",setup(e){const{article:t,authorList:n}=je(),o=(t==null?void 0:t.readingTimePosition)||"inline",{frontmatter:s}=Re(),r=w(()=>{const{tag:V,tags:U,categories:Z}=s.value;return[...new Set([].concat(V,U,Z).flat().filter(te=>!!te))]}),a=w(()=>{var V;return((V=s.value)==null?void 0:V.readingTime)??(t==null?void 0:t.readingTime)??!0}),i=I(0),l=I(0),c=w(()=>~~(i.value/275*60)),d=w(()=>{const V=l.value;return l.value<=10?V*13+V*(V-1)/2:175+(V-10)*3}),f=w(()=>Math.ceil((c.value+d.value)/60)),v=D2(),h=H2(),m=pt(),p=I();function b(){var oe,W;if(!p.value)return;document.querySelectorAll(".meta-des").forEach(q=>q.remove());const V=window.document.querySelector("#VPContent"),U=V==null?void 0:V.querySelectorAll(".content-container .main img");l.value=(U==null?void 0:U.length)||0;const Z=((oe=V==null?void 0:V.querySelector(".content-container .main"))==null?void 0:oe.textContent)||"";i.value=oy(Z);let te=V==null?void 0:V.querySelector(v.value);te||(te=V==null?void 0:V.querySelector("h1")),(W=te==null?void 0:te[h.value])==null||W.call(te,p.value)}me(()=>{new MutationObserver(()=>{document.querySelector("#hack-article-des")||b()}).observe(document.body,{childList:!0,subtree:!0}),b()});const y=I(6666),$=qc(),S=w(()=>{var V,U;return $s(((U=(V=$.value)==null?void 0:V.meta)==null?void 0:U.date)||"")}),T=w(()=>{var V,U,Z,te;return(U=(V=$.value)==null?void 0:V.meta)!=null&&U.date?`: ${as((te=(Z=$.value)==null?void 0:Z.meta)==null?void 0:te.date)}`:""}),M=w(()=>s.value.date?"发布时间":"最近修改时间"),x=w(()=>s.value.date===!1),{theme:P}=Re(),E=w(()=>{var V;return((V=P.value.blog)==null?void 0:V.author)||""}),j=w(()=>{var V;return(s.value.author||((V=$.value)==null?void 0:V.meta.author))??E.value}),z=w(()=>n==null?void 0:n.find(V=>j.value===V.nickname)),F=w(()=>s.value.author===!1);return Q(()=>m.path,()=>{y.value=123},{immediate:!0}),(V,U)=>{const Z=Fe("ClientOnly");return g(),k(se,null,[a.value&&u(o)==="top"?(g(),k("div",cT,[_("span",null,[B(u(pe),null,{default:C(()=>[B(u(Ks))]),_:1}),be(" 字数:"+D(i.value)+" 个字 ",1)]),_("span",null,[B(u(pe),null,{default:C(()=>[B(u(qs))]),_:1}),be(" 预计:"+D(f.value)+" 分钟 ",1)])])):O("",!0),_("div",{id:"hack-article-des",ref_key:"$des",ref:p,class:"meta-des"},[j.value&&!F.value?(g(),k("span",uT,[B(u(pe),null,{default:C(()=>[B(u(J8))]),_:1}),z.value?(g(),k("a",{key:0,class:"link",href:z.value.url,title:z.value.des},D(z.value.nickname),9,dT)):(g(),k(se,{key:1},[be(D(j.value),1)],64))])):O("",!0),S.value&&!x.value?(g(),k("span",{key:1,class:"publishDate",title:M.value+T.value},[B(u(pe),null,{default:C(()=>[B(u(M8))]),_:1}),be(" "+D(S.value),1)],8,fT)):O("",!0),r.value.length?(g(),k("span",pT,[B(u(pe),null,{default:C(()=>[B(u(P8))]),_:1}),(g(!0),k(se,null,ve(r.value,te=>(g(),k("a",{key:te,class:"link",href:`/?tag=${te}`},D(te),9,vT))),128))])):O("",!0),u(o)==="inline"&&a.value?(g(),k(se,{key:3},[_("span",hT,[B(u(pe),null,{default:C(()=>[B(u(Ks))]),_:1}),be(" "+D(i.value)+" 个字 ",1)]),_("span",mT,[B(u(pe),null,{default:C(()=>[B(u(qs))]),_:1}),be(" "+D(f.value)+" 分钟 ",1)])],64)):O("",!0),u(o)==="newLine"&&a.value?(g(),k("div",gT,[_("span",yT,[B(u(pe),null,{default:C(()=>[B(u(Ks))]),_:1}),be(" "+D(i.value)+" 个字 ",1)]),_("span",bT,[B(u(pe),null,{default:C(()=>[B(u(qs))]),_:1}),be(" "+D(f.value)+" 分钟 ",1)])])):O("",!0),B(Z,null,{default:C(()=>[B(lT)]),_:1})],512)],64)}}}),wT=ne(_T,[["__scopeId","data-v-c630a160"]]),ST={key:0,class:"global-alert","data-pagefind-ignore":"all"},kT=["innerHTML"],lr="theme-blog-alert",$T=L({__name:"BlogAlert",setup(e){const{alert:t}=je(),n=I(!1),o=`${lr}-close`;me(()=>{const r=localStorage.getItem(lr),a=JSON.stringify(t);if(localStorage.setItem(lr,a),Number(t==null?void 0:t.duration)>=0){n.value=!0,t!=null&&t.duration&&setTimeout(()=>{n.value=!1},t==null?void 0:t.duration);return}if(r!==a&&(t==null?void 0:t.duration)===-1){n.value=!0,localStorage.removeItem(o);return}r===a&&(t==null?void 0:t.duration)===-1&&!localStorage.getItem(o)&&(n.value=!0)});function s(){n.value=!1,(t==null?void 0:t.duration)===-1&&localStorage.setItem(o,`${+new Date}`)}return(r,a)=>{var i,l,c,d,f,v,h;return n.value?(g(),k("div",ST,[B(u(K6),{title:(i=u(t))==null?void 0:i.title,type:(l=u(t))==null?void 0:l.type,"show-icon":(c=u(t))==null?void 0:c.showIcon,center:(d=u(t))==null?void 0:d.center,closable:(f=u(t))==null?void 0:f.closable,"close-text":(v=u(t))==null?void 0:v.closeText,description:(h=u(t))==null?void 0:h.description,onClose:s},{default:C(()=>{var m,p;return[(m=u(t))!=null&&m.html?(g(),k("div",{key:0,innerHTML:(p=u(t))==null?void 0:p.html},null,8,kT)):O("",!0)]}),_:1},8,["title","type","show-icon","center","closable","close-text","description"])])):O("",!0)}}}),TT=ne($T,[["__scopeId","data-v-5e1c10f5"]]),bo={mounted:(e,t)=>{e.outerHTML=t.value}},wd=e=>(xe("data-v-a371245f"),e=e(),Ae(),e),CT={class:"theme-blog-popover","data-pagefind-ignore":"all"},MT={class:"header"},ET={class:"title-wrapper"},IT={key:0},PT={key:1,t:"1716085184855",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4274",width:"200",height:"200"},xT=wd(()=>_("path",{d:"M660.48 872.448q6.144 0-3.584 15.36t-29.696 33.792-47.104 33.792-57.856 15.36q-27.648 0-53.248-15.36t-45.056-33.792-29.696-33.792-6.144-15.36l272.384 0zM914.432 785.408q7.168 9.216 6.656 17.92t-4.608 14.848-10.24 9.728-12.288 3.584l-747.52 0q-14.336 0-20.992-11.776t4.608-29.184q17.408-30.72 40.96-68.608t44.544-81.408 36.352-92.16 15.36-101.888q0-51.2 14.336-92.16t37.376-71.68 53.248-52.224 62.976-32.768q-16.384-26.624-16.384-55.296 0-41.984 28.672-70.656t70.656-28.672 70.656 28.672 28.672 70.656q0 14.336-4.096 28.16t-11.264 25.088q34.816 11.264 66.048 32.768t54.272 53.248 36.864 72.704 13.824 91.136q0 51.2 15.36 100.864t36.864 94.208 45.568 81.408 43.52 63.488zM478.208 142.336q0 16.384 11.264 28.16t27.648 11.776l2.048 0q16.384-1.024 27.648-12.288t11.264-27.648q0-17.408-11.264-28.672t-28.672-11.264-28.672 11.264-11.264 28.672z","p-id":"4275"},null,-1)),AT=[xT],LT={class:"title"},OT={key:0},zT={key:0,class:"body content"},BT={key:0},NT={class:"footer content"},VT={key:0},FT={key:1,t:"1716085184855",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4274",width:"200",height:"200"},RT=wd(()=>_("path",{d:"M660.48 872.448q6.144 0-3.584 15.36t-29.696 33.792-47.104 33.792-57.856 15.36q-27.648 0-53.248-15.36t-45.056-33.792-29.696-33.792-6.144-15.36l272.384 0zM914.432 785.408q7.168 9.216 6.656 17.92t-4.608 14.848-10.24 9.728-12.288 3.584l-747.52 0q-14.336 0-20.992-11.776t4.608-29.184q17.408-30.72 40.96-68.608t44.544-81.408 36.352-92.16 15.36-101.888q0-51.2 14.336-92.16t37.376-71.68 53.248-52.224 62.976-32.768q-16.384-26.624-16.384-55.296 0-41.984 28.672-70.656t70.656-28.672 70.656 28.672 28.672 70.656q0 14.336-4.096 28.16t-11.264 25.088q34.816 11.264 66.048 32.768t54.272 53.248 36.864 72.704 13.824 91.136q0 51.2 15.36 100.864t36.864 94.208 45.568 81.408 43.52 63.488zM478.208 142.336q0 16.384 11.264 28.16t27.648 11.776l2.048 0q16.384-1.024 27.648-12.288t11.264-27.648q0-17.408-11.264-28.672t-28.672-11.264-28.672 11.264-11.264 28.672z","p-id":"4275"},null,-1)),DT=[RT],cr="theme-blog-popover",HT=L({__name:"BlogPopover",setup(e){const{popover:t}=je(),n=I(!1),o=w(()=>(t==null?void 0:t.body)||[]),s=w(()=>(t==null?void 0:t.footer)||[]),r=`${cr}-close`,{width:a}=na(),i=Vn(),l=pt();me(()=>{if(!(t!=null&&t.title))return;const v=localStorage.getItem(cr),h=JSON.stringify(t);if(localStorage.setItem(cr,h),a.value<768&&(t!=null&&t.mobileMinify)){n.value=!1;return}if(Number((t==null?void 0:t.duration)??"")>=0){n.value=!0,t!=null&&t.duration&&setTimeout(()=>{n.value=!1},t==null?void 0:t.duration);return}if(v!==h&&(t==null?void 0:t.duration)===-1){n.value=!0,localStorage.removeItem(r);return}v===h&&(t==null?void 0:t.duration)===-1&&!localStorage.getItem(r)&&(n.value=!0)});const c=kc(()=>{var v;(v=t==null?void 0:t.onRouteChanged)==null||v.call(t,l,n)},10);Q(l,c,{immediate:!0});function d(){n.value=!1,(t==null?void 0:t.duration)===-1&&localStorage.setItem(r,`${+new Date}`)}function f(v,{slots:h}){const{key:m,item:p}=v;return p.type==="title"?Be("h4",{style:Vo(p.style||"")},p.content):p.type==="text"?Be("p",{style:Vo(p.style||"")},p.content):p.type==="image"?Be("img",{src:p.src,style:Vo(p.style||"")}):p.type==="button"?Be(Ns,{type:"primary",onClick:()=>{/^\s*http(s)?:\/\//.test(p.link)?window.open(p.link):i.go(p.link)},style:Vo(p.style||""),...p.props},h):Be("div",{key:m},"")}return(v,h)=>{var m,p,b,y;return g(),k(se,null,[ge(_("div",CT,[_("div",MT,[_("div",ET,[B(u(pe),{size:"20px"},{default:C(()=>{var $;return[($=u(t))!=null&&$.icon?ge((g(),k("i",IT,null,512)),[[u(bo),u(t).icon]]):(g(),k("svg",PT,AT))]}),_:1}),_("span",LT,D((m=u(t))==null?void 0:m.title),1)]),B(u(pe),{class:"close-icon",size:"20px",onClick:d},{default:C(()=>{var $;return[($=u(t))!=null&&$.closeIcon?ge((g(),k("i",OT,null,512)),[[u(bo),u(t).closeIcon]]):(g(),H(u(ua),{key:1}))]}),_:1})]),o.value.length?(g(),k("div",zT,[(g(!0),k(se,null,ve(o.value,($,S)=>(g(),H(f,{key:S,item:$},{default:C(()=>[be(D($.type!=="image"?$.content:""),1)]),_:2},1032,["item"]))),128)),s.value.length?(g(),k("hr",BT)):O("",!0)])):O("",!0),_("div",NT,[(g(!0),k(se,null,ve(s.value,($,S)=>(g(),H(f,{key:S,item:$},{default:C(()=>[be(D($.type!=="image"?$.content:""),1)]),_:2},1032,["item"]))),128))])],512),[[Ie,n.value]]),ge(_("div",{class:N(["theme-blog-popover-close",{twinkle:!n.value&&(((p=u(t))==null?void 0:p.twinkle)??!0)}]),onClick:h[0]||(h[0]=$=>n.value=!0)},[B(u(pe),null,{default:C(()=>{var $;return[($=u(t))!=null&&$.icon?ge((g(),k("i",VT,null,512)),[[u(bo),u(t).icon]]):(g(),k("svg",FT,DT))]}),_:1})],2),[[Ie,!n.value&&(((b=u(t))==null?void 0:b.reopen)??!0)&&((y=u(t))==null?void 0:y.title)]])],64)}}}),jT=ne(HT,[["__scopeId","data-v-a371245f"]]),WT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH+OD+Q5+bk4eZm52zv9MWi/mvwbyI+IfHf/ryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3/ldM9sJoFoK0Hr5i3k4/EAenqFQyDwdHAoLC+0lYqG9MOOLPv8z4W/gi372/EAe/tt68ABxmkCZrcCjg/1xYW52rlKO58sEQjFu9+cj/seFf/2OKdHiNLFcLBWK8ViJuFAiTcd5uVKRRCHJleIS6X8y8R+W/QmTdw0ArIZPwE62B7XLbMB+7gECiw5Y0nYAQH7zLYwaC5EAEGc0Mnn3AACTv/mPQCsBAM2XpOMAALzoGFyolBdMxggAAESggSqwQQcMwRSswA6cwR28wBcCYQZEQAwkwDwQQgbkgBwKoRiWQRlUwDrYBLWwAxqgEZrhELTBMTgN5+ASXIHrcBcGYBiewhi8hgkEQcgIE2EhOogRYo7YIs4IF5mOBCJhSDSSgKQg6YgUUSLFyHKkAqlCapFdSCPyLXIUOY1cQPqQ28ggMor8irxHMZSBslED1AJ1QLmoHxqKxqBz0XQ0D12AlqJr0Rq0Hj2AtqKn0UvodXQAfYqOY4DRMQ5mjNlhXIyHRWCJWBomxxZj5Vg1Vo81Yx1YN3YVG8CeYe8IJAKLgBPsCF6EEMJsgpCQR1hMWEOoJewjtBK6CFcJg4Qxwicik6hPtCV6EvnEeGI6sZBYRqwm7iEeIZ4lXicOE1+TSCQOyZLkTgohJZAySQtJa0jbSC2kU6Q+0hBpnEwm65Btyd7kCLKArCCXkbeQD5BPkvvJw+S3FDrFiOJMCaIkUqSUEko1ZT/lBKWfMkKZoKpRzame1AiqiDqfWkltoHZQL1OHqRM0dZolzZsWQ8ukLaPV0JppZ2n3aC/pdLoJ3YMeRZfQl9Jr6Afp5+mD9HcMDYYNg8dIYigZaxl7GacYtxkvmUymBdOXmchUMNcyG5lnmA+Yb1VYKvYqfBWRyhKVOpVWlX6V56pUVXNVP9V5qgtUq1UPq15WfaZGVbNQ46kJ1Bar1akdVbupNq7OUndSj1DPUV+jvl/9gvpjDbKGhUaghkijVGO3xhmNIRbGMmXxWELWclYD6yxrmE1iW7L57Ex2Bfsbdi97TFNDc6pmrGaRZp3mcc0BDsax4PA52ZxKziHODc57LQMtPy2x1mqtZq1+rTfaetq+2mLtcu0W7eva73VwnUCdLJ31Om0693UJuja6UbqFutt1z+o+02PreekJ9cr1Dund0Uf1bfSj9Rfq79bv0R83MDQINpAZbDE4Y/DMkGPoa5hpuNHwhOGoEctoupHEaKPRSaMnuCbuh2fjNXgXPmasbxxirDTeZdxrPGFiaTLbpMSkxeS+Kc2Ua5pmutG003TMzMgs3KzYrMnsjjnVnGueYb7ZvNv8jYWlRZzFSos2i8eW2pZ8ywWWTZb3rJhWPlZ5VvVW16xJ1lzrLOtt1ldsUBtXmwybOpvLtqitm63Edptt3xTiFI8p0in1U27aMez87ArsmuwG7Tn2YfYl9m32zx3MHBId1jt0O3xydHXMdmxwvOuk4TTDqcSpw+lXZxtnoXOd8zUXpkuQyxKXdpcXU22niqdun3rLleUa7rrStdP1o5u7m9yt2W3U3cw9xX2r+00umxvJXcM970H08PdY4nHM452nm6fC85DnL152Xlle+70eT7OcJp7WMG3I28Rb4L3Le2A6Pj1l+s7pAz7GPgKfep+Hvqa+It89viN+1n6Zfgf8nvs7+sv9j/i/4XnyFvFOBWABwQHlAb2BGoGzA2sDHwSZBKUHNQWNBbsGLww+FUIMCQ1ZH3KTb8AX8hv5YzPcZyya0RXKCJ0VWhv6MMwmTB7WEY6GzwjfEH5vpvlM6cy2CIjgR2yIuB9pGZkX+X0UKSoyqi7qUbRTdHF09yzWrORZ+2e9jvGPqYy5O9tqtnJ2Z6xqbFJsY+ybuIC4qriBeIf4RfGXEnQTJAntieTE2MQ9ieNzAudsmjOc5JpUlnRjruXcorkX5unOy553PFk1WZB8OIWYEpeyP+WDIEJQLxhP5aduTR0T8oSbhU9FvqKNolGxt7hKPJLmnVaV9jjdO31D+miGT0Z1xjMJT1IreZEZkrkj801WRNberM/ZcdktOZSclJyjUg1plrQr1zC3KLdPZisrkw3keeZtyhuTh8r35CP5c/PbFWyFTNGjtFKuUA4WTC+oK3hbGFt4uEi9SFrUM99m/ur5IwuCFny9kLBQuLCz2Lh4WfHgIr9FuxYji1MXdy4xXVK6ZHhp8NJ9y2jLspb9UOJYUlXyannc8o5Sg9KlpUMrglc0lamUycturvRauWMVYZVkVe9ql9VbVn8qF5VfrHCsqK74sEa45uJXTl/VfPV5bdra3kq3yu3rSOuk626s91m/r0q9akHV0IbwDa0b8Y3lG19tSt50oXpq9Y7NtM3KzQM1YTXtW8y2rNvyoTaj9nqdf13LVv2tq7e+2Sba1r/dd3vzDoMdFTve75TsvLUreFdrvUV99W7S7oLdjxpiG7q/5n7duEd3T8Wej3ulewf2Re/ranRvbNyvv7+yCW1SNo0eSDpw5ZuAb9qb7Zp3tXBaKg7CQeXBJ9+mfHvjUOihzsPcw83fmX+39QjrSHkr0jq/dawto22gPaG97+iMo50dXh1Hvrf/fu8x42N1xzWPV56gnSg98fnkgpPjp2Snnp1OPz3Umdx590z8mWtdUV29Z0PPnj8XdO5Mt1/3yfPe549d8Lxw9CL3Ytslt0utPa49R35w/eFIr1tv62X3y+1XPK509E3rO9Hv03/6asDVc9f41y5dn3m978bsG7duJt0cuCW69fh29u0XdwruTNxdeo94r/y+2v3qB/oP6n+0/rFlwG3g+GDAYM/DWQ/vDgmHnv6U/9OH4dJHzEfVI0YjjY+dHx8bDRq98mTOk+GnsqcTz8p+Vv9563Or59/94vtLz1j82PAL+YvPv655qfNy76uprzrHI8cfvM55PfGm/K3O233vuO+638e9H5ko/ED+UPPR+mPHp9BP9z7nfP78L/eE8/sl0p8zAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAQjSURBVHjaVNNZbFRlGIDh95w525zpdGa6TVtbykBbyiICxQY0AhYTJUCiiYqGqEEiJhKQmBg0ESPeeCGRENEYb4jhBr0gNQrRlCBiSgyLaSlSaKEs3Wemy+xnzuqFYdD/6rt6ku/N9wue55EcPwWArCgIgkx5ZRuYVxsnJ801Z05f3jY1MRnb/HxHV+uSph9RKq4mhkdwbZVgdQ2SHkPTwgj/h1QUWWi8/tfg/hM/XN/Y2zfaZnkSnuRDtLMsXhBOvrJtya/LlrcdMs1Qb1lVRQmSAEDAsU1kxpgamXp3y+azu1esreK9dyRqs9PIjkW6OsLx7lTV1ld/237s8HRV57MbnvO8CA+e9GCQFTk6Mza+4/0P+t9a9VSEI3uyTH/eR27aB2Ed31Q/Hx1sI6BHOPT13c5Frd0HW9p3HPUQEwAigJW9RDp+bstrOy981nVGLN/7RpHUV70YfXnEAtjxFPasxPDBQXatjzNTdOQXtg983H/51AFFy1KCIg2bNIdC+8270NwmUmelsXqSqHkDK5PDl8iCW0QcnEW+lqCjvcjQuMZ4YnQRTkotQUZu4GkjcfZNv19G011kXw4vayNYNvqCCvSVTciOgABgeuhBGwhgz5zbkI2ff7HUqJiNR2QktbbSYnBYYqbMT/ilKI4SIbT/GcRylbnvLmJ2X8N7tJ7rR8OE/BbliqEYea81WIotmOs02WFpc55Lf0f5/mSI3dsamOgxSX7ZjaALuBmB6M6FnB+S+POCwmOLk1QFFAqZyQWl1YrpiRZJLvDkygyC5NJ1XCax7xYNiTQVEYVIuUulayIcGeLkpw6WK7GuPY/fb2CkhleXIFFe8XPGaKBj9QxLW1Ik0bg8EuT2zRCJYZvZIYepe0EGbvi4bQUJVZhs2phADFYj+df0lBqJUnaekS4SUHXe3jrOnoE2PhSewHfRpfZGgcryIvfHdQruQlLo7Ns6QizqkJ31CIUlqwQJXuWUpDXj6qOsW32HT3YNImll9FwJsb4jyaLmWQ4fa6a+2sQw0ry8YZSiHcPxxXBtMfCv4XkUCrfliWs/fTE31rtTVfv9vsIorvQIniMhqXM4popVcJFVMHMpfMEaLPdxR1Tnna1b1vl6tGntpAjgCTNWONZyIFBR8Ydtr6EgrCI3VySfzZPLBDHyIq5gkpmzcOUmTGMF+bh7M9LYulfWzMmHBzk7Fpq9deWEYxjrtaCMXjWfstp6BCGNXZzBdYqYhogWqkMum4+oBVD0YnP63u/fFqbv1D+M7VSlBbmmK5uYaLYLYwslfwFVAyXQiOfcx3XyyGIM8DDn0lgWyGokHogu/0UJxpL/+f2e569s/CZQZ53OpzJr0+NXludUfb5jVdf7VUGXJUPIZast1S9PeII6jFDT5xMjFwO1S4c8zwTgnwEAxufYSzA67PMAAAAASUVORK5CYII=",GT="@sugarat/theme",UT="0.4.6",qT="简约风的 Vitepress 博客主题,sugarat vitepress blog theme",KT="sugar",YT="MIT",XT="https://theme.sugarat.top",QT={type:"git",url:"git+https://github.com/ATQQ/sugar-blog.git"},ZT={url:"https://github.com/ATQQ/sugar-blog/issues"},JT=["vitepress","theme","粥里有勺糖"],eC={"./node":{types:"./node.d.ts",default:"./node.js"},"./package.json":"./package.json",".":"./src/index.ts"},tC="src/index.ts",nC=["node.d.ts","node.js","src","types"],oC={"@element-plus/icons-vue":"^2.3.1","element-plus":"^2.7"},sC={"@giscus/vue":"^2.4.0","@mdit-vue/shared":"^0.12.1","@mermaid-js/mermaid-mindmap":"^9.3.0","@vue/shared":"^3.4.26","@vueuse/core":"^9.13.0","fast-glob":"^3.3.2","markdown-it-task-checkbox":"^1.0.6",mermaid:"^10.9.0","oh-my-live2d":"^0.19.3",swiper:"^11.1.1","vitepress-markdown-timeline":"^1.2.1","vitepress-plugin-mermaid":"2.0.13","vitepress-plugin-tabs":"0.2.0","vitepress-plugin-pagefind":"0.4.3","vitepress-plugin-rss":"0.2.8","@sugarat/theme-shared":"0.0.2"},rC={"@element-plus/icons-vue":"^2.3.1",artalk:"^2.8.5","element-plus":"^2.7.2",pagefind:"^1.1.0",sass:"^1.76.0",typescript:"^5.4.5",vite:"^5.2.11",vitepress:"1.2.3",vue:"^3.4.26"},aC={dev:"npm run build:node && npm run dev:docs","dev:docs":"vitepress dev docs","dev:node":"npx tsup --watch",build:"npm run build:node && npm run build:docs","build:docs":"vitepress build docs","build:node":"npx tsup",serve:"vitepress serve docs"},iC={name:GT,version:UT,description:qT,author:KT,license:YT,homepage:XT,repository:QT,bugs:ZT,keywords:JT,exports:eC,main:tC,files:nC,peerDependencies:oC,dependencies:sC,devDependencies:rC,scripts:aC},lC=e=>(xe("data-v-01af612f"),e=e(),Ae(),e),cC={key:0,class:"blog-footer"},uC=["innerHTML"],dC={class:"footer-item-list"},fC={key:0,class:"footer-item"},pC={key:0},vC=lC(()=>_("img",{src:WT,alt:"公网安备"},null,-1)),hC=[vC],mC=["innerHTML"],gC=["href"],yC={key:3},bC={key:1},_C=["innerHTML"],wC=L({__name:"BlogFooter",setup(e){const t=Y2(),n=w(()=>{if(!t)return[];const o=[t].flat();return o.flat().map((s,r)=>{const{icpRecord:a,securityRecord:i,copyright:l,version:c,message:d,bottomMessage:f,list:v}=s,h=[],m=[d||[]].flat(),p=[f||[]].flat(),b=r===o.length-1;if((c!==!1&&b||c===!0)&&h.push({name:`@sugarat/theme@${iC.version}`,link:"https://theme.sugarat.top/",icon:b7}),typeof l=="string"&&h.push({name:l,icon:El}),l instanceof Object&&h.push({icon:El,name:l.message,...l}),a&&h.push({icon:_7,...a}),i&&h.push({icon:"security",...i}),v){const y=[v||[]].flat();h.push(...y.map($=>typeof $=="string"?$:{name:$.text,icon:$.icon,link:$.link}))}return{data:h,messageData:m,bottomMessageData:p}})});return(o,s)=>n.value.length?(g(),k("footer",cC,[(g(!0),k(se,null,ve(n.value,({data:r,messageData:a,bottomMessageData:i})=>(g(),k(se,null,[(g(!0),k(se,null,ve(a,l=>(g(),k("p",{innerHTML:l},null,8,uC))),256)),_("p",dC,[(g(!0),k(se,null,ve(r,l=>(g(),k(se,null,[typeof l!="string"?(g(),k("span",fC,[l.icon==="security"?(g(),k("i",pC,hC)):l.icon?(g(),k("i",{key:1,innerHTML:l.icon},null,8,mC)):O("",!0),l.link?(g(),k("a",{key:2,href:l.link,target:"_blank",rel:"noopener noreferrer"},D(l.name),9,gC)):(g(),k("span",yC,D(l.name),1))])):ge((g(),k("span",bC,null,512)),[[u(bo),l]])],64))),256))]),(g(!0),k(se,null,ve(i,l=>(g(),k("p",{innerHTML:l},null,8,_C))),256))],64))),256))])):O("",!0)}}),SC=ne(wC,[["__scopeId","data-v-01af612f"]]),kC={class:"blog-home-header-avatar"},$C=["src"],TC=L({__name:"BlogHomeHeaderAvatar",setup(e){const{home:t}=je(),{frontmatter:n,site:o}=Re(),s=w(()=>{var a,i;return n.value.logo??((i=(a=n.value)==null?void 0:a.blog)==null?void 0:i.logo)??(t==null?void 0:t.logo)??o.value.themeConfig.logo}),r=w(()=>{var a;return((a=n.value.blog)==null?void 0:a.minScreenAvatar)===!1});return(a,i)=>ge((g(),k("div",kC,[_("img",{src:u(St)(s.value),alt:"avatar"},null,8,$C)],512)),[[Ie,!r.value]])}}),CC=ne(TC,[["__scopeId","data-v-f9564ed1"]]),MC=e=>(xe("data-v-63b6204b"),e=e(),Ae(),e),EC={key:0,class:"back-to-top"},IC={key:0},PC={key:1,width:"512",height:"512",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},xC=MC(()=>_("path",{fill:"currentColor",d:"m20 22l-3.86-1.55c.7-1.53 1.2-3.11 1.51-4.72zM7.86 20.45L4 22l2.35-6.27c.31 1.61.81 3.19 1.51 4.72M12 2s5 2 5 10c0 3.1-.75 5.75-1.67 7.83A2 2 0 0 1 13.5 21h-3a2 2 0 0 1-1.83-1.17C7.76 17.75 7 15.1 7 12c0-8 5-10 5-10m0 10c1.1 0 2-.9 2-2s-.9-2-2-2s-2 .9-2 2s.9 2 2 2"},null,-1)),AC=[xC],LC=450,OC=L({__name:"BlogBackToTop",setup(e){ws(v=>({a2522a3e:r.value}));function t(){window.scrollTo({top:0,behavior:"smooth"})}const n=document.querySelector(".vp-doc"),o=I(n),{width:s}=Lc(o),r=w(()=>`${s.value}px`),a=X2(),i=w(()=>!!(a??!0)),{y:l}=gm(window),c=w(()=>(typeof a=="boolean"||a==null?void 0:a.top)??LC),d=w(()=>s&&l.value>c.value),f=w(()=>typeof a=="boolean"?"":a==null?void 0:a.icon);return(v,h)=>i.value?ge((g(),k("div",EC,[_("span",{class:"icon-wrapper",onClick:t},[B(u(pe),{size:20},{default:C(()=>[f.value?ge((g(),k("i",IC,null,512)),[[u(bo),f.value]]):(g(),k("svg",PC,AC))]),_:1})])],512)),[[Ie,d.value]]):O("",!0)}}),zC=ne(OC,[["__scopeId","data-v-63b6204b"]]),BC=["id","host","repo","repoid","category","categoryid","mapping","term","strict","reactionsenabled","emitmetadata","inputposition","theme","lang","loading"],NC=L({__name:"Giscus",props:{id:{},host:{},repo:{},repoId:{},category:{},categoryId:{},mapping:{},term:{},theme:{},strict:{},reactionsEnabled:{},emitMetadata:{},inputPosition:{},lang:{},loading:{}},setup(e){const t=I(!1);return me(()=>{t.value=!0,Zl(()=>import("./giscus-aTimukGI.CKTvSCx2.js"),__vite__mapDeps([]))}),(n,o)=>t.value?(g(),k("giscus-widget",{key:0,id:n.id,host:n.host,repo:n.repo,repoid:n.repoId,category:n.category,categoryid:n.categoryId,mapping:n.mapping,term:n.term,strict:n.strict,reactionsenabled:n.reactionsEnabled,emitmetadata:n.emitMetadata,inputposition:n.inputPosition,theme:n.theme,lang:n.lang,loading:n.loading},null,8,BC)):O("",!0)}}),VC=L({__name:"CommentGiscus",setup(e){const{comment:t}=je(),n=w(()=>t?"type"in t&&t.type==="giscus"?t.options:"type"in t?!1:t:!1),{isDark:o}=Re(),s=pt(),r=I(!1);return Q(s,()=>{r.value=!1,_e(()=>{r.value=!0})},{immediate:!0}),(a,i)=>n.value&&r.value?(g(),H(u(NC),{key:0,repo:n.value.repo,"repo-id":n.value.repoId,category:n.value.category,"category-id":n.value.categoryId,mapping:n.value.mapping||"pathname","reactions-enabled":"1","emit-metadata":"0","input-position":n.value.inputPosition||"top",theme:u(o)?"dark":"light",lang:n.value.lang||"zh-CN",loading:n.value.loading||"eager"},null,8,["repo","repo-id","category","category-id","mapping","input-position","theme","lang","loading"])):O("",!0)}}),ur={scale:.08,position:[-30,0],stageStyle:{width:220},mobilePosition:[-10,0],mobileScale:.05,mobileStageStyle:{width:150}},Pt={tips:{copyTips:{duration:2e3,message:["复制成功,感谢您的支持!"]},style:{top:"-50px",fontSize:"14px",padding:"10px",width:"200px"},mobileStyle:{top:"-80px",left:"80px",fontSize:"14px",padding:"4px 10px",width:"110px"}}};function FC(){const e=j2();me(async()=>{var t,n,o,s,r,a,i;if(e){const{loadOml2d:l}=await Zl(()=>import("./index.BNnYFWcz.js"),__vite__mapDeps([]));l({...Pt,...e,models:(t=e==null?void 0:e.models)==null?void 0:t.map(c=>({...ur,...c,stageStyle:{...ur.stageStyle,...c.stageStyle},mobileStageStyle:{...ur.mobileStageStyle,...c.mobileStageStyle}})),tips:{...Pt.tips,...e.tips,style:{...(n=Pt==null?void 0:Pt.tips)==null?void 0:n.style,...(o=e==null?void 0:e.tips)==null?void 0:o.style},mobileStyle:{...(s=Pt==null?void 0:Pt.tips)==null?void 0:s.mobileStyle,...(r=e==null?void 0:e.tips)==null?void 0:r.mobileStyle},copyTips:{...(a=Pt==null?void 0:Pt.tips)==null?void 0:a.copyTips,...(i=e==null?void 0:e.tips)==null?void 0:i.copyTips}}})}})}const RC={id:"oh-my-live2d",style:{display:"none"}},DC=L({__name:"BlogOml2d",setup(e){return FC(),(t,n)=>(g(),k("div",RC))}}),HC=L({__name:"CommentArtalk",setup(e){const{isDark:t,page:n}=Re(),o=I(),s=pt(),r=I(),{comment:a}=je(),i=w(()=>a&&"type"in a&&a.type==="artalk"?a.options:!1);return me(()=>{new MutationObserver((c,d)=>{var f,v;window.Artalk&&i.value&&o.value&&(r.value=window.Artalk.init({el:o.value,darkMode:t.value,pageKey:s.path,pageTitle:n.value.title,server:(f=i.value)==null?void 0:f.server,site:(v=i.value)==null?void 0:v.site}),d.disconnect())}).observe(document.head,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["id"]})}),Q(()=>s.path,()=>{r.value&&(r.value.update({pageKey:s.path,pageTitle:n.value.title}),r.value.reload())}),Wt(()=>{r.value&&r.value.destroy()}),Q(t,()=>{r.value&&r.value.setDarkMode(t.value)}),(l,c)=>i.value?(g(),k("div",{key:0,ref_key:"el",ref:o,class:"artalk-container"},null,512)):O("",!0)}}),jC=ne(HC,[["__scopeId","data-v-63e0ba6a"]]),WC={key:0,class:"appreciation-container"},GC=["innerHTML"],UC=["innerHTML"],qC=L({__name:"BlogButtonAfterArticle",setup(e){const{buttonAfterArticle:t}=je(),{frontmatter:n}=Re(),o=w(()=>n.value.buttonAfterArticle),s=w(()=>o.value===!1||!o.value&&!t?!1:{...t,...o.value}),r=I(!1);Q(s,()=>{var l;r.value=!!((l=s.value)!=null&&l.expand)},{immediate:!0});const a=w(()=>{var c;const l=(c=s.value)==null?void 0:c.icon;return l==="aliPay"?w7:l==="wechatPay"?S7:l});function i(){r.value=!r.value}return(l,c)=>s.value?(g(),k("div",WC,[B(u(Ns),{size:s.value.size||"default",class:"content-button",type:r.value?"danger":"primary",onClick:i},{default:C(()=>[_("span",{class:"content-icon",innerHTML:a.value},null,8,GC),be(" "+D(r.value?s.value.closeTitle:s.value.openTitle),1)]),_:1},8,["size","type"]),B(at,{name:"content"},{default:C(()=>[r.value?(g(),k("div",{key:0,class:"content-container",innerHTML:s.value.content},null,8,UC)):O("",!0)]),_:1})])):O("",!0)}}),KC=ne(qC,[["__scopeId","data-v-edf3d263"]]),YC={class:"comment-btn-wrapper"},XC={class:"text"},QC=L({__name:"BlogCommentWrapper",setup(e){var b;ws(y=>({"8d4f5c34":m.value}));const{frontmatter:t}=Re(),n=I(null),o=mm(n);function s(){var y;(y=document.querySelector("#blog-comment-wrapper"))==null||y.scrollIntoView({behavior:"smooth",block:"start"})}const{comment:r}=je(),a=w(()=>r===!1?void 0:r),i=w(()=>r&&t.value.comment!==!1),{width:l}=na(),c=w(()=>{var y;return l.value<768&&(((y=a.value)==null?void 0:y.mobileMinify)??!0)}),d=(b=a.value)!=null&&b.icon?Be("i",{onVnodeMounted(y){var $;y.el&&(y.el.outerHTML=($=a.value)==null?void 0:$.icon)}}):Be(A8),f=document.querySelector(".vp-doc"),v=I(f),{width:h}=Lc(v),m=w(()=>`${h.value}px`),p=w(()=>{var y;return((y=a.value)==null?void 0:y.label)??"评论"});return(y,$)=>i.value&&u(h)?(g(),k("div",{key:0,id:"blog-comment-wrapper",ref_key:"commentEl",ref:n,class:"blog-comment-wrapper","data-pagefind-ignore":"all"},[A(y.$slots,"default",{},void 0,!0),ge(_("div",YC,[!c.value&&p.value?(g(),k("span",{key:0,class:"icon-wrapper-text",onClick:s},[B(u(pe),{size:20},{default:C(()=>[B(u(d))]),_:1}),_("span",XC,D(p.value),1)])):(g(),k("span",{key:1,class:"icon-wrapper",onClick:s},[B(u(pe),{size:20},{default:C(()=>[B(u(d))]),_:1})]))],512),[[Ie,!u(o)]])],512)):O("",!0)}}),ZC=ne(QC,[["__scopeId","data-v-bebc6048"]]),JC={class:"home"},eM={class:"header-banner"},tM={class:"content-wrapper"},nM={class:"blog-list-wrapper"},oM={class:"blog-info-wrapper"},sM=L({__name:"BlogApp",setup(e){const{frontmatter:t}=Re(),n=w(()=>t.value.layout),o=W2(),{Layout:s}=Ir;J2();const r=Wc();return(a,i)=>{const l=Fe("ClientOnly");return g(),H(u(s),{class:N({"blog-theme-layout":u(r)})},ql({"layout-top":C(()=>[A(a.$slots,"layout-top",{},void 0,!0),B(l,null,{default:C(()=>[B(DC),B(TT),B(jT)]),_:1})]),"doc-before":C(()=>[A(a.$slots,"doc-before",{},void 0,!0),B(l,null,{default:C(()=>[B(wT),B(rT)]),_:1})]),"nav-bar-content-before":C(()=>[A(a.$slots,"nav-bar-content-before",{},void 0,!0)]),"doc-after":C(()=>[A(a.$slots,"doc-after",{},void 0,!0),B(l,null,{default:C(()=>[B(KC),B(zC),B(ZC,null,{default:C(()=>[B(jC),B(VC)]),_:1})]),_:1})]),"layout-bottom":C(()=>[n.value==="home"?(g(),H(SC,{key:0})):O("",!0),A(a.$slots,"layout-bottom",{},void 0,!0)]),"nav-bar-title-before":C(()=>[A(a.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":C(()=>[A(a.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-after":C(()=>[A(a.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":C(()=>[A(a.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":C(()=>[A(a.$slots,"nav-screen-content-after",{},void 0,!0)]),"sidebar-nav-before":C(()=>[A(a.$slots,"sidebar-nav-before",{},void 0,!0)]),"page-top":C(()=>[A(a.$slots,"page-top",{},void 0,!0)]),"page-bottom":C(()=>[A(a.$slots,"page-bottom",{},void 0,!0)]),"not-found":C(()=>[A(a.$slots,"not-found",{},void 0,!0)]),"home-hero-info":C(()=>[A(a.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-image":C(()=>[A(a.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":C(()=>[A(a.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":C(()=>[A(a.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":C(()=>[A(a.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":C(()=>[A(a.$slots,"doc-footer-before",{},void 0,!0)]),"doc-top":C(()=>[A(a.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":C(()=>[A(a.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":C(()=>[A(a.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":C(()=>[A(a.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":C(()=>[A(a.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":C(()=>[A(a.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":C(()=>[A(a.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":C(()=>[A(a.$slots,"aside-ads-after",{},void 0,!0)]),_:2},[u(o)?{name:"home-hero-before",fn:C(()=>[A(a.$slots,"home-hero-before",{},void 0,!0),_("div",JC,[B(CC),_("div",eM,[B(T$)]),_("div",tM,[_("div",nM,[B(W$)]),_("div",oM,[B(w$)])])])]),key:"0"}:void 0,u(o)?{name:"sidebar-nav-after",fn:C(()=>[A(a.$slots,"sidebar-nav-after",{},void 0,!0),B(sT)]),key:"1"}:void 0]),1032,["class"])}}}),rM=ne(sM,[["__scopeId","data-v-34ab89af"]]),aM=/[\u0000-\u001f]/g,iM=/[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'“”‘’<>,.?/]+/g,lM=/[\u0300-\u036F]/g,Nl=e=>e.normalize("NFKD").replace(lM,"").replace(aM,"").replace(iM,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/^(\d)/,"_$1").toLowerCase(),Oo=e=>(xe("data-v-6704c7e6"),e=e(),Ae(),e),cM={class:"user-works-page VPDoc"},uM=Oo(()=>_("div",{class:"aside-container"},[_("div",{class:"filter"},[_("div"),_("div")])],-1)),dM={class:"works"},fM={key:0,class:"description"},pM=["id"],vM=["href"],hM=["id"],mM=["href"],gM=["href"],yM={key:1},bM={class:"info"},_M={class:"times"},wM=Oo(()=>_("span",{class:"icon"},[_("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[_("title",null,"上线时间"),_("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8s8 3.58 8 8s-3.58 8-8 8zm-.22-13h-.06c-.4 0-.72.32-.72.72v4.72c0 .35.18.68.49.86l4.15 2.49c.34.2.78.1.98-.24a.71.71 0 0 0-.25-.99l-3.87-2.3V7.72c0-.4-.32-.72-.72-.72z",fill:"currentColor"})])],-1)),SM={key:0},kM={key:0,class:"links"},$M=["href"],TM=Oo(()=>_("i",{class:"icon"},[_("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 496 512"},[_("path",{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6c-3.3.3-5.6-1.3-5.6-3.6c0-2 2.3-3.6 5.2-3.6c3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9c2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9c.3 2 2.9 3.3 5.9 2.6c2.9-.7 4.9-2.6 4.6-4.6c-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2c12.8 2.3 17.3-5.6 17.3-12.1c0-6.2-.3-40.4-.3-61.4c0 0-70 15-84.7-29.8c0 0-11.4-29.1-27.8-36.6c0 0-22.9-15.7 1.6-15.4c0 0 24.9 2 38.6 25.8c21.9 38.6 58.6 27.5 72.9 20.9c2.3-16 8.8-27.1 16-33.7c-55.9-6.2-112.3-14.3-112.3-110.5c0-27.5 7.6-41.3 23.6-58.9c-2.6-6.5-11.1-33.3 2.6-67.9c20.9-6.5 69 27 69 27c20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27c13.7 34.7 5.2 61.4 2.6 67.9c16 17.7 25.8 31.5 25.8 58.9c0 96.5-58.9 104.2-114.8 110.5c9.2 7.9 17 22.9 17 46.4c0 33.7-.3 75.4-.3 83.6c0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252C496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2c1.6 1.6 3.9 2.3 5.2 1c1.3-1 1-3.3-.7-5.2c-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9c1.6 1 3.6.7 4.3-.7c.7-1.3-.3-2.9-2.3-3.9c-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2c2.3 2.3 5.2 2.6 6.5 1c1.3-1.3.7-4.3-1.3-6.2c-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9c1.6 2.3 4.3 3.3 5.6 2.3c1.6-1.3 1.6-3.9 0-6.2c-1.4-2.3-4-3.3-5.6-2z",fill:"currentColor"})])],-1)),CM={key:0,class:"lastupdate"},MM={key:1,class:"links"},EM={key:0,class:"icon"},IM=Oo(()=>_("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[_("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[_("path",{d:"M10 14a3.5 3.5 0 0 0 5 0l4-4a3.5 3.5 0 0 0-5-5l-.5.5"}),_("path",{d:"M14 10a3.5 3.5 0 0 0-5 0l-4 4a3.5 3.5 0 0 0 5 5l.5-.5"})])],-1)),PM=[IM],xM=["href","title"],AM={key:2,class:"tags"},LM=Oo(()=>_("i",{class:"icon"},[_("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","data-v-d328c40a":""},[_("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128H256zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32z"})])],-1)),OM=["onClick"],zM={key:1,class:"images"},BM={key:0,class:"swiper-mode"},NM={key:1,class:"list-mode"},VM=["innerHTML"],FM={class:"aside-container"},RM={class:"aside-outline-container"},DM=L({__name:"UserWorks",setup(e){const t=K2();Q(()=>t.id,c=>{c&&window.history.replaceState(null,"",`#${c}`)});const n=q2();Q(n,()=>{const{value:c}=n;c&&c.scroll({behavior:"smooth"})});const o=G2(),s=De([]);Q(o,c=>{const d=[...c.list].map(m=>{const{time:p}=m,b=typeof p=="string"?{startTime:p,endTime:"",lastUpdate:""}:{startTime:p.start,endTime:p.end,lastUpdate:p.lastupdate},y=[];let $="swiper";return typeof m.cover=="string"?y.push(m.cover):Array.isArray(m.cover)?y.push(...m.cover):typeof m.cover=="object"&&(y.push(...m.cover.urls),$=m.cover.layout??$),{...m,...b,covers:y,coverLayout:$}}),f=d.filter(m=>m.top!==void 0),v=d.filter(m=>m.top===void 0);f.sort((m,p)=>m.top-p.top),v.sort((m,p)=>+new Date(p.startTime)-+new Date(m.startTime)),f.length&&(f[0].year=o.value.topTitle??"置顶");const h=v.reduce((m,p)=>{const{startTime:b}=p,y=new Date(b).getFullYear(),$={...p};return m[y]||(m[y]=[],$.year=y),m[y].push($),m},{});s.push(...f,...Object.values(h).reverse().flat())},{immediate:!0});const r=I(!0);zt(()=>{s.length&&r.value&&(r.value=!1,s.forEach(c=>{if(!c.lastUpdate&&c.github){c.lastUpdate="获取中...";const{github:d}=c;if(typeof d=="string")sy(d).then(f=>{c.lastUpdate=as(f,"yyyy-MM-dd")}).catch(()=>{c.lastUpdate="地址解析失败"});else{const{owner:f,repo:v,path:h,branch:m}=d;let p=`https://github.com/${f}/${v}`;h?p+=`/tree/${m||"master"}/${h}`:m&&(p+=`/tree/${m}`),c.github=p,ry(f,v,h??"",m).then(b=>{c.lastUpdate=as(b,"yyyy-MM-dd")}).catch(()=>{c.lastUpdate="地址解析失败"})}}}))});const{width:a}=na(),i=w(()=>a.value>768);function l(c){m7({message:`点击了${c}标签,标签过滤功能开发中ing...`,type:"warning"})}return(c,d)=>{const f=Fe("Badge");return g(),k("div",cM,[uM,_("div",dM,[_("h1",null,D(u(o).title),1),u(o).description?(g(),k("p",fM,D(u(o).description),1)):O("",!0),(g(!0),k(se,null,ve(s,(v,h)=>{var m,p,b,y,$;return g(),k("div",{key:h,class:"work"},[v.year?(g(),k("h2",{key:0,id:`work_${v.year}`},[_("a",{href:`#work_${v.year}`},D(v.year),9,vM)],8,pM)):O("",!0),_("h3",{id:u(Nl)(v.title),class:"title"},[_("a",{class:"pin",href:`#${u(Nl)(v.title)}`},null,8,mM),v.url?(g(),k("a",{key:0,rel:"noopener",target:"_blank",href:v.url},D(v.title),9,gM)):(g(),k("span",yM,D(v.title),1)),v.status?(g(),H(f,{key:2,type:((m=v.status)==null?void 0:m.type)||"tip"},{default:C(()=>[be(D(v.status.text),1)]),_:2},1032,["type"])):O("",!0)],8,hM),_("div",bM,[_("div",_M,[wM,_("span",null,D(v.startTime),1),v.endTime?(g(),k("span",SM," - "+D(v.endTime),1)):O("",!0)]),v.github?(g(),k("div",kM,[v.github?(g(),k("a",{key:0,class:"github-link",href:v.github,target:"_blank",rel:"noopener"},[TM,v.lastUpdate?(g(),k("span",CM,"最后更新时间:"+D(v.lastUpdate),1)):O("",!0)],8,$M)):O("",!0)])):O("",!0),(p=v.links)!=null&&p.length?(g(),k("div",MM,[(b=v.links)!=null&&b.length?(g(),k("i",EM,PM)):O("",!0),(g(!0),k(se,null,ve(v.links||[],S=>(g(),k("a",{key:S.url,class:"link",href:S.url,title:S.title,target:"_blank",rel:"noopener"},D(S.title),9,xM))),128))])):O("",!0),(y=v.tags)!=null&&y.length?(g(),k("div",AM,[LM,(g(!0),k(se,null,ve(v.tags,S=>(g(),k("span",{key:S,class:"tag",onClick:T=>l(S)},D(S),9,OM))),128))])):O("",!0)]),($=v.covers)!=null&&$.length?(g(),k("div",zM,[v.coverLayout==="swiper"?(g(),k("div",BM,[B(u(I9),{autoplay:"",height:"260px",type:i.value&&v.covers.length>=3?"card":""},{default:C(()=>[(g(!0),k(se,null,ve(v.covers,(S,T)=>(g(),H(u(P9),{key:S,style:{"text-align":"center"}},{default:C(()=>[(g(),H(u(Tl),{key:S,"preview-teleported":"",src:S,loading:"lazy","preview-src-list":v.covers,"initial-index":T,"hide-on-click-modal":"",alt:`${v.title}-${T}`},null,8,["src","preview-src-list","initial-index","alt"]))]),_:2},1024))),128))]),_:2},1032,["type"])])):O("",!0),v.coverLayout==="list"?(g(),k("div",NM,[(g(!0),k(se,null,ve(v.covers,(S,T)=>(g(),H(u(Tl),{key:S,src:S,loading:"lazy","preview-src-list":v.covers,"initial-index":T,"hide-on-click-modal":""},null,8,["src","preview-src-list","initial-index"]))),128))])):O("",!0)])):O("",!0),_("div",{class:"description",innerHTML:v.description},null,8,VM)])}),128))]),_("div",FM,[_("div",RM,[B(nc)])])])}}}),HM=ne(DM,[["__scopeId","data-v-6704c7e6"]]),Vl={...Ir,Layout:R2(rM),enhanceApp(e){F2(e.app),Ir.enhanceApp(e),e.app.component("UserWorksPage",HM)}};function jM(e){let t=new Date(e),n=new Date;return t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),n=new Date(n.getFullYear(),n.getMonth(),n.getDate()),(n.getTime()-t.getTime())/(24*60*60*1e3)}const WM=[{name:"枫",author:"周杰伦",file:"https://huangmingfu.github.io/drawing-bed/audios/枫-周杰伦.mp3"},{name:"你好不好",author:"周兴哲",file:"https://huangmingfu.github.io/drawing-bed/audios/你好不好-周兴哲.mp3"},{name:"恶人",author:"孙子涵",file:"https://huangmingfu.github.io/drawing-bed/audios/恶人-孙子涵.mp3"},{name:"够钟",author:"周柏豪",file:"https://huangmingfu.github.io/drawing-bed/audios/够钟-周柏豪.mp3"},{name:"停在昨天",author:"乔洋",file:"https://huangmingfu.github.io/drawing-bed/audios/停在昨天-乔洋.mp3"},{name:"我走后",author:"女版",file:"https://huangmingfu.github.io/drawing-bed/audios/我走后-女版.mp3"},{name:"还是会想你",author:"林达浪_h3R3",file:"https://huangmingfu.github.io/drawing-bed/audios/还是会想你-林达浪_h3R3.mp3"},{name:"后继者",author:"任然",file:"https://huangmingfu.github.io/drawing-bed/audios/后继者-任然.mp3"},{name:"晚风遇见你",author:"陆杰awr",file:"https://huangmingfu.github.io/drawing-bed/audios/晚风遇见你-陆杰awr.mp3"},{name:"回到夏天",author:"小田音乐社_傲七爷",file:"https://huangmingfu.github.io/drawing-bed/audios/回到夏天-小田音乐社_傲七爷.mp3"}],Sd=e=>(xe("data-v-1b0c6326"),e=e(),Ae(),e),GM={class:"layout-bottom-extra-tips"},UM=Sd(()=>_("span",null,[be("👁️‍🗨️总访问量 "),_("span",{id:"busuanzi_value_site_pv"}),be(" 次 | ")],-1)),qM=Sd(()=>_("span",null,[be("👤访客数 "),_("span",{id:"busuanzi_value_site_uv"}),be(" 次 | ")],-1)),KM=L({__name:"LayoutBottom",setup(e){return(t,n)=>(g(),k("div",GM,[UM,qM,_("span",null,"🏃已运行 "+D(u(jM)("2024-03-08"))+" 天",1)]))}}),YM=ne(KM,[["__scopeId","data-v-1b0c6326"]]);var kd,Un,Ft,$d,dr,Fl,Wn,Xo=!1,Qo=[];typeof document<"u"&&($d=function(e){return Xo||document.readyState==="interactive"||document.readyState==="complete"?e.call(document):Qo.push(function(){return e.call(this)}),this},Fl=function(){for(var e=0,t=Qo.length;e{Un&&Un.hides(),kd.fetch("//busuanzi.ibruce.info/busuanzi?jsonpCallback=BusuanziCallback",function(e){Un.texts(e),Un.shows()})};Un={bszs:["site_pv","page_pv","site_uv"],texts:function(e){this.bszs.map(function(t){var n=document.getElementById("busuanzi_value_"+t);n&&(n.innerHTML=e[t])})},hides:function(){this.bszs.map(function(e){var t=document.getElementById("busuanzi_container_"+e);t&&(t.style.display="none")})},shows:function(){this.bszs.map(function(e){var t=document.getElementById("busuanzi_container_"+e);t&&(t.style.display="inline")})}};typeof document<"u"&&Td();var XM={fetch:Td},QM=XM;const ZM=l9(QM);let fr;const pr=(e,t)=>new Promise((n,o)=>{cancelAnimationFrame(fr),e.volume=t?0:1;let s=!1,r=30;const a=()=>{e.volume=Math.min(Math.max(e.volume+(t?r:-r)/1e3,0),1),s=e.volume===1||e.volume===0,s?n(e.volume):(r=Math.max(r-1,5),fr=requestAnimationFrame(a))};fr=requestAnimationFrame(a)}),JM={class:"vitepress-music__drawer"},eE={class:"vitepress-music__drawer-header"},tE=_("span",null,"Playlist",-1),nE={class:"vitepress-music__drawer-content"},oE=["onClick"],sE={class:"vitepress-music__trigger"},rE=["src"],aE=L({__name:"template",props:{list:null},setup(e){const t=e,n=I({status:2,showList:!1,currentIndex:0,errorIndexList:[]}),o=w(()=>t.list.filter(m=>!m.hide)),s=w(()=>n.value.status===0),r=w(()=>n.value.status===1),a=w(()=>n.value.status===2),i=w(()=>({"is-play":s.value,"is-pause":r.value,"is-stop":a.value,"is-show-list":n.value.showList})),l=w(()=>o.value[n.value.currentIndex]),c=()=>{n.value.status=s.value?1:0},d=()=>{n.value.showList=!n.value.showList},f=I(),v=m=>{if(m===n.value.currentIndex)return c();n.value.status=2,n.value.currentIndex=m<0?o.value.length-1:m>o.value.length-1?0:m,_e(()=>n.value.status=0)},h=()=>{const{errorIndexList:m,currentIndex:p}=n.value;m.includes(p)||m.push(p),m.lengthn.value.status,async m=>{switch(m){case 0:f.value.play(),pr(f.value,!0);break;case 1:await pr(f.value,!1),f.value.pause();break;case 2:await pr(f.value,!1),f.value.pause();break}}),(m,p)=>{var b;return g(),k("div",{class:N(["vitepress-music",u(i)])},[_("div",JM,[_("div",eE,[_("div",null,[_("span",{class:"iconfont icon-shouqi",onClick:d}),tE]),_("span",null,"Total "+D(((b=u(o))==null?void 0:b.length)||0),1)]),_("ul",nE,[(g(!0),k(se,null,ve(u(o),(y,$)=>(g(),k(se,null,[y.hide?O("",!0):(g(),k("li",{key:y.name,class:N({active:n.value.currentIndex===$,error:n.value.errorIndexList.includes($),playing:u(s)&&n.value.currentIndex===$}),onClick:S=>v($)},[_("div",null,D(y.name),1),_("div",null,D(y.author),1)],10,oE))],64))),256))])]),_("div",sE,[_("span",{class:"iconfont icon-changpianji",onClick:c}),_("span",{class:"iconfont icon-shangyishou",onClick:p[0]||(p[0]=y=>v(n.value.currentIndex-1))}),_("span",{class:"iconfont icon-xiayishou",onClick:p[1]||(p[1]=y=>v(n.value.currentIndex+1))}),_("span",{class:"iconfont icon-gedan",onClick:d})]),_("audio",{ref_key:"audioRef",ref:f,src:u(l).file,controls:"controls",preload:"auto",onEnded:p[2]||(p[2]=y=>v(n.value.currentIndex+1)),onError:p[3]||(p[3]=y=>h())},null,40,rE)],2)}}}),iE=(e=[])=>{if(typeof window>"u")return;document.getElementsByTagName("body")[0];const t=B(aE,{list:e}),n=document.createElement("div");hr(t,n),document.body.appendChild(n)},pE={extends:Vl,Layout:Be(Vl.Layout,void 0,{"layout-bottom":()=>Be(YM)}),async enhanceApp({app:e,router:t}){Nn&&(t.onAfterRouteChanged=()=>{ZM.fetch()}),iE(WM)}};export{pE as R}; diff --git a/assets/game_LightMeet.md.DRVWC5cR.js b/assets/game_LightMeet.md.DRVWC5cR.js new file mode 100644 index 0000000..f06ba1d --- /dev/null +++ b/assets/game_LightMeet.md.DRVWC5cR.js @@ -0,0 +1 @@ +import{_ as e,o as a,c as t,a8 as i}from"./chunks/framework.DBQkAOx6.js";const J=JSON.parse('{"title":"光遇 👻 光是遇见你,就很幸运","description":"身处伊甸,朝向光明...","frontmatter":{"sticky":500,"tag":["Game"],"description":"身处伊甸,朝向光明..."},"headers":[],"relativePath":"game/LightMeet.md","filePath":"game/LightMeet.md","lastUpdated":1720350421000}'),o={name:"game/LightMeet.md"},d=i('

光遇 👻 光是遇见你,就很幸运

前言

想必有一部分人是因为这个游戏认识的我,我也玩这个游戏玩了好久。现在想想,非常的怀念,与你们相识,是我的荣幸~

开始

从一个小白,懵懵懂懂,第一天玩就遇到了一个大佬带着我,带着我拿光翼和烛火,那时候也不知道这些有什么用,就觉得他很厉害。后面我也利用空余时间在b站看教程视频,也了解了不少,入门基础知识也差不多了

献祭

第一次献祭也是被那个大佬带着,他人很好,而且非常有耐心。那时候辛辛苦苦攒的翅膀就这样一个个掉落,我也不知道为啥,我以为这个游戏就这样通关了😂

成长

后面那个大佬走了,不知道是脱坑了还是带其他萌新去了,不管怎么样还是非常感谢他的😊。因为看了不少视频教程,我也慢慢学会了各种跑图技巧,包括遁地、穿墙等等😎,效率一下子就上来了,装扮也慢慢变得好看,渐渐有了大佬的气息😼

转变

随着玩光遇的时间越来越长,途中也认识到了不少的人,大家匆匆忙忙的来了,又匆匆忙忙的走了,终于也轮到了我。后面我不再专注于跑图,做起了光遇测身高🤫,大家也是通过这个认识的我,尝试了一段时间后就奔向于生活了。(ps:大家不要学哈🫡,要认真学习好好听课)

最后

送给还在玩光子们

-接下来的旅途还很长,你自己一个人要加油
-愿你一个人时,也能有飞跃黑暗面对冥龙的勇气


一些光遇的语录

  • 因光而遇,因遇而散
  • 温暖的灵魂终将相遇
  • 我想陪你一起看千鸟城的落霞星光
  • 夜晚是如此的美丽,倘若晨岛有黑夜
  • 总会相逢,就像山川河流,万河归海
  • 晨光起于白塔顶尖,终将照亮阴霾之地
  • 因为遇见了温柔的人,所以自己也开始变得温柔
  • 我们分享彼此生活中的精彩,或许能成为对方旅途中的灿烂
  • 告别黄昏,从此挣脱藏身的黑暗,向光里坠落
  • 彻骨的严寒与深邃的天蓝将我藏匿在书库里无人的星海
  • 失去了所有的星光,不代表失去了一切
  • 我很想你,但云野的风或许没传达给你,但是对你的思绪永不停止
  • 别怕,光在,我也在
',23),l=[d];function r(c,n,h,s,g,m){return a(),t("div",null,l)}const u=e(o,[["render",r]]);export{J as __pageData,u as default}; diff --git a/assets/game_LightMeet.md.DRVWC5cR.lean.js b/assets/game_LightMeet.md.DRVWC5cR.lean.js new file mode 100644 index 0000000..c3883b0 --- /dev/null +++ b/assets/game_LightMeet.md.DRVWC5cR.lean.js @@ -0,0 +1 @@ +import{_ as e,o as a,c as t,a8 as i}from"./chunks/framework.DBQkAOx6.js";const J=JSON.parse('{"title":"光遇 👻 光是遇见你,就很幸运","description":"身处伊甸,朝向光明...","frontmatter":{"sticky":500,"tag":["Game"],"description":"身处伊甸,朝向光明..."},"headers":[],"relativePath":"game/LightMeet.md","filePath":"game/LightMeet.md","lastUpdated":1720350421000}'),o={name:"game/LightMeet.md"},d=i("",23),l=[d];function r(c,n,h,s,g,m){return a(),t("div",null,l)}const u=e(o,[["render",r]]);export{J as __pageData,u as default}; diff --git a/assets/index.md.BbDEuuOW.js b/assets/index.md.BbDEuuOW.js new file mode 100644 index 0000000..0344c68 --- /dev/null +++ b/assets/index.md.BbDEuuOW.js @@ -0,0 +1 @@ +import{_ as J,o as U,c as T,m as I}from"./chunks/framework.DBQkAOx6.js";const B=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","blog":{"name":"欢迎来到a无名的博客","motto":"记录日常和知识分享","inspiring":["江湖险恶,不行就撤","不说话,装高手","千万不要因为走得太久,而忘记了我们为什么出发","人生就像一场修行,你不可能一开始就修成正果","无论多么沉重的负担,也不要忘记微笑;无论多么漫长的路程,也不要忘记坚持","生活的真谛不在繁华,而在于淡泊","醒,亦在人间;梦,亦在人间"],"inspiringTimeout":5000,"pageSize":6}},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1711110799000}'),l={name:"index.md"},E=I("div",{style:{display:"none"},"data-pagefind-meta":"base64:JTdCJTIybGF5b3V0JTIyJTNBJTIyaG9tZSUyMiUyQyUyMmJsb2clMjIlM0ElN0IlMjJuYW1lJTIyJTNBJTIyJUU2JUFDJUEyJUU4JUJGJThFJUU2JTlEJUE1JUU1JTg4JUIwYSVFNiU5NyVBMCVFNSU5MCU4RCVFNyU5QSU4NCVFNSU4RCU5QSVFNSVBRSVBMiUyMiUyQyUyMm1vdHRvJTIyJTNBJTIyJUU4JUFFJUIwJUU1JUJEJTk1JUU2JTk3JUE1JUU1JUI4JUI4JUU1JTkyJThDJUU3JTlGJUE1JUU4JUFGJTg2JUU1JTg4JTg2JUU0JUJBJUFCJTIyJTJDJTIyaW5zcGlyaW5nJTIyJTNBJTVCJTIyJUU2JUIxJTlGJUU2JUI5JTk2JUU5JTk5JUE5JUU2JTgxJUI2JUVGJUJDJThDJUU0JUI4JThEJUU4JUExJThDJUU1JUIwJUIxJUU2JTkyJUE0JTIyJTJDJTIyJUU0JUI4JThEJUU4JUFGJUI0JUU4JUFGJTlEJUVGJUJDJThDJUU4JUEzJTg1JUU5JUFCJTk4JUU2JTg5JThCJTIyJTJDJTIyJUU1JThEJTgzJUU0JUI4JTg3JUU0JUI4JThEJUU4JUE2JTgxJUU1JTlCJUEwJUU0JUI4JUJBJUU4JUI1JUIwJUU1JUJFJTk3JUU1JUE0JUFBJUU0JUI5JTg1JUVGJUJDJThDJUU4JTgwJThDJUU1JUJGJTk4JUU4JUFFJUIwJUU0JUJBJTg2JUU2JTg4JTkxJUU0JUJCJUFDJUU0JUI4JUJBJUU0JUJCJTgwJUU0JUI5JTg4JUU1JTg3JUJBJUU1JThGJTkxJTIyJTJDJTIyJUU0JUJBJUJBJUU3JTk0JTlGJUU1JUIwJUIxJUU1JTgzJThGJUU0JUI4JTgwJUU1JTlDJUJBJUU0JUJGJUFFJUU4JUExJThDJUVGJUJDJThDJUU0JUJEJUEwJUU0JUI4JThEJUU1JThGJUFGJUU4JTgzJUJEJUU0JUI4JTgwJUU1JUJDJTgwJUU1JUE3JThCJUU1JUIwJUIxJUU0JUJGJUFFJUU2JTg4JTkwJUU2JUFEJUEzJUU2JTlFJTlDJTIyJTJDJTIyJUU2JTk3JUEwJUU4JUFFJUJBJUU1JUE0JTlBJUU0JUI5JTg4JUU2JUIyJTg5JUU5JTg3JThEJUU3JTlBJTg0JUU4JUI0JTlGJUU2JThCJTg1JUVGJUJDJThDJUU0JUI5JTlGJUU0JUI4JThEJUU4JUE2JTgxJUU1JUJGJTk4JUU4JUFFJUIwJUU1JUJFJUFFJUU3JUFDJTkxJUVGJUJDJTlCJUU2JTk3JUEwJUU4JUFFJUJBJUU1JUE0JTlBJUU0JUI5JTg4JUU2JUJDJUFCJUU5JTk1JUJGJUU3JTlBJTg0JUU4JUI3JUFGJUU3JUE4JThCJUVGJUJDJThDJUU0JUI5JTlGJUU0JUI4JThEJUU4JUE2JTgxJUU1JUJGJTk4JUU4JUFFJUIwJUU1JTlEJTlBJUU2JThDJTgxJTIyJTJDJTIyJUU3JTk0JTlGJUU2JUI0JUJCJUU3JTlBJTg0JUU3JTlDJTlGJUU4JUIwJTlCJUU0JUI4JThEJUU1JTlDJUE4JUU3JUI5JTgxJUU1JThEJThFJUVGJUJDJThDJUU4JTgwJThDJUU1JTlDJUE4JUU0JUJBJThFJUU2JUI3JUExJUU2JUIzJThBJTIyJTJDJTIyJUU5JTg2JTkyJUVGJUJDJThDJUU0JUJBJUE2JUU1JTlDJUE4JUU0JUJBJUJBJUU5JTk3JUI0JUVGJUJDJTlCJUU2JUEyJUE2JUVGJUJDJThDJUU0JUJBJUE2JUU1JTlDJUE4JUU0JUJBJUJBJUU5JTk3JUI0JTIyJTVEJTJDJTIyaW5zcGlyaW5nVGltZW91dCUyMiUzQTUwMDAlMkMlMjJwYWdlU2l6ZSUyMiUzQTYlN0QlMkMlMjJkYXRlJTIyJTNBMTcxMTExMDc5OTAwMCU3RA=="},null,-1),y=[E];function D(e,g,h,F,t,a){return U(),T("div",null,y)}const i=J(l,[["render",D]]);export{B as __pageData,i as default}; diff --git a/assets/index.md.BbDEuuOW.lean.js b/assets/index.md.BbDEuuOW.lean.js new file mode 100644 index 0000000..0344c68 --- /dev/null +++ b/assets/index.md.BbDEuuOW.lean.js @@ -0,0 +1 @@ +import{_ as J,o as U,c as T,m as I}from"./chunks/framework.DBQkAOx6.js";const B=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","blog":{"name":"欢迎来到a无名的博客","motto":"记录日常和知识分享","inspiring":["江湖险恶,不行就撤","不说话,装高手","千万不要因为走得太久,而忘记了我们为什么出发","人生就像一场修行,你不可能一开始就修成正果","无论多么沉重的负担,也不要忘记微笑;无论多么漫长的路程,也不要忘记坚持","生活的真谛不在繁华,而在于淡泊","醒,亦在人间;梦,亦在人间"],"inspiringTimeout":5000,"pageSize":6}},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1711110799000}'),l={name:"index.md"},E=I("div",{style:{display:"none"},"data-pagefind-meta":"base64:JTdCJTIybGF5b3V0JTIyJTNBJTIyaG9tZSUyMiUyQyUyMmJsb2clMjIlM0ElN0IlMjJuYW1lJTIyJTNBJTIyJUU2JUFDJUEyJUU4JUJGJThFJUU2JTlEJUE1JUU1JTg4JUIwYSVFNiU5NyVBMCVFNSU5MCU4RCVFNyU5QSU4NCVFNSU4RCU5QSVFNSVBRSVBMiUyMiUyQyUyMm1vdHRvJTIyJTNBJTIyJUU4JUFFJUIwJUU1JUJEJTk1JUU2JTk3JUE1JUU1JUI4JUI4JUU1JTkyJThDJUU3JTlGJUE1JUU4JUFGJTg2JUU1JTg4JTg2JUU0JUJBJUFCJTIyJTJDJTIyaW5zcGlyaW5nJTIyJTNBJTVCJTIyJUU2JUIxJTlGJUU2JUI5JTk2JUU5JTk5JUE5JUU2JTgxJUI2JUVGJUJDJThDJUU0JUI4JThEJUU4JUExJThDJUU1JUIwJUIxJUU2JTkyJUE0JTIyJTJDJTIyJUU0JUI4JThEJUU4JUFGJUI0JUU4JUFGJTlEJUVGJUJDJThDJUU4JUEzJTg1JUU5JUFCJTk4JUU2JTg5JThCJTIyJTJDJTIyJUU1JThEJTgzJUU0JUI4JTg3JUU0JUI4JThEJUU4JUE2JTgxJUU1JTlCJUEwJUU0JUI4JUJBJUU4JUI1JUIwJUU1JUJFJTk3JUU1JUE0JUFBJUU0JUI5JTg1JUVGJUJDJThDJUU4JTgwJThDJUU1JUJGJTk4JUU4JUFFJUIwJUU0JUJBJTg2JUU2JTg4JTkxJUU0JUJCJUFDJUU0JUI4JUJBJUU0JUJCJTgwJUU0JUI5JTg4JUU1JTg3JUJBJUU1JThGJTkxJTIyJTJDJTIyJUU0JUJBJUJBJUU3JTk0JTlGJUU1JUIwJUIxJUU1JTgzJThGJUU0JUI4JTgwJUU1JTlDJUJBJUU0JUJGJUFFJUU4JUExJThDJUVGJUJDJThDJUU0JUJEJUEwJUU0JUI4JThEJUU1JThGJUFGJUU4JTgzJUJEJUU0JUI4JTgwJUU1JUJDJTgwJUU1JUE3JThCJUU1JUIwJUIxJUU0JUJGJUFFJUU2JTg4JTkwJUU2JUFEJUEzJUU2JTlFJTlDJTIyJTJDJTIyJUU2JTk3JUEwJUU4JUFFJUJBJUU1JUE0JTlBJUU0JUI5JTg4JUU2JUIyJTg5JUU5JTg3JThEJUU3JTlBJTg0JUU4JUI0JTlGJUU2JThCJTg1JUVGJUJDJThDJUU0JUI5JTlGJUU0JUI4JThEJUU4JUE2JTgxJUU1JUJGJTk4JUU4JUFFJUIwJUU1JUJFJUFFJUU3JUFDJTkxJUVGJUJDJTlCJUU2JTk3JUEwJUU4JUFFJUJBJUU1JUE0JTlBJUU0JUI5JTg4JUU2JUJDJUFCJUU5JTk1JUJGJUU3JTlBJTg0JUU4JUI3JUFGJUU3JUE4JThCJUVGJUJDJThDJUU0JUI5JTlGJUU0JUI4JThEJUU4JUE2JTgxJUU1JUJGJTk4JUU4JUFFJUIwJUU1JTlEJTlBJUU2JThDJTgxJTIyJTJDJTIyJUU3JTk0JTlGJUU2JUI0JUJCJUU3JTlBJTg0JUU3JTlDJTlGJUU4JUIwJTlCJUU0JUI4JThEJUU1JTlDJUE4JUU3JUI5JTgxJUU1JThEJThFJUVGJUJDJThDJUU4JTgwJThDJUU1JTlDJUE4JUU0JUJBJThFJUU2JUI3JUExJUU2JUIzJThBJTIyJTJDJTIyJUU5JTg2JTkyJUVGJUJDJThDJUU0JUJBJUE2JUU1JTlDJUE4JUU0JUJBJUJBJUU5JTk3JUI0JUVGJUJDJTlCJUU2JUEyJUE2JUVGJUJDJThDJUU0JUJBJUE2JUU1JTlDJUE4JUU0JUJBJUJBJUU5JTk3JUI0JTIyJTVEJTJDJTIyaW5zcGlyaW5nVGltZW91dCUyMiUzQTUwMDAlMkMlMjJwYWdlU2l6ZSUyMiUzQTYlN0QlMkMlMjJkYXRlJTIyJTNBMTcxMTExMDc5OTAwMCU3RA=="},null,-1),y=[E];function D(e,g,h,F,t,a){return U(),T("div",null,y)}const i=J(l,[["render",D]]);export{B as __pageData,i as default}; diff --git a/assets/me_AboutMe.md.Bx0Ri-kW.js b/assets/me_AboutMe.md.Bx0Ri-kW.js new file mode 100644 index 0000000..80adf8b --- /dev/null +++ b/assets/me_AboutMe.md.Bx0Ri-kW.js @@ -0,0 +1 @@ +import{_ as o,o as l,c as i,a8 as e}from"./chunks/framework.DBQkAOx6.js";const b=JSON.parse('{"title":"🥰 关于我","description":"","frontmatter":{"top":1,"tag":["Me"],"sidebar":false},"headers":[],"relativePath":"me/AboutMe.md","filePath":"me/AboutMe.md","lastUpdated":1720352230000}'),s={name:"me/AboutMe.md"},t=e('

🥰 关于我

介绍:

I'm ming ,是一名奋斗在职场的小码农,主前端辅后端,建立个人博客的初衷是希望拥有一个能够有一个随时展示自己,同时记录各种技术文章,总结工作学习内容和分享个人经历的个人小笔记;网站主内容覆盖关于前端,后端,服务器相关技术文章,同时也会更新发布一些动漫,游戏等偏个人兴趣爱好的文章。

主要涉及技术

JavaScript  HTML5  CSS3  TypeScript  Vue3  Ant Design  Node.js  Vite  Webpack  NPM  Axios  ESLint  jQuery  BootStrap  ECharts  Tailwind CSS  Less 

...

很惭愧😞

只做了一点微小的工作🖥︎

谢谢大家的光临🥹


',7),a=[t];function g(r,p,d,c,n,m){return l(),i("div",null,a)}const y=o(s,[["render",g]]);export{b as __pageData,y as default}; diff --git a/assets/me_AboutMe.md.Bx0Ri-kW.lean.js b/assets/me_AboutMe.md.Bx0Ri-kW.lean.js new file mode 100644 index 0000000..42993b9 --- /dev/null +++ b/assets/me_AboutMe.md.Bx0Ri-kW.lean.js @@ -0,0 +1 @@ +import{_ as o,o as l,c as i,a8 as e}from"./chunks/framework.DBQkAOx6.js";const b=JSON.parse('{"title":"🥰 关于我","description":"","frontmatter":{"top":1,"tag":["Me"],"sidebar":false},"headers":[],"relativePath":"me/AboutMe.md","filePath":"me/AboutMe.md","lastUpdated":1720352230000}'),s={name:"me/AboutMe.md"},t=e("",7),a=[t];function g(r,p,d,c,n,m){return l(),i("div",null,a)}const y=o(s,[["render",g]]);export{b as __pageData,y as default}; diff --git a/assets/resources_Icon.md.DbqaQilb.js b/assets/resources_Icon.md.DbqaQilb.js new file mode 100644 index 0000000..3fd00ac --- /dev/null +++ b/assets/resources_Icon.md.DbqaQilb.js @@ -0,0 +1 @@ +import{_ as e,o as r,c as a,a8 as l}from"./chunks/framework.DBQkAOx6.js";const _=JSON.parse('{"title":"🙂 在线icon图标/emoji资源网站","description":"个人收集的一些即拿即用的图标网站~","frontmatter":{"tag":["Resources"],"description":"个人收集的一些即拿即用的图标网站~"},"headers":[],"relativePath":"resources/Icon.md","filePath":"resources/Icon.md","lastUpdated":1713015343000}'),o={name:"resources/Icon.md"},t=l('

🙂 在线icon图标/emoji资源网站

icon/svg图标

国旗SVG图标
技术相关 SVG 图标汇总
Yesicon - 开源、免费的矢量图标库
Iconbuddy
xicons
Iconbolt
icones
Iconify图标
Simple Icons

emoji - 可直接复制粘贴到md文件

Emoji大全(需魔法)
Emoji表情大全

',6),n=[t];function s(i,c,h,T,p,d){return r(),a("div",null,n)}const f=e(o,[["render",s]]);export{_ as __pageData,f as default}; diff --git a/assets/resources_Icon.md.DbqaQilb.lean.js b/assets/resources_Icon.md.DbqaQilb.lean.js new file mode 100644 index 0000000..8ba749c --- /dev/null +++ b/assets/resources_Icon.md.DbqaQilb.lean.js @@ -0,0 +1 @@ +import{_ as e,o as r,c as a,a8 as l}from"./chunks/framework.DBQkAOx6.js";const _=JSON.parse('{"title":"🙂 在线icon图标/emoji资源网站","description":"个人收集的一些即拿即用的图标网站~","frontmatter":{"tag":["Resources"],"description":"个人收集的一些即拿即用的图标网站~"},"headers":[],"relativePath":"resources/Icon.md","filePath":"resources/Icon.md","lastUpdated":1713015343000}'),o={name:"resources/Icon.md"},t=l("",6),n=[t];function s(i,c,h,T,p,d){return r(),a("div",null,n)}const f=e(o,[["render",s]]);export{_ as __pageData,f as default}; diff --git a/assets/style.DLbREHDA.css b/assets/style.DLbREHDA.css new file mode 100644 index 0000000..579a15e --- /dev/null +++ b/assets/style.DLbREHDA.css @@ -0,0 +1 @@ +@charset "UTF-8";html{--bg-gradient: 255, 255, 255, .1;--bg-gradient-home: 255, 255, 255;--box-shadow: 0 1px 8px 0 rgba(0, 0, 0, .1);--box-shadow-hover: 0 2px 16px 0 rgba(0, 0, 0, .2);--nav-bgc: rgba(255, 255, 255, .9);--badge-font-color: #4e5969;--description-font-color: #86909c;--blog-theme-color: var(--vp-c-brand-1)}html.dark{--bg-gradient: 20, 20, 20, .7;--bg-gradient-home: 20, 20, 20;--box-shadow: 0 1px 8px 0 rgba(0, 0, 0, .6);--nav-bgc: rgba(0, 0, 0, .8);--box-shadow-hover: 0 2px 16px 0 rgba(0, 0, 0, .7);--badge-font-color: #bdc3cc;--description-font-color: #9facba}.VPHome{min-height:100vh;background:radial-gradient(ellipse,rgba(var(--bg-gradient-home),1),rgba(var(--bg-gradient-home),0) 700%)}.VPHome:before{content:"";right:0;bottom:0;left:0;position:fixed;top:0;z-index:-1;background-image:url(/my-blog/assets/bg.lY9kzd0O.png);background-repeat:repeat;min-height:100%}.VPHome{margin-bottom:0!important;padding-bottom:96px}@media (min-width: 768px){.VPHome{padding-bottom:128px}}@media screen and (min-width: 960px){#VPContent.is-home.VPContent{padding-top:0}#VPContent.is-home.VPContent .VPHome{min-height:100vh}#VPContent.is-home.VPContent .VPHome .VPHero>.container{padding-top:var(--vp-nav-height)}}@media screen and (max-width: 959px){.VPNav{background-color:var(--nav-bgc)}}.el-pagination{flex-wrap:wrap;justify-content:center}@media screen and (min-width: 768px) and (max-width: 1200px){.VPNavBarMenuGroup .button span.text,.VPNavBarMenuLink{font-size:12px!important}.VPNavBar{height:auto!important}.VPNavBarMenu.menu{flex-wrap:wrap}}@media screen and (min-width: 960px) and (max-width: 1120px){.VPContent.has-sidebar{margin-top:60px!important}}@media (min-width: 1440px){aside.VPSidebar{padding-left:max(32px,(100% - (var(--vp-layout-max-width) - 16px)) / 2)!important;padding-right:10px!important}}.VPDoc .content main img{max-height:300px;margin:0 auto;cursor:pointer}.VPDoc .content main .vp-doc a{word-break:break-all}::-webkit-scrollbar{width:4px;height:4px}::-webkit-scrollbar-track-piece{background-color:#0000}::-webkit-scrollbar-thumb:vertical{height:4px;border-radius:4px;background-color:var(--vp-c-brand-1)}::-webkit-scrollbar-thumb:horizontal{width:4px;border-radius:4px;background-color:var(--vp-c-brand-1)}main .vp-doc a{text-decoration:none}main .vp-doc a:hover{text-decoration:underline dotted}span.svg-icon svg{width:14px;height:14px;margin-right:4px}.vp-doc ul.task-list{list-style:none;padding-left:10px}.vp-doc ul.task-list input[type=checkbox]{cursor:pointer;position:relative;width:13px;height:13px}.vp-doc ul.task-list input[type=checkbox]:after{position:absolute;top:0;color:#000;width:13px;height:13px;display:inline-block;visibility:visible;padding-left:0;text-align:center;content:" ";border-radius:3px}.vp-doc ul.task-list input[type=checkbox]:checked:after{content:"✓";color:#fff;line-height:14px;font-size:10px;font-weight:700;background-color:var(--vp-c-brand-1)}.VPImage.logo{width:24px;height:24px}:root{--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary-rgb:64,158,255;--el-color-success-rgb:103,194,58;--el-color-warning-rgb:230,162,60;--el-color-danger-rgb:245,108,108;--el-color-error-rgb:245,108,108;--el-color-info-rgb:144,147,153;--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-transition-duration:.3s;--el-transition-duration-fast:.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(.645, .045, .355, 1);--el-transition-function-fast-bezier:cubic-bezier(.23, 1, .32, 1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow:box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large:40px;--el-component-size:32px;--el-component-size-small:24px}:root{color-scheme:light;--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary:#409eff;--el-color-primary-light-3:#79bbff;--el-color-primary-light-5:#a0cfff;--el-color-primary-light-7:#c6e2ff;--el-color-primary-light-8:#d9ecff;--el-color-primary-light-9:#ecf5ff;--el-color-primary-dark-2:#337ecc;--el-color-success:#67c23a;--el-color-success-light-3:#95d475;--el-color-success-light-5:#b3e19d;--el-color-success-light-7:#d1edc4;--el-color-success-light-8:#e1f3d8;--el-color-success-light-9:#f0f9eb;--el-color-success-dark-2:#529b2e;--el-color-warning:#e6a23c;--el-color-warning-light-3:#eebe77;--el-color-warning-light-5:#f3d19e;--el-color-warning-light-7:#f8e3c5;--el-color-warning-light-8:#faecd8;--el-color-warning-light-9:#fdf6ec;--el-color-warning-dark-2:#b88230;--el-color-danger:#f56c6c;--el-color-danger-light-3:#f89898;--el-color-danger-light-5:#fab6b6;--el-color-danger-light-7:#fcd3d3;--el-color-danger-light-8:#fde2e2;--el-color-danger-light-9:#fef0f0;--el-color-danger-dark-2:#c45656;--el-color-error:#f56c6c;--el-color-error-light-3:#f89898;--el-color-error-light-5:#fab6b6;--el-color-error-light-7:#fcd3d3;--el-color-error-light-8:#fde2e2;--el-color-error-light-9:#fef0f0;--el-color-error-dark-2:#c45656;--el-color-info:#909399;--el-color-info-light-3:#b1b3b8;--el-color-info-light-5:#c8c9cc;--el-color-info-light-7:#dedfe0;--el-color-info-light-8:#e9e9eb;--el-color-info-light-9:#f4f4f5;--el-color-info-dark-2:#73767a;--el-bg-color:#ffffff;--el-bg-color-page:#f2f3f5;--el-bg-color-overlay:#ffffff;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:#909399;--el-text-color-placeholder:#a8abb2;--el-text-color-disabled:#c0c4cc;--el-border-color:#dcdfe6;--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-color-dark:#d4d7de;--el-border-color-darker:#cdd0d6;--el-fill-color:#f0f2f5;--el-fill-color-light:#f5f7fa;--el-fill-color-lighter:#fafafa;--el-fill-color-extra-light:#fafcff;--el-fill-color-dark:#ebedf0;--el-fill-color-darker:#e6e8eb;--el-fill-color-blank:#ffffff;--el-box-shadow:0px 12px 32px 4px rgba(0, 0, 0, .04),0px 8px 20px rgba(0, 0, 0, .08);--el-box-shadow-light:0px 0px 12px rgba(0, 0, 0, .12);--el-box-shadow-lighter:0px 0px 6px rgba(0, 0, 0, .12);--el-box-shadow-dark:0px 16px 48px 16px rgba(0, 0, 0, .08),0px 12px 32px rgba(0, 0, 0, .12),0px 8px 16px -8px rgba(0, 0, 0, .16);--el-disabled-bg-color:var(--el-fill-color-light);--el-disabled-text-color:var(--el-text-color-placeholder);--el-disabled-border-color:var(--el-border-color-light);--el-overlay-color:rgba(0, 0, 0, .8);--el-overlay-color-light:rgba(0, 0, 0, .7);--el-overlay-color-lighter:rgba(0, 0, 0, .5);--el-mask-color:rgba(255, 255, 255, .9);--el-mask-color-extra-light:rgba(255, 255, 255, .3);--el-border-width:1px;--el-border-style:solid;--el-border-color-hover:var(--el-text-color-disabled);--el-border:var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey:var(--el-border-color)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center top}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center bottom}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transition:var(--el-transition-md-fade);transform-origin:top left}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-enter-active,.el-collapse-transition-leave-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-button{--el-button-font-weight:var(--el-font-weight-primary);--el-button-border-color:var(--el-border-color);--el-button-bg-color:var(--el-fill-color-blank);--el-button-text-color:var(--el-text-color-regular);--el-button-disabled-text-color:var(--el-disabled-text-color);--el-button-disabled-bg-color:var(--el-fill-color-blank);--el-button-disabled-border-color:var(--el-border-color-light);--el-button-divide-border-color:rgba(255, 255, 255, .5);--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-color-primary-light-9);--el-button-hover-border-color:var(--el-color-primary-light-7);--el-button-active-text-color:var(--el-button-hover-text-color);--el-button-active-border-color:var(--el-color-primary);--el-button-active-bg-color:var(--el-button-hover-bg-color);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-hover-link-text-color:var(--el-color-info);--el-button-active-color:var(--el-text-color-primary)}.el-button{display:inline-flex;justify-content:center;align-items:center;line-height:1;height:32px;white-space:nowrap;cursor:pointer;color:var(--el-button-text-color);text-align:center;box-sizing:border-box;outline:0;transition:.1s;font-weight:var(--el-button-font-weight);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-webkit-appearance:none;background-color:var(--el-button-bg-color);border:var(--el-border);border-color:var(--el-button-border-color);padding:8px 15px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button:hover{color:var(--el-button-hover-text-color);border-color:var(--el-button-hover-border-color);background-color:var(--el-button-hover-bg-color);outline:0}.el-button:active{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:0}.el-button:focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px;transition:outline-offset 0s,outline 0s}.el-button>span{display:inline-flex;align-items:center}.el-button+.el-button{margin-left:12px}.el-button.is-round{padding:8px 15px}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon]+span{margin-left:6px}.el-button [class*=el-icon] svg{vertical-align:bottom}.el-button.is-plain{--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-fill-color-blank);--el-button-hover-border-color:var(--el-color-primary)}.el-button.is-active{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:0}.el-button.is-disabled,.el-button.is-disabled:hover{color:var(--el-button-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color);border-color:var(--el-button-disabled-border-color)}.el-button.is-loading{position:relative;pointer-events:none}.el-button.is-loading:before{z-index:1;pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:var(--el-mask-color-extra-light)}.el-button.is-round{border-radius:var(--el-border-radius-round)}.el-button.is-circle{width:32px;border-radius:50%;padding:8px}.el-button.is-text{color:var(--el-button-text-color);border:0 solid transparent;background-color:transparent}.el-button.is-text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important}.el-button.is-text:not(.is-disabled):hover{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled):focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px;transition:outline-offset 0s,outline 0s}.el-button.is-text:not(.is-disabled):active{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled).is-has-bg:hover{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg:active{background-color:var(--el-fill-color-dark)}.el-button__text--expand{letter-spacing:.3em;margin-right:-.3em}.el-button.is-link{border-color:transparent;color:var(--el-button-text-color);background:0 0;padding:2px;height:auto}.el-button.is-link:hover{color:var(--el-button-hover-link-text-color)}.el-button.is-link.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button.is-link:not(.is-disabled):hover{border-color:transparent;background-color:transparent}.el-button.is-link:not(.is-disabled):active{color:var(--el-button-active-color);border-color:transparent;background-color:transparent}.el-button--text{border-color:transparent;background:0 0;color:var(--el-color-primary);padding-left:0;padding-right:0}.el-button--text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button--text:not(.is-disabled):hover{color:var(--el-color-primary-light-3);border-color:transparent;background-color:transparent}.el-button--text:not(.is-disabled):active{color:var(--el-color-primary-dark-2);border-color:transparent;background-color:transparent}.el-button__link--expand{letter-spacing:.3em;margin-right:-.3em}.el-button--primary{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-primary);--el-button-border-color:var(--el-color-primary);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-active-color:var(--el-color-primary-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-primary-light-5);--el-button-hover-bg-color:var(--el-color-primary-light-3);--el-button-hover-border-color:var(--el-color-primary-light-3);--el-button-active-bg-color:var(--el-color-primary-dark-2);--el-button-active-border-color:var(--el-color-primary-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-primary-light-5);--el-button-disabled-border-color:var(--el-color-primary-light-5)}.el-button--primary.is-link,.el-button--primary.is-plain,.el-button--primary.is-text{--el-button-text-color:var(--el-color-primary);--el-button-bg-color:var(--el-color-primary-light-9);--el-button-border-color:var(--el-color-primary-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-primary);--el-button-hover-border-color:var(--el-color-primary);--el-button-active-text-color:var(--el-color-white)}.el-button--primary.is-link.is-disabled,.el-button--primary.is-link.is-disabled:active,.el-button--primary.is-link.is-disabled:focus,.el-button--primary.is-link.is-disabled:hover,.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:active,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:hover,.el-button--primary.is-text.is-disabled,.el-button--primary.is-text.is-disabled:active,.el-button--primary.is-text.is-disabled:focus,.el-button--primary.is-text.is-disabled:hover{color:var(--el-color-primary-light-5);background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary-light-8)}.el-button--success{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-success);--el-button-border-color:var(--el-color-success);--el-button-outline-color:var(--el-color-success-light-5);--el-button-active-color:var(--el-color-success-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-success-light-5);--el-button-hover-bg-color:var(--el-color-success-light-3);--el-button-hover-border-color:var(--el-color-success-light-3);--el-button-active-bg-color:var(--el-color-success-dark-2);--el-button-active-border-color:var(--el-color-success-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-success-light-5);--el-button-disabled-border-color:var(--el-color-success-light-5)}.el-button--success.is-link,.el-button--success.is-plain,.el-button--success.is-text{--el-button-text-color:var(--el-color-success);--el-button-bg-color:var(--el-color-success-light-9);--el-button-border-color:var(--el-color-success-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-success);--el-button-hover-border-color:var(--el-color-success);--el-button-active-text-color:var(--el-color-white)}.el-button--success.is-link.is-disabled,.el-button--success.is-link.is-disabled:active,.el-button--success.is-link.is-disabled:focus,.el-button--success.is-link.is-disabled:hover,.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:active,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:hover,.el-button--success.is-text.is-disabled,.el-button--success.is-text.is-disabled:active,.el-button--success.is-text.is-disabled:focus,.el-button--success.is-text.is-disabled:hover{color:var(--el-color-success-light-5);background-color:var(--el-color-success-light-9);border-color:var(--el-color-success-light-8)}.el-button--warning{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-warning);--el-button-border-color:var(--el-color-warning);--el-button-outline-color:var(--el-color-warning-light-5);--el-button-active-color:var(--el-color-warning-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-warning-light-5);--el-button-hover-bg-color:var(--el-color-warning-light-3);--el-button-hover-border-color:var(--el-color-warning-light-3);--el-button-active-bg-color:var(--el-color-warning-dark-2);--el-button-active-border-color:var(--el-color-warning-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-warning-light-5);--el-button-disabled-border-color:var(--el-color-warning-light-5)}.el-button--warning.is-link,.el-button--warning.is-plain,.el-button--warning.is-text{--el-button-text-color:var(--el-color-warning);--el-button-bg-color:var(--el-color-warning-light-9);--el-button-border-color:var(--el-color-warning-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-warning);--el-button-hover-border-color:var(--el-color-warning);--el-button-active-text-color:var(--el-color-white)}.el-button--warning.is-link.is-disabled,.el-button--warning.is-link.is-disabled:active,.el-button--warning.is-link.is-disabled:focus,.el-button--warning.is-link.is-disabled:hover,.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:active,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:hover,.el-button--warning.is-text.is-disabled,.el-button--warning.is-text.is-disabled:active,.el-button--warning.is-text.is-disabled:focus,.el-button--warning.is-text.is-disabled:hover{color:var(--el-color-warning-light-5);background-color:var(--el-color-warning-light-9);border-color:var(--el-color-warning-light-8)}.el-button--danger{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-danger);--el-button-border-color:var(--el-color-danger);--el-button-outline-color:var(--el-color-danger-light-5);--el-button-active-color:var(--el-color-danger-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-danger-light-5);--el-button-hover-bg-color:var(--el-color-danger-light-3);--el-button-hover-border-color:var(--el-color-danger-light-3);--el-button-active-bg-color:var(--el-color-danger-dark-2);--el-button-active-border-color:var(--el-color-danger-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-danger-light-5);--el-button-disabled-border-color:var(--el-color-danger-light-5)}.el-button--danger.is-link,.el-button--danger.is-plain,.el-button--danger.is-text{--el-button-text-color:var(--el-color-danger);--el-button-bg-color:var(--el-color-danger-light-9);--el-button-border-color:var(--el-color-danger-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-danger);--el-button-hover-border-color:var(--el-color-danger);--el-button-active-text-color:var(--el-color-white)}.el-button--danger.is-link.is-disabled,.el-button--danger.is-link.is-disabled:active,.el-button--danger.is-link.is-disabled:focus,.el-button--danger.is-link.is-disabled:hover,.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:active,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:hover,.el-button--danger.is-text.is-disabled,.el-button--danger.is-text.is-disabled:active,.el-button--danger.is-text.is-disabled:focus,.el-button--danger.is-text.is-disabled:hover{color:var(--el-color-danger-light-5);background-color:var(--el-color-danger-light-9);border-color:var(--el-color-danger-light-8)}.el-button--info{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-info);--el-button-border-color:var(--el-color-info);--el-button-outline-color:var(--el-color-info-light-5);--el-button-active-color:var(--el-color-info-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-info-light-5);--el-button-hover-bg-color:var(--el-color-info-light-3);--el-button-hover-border-color:var(--el-color-info-light-3);--el-button-active-bg-color:var(--el-color-info-dark-2);--el-button-active-border-color:var(--el-color-info-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-info-light-5);--el-button-disabled-border-color:var(--el-color-info-light-5)}.el-button--info.is-link,.el-button--info.is-plain,.el-button--info.is-text{--el-button-text-color:var(--el-color-info);--el-button-bg-color:var(--el-color-info-light-9);--el-button-border-color:var(--el-color-info-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-info);--el-button-hover-border-color:var(--el-color-info);--el-button-active-text-color:var(--el-color-white)}.el-button--info.is-link.is-disabled,.el-button--info.is-link.is-disabled:active,.el-button--info.is-link.is-disabled:focus,.el-button--info.is-link.is-disabled:hover,.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:active,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:hover,.el-button--info.is-text.is-disabled,.el-button--info.is-text.is-disabled:active,.el-button--info.is-text.is-disabled:focus,.el-button--info.is-text.is-disabled:hover{color:var(--el-color-info-light-5);background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8)}.el-button--large{--el-button-size:40px;height:var(--el-button-size);padding:12px 19px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button--large [class*=el-icon]+span{margin-left:8px}.el-button--large.is-round{padding:12px 19px}.el-button--large.is-circle{width:var(--el-button-size);padding:12px}.el-button--small{--el-button-size:24px;height:var(--el-button-size);padding:5px 11px;font-size:12px;border-radius:calc(var(--el-border-radius-base) - 1px)}.el-button--small [class*=el-icon]+span{margin-left:4px}.el-button--small.is-round{padding:5px 11px}.el-button--small.is-circle{width:var(--el-button-size);padding:5px}.el-tag{--el-tag-font-size:12px;--el-tag-border-radius:4px;--el-tag-border-radius-rounded:9999px}.el-tag{--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary);background-color:var(--el-tag-bg-color);border-color:var(--el-tag-border-color);color:var(--el-tag-text-color);display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;height:24px;padding:0 9px;font-size:var(--el-tag-font-size);line-height:1;border-width:1px;border-style:solid;border-radius:var(--el-tag-border-radius);box-sizing:border-box;white-space:nowrap;--el-icon-size:14px}.el-tag.el-tag--primary{--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-bg-color:var(--el-color-success-light-9);--el-tag-border-color:var(--el-color-success-light-8);--el-tag-hover-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-bg-color:var(--el-color-warning-light-9);--el-tag-border-color:var(--el-color-warning-light-8);--el-tag-hover-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-bg-color:var(--el-color-danger-light-9);--el-tag-border-color:var(--el-color-danger-light-8);--el-tag-hover-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-bg-color:var(--el-color-error-light-9);--el-tag-border-color:var(--el-color-error-light-8);--el-tag-hover-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-bg-color:var(--el-color-info-light-9);--el-tag-border-color:var(--el-color-info-light-8);--el-tag-hover-color:var(--el-color-info)}.el-tag.el-tag--primary{--el-tag-text-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-text-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-text-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-text-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-text-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-text-color:var(--el-color-info)}.el-tag.is-hit{border-color:var(--el-color-primary)}.el-tag.is-round{border-radius:var(--el-tag-border-radius-rounded)}.el-tag .el-tag__close{flex-shrink:0;color:var(--el-tag-text-color)}.el-tag .el-tag__close:hover{color:var(--el-color-white);background-color:var(--el-tag-hover-color)}.el-tag .el-icon{border-radius:50%;cursor:pointer;font-size:calc(var(--el-icon-size) - 2px);height:var(--el-icon-size);width:var(--el-icon-size)}.el-tag .el-tag__close{margin-left:6px}.el-tag--dark{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3);--el-tag-text-color:var(--el-color-white)}.el-tag--dark.el-tag--primary{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3)}.el-tag--dark.el-tag--success{--el-tag-bg-color:var(--el-color-success);--el-tag-border-color:var(--el-color-success);--el-tag-hover-color:var(--el-color-success-light-3)}.el-tag--dark.el-tag--warning{--el-tag-bg-color:var(--el-color-warning);--el-tag-border-color:var(--el-color-warning);--el-tag-hover-color:var(--el-color-warning-light-3)}.el-tag--dark.el-tag--danger{--el-tag-bg-color:var(--el-color-danger);--el-tag-border-color:var(--el-color-danger);--el-tag-hover-color:var(--el-color-danger-light-3)}.el-tag--dark.el-tag--error{--el-tag-bg-color:var(--el-color-error);--el-tag-border-color:var(--el-color-error);--el-tag-hover-color:var(--el-color-error-light-3)}.el-tag--dark.el-tag--info{--el-tag-bg-color:var(--el-color-info);--el-tag-border-color:var(--el-color-info);--el-tag-hover-color:var(--el-color-info-light-3)}.el-tag--dark.el-tag--primary,.el-tag--dark.el-tag--success,.el-tag--dark.el-tag--warning,.el-tag--dark.el-tag--danger,.el-tag--dark.el-tag--error,.el-tag--dark.el-tag--info{--el-tag-text-color:var(--el-color-white)}.el-tag--plain{--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary);--el-tag-bg-color:var(--el-fill-color-blank)}.el-tag--plain.el-tag--primary{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary)}.el-tag--plain.el-tag--success{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-success-light-5);--el-tag-hover-color:var(--el-color-success)}.el-tag--plain.el-tag--warning{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-warning-light-5);--el-tag-hover-color:var(--el-color-warning)}.el-tag--plain.el-tag--danger{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-danger-light-5);--el-tag-hover-color:var(--el-color-danger)}.el-tag--plain.el-tag--error{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-error-light-5);--el-tag-hover-color:var(--el-color-error)}.el-tag--plain.el-tag--info{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-info-light-5);--el-tag-hover-color:var(--el-color-info)}.el-tag.is-closable{padding-right:5px}.el-tag--large{padding:0 11px;height:32px;--el-icon-size:16px}.el-tag--large .el-tag__close{margin-left:8px}.el-tag--large.is-closable{padding-right:7px}.el-tag--small{padding:0 7px;height:20px;--el-icon-size:12px}.el-tag--small .el-tag__close{margin-left:4px}.el-tag--small.is-closable{padding-right:3px}.el-tag--small .el-icon-close{transform:scale(.8)}.el-tag.el-tag--primary.is-hit{border-color:var(--el-color-primary)}.el-tag.el-tag--success.is-hit{border-color:var(--el-color-success)}.el-tag.el-tag--warning.is-hit{border-color:var(--el-color-warning)}.el-tag.el-tag--danger.is-hit{border-color:var(--el-color-danger)}.el-tag.el-tag--error.is-hit{border-color:var(--el-color-error)}.el-tag.el-tag--info.is-hit{border-color:var(--el-color-info)}.el-icon-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@-webkit-keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.el-icon{--color:inherit;height:1em;width:1em;line-height:1em;display:inline-flex;justify-content:center;align-items:center;position:relative;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}.el-avatar{--el-avatar-text-color:var(--el-color-white);--el-avatar-bg-color:var(--el-text-color-disabled);--el-avatar-text-size:14px;--el-avatar-icon-size:18px;--el-avatar-border-radius:var(--el-border-radius-base);--el-avatar-size-large:56px;--el-avatar-size-small:24px;--el-avatar-size:40px;display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;text-align:center;overflow:hidden;color:var(--el-avatar-text-color);background:var(--el-avatar-bg-color);width:var(--el-avatar-size);height:var(--el-avatar-size);font-size:var(--el-avatar-text-size)}.el-avatar>img{display:block;width:100%;height:100%}.el-avatar--circle{border-radius:50%}.el-avatar--square{border-radius:var(--el-avatar-border-radius)}.el-avatar--icon{font-size:var(--el-avatar-icon-size)}.el-avatar--small{--el-avatar-size:24px}.el-avatar--large{--el-avatar-size:56px}.el-image__error,.el-image__inner,.el-image__placeholder,.el-image__wrapper{width:100%;height:100%}.el-image{position:relative;display:inline-block;overflow:hidden}.el-image__inner{vertical-align:top;opacity:1}.el-image__inner.is-loading{opacity:0}.el-image__wrapper{position:absolute;top:0;left:0}.el-image__placeholder{background:var(--el-fill-color-light)}.el-image__error{display:flex;justify-content:center;align-items:center;font-size:14px;background:var(--el-fill-color-light);color:var(--el-text-color-placeholder);vertical-align:middle}.el-image__preview{cursor:pointer}.el-image-viewer__wrapper{position:fixed;top:0;right:0;bottom:0;left:0}.el-image-viewer__btn{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;border-radius:50%;opacity:.8;cursor:pointer;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-image-viewer__btn .el-icon{font-size:inherit;cursor:pointer}.el-image-viewer__close{top:40px;right:40px;width:40px;height:40px;font-size:40px}.el-image-viewer__canvas{position:static;width:100%;height:100%;display:flex;justify-content:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-image-viewer__actions{left:50%;bottom:30px;transform:translate(-50%);width:282px;height:44px;padding:0 23px;background-color:var(--el-text-color-regular);border-color:#fff;border-radius:22px}.el-image-viewer__actions__inner{width:100%;height:100%;cursor:default;font-size:23px;color:#fff;display:flex;align-items:center;justify-content:space-around}.el-image-viewer__prev{top:50%;transform:translateY(-50%);left:40px;width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__next{top:50%;transform:translateY(-50%);right:40px;text-indent:2px;width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__close{width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__mask{position:absolute;width:100%;height:100%;top:0;left:0;opacity:.5;background:#000}.viewer-fade-enter-active{-webkit-animation:viewer-fade-in var(--el-transition-duration);animation:viewer-fade-in var(--el-transition-duration)}.viewer-fade-leave-active{-webkit-animation:viewer-fade-out var(--el-transition-duration);animation:viewer-fade-out var(--el-transition-duration)}@-webkit-keyframes viewer-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes viewer-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@-webkit-keyframes viewer-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes viewer-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}.el-pagination{--el-pagination-font-size:14px;--el-pagination-bg-color:var(--el-fill-color-blank);--el-pagination-text-color:var(--el-text-color-primary);--el-pagination-border-radius:2px;--el-pagination-button-color:var(--el-text-color-primary);--el-pagination-button-width:32px;--el-pagination-button-height:32px;--el-pagination-button-disabled-color:var(--el-text-color-placeholder);--el-pagination-button-disabled-bg-color:var(--el-fill-color-blank);--el-pagination-button-bg-color:var(--el-fill-color);--el-pagination-hover-color:var(--el-color-primary);--el-pagination-font-size-small:12px;--el-pagination-button-width-small:24px;--el-pagination-button-height-small:24px;--el-pagination-item-gap:16px;white-space:nowrap;color:var(--el-pagination-text-color);font-size:var(--el-pagination-font-size);font-weight:400;display:flex;align-items:center}.el-pagination .el-input__inner{text-align:center;-moz-appearance:textfield}.el-pagination .el-select{width:128px}.el-pagination button{display:flex;justify-content:center;align-items:center;font-size:var(--el-pagination-font-size);min-width:var(--el-pagination-button-width);height:var(--el-pagination-button-height);line-height:var(--el-pagination-button-height);color:var(--el-pagination-button-color);background:var(--el-pagination-bg-color);padding:0 4px;border:none;border-radius:var(--el-pagination-border-radius);cursor:pointer;text-align:center;box-sizing:border-box}.el-pagination button *{pointer-events:none}.el-pagination button:focus{outline:0}.el-pagination button:hover{color:var(--el-pagination-hover-color)}.el-pagination button.is-active{color:var(--el-pagination-hover-color);cursor:default;font-weight:700}.el-pagination button.is-active.is-disabled{font-weight:700;color:var(--el-text-color-secondary)}.el-pagination button.is-disabled,.el-pagination button:disabled{color:var(--el-pagination-button-disabled-color);background-color:var(--el-pagination-button-disabled-bg-color);cursor:not-allowed}.el-pagination button:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-pagination .btn-next .el-icon,.el-pagination .btn-prev .el-icon{display:block;font-size:12px;font-weight:700;width:inherit}.el-pagination>.is-first{margin-left:0!important}.el-pagination>.is-last{margin-right:0!important}.el-pagination .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination__sizes,.el-pagination__total{margin-left:var(--el-pagination-item-gap);font-weight:400;color:var(--el-text-color-regular)}.el-pagination__total[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__jump{display:flex;align-items:center;margin-left:var(--el-pagination-item-gap);font-weight:400;color:var(--el-text-color-regular)}.el-pagination__jump[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__goto{margin-right:8px}.el-pagination__editor{text-align:center;box-sizing:border-box}.el-pagination__editor.el-input{width:56px}.el-pagination__editor .el-input__inner::-webkit-inner-spin-button,.el-pagination__editor .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-pagination__classifier{margin-left:8px}.el-pagination__rightwrapper{flex:1;display:flex;align-items:center;justify-content:flex-end}.el-pagination.is-background .btn-next,.el-pagination.is-background .btn-prev,.el-pagination.is-background .el-pager li{margin:0 4px;background-color:var(--el-pagination-button-bg-color)}.el-pagination.is-background .btn-next.is-active,.el-pagination.is-background .btn-prev.is-active,.el-pagination.is-background .el-pager li.is-active{background-color:var(--el-color-primary);color:var(--el-color-white)}.el-pagination.is-background .btn-next.is-disabled,.el-pagination.is-background .btn-next:disabled,.el-pagination.is-background .btn-prev.is-disabled,.el-pagination.is-background .btn-prev:disabled,.el-pagination.is-background .el-pager li.is-disabled,.el-pagination.is-background .el-pager li:disabled{color:var(--el-text-color-placeholder);background-color:var(--el-disabled-bg-color)}.el-pagination.is-background .btn-next.is-disabled.is-active,.el-pagination.is-background .btn-next:disabled.is-active,.el-pagination.is-background .btn-prev.is-disabled.is-active,.el-pagination.is-background .btn-prev:disabled.is-active,.el-pagination.is-background .el-pager li.is-disabled.is-active,.el-pagination.is-background .el-pager li:disabled.is-active{color:var(--el-text-color-secondary);background-color:var(--el-fill-color-dark)}.el-pagination.is-background .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination--small .btn-next,.el-pagination--small .btn-prev,.el-pagination--small .el-pager li{height:var(--el-pagination-button-height-small);line-height:var(--el-pagination-button-height-small);font-size:var(--el-pagination-font-size-small);min-width:var(--el-pagination-button-width-small)}.el-pagination--small button,.el-pagination--small span:not([class*=suffix]){font-size:var(--el-pagination-font-size-small)}.el-pagination--small .el-select{width:100px}.el-pager{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;list-style:none;font-size:0;padding:0;margin:0;display:flex;align-items:center}.el-pager li{display:flex;justify-content:center;align-items:center;font-size:var(--el-pagination-font-size);min-width:var(--el-pagination-button-width);height:var(--el-pagination-button-height);line-height:var(--el-pagination-button-height);color:var(--el-pagination-button-color);background:var(--el-pagination-bg-color);padding:0 4px;border:none;border-radius:var(--el-pagination-border-radius);cursor:pointer;text-align:center;box-sizing:border-box}.el-pager li *{pointer-events:none}.el-pager li:focus{outline:0}.el-pager li:hover{color:var(--el-pagination-hover-color)}.el-pager li.is-active{color:var(--el-pagination-hover-color);cursor:default;font-weight:700}.el-pager li.is-active.is-disabled{font-weight:700;color:var(--el-text-color-secondary)}.el-pager li.is-disabled,.el-pager li:disabled{color:var(--el-pagination-button-disabled-color);background-color:var(--el-pagination-button-disabled-bg-color);cursor:not-allowed}.el-pager li:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-carousel{--el-carousel-arrow-font-size:12px;--el-carousel-arrow-size:36px;--el-carousel-arrow-background:rgba(31, 45, 61, .11);--el-carousel-arrow-hover-background:rgba(31, 45, 61, .23);--el-carousel-indicator-width:30px;--el-carousel-indicator-height:2px;--el-carousel-indicator-padding-horizontal:4px;--el-carousel-indicator-padding-vertical:12px;--el-carousel-indicator-out-color:var(--el-border-color-hover);position:relative}.el-carousel--horizontal,.el-carousel--vertical{overflow:hidden}.el-carousel__container{position:relative;height:300px}.el-carousel__arrow{border:none;outline:0;padding:0;margin:0;height:var(--el-carousel-arrow-size);width:var(--el-carousel-arrow-size);cursor:pointer;transition:var(--el-transition-duration);border-radius:50%;background-color:var(--el-carousel-arrow-background);color:#fff;position:absolute;top:50%;z-index:10;transform:translateY(-50%);text-align:center;font-size:var(--el-carousel-arrow-font-size);display:inline-flex;justify-content:center;align-items:center}.el-carousel__arrow--left{left:16px}.el-carousel__arrow--right{right:16px}.el-carousel__arrow:hover{background-color:var(--el-carousel-arrow-hover-background)}.el-carousel__arrow i{cursor:pointer}.el-carousel__indicators{position:absolute;list-style:none;margin:0;padding:0;z-index:calc(var(--el-index-normal) + 1)}.el-carousel__indicators--horizontal{bottom:0;left:50%;transform:translate(-50%)}.el-carousel__indicators--vertical{right:0;top:50%;transform:translateY(-50%)}.el-carousel__indicators--outside{bottom:calc(var(--el-carousel-indicator-height) + var(--el-carousel-indicator-padding-vertical) * 2);text-align:center;position:static;transform:none}.el-carousel__indicators--outside .el-carousel__indicator:hover button{opacity:.64}.el-carousel__indicators--outside button{background-color:var(--el-carousel-indicator-out-color);opacity:.24}.el-carousel__indicators--right{right:0}.el-carousel__indicators--labels{left:0;right:0;transform:none;text-align:center}.el-carousel__indicators--labels .el-carousel__button{height:auto;width:auto;padding:2px 18px;font-size:12px;color:#000}.el-carousel__indicators--labels .el-carousel__indicator{padding:6px 4px}.el-carousel__indicator{background-color:transparent;cursor:pointer}.el-carousel__indicator:hover button{opacity:.72}.el-carousel__indicator--horizontal{display:inline-block;padding:var(--el-carousel-indicator-padding-vertical) var(--el-carousel-indicator-padding-horizontal)}.el-carousel__indicator--vertical{padding:var(--el-carousel-indicator-padding-horizontal) var(--el-carousel-indicator-padding-vertical)}.el-carousel__indicator--vertical .el-carousel__button{width:var(--el-carousel-indicator-height);height:calc(var(--el-carousel-indicator-width)/ 2)}.el-carousel__indicator.is-active button{opacity:1}.el-carousel__button{display:block;opacity:.48;width:var(--el-carousel-indicator-width);height:var(--el-carousel-indicator-height);background-color:#fff;border:none;outline:0;padding:0;margin:0;cursor:pointer;transition:var(--el-transition-duration)}.carousel-arrow-left-enter-from,.carousel-arrow-left-leave-active{transform:translateY(-50%) translate(-10px);opacity:0}.carousel-arrow-right-enter-from,.carousel-arrow-right-leave-active{transform:translateY(-50%) translate(10px);opacity:0}.el-transitioning{filter:url(#elCarouselHorizontal)}.el-transitioning-vertical{filter:url(#elCarouselVertical)}.el-carousel__item{position:absolute;top:0;left:0;width:100%;height:100%;display:inline-block;overflow:hidden;z-index:calc(var(--el-index-normal) - 1)}.el-carousel__item.is-active{z-index:calc(var(--el-index-normal) - 1)}.el-carousel__item.is-animating{transition:transform .4s ease-in-out}.el-carousel__item--card{width:50%;transition:transform .4s ease-in-out}.el-carousel__item--card.is-in-stage{cursor:pointer;z-index:var(--el-index-normal)}.el-carousel__item--card.is-in-stage.is-hover .el-carousel__mask,.el-carousel__item--card.is-in-stage:hover .el-carousel__mask{opacity:.12}.el-carousel__item--card.is-active{z-index:calc(var(--el-index-normal) + 1)}.el-carousel__item--card-vertical{width:100%;height:50%}.el-carousel__mask{position:absolute;width:100%;height:100%;top:0;left:0;background-color:var(--el-color-white);opacity:.24;transition:var(--el-transition-duration-fast)}.el-alert{--el-alert-padding:8px 16px;--el-alert-border-radius-base:var(--el-border-radius-base);--el-alert-title-font-size:14px;--el-alert-title-with-description-font-size:16px;--el-alert-description-font-size:14px;--el-alert-close-font-size:16px;--el-alert-close-customed-font-size:14px;--el-alert-icon-size:16px;--el-alert-icon-large-size:28px;width:100%;padding:var(--el-alert-padding);margin:0;box-sizing:border-box;border-radius:var(--el-alert-border-radius-base);position:relative;background-color:var(--el-color-white);overflow:hidden;opacity:1;display:flex;align-items:center;transition:opacity var(--el-transition-duration-fast)}.el-alert.is-light .el-alert__close-btn{color:var(--el-text-color-placeholder)}.el-alert.is-dark .el-alert__close-btn,.el-alert.is-dark .el-alert__description{color:var(--el-color-white)}.el-alert.is-center{justify-content:center}.el-alert--success{--el-alert-bg-color:var(--el-color-success-light-9)}.el-alert--success.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-success)}.el-alert--success.is-light .el-alert__description{color:var(--el-color-success)}.el-alert--success.is-dark{background-color:var(--el-color-success);color:var(--el-color-white)}.el-alert--info{--el-alert-bg-color:var(--el-color-info-light-9)}.el-alert--info.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-info)}.el-alert--info.is-light .el-alert__description{color:var(--el-color-info)}.el-alert--info.is-dark{background-color:var(--el-color-info);color:var(--el-color-white)}.el-alert--warning{--el-alert-bg-color:var(--el-color-warning-light-9)}.el-alert--warning.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-warning)}.el-alert--warning.is-light .el-alert__description{color:var(--el-color-warning)}.el-alert--warning.is-dark{background-color:var(--el-color-warning);color:var(--el-color-white)}.el-alert--error{--el-alert-bg-color:var(--el-color-error-light-9)}.el-alert--error.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-error)}.el-alert--error.is-light .el-alert__description{color:var(--el-color-error)}.el-alert--error.is-dark{background-color:var(--el-color-error);color:var(--el-color-white)}.el-alert__content{display:flex;flex-direction:column;gap:4px}.el-alert .el-alert__icon{font-size:var(--el-alert-icon-size);width:var(--el-alert-icon-size);margin-right:8px}.el-alert .el-alert__icon.is-big{font-size:var(--el-alert-icon-large-size);width:var(--el-alert-icon-large-size);margin-right:12px}.el-alert__title{font-size:var(--el-alert-title-font-size);line-height:24px}.el-alert__title.with-description{font-size:var(--el-alert-title-with-description-font-size)}.el-alert .el-alert__description{font-size:var(--el-alert-description-font-size);margin:0}.el-alert .el-alert__close-btn{font-size:var(--el-alert-close-font-size);opacity:1;position:absolute;top:12px;right:16px;cursor:pointer}.el-alert .el-alert__close-btn.is-customed{font-style:normal;font-size:var(--el-alert-close-customed-font-size);line-height:24px;top:8px}.el-alert-fade-enter-from,.el-alert-fade-leave-active{opacity:0}html.dark{color-scheme:dark;--el-color-primary:#409eff;--el-color-primary-light-3:#3375b9;--el-color-primary-light-5:#2a598a;--el-color-primary-light-7:#213d5b;--el-color-primary-light-8:#1d3043;--el-color-primary-light-9:#18222c;--el-color-primary-dark-2:#66b1ff;--el-color-success:#67c23a;--el-color-success-light-3:#4e8e2f;--el-color-success-light-5:#3e6b27;--el-color-success-light-7:#2d481f;--el-color-success-light-8:#25371c;--el-color-success-light-9:#1c2518;--el-color-success-dark-2:#85ce61;--el-color-warning:#e6a23c;--el-color-warning-light-3:#a77730;--el-color-warning-light-5:#7d5b28;--el-color-warning-light-7:#533f20;--el-color-warning-light-8:#3e301c;--el-color-warning-light-9:#292218;--el-color-warning-dark-2:#ebb563;--el-color-danger:#f56c6c;--el-color-danger-light-3:#b25252;--el-color-danger-light-5:#854040;--el-color-danger-light-7:#582e2e;--el-color-danger-light-8:#412626;--el-color-danger-light-9:#2b1d1d;--el-color-danger-dark-2:#f78989;--el-color-error:#f56c6c;--el-color-error-light-3:#b25252;--el-color-error-light-5:#854040;--el-color-error-light-7:#582e2e;--el-color-error-light-8:#412626;--el-color-error-light-9:#2b1d1d;--el-color-error-dark-2:#f78989;--el-color-info:#909399;--el-color-info-light-3:#6b6d71;--el-color-info-light-5:#525457;--el-color-info-light-7:#393a3c;--el-color-info-light-8:#2d2d2f;--el-color-info-light-9:#202121;--el-color-info-dark-2:#a6a9ad;--el-box-shadow:0px 12px 32px 4px rgba(0, 0, 0, .36),0px 8px 20px rgba(0, 0, 0, .72);--el-box-shadow-light:0px 0px 12px rgba(0, 0, 0, .72);--el-box-shadow-lighter:0px 0px 6px rgba(0, 0, 0, .72);--el-box-shadow-dark:0px 16px 48px 16px rgba(0, 0, 0, .72),0px 12px 32px #000000,0px 8px 16px -8px #000000;--el-bg-color-page:#0a0a0a;--el-bg-color:#141414;--el-bg-color-overlay:#1d1e1f;--el-text-color-primary:#E5EAF3;--el-text-color-regular:#CFD3DC;--el-text-color-secondary:#A3A6AD;--el-text-color-placeholder:#8D9095;--el-text-color-disabled:#6C6E72;--el-border-color-darker:#636466;--el-border-color-dark:#58585B;--el-border-color:#4C4D4F;--el-border-color-light:#414243;--el-border-color-lighter:#363637;--el-border-color-extra-light:#2B2B2C;--el-fill-color-darker:#424243;--el-fill-color-dark:#39393A;--el-fill-color:#303030;--el-fill-color-light:#262727;--el-fill-color-lighter:#1D1D1D;--el-fill-color-extra-light:#191919;--el-fill-color-blank:transparent;--el-mask-color:rgba(0, 0, 0, .8);--el-mask-color-extra-light:rgba(0, 0, 0, .3)}html.dark .el-button{--el-button-disabled-text-color:rgba(255, 255, 255, .5)}html.dark .el-card{--el-card-bg-color:var(--el-bg-color-overlay)}html.dark .el-empty{--el-empty-fill-color-0:var(--el-color-black);--el-empty-fill-color-1:#4b4b52;--el-empty-fill-color-2:#36383d;--el-empty-fill-color-3:#1e1e20;--el-empty-fill-color-4:#262629;--el-empty-fill-color-5:#202124;--el-empty-fill-color-6:#212224;--el-empty-fill-color-7:#1b1c1f;--el-empty-fill-color-8:#1c1d1f;--el-empty-fill-color-9:#18181a}:root{--timeline-title-text: #000}html.dark{--timeline-title-text: #fff}.timeline-dot{position:relative;padding:0 0 18px 24px;color:#adadad;box-sizing:border-box}.timeline-dot:before{position:absolute;left:0;top:0;content:"";width:16px;height:16px;border-radius:50%;border:solid 1px var(--vp-c-brand);transform:translateY(18%)}.timeline-dot:after{position:absolute;left:7px;top:19px;content:"";width:2px;height:calc(100% - 18px);background-color:#e9e9e9}.timeline-dot .timeline-dot-title{color:var(--timeline-title-text);font-size:24px;font-weight:700}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/my-blog/assets/inter-roman-cyrillic.CMhn1ESj.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/my-blog/assets/inter-roman-cyrillic-ext.DxP3Awbn.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/my-blog/assets/inter-roman-greek.JvnBZ4YD.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/my-blog/assets/inter-roman-greek-ext.D0mI3NpI.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/my-blog/assets/inter-roman-latin.Bu8hRsVA.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/my-blog/assets/inter-roman-latin-ext.ZlYT4o7i.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:normal;font-named-instance:"Regular";src:url(/my-blog/assets/inter-roman-vietnamese.ClpjcLMQ.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/my-blog/assets/inter-italic-cyrillic.D6csxwjC.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/my-blog/assets/inter-italic-cyrillic-ext.5XJwZIOp.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/my-blog/assets/inter-italic-greek.9J96vYpw.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/my-blog/assets/inter-italic-greek-ext.CHOfFY1k.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/my-blog/assets/inter-italic-latin.DbsTr1gm.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/my-blog/assets/inter-italic-latin-ext.BGcWXLrn.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter var;font-weight:100 900;font-display:swap;font-style:italic;font-named-instance:"Italic";src:url(/my-blog/assets/inter-italic-vietnamese.DHNAd7Wr.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Chinese Quotes;src:local("PingFang SC Regular"),local("PingFang SC"),local("SimHei"),local("Source Han Sans SC");unicode-range:U+2018,U+2019,U+201C,U+201D}:root{--vp-c-white: #ffffff;--vp-c-black: #000000;--vp-c-neutral: var(--vp-c-black);--vp-c-neutral-inverse: var(--vp-c-white)}.dark{--vp-c-neutral: var(--vp-c-white);--vp-c-neutral-inverse: var(--vp-c-black)}:root{--vp-c-gray-1: #dddde3;--vp-c-gray-2: #e4e4e9;--vp-c-gray-3: #ebebef;--vp-c-gray-soft: rgba(142, 150, 170, .14);--vp-c-indigo-1: #3451b2;--vp-c-indigo-2: #3a5ccc;--vp-c-indigo-3: #5672cd;--vp-c-indigo-soft: rgba(100, 108, 255, .14);--vp-c-purple-1: #6f42c1;--vp-c-purple-2: #7e4cc9;--vp-c-purple-3: #8e5cd9;--vp-c-purple-soft: rgba(159, 122, 234, .14);--vp-c-green-1: #18794e;--vp-c-green-2: #299764;--vp-c-green-3: #30a46c;--vp-c-green-soft: rgba(16, 185, 129, .14);--vp-c-yellow-1: #915930;--vp-c-yellow-2: #946300;--vp-c-yellow-3: #9f6a00;--vp-c-yellow-soft: rgba(234, 179, 8, .14);--vp-c-red-1: #b8272c;--vp-c-red-2: #d5393e;--vp-c-red-3: #e0575b;--vp-c-red-soft: rgba(244, 63, 94, .14);--vp-c-sponsor: #db2777}.dark{--vp-c-gray-1: #515c67;--vp-c-gray-2: #414853;--vp-c-gray-3: #32363f;--vp-c-gray-soft: rgba(101, 117, 133, .16);--vp-c-indigo-1: #a8b1ff;--vp-c-indigo-2: #5c73e7;--vp-c-indigo-3: #3e63dd;--vp-c-indigo-soft: rgba(100, 108, 255, .16);--vp-c-purple-1: #c8abfa;--vp-c-purple-2: #a879e6;--vp-c-purple-3: #8e5cd9;--vp-c-purple-soft: rgba(159, 122, 234, .16);--vp-c-green-1: #3dd68c;--vp-c-green-2: #30a46c;--vp-c-green-3: #298459;--vp-c-green-soft: rgba(16, 185, 129, .16);--vp-c-yellow-1: #f9b44e;--vp-c-yellow-2: #da8b17;--vp-c-yellow-3: #a46a0a;--vp-c-yellow-soft: rgba(234, 179, 8, .16);--vp-c-red-1: #f66f81;--vp-c-red-2: #f14158;--vp-c-red-3: #b62a3c;--vp-c-red-soft: rgba(244, 63, 94, .16)}:root{--vp-c-bg: #ffffff;--vp-c-bg-alt: #f6f6f7;--vp-c-bg-elv: #ffffff;--vp-c-bg-soft: #f6f6f7}.dark{--vp-c-bg: #1b1b1f;--vp-c-bg-alt: #161618;--vp-c-bg-elv: #202127;--vp-c-bg-soft: #202127}:root{--vp-c-border: #c2c2c4;--vp-c-divider: #e2e2e3;--vp-c-gutter: #e2e2e3}.dark{--vp-c-border: #3c3f44;--vp-c-divider: #2e2e32;--vp-c-gutter: #000000}:root{--vp-c-text-1: rgba(60, 60, 67);--vp-c-text-2: rgba(60, 60, 67, .78);--vp-c-text-3: rgba(60, 60, 67, .56)}.dark{--vp-c-text-1: rgba(255, 255, 245, .86);--vp-c-text-2: rgba(235, 235, 245, .6);--vp-c-text-3: rgba(235, 235, 245, .38)}:root{--vp-c-default-1: var(--vp-c-gray-1);--vp-c-default-2: var(--vp-c-gray-2);--vp-c-default-3: var(--vp-c-gray-3);--vp-c-default-soft: var(--vp-c-gray-soft);--vp-c-brand-1: var(--vp-c-indigo-1);--vp-c-brand-2: var(--vp-c-indigo-2);--vp-c-brand-3: var(--vp-c-indigo-3);--vp-c-brand-soft: var(--vp-c-indigo-soft);--vp-c-brand: var(--vp-c-brand-1);--vp-c-tip-1: var(--vp-c-brand-1);--vp-c-tip-2: var(--vp-c-brand-2);--vp-c-tip-3: var(--vp-c-brand-3);--vp-c-tip-soft: var(--vp-c-brand-soft);--vp-c-note-1: var(--vp-c-brand-1);--vp-c-note-2: var(--vp-c-brand-2);--vp-c-note-3: var(--vp-c-brand-3);--vp-c-note-soft: var(--vp-c-brand-soft);--vp-c-success-1: var(--vp-c-green-1);--vp-c-success-2: var(--vp-c-green-2);--vp-c-success-3: var(--vp-c-green-3);--vp-c-success-soft: var(--vp-c-green-soft);--vp-c-important-1: var(--vp-c-purple-1);--vp-c-important-2: var(--vp-c-purple-2);--vp-c-important-3: var(--vp-c-purple-3);--vp-c-important-soft: var(--vp-c-purple-soft);--vp-c-warning-1: var(--vp-c-yellow-1);--vp-c-warning-2: var(--vp-c-yellow-2);--vp-c-warning-3: var(--vp-c-yellow-3);--vp-c-warning-soft: var(--vp-c-yellow-soft);--vp-c-danger-1: var(--vp-c-red-1);--vp-c-danger-2: var(--vp-c-red-2);--vp-c-danger-3: var(--vp-c-red-3);--vp-c-danger-soft: var(--vp-c-red-soft);--vp-c-caution-1: var(--vp-c-red-1);--vp-c-caution-2: var(--vp-c-red-2);--vp-c-caution-3: var(--vp-c-red-3);--vp-c-caution-soft: var(--vp-c-red-soft)}:root{--vp-font-family-base: "Chinese Quotes", "Inter var", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--vp-font-family-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}:root{--vp-shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .06);--vp-shadow-2: 0 3px 12px rgba(0, 0, 0, .07), 0 1px 4px rgba(0, 0, 0, .07);--vp-shadow-3: 0 12px 32px rgba(0, 0, 0, .1), 0 2px 6px rgba(0, 0, 0, .08);--vp-shadow-4: 0 14px 44px rgba(0, 0, 0, .12), 0 3px 9px rgba(0, 0, 0, .12);--vp-shadow-5: 0 18px 56px rgba(0, 0, 0, .16), 0 4px 12px rgba(0, 0, 0, .16)}:root{--vp-z-index-footer: 10;--vp-z-index-local-nav: 20;--vp-z-index-nav: 30;--vp-z-index-layout-top: 40;--vp-z-index-backdrop: 50;--vp-z-index-sidebar: 60}@media (min-width: 960px){:root{--vp-z-index-sidebar: 25}}:root{--vp-layout-max-width: 1440px}:root{--vp-header-anchor-symbol: "#"}:root{--vp-code-line-height: 1.7;--vp-code-font-size: .875em;--vp-code-color: var(--vp-c-brand-1);--vp-code-link-color: var(--vp-c-brand-1);--vp-code-link-hover-color: var(--vp-c-brand-2);--vp-code-bg: var(--vp-c-default-soft);--vp-code-block-color: var(--vp-c-text-2);--vp-code-block-bg: var(--vp-c-bg-alt);--vp-code-block-divider-color: var(--vp-c-gutter);--vp-code-lang-color: var(--vp-c-text-3);--vp-code-line-highlight-color: var(--vp-c-default-soft);--vp-code-line-number-color: var(--vp-c-text-3);--vp-code-line-diff-add-color: var(--vp-c-success-soft);--vp-code-line-diff-add-symbol-color: var(--vp-c-success-1);--vp-code-line-diff-remove-color: var(--vp-c-danger-soft);--vp-code-line-diff-remove-symbol-color: var(--vp-c-danger-1);--vp-code-line-warning-color: var(--vp-c-warning-soft);--vp-code-line-error-color: var(--vp-c-danger-soft);--vp-code-copy-code-border-color: var(--vp-c-divider);--vp-code-copy-code-bg: var(--vp-c-bg-soft);--vp-code-copy-code-hover-border-color: var(--vp-c-divider);--vp-code-copy-code-hover-bg: var(--vp-c-bg);--vp-code-copy-code-active-text: var(--vp-c-text-2);--vp-code-copy-copied-text-content: "Copied";--vp-code-tab-divider: var(--vp-code-block-divider-color);--vp-code-tab-text-color: var(--vp-c-text-2);--vp-code-tab-bg: var(--vp-code-block-bg);--vp-code-tab-hover-text-color: var(--vp-c-text-1);--vp-code-tab-active-text-color: var(--vp-c-text-1);--vp-code-tab-active-bar-color: var(--vp-c-brand-1)}:root{--vp-button-brand-border: transparent;--vp-button-brand-text: var(--vp-c-white);--vp-button-brand-bg: var(--vp-c-brand-3);--vp-button-brand-hover-border: transparent;--vp-button-brand-hover-text: var(--vp-c-white);--vp-button-brand-hover-bg: var(--vp-c-brand-2);--vp-button-brand-active-border: transparent;--vp-button-brand-active-text: var(--vp-c-white);--vp-button-brand-active-bg: var(--vp-c-brand-1);--vp-button-alt-border: transparent;--vp-button-alt-text: var(--vp-c-text-1);--vp-button-alt-bg: var(--vp-c-default-3);--vp-button-alt-hover-border: transparent;--vp-button-alt-hover-text: var(--vp-c-text-1);--vp-button-alt-hover-bg: var(--vp-c-default-2);--vp-button-alt-active-border: transparent;--vp-button-alt-active-text: var(--vp-c-text-1);--vp-button-alt-active-bg: var(--vp-c-default-1);--vp-button-sponsor-border: var(--vp-c-text-2);--vp-button-sponsor-text: var(--vp-c-text-2);--vp-button-sponsor-bg: transparent;--vp-button-sponsor-hover-border: var(--vp-c-sponsor);--vp-button-sponsor-hover-text: var(--vp-c-sponsor);--vp-button-sponsor-hover-bg: transparent;--vp-button-sponsor-active-border: var(--vp-c-sponsor);--vp-button-sponsor-active-text: var(--vp-c-sponsor);--vp-button-sponsor-active-bg: transparent}:root{--vp-custom-block-font-size: 14px;--vp-custom-block-code-font-size: 13px;--vp-custom-block-info-border: transparent;--vp-custom-block-info-text: var(--vp-c-text-1);--vp-custom-block-info-bg: var(--vp-c-default-soft);--vp-custom-block-info-code-bg: var(--vp-c-default-soft);--vp-custom-block-note-border: transparent;--vp-custom-block-note-text: var(--vp-c-text-1);--vp-custom-block-note-bg: var(--vp-c-default-soft);--vp-custom-block-note-code-bg: var(--vp-c-default-soft);--vp-custom-block-tip-border: transparent;--vp-custom-block-tip-text: var(--vp-c-text-1);--vp-custom-block-tip-bg: var(--vp-c-tip-soft);--vp-custom-block-tip-code-bg: var(--vp-c-tip-soft);--vp-custom-block-important-border: transparent;--vp-custom-block-important-text: var(--vp-c-text-1);--vp-custom-block-important-bg: var(--vp-c-important-soft);--vp-custom-block-important-code-bg: var(--vp-c-important-soft);--vp-custom-block-warning-border: transparent;--vp-custom-block-warning-text: var(--vp-c-text-1);--vp-custom-block-warning-bg: var(--vp-c-warning-soft);--vp-custom-block-warning-code-bg: var(--vp-c-warning-soft);--vp-custom-block-danger-border: transparent;--vp-custom-block-danger-text: var(--vp-c-text-1);--vp-custom-block-danger-bg: var(--vp-c-danger-soft);--vp-custom-block-danger-code-bg: var(--vp-c-danger-soft);--vp-custom-block-caution-border: transparent;--vp-custom-block-caution-text: var(--vp-c-text-1);--vp-custom-block-caution-bg: var(--vp-c-caution-soft);--vp-custom-block-caution-code-bg: var(--vp-c-caution-soft);--vp-custom-block-details-border: var(--vp-custom-block-info-border);--vp-custom-block-details-text: var(--vp-custom-block-info-text);--vp-custom-block-details-bg: var(--vp-custom-block-info-bg);--vp-custom-block-details-code-bg: var(--vp-custom-block-info-code-bg)}:root{--vp-input-border-color: var(--vp-c-border);--vp-input-bg-color: var(--vp-c-bg-alt);--vp-input-switch-bg-color: var(--vp-c-default-soft)}:root{--vp-nav-height: 64px;--vp-nav-bg-color: var(--vp-c-bg);--vp-nav-screen-bg-color: var(--vp-c-bg);--vp-nav-logo-height: 24px}.hide-nav{--vp-nav-height: 0px}.hide-nav .VPSidebar{--vp-nav-height: 22px}:root{--vp-local-nav-bg-color: var(--vp-c-bg)}:root{--vp-sidebar-width: 272px;--vp-sidebar-bg-color: var(--vp-c-bg-alt)}:root{--vp-backdrop-bg-color: rgba(0, 0, 0, .6)}:root{--vp-home-hero-name-color: var(--vp-c-brand-1);--vp-home-hero-name-background: transparent;--vp-home-hero-image-background-image: none;--vp-home-hero-image-filter: none}:root{--vp-badge-info-border: transparent;--vp-badge-info-text: var(--vp-c-text-2);--vp-badge-info-bg: var(--vp-c-default-soft);--vp-badge-tip-border: transparent;--vp-badge-tip-text: var(--vp-c-tip-1);--vp-badge-tip-bg: var(--vp-c-tip-soft);--vp-badge-warning-border: transparent;--vp-badge-warning-text: var(--vp-c-warning-1);--vp-badge-warning-bg: var(--vp-c-warning-soft);--vp-badge-danger-border: transparent;--vp-badge-danger-text: var(--vp-c-danger-1);--vp-badge-danger-bg: var(--vp-c-danger-soft)}:root{--vp-carbon-ads-text-color: var(--vp-c-text-1);--vp-carbon-ads-poweredby-color: var(--vp-c-text-2);--vp-carbon-ads-bg-color: var(--vp-c-bg-soft);--vp-carbon-ads-hover-text-color: var(--vp-c-brand-1);--vp-carbon-ads-hover-poweredby-color: var(--vp-c-text-1)}:root{--vp-local-search-bg: var(--vp-c-bg);--vp-local-search-result-bg: var(--vp-c-bg);--vp-local-search-result-border: var(--vp-c-divider);--vp-local-search-result-selected-bg: var(--vp-c-bg);--vp-local-search-result-selected-border: var(--vp-c-brand-1);--vp-local-search-highlight-bg: var(--vp-c-brand-1);--vp-local-search-highlight-text: var(--vp-c-neutral-inverse)}@media (prefers-reduced-motion: reduce){*,:before,:after{animation-delay:-1ms!important;animation-duration:1ms!important;animation-iteration-count:1!important;background-attachment:initial!important;scroll-behavior:auto!important;transition-duration:0s!important;transition-delay:0s!important}}*,:before,:after{box-sizing:border-box}html{line-height:1.4;font-size:16px;-webkit-text-size-adjust:100%}html.dark{color-scheme:dark}body{margin:0;width:100%;min-width:320px;min-height:100vh;line-height:24px;font-family:var(--vp-font-family-base);font-size:16px;font-weight:400;color:var(--vp-c-text-1);background-color:var(--vp-c-bg);font-synthesis:style;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin:0;line-height:24px;font-size:16px;font-weight:400}p{margin:0}strong,b{font-weight:600}a,area,button,[role=button],input,label,select,summary,textarea{touch-action:manipulation}a{color:inherit;text-decoration:inherit}ol,ul{list-style:none;margin:0;padding:0}blockquote{margin:0}pre,code,kbd,samp{font-family:var(--vp-font-family-mono)}img,svg,video,canvas,audio,iframe,embed,object{display:block}figure{margin:0}img,video{max-width:100%;height:auto}button,input,optgroup,select,textarea{border:0;padding:0;line-height:inherit;color:inherit}button{padding:0;font-family:inherit;background-color:transparent;background-image:none}button:enabled,[role=button]:enabled{cursor:pointer}button:focus,button:focus-visible{outline:1px dotted;outline:4px auto -webkit-focus-ring-color}button:focus:not(:focus-visible){outline:none!important}input:focus,textarea:focus,select:focus{outline:none}table{border-collapse:collapse}input{background-color:transparent}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:var(--vp-c-text-3)}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:var(--vp-c-text-3)}input::placeholder,textarea::placeholder{color:var(--vp-c-text-3)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}textarea{resize:vertical}select{-webkit-appearance:none}fieldset{margin:0;padding:0}h1,h2,h3,h4,h5,h6,li,p{overflow-wrap:break-word}vite-error-overlay{z-index:9999}mjx-container{display:inline-block;margin:auto 2px -2px}mjx-container>svg{display:inline-block;margin:auto}[class^=vpi-],[class*=" vpi-"],.vp-icon{width:1em;height:1em}[class^=vpi-].bg,[class*=" vpi-"].bg,.vp-icon.bg{background-size:100% 100%;background-color:transparent}[class^=vpi-]:not(.bg),[class*=" vpi-"]:not(.bg),.vp-icon:not(.bg){-webkit-mask:var(--icon) no-repeat;mask:var(--icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit}.vpi-align-left{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M21 6H3M15 12H3M17 18H3'/%3E%3C/svg%3E")}.vpi-arrow-right,.vpi-arrow-down,.vpi-arrow-left,.vpi-arrow-up{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E")}.vpi-chevron-right,.vpi-chevron-down,.vpi-chevron-left,.vpi-chevron-up{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E")}.vpi-chevron-down,.vpi-arrow-down{transform:rotate(90deg)}.vpi-chevron-left,.vpi-arrow-left{transform:rotate(180deg)}.vpi-chevron-up,.vpi-arrow-up{transform:rotate(-90deg)}.vpi-square-pen{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z'/%3E%3C/svg%3E")}.vpi-plus{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E")}.vpi-sun{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E")}.vpi-moon{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E")}.vpi-more-horizontal{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='19' cy='12' r='1'/%3E%3Ccircle cx='5' cy='12' r='1'/%3E%3C/svg%3E")}.vpi-languages{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m5 8 6 6M4 14l6-6 2-3M2 5h12M7 2h1M22 22l-5-10-5 10M14 18h6'/%3E%3C/svg%3E")}.vpi-heart{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E")}.vpi-search{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E")}.vpi-layout-list{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3Cpath d='M14 4h7M14 9h7M14 15h7M14 20h7'/%3E%3C/svg%3E")}.vpi-delete{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M20 5H9l-7 7 7 7h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2ZM18 9l-6 6M12 9l6 6'/%3E%3C/svg%3E")}.vpi-corner-down-left{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m9 10-5 5 5 5'/%3E%3Cpath d='M20 4v7a4 4 0 0 1-4 4H4'/%3E%3C/svg%3E")}:root{--vp-icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(128,128,128,1)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='8' height='4' x='8' y='2' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3C/svg%3E");--vp-icon-copied: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(128,128,128,1)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='8' height='4' x='8' y='2' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='m9 14 2 2 4-4'/%3E%3C/svg%3E")}.vpi-social-discord{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418Z'/%3E%3C/svg%3E")}.vpi-social-facebook{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z'/%3E%3C/svg%3E")}.vpi-social-github{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")}.vpi-social-instagram{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.03.084c-1.277.06-2.149.264-2.91.563a5.874 5.874 0 0 0-2.124 1.388 5.878 5.878 0 0 0-1.38 2.127C.321 4.926.12 5.8.064 7.076.008 8.354-.005 8.764.001 12.023c.007 3.259.021 3.667.083 4.947.061 1.277.264 2.149.563 2.911.308.789.72 1.457 1.388 2.123a5.872 5.872 0 0 0 2.129 1.38c.763.295 1.636.496 2.913.552 1.278.056 1.689.069 4.947.063 3.257-.007 3.668-.021 4.947-.082 1.28-.06 2.147-.265 2.91-.563a5.881 5.881 0 0 0 2.123-1.388 5.881 5.881 0 0 0 1.38-2.129c.295-.763.496-1.636.551-2.912.056-1.28.07-1.69.063-4.948-.006-3.258-.02-3.667-.081-4.947-.06-1.28-.264-2.148-.564-2.911a5.892 5.892 0 0 0-1.387-2.123 5.857 5.857 0 0 0-2.128-1.38C19.074.322 18.202.12 16.924.066 15.647.009 15.236-.006 11.977 0 8.718.008 8.31.021 7.03.084m.14 21.693c-1.17-.05-1.805-.245-2.228-.408a3.736 3.736 0 0 1-1.382-.895 3.695 3.695 0 0 1-.9-1.378c-.165-.423-.363-1.058-.417-2.228-.06-1.264-.072-1.644-.08-4.848-.006-3.204.006-3.583.061-4.848.05-1.169.246-1.805.408-2.228.216-.561.477-.96.895-1.382a3.705 3.705 0 0 1 1.379-.9c.423-.165 1.057-.361 2.227-.417 1.265-.06 1.644-.072 4.848-.08 3.203-.006 3.583.006 4.85.062 1.168.05 1.804.244 2.227.408.56.216.96.475 1.382.895.421.42.681.817.9 1.378.165.422.362 1.056.417 2.227.06 1.265.074 1.645.08 4.848.005 3.203-.006 3.583-.061 4.848-.051 1.17-.245 1.805-.408 2.23-.216.56-.477.96-.896 1.38a3.705 3.705 0 0 1-1.378.9c-.422.165-1.058.362-2.226.418-1.266.06-1.645.072-4.85.079-3.204.007-3.582-.006-4.848-.06m9.783-16.192a1.44 1.44 0 1 0 1.437-1.442 1.44 1.44 0 0 0-1.437 1.442M5.839 12.012a6.161 6.161 0 1 0 12.323-.024 6.162 6.162 0 0 0-12.323.024M8 12.008A4 4 0 1 1 12.008 16 4 4 0 0 1 8 12.008'/%3E%3C/svg%3E")}.vpi-social-linkedin{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E")}.vpi-social-mastodon{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.268 5.313c-.35-2.578-2.617-4.61-5.304-5.004C17.51.242 15.792 0 11.813 0h-.03c-3.98 0-4.835.242-5.288.309C3.882.692 1.496 2.518.917 5.127.64 6.412.61 7.837.661 9.143c.074 1.874.088 3.745.26 5.611.118 1.24.325 2.47.62 3.68.55 2.237 2.777 4.098 4.96 4.857 2.336.792 4.849.923 7.256.38.265-.061.527-.132.786-.213.585-.184 1.27-.39 1.774-.753a.057.057 0 0 0 .023-.043v-1.809a.052.052 0 0 0-.02-.041.053.053 0 0 0-.046-.01 20.282 20.282 0 0 1-4.709.545c-2.73 0-3.463-1.284-3.674-1.818a5.593 5.593 0 0 1-.319-1.433.053.053 0 0 1 .066-.054c1.517.363 3.072.546 4.632.546.376 0 .75 0 1.125-.01 1.57-.044 3.224-.124 4.768-.422.038-.008.077-.015.11-.024 2.435-.464 4.753-1.92 4.989-5.604.008-.145.03-1.52.03-1.67.002-.512.167-3.63-.024-5.545zm-3.748 9.195h-2.561V8.29c0-1.309-.55-1.976-1.67-1.976-1.23 0-1.846.79-1.846 2.35v3.403h-2.546V8.663c0-1.56-.617-2.35-1.848-2.35-1.112 0-1.668.668-1.67 1.977v6.218H4.822V8.102c0-1.31.337-2.35 1.011-3.12.696-.77 1.608-1.164 2.74-1.164 1.311 0 2.302.5 2.962 1.498l.638 1.06.638-1.06c.66-.999 1.65-1.498 2.96-1.498 1.13 0 2.043.395 2.74 1.164.675.77 1.012 1.81 1.012 3.12z'/%3E%3C/svg%3E")}.vpi-social-npm{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z'/%3E%3C/svg%3E")}.vpi-social-slack{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zm1.271 0a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zm0 1.271a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zm10.122 2.521a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zm-1.268 0a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zm-2.523 10.122a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zm0-1.268a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z'/%3E%3C/svg%3E")}.vpi-social-twitter,.vpi-social-x{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E")}.vpi-social-youtube{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E")}.visually-hidden{position:absolute;width:1px;height:1px;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden}.custom-block{border:1px solid transparent;border-radius:8px;padding:16px 16px 8px;line-height:24px;font-size:var(--vp-custom-block-font-size);color:var(--vp-c-text-2)}.custom-block.info{border-color:var(--vp-custom-block-info-border);color:var(--vp-custom-block-info-text);background-color:var(--vp-custom-block-info-bg)}.custom-block.info a,.custom-block.info code{color:var(--vp-c-brand-1)}.custom-block.info a:hover,.custom-block.info a:hover>code{color:var(--vp-c-brand-2)}.custom-block.info code{background-color:var(--vp-custom-block-info-code-bg)}.custom-block.note{border-color:var(--vp-custom-block-note-border);color:var(--vp-custom-block-note-text);background-color:var(--vp-custom-block-note-bg)}.custom-block.note a,.custom-block.note code{color:var(--vp-c-brand-1)}.custom-block.note a:hover,.custom-block.note a:hover>code{color:var(--vp-c-brand-2)}.custom-block.note code{background-color:var(--vp-custom-block-note-code-bg)}.custom-block.tip{border-color:var(--vp-custom-block-tip-border);color:var(--vp-custom-block-tip-text);background-color:var(--vp-custom-block-tip-bg)}.custom-block.tip a,.custom-block.tip code{color:var(--vp-c-tip-1)}.custom-block.tip a:hover,.custom-block.tip a:hover>code{color:var(--vp-c-tip-2)}.custom-block.tip code{background-color:var(--vp-custom-block-tip-code-bg)}.custom-block.important{border-color:var(--vp-custom-block-important-border);color:var(--vp-custom-block-important-text);background-color:var(--vp-custom-block-important-bg)}.custom-block.important a,.custom-block.important code{color:var(--vp-c-important-1)}.custom-block.important a:hover,.custom-block.important a:hover>code{color:var(--vp-c-important-2)}.custom-block.important code{background-color:var(--vp-custom-block-important-code-bg)}.custom-block.warning{border-color:var(--vp-custom-block-warning-border);color:var(--vp-custom-block-warning-text);background-color:var(--vp-custom-block-warning-bg)}.custom-block.warning a,.custom-block.warning code{color:var(--vp-c-warning-1)}.custom-block.warning a:hover,.custom-block.warning a:hover>code{color:var(--vp-c-warning-2)}.custom-block.warning code{background-color:var(--vp-custom-block-warning-code-bg)}.custom-block.danger{border-color:var(--vp-custom-block-danger-border);color:var(--vp-custom-block-danger-text);background-color:var(--vp-custom-block-danger-bg)}.custom-block.danger a,.custom-block.danger code{color:var(--vp-c-danger-1)}.custom-block.danger a:hover,.custom-block.danger a:hover>code{color:var(--vp-c-danger-2)}.custom-block.danger code{background-color:var(--vp-custom-block-danger-code-bg)}.custom-block.caution{border-color:var(--vp-custom-block-caution-border);color:var(--vp-custom-block-caution-text);background-color:var(--vp-custom-block-caution-bg)}.custom-block.caution a,.custom-block.caution code{color:var(--vp-c-caution-1)}.custom-block.caution a:hover,.custom-block.caution a:hover>code{color:var(--vp-c-caution-2)}.custom-block.caution code{background-color:var(--vp-custom-block-caution-code-bg)}.custom-block.details{border-color:var(--vp-custom-block-details-border);color:var(--vp-custom-block-details-text);background-color:var(--vp-custom-block-details-bg)}.custom-block.details a{color:var(--vp-c-brand-1)}.custom-block.details a:hover,.custom-block.details a:hover>code{color:var(--vp-c-brand-2)}.custom-block.details code{background-color:var(--vp-custom-block-details-code-bg)}.custom-block-title{font-weight:600}.custom-block p+p{margin:8px 0}.custom-block.details summary{margin:0 0 8px;font-weight:700;cursor:pointer;-webkit-user-select:none;user-select:none}.custom-block.details summary+p{margin:8px 0}.custom-block a{color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px;transition:opacity .25s}.custom-block a:hover{opacity:.75}.custom-block code{font-size:var(--vp-custom-block-code-font-size)}.custom-block.custom-block th,.custom-block.custom-block blockquote>p{font-size:var(--vp-custom-block-font-size);color:inherit}.dark .vp-code span{color:var(--shiki-dark, inherit)}html:not(.dark) .vp-code span{color:var(--shiki-light, inherit)}.vp-code-group{margin-top:16px}.vp-code-group .tabs{position:relative;display:flex;margin-right:-24px;margin-left:-24px;padding:0 12px;background-color:var(--vp-code-tab-bg);overflow-x:auto;overflow-y:hidden;box-shadow:inset 0 -1px var(--vp-code-tab-divider)}@media (min-width: 640px){.vp-code-group .tabs{margin-right:0;margin-left:0;border-radius:8px 8px 0 0}}.vp-code-group .tabs input{position:fixed;opacity:0;pointer-events:none}.vp-code-group .tabs label{position:relative;display:inline-block;border-bottom:1px solid transparent;padding:0 12px;line-height:48px;font-size:14px;font-weight:500;color:var(--vp-code-tab-text-color);white-space:nowrap;cursor:pointer;transition:color .25s}.vp-code-group .tabs label:after{position:absolute;right:8px;bottom:-1px;left:8px;z-index:1;height:2px;border-radius:2px;content:"";background-color:transparent;transition:background-color .25s}.vp-code-group label:hover{color:var(--vp-code-tab-hover-text-color)}.vp-code-group input:checked+label{color:var(--vp-code-tab-active-text-color)}.vp-code-group input:checked+label:after{background-color:var(--vp-code-tab-active-bar-color)}.vp-code-group div[class*=language-],.vp-block{display:none;margin-top:0!important;border-top-left-radius:0!important;border-top-right-radius:0!important}.vp-code-group div[class*=language-].active,.vp-block.active{display:block}.vp-block{padding:20px 24px}.vp-doc h1,.vp-doc h2,.vp-doc h3,.vp-doc h4,.vp-doc h5,.vp-doc h6{position:relative;font-weight:600;outline:none}.vp-doc h1{letter-spacing:-.02em;line-height:40px;font-size:28px}.vp-doc h2{margin:48px 0 16px;border-top:1px solid var(--vp-c-divider);padding-top:24px;letter-spacing:-.02em;line-height:32px;font-size:24px}.vp-doc h3{margin:32px 0 0;letter-spacing:-.01em;line-height:28px;font-size:20px}.vp-doc .header-anchor{position:absolute;top:0;left:0;margin-left:-.87em;font-weight:500;-webkit-user-select:none;user-select:none;opacity:0;text-decoration:none;transition:color .25s,opacity .25s}.vp-doc .header-anchor:before{content:var(--vp-header-anchor-symbol)}.vp-doc h1:hover .header-anchor,.vp-doc h1 .header-anchor:focus,.vp-doc h2:hover .header-anchor,.vp-doc h2 .header-anchor:focus,.vp-doc h3:hover .header-anchor,.vp-doc h3 .header-anchor:focus,.vp-doc h4:hover .header-anchor,.vp-doc h4 .header-anchor:focus,.vp-doc h5:hover .header-anchor,.vp-doc h5 .header-anchor:focus,.vp-doc h6:hover .header-anchor,.vp-doc h6 .header-anchor:focus{opacity:1}@media (min-width: 768px){.vp-doc h1{letter-spacing:-.02em;line-height:40px;font-size:32px}}.vp-doc h2 .header-anchor{top:24px}.vp-doc p,.vp-doc summary{margin:16px 0}.vp-doc p{line-height:28px}.vp-doc blockquote{margin:16px 0;border-left:2px solid var(--vp-c-divider);padding-left:16px;transition:border-color .5s}.vp-doc blockquote>p{margin:0;font-size:16px;color:var(--vp-c-text-2);transition:color .5s}.vp-doc a{font-weight:500;color:var(--vp-c-brand-1);text-decoration:underline;text-underline-offset:2px;transition:color .25s,opacity .25s}.vp-doc a:hover{color:var(--vp-c-brand-2)}.vp-doc strong{font-weight:600}.vp-doc ul,.vp-doc ol{padding-left:1.25rem;margin:16px 0}.vp-doc ul{list-style:disc}.vp-doc ol{list-style:decimal}.vp-doc li+li{margin-top:8px}.vp-doc li>ol,.vp-doc li>ul{margin:8px 0 0}.vp-doc table{display:block;border-collapse:collapse;margin:20px 0;overflow-x:auto}.vp-doc tr{background-color:var(--vp-c-bg);border-top:1px solid var(--vp-c-divider);transition:background-color .5s}.vp-doc tr:nth-child(2n){background-color:var(--vp-c-bg-soft)}.vp-doc th,.vp-doc td{border:1px solid var(--vp-c-divider);padding:8px 16px}.vp-doc th{text-align:left;font-size:14px;font-weight:600;color:var(--vp-c-text-2);background-color:var(--vp-c-bg-soft)}.vp-doc td{font-size:14px}.vp-doc hr{margin:16px 0;border:none;border-top:1px solid var(--vp-c-divider)}.vp-doc .custom-block{margin:16px 0}.vp-doc .custom-block p{margin:8px 0;line-height:24px}.vp-doc .custom-block p:first-child{margin:0}.vp-doc .custom-block div[class*=language-]{margin:8px 0;border-radius:8px}.vp-doc .custom-block div[class*=language-] code{font-weight:400;background-color:transparent}.vp-doc .custom-block .vp-code-group .tabs{margin:0;border-radius:8px 8px 0 0}.vp-doc :not(pre,h1,h2,h3,h4,h5,h6)>code{font-size:var(--vp-code-font-size);color:var(--vp-code-color)}.vp-doc :not(pre)>code{border-radius:4px;padding:3px 6px;background-color:var(--vp-code-bg);transition:color .25s,background-color .5s}.vp-doc a>code{color:var(--vp-code-link-color)}.vp-doc a:hover>code{color:var(--vp-code-link-hover-color)}.vp-doc h1>code,.vp-doc h2>code,.vp-doc h3>code{font-size:.9em}.vp-doc div[class*=language-],.vp-block{position:relative;margin:16px -24px;background-color:var(--vp-code-block-bg);overflow-x:auto;transition:background-color .5s}@media (min-width: 640px){.vp-doc div[class*=language-],.vp-block{border-radius:8px;margin:16px 0}}@media (max-width: 639px){.vp-doc li div[class*=language-]{border-radius:8px 0 0 8px}}.vp-doc div[class*=language-]+div[class*=language-],.vp-doc div[class$=-api]+div[class*=language-],.vp-doc div[class*=language-]+div[class$=-api]>div[class*=language-]{margin-top:-8px}.vp-doc [class*=language-] pre,.vp-doc [class*=language-] code{direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}.vp-doc [class*=language-] pre{position:relative;z-index:1;margin:0;padding:20px 0;background:transparent;overflow-x:auto}.vp-doc [class*=language-] code{display:block;padding:0 24px;width:fit-content;min-width:100%;line-height:var(--vp-code-line-height);font-size:var(--vp-code-font-size);color:var(--vp-code-block-color);transition:color .5s}.vp-doc [class*=language-] code .highlighted{background-color:var(--vp-code-line-highlight-color);transition:background-color .5s;margin:0 -24px;padding:0 24px;width:calc(100% + 48px);display:inline-block}.vp-doc [class*=language-] code .highlighted.error{background-color:var(--vp-code-line-error-color)}.vp-doc [class*=language-] code .highlighted.warning{background-color:var(--vp-code-line-warning-color)}.vp-doc [class*=language-] code .diff{transition:background-color .5s;margin:0 -24px;padding:0 24px;width:calc(100% + 48px);display:inline-block}.vp-doc [class*=language-] code .diff:before{position:absolute;left:10px}.vp-doc [class*=language-] .has-focused-lines .line:not(.has-focus){filter:blur(.095rem);opacity:.4;transition:filter .35s,opacity .35s}.vp-doc [class*=language-] .has-focused-lines .line:not(.has-focus){opacity:.7;transition:filter .35s,opacity .35s}.vp-doc [class*=language-]:hover .has-focused-lines .line:not(.has-focus){filter:blur(0);opacity:1}.vp-doc [class*=language-] code .diff.remove{background-color:var(--vp-code-line-diff-remove-color);opacity:.7}.vp-doc [class*=language-] code .diff.remove:before{content:"-";color:var(--vp-code-line-diff-remove-symbol-color)}.vp-doc [class*=language-] code .diff.add{background-color:var(--vp-code-line-diff-add-color)}.vp-doc [class*=language-] code .diff.add:before{content:"+";color:var(--vp-code-line-diff-add-symbol-color)}.vp-doc div[class*=language-].line-numbers-mode{padding-left:32px}.vp-doc .line-numbers-wrapper{position:absolute;top:0;bottom:0;left:0;z-index:3;border-right:1px solid var(--vp-code-block-divider-color);padding-top:20px;width:32px;text-align:center;font-family:var(--vp-font-family-mono);line-height:var(--vp-code-line-height);font-size:var(--vp-code-font-size);color:var(--vp-code-line-number-color);transition:border-color .5s,color .5s}.vp-doc [class*=language-]>button.copy{direction:ltr;position:absolute;top:12px;right:12px;z-index:3;border:1px solid var(--vp-code-copy-code-border-color);border-radius:4px;width:40px;height:40px;background-color:var(--vp-code-copy-code-bg);opacity:0;cursor:pointer;background-image:var(--vp-icon-copy);background-position:50%;background-size:20px;background-repeat:no-repeat;transition:border-color .25s,background-color .25s,opacity .25s}.vp-doc [class*=language-]:hover>button.copy,.vp-doc [class*=language-]>button.copy:focus{opacity:1}.vp-doc [class*=language-]>button.copy:hover,.vp-doc [class*=language-]>button.copy.copied{border-color:var(--vp-code-copy-code-hover-border-color);background-color:var(--vp-code-copy-code-hover-bg)}.vp-doc [class*=language-]>button.copy.copied,.vp-doc [class*=language-]>button.copy:hover.copied{border-radius:0 4px 4px 0;background-color:var(--vp-code-copy-code-hover-bg);background-image:var(--vp-icon-copied)}.vp-doc [class*=language-]>button.copy.copied:before,.vp-doc [class*=language-]>button.copy:hover.copied:before{position:relative;top:-1px;transform:translate(calc(-100% - 1px));display:flex;justify-content:center;align-items:center;border:1px solid var(--vp-code-copy-code-hover-border-color);border-right:0;border-radius:4px 0 0 4px;padding:0 10px;width:fit-content;height:40px;text-align:center;font-size:12px;font-weight:500;color:var(--vp-code-copy-code-active-text);background-color:var(--vp-code-copy-code-hover-bg);white-space:nowrap;content:var(--vp-code-copy-copied-text-content)}.vp-doc [class*=language-]>span.lang{position:absolute;top:2px;right:8px;z-index:2;font-size:12px;font-weight:500;color:var(--vp-code-lang-color);transition:color .4s,opacity .4s}.vp-doc [class*=language-]:hover>button.copy+span.lang,.vp-doc [class*=language-]>button.copy:focus+span.lang{opacity:0}.vp-doc .VPTeamMembers{margin-top:24px}.vp-doc .VPTeamMembers.small.count-1 .container{margin:0!important;max-width:calc((100% - 24px)/2)!important}.vp-doc .VPTeamMembers.small.count-2 .container,.vp-doc .VPTeamMembers.small.count-3 .container{max-width:100%!important}.vp-doc .VPTeamMembers.medium.count-1 .container{margin:0!important;max-width:calc((100% - 24px)/2)!important}:is(.vp-external-link-icon,.vp-doc a[href*="://"],.vp-doc a[target=_blank]):not(.no-icon):after{display:inline-block;margin-top:-1px;margin-left:4px;width:11px;height:11px;background:currentColor;color:var(--vp-c-text-3);flex-shrink:0;--icon: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M0 0h24v24H0V0z' fill='none' /%3E%3Cpath d='M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z' /%3E%3C/svg%3E");-webkit-mask-image:var(--icon);mask-image:var(--icon)}.vp-external-link-icon:after{content:""}.external-link-icon-enabled :is(.vp-doc a[href*="://"],.vp-doc a[target=_blank]):after{content:"";color:currentColor}.vp-sponsor{border-radius:16px;overflow:hidden}.vp-sponsor.aside{border-radius:12px}.vp-sponsor-section+.vp-sponsor-section{margin-top:4px}.vp-sponsor-tier{margin:0 0 4px!important;text-align:center;letter-spacing:1px!important;line-height:24px;width:100%;font-weight:600;color:var(--vp-c-text-2);background-color:var(--vp-c-bg-soft)}.vp-sponsor.normal .vp-sponsor-tier{padding:13px 0 11px;font-size:14px}.vp-sponsor.aside .vp-sponsor-tier{padding:9px 0 7px;font-size:12px}.vp-sponsor-grid+.vp-sponsor-tier{margin-top:4px}.vp-sponsor-grid{display:flex;flex-wrap:wrap;gap:4px}.vp-sponsor-grid.xmini .vp-sponsor-grid-link{height:64px}.vp-sponsor-grid.xmini .vp-sponsor-grid-image{max-width:64px;max-height:22px}.vp-sponsor-grid.mini .vp-sponsor-grid-link{height:72px}.vp-sponsor-grid.mini .vp-sponsor-grid-image{max-width:96px;max-height:24px}.vp-sponsor-grid.small .vp-sponsor-grid-link{height:96px}.vp-sponsor-grid.small .vp-sponsor-grid-image{max-width:96px;max-height:24px}.vp-sponsor-grid.medium .vp-sponsor-grid-link{height:112px}.vp-sponsor-grid.medium .vp-sponsor-grid-image{max-width:120px;max-height:36px}.vp-sponsor-grid.big .vp-sponsor-grid-link{height:184px}.vp-sponsor-grid.big .vp-sponsor-grid-image{max-width:192px;max-height:56px}.vp-sponsor-grid[data-vp-grid="2"] .vp-sponsor-grid-item{width:calc((100% - 4px)/2)}.vp-sponsor-grid[data-vp-grid="3"] .vp-sponsor-grid-item{width:calc((100% - 4px * 2) / 3)}.vp-sponsor-grid[data-vp-grid="4"] .vp-sponsor-grid-item{width:calc((100% - 12px)/4)}.vp-sponsor-grid[data-vp-grid="5"] .vp-sponsor-grid-item{width:calc((100% - 16px)/5)}.vp-sponsor-grid[data-vp-grid="6"] .vp-sponsor-grid-item{width:calc((100% - 4px * 5) / 6)}.vp-sponsor-grid-item{flex-shrink:0;width:100%;background-color:var(--vp-c-bg-soft);transition:background-color .25s}.vp-sponsor-grid-item:hover{background-color:var(--vp-c-default-soft)}.vp-sponsor-grid-item:hover .vp-sponsor-grid-image{filter:grayscale(0) invert(0)}.vp-sponsor-grid-item.empty:hover{background-color:var(--vp-c-bg-soft)}.dark .vp-sponsor-grid-item:hover{background-color:var(--vp-c-white)}.dark .vp-sponsor-grid-item.empty:hover{background-color:var(--vp-c-bg-soft)}.vp-sponsor-grid-link{display:flex}.vp-sponsor-grid-box{display:flex;justify-content:center;align-items:center;width:100%}.vp-sponsor-grid-image{max-width:100%;filter:grayscale(1);transition:filter .25s}.dark .vp-sponsor-grid-image{filter:grayscale(1) invert(1)}.VPBadge{display:inline-block;margin-left:2px;border:1px solid transparent;border-radius:12px;padding:0 10px;line-height:22px;font-size:12px;font-weight:500;transform:translateY(-2px)}.VPBadge.small{padding:0 6px;line-height:18px;font-size:10px;transform:translateY(-8px)}.VPDocFooter .VPBadge{display:none}.vp-doc h1>.VPBadge{margin-top:4px;vertical-align:top}.vp-doc h2>.VPBadge{margin-top:3px;padding:0 8px;vertical-align:top}.vp-doc h3>.VPBadge{vertical-align:middle}.vp-doc h4>.VPBadge,.vp-doc h5>.VPBadge,.vp-doc h6>.VPBadge{vertical-align:middle;line-height:18px}.VPBadge.info{border-color:var(--vp-badge-info-border);color:var(--vp-badge-info-text);background-color:var(--vp-badge-info-bg)}.VPBadge.tip{border-color:var(--vp-badge-tip-border);color:var(--vp-badge-tip-text);background-color:var(--vp-badge-tip-bg)}.VPBadge.warning{border-color:var(--vp-badge-warning-border);color:var(--vp-badge-warning-text);background-color:var(--vp-badge-warning-bg)}.VPBadge.danger{border-color:var(--vp-badge-danger-border);color:var(--vp-badge-danger-text);background-color:var(--vp-badge-danger-bg)}.VPBackdrop[data-v-25e026ac]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--vp-z-index-backdrop);background:var(--vp-backdrop-bg-color);transition:opacity .5s}.VPBackdrop.fade-enter-from[data-v-25e026ac],.VPBackdrop.fade-leave-to[data-v-25e026ac]{opacity:0}.VPBackdrop.fade-leave-active[data-v-25e026ac]{transition-duration:.25s}@media (min-width: 1280px){.VPBackdrop[data-v-25e026ac]{display:none}}.NotFound[data-v-cfe565af]{padding:64px 24px 96px;text-align:center}@media (min-width: 768px){.NotFound[data-v-cfe565af]{padding:96px 32px 168px}}.code[data-v-cfe565af]{line-height:64px;font-size:64px;font-weight:600}.title[data-v-cfe565af]{padding-top:12px;letter-spacing:2px;line-height:20px;font-size:20px;font-weight:700}.divider[data-v-cfe565af]{margin:24px auto 18px;width:64px;height:1px;background-color:var(--vp-c-divider)}.quote[data-v-cfe565af]{margin:0 auto;max-width:256px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.action[data-v-cfe565af]{padding-top:20px}.link[data-v-cfe565af]{display:inline-block;border:1px solid var(--vp-c-brand-1);border-radius:16px;padding:3px 16px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:border-color .25s,color .25s}.link[data-v-cfe565af]:hover{border-color:var(--vp-c-brand-2);color:var(--vp-c-brand-2)}.root[data-v-8836a507]{position:relative;z-index:1}.nested[data-v-8836a507]{padding-right:16px;padding-left:16px}.outline-link[data-v-8836a507]{display:block;line-height:32px;font-size:14px;font-weight:400;color:var(--vp-c-text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .5s}.outline-link[data-v-8836a507]:hover,.outline-link.active[data-v-8836a507]{color:var(--vp-c-text-1);transition:color .25s}.outline-link.nested[data-v-8836a507]{padding-left:13px}.VPDocAsideOutline[data-v-e40b7472]{display:none}.VPDocAsideOutline.has-outline[data-v-e40b7472]{display:block}.content[data-v-e40b7472]{position:relative;border-left:1px solid var(--vp-c-divider);padding-left:16px;font-size:13px;font-weight:500}.outline-marker[data-v-e40b7472]{position:absolute;top:32px;left:-1px;z-index:0;opacity:0;width:2px;border-radius:2px;height:18px;background-color:var(--vp-c-brand-1);transition:top .25s cubic-bezier(0,1,.5,1),background-color .5s,opacity .25s}.outline-title[data-v-e40b7472]{line-height:32px;font-size:14px;font-weight:600}.VPDocAside[data-v-fef72ae6]{display:flex;flex-direction:column;flex-grow:1}.spacer[data-v-fef72ae6]{flex-grow:1}.VPDocAside[data-v-fef72ae6] .spacer+.VPDocAsideSponsors,.VPDocAside[data-v-fef72ae6] .spacer+.VPDocAsideCarbonAds{margin-top:24px}.VPDocAside[data-v-fef72ae6] .VPDocAsideSponsors+.VPDocAsideCarbonAds{margin-top:16px}.VPLastUpdated[data-v-d7bf4c83]{line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}@media (min-width: 640px){.VPLastUpdated[data-v-d7bf4c83]{line-height:32px;font-size:14px;font-weight:500}}.VPDocFooter[data-v-a68f74fe]{margin-top:64px}.edit-info[data-v-a68f74fe]{padding-bottom:18px}@media (min-width: 640px){.edit-info[data-v-a68f74fe]{display:flex;justify-content:space-between;align-items:center;padding-bottom:14px}}.edit-link-button[data-v-a68f74fe]{display:flex;align-items:center;border:0;line-height:32px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:color .25s}.edit-link-button[data-v-a68f74fe]:hover{color:var(--vp-c-brand-2)}.edit-link-icon[data-v-a68f74fe]{margin-right:8px}.prev-next[data-v-a68f74fe]{border-top:1px solid var(--vp-c-divider);padding-top:24px;display:grid;grid-row-gap:8px}@media (min-width: 640px){.prev-next[data-v-a68f74fe]{grid-template-columns:repeat(2,1fr);grid-column-gap:16px}}.pager-link[data-v-a68f74fe]{display:block;border:1px solid var(--vp-c-divider);border-radius:8px;padding:11px 16px 13px;width:100%;height:100%;transition:border-color .25s}.pager-link[data-v-a68f74fe]:hover{border-color:var(--vp-c-brand-1)}.pager-link.next[data-v-a68f74fe]{margin-left:auto;text-align:right}.desc[data-v-a68f74fe]{display:block;line-height:20px;font-size:12px;font-weight:500;color:var(--vp-c-text-2)}.title[data-v-a68f74fe]{display:block;line-height:20px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:color .25s}.VPDoc[data-v-f8a8b9c2]{padding:32px 24px 96px;width:100%}@media (min-width: 768px){.VPDoc[data-v-f8a8b9c2]{padding:48px 32px 128px}}@media (min-width: 960px){.VPDoc[data-v-f8a8b9c2]{padding:48px 32px 0}.VPDoc:not(.has-sidebar) .container[data-v-f8a8b9c2]{display:flex;justify-content:center;max-width:992px}.VPDoc:not(.has-sidebar) .content[data-v-f8a8b9c2]{max-width:752px}}@media (min-width: 1280px){.VPDoc .container[data-v-f8a8b9c2]{display:flex;justify-content:center}.VPDoc .aside[data-v-f8a8b9c2]{display:block}}@media (min-width: 1440px){.VPDoc:not(.has-sidebar) .content[data-v-f8a8b9c2]{max-width:784px}.VPDoc:not(.has-sidebar) .container[data-v-f8a8b9c2]{max-width:1104px}}.container[data-v-f8a8b9c2]{margin:0 auto;width:100%}.aside[data-v-f8a8b9c2]{position:relative;display:none;order:2;flex-grow:1;padding-left:32px;width:100%;max-width:256px}.left-aside[data-v-f8a8b9c2]{order:1;padding-left:unset;padding-right:32px}.aside-container[data-v-f8a8b9c2]{position:fixed;top:0;padding-top:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + var(--vp-doc-top-height, 0px) + 48px);width:224px;height:100vh;overflow-x:hidden;overflow-y:auto;scrollbar-width:none}.aside-container[data-v-f8a8b9c2]::-webkit-scrollbar{display:none}.aside-curtain[data-v-f8a8b9c2]{position:fixed;bottom:0;z-index:10;width:224px;height:32px;background:linear-gradient(transparent,var(--vp-c-bg) 70%)}.aside-content[data-v-f8a8b9c2]{display:flex;flex-direction:column;min-height:calc(100vh - (var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 48px));padding-bottom:32px}.content[data-v-f8a8b9c2]{position:relative;margin:0 auto;width:100%}@media (min-width: 960px){.content[data-v-f8a8b9c2]{padding:0 32px 128px}}@media (min-width: 1280px){.content[data-v-f8a8b9c2]{order:1;margin:0;min-width:640px}}.content-container[data-v-f8a8b9c2]{margin:0 auto}.VPDoc.has-aside .content-container[data-v-f8a8b9c2]{max-width:688px}.VPButton[data-v-a7aac15b]{display:inline-block;border:1px solid transparent;text-align:center;font-weight:600;white-space:nowrap;transition:color .25s,border-color .25s,background-color .25s}.VPButton[data-v-a7aac15b]:active{transition:color .1s,border-color .1s,background-color .1s}.VPButton.medium[data-v-a7aac15b]{border-radius:20px;padding:0 20px;line-height:38px;font-size:14px}.VPButton.big[data-v-a7aac15b]{border-radius:24px;padding:0 24px;line-height:46px;font-size:16px}.VPButton.brand[data-v-a7aac15b]{border-color:var(--vp-button-brand-border);color:var(--vp-button-brand-text);background-color:var(--vp-button-brand-bg)}.VPButton.brand[data-v-a7aac15b]:hover{border-color:var(--vp-button-brand-hover-border);color:var(--vp-button-brand-hover-text);background-color:var(--vp-button-brand-hover-bg)}.VPButton.brand[data-v-a7aac15b]:active{border-color:var(--vp-button-brand-active-border);color:var(--vp-button-brand-active-text);background-color:var(--vp-button-brand-active-bg)}.VPButton.alt[data-v-a7aac15b]{border-color:var(--vp-button-alt-border);color:var(--vp-button-alt-text);background-color:var(--vp-button-alt-bg)}.VPButton.alt[data-v-a7aac15b]:hover{border-color:var(--vp-button-alt-hover-border);color:var(--vp-button-alt-hover-text);background-color:var(--vp-button-alt-hover-bg)}.VPButton.alt[data-v-a7aac15b]:active{border-color:var(--vp-button-alt-active-border);color:var(--vp-button-alt-active-text);background-color:var(--vp-button-alt-active-bg)}.VPButton.sponsor[data-v-a7aac15b]{border-color:var(--vp-button-sponsor-border);color:var(--vp-button-sponsor-text);background-color:var(--vp-button-sponsor-bg)}.VPButton.sponsor[data-v-a7aac15b]:hover{border-color:var(--vp-button-sponsor-hover-border);color:var(--vp-button-sponsor-hover-text);background-color:var(--vp-button-sponsor-hover-bg)}.VPButton.sponsor[data-v-a7aac15b]:active{border-color:var(--vp-button-sponsor-active-border);color:var(--vp-button-sponsor-active-text);background-color:var(--vp-button-sponsor-active-bg)}html:not(.dark) .VPImage.dark[data-v-e30c0e6c]{display:none}.dark .VPImage.light[data-v-e30c0e6c]{display:none}.VPHero[data-v-ab747c69]{margin-top:calc((var(--vp-nav-height) + var(--vp-layout-top-height, 0px)) * -1);padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 48px) 24px 48px}@media (min-width: 640px){.VPHero[data-v-ab747c69]{padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 48px 64px}}@media (min-width: 960px){.VPHero[data-v-ab747c69]{padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 64px 64px}}.container[data-v-ab747c69]{display:flex;flex-direction:column;margin:0 auto;max-width:1152px}@media (min-width: 960px){.container[data-v-ab747c69]{flex-direction:row}}.main[data-v-ab747c69]{position:relative;z-index:10;order:2;flex-grow:1;flex-shrink:0}.VPHero.has-image .container[data-v-ab747c69]{text-align:center}@media (min-width: 960px){.VPHero.has-image .container[data-v-ab747c69]{text-align:left}}@media (min-width: 960px){.main[data-v-ab747c69]{order:1;width:calc((100% / 3) * 2)}.VPHero.has-image .main[data-v-ab747c69]{max-width:592px}}.name[data-v-ab747c69],.text[data-v-ab747c69]{max-width:392px;letter-spacing:-.4px;line-height:40px;font-size:32px;font-weight:700;white-space:pre-wrap}.VPHero.has-image .name[data-v-ab747c69],.VPHero.has-image .text[data-v-ab747c69]{margin:0 auto}.name[data-v-ab747c69]{color:var(--vp-home-hero-name-color)}.clip[data-v-ab747c69]{background:var(--vp-home-hero-name-background);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:var(--vp-home-hero-name-color)}@media (min-width: 640px){.name[data-v-ab747c69],.text[data-v-ab747c69]{max-width:576px;line-height:56px;font-size:48px}}@media (min-width: 960px){.name[data-v-ab747c69],.text[data-v-ab747c69]{line-height:64px;font-size:56px}.VPHero.has-image .name[data-v-ab747c69],.VPHero.has-image .text[data-v-ab747c69]{margin:0}}.tagline[data-v-ab747c69]{padding-top:8px;max-width:392px;line-height:28px;font-size:18px;font-weight:500;white-space:pre-wrap;color:var(--vp-c-text-2)}.VPHero.has-image .tagline[data-v-ab747c69]{margin:0 auto}@media (min-width: 640px){.tagline[data-v-ab747c69]{padding-top:12px;max-width:576px;line-height:32px;font-size:20px}}@media (min-width: 960px){.tagline[data-v-ab747c69]{line-height:36px;font-size:24px}.VPHero.has-image .tagline[data-v-ab747c69]{margin:0}}.actions[data-v-ab747c69]{display:flex;flex-wrap:wrap;margin:-6px;padding-top:24px}.VPHero.has-image .actions[data-v-ab747c69]{justify-content:center}@media (min-width: 640px){.actions[data-v-ab747c69]{padding-top:32px}}@media (min-width: 960px){.VPHero.has-image .actions[data-v-ab747c69]{justify-content:flex-start}}.action[data-v-ab747c69]{flex-shrink:0;padding:6px}.image[data-v-ab747c69]{order:1;margin:-76px -24px -48px}@media (min-width: 640px){.image[data-v-ab747c69]{margin:-108px -24px -48px}}@media (min-width: 960px){.image[data-v-ab747c69]{flex-grow:1;order:2;margin:0;min-height:100%}}.image-container[data-v-ab747c69]{position:relative;margin:0 auto;width:320px;height:320px}@media (min-width: 640px){.image-container[data-v-ab747c69]{width:392px;height:392px}}@media (min-width: 960px){.image-container[data-v-ab747c69]{display:flex;justify-content:center;align-items:center;width:100%;height:100%;transform:translate(-32px,-32px)}}.image-bg[data-v-ab747c69]{position:absolute;top:50%;left:50%;border-radius:50%;width:192px;height:192px;background-image:var(--vp-home-hero-image-background-image);filter:var(--vp-home-hero-image-filter);transform:translate(-50%,-50%)}@media (min-width: 640px){.image-bg[data-v-ab747c69]{width:256px;height:256px}}@media (min-width: 960px){.image-bg[data-v-ab747c69]{width:320px;height:320px}}[data-v-ab747c69] .image-src{position:absolute;top:50%;left:50%;max-width:192px;max-height:192px;transform:translate(-50%,-50%)}@media (min-width: 640px){[data-v-ab747c69] .image-src{max-width:256px;max-height:256px}}@media (min-width: 960px){[data-v-ab747c69] .image-src{max-width:320px;max-height:320px}}.VPFeature[data-v-fc1476f4]{display:block;border:1px solid var(--vp-c-bg-soft);border-radius:12px;height:100%;background-color:var(--vp-c-bg-soft);transition:border-color .25s,background-color .25s}.VPFeature.link[data-v-fc1476f4]:hover{border-color:var(--vp-c-brand-1)}.box[data-v-fc1476f4]{display:flex;flex-direction:column;padding:24px;height:100%}.box[data-v-fc1476f4]>.VPImage{margin-bottom:20px}.icon[data-v-fc1476f4]{display:flex;justify-content:center;align-items:center;margin-bottom:20px;border-radius:6px;background-color:var(--vp-c-default-soft);width:48px;height:48px;font-size:24px;transition:background-color .25s}.title[data-v-fc1476f4]{line-height:24px;font-size:16px;font-weight:600}.details[data-v-fc1476f4]{flex-grow:1;padding-top:8px;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.link-text[data-v-fc1476f4]{padding-top:8px}.link-text-value[data-v-fc1476f4]{display:flex;align-items:center;font-size:14px;font-weight:500;color:var(--vp-c-brand-1)}.link-text-icon[data-v-fc1476f4]{margin-left:6px}.VPFeatures[data-v-8a4078e8]{position:relative;padding:0 24px}@media (min-width: 640px){.VPFeatures[data-v-8a4078e8]{padding:0 48px}}@media (min-width: 960px){.VPFeatures[data-v-8a4078e8]{padding:0 64px}}.container[data-v-8a4078e8]{margin:0 auto;max-width:1152px}.items[data-v-8a4078e8]{display:flex;flex-wrap:wrap;margin:-8px}.item[data-v-8a4078e8]{padding:8px;width:100%}@media (min-width: 640px){.item.grid-2[data-v-8a4078e8],.item.grid-4[data-v-8a4078e8],.item.grid-6[data-v-8a4078e8]{width:50%}}@media (min-width: 768px){.item.grid-2[data-v-8a4078e8],.item.grid-4[data-v-8a4078e8]{width:50%}.item.grid-3[data-v-8a4078e8],.item.grid-6[data-v-8a4078e8]{width:calc(100% / 3)}}@media (min-width: 960px){.item.grid-4[data-v-8a4078e8]{width:25%}}.container[data-v-e1d394be]{margin:auto;width:100%;max-width:1280px;padding:0 24px}@media (min-width: 640px){.container[data-v-e1d394be]{padding:0 48px}}@media (min-width: 960px){.container[data-v-e1d394be]{width:100%;padding:0 64px}}.vp-doc[data-v-e1d394be] .VPHomeSponsors,.vp-doc[data-v-e1d394be] .VPTeamPage{margin-left:var(--vp-offset, calc(50% - 50vw) );margin-right:var(--vp-offset, calc(50% - 50vw) )}.vp-doc[data-v-e1d394be] .VPHomeSponsors h2{border-top:none;letter-spacing:normal}.vp-doc[data-v-e1d394be] .VPHomeSponsors a,.vp-doc[data-v-e1d394be] .VPTeamPage a{text-decoration:none}.VPHome[data-v-ee85334b]{margin-bottom:96px}@media (min-width: 768px){.VPHome[data-v-ee85334b]{margin-bottom:128px}}.VPContent[data-v-845c10f0]{flex-grow:1;flex-shrink:0;margin:var(--vp-layout-top-height, 0px) auto 0;width:100%}.VPContent.is-home[data-v-845c10f0]{width:100%;max-width:100%}.VPContent.has-sidebar[data-v-845c10f0]{margin:0}@media (min-width: 960px){.VPContent[data-v-845c10f0]{padding-top:var(--vp-nav-height)}.VPContent.has-sidebar[data-v-845c10f0]{margin:var(--vp-layout-top-height, 0px) 0 0;padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPContent.has-sidebar[data-v-845c10f0]{padding-right:calc((100vw - var(--vp-layout-max-width)) / 2);padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.VPFooter[data-v-a14ac51f]{position:relative;z-index:var(--vp-z-index-footer);border-top:1px solid var(--vp-c-gutter);padding:32px 24px;background-color:var(--vp-c-bg)}.VPFooter.has-sidebar[data-v-a14ac51f]{display:none}.VPFooter[data-v-a14ac51f] a{text-decoration-line:underline;text-underline-offset:2px;transition:color .25s}.VPFooter[data-v-a14ac51f] a:hover{color:var(--vp-c-text-1)}@media (min-width: 768px){.VPFooter[data-v-a14ac51f]{padding:32px}}.container[data-v-a14ac51f]{margin:0 auto;max-width:var(--vp-layout-max-width);text-align:center}.message[data-v-a14ac51f],.copyright[data-v-a14ac51f]{line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.VPLocalNavOutlineDropdown[data-v-7432023f]{padding:12px 20px 11px}@media (min-width: 960px){.VPLocalNavOutlineDropdown[data-v-7432023f]{padding:12px 36px 11px}}.VPLocalNavOutlineDropdown button[data-v-7432023f]{display:block;font-size:12px;font-weight:500;line-height:24px;color:var(--vp-c-text-2);transition:color .5s;position:relative}.VPLocalNavOutlineDropdown button[data-v-7432023f]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPLocalNavOutlineDropdown button.open[data-v-7432023f]{color:var(--vp-c-text-1)}.icon[data-v-7432023f]{display:inline-block;vertical-align:middle;margin-left:2px;font-size:14px;transform:rotate(0);transition:transform .25s}@media (min-width: 960px){.VPLocalNavOutlineDropdown button[data-v-7432023f]{font-size:14px}.icon[data-v-7432023f]{font-size:16px}}.open>.icon[data-v-7432023f]{transform:rotate(90deg)}.items[data-v-7432023f]{position:absolute;top:40px;right:16px;left:16px;display:grid;gap:1px;border:1px solid var(--vp-c-border);border-radius:8px;background-color:var(--vp-c-gutter);max-height:calc(var(--vp-vh, 100vh) - 86px);overflow:hidden auto;box-shadow:var(--vp-shadow-3)}@media (min-width: 960px){.items[data-v-7432023f]{right:auto;left:calc(var(--vp-sidebar-width) + 32px);width:320px}}.header[data-v-7432023f]{background-color:var(--vp-c-bg-soft)}.top-link[data-v-7432023f]{display:block;padding:0 16px;line-height:48px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1)}.outline[data-v-7432023f]{padding:8px 0;background-color:var(--vp-c-bg-soft)}.flyout-enter-active[data-v-7432023f]{transition:all .2s ease-out}.flyout-leave-active[data-v-7432023f]{transition:all .15s ease-in}.flyout-enter-from[data-v-7432023f],.flyout-leave-to[data-v-7432023f]{opacity:0;transform:translateY(-16px)}.VPLocalNav[data-v-c481d8df]{position:sticky;top:0;left:0;z-index:var(--vp-z-index-local-nav);border-bottom:1px solid var(--vp-c-gutter);padding-top:var(--vp-layout-top-height, 0px);width:100%;background-color:var(--vp-local-nav-bg-color)}.VPLocalNav.fixed[data-v-c481d8df]{position:fixed}@media (min-width: 960px){.VPLocalNav[data-v-c481d8df]{top:var(--vp-nav-height)}.VPLocalNav.has-sidebar[data-v-c481d8df]{padding-left:var(--vp-sidebar-width)}.VPLocalNav.empty[data-v-c481d8df]{display:none}}@media (min-width: 1280px){.VPLocalNav[data-v-c481d8df]{display:none}}@media (min-width: 1440px){.VPLocalNav.has-sidebar[data-v-c481d8df]{padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.container[data-v-c481d8df]{display:flex;justify-content:space-between;align-items:center}.menu[data-v-c481d8df]{display:flex;align-items:center;padding:12px 24px 11px;line-height:24px;font-size:12px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.menu[data-v-c481d8df]:hover{color:var(--vp-c-text-1);transition:color .25s}@media (min-width: 768px){.menu[data-v-c481d8df]{padding:0 32px}}@media (min-width: 960px){.menu[data-v-c481d8df]{display:none}}.menu-icon[data-v-c481d8df]{margin-right:8px;font-size:14px}.VPOutlineDropdown[data-v-c481d8df]{padding:12px 24px 11px}@media (min-width: 768px){.VPOutlineDropdown[data-v-c481d8df]{padding:12px 32px 11px}}.VPSwitch[data-v-e3927e38]{position:relative;border-radius:11px;display:block;width:40px;height:22px;flex-shrink:0;border:1px solid var(--vp-input-border-color);background-color:var(--vp-input-switch-bg-color);transition:border-color .25s!important}.VPSwitch[data-v-e3927e38]:hover{border-color:var(--vp-c-brand-1)}.check[data-v-e3927e38]{position:absolute;top:1px;left:1px;width:18px;height:18px;border-radius:50%;background-color:var(--vp-c-neutral-inverse);box-shadow:var(--vp-shadow-1);transition:transform .25s!important}.icon[data-v-e3927e38]{position:relative;display:block;width:18px;height:18px;border-radius:50%;overflow:hidden}.icon[data-v-e3927e38] [class^=vpi-]{position:absolute;top:3px;left:3px;width:12px;height:12px;color:var(--vp-c-text-2)}.dark .icon[data-v-e3927e38] [class^=vpi-]{color:var(--vp-c-text-1);transition:opacity .25s!important}.sun[data-v-32b2581c]{opacity:1}.moon[data-v-32b2581c],.dark .sun[data-v-32b2581c]{opacity:0}.dark .moon[data-v-32b2581c]{opacity:1}.dark .VPSwitchAppearance[data-v-32b2581c] .check{transform:translate(18px)}.VPNavBarAppearance[data-v-9896999d]{display:none}@media (min-width: 1280px){.VPNavBarAppearance[data-v-9896999d]{display:flex;align-items:center}}.VPMenuGroup+.VPMenuLink[data-v-bd49be69]{margin:12px -12px 0;border-top:1px solid var(--vp-c-divider);padding:12px 12px 0}.link[data-v-bd49be69]{display:block;border-radius:6px;padding:0 12px;line-height:32px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);white-space:nowrap;transition:background-color .25s,color .25s}.link[data-v-bd49be69]:hover{color:var(--vp-c-brand-1);background-color:var(--vp-c-default-soft)}.link.active[data-v-bd49be69]{color:var(--vp-c-brand-1)}.VPMenuGroup[data-v-6e005854]{margin:12px -12px 0;border-top:1px solid var(--vp-c-divider);padding:12px 12px 0}.VPMenuGroup[data-v-6e005854]:first-child{margin-top:0;border-top:0;padding-top:0}.VPMenuGroup+.VPMenuGroup[data-v-6e005854]{margin-top:12px;border-top:1px solid var(--vp-c-divider)}.title[data-v-6e005854]{padding:0 12px;line-height:32px;font-size:14px;font-weight:600;color:var(--vp-c-text-2);white-space:nowrap;transition:color .25s}.VPMenu[data-v-e3b6e26c]{border-radius:12px;padding:12px;min-width:128px;border:1px solid var(--vp-c-divider);background-color:var(--vp-c-bg-elv);box-shadow:var(--vp-shadow-3);transition:background-color .5s;max-height:calc(100vh - var(--vp-nav-height));overflow-y:auto}.VPMenu[data-v-e3b6e26c] .group{margin:0 -12px;padding:0 12px 12px}.VPMenu[data-v-e3b6e26c] .group+.group{border-top:1px solid var(--vp-c-divider);padding:11px 12px 12px}.VPMenu[data-v-e3b6e26c] .group:last-child{padding-bottom:0}.VPMenu[data-v-e3b6e26c] .group+.item{border-top:1px solid var(--vp-c-divider);padding:11px 16px 0}.VPMenu[data-v-e3b6e26c] .item{padding:0 16px;white-space:nowrap}.VPMenu[data-v-e3b6e26c] .label{flex-grow:1;line-height:28px;font-size:12px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.VPMenu[data-v-e3b6e26c] .action{padding-left:24px}.VPFlyout[data-v-6a5a1afe]{position:relative}.VPFlyout[data-v-6a5a1afe]:hover{color:var(--vp-c-brand-1);transition:color .25s}.VPFlyout:hover .text[data-v-6a5a1afe]{color:var(--vp-c-text-2)}.VPFlyout:hover .icon[data-v-6a5a1afe]{fill:var(--vp-c-text-2)}.VPFlyout.active .text[data-v-6a5a1afe]{color:var(--vp-c-brand-1)}.VPFlyout.active:hover .text[data-v-6a5a1afe]{color:var(--vp-c-brand-2)}.VPFlyout:hover .menu[data-v-6a5a1afe],.button[aria-expanded=true]+.menu[data-v-6a5a1afe]{opacity:1;visibility:visible;transform:translateY(0)}.button[aria-expanded=false]+.menu[data-v-6a5a1afe]{opacity:0;visibility:hidden;transform:translateY(0)}.button[data-v-6a5a1afe]{display:flex;align-items:center;padding:0 12px;height:var(--vp-nav-height);color:var(--vp-c-text-1);transition:color .5s}.text[data-v-6a5a1afe]{display:flex;align-items:center;line-height:var(--vp-nav-height);font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.option-icon[data-v-6a5a1afe]{margin-right:0;font-size:16px}.text-icon[data-v-6a5a1afe]{margin-left:4px;font-size:14px}.icon[data-v-6a5a1afe]{font-size:20px;transition:fill .25s}.menu[data-v-6a5a1afe]{position:absolute;top:calc(var(--vp-nav-height) / 2 + 20px);right:0;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s,transform .25s}.VPSocialLink[data-v-34eee19f]{display:flex;justify-content:center;align-items:center;width:36px;height:36px;color:var(--vp-c-text-2);transition:color .5s}.VPSocialLink[data-v-34eee19f]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPSocialLink[data-v-34eee19f]>svg,.VPSocialLink[data-v-34eee19f]>[class^=vpi-social-]{width:20px;height:20px;fill:currentColor}.VPSocialLinks[data-v-eaf1f01e]{display:flex;justify-content:center}.VPNavBarExtra[data-v-0babc128]{display:none;margin-right:-12px}@media (min-width: 768px){.VPNavBarExtra[data-v-0babc128]{display:block}}@media (min-width: 1280px){.VPNavBarExtra[data-v-0babc128]{display:none}}.trans-title[data-v-0babc128]{padding:0 24px 0 12px;line-height:32px;font-size:14px;font-weight:700;color:var(--vp-c-text-1)}.item.appearance[data-v-0babc128],.item.social-links[data-v-0babc128]{display:flex;align-items:center;padding:0 12px}.item.appearance[data-v-0babc128]{min-width:176px}.appearance-action[data-v-0babc128]{margin-right:-2px}.social-links-list[data-v-0babc128]{margin:-4px -8px}.VPNavBarHamburger[data-v-9722961b]{display:flex;justify-content:center;align-items:center;width:48px;height:var(--vp-nav-height)}@media (min-width: 768px){.VPNavBarHamburger[data-v-9722961b]{display:none}}.container[data-v-9722961b]{position:relative;width:16px;height:14px;overflow:hidden}.VPNavBarHamburger:hover .top[data-v-9722961b]{top:0;left:0;transform:translate(4px)}.VPNavBarHamburger:hover .middle[data-v-9722961b]{top:6px;left:0;transform:translate(0)}.VPNavBarHamburger:hover .bottom[data-v-9722961b]{top:12px;left:0;transform:translate(8px)}.VPNavBarHamburger.active .top[data-v-9722961b]{top:6px;transform:translate(0) rotate(225deg)}.VPNavBarHamburger.active .middle[data-v-9722961b]{top:6px;transform:translate(16px)}.VPNavBarHamburger.active .bottom[data-v-9722961b]{top:6px;transform:translate(0) rotate(135deg)}.VPNavBarHamburger.active:hover .top[data-v-9722961b],.VPNavBarHamburger.active:hover .middle[data-v-9722961b],.VPNavBarHamburger.active:hover .bottom[data-v-9722961b]{background-color:var(--vp-c-text-2);transition:top .25s,background-color .25s,transform .25s}.top[data-v-9722961b],.middle[data-v-9722961b],.bottom[data-v-9722961b]{position:absolute;width:16px;height:2px;background-color:var(--vp-c-text-1);transition:top .25s,background-color .5s,transform .25s}.top[data-v-9722961b]{top:0;left:0;transform:translate(0)}.middle[data-v-9722961b]{top:6px;left:0;transform:translate(8px)}.bottom[data-v-9722961b]{top:12px;left:0;transform:translate(4px)}.VPNavBarMenuLink[data-v-23cee756]{display:flex;align-items:center;padding:0 12px;line-height:var(--vp-nav-height);font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.VPNavBarMenuLink.active[data-v-23cee756],.VPNavBarMenuLink[data-v-23cee756]:hover{color:var(--vp-c-brand-1)}.VPNavBarMenu[data-v-ae613558]{display:none}@media (min-width: 768px){.VPNavBarMenu[data-v-ae613558]{display:flex}}.blog-search[data-v-f37c7efc]{flex:1;display:flex;padding-left:32px}.blog-search .nav-search-btn-wait[data-v-f37c7efc]{cursor:pointer;display:flex;align-items:center;justify-content:center;padding:6px;box-sizing:border-box;border:1px solid transparent;border-radius:6px;transition:.2s border}.blog-search .nav-search-btn-wait .metaKey[data-v-f37c7efc]{margin-left:10px;font-size:12px}.blog-search .nav-search-btn-wait[data-v-f37c7efc]:hover{border:1px solid var(--vp-c-brand-1);border-radius:6px}.blog-search .nav-search-btn-wait .search-tip[data-v-f37c7efc]{color:#909399;font-size:12px;padding-left:10px}@media screen and (max-width: 759px){.metaKey[data-v-f37c7efc],.search-tip[data-v-f37c7efc]{display:none}.blog-search[data-v-f37c7efc]{flex:0}}.search-bar[data-v-f37c7efc]{display:flex;cursor:text;align-items:center;border-radius:4px;border:1px solid var(--vcp-c-brand)}.search-bar input[data-v-f37c7efc]{width:100%}.search-bar .search-actions[data-v-f37c7efc]{display:flex;gap:4px;padding-right:12px}.search-bar .search-actions.before[data-v-f37c7efc]{padding:0}.search-actions button[data-v-f37c7efc]{padding:8px}.local-search-icon[data-v-f37c7efc]{display:block;font-size:18px}.search-actions button.clear-button[data-v-f37c7efc]:disabled{opacity:.37}.search-actions button[data-v-f37c7efc]:not([disabled]):hover,.search-actions button.active[data-v-f37c7efc]:not([disabled]){color:var(--vp-c-brand-1)}.search-actions.before[data-v-f37c7efc]{display:none}@media screen and (max-width: 560px){.search-actions.before[data-v-f37c7efc]{display:flex}}:root{--font-sans: "Inter", --apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;--app-bg: var(--gray1);--app-text: #000000;--command-shadow: 0 16px 70px rgb(0 0 0 / 20%);--lowContrast: #ffffff;--highContrast: #000000;--vcp-c-brand: var(--vp-c-brand-2);--vcp-c-accent: #35495e;--gray1: hsl(0, 0%, 98%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--grayA1: hsla(0, 0%, 0%, .012);--grayA2: hsla(0, 0%, 0%, .027);--grayA3: hsla(0, 0%, 0%, .047);--grayA4: hsla(0, 0%, 0%, .071);--grayA5: hsla(0, 0%, 0%, .09);--grayA6: hsla(0, 0%, 0%, .114);--grayA7: hsla(0, 0%, 0%, .141);--grayA8: hsla(0, 0%, 0%, .22);--grayA9: hsla(0, 0%, 0%, .439);--grayA10: hsla(0, 0%, 0%, .478);--grayA11: hsla(0, 0%, 0%, .565);--grayA12: hsla(0, 0%, 0%, .91);--blue1: hsl(206, 100%, 99.2%);--blue2: hsl(210, 100%, 98%);--blue3: hsl(209, 100%, 96.5%);--blue4: hsl(210, 98.8%, 94%);--blue5: hsl(209, 95%, 90.1%);--blue6: hsl(209, 81.2%, 84.5%);--blue7: hsl(208, 77.5%, 76.9%);--blue8: hsl(206, 81.9%, 65.3%);--blue9: hsl(206, 100%, 50%);--blue10: hsl(208, 100%, 47.3%);--blue11: hsl(211, 100%, 43.2%);--blue12: hsl(211, 100%, 15%)}.dark{--app-bg: var(--gray1);--app-text: #ffffff;--lowContrast: #000000;--highContrast: #ffffff;--gray1: hsl(0, 0%, 8.5%);--gray2: hsl(0, 0%, 11%);--gray3: hsl(0, 0%, 13.6%);--gray4: hsl(0, 0%, 15.8%);--gray5: hsl(0, 0%, 17.9%);--gray6: hsl(0, 0%, 20.5%);--gray7: hsl(0, 0%, 24.3%);--gray8: hsl(0, 0%, 31.2%);--gray9: hsl(0, 0%, 43.9%);--gray10: hsl(0, 0%, 49.4%);--gray11: hsl(0, 0%, 62.8%);--gray12: hsl(0, 0%, 93%);--grayA1: hsla(0, 0%, 100%, 0);--grayA2: hsla(0, 0%, 100%, .026);--grayA3: hsla(0, 0%, 100%, .056);--grayA4: hsla(0, 0%, 100%, .077);--grayA5: hsla(0, 0%, 100%, .103);--grayA6: hsla(0, 0%, 100%, .129);--grayA7: hsla(0, 0%, 100%, .172);--grayA8: hsla(0, 0%, 100%, .249);--grayA9: hsla(0, 0%, 100%, .386);--grayA10: hsla(0, 0%, 100%, .446);--grayA11: hsla(0, 0%, 100%, .592);--grayA12: hsla(0, 0%, 100%, .923);--blue1: hsl(212, 35%, 9.2%);--blue2: hsl(216, 50%, 11.8%);--blue3: hsl(214, 59.4%, 15.3%);--blue4: hsl(214, 65.8%, 17.9%);--blue5: hsl(213, 71.2%, 20.2%);--blue6: hsl(212, 77.4%, 23.1%);--blue7: hsl(211, 85.1%, 27.4%);--blue8: hsl(211, 89.7%, 34.1%);--blue9: hsl(206, 100%, 50%);--blue10: hsl(209, 100%, 60.6%);--blue11: hsl(210, 100%, 66.1%);--blue12: hsl(206, 98%, 95.8%)}div [command-dialog-mask]{background-color:#0000004d;height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:200}div [command-dialog-wrapper]{position:relative;background:var(--gray2);border-radius:6px;box-shadow:none;flex-direction:column;margin:20vh auto auto;max-width:560px}div [command-dialog-footer]{border-top:1px solid var(--gray6);align-items:center;background:var(--gray4);color:var(--gray11);border-radius:0 0 8px 8px;box-shadow:none;display:flex;flex-direction:row-reverse;flex-shrink:0;height:44px;justify-content:space-between;padding:0 12px;position:relative;-webkit-user-select:none;user-select:none;width:100%;z-index:300;font-size:12px}.algolia [command-input]{font-family:var(--font-sans);width:100%;font-size:18px;padding:12px;outline:none;background:var(--bg);color:var(--gray12);caret-color:var(--vcp-c-brand);margin:0}.algolia [command-input]::placeholder{color:var(--gray9)}.algolia [command-list]{height:var(--command-list-height);max-height:360px;overflow:auto;overscroll-behavior:contain;transition:.1s ease;transition-property:height}.algolia .detail-list [command-item]{min-height:56px;max-height:112px;padding:10px 16px;height:auto}.algolia .detail-list [command-item] .des{word-break:break-all;white-space:wrap;margin-top:6px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.algolia [command-item]{position:relative;content-visibility:auto;cursor:pointer;height:56px;font-size:14px;display:flex;align-items:center;gap:12px;padding:0 16px;color:var(--gray12);-webkit-user-select:none;user-select:none;will-change:background,color;transition:all .15s ease;transition-property:none;border-radius:4px;margin-top:4px;background-color:var(--lowContrast)}.algolia [command-item]:first-child{margin-top:0}.algolia [command-item][aria-selected=true],.algolia [command-item]:hover{background:var(--vcp-c-brand);color:#fff}.algolia [command-item][aria-selected=true] svg,.algolia [command-item]:hover svg{color:#fff}.algolia [command-item][aria-selected=true] [command-linear-shortcuts],.algolia [command-item]:hover [command-linear-shortcuts]{display:flex;margin-left:auto;gap:8px}.algolia [command-item][aria-selected=true] [command-linear-shortcuts] kbd,.algolia [command-item]:hover [command-linear-shortcuts] kbd{font-family:var(--font-sans);font-size:13px;color:var(--gray11)}.algolia [command-item]:active{transition-property:background;background:var(--gray4)}.algolia [command-item] svg{width:16px;height:16px;color:var(--gray10)}.algolia [command-empty=""]{font-size:14px;display:flex;align-items:center;justify-content:center;height:64px;white-space:pre-wrap;color:var(--gray11)}.algolia [command-dialog-mask]{background-color:#4b4b4bcc}.algolia [command-dialog-header]{padding:12px}.algolia [command-dialog-body]{padding:0 12px 12px}.algolia [command-dialog-footer]{align-items:center;border-radius:0 0 8px 8px;box-shadow:0 -1px #e0e3e8,0 -3px 6px #45629b1f;display:flex;flex-direction:row-reverse;flex-shrink:0;height:44px;justify-content:space-between;padding:0 12px;position:relative;-webkit-user-select:none;user-select:none;width:100%;z-index:300}.algolia [command-group-heading]{color:var(--vcp-c-brand);font-size:.85em;font-weight:600;line-height:32px;margin:0 -4px;padding:0 4px;top:0;z-index:10;width:100%}.algolia .command-palette-commands{color:var(--docsearch-muted-color);display:flex;list-style:none;margin:0;padding:0}@media screen and (max-width: 560px){.algolia .command-palette-commands{display:none}div [command-dialog-wrapper]{margin:0;height:100vh}.algolia [command-dialog-footer]{justify-content:center}.algolia [command-input]{padding:6px 4px}.algolia [command-list]{max-height:calc(100vh - 120px)}}.algolia .command-palette-commands li{display:flex;align-items:center}.algolia .command-palette-commands li:not(:last-of-type){margin-right:.8em}.algolia .command-palette-logo a{display:flex;align-items:center;gap:8px}.algolia .command-palette-logo svg{height:24px;width:24px}.algolia .command-palette-commands-key{align-items:center;background:var(--gray3);border-radius:2px;display:flex;height:18px;justify-content:center;margin-right:.4em;padding:0 0 1px;color:var(--gray11);border:0;width:20px}.dark .algolia [command-dialog-footer]{box-shadow:none}div[command-group]{display:block!important}div[command-item]{display:flex!important}.search-dialog div[command-item]>div.link{width:100%}.search-dialog div[command-item] .title{display:flex;justify-content:space-between}.search-dialog div[command-item] .title i.prefix{color:var(--vp-c-brand-1)}.search-dialog div[command-item]:hover .title i.prefix,.search-dialog div[command-item][aria-selected=true] .title i.prefix{color:#fff}.search-dialog div[command-item] .des{text-overflow:ellipsis;overflow:hidden;word-break:keep-all;white-space:nowrap}.search-dialog div[command-item] .headings{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block}.search-dialog div[command-item] .date{min-width:86px;text-align:right}.search-dialog div[command-item] mark{background:none;color:var(--vp-c-brand-1)}.search-dialog div[command-item][aria-selected=true] mark,.search-dialog div[command-item]:hover mark{color:inherit;text-decoration:underline}.VPNavBarSocialLinks[data-v-ab107420]{display:none}@media (min-width: 1280px){.VPNavBarSocialLinks[data-v-ab107420]{display:flex;align-items:center}}.title[data-v-ce3494a0]{display:flex;align-items:center;border-bottom:1px solid transparent;width:100%;height:var(--vp-nav-height);font-size:16px;font-weight:600;color:var(--vp-c-text-1);transition:opacity .25s}@media (min-width: 960px){.title[data-v-ce3494a0]{flex-shrink:0}.VPNavBarTitle.has-sidebar .title[data-v-ce3494a0]{border-bottom-color:var(--vp-c-divider)}}[data-v-ce3494a0] .logo{margin-right:8px;height:var(--vp-nav-logo-height)}.VPNavBarTranslations[data-v-6c87fb32]{display:none}@media (min-width: 1280px){.VPNavBarTranslations[data-v-6c87fb32]{display:flex;align-items:center}}.title[data-v-6c87fb32]{padding:0 24px 0 12px;line-height:32px;font-size:14px;font-weight:700;color:var(--vp-c-text-1)}.VPNavBar[data-v-5fae156f]{position:relative;height:var(--vp-nav-height);pointer-events:none;white-space:nowrap;transition:background-color .5s}.VPNavBar.has-local-nav[data-v-5fae156f]{background-color:var(--vp-nav-bg-color)}@media (min-width: 960px){.VPNavBar.has-local-nav[data-v-5fae156f]{background-color:transparent}.VPNavBar[data-v-5fae156f]:not(.has-sidebar):not(.top){background-color:var(--vp-nav-bg-color)}}.wrapper[data-v-5fae156f]{padding:0 8px 0 24px}@media (min-width: 768px){.wrapper[data-v-5fae156f]{padding:0 32px}}@media (min-width: 960px){.VPNavBar.has-sidebar .wrapper[data-v-5fae156f]{padding:0}}.container[data-v-5fae156f]{display:flex;justify-content:space-between;margin:0 auto;max-width:calc(var(--vp-layout-max-width) - 64px);height:var(--vp-nav-height);pointer-events:none}.container>.title[data-v-5fae156f],.container>.content[data-v-5fae156f]{pointer-events:none}.container[data-v-5fae156f] *{pointer-events:auto}@media (min-width: 960px){.VPNavBar.has-sidebar .container[data-v-5fae156f]{max-width:100%}}.title[data-v-5fae156f]{flex-shrink:0;height:calc(var(--vp-nav-height) - 1px);transition:background-color .5s}@media (min-width: 960px){.VPNavBar.has-sidebar .title[data-v-5fae156f]{position:absolute;top:0;left:0;z-index:2;padding:0 32px;width:var(--vp-sidebar-width);height:var(--vp-nav-height);background-color:transparent}}@media (min-width: 1440px){.VPNavBar.has-sidebar .title[data-v-5fae156f]{padding-left:max(32px,calc((100% - (var(--vp-layout-max-width) - 64px)) / 2));width:calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px)}}.content[data-v-5fae156f]{flex-grow:1}@media (min-width: 960px){.VPNavBar.has-sidebar .content[data-v-5fae156f]{position:relative;z-index:1;padding-right:32px;padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPNavBar.has-sidebar .content[data-v-5fae156f]{padding-right:calc((100vw - var(--vp-layout-max-width)) / 2 + 32px);padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.content-body[data-v-5fae156f]{display:flex;justify-content:flex-end;align-items:center;height:var(--vp-nav-height);transition:background-color .5s}@media (min-width: 960px){.VPNavBar:not(.top) .content-body[data-v-5fae156f]{position:relative;background-color:var(--vp-nav-bg-color)}.VPNavBar:not(.has-sidebar):not(.top) .content-body[data-v-5fae156f]{background-color:transparent}}@media (max-width: 767px){.content-body[data-v-5fae156f]{column-gap:.5rem}}.menu+.translations[data-v-5fae156f]:before,.menu+.appearance[data-v-5fae156f]:before,.menu+.social-links[data-v-5fae156f]:before,.translations+.appearance[data-v-5fae156f]:before,.appearance+.social-links[data-v-5fae156f]:before{margin-right:8px;margin-left:8px;width:1px;height:24px;background-color:var(--vp-c-divider);content:""}.menu+.appearance[data-v-5fae156f]:before,.translations+.appearance[data-v-5fae156f]:before{margin-right:16px}.appearance+.social-links[data-v-5fae156f]:before{margin-left:16px}.social-links[data-v-5fae156f]{margin-right:-8px}.divider[data-v-5fae156f]{width:100%;height:1px}@media (min-width: 960px){.VPNavBar.has-sidebar .divider[data-v-5fae156f]{padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPNavBar.has-sidebar .divider[data-v-5fae156f]{padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.divider-line[data-v-5fae156f]{width:100%;height:1px;transition:background-color .5s}.VPNavBar.has-local-nav .divider-line[data-v-5fae156f]{background-color:var(--vp-c-gutter)}@media (min-width: 960px){.VPNavBar:not(.top) .divider-line[data-v-5fae156f]{background-color:var(--vp-c-gutter)}.VPNavBar:not(.has-sidebar):not(.top) .divider[data-v-5fae156f]{background-color:var(--vp-c-gutter)}}.VPNavScreenAppearance[data-v-32a9a686]{display:flex;justify-content:space-between;align-items:center;border-radius:8px;padding:12px 14px 12px 16px;background-color:var(--vp-c-bg-soft)}.text[data-v-32a9a686]{line-height:24px;font-size:12px;font-weight:500;color:var(--vp-c-text-2)}.VPNavScreenMenuLink[data-v-c4fee90c]{display:block;border-bottom:1px solid var(--vp-c-divider);padding:12px 0 11px;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:border-color .25s,color .25s}.VPNavScreenMenuLink[data-v-c4fee90c]:hover{color:var(--vp-c-brand-1)}.VPNavScreenMenuGroupLink[data-v-e764f202]{display:block;margin-left:12px;line-height:32px;font-size:14px;font-weight:400;color:var(--vp-c-text-1);transition:color .25s}.VPNavScreenMenuGroupLink[data-v-e764f202]:hover{color:var(--vp-c-brand-1)}.VPNavScreenMenuGroupSection[data-v-92498763]{display:block}.title[data-v-92498763]{line-height:32px;font-size:13px;font-weight:700;color:var(--vp-c-text-2);transition:color .25s}.VPNavScreenMenuGroup[data-v-b2671dae]{border-bottom:1px solid var(--vp-c-divider);height:48px;overflow:hidden;transition:border-color .5s}.VPNavScreenMenuGroup .items[data-v-b2671dae]{visibility:hidden}.VPNavScreenMenuGroup.open .items[data-v-b2671dae]{visibility:visible}.VPNavScreenMenuGroup.open[data-v-b2671dae]{padding-bottom:10px;height:auto}.VPNavScreenMenuGroup.open .button[data-v-b2671dae]{padding-bottom:6px;color:var(--vp-c-brand-1)}.VPNavScreenMenuGroup.open .button-icon[data-v-b2671dae]{transform:rotate(45deg)}.button[data-v-b2671dae]{display:flex;justify-content:space-between;align-items:center;padding:12px 4px 11px 0;width:100%;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.button[data-v-b2671dae]:hover{color:var(--vp-c-brand-1)}.button-icon[data-v-b2671dae]{transition:transform .25s}.group[data-v-b2671dae]:first-child{padding-top:0}.group+.group[data-v-b2671dae],.group+.item[data-v-b2671dae]{padding-top:4px}.VPNavScreenTranslations[data-v-97c478d9]{height:24px;overflow:hidden}.VPNavScreenTranslations.open[data-v-97c478d9]{height:auto}.title[data-v-97c478d9]{display:flex;align-items:center;font-size:14px;font-weight:500;color:var(--vp-c-text-1)}.icon[data-v-97c478d9]{font-size:16px}.icon.lang[data-v-97c478d9]{margin-right:8px}.icon.chevron[data-v-97c478d9]{margin-left:4px}.list[data-v-97c478d9]{padding:4px 0 0 24px}.link[data-v-97c478d9]{line-height:32px;font-size:13px;color:var(--vp-c-text-1)}.VPNavScreen[data-v-0ba6d639]{position:fixed;top:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 1px);right:0;bottom:0;left:0;padding:0 32px;width:100%;background-color:var(--vp-nav-screen-bg-color);overflow-y:auto;transition:background-color .5s;pointer-events:auto}.VPNavScreen.fade-enter-active[data-v-0ba6d639],.VPNavScreen.fade-leave-active[data-v-0ba6d639]{transition:opacity .25s}.VPNavScreen.fade-enter-active .container[data-v-0ba6d639],.VPNavScreen.fade-leave-active .container[data-v-0ba6d639]{transition:transform .25s ease}.VPNavScreen.fade-enter-from[data-v-0ba6d639],.VPNavScreen.fade-leave-to[data-v-0ba6d639]{opacity:0}.VPNavScreen.fade-enter-from .container[data-v-0ba6d639],.VPNavScreen.fade-leave-to .container[data-v-0ba6d639]{transform:translateY(-8px)}@media (min-width: 768px){.VPNavScreen[data-v-0ba6d639]{display:none}}.container[data-v-0ba6d639]{margin:0 auto;padding:24px 0 96px;max-width:288px}.menu+.translations[data-v-0ba6d639],.menu+.appearance[data-v-0ba6d639],.translations+.appearance[data-v-0ba6d639]{margin-top:24px}.menu+.social-links[data-v-0ba6d639]{margin-top:16px}.appearance+.social-links[data-v-0ba6d639]{margin-top:16px}.VPNav[data-v-7bb06f98]{position:relative;top:var(--vp-layout-top-height, 0px);left:0;z-index:var(--vp-z-index-nav);width:100%;pointer-events:none;transition:background-color .5s}@media (min-width: 960px){.VPNav[data-v-7bb06f98]{position:fixed}}.VPSidebarItem.level-0[data-v-6019963d]{padding-bottom:24px}.VPSidebarItem.collapsed.level-0[data-v-6019963d]{padding-bottom:10px}.item[data-v-6019963d]{position:relative;display:flex;width:100%}.VPSidebarItem.collapsible>.item[data-v-6019963d]{cursor:pointer}.indicator[data-v-6019963d]{position:absolute;top:6px;bottom:6px;left:-17px;width:2px;border-radius:2px;transition:background-color .25s}.VPSidebarItem.level-2.is-active>.item>.indicator[data-v-6019963d],.VPSidebarItem.level-3.is-active>.item>.indicator[data-v-6019963d],.VPSidebarItem.level-4.is-active>.item>.indicator[data-v-6019963d],.VPSidebarItem.level-5.is-active>.item>.indicator[data-v-6019963d]{background-color:var(--vp-c-brand-1)}.link[data-v-6019963d]{display:flex;align-items:center;flex-grow:1}.text[data-v-6019963d]{flex-grow:1;padding:4px 0;line-height:24px;font-size:14px;transition:color .25s}.VPSidebarItem.level-0 .text[data-v-6019963d]{font-weight:700;color:var(--vp-c-text-1)}.VPSidebarItem.level-1 .text[data-v-6019963d],.VPSidebarItem.level-2 .text[data-v-6019963d],.VPSidebarItem.level-3 .text[data-v-6019963d],.VPSidebarItem.level-4 .text[data-v-6019963d],.VPSidebarItem.level-5 .text[data-v-6019963d]{font-weight:500;color:var(--vp-c-text-2)}.VPSidebarItem.level-0.is-link>.item>.link:hover .text[data-v-6019963d],.VPSidebarItem.level-1.is-link>.item>.link:hover .text[data-v-6019963d],.VPSidebarItem.level-2.is-link>.item>.link:hover .text[data-v-6019963d],.VPSidebarItem.level-3.is-link>.item>.link:hover .text[data-v-6019963d],.VPSidebarItem.level-4.is-link>.item>.link:hover .text[data-v-6019963d],.VPSidebarItem.level-5.is-link>.item>.link:hover .text[data-v-6019963d]{color:var(--vp-c-brand-1)}.VPSidebarItem.level-0.has-active>.item>.text[data-v-6019963d],.VPSidebarItem.level-1.has-active>.item>.text[data-v-6019963d],.VPSidebarItem.level-2.has-active>.item>.text[data-v-6019963d],.VPSidebarItem.level-3.has-active>.item>.text[data-v-6019963d],.VPSidebarItem.level-4.has-active>.item>.text[data-v-6019963d],.VPSidebarItem.level-5.has-active>.item>.text[data-v-6019963d],.VPSidebarItem.level-0.has-active>.item>.link>.text[data-v-6019963d],.VPSidebarItem.level-1.has-active>.item>.link>.text[data-v-6019963d],.VPSidebarItem.level-2.has-active>.item>.link>.text[data-v-6019963d],.VPSidebarItem.level-3.has-active>.item>.link>.text[data-v-6019963d],.VPSidebarItem.level-4.has-active>.item>.link>.text[data-v-6019963d],.VPSidebarItem.level-5.has-active>.item>.link>.text[data-v-6019963d]{color:var(--vp-c-text-1)}.VPSidebarItem.level-0.is-active>.item .link>.text[data-v-6019963d],.VPSidebarItem.level-1.is-active>.item .link>.text[data-v-6019963d],.VPSidebarItem.level-2.is-active>.item .link>.text[data-v-6019963d],.VPSidebarItem.level-3.is-active>.item .link>.text[data-v-6019963d],.VPSidebarItem.level-4.is-active>.item .link>.text[data-v-6019963d],.VPSidebarItem.level-5.is-active>.item .link>.text[data-v-6019963d]{color:var(--vp-c-brand-1)}.caret[data-v-6019963d]{display:flex;justify-content:center;align-items:center;margin-right:-7px;width:32px;height:32px;color:var(--vp-c-text-3);cursor:pointer;transition:color .25s;flex-shrink:0}.item:hover .caret[data-v-6019963d]{color:var(--vp-c-text-2)}.item:hover .caret[data-v-6019963d]:hover{color:var(--vp-c-text-1)}.caret-icon[data-v-6019963d]{font-size:18px;transform:rotate(90deg);transition:transform .25s}.VPSidebarItem.collapsed .caret-icon[data-v-6019963d]{transform:rotate(0)}.VPSidebarItem.level-1 .items[data-v-6019963d],.VPSidebarItem.level-2 .items[data-v-6019963d],.VPSidebarItem.level-3 .items[data-v-6019963d],.VPSidebarItem.level-4 .items[data-v-6019963d],.VPSidebarItem.level-5 .items[data-v-6019963d]{border-left:1px solid var(--vp-c-divider);padding-left:16px}.VPSidebarItem.collapsed .items[data-v-6019963d]{display:none}.VPSidebar[data-v-d1158681]{position:fixed;top:var(--vp-layout-top-height, 0px);bottom:0;left:0;z-index:var(--vp-z-index-sidebar);padding:32px 32px 96px;width:calc(100vw - 64px);max-width:320px;background-color:var(--vp-sidebar-bg-color);opacity:0;box-shadow:var(--vp-c-shadow-3);overflow-x:hidden;overflow-y:auto;transform:translate(-100%);transition:opacity .5s,transform .25s ease;overscroll-behavior:contain}.VPSidebar.open[data-v-d1158681]{opacity:1;visibility:visible;transform:translate(0);transition:opacity .25s,transform .5s cubic-bezier(.19,1,.22,1)}.dark .VPSidebar[data-v-d1158681]{box-shadow:var(--vp-shadow-1)}@media (min-width: 960px){.VPSidebar[data-v-d1158681]{padding-top:var(--vp-nav-height);width:var(--vp-sidebar-width);max-width:100%;background-color:var(--vp-sidebar-bg-color);opacity:1;visibility:visible;box-shadow:none;transform:translate(0)}}@media (min-width: 1440px){.VPSidebar[data-v-d1158681]{padding-left:max(32px,calc((100% - (var(--vp-layout-max-width) - 64px)) / 2));width:calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px)}}@media (min-width: 960px){.curtain[data-v-d1158681]{position:sticky;top:-64px;left:0;z-index:1;margin-top:calc(var(--vp-nav-height) * -1);margin-right:-32px;margin-left:-32px;height:var(--vp-nav-height);background-color:var(--vp-sidebar-bg-color)}}.nav[data-v-d1158681]{outline:0}.group+.group[data-v-d1158681]{border-top:1px solid var(--vp-c-divider);padding-top:10px}@media (min-width: 960px){.group[data-v-d1158681]{padding-top:10px;width:calc(var(--vp-sidebar-width) - 64px)}}.VPSkipLink[data-v-673450c5]{top:8px;left:8px;padding:8px 16px;z-index:999;border-radius:8px;font-size:12px;font-weight:700;text-decoration:none;color:var(--vp-c-brand-1);box-shadow:var(--vp-shadow-3);background-color:var(--vp-c-bg)}.VPSkipLink[data-v-673450c5]:focus{height:auto;width:auto;clip:auto;clip-path:none}@media (min-width: 1280px){.VPSkipLink[data-v-673450c5]{top:14px;left:16px}}.Layout[data-v-098e9bd2]{display:flex;flex-direction:column;min-height:100vh}.VPHomeSponsors[data-v-b31f81ea]{border-top:1px solid var(--vp-c-gutter);padding-top:88px!important}.VPHomeSponsors[data-v-b31f81ea]{margin:96px 0}@media (min-width: 768px){.VPHomeSponsors[data-v-b31f81ea]{margin:128px 0}}.VPHomeSponsors[data-v-b31f81ea]{padding:0 24px}@media (min-width: 768px){.VPHomeSponsors[data-v-b31f81ea]{padding:0 48px}}@media (min-width: 960px){.VPHomeSponsors[data-v-b31f81ea]{padding:0 64px}}.container[data-v-b31f81ea]{margin:0 auto;max-width:1152px}.love[data-v-b31f81ea]{margin:0 auto;width:fit-content;font-size:28px;color:var(--vp-c-text-3)}.icon[data-v-b31f81ea]{display:inline-block}.message[data-v-b31f81ea]{margin:0 auto;padding-top:10px;max-width:320px;text-align:center;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}.sponsors[data-v-b31f81ea]{padding-top:32px}.action[data-v-b31f81ea]{padding-top:40px;text-align:center}.VPTeamPage[data-v-d3293057]{margin:96px 0}@media (min-width: 768px){.VPTeamPage[data-v-d3293057]{margin:128px 0}}.VPHome .VPTeamPageTitle[data-v-d3293057-s]{border-top:1px solid var(--vp-c-gutter);padding-top:88px!important}.VPTeamPageSection+.VPTeamPageSection[data-v-d3293057-s],.VPTeamMembers+.VPTeamPageSection[data-v-d3293057-s]{margin-top:64px}.VPTeamMembers+.VPTeamMembers[data-v-d3293057-s]{margin-top:24px}@media (min-width: 768px){.VPTeamPageTitle+.VPTeamPageSection[data-v-d3293057-s]{margin-top:16px}.VPTeamPageSection+.VPTeamPageSection[data-v-d3293057-s],.VPTeamMembers+.VPTeamPageSection[data-v-d3293057-s]{margin-top:96px}}.VPTeamMembers[data-v-d3293057-s]{padding:0 24px}@media (min-width: 768px){.VPTeamMembers[data-v-d3293057-s]{padding:0 48px}}@media (min-width: 960px){.VPTeamMembers[data-v-d3293057-s]{padding:0 64px}}.VPTeamPageTitle[data-v-573111ed]{padding:48px 32px;text-align:center}@media (min-width: 768px){.VPTeamPageTitle[data-v-573111ed]{padding:64px 48px 48px}}@media (min-width: 960px){.VPTeamPageTitle[data-v-573111ed]{padding:80px 64px 48px}}.title[data-v-573111ed]{letter-spacing:0;line-height:44px;font-size:36px;font-weight:500}@media (min-width: 768px){.title[data-v-573111ed]{letter-spacing:-.5px;line-height:56px;font-size:48px}}.lead[data-v-573111ed]{margin:0 auto;max-width:512px;padding-top:12px;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}@media (min-width: 768px){.lead[data-v-573111ed]{max-width:592px;letter-spacing:.15px;line-height:28px;font-size:20px}}.VPTeamPageSection[data-v-b56aa397]{padding:0 32px}@media (min-width: 768px){.VPTeamPageSection[data-v-b56aa397]{padding:0 48px}}@media (min-width: 960px){.VPTeamPageSection[data-v-b56aa397]{padding:0 64px}}.title[data-v-b56aa397]{position:relative;margin:0 auto;max-width:1152px;text-align:center;color:var(--vp-c-text-2)}.title-line[data-v-b56aa397]{position:absolute;top:16px;left:0;width:100%;height:1px;background-color:var(--vp-c-divider)}.title-text[data-v-b56aa397]{position:relative;display:inline-block;padding:0 24px;letter-spacing:0;line-height:32px;font-size:20px;font-weight:500;background-color:var(--vp-c-bg)}.lead[data-v-b56aa397]{margin:0 auto;max-width:480px;padding-top:12px;text-align:center;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}.members[data-v-b56aa397]{padding-top:40px}.VPTeamMembersItem[data-v-1659fe70]{display:flex;flex-direction:column;gap:2px;border-radius:12px;width:100%;height:100%;overflow:hidden}.VPTeamMembersItem.small .profile[data-v-1659fe70]{padding:32px}.VPTeamMembersItem.small .data[data-v-1659fe70]{padding-top:20px}.VPTeamMembersItem.small .avatar[data-v-1659fe70]{width:64px;height:64px}.VPTeamMembersItem.small .name[data-v-1659fe70]{line-height:24px;font-size:16px}.VPTeamMembersItem.small .affiliation[data-v-1659fe70]{padding-top:4px;line-height:20px;font-size:14px}.VPTeamMembersItem.small .desc[data-v-1659fe70]{padding-top:12px;line-height:20px;font-size:14px}.VPTeamMembersItem.small .links[data-v-1659fe70]{margin:0 -16px -20px;padding:10px 0 0}.VPTeamMembersItem.medium .profile[data-v-1659fe70]{padding:48px 32px}.VPTeamMembersItem.medium .data[data-v-1659fe70]{padding-top:24px;text-align:center}.VPTeamMembersItem.medium .avatar[data-v-1659fe70]{width:96px;height:96px}.VPTeamMembersItem.medium .name[data-v-1659fe70]{letter-spacing:.15px;line-height:28px;font-size:20px}.VPTeamMembersItem.medium .affiliation[data-v-1659fe70]{padding-top:4px;font-size:16px}.VPTeamMembersItem.medium .desc[data-v-1659fe70]{padding-top:16px;max-width:288px;font-size:16px}.VPTeamMembersItem.medium .links[data-v-1659fe70]{margin:0 -16px -12px;padding:16px 12px 0}.profile[data-v-1659fe70]{flex-grow:1;background-color:var(--vp-c-bg-soft)}.data[data-v-1659fe70]{text-align:center}.avatar[data-v-1659fe70]{position:relative;flex-shrink:0;margin:0 auto;border-radius:50%;box-shadow:var(--vp-shadow-3)}.avatar-img[data-v-1659fe70]{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;object-fit:cover}.name[data-v-1659fe70]{margin:0;font-weight:600}.affiliation[data-v-1659fe70]{margin:0;font-weight:500;color:var(--vp-c-text-2)}.org.link[data-v-1659fe70]{color:var(--vp-c-text-2);transition:color .25s}.org.link[data-v-1659fe70]:hover{color:var(--vp-c-brand-1)}.desc[data-v-1659fe70]{margin:0 auto}.desc[data-v-1659fe70] a{font-weight:500;color:var(--vp-c-brand-1);text-decoration-style:dotted;transition:color .25s}.links[data-v-1659fe70]{display:flex;justify-content:center;height:56px}.sp-link[data-v-1659fe70]{display:flex;justify-content:center;align-items:center;text-align:center;padding:16px;font-size:14px;font-weight:500;color:var(--vp-c-sponsor);background-color:var(--vp-c-bg-soft);transition:color .25s,background-color .25s}.sp .sp-link.link[data-v-1659fe70]:hover,.sp .sp-link.link[data-v-1659fe70]:focus{outline:none;color:var(--vp-c-white);background-color:var(--vp-c-sponsor)}.sp-icon[data-v-1659fe70]{margin-right:8px;font-size:16px}.VPTeamMembers.small .container[data-v-f6b9416a]{grid-template-columns:repeat(auto-fit,minmax(224px,1fr))}.VPTeamMembers.small.count-1 .container[data-v-f6b9416a]{max-width:276px}.VPTeamMembers.small.count-2 .container[data-v-f6b9416a]{max-width:576px}.VPTeamMembers.small.count-3 .container[data-v-f6b9416a]{max-width:876px}.VPTeamMembers.medium .container[data-v-f6b9416a]{grid-template-columns:repeat(auto-fit,minmax(256px,1fr))}@media (min-width: 375px){.VPTeamMembers.medium .container[data-v-f6b9416a]{grid-template-columns:repeat(auto-fit,minmax(288px,1fr))}}.VPTeamMembers.medium.count-1 .container[data-v-f6b9416a]{max-width:368px}.VPTeamMembers.medium.count-2 .container[data-v-f6b9416a]{max-width:760px}.container[data-v-f6b9416a]{display:grid;gap:24px;margin:0 auto;max-width:1152px}:root{--vp-plugin-tabs-tab-text-color: var(--vp-c-text-2);--vp-plugin-tabs-tab-active-text-color: var(--vp-c-text-1);--vp-plugin-tabs-tab-hover-text-color: var(--vp-c-text-1);--vp-plugin-tabs-tab-bg: var(--vp-c-bg-soft);--vp-plugin-tabs-tab-divider: var(--vp-c-divider);--vp-plugin-tabs-tab-active-bar-color: var(--vp-c-brand)}.plugin-tabs{margin:16px 0;background-color:var(--vp-plugin-tabs-tab-bg);border-radius:8px}.plugin-tabs--tab-list{position:relative;padding:0 12px;overflow:auto}.plugin-tabs--tab-list:after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background-color:var(--vp-plugin-tabs-tab-divider)}.plugin-tabs--tab{position:relative;padding:0 12px;line-height:48px;border-bottom:2px solid transparent;color:var(--vp-plugin-tabs-tab-text-color);font-size:14px;font-weight:500;white-space:nowrap;transition:color .25s}.plugin-tabs--tab[aria-selected=true]{color:var(--vp-plugin-tabs-tab-active-text-color)}.plugin-tabs--tab:hover{color:var(--vp-plugin-tabs-tab-hover-text-color)}.plugin-tabs--tab:after{content:"";position:absolute;bottom:-2px;left:8px;right:8px;height:2px;background-color:transparent;transition:background-color .25s;z-index:10}.plugin-tabs--tab[aria-selected=true]:after{background-color:var(--vp-plugin-tabs-tab-active-bar-color)}.plugin-tabs--content{padding:16px}.plugin-tabs--content>:first-child{margin-top:0}.plugin-tabs--content>:last-child{margin-bottom:0}.plugin-tabs--content>div[class*=language-]{margin:8px 0}.blog-author[data-v-68993174]{margin-bottom:20px}.blog-author img[data-v-68993174]{display:block;margin:10px auto;width:100px;height:100px;border-radius:50%;background-color:rgba(var(--bg-gradient-home))}.blog-author img[data-v-68993174]:hover{transform:rotate(666turn);transition-duration:59s;transition-timing-function:cubic-bezier(.34,0,.84,1)}.blog-author p[data-v-68993174]{text-align:center}.card[data-v-f744186e]{position:relative;margin:0 auto 10px;padding:10px;width:100%;overflow:hidden;border-radius:.25rem;box-shadow:var(--box-shadow);box-sizing:border-box;transition:all .3s;background-color:rgba(var(--bg-gradient));display:flex;flex-direction:column}.card[data-v-f744186e]:hover{box-shadow:var(--box-shadow-hover)}.overview-data[data-v-f744186e]{width:100%;display:flex;align-items:center;justify-content:space-around}.split[data-v-f744186e]{width:1px;opacity:.8;height:10px;background-color:var(--badge-font-color)}.overview-item[data-v-f744186e]{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;margin:0 10px}.overview-item .count[data-v-f744186e]{font-size:18px}.overview-item .label[data-v-f744186e]{margin-top:6px;font-size:12px;color:var(--description-font-color)}.card[data-v-7f4057be]{position:relative;margin:0 auto 10px;padding:10px;width:100%;overflow:hidden;border-radius:.25rem;box-shadow:var(--box-shadow);box-sizing:border-box;transition:all .3s;background-color:rgba(var(--bg-gradient));display:flex}.card[data-v-7f4057be]:hover{box-shadow:var(--box-shadow-hover)}.card-header[data-v-7f4057be]{display:flex;width:100%;justify-content:space-between;align-items:center}.card-header .title[data-v-7f4057be]{font-size:12px;display:flex;align-items:center}.recommend[data-v-7f4057be]{flex-direction:column}.recommend-container[data-v-7f4057be]{display:flex;flex-direction:column;list-style:none;margin:0;padding:0 10px 0 0;width:100%}.recommend-container li[data-v-7f4057be]{display:flex}.recommend-container li:nth-child(1) .num[data-v-7f4057be]{background-color:#f56c6c;color:#fff;font-size:12px;border-radius:8px 0}.recommend-container li:nth-child(2) .num[data-v-7f4057be]{background-color:#67c23a;color:#fff;font-size:12px;border-radius:0 8px}.recommend-container li:nth-child(3) .num[data-v-7f4057be]{background-color:var(--vp-c-brand-2);color:#fff;font-size:12px;border-radius:6px}.recommend-container li .num[data-v-7f4057be]{display:block;font-size:14px;color:var(--description-font-color);font-weight:600;margin:6px 12px 10px 0;width:18px;height:18px;line-height:18px;text-align:center}.recommend-container li .des[data-v-7f4057be]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recommend-container li .title[data-v-7f4057be]{font-size:14px;color:var(--vp-c-text-1);font-weight:500;position:relative;cursor:pointer}.recommend-container li .title[data-v-7f4057be]:hover:after{content:"";position:absolute;left:0;right:0;height:0;bottom:-3px;border-bottom:1px solid #b1b3b8}.recommend-container li .suffix[data-v-7f4057be]{font-size:12px;color:var(--vp-c-text-2)}.empty-text[data-v-7f4057be]{padding:6px;font-size:14px;text-align:center}.card[data-v-3b3e128b]{position:relative;margin:0 auto 10px;padding:10px;width:100%;overflow:hidden;border-radius:.25rem;box-shadow:var(--box-shadow);box-sizing:border-box;transition:all .3s;background-color:rgba(var(--bg-gradient));display:flex}.card[data-v-3b3e128b]:hover{box-shadow:var(--box-shadow-hover)}.card-header[data-v-3b3e128b]{display:flex;width:100%;justify-content:space-between;align-items:center}.card-header .title[data-v-3b3e128b]{font-size:12px;display:flex;align-items:center}.tags[data-v-3b3e128b]{flex-direction:column}.tag-list[data-v-3b3e128b]{display:flex;flex-wrap:wrap;margin-top:10px}.tag-list li[data-v-3b3e128b]{margin-right:10px;margin-bottom:10px;cursor:pointer}.card[data-v-b9dbe97d]{position:relative;margin:0 auto 10px;padding:10px;width:100%;overflow:hidden;border-radius:.25rem;box-shadow:var(--box-shadow);box-sizing:border-box;transition:all .3s;background-color:rgba(var(--bg-gradient));display:flex}.card[data-v-b9dbe97d]:hover{box-shadow:var(--box-shadow-hover)}.card-header[data-v-b9dbe97d]{display:flex;width:100%;justify-content:space-between;align-items:center}.card-header .title[data-v-b9dbe97d]{font-size:12px;display:flex;align-items:center}.friend-wrapper[data-v-b9dbe97d]{flex-direction:column}.scroll-wrapper[data-v-b9dbe97d]{overflow:hidden;position:relative}.friend-list[data-v-b9dbe97d]{display:flex;flex-direction:column;list-style:none;margin:0;padding:10px 10px 0 0;position:relative;width:100%}.friend-list li[data-v-b9dbe97d]{box-sizing:border-box;padding:0 5px;height:76px}.friend-list li .el-avatar[data-v-b9dbe97d]{min-width:50px}.friend-list li a[data-v-b9dbe97d]{display:flex;align-items:center}.friend-list li div[data-v-b9dbe97d]{padding-left:10px}.friend-list li .info-wrapper[data-v-b9dbe97d]{display:flex;flex-direction:column;overflow:hidden}.friend-list li .nickname[data-v-b9dbe97d]{font-size:16px;font-weight:450}.friend-list li .des[data-v-b9dbe97d]{color:var(--vp-c-text-2);font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.blog-info[data-v-2b34737f]{display:flex;flex-direction:column;min-width:240px;position:relative;box-sizing:border-box}@media screen and (min-width: 767px){.blog-info[data-v-2b34737f]{width:280px}}h1[data-v-ff4460db]{text-align:center}h1 .name[data-v-ff4460db]{transition:all .25s ease-in-out .04s;transform:translateY(0);opacity:1;font-weight:700;margin:0 auto;font-size:36px}h1 .motto[data-v-ff4460db]{position:relative;bottom:0;font-size:14px;margin-left:10px}h1 .motto[data-v-ff4460db]:before{content:"- "}@media screen and (max-width: 500px){.motto[data-v-ff4460db]{display:none}}@keyframes fade-in-ff4460db{0%{opacity:0}to{opacity:1}}.inspiring-wrapper[data-v-ff4460db]{margin:16px 0;height:32px;width:auto}.inspiring-wrapper h2[data-v-ff4460db]{animation:fade-in-ff4460db .5s ease-in-out;cursor:pointer;text-align:center;font-size:20px;line-height:1.6}.blog-item .pin[data-v-faabe328]{position:absolute;overflow:hidden;width:30px;height:30px;top:-4px;left:-4px;opacity:.5}.blog-item:hover .pin[data-v-faabe328]{opacity:1}.blog-item .pin[data-v-faabe328]:before{content:"";position:absolute;width:120%;height:30px;background-image:linear-gradient(45deg,var(--blog-theme-color),var(--blog-theme-color));transform:rotate(-45deg) translateY(-20px);display:flex;align-items:center;justify-content:center;box-shadow:0 5px 10px #0000003b}.blog-item[data-v-faabe328]{position:relative;margin:0 auto 20px;padding:16px 20px;width:100%;overflow:hidden;border-radius:.25rem;box-shadow:var(--box-shadow);box-sizing:border-box;transition:all .3s;background-color:rgba(var(--bg-gradient));cursor:pointer;display:flex;flex-direction:column}.blog-item[data-v-faabe328]:hover{box-shadow:var(--box-shadow-hover)}.info-container[data-v-faabe328]{display:flex;align-items:center;justify-content:flex-start}.info-part[data-v-faabe328]{flex:1}.title[data-v-faabe328]{font-size:18px;font-weight:600;margin-bottom:8px}.description[data-v-faabe328]{color:var(--description-font-color);font-size:14px;margin-bottom:8px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.description-html[data-v-faabe328]{font-size:14px}.badge-list[data-v-faabe328]{font-size:13px;color:var(--badge-font-color);margin-top:8px}.badge-list .split[data-v-faabe328]:not(:last-child):after{content:"";display:inline-block;width:1px;height:8px;margin:0 10px;background-color:#4e5969}.cover-img[data-v-faabe328]{width:120px;height:80px;margin-left:24px;border-radius:2px;background-repeat:no-repeat;background-size:contain;background-position:center}.pc-visible[data-v-faabe328]{display:block}.mobile-visible[data-v-faabe328]{display:none}@media screen and (max-width: 500px){.cover-img[data-v-faabe328]{width:100px;height:60px;background-size:contain;background-position:center}.pc-visible[data-v-faabe328]{display:none}.mobile-visible[data-v-faabe328]{display:block}}.el-pagination-wrapper[data-v-28ffc08a] .el-pagination li.is-active.number{background-color:var(--vp-c-brand-2)}.el-pagination-wrapper[data-v-28ffc08a] .el-pagination button:hover{color:var(--vp-c-brand-2)}.el-pagination-wrapper[data-v-28ffc08a] .el-pager li:not(.is-active):hover{color:var(--vp-c-brand-2)}.el-pagination-wrapper[data-v-28ffc08a] .el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--vp-c-brand-2) inset}.card[data-v-7caf2a1b]{position:relative;margin:0 auto 10px;padding:10px;width:100%;overflow:hidden;border-radius:.25rem;box-shadow:var(--box-shadow);box-sizing:border-box;transition:all .3s;background-color:rgba(var(--bg-gradient));display:flex}.card[data-v-7caf2a1b]:hover{box-shadow:var(--box-shadow-hover)}.recommend[data-v-7caf2a1b]{flex-direction:column;padding:var(--c6862748)}.recommend-container[data-v-7caf2a1b]{display:flex;flex-direction:column;list-style:none;margin:0;padding:0 10px 0 0;width:100%}.recommend-container li[data-v-7caf2a1b]{display:flex}.recommend-container li .num[data-v-7caf2a1b]{display:block;font-size:14px;color:var(--description-font-color);font-weight:600;margin:6px 8px 10px 0;width:22px;height:18px;line-height:18px;text-align:center}.recommend-container li .des[data-v-7caf2a1b]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recommend-container li .title[data-v-7caf2a1b]{font-size:14px;color:var(--vp-c-text-1);word-break:break-all;white-space:break-spaces;font-weight:500;position:relative;cursor:pointer}.recommend-container li .title.current[data-v-7caf2a1b]{color:var(--vp-c-brand-1)}.recommend-container li .title[data-v-7caf2a1b]:hover:after{content:"";position:absolute;left:0;right:0;height:0;bottom:-3px;border-bottom:1px solid #b1b3b8}.recommend-container li .suffix[data-v-7caf2a1b]{font-size:12px;color:var(--vp-c-text-2)}.card-header[data-v-7caf2a1b]{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:10px}.card-header .title[data-v-7caf2a1b]{font-size:14px;display:flex;align-items:center}.empty-text[data-v-7caf2a1b]{padding:6px;font-size:14px;text-align:center}.sidebar[data-v-2c475018]{margin-top:var(--b24388ca)}@media screen and (min-width: 960px) and (max-width: 1120px){.sidebar[data-v-2c475018]{margin-top:var(--4ff58e92)}}img.blog-doc-cover.blog-doc-cover.blog-doc-cover[data-v-3e974c9e]{width:100%;object-fit:cover;max-height:none;margin-top:20px}.doc-analyze[data-v-c630a160]{color:var(--vp-c-text-2);font-size:14px;margin-bottom:20px;display:flex;justify-content:center}.doc-analyze span[data-v-c630a160]{margin-right:16px;display:flex;align-items:center}.doc-analyze span .el-icon[data-v-c630a160]{margin-right:4px}.meta-des[data-v-c630a160],.new-line-meta-des[data-v-c630a160]{text-align:left;color:var(--vp-c-text-2);font-size:14px;margin-top:6px;display:flex;flex-wrap:wrap}.meta-des>span[data-v-c630a160],.new-line-meta-des>span[data-v-c630a160]{margin-right:16px;display:flex;align-items:center}.meta-des>span .el-icon[data-v-c630a160],.new-line-meta-des>span .el-icon[data-v-c630a160]{margin-right:4px}.meta-des .link[data-v-c630a160],.new-line-meta-des .link[data-v-c630a160]{color:var(--vp-c-text-2)}.meta-des .link[data-v-c630a160]:hover,.new-line-meta-des .link[data-v-c630a160]:hover{color:var(--vp-c-brand-1);cursor:pointer}.tags a.link[data-v-c630a160]:not(:last-child):after{content:"·";display:inline-block;padding:0 4px}.global-alert[data-v-5e1c10f5]{position:fixed;z-index:999;top:66px;max-width:500px;margin:0 auto;left:50%;transform:translate(-50%);width:auto}.global-alert[data-v-5e1c10f5] .el-alert__content{padding-right:20px}@media screen and (max-width: 1100px){.global-alert[data-v-5e1c10f5]{width:50%}}@media screen and (max-width: 600px){.global-alert[data-v-5e1c10f5]{width:90%}}.theme-blog-popover[data-v-a371245f]{width:258px;position:fixed;top:80px;right:20px;z-index:22;box-sizing:border-box;border:1px solid var(--vp-c-brand-3);border-radius:6px;background-color:rgba(var(--bg-gradient-home));box-shadow:var(--box-shadow)}.theme-blog-popover[data-v-a371245f] .el-button.el-button--primary{background-color:var(--vp-c-brand-2);border-color:var(--vp-c-brand-2)}.header[data-v-a371245f]{background-color:var(--vp-c-brand-3);color:#fff;padding:6px 4px;display:flex;justify-content:space-between;align-items:center}.header .close-icon[data-v-a371245f]{cursor:pointer}.title-wrapper[data-v-a371245f]{display:flex;align-items:center}.title-wrapper .title[data-v-a371245f]{font-size:14px;padding-left:6px}.body[data-v-a371245f]{box-sizing:border-box;padding:10px 10px 0}.body hr[data-v-a371245f]{border:none;border-bottom:1px solid #eaecef}.footer[data-v-a371245f]{box-sizing:border-box;padding:10px}.body.content[data-v-a371245f],.footer.content[data-v-a371245f]{text-align:center}.body.content h4[data-v-a371245f],.footer.content h4[data-v-a371245f]{text-align:center;font-size:12px}.body.content p[data-v-a371245f],.footer.content p[data-v-a371245f]{text-align:center;padding:10px 0;font-size:14px}.body.content img[data-v-a371245f],.footer.content img[data-v-a371245f]{width:100%;height:100px;object-fit:contain;margin:0 auto}.theme-blog-popover-close[data-v-a371245f]{cursor:pointer;opacity:.5;z-index:22;top:80px;right:10px;position:fixed;background-color:var(--vp-c-brand-3);padding:8px;color:#fff;font-size:12px;border-radius:50%;display:flex;flex-direction:column}.theme-blog-popover-close.twinkle[data-v-a371245f]{animation:twinkle-a371245f 1s ease-in-out infinite}@keyframes twinkle-a371245f{0%{opacity:.5}50%{opacity:0}to{opacity:.5}}footer.blog-footer[data-v-01af612f]{text-align:center;position:relative;border-top:1px solid var(--vp-c-gutter);padding:20px 12px;background-color:var(--vp-c-bg)}footer.blog-footer p[data-v-01af612f]{line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.footer-item-list[data-v-01af612f]{display:flex;justify-content:center;flex-wrap:wrap}@media (max-width: 719px){.footer-item-list[data-v-01af612f]{flex-direction:column;align-items:center}}.footer-item[data-v-01af612f]{display:flex;align-items:center;margin:0 8px}.footer-item i[data-v-01af612f]{margin-right:4px;font-style:normal}.footer-item i[data-v-01af612f] svg{fill:var(--vp-c-text-2);width:16px;height:16px}.footer-item i[data-v-01af612f] img{width:16px;height:16px}.footer-item a[data-v-01af612f]:hover{color:var(--vp-c-brand-1);text-decoration:underline;text-decoration-color:var(--vp-c-brand-1);text-decoration-style:dashed}.blog-home-header-avatar[data-v-f9564ed1]{padding-top:40px;display:flex;align-items:center}.blog-home-header-avatar img[data-v-f9564ed1]{display:block;margin:0 auto;width:130px;height:130px;border-radius:50%;background-color:transparent;border:5px solid rgba(var(--bg-gradient-home));box-sizing:border-box}.blog-home-header-avatar img[data-v-f9564ed1]:hover{transform:rotate(666turn);transition-duration:59s;transition-timing-function:cubic-bezier(.34,0,.84,1)}@media screen and (min-width: 768px){.blog-home-header-avatar[data-v-f9564ed1]{display:none}}.back-to-top[data-v-63b6204b]{position:fixed;width:var(--a2522a3e);text-align:right;bottom:80px;font-size:16px;transition:all .3s ease-in-out;opacity:.6;display:flex;justify-content:right;z-index:200}.back-to-top[data-v-63b6204b]:hover{opacity:1}.back-to-top .icon-wrapper[data-v-63b6204b]{cursor:pointer;border-radius:50%;position:relative;right:-80px;background-color:var(--vp-c-bg);box-shadow:var(--box-shadow);padding:4px;display:flex;align-items:center;justify-content:center;background-color:var(--vp-c-brand-soft);color:var(--vp-c-brand-1)}.back-to-top .icon-wrapper[data-v-63b6204b]:hover{box-shadow:var(--box-shadow-hover)}@media screen and (max-width: 1200px){.back-to-top .icon-wrapper[data-v-63b6204b]{border-radius:50%;position:static}}.artalk-container[data-v-63e0ba6a]{--at-color-main: var(--vp-c-brand-2)}.appreciation-container[data-v-edf3d263]{text-align:center;padding:20px;font-size:14px;color:#606266}.appreciation-container[data-v-edf3d263] .el-button.el-button--primary{background-color:var(--vp-c-brand-2);border-color:var(--vp-c-brand-2)}.content-container[data-v-edf3d263]{position:relative;display:flex;justify-content:center;align-items:center;margin-top:20px}.content-container[data-v-edf3d263] img{height:260px}.content-icon[data-v-edf3d263]{font-family:iconfont!important;font-size:16px;margin-right:8px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.content-enter-active[data-v-edf3d263]{animation:fadeIn-edf3d263 .5s ease forwards}.content-leave-active[data-v-edf3d263]{animation:fadeOut-edf3d263 .3s ease forwards}@keyframes fadeIn-edf3d263{0%{opacity:0}to{opacity:1}}@keyframes fadeOut-edf3d263{0%{opacity:1}to{opacity:0}}.comment-btn-wrapper[data-v-bebc6048]{position:fixed;width:var(--8d4f5c34);text-align:right;bottom:40px;font-size:16px;transition:all .3s ease-in-out;opacity:.6;display:flex;justify-content:right;z-index:200}.comment-btn-wrapper[data-v-bebc6048]:hover{opacity:1}.comment-btn-wrapper .icon-wrapper[data-v-bebc6048],.comment-btn-wrapper .icon-wrapper-text[data-v-bebc6048]{cursor:pointer;border-radius:50%;position:relative;right:-80px;background-color:var(--vp-c-bg);box-shadow:var(--box-shadow);padding:4px;display:flex;align-items:center;justify-content:center;background-color:var(--vp-c-brand-soft);color:var(--vp-c-brand-1)}.comment-btn-wrapper .icon-wrapper[data-v-bebc6048]:hover,.comment-btn-wrapper .icon-wrapper-text[data-v-bebc6048]:hover{box-shadow:var(--box-shadow-hover)}.comment-btn-wrapper .icon-wrapper-text[data-v-bebc6048]{border-radius:2px;padding:2px 6px}.comment-btn-wrapper .icon-wrapper-text span.text[data-v-bebc6048]{font-size:12px;margin-left:4px}@media screen and (max-width: 1200px){.comment-btn-wrapper .icon-wrapper[data-v-bebc6048],.comment-btn-wrapper .icon-wrapper-text[data-v-bebc6048]{position:static}}.home[data-v-34ab89af]{margin:0 auto;padding:20px;max-width:1126px}@media screen and (min-width: 960px){.home[data-v-34ab89af]{padding-top:var(--vp-nav-height)}}.header-banner[data-v-34ab89af]{width:100%;padding:60px 0}.content-wrapper[data-v-34ab89af]{display:flex;align-items:flex-start;justify-content:center}.blog-list-wrapper[data-v-34ab89af]{width:100%}.blog-info-wrapper[data-v-34ab89af]{margin-left:16px;position:sticky;top:100px}@media screen and (max-width: 959px){.blog-info-wrapper[data-v-34ab89af]{margin-left:16px;position:sticky;top:40px}}@media screen and (max-width: 767px){.content-wrapper[data-v-34ab89af]{flex-wrap:wrap}.blog-info-wrapper[data-v-34ab89af]{margin:20px 0;width:100%}}::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}::view-transition-old(root),.dark::view-transition-new(root){z-index:1}::view-transition-new(root),.dark::view-transition-old(root){z-index:9999}.blog-theme-layout .VPSwitchAppearance{width:22px!important}.blog-theme-layout .VPSwitchAppearance .check{transform:none!important}.user-works-page[data-v-6704c7e6]{display:flex;justify-content:center;width:100%;margin:20px auto;padding:16px}.user-works-page h1[data-v-6704c7e6]{font-size:32px;font-weight:700}.user-works-page .description[data-v-6704c7e6]{margin-top:16px;color:#999;font-size:16px}.user-works-page a[data-v-6704c7e6]{font-weight:500;color:var(--vp-c-brand-1)}.works-container[data-v-6704c7e6]{display:flex;justify-content:center}.work[data-v-6704c7e6]{max-width:900px}.work h2[data-v-6704c7e6]{margin-top:6px;padding-top:18px;line-height:32px;font-size:24px;border-top:1px solid var(--vp-c-divider)}.work h2 a[data-v-6704c7e6]{color:inherit}.work h2:hover a[data-v-6704c7e6]:before{opacity:1}.work h2 a[data-v-6704c7e6]{position:relative}.work h2 a[data-v-6704c7e6]:before{position:absolute;left:-16px;opacity:0;content:var(--vp-header-anchor-symbol)}.work h3[data-v-6704c7e6]{margin:32px 0 0;line-height:28px;font-size:20px;position:relative}.work h3.title>a.pin[data-v-6704c7e6]{position:absolute;left:-16px}.work h3.title>a.pin[data-v-6704c7e6]:before{left:-16px;opacity:0;content:var(--vp-header-anchor-symbol)}.work h3:hover>a.pin[data-v-6704c7e6]:before{opacity:1}.work .info[data-v-6704c7e6]{display:flex;font-size:14px;margin-top:10px;flex-wrap:wrap}.work .links[data-v-6704c7e6],.work .times[data-v-6704c7e6],.work .tags[data-v-6704c7e6]{display:flex;align-items:center}.work .links .icon[data-v-6704c7e6],.work .times .icon[data-v-6704c7e6],.work .tags .icon[data-v-6704c7e6]{color:var(--vp-c-text-1);display:block;width:20px;height:20px;margin-right:6px}.work .times[data-v-6704c7e6]{margin-right:18px}.work .links a[data-v-6704c7e6]{display:flex;align-items:center}.work .links a.github-link[data-v-6704c7e6]{margin-right:10px}.work .links a.link[data-v-6704c7e6]{margin-right:0}.work .links a.link[data-v-6704c7e6]:after{content:",";color:var(--vp-c-text-1);margin-right:6px;margin-left:2px}.work .links a.link[data-v-6704c7e6]:last-child:after{content:""}.work .tags span.tag[data-v-6704c7e6]{cursor:pointer}.work .tags span.tag[data-v-6704c7e6]:not(:last-child):after{content:"·";display:inline-block;padding:0 4px}.aside-container[data-v-6704c7e6]{display:none;flex:1;padding-left:32px;width:100%;max-width:256px}@media screen and (min-width: 960px){.aside-container[data-v-6704c7e6]{display:block}}.aside-outline-container[data-v-6704c7e6]{position:sticky;top:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + var(--vp-doc-top-height, 0px) + 32px)}.lastupdate[data-v-6704c7e6]{color:var(--vp-c-text-1)}.list-mode[data-v-6704c7e6]{max-height:370px;overflow-y:auto;margin:10px auto;display:flex;flex-wrap:wrap;justify-content:center}.list-mode .el-image[data-v-6704c7e6] img{object-fit:contain}.swiper-mode[data-v-6704c7e6]{margin-top:16px}.swiper-mode .el-image[data-v-6704c7e6] img{object-fit:contain;max-height:260px}.split[data-v-6704c7e6]{display:inline-block;width:1px;height:8px;margin:0 10px;background-color:#4e5969}html[theme=vp-green]{--vp-c-brand-1: var(--vp-c-green-1);--vp-c-brand-2: var(--vp-c-green-2);--vp-c-brand-3: var(--vp-c-green-3);--vp-c-brand-soft: var(--vp-c-green-soft)}html[theme=vp-yellow]{--vp-c-brand-1: var(--vp-c-yellow-1);--vp-c-brand-2: var(--vp-c-yellow-2);--vp-c-brand-3: var(--vp-c-yellow-3);--vp-c-brand-soft: var(--vp-c-yellow-soft)}html[theme=vp-red]{--vp-c-brand-1: var(--vp-c-red-1);--vp-c-brand-2: var(--vp-c-red-2);--vp-c-brand-3: var(--vp-c-red-3);--vp-c-brand-soft: var(--vp-c-red-soft)}html[theme=el-blue]{--vp-c-brand-1: var(--el-color-primary);--vp-c-brand-2: var(--el-color-primary-light-3);--vp-c-brand-3: var(--el-color-primary-light-5);--vp-c-brand-soft: var(--el-color-primary-light-9)}html[theme=el-green]{--vp-c-brand-1: var(--el-color-success);--vp-c-brand-2: var(--el-color-success-light-3);--vp-c-brand-3: var(--el-color-success-light-5);--vp-c-brand-soft: var(--el-color-success-light-9)}html[theme=el-yellow]{--vp-c-brand-1: var(--el-color-warning);--vp-c-brand-2: var(--el-color-warning-light-3);--vp-c-brand-3: var(--el-color-warning-light-5);--vp-c-brand-soft: var(--el-color-warning-light-9)}html[theme=el-red]{--vp-c-brand-1: var(--el-color-danger);--vp-c-brand-2: var(--el-color-danger-light-3);--vp-c-brand-3: var(--el-color-danger-light-5);--vp-c-brand-soft: var(--el-color-danger-light-9)}.layout-bottom-extra-tips[data-v-1b0c6326]{font-size:14px;font-weight:500;color:var(--vp-c-text-2);background-color:var(--vp-c-bg);margin-top:-20px;padding-bottom:20px;z-index:1;display:none;justify-content:center;align-items:center;flex-wrap:wrap}.layout-bottom-extra-tips>span[data-v-1b0c6326]{white-space:nowrap}.blog-footer+.layout-bottom-extra-tips[data-v-1b0c6326]{display:flex}.vitepress-music{z-index:99999}@font-face{font-family:iconfont;src:url(data:font/ttf;base64,AAEAAAALAIAAAwAwR1NVQiCLJXoAAAE4AAAAVE9TLzI8K0npAAABjAAAAGBjbWFwm/CfBQAAAgQAAAHAZ2x5ZrPQuh4AAAPUAAAEiGhlYWQh9FVnAAAA4AAAADZoaGVhB94DhwAAALwAAAAkaG10eBgAAAAAAAHsAAAAGGxvY2EELgKuAAADxAAAAA5tYXhwARgAqQAAARgAAAAgbmFtZRCjPLAAAAhcAAACZ3Bvc3QIKkqXAAAKxAAAAGAAAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAYAAQAAAAEAAEWI0TJfDzz1AAsEAAAAAADfaoi2AAAAAN9qiLYAAP/EBAADOgAAAAgAAgAAAAAAAAABAAAABgCdAAgAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKADAAPgACREZMVAAObGF0bgAaAAQAAAAAAAAAAQAAAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAQEAAGQAAUAAAKJAswAAACPAokCzAAAAesAMgEIAAACAAUDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBmRWQAwOYW5xkDgP+AAAAD3ACAAAAAAQAAAAAAAAAAAAAAAAACBAAAAAQAAAAEAAAABAAAAAQAAAAEAAAAAAAABQAAAAMAAAAsAAAABAAAAXQAAQAAAAAAbgADAAEAAAAsAAMACgAAAXQABABCAAAACgAIAAIAAuYW5jbmVecZ//8AAOYW5jbmVecY//8AAAAAAAAAAAABAAoACgAKAAoAAAADAAIAAQAEAAUAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAEwAAAAAAAAABQAA5hYAAOYWAAAAAwAA5jYAAOY2AAAAAgAA5lUAAOZVAAAAAQAA5xgAAOcYAAAABAAA5xkAAOcZAAAABQAAAAAAQgC4AagB9gJEAAAAAwAA/8YDugM6AA8AHwArAAATNDYzITIWFREUBiMhIiY1ExEUFjMhMjY1ETQmIyEiBhMiJjQ2MyEyFhQGI0YxIwLMIzExI/00IzFADAgCzAgMDAj9NAgMrQ0TEw0Bmg0TEw0C5iMxMSP9NCMxMSMCzP00CAwMCALMCAwM/nITGhMTGhMABQAAAAADzgMTABoAJwA1AEEATQAAASYnJgYVESYjIg4BFB4BMj4BNScTFhceAT4BASIuATQ+ATIeARQOAQEhMjY0JiMhIg4BFB4BFyMiBhQWOwEyNjQmByMiBhQWOwEyNjQmA8VHYxEdMT4xUjExUmFTMAEBNykKHBUC/rAeMx4eMzwzHh4z/h0BiQ4UFA7+dwkQCQkQ+O8OFBQO7w4UFHSJDhQUDokOFBQCllAmBxQS/lsnMFNhUjAwUjEFAfYfLwsCExz9wh4zPDMeHjM8Mx4CABQcFAkQEhAJmhQcFBQcFN4UHBQUHBQAAAAIAAD/xAO2AykAGAAtADoAQwBaAHAAhgCcAAAFIicuAScmNDc+ATc2MhceARcWFAcOAQcGAyIHBgcGFBcWFxYyNzY3NjQnJicmAyIuATQ+ATIeARQOASciBhQWMjY0JgMiIyYnJicmJyY+ARYXHgEXFhcyFg4BNSIjJicuAScmPgEWFx4BFxYXHgEOAQEiJy4BJyYnIiY+ARcWFx4BFxYGBwYHIicuAScmJy4BPgEXFhceARcWBgcGAgNYUU54ISIiIXhOUbBRTnghIiIheE5RWGNVUjAyMjBSVcZVUjAyMjBSVWMkPSQkPUg9JCQ9JBolJTQlJTgBARUVPTIxHwQEDhAFG1Y1EhIICwILAQEQDy5KGAQEDhAFFD0lDQ0ICwILAQYMBhtWNRISCAsCDQgVFT1jHwQEBwVICwYUPSUNDQgLAg0IEA8uShgEBAcFOyIheE5RsFFOeCEiIiF4TlGwUU54ISIDHjIwUlXGVVIwMjIwUlXGVVIwMv4PJD1IPSQkPUg9JMQlNCUlNCX+jwIFDyYkNQcQCAQHLkANBQINEApMAgQLNygHEAkEByItCQQBAQ0QCgFlCi8/DQUCDREKAQIFD0o1BxAEAycKIS0JBAEBDRALAQIECzcoBxAEAwADAAAAAAMgAqAADAAeADAAAAEyFhURFAYiJjURNDYFPgEeARURFA4BJi8BLgE0NjclLgEPAwYWHwEeAT4BNRE0AQANExMaExMBjxU4Mh4eMjgV3BESEhEBMggbCtwEAwYECdwHExAKAqATDf4ADRMTDQIADRMfEgcXLxz+kRwvGAcStw4nKyYOggoDCbcEAwsYB7gGAggQCQFvCwADAAAAAAMhAqAADAAeADAAAAEyFhURFAYiJjURNDYFFx4BFAYPAQ4BLgE1ETQ+ARYHBhURFB4BNj8BPgEvAyYGAwANExMaExP+i9wQEhIQ3BY3Mx4eMzdACAoREwfcCQQHAgTcCxoCoBMN/gANExMNAgANEx+4DScrJw24EQgYLxwBbxwvGAdICQv+kQkQCAMGtwgYCgMEtwkCAAAAABIA3gABAAAAAAAAABMAAAABAAAAAAABAAgAEwABAAAAAAACAAcAGwABAAAAAAADAAgAIgABAAAAAAAEAAgAKgABAAAAAAAFAAsAMgABAAAAAAAGAAgAPQABAAAAAAAKACsARQABAAAAAAALABMAcAADAAEECQAAACYAgwADAAEECQABABAAqQADAAEECQACAA4AuQADAAEECQADABAAxwADAAEECQAEABAA1wADAAEECQAFABYA5wADAAEECQAGABAA/QADAAEECQAKAFYBDQADAAEECQALACYBY0NyZWF0ZWQgYnkgaWNvbmZvbnRpY29uZm9udFJlZ3VsYXJpY29uZm9udGljb25mb250VmVyc2lvbiAxLjBpY29uZm9udEdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAEMAcgBlAGEAdABlAGQAIABiAHkAIABpAGMAbwBuAGYAbwBuAHQAaQBjAG8AbgBmAG8AbgB0AFIAZQBnAHUAbABhAHIAaQBjAG8AbgBmAG8AbgB0AGkAYwBvAG4AZgBvAG4AdABWAGUAcgBzAGkAbwBuACAAMQAuADAAaQBjAG8AbgBmAG8AbgB0AEcAZQBuAGUAcgBhAHQAZQBkACAAYgB5ACAAcwB2AGcAMgB0AHQAZgAgAGYAcgBvAG0AIABGAG8AbgB0AGUAbABsAG8AIABwAHIAbwBqAGUAYwB0AC4AaAB0AHQAcAA6AC8ALwBmAG8AbgB0AGUAbABsAG8ALgBjAG8AbQAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGAQIBAwEEAQUBBgEHAAZzaG91cWkFZ2VkYW4LY2hhbmdwaWFuamkLc2hhbmd5aXNob3UJeGlheWlzaG91AAA=) format("truetype")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-shouqi:before{content:""}.icon-gedan:before{content:""}.icon-changpianji:before{content:""}.icon-shangyishou:before{content:""}.icon-xiayishou:before{content:""}@keyframes rotate{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}@keyframes fade-in{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:.9}}.vitepress-music{position:fixed;bottom:100px;right:0;z-index:100}.vitepress-music__trigger{width:120px;height:30px;border-radius:15px 0 0 15px;cursor:pointer;background-color:var(--vp-c-bg-alt);box-shadow:0 1px 8px #0000001a,0 3px 4px #00000012,0 3px 3px -2px #0000000f;transform:translate(90px);transition:.2s transform;display:flex;align-items:center;justify-content:space-around;color:#8a8a8a}.vitepress-music__trigger:hover{transform:translate(0)}.vitepress-music__trigger span{transition:.5s;font-size:20px}.vitepress-music__trigger span:hover{color:var(--vp-c-brand)}.vitepress-music__trigger span:nth-of-type(1){animation:rotate 2s linear infinite paused}.vitepress-music__drawer{position:absolute;top:-300px;right:0;width:200px;height:300px;background-color:var(--vp-c-bg-alt);box-shadow:0 1px 8px #0000001a,0 3px 4px #00000012,0 3px 3px -2px #0000000f;font-size:12px;padding:12px 10px;transform-origin:bottom right;transform:scale(0);transition:.2s transform;border-radius:3px 0 0 3px;display:flex;flex-direction:column}.vitepress-music__drawer-header{margin-bottom:5px;display:flex;justify-content:space-between;align-items:center;color:var(--vp-c-text-2)}.vitepress-music__drawer-header div{display:flex;justify-content:space-between;align-items:center}.vitepress-music__drawer-header div .icon-shouqi{font-size:10px;margin-right:5px;cursor:pointer;transition:.5s}.vitepress-music__drawer-header div .icon-shouqi:hover{color:var(--vp-c-brand)}.vitepress-music__drawer-content{overflow:auto}.vitepress-music__drawer-content li{position:relative;display:flex;cursor:pointer;padding:2px 0;color:var(--vp-c-text-1);overflow:hidden}.vitepress-music__drawer-content li>*{flex-wrap:nowrap;flex-shrink:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.vitepress-music__drawer-content li :nth-child(1){flex-grow:1;width:0;padding-right:5px}.vitepress-music__drawer-content li :nth-child(2){width:50px;text-align:right}.vitepress-music__drawer-content li.active{color:var(--vp-c-brand)}.vitepress-music__drawer-content li.error{color:var(--vp-c-red-dimm-1);text-decoration-line:line-through}.vitepress-music__drawer-content li:hover:after{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--vp-c-bg-alt);color:var(--vp-c-brand);text-align:center;font-style:oblique;animation:fade-in .5s forwards}.vitepress-music__drawer-content li:hover.playing:after{content:"click to pause"}.vitepress-music__drawer-content li:hover.error:after{content:"click to re-request";color:var(--vp-c-red-dimm-1)}.vitepress-music__drawer-content li:hover:not(.playing,.error):after{content:"click to play"}.vitepress-music.is-play .vitepress-music__trigger span:nth-of-type(1){color:var(--vp-c-brand);animation-play-state:running}.vitepress-music.is-show-list .vitepress-music__trigger span:nth-of-type(4){color:var(--vp-c-brand)}.vitepress-music.is-show-list .vitepress-music__drawer{transform:scale(1)}.vitepress-music audio{display:none} diff --git a/assets/technology_AntiShaking.md.H9w-sypy.js b/assets/technology_AntiShaking.md.H9w-sypy.js new file mode 100644 index 0000000..1e9d5bc --- /dev/null +++ b/assets/technology_AntiShaking.md.H9w-sypy.js @@ -0,0 +1,19 @@ +import{_ as s,o as i,c as a,a8 as n}from"./chunks/framework.DBQkAOx6.js";const E=JSON.parse('{"title":"🛡️ 防抖方案(防止用户频繁点击而发送多次重复请求)","description":"","frontmatter":{"sticky":500,"tag":["Technology"]},"headers":[],"relativePath":"technology/AntiShaking.md","filePath":"technology/AntiShaking.md","lastUpdated":1720350421000}'),t={name:"technology/AntiShaking.md"},h=n(`

🛡️ 防抖方案(防止用户频繁点击而发送多次重复请求)

TIP

以下代码以React+Ts为例

1.利用原生setTimeout方法实现防抖:

sh
const timer = useRef<NodeJS.Timeout | null>(null)
+const handleClick = useCallback(() => {
+    timer.current && clearTimeout(timer.current)
+    timer.current = setTimeout(()=>{
+        //...逻辑
+    },500)
+})

2.使用lodash-es的debounce方法实现防抖

sh
//react使用lodash-es的debounce方法需要用useCallback包裹,不然会有bug
+const handleClick = useCallback(debounce((v) => {
+    //...逻辑
+}, 500), [])

3.使用loading加载配合(推荐):

原因

上述实现方法其实都存在一个问题,这个问题也是运营和后端反馈给我的bug,我在项目中就是使用了第二种方法, 但是会导致一个问题:
如果请求还在等待中,用户缓慢的点击比如隔了600ms(越过了防抖设置的时间),还是会再次发重复请求,从而导致业务创建了3次公会
解决如下👇

sh
//提交后显示全屏loading蒙版效果,且在逻辑里return掉
+const [loading, setLoading] = useState(false)
+const refLoading = useRef(loading)
+refLoading.current = loading
+
+//提交请求的函数
+if (refLoading.current) return
+setLoading(true)
+const { data, code, message } = await xxxxx()
+setLoading(false)
`,10),l=[h];function e(k,p,d,r,F,g){return i(),a("div",null,l)}const c=s(t,[["render",e]]);export{E as __pageData,c as default}; diff --git a/assets/technology_AntiShaking.md.H9w-sypy.lean.js b/assets/technology_AntiShaking.md.H9w-sypy.lean.js new file mode 100644 index 0000000..5281cc1 --- /dev/null +++ b/assets/technology_AntiShaking.md.H9w-sypy.lean.js @@ -0,0 +1 @@ +import{_ as s,o as i,c as a,a8 as n}from"./chunks/framework.DBQkAOx6.js";const E=JSON.parse('{"title":"🛡️ 防抖方案(防止用户频繁点击而发送多次重复请求)","description":"","frontmatter":{"sticky":500,"tag":["Technology"]},"headers":[],"relativePath":"technology/AntiShaking.md","filePath":"technology/AntiShaking.md","lastUpdated":1720350421000}'),t={name:"technology/AntiShaking.md"},h=n("",10),l=[h];function e(k,p,d,r,F,g){return i(),a("div",null,l)}const c=s(t,[["render",e]]);export{E as __pageData,c as default}; diff --git a/assets/technology_BlogTread.md.Btxu9RFB.js b/assets/technology_BlogTread.md.Btxu9RFB.js new file mode 100644 index 0000000..90c7dcb --- /dev/null +++ b/assets/technology_BlogTread.md.Btxu9RFB.js @@ -0,0 +1,23 @@ +import{_ as s,o as a,c as i,a8 as e}from"./chunks/framework.DBQkAOx6.js";const F=JSON.parse('{"title":"🤧 博客搭建踩坑记录","description":"","frontmatter":{"top":2,"tag":["Technology"]},"headers":[],"relativePath":"technology/BlogTread.md","filePath":"technology/BlogTread.md","lastUpdated":1720350421000}'),t={name:"technology/BlogTread.md"},n=e(`

🤧 博客搭建踩坑记录

一、部署到gitee pages 样式不生效

原因:打包后的路径不匹配,对应不上相关的js、css等文件
解决:

shell
base必须配置,否则打包会丢失css样式!!
+
+根目录配置 /,那么对应 https://yiov.github.io/
+
+仓库 vitepress 配置 /vitepress/ ,那么对应 https://yiov.github.io/vitepress
+
+在config文件配置base:不需要多添加域名、协议那些,如下示例:
+export default defineConfig({
+    base: '/my-blog/',
+})

二、样式生效了,但是头像、网页fav图标不展示

原因:同样是路径匹配不上解决:

shell
head: [
+    // 配置网站的图标(显示在浏览器的 tab 上)
+    ['link', { rel: 'icon', href: '/my-blog/favicon.ico' }]
+  ],
+
+// 设置logo,这里不需要添加/my-blog/基础路径
+    logo: '/logo.jpg',
+
+    打包后:
+    <link rel="icon" href="/my-blog/favicon.ico">

三、路由跳转问题

原因:gitee的配置问题,服务集成->Pages 单页面应用支持策略gitee文档描述
解决:

shell
在public下添加:
+.spa文件(不需要写什么内容)
+
+官方描述:
+通过在 Gitee Pages 部署根目录增加名为 .spa 文件,即可开启支持单页应用的支持。

四、网站浏览量、统计量问题

这里用的是不蒜子实现的,非常的简单易上手,但是在开发运行会展示如下效果:

👁️‍🗨️总访问量:6441970
👤访客数:3810459

解决:

shell
可以直接无视,部署上去会自动从0开始计算

五、构建报navigator、windows不存在

原因:构建是node环境的,所以不存在,打包失败

可以参考vitepress文档访问浏览器 API 的库

👽额外记录

搭建自动gitee推送

TIP

在package.json的scripts里添加: "deploy": "pnpm run build && git add . && git commit -m \\"gitee 自动推送\\" && git push -u origin master && git subtree push --prefix docs/.vitepress/dist origin gh-pages"

解释
git subtree push --prefix docs/.vitepress/dist origin gh-pages: 将指定目录(docs/.vitepress/dist)的内容推送到远程仓库的 gh-pages 分支。这通常用于将构建后的静态网站文件推送到特定分支,以便在类似 GitHub Pages 或 Gitee Pages 等平台上托管静态网站。

注意:在.gitignore上将dist移除,;git subtree push要在push master 之后执行

尝试过使用rimraf库: npm install rimraf --save-dev
代码:rimraf docs/.vitepress/dist
来将dist文件删除,以免在master上提交上去,但是经过一系列尝试,发现没办法同时推送两个分支,会有报错,未找到合适方法,就干脆两个分支也一起提交了上去

历程总结

为了搭建此博客,也经历了不少,基本路程是这样的:
技术选型->主题选择->修改配置->编辑文章->搭建图床->打包部署

`,25),l=[n];function p(h,o,r,k,d,g){return a(),i("div",null,l)}const u=s(t,[["render",p]]);export{F as __pageData,u as default}; diff --git a/assets/technology_BlogTread.md.Btxu9RFB.lean.js b/assets/technology_BlogTread.md.Btxu9RFB.lean.js new file mode 100644 index 0000000..08870a5 --- /dev/null +++ b/assets/technology_BlogTread.md.Btxu9RFB.lean.js @@ -0,0 +1 @@ +import{_ as s,o as a,c as i,a8 as e}from"./chunks/framework.DBQkAOx6.js";const F=JSON.parse('{"title":"🤧 博客搭建踩坑记录","description":"","frontmatter":{"top":2,"tag":["Technology"]},"headers":[],"relativePath":"technology/BlogTread.md","filePath":"technology/BlogTread.md","lastUpdated":1720350421000}'),t={name:"technology/BlogTread.md"},n=e("",25),l=[n];function p(h,o,r,k,d,g){return a(),i("div",null,l)}const u=s(t,[["render",p]]);export{F as __pageData,u as default}; diff --git a/assets/technology_CodeNorm.md.6dcOsCdP.js b/assets/technology_CodeNorm.md.6dcOsCdP.js new file mode 100644 index 0000000..34d87c5 --- /dev/null +++ b/assets/technology_CodeNorm.md.6dcOsCdP.js @@ -0,0 +1,78 @@ +import{_ as s,o as i,c as a,a8 as n}from"./chunks/framework.DBQkAOx6.js";const c=JSON.parse('{"title":"代码规范记录(持续更新) 🙂","description":"","frontmatter":{"sticky":999,"tag":["Technology"]},"headers":[],"relativePath":"technology/CodeNorm.md","filePath":"technology/CodeNorm.md","lastUpdated":1720350421000}'),l={name:"technology/CodeNorm.md"},h=n(`

代码规范记录(持续更新) 🙂

TIP

记录一些规范,提高代码质量,减少bug

  • 空函数清理、注释代码清理、console.log清理。
  • 尽量都用 === 全等。
  • 后面没有代码了就不要多加一个return。
  • 公共js方法,公共组件,要多加注释。
  • 不是非常有必要,不要使用any,在很多情况下,我们可以使用 unknown 来替代 any,既灵活,又可以继续保证类型安全。
  • provide/inject 是在解决多级透传问题的时候才能使用,而且使用要特别谨慎。因为它会将逻辑提升到组件树的更高层次来处理逻辑,会使高层组件变得更复杂。并且对于某些组件来说,不利于复用。对于全局状态的使用,都要谨慎。
  • 可选链在必要的情况下才能使用,禁止滥用;使用可选链简化代码。
  • 内联样式不超过两个;模版不建议写复杂判断,需要放在逻辑中维护。
  • 变量命名需要有具体语义,不能太泛化;单一组件功能变量名允许泛化。
  • 变量命名采用小驼峰。
  • ts: interface命名用I开头,type命名用T开头,enum用E开头。
  • import 顺序需要按照:全局vue,UI库,第三方库,公共方法,业务方法;按从广到窄的维度引入(封装的组件放最后):vue、ui、第三方、全局 、私有
  • vue单文件模块顺序:template script style。
  • 新页面路由命名需要规范:一级菜单/二级菜单/页面名称,例子:/user/plateform/user-create。
  • swich里赋值相同的话,合并case。
  • 组件应用时props参数:按照 ref、class、传入、传出 顺序书写。
vue
 <my-components
+    ref="myComponents"
+    class="home-my-components"
+    :data="data"
+    @changeHandle="changeHandle"
+  />
  • 方法命名。

can: 判断是否可执行某个动作 函数返回一个布尔值 true可执行 false不可执行
has: 判断是否含有某个值 函数返回一个布尔值 true含有此值 false不含有此值
is: 判断是否为某个值,函数返回一个布尔值 true为某个值 false不为某个值
get: 获取某个值 函数返回一个非布尔值
set: 设置某个值 无返回值或者返回是否加载完成的结果

  • 路由参数:query对象中属性必须是字符串;不建议传递复杂Json数据,传入标识进行查询。
bash
// bad
+router.push({
+  path: '/example/path',
+  query: {
+    isView: true,
+    info: JSON.stringify(data),
+  },
+});
+// good
+router.push({
+  path: '/example/path',
+  query: {
+    isView: '1',
+    id: infoId,
+  },
+});
  • 模板不能有复杂的运算,超过一层运算建议不在模版中处理。
  • Vue官方提供了4-5种class绑定方式,建议统一使用一种,以数组的方式动态绑定类名。
vue
<div :class="['title-text', active ? 'active' : '', errorClass]">
+  <!-- ... -->
+</div>
  • 不建议开发者大批量的对一个对象执行多次delete操作,原因是连续的delete操作代码显得冗余。
ts
使用解构赋值替代对象多个属性的 delete 操作;
+使用 loadsh-es 提供的方法 unset/omit 等替代 delete 操作;
+
+// bad
+const params = { /** ... */ };
+delete params['attr'];
+delete params['sku_id'];
+delete params['id'];
+
+// good
+const params = { /** ... */ };
+const { attr, sku_id, id, ...unset } = params;
  • 函数注释。
ts
/**
+ * @Description 加入购物车
+ * @Author luochen_ya
+ * @Date 2024-03-13
+ * @param {Number} goodId 商品id
+ * @param {Array<Number>} specs sku规格
+ * @param {Number} amount 数量
+ * @param {String} remarks 备注
+ * @returns <Promise> 购物车信息
+ */
+apiProductAddCard = (goodId, specs, amount, remarks) => {
+  return axios.post('***', { goodId, specs, amount, remarks })
+}
  • 利用提前返回简化逻辑。
ts
// ❌ 错误做法
+function doSomething() {
+  if (user) {
+    if (user.role === "ADMIN") {
+      return 'Administrator';
+    } else {
+      return 'User';
+    }
+  } else {
+    return 'Anonymous';
+  }
+}
+// ✅ 正确做法
+function doSomething() {
+  if (!user) return 'Anonymous'
+  if (user.role === "ADMIN") return 'Administrator'
+
+  return 'User'
+}
  • 双向数据绑定,双向数据绑定 和 change 函数共同使用可能会导致数据混乱,产生预期外的bug,change事件内会修改双向绑定值的情况下,应当改为单向数据流。
vue
<!-- bad -->
+<a-input
+  v-model:value="value"
+  @change="value = formatHandle(value)"
+/>
+
+<!-- good -->
+<a-input
+  :value="value"
+  @change="formatHandle"
+/>
+
+function formatHandle(e: InputEvent) {
+    // value format
+}
`,19),k=[h];function p(t,e,E,d,r,g){return i(),a("div",null,k)}const o=s(l,[["render",p]]);export{c as __pageData,o as default}; diff --git a/assets/technology_CodeNorm.md.6dcOsCdP.lean.js b/assets/technology_CodeNorm.md.6dcOsCdP.lean.js new file mode 100644 index 0000000..3e6cbe2 --- /dev/null +++ b/assets/technology_CodeNorm.md.6dcOsCdP.lean.js @@ -0,0 +1 @@ +import{_ as s,o as i,c as a,a8 as n}from"./chunks/framework.DBQkAOx6.js";const c=JSON.parse('{"title":"代码规范记录(持续更新) 🙂","description":"","frontmatter":{"sticky":999,"tag":["Technology"]},"headers":[],"relativePath":"technology/CodeNorm.md","filePath":"technology/CodeNorm.md","lastUpdated":1720350421000}'),l={name:"technology/CodeNorm.md"},h=n("",19),k=[h];function p(t,e,E,d,r,g){return i(),a("div",null,k)}const o=s(l,[["render",p]]);export{c as __pageData,o as default}; diff --git a/assets/technology_SpaApp.md.ILEgK6L2.js b/assets/technology_SpaApp.md.ILEgK6L2.js new file mode 100644 index 0000000..99b08c0 --- /dev/null +++ b/assets/technology_SpaApp.md.ILEgK6L2.js @@ -0,0 +1 @@ +import{_ as o,o as e,c as a,a8 as t}from"./chunks/framework.DBQkAOx6.js";const g=JSON.parse('{"title":"SPA(单页应用)的一些探讨 🙂","description":"","frontmatter":{"sticky":500,"tag":["Technology"]},"headers":[],"relativePath":"technology/SpaApp.md","filePath":"technology/SpaApp.md","lastUpdated":1720350421000}'),r={name:"technology/SpaApp.md"},s=t('

SPA(单页应用)的一些探讨 🙂

什么是SPA

单页Web应用(SPA - Single Page web Application) 也就是说只有一个HTML文件的Web应用, 我们就称之为单页Web应用, 就称之为SPA应用

SPA的特点:

1.SPA应用只有一个HTML文件, 所有的内容其实都在这个页面中呈现的
2.SPA应用只会加载一次HTML文件, 不会因为用户的操作而进行页面的重新加载, 当用户与应用程序交互时, 是通过动态更新页面内容的方式来呈现不同的内容

SPA优点:

1.有良好的交互体验,不会重新加载整个网页, 只是局部更新
2.前后端分离开发,前端负责页面呈现和交互, 后端负责数据
3.减轻服务器压力,只用处理数据不用处理界面

SPA缺点:

1.(首屏加载慢)SPA(单页应用)在初次加载时,由于需要加载所有必要的 JavaScript 和 CSS 文件,以及应用的主 HTML 文件,因此可能会产生白屏时间较长的问题,对用户体验而言是非常糟糕的。 首屏加载慢(因为要等到HTML下载完才会去下载JS/CSS, 要等到JS下载完初始化完才会去获取数据) 其中白屏时间主要影响因素之一:SPA 应用在加载完成后,需要再进行一次 DOM 渲染才能显示页面内容。在渲染过程中,可能需要加载大量的 JavaScript 文件、CSS 文件或网络请求,这些操作都需要耗费时间,从而导致白屏时间变长。

2.非常(依赖js环境),如果用户浏览器设置了禁用js,应用则无法打开

3.(安全问题)

4.SEO不好(页面内容是通过ajax异步获取的,爬虫不会等待异步请求完成后再抓取页面内容)

解决单页面应用的SEO困难问题:

1.预渲染:无需服务器实时动态编译,采用预渲染,在构建时针对特定路由简单的生成静态HTML文件,本质就是客户端渲染, 只不过和SPA不同的是预渲染有多个界面。

2.服务端渲染ssr:后端既提供数据又提供视图和交互逻辑,也就是服务器接到客户端请求之后,找到对应的数据并根据找到的数据生成对应的视图,然后将包含数据的视图一次性发给客户端,客户端直接将渲染即可。

框架: nextjs、nuxtjs
预渲染webpack插件: PrerenderSPAPlugin

',11),c=[s];function n(d,l,p,i,S,b){return e(),a("div",null,c)}const P=o(r,[["render",n]]);export{g as __pageData,P as default}; diff --git a/assets/technology_SpaApp.md.ILEgK6L2.lean.js b/assets/technology_SpaApp.md.ILEgK6L2.lean.js new file mode 100644 index 0000000..9df3666 --- /dev/null +++ b/assets/technology_SpaApp.md.ILEgK6L2.lean.js @@ -0,0 +1 @@ +import{_ as o,o as e,c as a,a8 as t}from"./chunks/framework.DBQkAOx6.js";const g=JSON.parse('{"title":"SPA(单页应用)的一些探讨 🙂","description":"","frontmatter":{"sticky":500,"tag":["Technology"]},"headers":[],"relativePath":"technology/SpaApp.md","filePath":"technology/SpaApp.md","lastUpdated":1720350421000}'),r={name:"technology/SpaApp.md"},s=t("",11),c=[s];function n(d,l,p,i,S,b){return e(),a("div",null,c)}const P=o(r,[["render",n]]);export{g as __pageData,P as default}; diff --git a/assets/technology_VueResponsive.md.DLjixDVc.js b/assets/technology_VueResponsive.md.DLjixDVc.js new file mode 100644 index 0000000..28c9583 --- /dev/null +++ b/assets/technology_VueResponsive.md.DLjixDVc.js @@ -0,0 +1,84 @@ +import{_ as s,o as i,c as a,a8 as n}from"./chunks/framework.DBQkAOx6.js";const y=JSON.parse('{"title":"☠ Vue2/3 的对比与响应式原理剖析","description":"","frontmatter":{"sticky":500,"tag":["Technology"]},"headers":[],"relativePath":"technology/VueResponsive.md","filePath":"technology/VueResponsive.md","lastUpdated":1720350421000}'),h={name:"technology/VueResponsive.md"},e=n(`

☠ Vue2/3 的对比与响应式原理剖析

一、Vue2

响应式原理:

1.对象

Vue.js 2.x 中的响应式是通过使用 ES5 的 Object.defineProperty() 方法实现的。这个方法允许我们定义一个对象的属性,其中包括 getter 和 setter。当对象的属性被访问或者修改时,这些 getter 和 setter 会被调用,这就是 Vue 的响应式实现。(一次只能监听一个属性,如果需要监听多个属性,你需要对每个属性都调用一次 Object.defineProperty(),遇到深层对象,需要进行递归遍历)

2.数组

Vue 2.x 中监听数组的方式是通过重写数组的变异方法(mutator methods),比如 push()、pop()、shift()、unshift()、splice()、sort() 和 reverse() 等。Vue 在这些方法被调用时,会触发视图的更新。

3.Object.defineProperty 的简单认识

js
// 定义一个新的属性 'name'
+Object.defineProperty(obj, "name", {
+  // 获取属性值时的操作
+  get: function () {
+    console.log(\`获取属性 \${key}: \${internalValue}\`);
+    return internalValue;
+  },
+  // 设置属性值时的操作
+  set: function (newValue) {
+    console.log(\`设置属性 \${key}: \${newValue}\`);
+    internalValue = newValue;
+    // 这里可以添加额外的响应逻辑,比如更新UI等
+  },
+  // 设置属性的值为 'John'
+  value: "John",
+  // 设置属性为可写的
+  writable: true,
+  // 设置属性为可枚举的,即可被遍历
+  enumerable: true,
+  // 设置属性为可配置的,即可修改或删除
+  configurable: true,
+});

二、Vue3

响应式原理:

1.对象

Vue3 主要基于 ES6 的 Proxy 对象和 Reflect 对象,使用 Proxy 对象来监听对象的属性的变化。当对对象的属性进行修改、添加或删除时,Proxy 会捕获到这些变化并触发相应的更新。

2.数组

同样地,Vue 3 使用 Proxy 对象来监听数组的变化,包括对数组的元素的修改、添加和删除。当对数组进行变化操作时,Proxy 会捕获到这些变化并触发相应的更新。

3.基本数据类型

类似于 Vue2,将基本类型包装在一个内部对象中,然后对这个对象进行代理

3.Proxy 和 Reflect 的简单认识

Proxy

const p = new Proxy(target, handler)
参数:
target:要使用 Proxy 包装的目标对象(可以是任何类型的对象,包括原生数组,函数,甚至另一个代理)
handler:一个通常以函数作为属性的对象,各属性中的函数分别定义了在执行各种操作时代理 p 的行为。

注意:
1.Proxy 可以代理对象、数组,不能代理基本数据类型,会报错。Proxy 常常搭配 Reflect 使用

2.访问 proxyObj 的深层属性时,并不会触发 set。所以 proxy 如果想实现深度监听,也需要实现一个递归函数, 使用 proxy 逐个对对象中的每个属性进行拦截

3.直接 Proxy 代理是懒代理:
    set:只对第一层监听,只能拦截直接属性的赋值
    get:无论几层都可以监听到,不存在的属性仍然可以被 get 拦截到

4.代理数组:
push 时会触发两次 get 和两次 set,这和 push 的实现原理有关:push 操作除了增加数组的数据项之外,也会引发数组本身其他相关属性的改变;
proxyArr[1]这种修改只会执行一次。

js
// 创建一个简单的对象
+const target = {
+  name: "张三",
+  age: 30,
+  family: {
+    father: "李四",
+  },
+};
+
+const handler = {
+  // 在获取属性时拦截
+  get: function (target, key) {
+    console.log(\`获取属性:\${key}\`);
+    return target[key];
+  },
+  // 在设置属性时拦截
+  set: function (target, key, value) {
+    console.log(\`设置属性:\${key} 值:\${value}\`);
+    target[key] = value;
+  },
+};
+
+// 创建代理对象
+const proxyObj = new Proxy(target, handler);
+
+//执行了get
+console.log(proxyObj.name); //输出:获取属性:name (张三)
+
+// 执行了set
+proxyObj.age = 35; //输出:设置属性:age 值:35
+
+//执行了get
+proxyObj.family.father = "王五"; //输出:获取属性:family
+
+//执行了set
+proxyObj.family = { a: "test" }; //输出:设置属性:family 值:{a:'test'}
+
+//执行了get
+console.log(proxyObj.family.father); //输出:获取属性:family (李四)
+
+//执行了get
+console.log(proxyObj.family.mother); //输出:获取属性:family (undefined)
js
/* Reflect对象(内置)提供了一组与Proxy对象的拦截操作对应的方法 */
+
+let target = {
+  name: "John",
+  age: 30,
+};
+
+let handler = {
+  get: function (target, prop, receiver) {
+    console.log(\`获取属性:\${prop}\`);
+    return Reflect.get(target, prop, receiver); // 使用 Reflect.get 方法获取属性值
+  },
+  set: function (target, prop, value, receiver) {
+    console.log(\`设置属性:\${prop} to \${value}\`);
+    return Reflect.set(target, prop, value, receiver); // 使用 Reflect.set 方法设置属性值
+  },
+};
+
+let proxy = new Proxy(target, handler);
+
+console.log(proxy.name); // 输出: 获取属性:name,然后输出 John
+proxy.age = 35; // 输出: 设置属性:age to 35

三、Vue2 和 Vue3 比较

选项式 api 和组合式 api

选项 API(Options API):这是 Vue 2 中最常见的一种方式,通过在组件选项中声明 data、methods、computed、watch 等来组织代码。它将相关功能按照选项的形式组织在一起,使得组件的结构相对清晰,适合较小规模的应用或者新手入门。
组合式 API(Composition API):这是 Vue 3 中引入的一种全新的 API,它允许开发者根据逻辑功能来组织代码,而不是按照固定的选项。它提供了 setup 函数,使得代码更加灵活和可复用,尤其适用于大型应用或者需要更高度组织的情况。
比较: Vue 2 的选项 API 一旦项目大起来功能越来越多,维护就变得困难。Vue 3 的组合式 API 很好的解决了这一问题,因为它可以将某一个功能模块放在一起。

生命周期

setup:相当于 vue2 前的 created 周期->创建时(beforeCreate 和 created 的结合)
onBeforeMount:DOM 即将挂载
onMounted:DOM 挂载完毕
onBeforeUpdate:DOM 即将更新
onUpdated:DOM 更新完毕
onBeforeUnmount:即将销毁
onUnmounted:销毁完毕

添加了路由缓存后新增两个(当卸载和重新进去组件后只会执行这两个):
onActivated 和 onDeactivated

v-for 和 v-if 优先级

vue2 v-for 优先级更大:v-if < v-for
vue3 v-if 优先级更大:v-if > v-for

diff 算法的优化

当数据发生改变的时候,vue 会生成新的 dom 树,然后和之前的 dom 树进行比较,也就是新旧虚拟 dom 的一个对比,但是在 vue2 中这是一个全量的比较,它是每一个节点都会进行比较,没有变化的静态内容也会进行比较,会消耗一些时间。 怎么样快速区别出更新的内容,这就是 vue3 所优化的一个地方。它是根据节点会不会发生变化来添加静态标记、动态标记,而后比较时会忽略所有的静态节点,只对有标记的动态节点进行对比,而且在多层的嵌套下依然有效,提高了效率。

静态提升

以前 vue2 不管元素有没有更新,每次都会创建然后渲染。 vue3 使用静态提升后,静态元素页面初始的时候只渲染一次,而在更新渲染的时候,不需要再创建,提升性能

事件监听缓存

以前事件是一个动态绑定,追踪变化,现在是缓存起来进行复用,以减少事件绑定的开销

更好的Tree-shaking(如果没用到,就不会被打包进来)

在 Vue 2 中,Vue实例在项目中是单例的,很多api功能都被放在了this上,捆绑程序无法检测到该对象的哪些属性在代码中被使用到,而且由于 Vue 的源代码是使用 CommonJS 格式编写的,所以它不支持 tree shaking。这意味着即使你只使用了 Vue 的一部分功能,你的最终打包文件仍然会包含整个 Vue 库的代码。

在 Vue 3 中,Vue 的源代码被重写为使用 ES Modules 格式,这使得 Vue 3 支持 tree shaking。vue3将全局 API 进行分块,这意味着如果你只使用了 Vue 的一部分功能,那么你的最终打包文件只会包含你实际使用的那部分代码,未使用的代码会被移除。这可以帮助减小最终打包文件的大小,提高应用的加载性能。

tree shaking的前提是所有的东西都必须用ES6 module的import来写,要充分利用 tree shaking,你还需要使用支持 tree shaking 的打包工具,如 Webpack 或 Rollup,并且需要正确配置它们。

通过Tree shaking,Vue3给我们带来的好处是:
减少程序体积(更小)
减少程序执行时间(更快)
便于将来对程序架构进行优化(更友好)

响应式实现方式的升级

Vue2 用 object.defineProties 有以下几个缺点:
1.一次只能对一个属性进行监听,需要遍历来对所有属性监听;
2.在遇到一个对象的属性还是一个对象的情况下,需要递归监听,会消耗一些时间、性能;
3.新增的对象属性监听不到,需要进行手动监听(vue2 通过$set 解决);
4.对于数组通过 push、unshift 方法增加的元素,无法监听(vue2 通过改写数组方法解决)。

vue3 用 proxy 后直接监听整个对象,无论嵌套多少层都可以监听到(proxy 的 get 方法),同样对数组适用,基本类型是类似Vue2包装在一个内部对象中,然后对这个对象进行代理(class的get和set)。

vue2 和 vue3 组件通信对比

`,46),l=[e];function t(p,k,r,E,d,o){return i(),a("div",null,l)}const c=s(h,[["render",t]]);export{y as __pageData,c as default}; diff --git a/assets/technology_VueResponsive.md.DLjixDVc.lean.js b/assets/technology_VueResponsive.md.DLjixDVc.lean.js new file mode 100644 index 0000000..fed6cd2 --- /dev/null +++ b/assets/technology_VueResponsive.md.DLjixDVc.lean.js @@ -0,0 +1 @@ +import{_ as s,o as i,c as a,a8 as n}from"./chunks/framework.DBQkAOx6.js";const y=JSON.parse('{"title":"☠ Vue2/3 的对比与响应式原理剖析","description":"","frontmatter":{"sticky":500,"tag":["Technology"]},"headers":[],"relativePath":"technology/VueResponsive.md","filePath":"technology/VueResponsive.md","lastUpdated":1720350421000}'),h={name:"technology/VueResponsive.md"},e=n("",46),l=[e];function t(p,k,r,E,d,o){return i(),a("div",null,l)}const c=s(h,[["render",t]]);export{y as __pageData,c as default}; diff --git a/game/LightMeet.html b/game/LightMeet.html index 599ec5e..ee65142 100644 --- a/game/LightMeet.html +++ b/game/LightMeet.html @@ -12,7 +12,7 @@ - + @@ -43,8 +43,8 @@ -
相关文章
  1. 1

光遇 👻 光是遇见你,就很幸运

前言

想必有一部分人是因为这个游戏认识的我,我也玩这个游戏玩了好久。现在想想,非常的怀念,与你们相识,是我的荣幸~

开始

从一个小白,懵懵懂懂,第一天玩就遇到了一个大佬带着我,带着我拿光翼和烛火,那时候也不知道这些有什么用,就觉得他很厉害。后面我也利用空余时间在b站看教程视频,也了解了不少,入门基础知识也差不多了

献祭

第一次献祭也是被那个大佬带着,他人很好,而且非常有耐心。那时候辛辛苦苦攒的翅膀就这样一个个掉落,我也不知道为啥,我以为这个游戏就这样通关了😂

成长

后面那个大佬走了,不知道是脱坑了还是带其他萌新去了,不管怎么样还是非常感谢他的😊。因为看了不少视频教程,我也慢慢学会了各种跑图技巧,包括遁地、穿墙等等😎,效率一下子就上来了,装扮也慢慢变得好看,渐渐有了大佬的气息😼

转变

随着玩光遇的时间越来越长,途中也认识到了不少的人,大家匆匆忙忙的来了,又匆匆忙忙的走了,终于也轮到了我。后面我不再专注于跑图,做起了光遇测身高🤫,大家也是通过这个认识的我,尝试了一段时间后就奔向于生活了。(ps:大家不要学哈🫡,要认真学习好好听课)

最后

送给还在玩光子们

-接下来的旅途还很长,你自己一个人要加油
-愿你一个人时,也能有飞跃黑暗面对冥龙的勇气


一些光遇的语录

  • 因光而遇,因遇而散
  • 温暖的灵魂终将相遇
  • 我想陪你一起看千鸟城的落霞星光
  • 夜晚是如此的美丽,倘若晨岛有黑夜
  • 总会相逢,就像山川河流,万河归海
  • 晨光起于白塔顶尖,终将照亮阴霾之地
  • 因为遇见了温柔的人,所以自己也开始变得温柔
  • 我们分享彼此生活中的精彩,或许能成为对方旅途中的灿烂
  • 告别黄昏,从此挣脱藏身的黑暗,向光里坠落
  • 彻骨的严寒与深邃的天蓝将我藏匿在书库里无人的星海
  • 失去了所有的星光,不代表失去了一切
  • 我很想你,但云野的风或许没传达给你,但是对你的思绪永不停止
  • 别怕,光在,我也在

上次更新于:

👁️‍🗨️总访问量 次 | 👤访客数 次 | 🏃已运行 121 天
- +相关文章
  1. 1

光遇 👻 光是遇见你,就很幸运

前言

想必有一部分人是因为这个游戏认识的我,我也玩这个游戏玩了好久。现在想想,非常的怀念,与你们相识,是我的荣幸~

开始

从一个小白,懵懵懂懂,第一天玩就遇到了一个大佬带着我,带着我拿光翼和烛火,那时候也不知道这些有什么用,就觉得他很厉害。后面我也利用空余时间在b站看教程视频,也了解了不少,入门基础知识也差不多了

献祭

第一次献祭也是被那个大佬带着,他人很好,而且非常有耐心。那时候辛辛苦苦攒的翅膀就这样一个个掉落,我也不知道为啥,我以为这个游戏就这样通关了😂

成长

后面那个大佬走了,不知道是脱坑了还是带其他萌新去了,不管怎么样还是非常感谢他的😊。因为看了不少视频教程,我也慢慢学会了各种跑图技巧,包括遁地、穿墙等等😎,效率一下子就上来了,装扮也慢慢变得好看,渐渐有了大佬的气息😼

转变

随着玩光遇的时间越来越长,途中也认识到了不少的人,大家匆匆忙忙的来了,又匆匆忙忙的走了,终于也轮到了我。后面我不再专注于跑图,做起了光遇测身高🤫,大家也是通过这个认识的我,尝试了一段时间后就奔向于生活了。(ps:大家不要学哈🫡,要认真学习好好听课)

最后

送给还在玩光子们

-接下来的旅途还很长,你自己一个人要加油
-愿你一个人时,也能有飞跃黑暗面对冥龙的勇气


一些光遇的语录

  • 因光而遇,因遇而散
  • 温暖的灵魂终将相遇
  • 我想陪你一起看千鸟城的落霞星光
  • 夜晚是如此的美丽,倘若晨岛有黑夜
  • 总会相逢,就像山川河流,万河归海
  • 晨光起于白塔顶尖,终将照亮阴霾之地
  • 因为遇见了温柔的人,所以自己也开始变得温柔
  • 我们分享彼此生活中的精彩,或许能成为对方旅途中的灿烂
  • 告别黄昏,从此挣脱藏身的黑暗,向光里坠落
  • 彻骨的严寒与深邃的天蓝将我藏匿在书库里无人的星海
  • 失去了所有的星光,不代表失去了一切
  • 我很想你,但云野的风或许没传达给你,但是对你的思绪永不停止
  • 别怕,光在,我也在

上次更新于:

👁️‍🗨️总访问量 次 | 👤访客数 次 | 🏃已运行 121 天
+ \ No newline at end of file diff --git a/hashmap.json b/hashmap.json index 418f0f9..1f3e9a9 100644 --- a/hashmap.json +++ b/hashmap.json @@ -1 +1 @@ -{"game_lightmeet.md":"CSGKVM8S","me_aboutme.md":"CCn3zD2d","index.md":"BbDEuuOW","technology_antishaking.md":"CoQpCbYH","resources_icon.md":"DbqaQilb","technology_blogtread.md":"Bnl5WCv-","technology_spaapp.md":"DYyWeyf6","technology_vueresponsive.md":"BIf8XbzH"} +{"index.md":"BbDEuuOW","technology_spaapp.md":"ILEgK6L2","technology_blogtread.md":"Btxu9RFB","me_aboutme.md":"Bx0Ri-kW","resources_icon.md":"DbqaQilb","game_lightmeet.md":"DRVWC5cR","technology_codenorm.md":"6dcOsCdP","technology_vueresponsive.md":"DLjixDVc","technology_antishaking.md":"H9w-sypy"} diff --git a/index.html b/index.html index 2057d54..bb5091e 100644 --- a/index.html +++ b/index.html @@ -21,29 +21,32 @@
Skip to content
avatar

欢迎来到a无名的博客记录日常和知识分享

avatar

a无名

7博客文章
+4本月更新
+4本周更新
a无名1小时前Technology
a无名1小时前Technology
avatar

a无名

8博客文章
+7本月更新
+7本周更新
@@ -64,7 +67,7 @@ fill="#D3D3D3" p-id="4294" /> 标签
  • Game
  • Me
  • Resources
  • Technology

基于vitepress+@sugarat/theme主题

👁️‍🗨️总访问量 次 | 👤访客数 次 | 🏃已运行 121 天
- + \ No newline at end of file diff --git a/me/AboutMe.html b/me/AboutMe.html index bfa987f..016443b 100644 --- a/me/AboutMe.html +++ b/me/AboutMe.html @@ -12,7 +12,7 @@ - + @@ -20,8 +20,8 @@ -
Skip to content

🥰 关于我

介绍:

I'm ming ,是一名奋斗在职场的小码农,主前端辅后端,建立个人博客的初衷是希望拥有一个能够有一个随时展示自己,同时记录各种技术文章,总结工作学习内容和分享个人经历的个人小笔记;网站主内容覆盖关于前端,后端,服务器相关技术文章,同时也会更新发布一些动漫,游戏等偏个人兴趣爱好的文章。

主要涉及技术

JavaScript  HTML5  CSS3  TypeScript  Vue3  Ant Design  Node.js  Vite  Webpack  NPM  Axios  ESLint  jQuery  BootStrap  ECharts  Tailwind CSS  Less 

...

很惭愧😞

只做了一点微小的工作🖥︎

谢谢大家的光临🥹


上次更新于:

👁️‍🗨️总访问量 次 | 👤访客数 次 | 🏃已运行 121 天
- +
Skip to content

🥰 关于我

介绍:

I'm ming ,是一名奋斗在职场的小码农,主前端辅后端,建立个人博客的初衷是希望拥有一个能够有一个随时展示自己,同时记录各种技术文章,总结工作学习内容和分享个人经历的个人小笔记;网站主内容覆盖关于前端,后端,服务器相关技术文章,同时也会更新发布一些动漫,游戏等偏个人兴趣爱好的文章。

主要涉及技术

JavaScript  HTML5  CSS3  TypeScript  Vue3  Ant Design  Node.js  Vite  Webpack  NPM  Axios  ESLint  jQuery  BootStrap  ECharts  Tailwind CSS  Less 

...

很惭愧😞

只做了一点微小的工作🖥︎

谢谢大家的光临🥹


上次更新于:

👁️‍🗨️总访问量 次 | 👤访客数 次 | 🏃已运行 121 天
+ \ No newline at end of file diff --git a/pagefind/fragment/zh-cn_2171f85.pf_fragment b/pagefind/fragment/zh-cn_2171f85.pf_fragment new file mode 100644 index 0000000..d788090 Binary files /dev/null and b/pagefind/fragment/zh-cn_2171f85.pf_fragment differ diff --git a/pagefind/fragment/zh-cn_240657d.pf_fragment b/pagefind/fragment/zh-cn_240657d.pf_fragment new file mode 100644 index 0000000..9d50e26 Binary files /dev/null and b/pagefind/fragment/zh-cn_240657d.pf_fragment differ diff --git a/pagefind/fragment/zh-cn_269c4ae.pf_fragment b/pagefind/fragment/zh-cn_269c4ae.pf_fragment new file mode 100644 index 0000000..334d336 Binary files /dev/null and b/pagefind/fragment/zh-cn_269c4ae.pf_fragment differ diff --git a/pagefind/fragment/zh-cn_37739e7.pf_fragment b/pagefind/fragment/zh-cn_37739e7.pf_fragment new file mode 100644 index 0000000..041e238 Binary files /dev/null and b/pagefind/fragment/zh-cn_37739e7.pf_fragment differ diff --git a/pagefind/fragment/zh-cn_6561f16.pf_fragment b/pagefind/fragment/zh-cn_6561f16.pf_fragment new file mode 100644 index 0000000..344bae4 Binary files /dev/null and b/pagefind/fragment/zh-cn_6561f16.pf_fragment differ diff --git a/pagefind/fragment/zh-cn_748ab48.pf_fragment b/pagefind/fragment/zh-cn_748ab48.pf_fragment new file mode 100644 index 0000000..9405422 Binary files /dev/null and b/pagefind/fragment/zh-cn_748ab48.pf_fragment differ diff --git a/pagefind/fragment/zh-cn_90c3fd3.pf_fragment b/pagefind/fragment/zh-cn_90c3fd3.pf_fragment new file mode 100644 index 0000000..17346ed Binary files /dev/null and b/pagefind/fragment/zh-cn_90c3fd3.pf_fragment differ diff --git a/pagefind/fragment/zh-cn_91db6f0.pf_fragment b/pagefind/fragment/zh-cn_91db6f0.pf_fragment new file mode 100644 index 0000000..f8bce5a Binary files /dev/null and b/pagefind/fragment/zh-cn_91db6f0.pf_fragment differ diff --git a/pagefind/fragment/zh-cn_a59deb9.pf_fragment b/pagefind/fragment/zh-cn_a59deb9.pf_fragment new file mode 100644 index 0000000..1c5fe2e Binary files /dev/null and b/pagefind/fragment/zh-cn_a59deb9.pf_fragment differ diff --git a/pagefind/fragment/zh-cn_b9f33c9.pf_fragment b/pagefind/fragment/zh-cn_b9f33c9.pf_fragment new file mode 100644 index 0000000..3270c98 Binary files /dev/null and b/pagefind/fragment/zh-cn_b9f33c9.pf_fragment differ diff --git a/pagefind/index/zh-cn_9ce7154.pf_index b/pagefind/index/zh-cn_9ce7154.pf_index new file mode 100644 index 0000000..6ac4f7a Binary files /dev/null and b/pagefind/index/zh-cn_9ce7154.pf_index differ diff --git a/pagefind/pagefind-entry.json b/pagefind/pagefind-entry.json new file mode 100644 index 0000000..b120ccd --- /dev/null +++ b/pagefind/pagefind-entry.json @@ -0,0 +1 @@ +{"version":"1.1.0","languages":{"zh-cn":{"hash":"zh-cn_87776cf75d86f","wasm":null,"page_count":10}}} \ No newline at end of file diff --git a/pagefind/pagefind-highlight.js b/pagefind/pagefind-highlight.js new file mode 100644 index 0000000..c823fbf --- /dev/null +++ b/pagefind/pagefind-highlight.js @@ -0,0 +1,1069 @@ +var __create = Object.create; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __getProtoOf = Object.getPrototypeOf; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __commonJS = (cb, mod) => function __require() { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( + // If the importer is in node compatibility mode or this is not an ESM + // file that has been converted to a CommonJS file using a Babel- + // compatible transform (i.e. "__esModule" has not been set), then set + // "default" to the CommonJS "module.exports" for node compatibility. + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, + mod +)); + +// node_modules/mark.js/dist/mark.js +var require_mark = __commonJS({ + "node_modules/mark.js/dist/mark.js"(exports, module) { + (function(global, factory) { + typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : global.Mark = factory(); + })(exports, function() { + "use strict"; + var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) { + return typeof obj; + } : function(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + var classCallCheck = function(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + }; + var createClass = function() { + function defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) + descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + return function(Constructor, protoProps, staticProps) { + if (protoProps) + defineProperties(Constructor.prototype, protoProps); + if (staticProps) + defineProperties(Constructor, staticProps); + return Constructor; + }; + }(); + var _extends = Object.assign || function(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + return target; + }; + var DOMIterator = function() { + function DOMIterator2(ctx) { + var iframes = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true; + var exclude = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []; + var iframesTimeout = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 5e3; + classCallCheck(this, DOMIterator2); + this.ctx = ctx; + this.iframes = iframes; + this.exclude = exclude; + this.iframesTimeout = iframesTimeout; + } + createClass(DOMIterator2, [{ + key: "getContexts", + value: function getContexts() { + var ctx = void 0, filteredCtx = []; + if (typeof this.ctx === "undefined" || !this.ctx) { + ctx = []; + } else if (NodeList.prototype.isPrototypeOf(this.ctx)) { + ctx = Array.prototype.slice.call(this.ctx); + } else if (Array.isArray(this.ctx)) { + ctx = this.ctx; + } else if (typeof this.ctx === "string") { + ctx = Array.prototype.slice.call(document.querySelectorAll(this.ctx)); + } else { + ctx = [this.ctx]; + } + ctx.forEach(function(ctx2) { + var isDescendant = filteredCtx.filter(function(contexts) { + return contexts.contains(ctx2); + }).length > 0; + if (filteredCtx.indexOf(ctx2) === -1 && !isDescendant) { + filteredCtx.push(ctx2); + } + }); + return filteredCtx; + } + }, { + key: "getIframeContents", + value: function getIframeContents(ifr, successFn) { + var errorFn = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function() { + }; + var doc = void 0; + try { + var ifrWin = ifr.contentWindow; + doc = ifrWin.document; + if (!ifrWin || !doc) { + throw new Error("iframe inaccessible"); + } + } catch (e) { + errorFn(); + } + if (doc) { + successFn(doc); + } + } + }, { + key: "isIframeBlank", + value: function isIframeBlank(ifr) { + var bl = "about:blank", src = ifr.getAttribute("src").trim(), href = ifr.contentWindow.location.href; + return href === bl && src !== bl && src; + } + }, { + key: "observeIframeLoad", + value: function observeIframeLoad(ifr, successFn, errorFn) { + var _this = this; + var called = false, tout = null; + var listener = function listener2() { + if (called) { + return; + } + called = true; + clearTimeout(tout); + try { + if (!_this.isIframeBlank(ifr)) { + ifr.removeEventListener("load", listener2); + _this.getIframeContents(ifr, successFn, errorFn); + } + } catch (e) { + errorFn(); + } + }; + ifr.addEventListener("load", listener); + tout = setTimeout(listener, this.iframesTimeout); + } + }, { + key: "onIframeReady", + value: function onIframeReady(ifr, successFn, errorFn) { + try { + if (ifr.contentWindow.document.readyState === "complete") { + if (this.isIframeBlank(ifr)) { + this.observeIframeLoad(ifr, successFn, errorFn); + } else { + this.getIframeContents(ifr, successFn, errorFn); + } + } else { + this.observeIframeLoad(ifr, successFn, errorFn); + } + } catch (e) { + errorFn(); + } + } + }, { + key: "waitForIframes", + value: function waitForIframes(ctx, done) { + var _this2 = this; + var eachCalled = 0; + this.forEachIframe(ctx, function() { + return true; + }, function(ifr) { + eachCalled++; + _this2.waitForIframes(ifr.querySelector("html"), function() { + if (!--eachCalled) { + done(); + } + }); + }, function(handled) { + if (!handled) { + done(); + } + }); + } + }, { + key: "forEachIframe", + value: function forEachIframe(ctx, filter, each) { + var _this3 = this; + var end = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : function() { + }; + var ifr = ctx.querySelectorAll("iframe"), open = ifr.length, handled = 0; + ifr = Array.prototype.slice.call(ifr); + var checkEnd = function checkEnd2() { + if (--open <= 0) { + end(handled); + } + }; + if (!open) { + checkEnd(); + } + ifr.forEach(function(ifr2) { + if (DOMIterator2.matches(ifr2, _this3.exclude)) { + checkEnd(); + } else { + _this3.onIframeReady(ifr2, function(con) { + if (filter(ifr2)) { + handled++; + each(con); + } + checkEnd(); + }, checkEnd); + } + }); + } + }, { + key: "createIterator", + value: function createIterator(ctx, whatToShow, filter) { + return document.createNodeIterator(ctx, whatToShow, filter, false); + } + }, { + key: "createInstanceOnIframe", + value: function createInstanceOnIframe(contents) { + return new DOMIterator2(contents.querySelector("html"), this.iframes); + } + }, { + key: "compareNodeIframe", + value: function compareNodeIframe(node, prevNode, ifr) { + var compCurr = node.compareDocumentPosition(ifr), prev = Node.DOCUMENT_POSITION_PRECEDING; + if (compCurr & prev) { + if (prevNode !== null) { + var compPrev = prevNode.compareDocumentPosition(ifr), after = Node.DOCUMENT_POSITION_FOLLOWING; + if (compPrev & after) { + return true; + } + } else { + return true; + } + } + return false; + } + }, { + key: "getIteratorNode", + value: function getIteratorNode(itr) { + var prevNode = itr.previousNode(); + var node = void 0; + if (prevNode === null) { + node = itr.nextNode(); + } else { + node = itr.nextNode() && itr.nextNode(); + } + return { + prevNode, + node + }; + } + }, { + key: "checkIframeFilter", + value: function checkIframeFilter(node, prevNode, currIfr, ifr) { + var key = false, handled = false; + ifr.forEach(function(ifrDict, i) { + if (ifrDict.val === currIfr) { + key = i; + handled = ifrDict.handled; + } + }); + if (this.compareNodeIframe(node, prevNode, currIfr)) { + if (key === false && !handled) { + ifr.push({ + val: currIfr, + handled: true + }); + } else if (key !== false && !handled) { + ifr[key].handled = true; + } + return true; + } + if (key === false) { + ifr.push({ + val: currIfr, + handled: false + }); + } + return false; + } + }, { + key: "handleOpenIframes", + value: function handleOpenIframes(ifr, whatToShow, eCb, fCb) { + var _this4 = this; + ifr.forEach(function(ifrDict) { + if (!ifrDict.handled) { + _this4.getIframeContents(ifrDict.val, function(con) { + _this4.createInstanceOnIframe(con).forEachNode(whatToShow, eCb, fCb); + }); + } + }); + } + }, { + key: "iterateThroughNodes", + value: function iterateThroughNodes(whatToShow, ctx, eachCb, filterCb, doneCb) { + var _this5 = this; + var itr = this.createIterator(ctx, whatToShow, filterCb); + var ifr = [], elements = [], node = void 0, prevNode = void 0, retrieveNodes = function retrieveNodes2() { + var _getIteratorNode = _this5.getIteratorNode(itr); + prevNode = _getIteratorNode.prevNode; + node = _getIteratorNode.node; + return node; + }; + while (retrieveNodes()) { + if (this.iframes) { + this.forEachIframe(ctx, function(currIfr) { + return _this5.checkIframeFilter(node, prevNode, currIfr, ifr); + }, function(con) { + _this5.createInstanceOnIframe(con).forEachNode(whatToShow, function(ifrNode) { + return elements.push(ifrNode); + }, filterCb); + }); + } + elements.push(node); + } + elements.forEach(function(node2) { + eachCb(node2); + }); + if (this.iframes) { + this.handleOpenIframes(ifr, whatToShow, eachCb, filterCb); + } + doneCb(); + } + }, { + key: "forEachNode", + value: function forEachNode(whatToShow, each, filter) { + var _this6 = this; + var done = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : function() { + }; + var contexts = this.getContexts(); + var open = contexts.length; + if (!open) { + done(); + } + contexts.forEach(function(ctx) { + var ready = function ready2() { + _this6.iterateThroughNodes(whatToShow, ctx, each, filter, function() { + if (--open <= 0) { + done(); + } + }); + }; + if (_this6.iframes) { + _this6.waitForIframes(ctx, ready); + } else { + ready(); + } + }); + } + }], [{ + key: "matches", + value: function matches(element, selector) { + var selectors = typeof selector === "string" ? [selector] : selector, fn = element.matches || element.matchesSelector || element.msMatchesSelector || element.mozMatchesSelector || element.oMatchesSelector || element.webkitMatchesSelector; + if (fn) { + var match = false; + selectors.every(function(sel) { + if (fn.call(element, sel)) { + match = true; + return false; + } + return true; + }); + return match; + } else { + return false; + } + } + }]); + return DOMIterator2; + }(); + var Mark$1 = function() { + function Mark3(ctx) { + classCallCheck(this, Mark3); + this.ctx = ctx; + this.ie = false; + var ua = window.navigator.userAgent; + if (ua.indexOf("MSIE") > -1 || ua.indexOf("Trident") > -1) { + this.ie = true; + } + } + createClass(Mark3, [{ + key: "log", + value: function log(msg) { + var level = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "debug"; + var log2 = this.opt.log; + if (!this.opt.debug) { + return; + } + if ((typeof log2 === "undefined" ? "undefined" : _typeof(log2)) === "object" && typeof log2[level] === "function") { + log2[level]("mark.js: " + msg); + } + } + }, { + key: "escapeStr", + value: function escapeStr(str) { + return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); + } + }, { + key: "createRegExp", + value: function createRegExp(str) { + if (this.opt.wildcards !== "disabled") { + str = this.setupWildcardsRegExp(str); + } + str = this.escapeStr(str); + if (Object.keys(this.opt.synonyms).length) { + str = this.createSynonymsRegExp(str); + } + if (this.opt.ignoreJoiners || this.opt.ignorePunctuation.length) { + str = this.setupIgnoreJoinersRegExp(str); + } + if (this.opt.diacritics) { + str = this.createDiacriticsRegExp(str); + } + str = this.createMergedBlanksRegExp(str); + if (this.opt.ignoreJoiners || this.opt.ignorePunctuation.length) { + str = this.createJoinersRegExp(str); + } + if (this.opt.wildcards !== "disabled") { + str = this.createWildcardsRegExp(str); + } + str = this.createAccuracyRegExp(str); + return str; + } + }, { + key: "createSynonymsRegExp", + value: function createSynonymsRegExp(str) { + var syn = this.opt.synonyms, sens = this.opt.caseSensitive ? "" : "i", joinerPlaceholder = this.opt.ignoreJoiners || this.opt.ignorePunctuation.length ? "\0" : ""; + for (var index in syn) { + if (syn.hasOwnProperty(index)) { + var value = syn[index], k1 = this.opt.wildcards !== "disabled" ? this.setupWildcardsRegExp(index) : this.escapeStr(index), k2 = this.opt.wildcards !== "disabled" ? this.setupWildcardsRegExp(value) : this.escapeStr(value); + if (k1 !== "" && k2 !== "") { + str = str.replace(new RegExp("(" + this.escapeStr(k1) + "|" + this.escapeStr(k2) + ")", "gm" + sens), joinerPlaceholder + ("(" + this.processSynomyms(k1) + "|") + (this.processSynomyms(k2) + ")") + joinerPlaceholder); + } + } + } + return str; + } + }, { + key: "processSynomyms", + value: function processSynomyms(str) { + if (this.opt.ignoreJoiners || this.opt.ignorePunctuation.length) { + str = this.setupIgnoreJoinersRegExp(str); + } + return str; + } + }, { + key: "setupWildcardsRegExp", + value: function setupWildcardsRegExp(str) { + str = str.replace(/(?:\\)*\?/g, function(val) { + return val.charAt(0) === "\\" ? "?" : ""; + }); + return str.replace(/(?:\\)*\*/g, function(val) { + return val.charAt(0) === "\\" ? "*" : ""; + }); + } + }, { + key: "createWildcardsRegExp", + value: function createWildcardsRegExp(str) { + var spaces = this.opt.wildcards === "withSpaces"; + return str.replace(/\u0001/g, spaces ? "[\\S\\s]?" : "\\S?").replace(/\u0002/g, spaces ? "[\\S\\s]*?" : "\\S*"); + } + }, { + key: "setupIgnoreJoinersRegExp", + value: function setupIgnoreJoinersRegExp(str) { + return str.replace(/[^(|)\\]/g, function(val, indx, original) { + var nextChar = original.charAt(indx + 1); + if (/[(|)\\]/.test(nextChar) || nextChar === "") { + return val; + } else { + return val + "\0"; + } + }); + } + }, { + key: "createJoinersRegExp", + value: function createJoinersRegExp(str) { + var joiner = []; + var ignorePunctuation = this.opt.ignorePunctuation; + if (Array.isArray(ignorePunctuation) && ignorePunctuation.length) { + joiner.push(this.escapeStr(ignorePunctuation.join(""))); + } + if (this.opt.ignoreJoiners) { + joiner.push("\\u00ad\\u200b\\u200c\\u200d"); + } + return joiner.length ? str.split(/\u0000+/).join("[" + joiner.join("") + "]*") : str; + } + }, { + key: "createDiacriticsRegExp", + value: function createDiacriticsRegExp(str) { + var sens = this.opt.caseSensitive ? "" : "i", dct = this.opt.caseSensitive ? ["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105", "A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104", "c\xE7\u0107\u010D", "C\xC7\u0106\u010C", "d\u0111\u010F", "D\u0110\u010E", "e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119", "E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118", "i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B", "I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A", "l\u0142", "L\u0141", "n\xF1\u0148\u0144", "N\xD1\u0147\u0143", "o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D", "O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C", "r\u0159", "R\u0158", "s\u0161\u015B\u0219\u015F", "S\u0160\u015A\u0218\u015E", "t\u0165\u021B\u0163", "T\u0164\u021A\u0162", "u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B", "U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A", "y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF", "Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178", "z\u017E\u017C\u017A", "Z\u017D\u017B\u0179"] : ["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104", "c\xE7\u0107\u010DC\xC7\u0106\u010C", "d\u0111\u010FD\u0110\u010E", "e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118", "i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A", "l\u0142L\u0141", "n\xF1\u0148\u0144N\xD1\u0147\u0143", "o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C", "r\u0159R\u0158", "s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E", "t\u0165\u021B\u0163T\u0164\u021A\u0162", "u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A", "y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178", "z\u017E\u017C\u017AZ\u017D\u017B\u0179"]; + var handled = []; + str.split("").forEach(function(ch) { + dct.every(function(dct2) { + if (dct2.indexOf(ch) !== -1) { + if (handled.indexOf(dct2) > -1) { + return false; + } + str = str.replace(new RegExp("[" + dct2 + "]", "gm" + sens), "[" + dct2 + "]"); + handled.push(dct2); + } + return true; + }); + }); + return str; + } + }, { + key: "createMergedBlanksRegExp", + value: function createMergedBlanksRegExp(str) { + return str.replace(/[\s]+/gmi, "[\\s]+"); + } + }, { + key: "createAccuracyRegExp", + value: function createAccuracyRegExp(str) { + var _this = this; + var chars = "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF"; + var acc = this.opt.accuracy, val = typeof acc === "string" ? acc : acc.value, ls = typeof acc === "string" ? [] : acc.limiters, lsJoin = ""; + ls.forEach(function(limiter) { + lsJoin += "|" + _this.escapeStr(limiter); + }); + switch (val) { + case "partially": + default: + return "()(" + str + ")"; + case "complementary": + lsJoin = "\\s" + (lsJoin ? lsJoin : this.escapeStr(chars)); + return "()([^" + lsJoin + "]*" + str + "[^" + lsJoin + "]*)"; + case "exactly": + return "(^|\\s" + lsJoin + ")(" + str + ")(?=$|\\s" + lsJoin + ")"; + } + } + }, { + key: "getSeparatedKeywords", + value: function getSeparatedKeywords(sv) { + var _this2 = this; + var stack = []; + sv.forEach(function(kw) { + if (!_this2.opt.separateWordSearch) { + if (kw.trim() && stack.indexOf(kw) === -1) { + stack.push(kw); + } + } else { + kw.split(" ").forEach(function(kwSplitted) { + if (kwSplitted.trim() && stack.indexOf(kwSplitted) === -1) { + stack.push(kwSplitted); + } + }); + } + }); + return { + "keywords": stack.sort(function(a, b) { + return b.length - a.length; + }), + "length": stack.length + }; + } + }, { + key: "isNumeric", + value: function isNumeric(value) { + return Number(parseFloat(value)) == value; + } + }, { + key: "checkRanges", + value: function checkRanges(array) { + var _this3 = this; + if (!Array.isArray(array) || Object.prototype.toString.call(array[0]) !== "[object Object]") { + this.log("markRanges() will only accept an array of objects"); + this.opt.noMatch(array); + return []; + } + var stack = []; + var last = 0; + array.sort(function(a, b) { + return a.start - b.start; + }).forEach(function(item) { + var _callNoMatchOnInvalid = _this3.callNoMatchOnInvalidRanges(item, last), start = _callNoMatchOnInvalid.start, end = _callNoMatchOnInvalid.end, valid = _callNoMatchOnInvalid.valid; + if (valid) { + item.start = start; + item.length = end - start; + stack.push(item); + last = end; + } + }); + return stack; + } + }, { + key: "callNoMatchOnInvalidRanges", + value: function callNoMatchOnInvalidRanges(range, last) { + var start = void 0, end = void 0, valid = false; + if (range && typeof range.start !== "undefined") { + start = parseInt(range.start, 10); + end = start + parseInt(range.length, 10); + if (this.isNumeric(range.start) && this.isNumeric(range.length) && end - last > 0 && end - start > 0) { + valid = true; + } else { + this.log("Ignoring invalid or overlapping range: " + ("" + JSON.stringify(range))); + this.opt.noMatch(range); + } + } else { + this.log("Ignoring invalid range: " + JSON.stringify(range)); + this.opt.noMatch(range); + } + return { + start, + end, + valid + }; + } + }, { + key: "checkWhitespaceRanges", + value: function checkWhitespaceRanges(range, originalLength, string) { + var end = void 0, valid = true, max = string.length, offset = originalLength - max, start = parseInt(range.start, 10) - offset; + start = start > max ? max : start; + end = start + parseInt(range.length, 10); + if (end > max) { + end = max; + this.log("End range automatically set to the max value of " + max); + } + if (start < 0 || end - start < 0 || start > max || end > max) { + valid = false; + this.log("Invalid range: " + JSON.stringify(range)); + this.opt.noMatch(range); + } else if (string.substring(start, end).replace(/\s+/g, "") === "") { + valid = false; + this.log("Skipping whitespace only range: " + JSON.stringify(range)); + this.opt.noMatch(range); + } + return { + start, + end, + valid + }; + } + }, { + key: "getTextNodes", + value: function getTextNodes(cb) { + var _this4 = this; + var val = "", nodes = []; + this.iterator.forEachNode(NodeFilter.SHOW_TEXT, function(node) { + nodes.push({ + start: val.length, + end: (val += node.textContent).length, + node + }); + }, function(node) { + if (_this4.matchesExclude(node.parentNode)) { + return NodeFilter.FILTER_REJECT; + } else { + return NodeFilter.FILTER_ACCEPT; + } + }, function() { + cb({ + value: val, + nodes + }); + }); + } + }, { + key: "matchesExclude", + value: function matchesExclude(el) { + return DOMIterator.matches(el, this.opt.exclude.concat(["script", "style", "title", "head", "html"])); + } + }, { + key: "wrapRangeInTextNode", + value: function wrapRangeInTextNode(node, start, end) { + var hEl = !this.opt.element ? "mark" : this.opt.element, startNode = node.splitText(start), ret = startNode.splitText(end - start); + var repl = document.createElement(hEl); + repl.setAttribute("data-markjs", "true"); + if (this.opt.className) { + repl.setAttribute("class", this.opt.className); + } + repl.textContent = startNode.textContent; + startNode.parentNode.replaceChild(repl, startNode); + return ret; + } + }, { + key: "wrapRangeInMappedTextNode", + value: function wrapRangeInMappedTextNode(dict, start, end, filterCb, eachCb) { + var _this5 = this; + dict.nodes.every(function(n, i) { + var sibl = dict.nodes[i + 1]; + if (typeof sibl === "undefined" || sibl.start > start) { + if (!filterCb(n.node)) { + return false; + } + var s = start - n.start, e = (end > n.end ? n.end : end) - n.start, startStr = dict.value.substr(0, n.start), endStr = dict.value.substr(e + n.start); + n.node = _this5.wrapRangeInTextNode(n.node, s, e); + dict.value = startStr + endStr; + dict.nodes.forEach(function(k, j) { + if (j >= i) { + if (dict.nodes[j].start > 0 && j !== i) { + dict.nodes[j].start -= e; + } + dict.nodes[j].end -= e; + } + }); + end -= e; + eachCb(n.node.previousSibling, n.start); + if (end > n.end) { + start = n.end; + } else { + return false; + } + } + return true; + }); + } + }, { + key: "wrapMatches", + value: function wrapMatches(regex, ignoreGroups, filterCb, eachCb, endCb) { + var _this6 = this; + var matchIdx = ignoreGroups === 0 ? 0 : ignoreGroups + 1; + this.getTextNodes(function(dict) { + dict.nodes.forEach(function(node) { + node = node.node; + var match = void 0; + while ((match = regex.exec(node.textContent)) !== null && match[matchIdx] !== "") { + if (!filterCb(match[matchIdx], node)) { + continue; + } + var pos = match.index; + if (matchIdx !== 0) { + for (var i = 1; i < matchIdx; i++) { + pos += match[i].length; + } + } + node = _this6.wrapRangeInTextNode(node, pos, pos + match[matchIdx].length); + eachCb(node.previousSibling); + regex.lastIndex = 0; + } + }); + endCb(); + }); + } + }, { + key: "wrapMatchesAcrossElements", + value: function wrapMatchesAcrossElements(regex, ignoreGroups, filterCb, eachCb, endCb) { + var _this7 = this; + var matchIdx = ignoreGroups === 0 ? 0 : ignoreGroups + 1; + this.getTextNodes(function(dict) { + var match = void 0; + while ((match = regex.exec(dict.value)) !== null && match[matchIdx] !== "") { + var start = match.index; + if (matchIdx !== 0) { + for (var i = 1; i < matchIdx; i++) { + start += match[i].length; + } + } + var end = start + match[matchIdx].length; + _this7.wrapRangeInMappedTextNode(dict, start, end, function(node) { + return filterCb(match[matchIdx], node); + }, function(node, lastIndex) { + regex.lastIndex = lastIndex; + eachCb(node); + }); + } + endCb(); + }); + } + }, { + key: "wrapRangeFromIndex", + value: function wrapRangeFromIndex(ranges, filterCb, eachCb, endCb) { + var _this8 = this; + this.getTextNodes(function(dict) { + var originalLength = dict.value.length; + ranges.forEach(function(range, counter) { + var _checkWhitespaceRange = _this8.checkWhitespaceRanges(range, originalLength, dict.value), start = _checkWhitespaceRange.start, end = _checkWhitespaceRange.end, valid = _checkWhitespaceRange.valid; + if (valid) { + _this8.wrapRangeInMappedTextNode(dict, start, end, function(node) { + return filterCb(node, range, dict.value.substring(start, end), counter); + }, function(node) { + eachCb(node, range); + }); + } + }); + endCb(); + }); + } + }, { + key: "unwrapMatches", + value: function unwrapMatches(node) { + var parent = node.parentNode; + var docFrag = document.createDocumentFragment(); + while (node.firstChild) { + docFrag.appendChild(node.removeChild(node.firstChild)); + } + parent.replaceChild(docFrag, node); + if (!this.ie) { + parent.normalize(); + } else { + this.normalizeTextNode(parent); + } + } + }, { + key: "normalizeTextNode", + value: function normalizeTextNode(node) { + if (!node) { + return; + } + if (node.nodeType === 3) { + while (node.nextSibling && node.nextSibling.nodeType === 3) { + node.nodeValue += node.nextSibling.nodeValue; + node.parentNode.removeChild(node.nextSibling); + } + } else { + this.normalizeTextNode(node.firstChild); + } + this.normalizeTextNode(node.nextSibling); + } + }, { + key: "markRegExp", + value: function markRegExp(regexp, opt) { + var _this9 = this; + this.opt = opt; + this.log('Searching with expression "' + regexp + '"'); + var totalMatches = 0, fn = "wrapMatches"; + var eachCb = function eachCb2(element) { + totalMatches++; + _this9.opt.each(element); + }; + if (this.opt.acrossElements) { + fn = "wrapMatchesAcrossElements"; + } + this[fn](regexp, this.opt.ignoreGroups, function(match, node) { + return _this9.opt.filter(node, match, totalMatches); + }, eachCb, function() { + if (totalMatches === 0) { + _this9.opt.noMatch(regexp); + } + _this9.opt.done(totalMatches); + }); + } + }, { + key: "mark", + value: function mark(sv, opt) { + var _this10 = this; + this.opt = opt; + var totalMatches = 0, fn = "wrapMatches"; + var _getSeparatedKeywords = this.getSeparatedKeywords(typeof sv === "string" ? [sv] : sv), kwArr = _getSeparatedKeywords.keywords, kwArrLen = _getSeparatedKeywords.length, sens = this.opt.caseSensitive ? "" : "i", handler = function handler2(kw) { + var regex = new RegExp(_this10.createRegExp(kw), "gm" + sens), matches = 0; + _this10.log('Searching with expression "' + regex + '"'); + _this10[fn](regex, 1, function(term, node) { + return _this10.opt.filter(node, kw, totalMatches, matches); + }, function(element) { + matches++; + totalMatches++; + _this10.opt.each(element); + }, function() { + if (matches === 0) { + _this10.opt.noMatch(kw); + } + if (kwArr[kwArrLen - 1] === kw) { + _this10.opt.done(totalMatches); + } else { + handler2(kwArr[kwArr.indexOf(kw) + 1]); + } + }); + }; + if (this.opt.acrossElements) { + fn = "wrapMatchesAcrossElements"; + } + if (kwArrLen === 0) { + this.opt.done(totalMatches); + } else { + handler(kwArr[0]); + } + } + }, { + key: "markRanges", + value: function markRanges(rawRanges, opt) { + var _this11 = this; + this.opt = opt; + var totalMatches = 0, ranges = this.checkRanges(rawRanges); + if (ranges && ranges.length) { + this.log("Starting to mark with the following ranges: " + JSON.stringify(ranges)); + this.wrapRangeFromIndex(ranges, function(node, range, match, counter) { + return _this11.opt.filter(node, range, match, counter); + }, function(element, range) { + totalMatches++; + _this11.opt.each(element, range); + }, function() { + _this11.opt.done(totalMatches); + }); + } else { + this.opt.done(totalMatches); + } + } + }, { + key: "unmark", + value: function unmark(opt) { + var _this12 = this; + this.opt = opt; + var sel = this.opt.element ? this.opt.element : "*"; + sel += "[data-markjs]"; + if (this.opt.className) { + sel += "." + this.opt.className; + } + this.log('Removal selector "' + sel + '"'); + this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT, function(node) { + _this12.unwrapMatches(node); + }, function(node) { + var matchesSel = DOMIterator.matches(node, sel), matchesExclude = _this12.matchesExclude(node); + if (!matchesSel || matchesExclude) { + return NodeFilter.FILTER_REJECT; + } else { + return NodeFilter.FILTER_ACCEPT; + } + }, this.opt.done); + } + }, { + key: "opt", + set: function set$$1(val) { + this._opt = _extends({}, { + "element": "", + "className": "", + "exclude": [], + "iframes": false, + "iframesTimeout": 5e3, + "separateWordSearch": true, + "diacritics": true, + "synonyms": {}, + "accuracy": "partially", + "acrossElements": false, + "caseSensitive": false, + "ignoreJoiners": false, + "ignoreGroups": 0, + "ignorePunctuation": [], + "wildcards": "disabled", + "each": function each() { + }, + "noMatch": function noMatch() { + }, + "filter": function filter() { + return true; + }, + "done": function done() { + }, + "debug": false, + "log": window.console + }, val); + }, + get: function get$$1() { + return this._opt; + } + }, { + key: "iterator", + get: function get$$1() { + return new DOMIterator(this.ctx, this.opt.iframes, this.opt.exclude, this.opt.iframesTimeout); + } + }]); + return Mark3; + }(); + function Mark2(ctx) { + var _this = this; + var instance = new Mark$1(ctx); + this.mark = function(sv, opt) { + instance.mark(sv, opt); + return _this; + }; + this.markRegExp = function(sv, opt) { + instance.markRegExp(sv, opt); + return _this; + }; + this.markRanges = function(sv, opt) { + instance.markRanges(sv, opt); + return _this; + }; + this.unmark = function(opt) { + instance.unmark(opt); + return _this; + }; + return this; + } + return Mark2; + }); + } +}); + +// lib/highlight.ts +var import_mark = __toESM(require_mark(), 1); +var PagefindHighlight = class { + constructor(options = { + markContext: null, + highlightParam: "pagefind-highlight", + markOptions: { + className: "pagefind-highlight", + exclude: ["[data-pagefind-ignore]", "[data-pagefind-ignore] *"] + }, + addStyles: true + }) { + var _a, _b; + const { highlightParam, markContext, markOptions, addStyles } = options; + this.highlightParam = highlightParam ?? "pagefind-highlight"; + this.addStyles = addStyles ?? true; + this.markContext = markContext !== void 0 ? markContext : null; + this.markOptions = markOptions !== void 0 ? markOptions : { + className: "pagefind-highlight", + exclude: ["[data-pagefind-ignore]", "[data-pagefind-ignore] *"] + }; + (_a = this.markOptions).className ?? (_a.className = "pagefind__highlight"); + (_b = this.markOptions).exclude ?? (_b.exclude = [ + "[data-pagefind-ignore]", + "[data-pagefind-ignore] *" + ]); + this.markOptions.separateWordSearch = false; + this.highlight(); + } + getHighlightParams(paramName) { + const urlParams = new URLSearchParams(window.location.search); + return urlParams.getAll(paramName); + } + // Inline styles might be too hard to override + addHighlightStyles(className) { + if (!className) + return; + const styleElement = document.createElement("style"); + styleElement.innerText = `:where(.${className}) { background-color: yellow; color: black; }`; + document.head.appendChild(styleElement); + } + createMarkInstance() { + if (this.markContext) { + return new import_mark.default(this.markContext); + } + const pagefindBody = document.querySelectorAll("[data-pagefind-body]"); + if (pagefindBody.length !== 0) { + return new import_mark.default(pagefindBody); + } else { + return new import_mark.default(document.body); + } + } + markText(instance, text) { + instance.mark(text, this.markOptions); + } + highlight() { + const params = this.getHighlightParams(this.highlightParam); + if (!params || params.length === 0) + return; + this.addStyles && this.addHighlightStyles(this.markOptions.className); + const markInstance = this.createMarkInstance(); + this.markText(markInstance, params); + } +}; +window.PagefindHighlight = PagefindHighlight; +export { + PagefindHighlight as default +}; +/*! Bundled license information: + +mark.js/dist/mark.js: + (*!*************************************************** + * mark.js v8.11.1 + * https://markjs.io/ + * Copyright (c) 2014–2018, Julian Kühnel + * Released under the MIT license https://git.io/vwTVl + *****************************************************) +*/ diff --git a/pagefind/pagefind-modular-ui.css b/pagefind/pagefind-modular-ui.css new file mode 100644 index 0000000..9c6793e --- /dev/null +++ b/pagefind/pagefind-modular-ui.css @@ -0,0 +1,214 @@ +:root { + --pagefind-ui-scale: 0.8; + --pagefind-ui-primary: #034AD8; + --pagefind-ui-fade: #707070; + --pagefind-ui-text: #393939; + --pagefind-ui-background: #ffffff; + --pagefind-ui-border: #eeeeee; + --pagefind-ui-tag: #eeeeee; + --pagefind-ui-border-width: 2px; + --pagefind-ui-border-radius: 8px; + --pagefind-ui-image-border-radius: 8px; + --pagefind-ui-image-box-ratio: 3 / 2; + --pagefind-ui-font: system, -apple-system, ".SFNSText-Regular", + "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", + "Lucida Grande", sans-serif; +} + +[data-pfmod-hidden] { + display: none !important; +} + +[data-pfmod-suppressed] { + opacity: 0 !important; + pointer-events: none !important; +} + +[data-pfmod-sr-hidden] { + -webkit-clip: rect(0 0 0 0) !important; + clip: rect(0 0 0 0) !important; + -webkit-clip-path: inset(100%) !important; + clip-path: inset(100%) !important; + height: 1px !important; + overflow: hidden !important; + overflow: clip !important; + position: absolute !important; + white-space: nowrap !important; + width: 1px !important; +} + +[data-pfmod-loading] { + color: var(--pagefind-ui-text); + background-color: var(--pagefind-ui-text); + border-radius: var(--pagefind-ui-border-radius); + opacity: 0.1; + pointer-events: none; +} + +/* Input */ + +.pagefind-modular-input-wrapper { + position: relative; +} + +.pagefind-modular-input-wrapper::before { + background-color: var(--pagefind-ui-text); + width: calc(18px * var(--pagefind-ui-scale)); + height: calc(18px * var(--pagefind-ui-scale)); + top: calc(23px * var(--pagefind-ui-scale)); + left: calc(20px * var(--pagefind-ui-scale)); + content: ""; + position: absolute; + display: block; + opacity: 0.7; + -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.7549 11.255H11.9649L11.6849 10.985C12.6649 9.845 13.2549 8.365 13.2549 6.755C13.2549 3.165 10.3449 0.255005 6.75488 0.255005C3.16488 0.255005 0.254883 3.165 0.254883 6.755C0.254883 10.345 3.16488 13.255 6.75488 13.255C8.36488 13.255 9.84488 12.665 10.9849 11.685L11.2549 11.965V12.755L16.2549 17.745L17.7449 16.255L12.7549 11.255ZM6.75488 11.255C4.26488 11.255 2.25488 9.245 2.25488 6.755C2.25488 4.26501 4.26488 2.255 6.75488 2.255C9.24488 2.255 11.2549 4.26501 11.2549 6.755C11.2549 9.245 9.24488 11.255 6.75488 11.255Z' fill='%23000000'/%3E%3C/svg%3E%0A"); + mask-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.7549 11.255H11.9649L11.6849 10.985C12.6649 9.845 13.2549 8.365 13.2549 6.755C13.2549 3.165 10.3449 0.255005 6.75488 0.255005C3.16488 0.255005 0.254883 3.165 0.254883 6.755C0.254883 10.345 3.16488 13.255 6.75488 13.255C8.36488 13.255 9.84488 12.665 10.9849 11.685L11.2549 11.965V12.755L16.2549 17.745L17.7449 16.255L12.7549 11.255ZM6.75488 11.255C4.26488 11.255 2.25488 9.245 2.25488 6.755C2.25488 4.26501 4.26488 2.255 6.75488 2.255C9.24488 2.255 11.2549 4.26501 11.2549 6.755C11.2549 9.245 9.24488 11.255 6.75488 11.255Z' fill='%23000000'/%3E%3C/svg%3E%0A"); + -webkit-mask-size: 100%; + mask-size: 100%; + z-index: 9; + pointer-events: none; +} + +.pagefind-modular-input { + height: calc(64px * var(--pagefind-ui-scale)); + padding: 0 calc(70px * var(--pagefind-ui-scale)) 0 calc(54px * var(--pagefind-ui-scale)); + background-color: var(--pagefind-ui-background); + border: var(--pagefind-ui-border-width) solid var(--pagefind-ui-border); + border-radius: var(--pagefind-ui-border-radius); + font-size: calc(21px * var(--pagefind-ui-scale)); + position: relative; + appearance: none; + -webkit-appearance: none; + display: flex; + width: 100%; + box-sizing: border-box; + font-weight: 700; +} + +.pagefind-modular-input::placeholder { + opacity: 0.2; +} + +.pagefind-modular-input-clear { + position: absolute; + top: calc(2px * var(--pagefind-ui-scale)); + right: calc(2px * var(--pagefind-ui-scale)); + height: calc(60px * var(--pagefind-ui-scale)); + border-radius: var(--pagefind-ui-border-radius); + padding: 0 calc(15px * var(--pagefind-ui-scale)) 0 calc(2px * var(--pagefind-ui-scale)); + color: var(--pagefind-ui-text); + font-size: calc(14px * var(--pagefind-ui-scale)); + cursor: pointer; + background-color: var(--pagefind-ui-background); + border: none; + appearance: none; +} + +/* ResultList */ + +.pagefind-modular-list-result { + list-style-type: none; + display: flex; + align-items: flex-start; + gap: min(calc(40px * var(--pagefind-ui-scale)), 3%); + padding: calc(30px * var(--pagefind-ui-scale)) 0 calc(40px * var(--pagefind-ui-scale)); + border-top: solid var(--pagefind-ui-border-width) var(--pagefind-ui-border); +} + +.pagefind-modular-list-result:last-of-type { + border-bottom: solid var(--pagefind-ui-border-width) var(--pagefind-ui-border); +} + +.pagefind-modular-list-thumb { + width: min(30%, + calc((30% - (100px * var(--pagefind-ui-scale))) * 100000)); + max-width: calc(120px * var(--pagefind-ui-scale)); + margin-top: calc(10px * var(--pagefind-ui-scale)); + aspect-ratio: var(--pagefind-ui-image-box-ratio); + position: relative; +} + +.pagefind-modular-list-image { + display: block; + position: absolute; + left: 50%; + transform: translateX(-50%); + font-size: 0; + width: auto; + height: auto; + max-width: 100%; + max-height: 100%; + border-radius: var(--pagefind-ui-image-border-radius); +} + +.pagefind-modular-list-inner { + flex: 1; + display: flex; + flex-direction: column; + align-items: flex-start; + margin-top: calc(10px * var(--pagefind-ui-scale)); +} + +.pagefind-modular-list-title { + display: inline-block; + font-weight: 700; + font-size: calc(21px * var(--pagefind-ui-scale)); + margin-top: 0; + margin-bottom: 0; +} + +.pagefind-modular-list-link { + color: var(--pagefind-ui-text); + text-decoration: none; +} + +.pagefind-modular-list-link:hover { + text-decoration: underline; +} + +.pagefind-modular-list-excerpt { + display: inline-block; + font-weight: 400; + font-size: calc(16px * var(--pagefind-ui-scale)); + margin-top: calc(4px * var(--pagefind-ui-scale)); + margin-bottom: 0; + min-width: calc(250px * var(--pagefind-ui-scale)); +} + +/* FilterPills */ + +.pagefind-modular-filter-pills-wrapper { + overflow-x: scroll; + padding: 15px 0; +} + +.pagefind-modular-filter-pills { + display: flex; + gap: 6px; +} + +.pagefind-modular-filter-pill { + display: flex; + justify-content: center; + align-items: center; + border: none; + appearance: none; + padding: 0 calc(24px * var(--pagefind-ui-scale)); + background-color: var(--pagefind-ui-background); + color: var(--pagefind-ui-fade); + border: var(--pagefind-ui-border-width) solid var(--pagefind-ui-border); + border-radius: calc(25px * var(--pagefind-ui-scale)); + font-size: calc(18px * var(--pagefind-ui-scale)); + height: calc(50px * var(--pagefind-ui-scale)); + cursor: pointer; + white-space: nowrap; +} + +.pagefind-modular-filter-pill:hover { + border-color: var(--pagefind-ui-primary); +} + +.pagefind-modular-filter-pill[aria-pressed="true"] { + border-color: var(--pagefind-ui-primary); + color: var(--pagefind-ui-primary); +} \ No newline at end of file diff --git a/pagefind/pagefind-modular-ui.js b/pagefind/pagefind-modular-ui.js new file mode 100644 index 0000000..9301909 --- /dev/null +++ b/pagefind/pagefind-modular-ui.js @@ -0,0 +1,8 @@ +(()=>{var b=Object.defineProperty;var w=(i,e)=>{for(var t in e)b(i,t,{get:e[t],enumerable:!0})};var f={};w(f,{FilterPills:()=>h,Input:()=>l,Instance:()=>p,ResultList:()=>a,Summary:()=>o});var r=class i{constructor(e){this.element=document.createElement(e)}id(e){return this.element.id=e,this}class(e){return this.element.classList.add(e),this}attrs(e){for(let[t,s]of Object.entries(e))this.element.setAttribute(t,s);return this}text(e){return this.element.innerText=e,this}html(e){return this.element.innerHTML=e,this}handle(e,t){return this.element.addEventListener(e,t),this}addTo(e){return e instanceof i?e.element.appendChild(this.element):e.appendChild(this.element),this.element}};var T=async(i=100)=>new Promise(e=>setTimeout(e,i)),l=class{constructor(e={}){if(this.inputEl=null,this.clearEl=null,this.instance=null,this.searchID=0,this.debounceTimeoutMs=e.debounceTimeoutMs??300,e.inputElement){if(e.containerElement){console.warn("[Pagefind Input component]: inputElement and containerElement both supplied. Ignoring the container option.");return}this.initExisting(e.inputElement)}else if(e.containerElement)this.initContainer(e.containerElement);else{console.error("[Pagefind Input component]: No selector supplied for containerElement or inputElement");return}this.inputEl.addEventListener("input",async t=>{if(this.instance&&typeof t?.target?.value=="string"){this.updateState(t.target.value);let s=++this.searchID;if(await T(this.debounceTimeoutMs),s!==this.searchID)return null;this.instance?.triggerSearch(t.target.value)}}),this.inputEl.addEventListener("keydown",t=>{t.key==="Escape"&&(++this.searchID,this.inputEl.value="",this.instance?.triggerSearch(""),this.updateState("")),t.key==="Enter"&&t.preventDefault()}),this.inputEl.addEventListener("focus",()=>{this.instance?.triggerLoad()})}initContainer(e){let t=document.querySelector(e);if(!t){console.error(`[Pagefind Input component]: No container found for ${e} selector`);return}if(t.tagName==="INPUT")console.warn(`[Pagefind Input component]: Encountered input element for ${e} when a container was expected`),console.warn("[Pagefind Input component]: Treating containerElement option as inputElement and proceeding"),this.initExisting(e);else{t.innerHTML="";let s=0;for(;document.querySelector(`#pfmod-input-${s}`);)s+=1;let n=new r("form").class("pagefind-modular-input-wrapper").attrs({role:"search","aria-label":"Search this site",action:"javascript:void(0);"});new r("label").attrs({for:`pfmod-input-${s}`,"data-pfmod-sr-hidden":"true"}).text("Search this site").addTo(n),this.inputEl=new r("input").id(`pfmod-input-${s}`).class("pagefind-modular-input").attrs({autocapitalize:"none",enterkeyhint:"search"}).addTo(n),this.clearEl=new r("button").class("pagefind-modular-input-clear").attrs({"data-pfmod-suppressed":"true"}).text("Clear").handle("click",()=>{this.inputEl.value="",this.instance.triggerSearch(""),this.updateState("")}).addTo(n),n.addTo(t)}}initExisting(e){let t=document.querySelector(e);if(!t){console.error(`[Pagefind Input component]: No input element found for ${e} selector`);return}if(t.tagName!=="INPUT"){console.error(`[Pagefind Input component]: Expected ${e} to be an element`);return}this.inputEl=t}updateState(e){this.clearEl&&(e&&e?.length?this.clearEl.removeAttribute("data-pfmod-suppressed"):this.clearEl.setAttribute("data-pfmod-suppressed","true"))}register(e){this.instance=e,this.instance.on("search",(t,s)=>{this.inputEl&&document.activeElement!==this.inputEl&&(this.inputEl.value=t,this.updateState(t))})}focus(){this.inputEl&&this.inputEl.focus()}};var g=i=>{if(i instanceof Element)return[i];if(Array.isArray(i)&&i.every(e=>e instanceof Element))return i;if(typeof i=="string"||i instanceof String){let e=document.createElement("div");return e.innerHTML=i,[...e.childNodes]}else return console.error(`[Pagefind ResultList component]: Expected template function to return an HTML element or string, got ${typeof i}`),[]},v=()=>{let i=(e=30)=>". ".repeat(Math.floor(10+Math.random()*e));return`
  • +
    +
    +

    ${i(30)}

    +

    ${i(40)}

    +
    +
  • `},y=i=>{let e=new r("li").class("pagefind-modular-list-result"),t=new r("div").class("pagefind-modular-list-thumb").addTo(e);i?.meta?.image&&new r("img").class("pagefind-modular-list-image").attrs({src:i.meta.image,alt:i.meta.image_alt||i.meta.title}).addTo(t);let s=new r("div").class("pagefind-modular-list-inner").addTo(e),n=new r("p").class("pagefind-modular-list-title").addTo(s);return new r("a").class("pagefind-modular-list-link").text(i.meta?.title).attrs({href:i.meta?.url||i.url}).addTo(n),new r("p").class("pagefind-modular-list-excerpt").html(i.excerpt).addTo(s),e.element},E=i=>{if(!(i instanceof HTMLElement))return null;let e=window.getComputedStyle(i).overflowY;return e!=="visible"&&e!=="hidden"?i:E(i.parentNode)},d=class{constructor(e={}){this.rawResult=e.result,this.placeholderNodes=e.placeholderNodes,this.resultFn=e.resultFn,this.intersectionEl=e.intersectionEl,this.result=null,this.waitForIntersection()}waitForIntersection(){if(!this.placeholderNodes?.length)return;let e={root:this.intersectionEl,rootMargin:"0px",threshold:.01};new IntersectionObserver((s,n)=>{this.result===null&&s?.[0]?.isIntersecting&&(this.load(),n.disconnect())},e).observe(this.placeholderNodes[0])}async load(){if(!this.placeholderNodes?.length)return;this.result=await this.rawResult.data();let e=this.resultFn(this.result),t=g(e);for(;this.placeholderNodes.length>1;)this.placeholderNodes.pop().remove();this.placeholderNodes[0].replaceWith(...t)}},a=class{constructor(e){if(this.intersectionEl=document.body,this.containerEl=null,this.results=[],this.placeholderTemplate=e.placeholderTemplate??v,this.resultTemplate=e.resultTemplate??y,e.containerElement)this.initContainer(e.containerElement);else{console.error("[Pagefind ResultList component]: No selector supplied for containerElement");return}}initContainer(e){let t=document.querySelector(e);if(!t){console.error(`[Pagefind ResultList component]: No container found for ${e} selector`);return}this.containerEl=t}append(e){for(let t of e)this.containerEl.appendChild(t)}register(e){e.on("results",t=>{this.containerEl&&(this.containerEl.innerHTML="",this.intersectionEl=E(this.containerEl),this.results=t.results.map(s=>{let n=g(this.placeholderTemplate());return this.append(n),new d({result:s,placeholderNodes:n,resultFn:this.resultTemplate,intersectionEl:this.intersectionEl})}))}),e.on("loading",()=>{this.containerEl&&(this.containerEl.innerHTML="")})}};var o=class{constructor(e={}){if(this.containerEl=null,this.defaultMessage=e.defaultMessage??"",this.term="",e.containerElement)this.initContainer(e.containerElement);else{console.error("[Pagefind Summary component]: No selector supplied for containerElement");return}}initContainer(e){let t=document.querySelector(e);if(!t){console.error(`[Pagefind Summary component]: No container found for ${e} selector`);return}this.containerEl=t,this.containerEl.innerText=this.defaultMessage}register(e){e.on("search",(t,s)=>{this.term=t}),e.on("results",t=>{if(!this.containerEl||!t)return;if(!this.term){this.containerEl.innerText=this.defaultMessage;return}let s=t?.results?.length??0;this.containerEl.innerText=`${s} result${s===1?"":"s"} for ${this.term}`}),e.on("loading",()=>{this.containerEl&&(this.containerEl.innerText=`Searching for ${this.term}...`)})}};var h=class{constructor(e={}){if(this.instance=null,this.wrapper=null,this.pillContainer=null,this.available={},this.selected=["All"],this.total=0,this.filterMemo="",this.filter=e.filter,this.ordering=e.ordering??null,this.alwaysShow=e.alwaysShow??!1,this.selectMultiple=e.selectMultiple??!1,!this.filter?.length){console.error("[Pagefind FilterPills component]: No filter option supplied, nothing to display");return}if(e.containerElement)this.initContainer(e.containerElement);else{console.error("[Pagefind FilterPills component]: No selector supplied for containerElement");return}}initContainer(e){let t=document.querySelector(e);if(!t){console.error(`[Pagefind FilterPills component]: No container found for ${e} selector`);return}t.innerHTML="";let s=`pagefind_modular_filter_pills_${this.filter}`,n=new r("div").class("pagefind-modular-filter-pills-wrapper").attrs({role:"group","aria-labelledby":s});this.alwaysShow||n.attrs({"data-pfmod-hidden":!0}),new r("div").id(s).class("pagefind-modular-filter-pills-label").attrs({"data-pfmod-sr-hidden":!0}).text(`Filter results by ${this.filter}`).addTo(n),this.pillContainer=new r("div").class("pagefind-modular-filter-pills").addTo(n),this.wrapper=n.addTo(t)}update(){let e=this.available.map(t=>t[0]).join("~");e==this.filterMemo?this.updateExisting():(this.renderNew(),this.filterMemo=e)}pushFilters(){let e=this.selected.filter(t=>t!=="All");this.instance.triggerFilter(this.filter,e)}pillInner(e,t){return this.total?`${e} (${t})`:`${e}`}renderNew(){this.available.forEach(([e,t])=>{new r("button").class("pagefind-modular-filter-pill").html(this.pillInner(e,t)).attrs({"aria-pressed":this.selected.includes(e),type:"button"}).handle("click",()=>{e==="All"?this.selected=["All"]:this.selected.includes(e)?this.selected=this.selected.filter(s=>s!==e):this.selectMultiple?this.selected.push(e):this.selected=[e],this.selected?.length?this.selected?.length>1&&(this.selected=this.selected.filter(s=>s!=="All")):this.selected=["All"],this.update(),this.pushFilters()}).addTo(this.pillContainer)})}updateExisting(){let e=[...this.pillContainer.childNodes];this.available.forEach(([t,s],n)=>{e[n].innerHTML=this.pillInner(t,s),e[n].setAttribute("aria-pressed",this.selected.includes(t))})}register(e){this.instance=e,this.instance.on("filters",t=>{if(!this.pillContainer)return;this.selectMultiple?t=t.available:t=t.total;let s=t[this.filter];if(!s){console.warn(`[Pagefind FilterPills component]: No possible values found for the ${this.filter} filter`);return}this.available=Object.entries(s),Array.isArray(this.ordering)?this.available.sort((n,c)=>{let m=this.ordering.indexOf(n[0]),_=this.ordering.indexOf(c[0]);return(m===-1?1/0:m)-(_===-1?1/0:_)}):this.available.sort((n,c)=>n[0].localeCompare(c[0])),this.available.unshift(["All",this.total]),this.update()}),e.on("results",t=>{this.pillContainer&&(this.total=t?.unfilteredResultCount||0,this.available?.[0]?.[0]==="All"&&(this.available[0][1]=this.total),this.total||this.alwaysShow?this.wrapper.removeAttribute("data-pfmod-hidden"):this.wrapper.setAttribute("data-pfmod-hidden","true"),this.update())})}};var F=async(i=50)=>await new Promise(e=>setTimeout(e,i)),u;try{u=new URL(document.currentScript.src).pathname.match(/^(.*\/)(?:pagefind-)?modular-ui.js.*$/)[1]}catch{u="/pagefind/"}var p=class{constructor(e={}){this.__pagefind__=null,this.__initializing__=null,this.__searchID__=0,this.__hooks__={search:[],filters:[],loading:[],results:[]},this.components=[],this.searchTerm="",this.searchFilters={},this.searchResult={},this.availableFilters=null,this.totalFilters=null,this.options={bundlePath:e.bundlePath??u,mergeIndex:e.mergeIndex??[]},delete e.bundlePath,delete e.resetStyles,delete e.processResult,delete e.processTerm,delete e.debounceTimeoutMs,delete e.mergeIndex,delete e.translations,this.pagefindOptions=e}add(e){e?.register?.(this),this.components.push(e)}on(e,t){if(!this.__hooks__[e]){let s=Object.keys(this.__hooks__).join(", ");console.error(`[Pagefind Composable]: Unknown event type ${e}. Supported events: [${s}]`);return}if(typeof t!="function"){console.error(`[Pagefind Composable]: Expected callback to be a function, received ${typeof t}`);return}this.__hooks__[e].push(t)}triggerLoad(){this.__load__()}triggerSearch(e){this.searchTerm=e,this.__dispatch__("search",e,this.searchFilters),this.__search__(e,this.searchFilters)}triggerSearchWithFilters(e,t){this.searchTerm=e,this.searchFilters=t,this.__dispatch__("search",e,t),this.__search__(e,t)}triggerFilters(e){this.searchFilters=e,this.__dispatch__("search",this.searchTerm,e),this.__search__(this.searchTerm,e)}triggerFilter(e,t){this.searchFilters=this.searchFilters||{},this.searchFilters[e]=t,this.__dispatch__("search",this.searchTerm,this.searchFilters),this.__search__(this.searchTerm,this.searchFilters)}__dispatch__(e,...t){this.__hooks__[e]?.forEach(s=>s?.(...t))}async __clear__(){this.__dispatch__("results",{results:[],unfilteredTotalCount:0}),this.availableFilters=await this.__pagefind__.filters(),this.totalFilters=this.availableFilters,this.__dispatch__("filters",{available:this.availableFilters,total:this.totalFilters})}async __search__(e,t){this.__dispatch__("loading"),await this.__load__();let s=++this.__searchID__;if(!e||!e.length)return this.__clear__();let n=await this.__pagefind__.search(e,{filters:t});n&&this.__searchID__===s&&(n.filters&&Object.keys(n.filters)?.length&&(this.availableFilters=n.filters,this.totalFilters=n.totalFilters,this.__dispatch__("filters",{available:this.availableFilters,total:this.totalFilters})),this.searchResult=n,this.__dispatch__("results",this.searchResult))}async __load__(){if(this.__initializing__){for(;!this.__pagefind__;)await F(50);return}if(this.__initializing__=!0,!this.__pagefind__){let e;try{e=await import(`${this.options.bundlePath}pagefind.js`)}catch(t){console.error(t),console.error([`Pagefind couldn't be loaded from ${this.options.bundlePath}pagefind.js`,"You can configure this by passing a bundlePath option to PagefindComposable Instance",`[DEBUG: Loaded from ${document?.currentScript?.src??"no known script location"}]`].join(` +`))}await e.options(this.pagefindOptions||{});for(let t of this.options.mergeIndex){if(!t.bundlePath)throw new Error("mergeIndex requires a bundlePath parameter");let s=t.bundlePath;delete t.bundlePath,await e.mergeIndex(s,t)}this.__pagefind__=e}this.availableFilters=await this.__pagefind__.filters(),this.totalFilters=this.availableFilters,this.__dispatch__("filters",{available:this.availableFilters,total:this.totalFilters})}};window.PagefindModularUI=f;})(); diff --git a/pagefind/pagefind-ui.css b/pagefind/pagefind-ui.css new file mode 100644 index 0000000..d7984a9 --- /dev/null +++ b/pagefind/pagefind-ui.css @@ -0,0 +1 @@ +.pagefind-ui__result.svelte-j9e30.svelte-j9e30{list-style-type:none;display:flex;align-items:flex-start;gap:min(calc(40px * var(--pagefind-ui-scale)),3%);padding:calc(30px * var(--pagefind-ui-scale)) 0 calc(40px * var(--pagefind-ui-scale));border-top:solid var(--pagefind-ui-border-width) var(--pagefind-ui-border)}.pagefind-ui__result.svelte-j9e30.svelte-j9e30:last-of-type{border-bottom:solid var(--pagefind-ui-border-width) var(--pagefind-ui-border)}.pagefind-ui__result-thumb.svelte-j9e30.svelte-j9e30{width:min(30%,calc((30% - (100px * var(--pagefind-ui-scale))) * 100000));max-width:calc(120px * var(--pagefind-ui-scale));margin-top:calc(10px * var(--pagefind-ui-scale));aspect-ratio:var(--pagefind-ui-image-box-ratio);position:relative}.pagefind-ui__result-image.svelte-j9e30.svelte-j9e30{display:block;position:absolute;left:50%;transform:translate(-50%);font-size:0;width:auto;height:auto;max-width:100%;max-height:100%;border-radius:var(--pagefind-ui-image-border-radius)}.pagefind-ui__result-inner.svelte-j9e30.svelte-j9e30{flex:1;display:flex;flex-direction:column;align-items:flex-start;margin-top:calc(10px * var(--pagefind-ui-scale))}.pagefind-ui__result-title.svelte-j9e30.svelte-j9e30{display:inline-block;font-weight:700;font-size:calc(21px * var(--pagefind-ui-scale));margin-top:0;margin-bottom:0}.pagefind-ui__result-title.svelte-j9e30 .pagefind-ui__result-link.svelte-j9e30{color:var(--pagefind-ui-text);text-decoration:none}.pagefind-ui__result-title.svelte-j9e30 .pagefind-ui__result-link.svelte-j9e30:hover{text-decoration:underline}.pagefind-ui__result-excerpt.svelte-j9e30.svelte-j9e30{display:inline-block;font-weight:400;font-size:calc(16px * var(--pagefind-ui-scale));margin-top:calc(4px * var(--pagefind-ui-scale));margin-bottom:0;min-width:calc(250px * var(--pagefind-ui-scale))}.pagefind-ui__loading.svelte-j9e30.svelte-j9e30{color:var(--pagefind-ui-text);background-color:var(--pagefind-ui-text);border-radius:var(--pagefind-ui-border-radius);opacity:.1;pointer-events:none}.pagefind-ui__result-tags.svelte-j9e30.svelte-j9e30{list-style-type:none;padding:0;display:flex;gap:calc(20px * var(--pagefind-ui-scale));flex-wrap:wrap;margin-top:calc(20px * var(--pagefind-ui-scale))}.pagefind-ui__result-tag.svelte-j9e30.svelte-j9e30{padding:calc(4px * var(--pagefind-ui-scale)) calc(8px * var(--pagefind-ui-scale));font-size:calc(14px * var(--pagefind-ui-scale));border-radius:var(--pagefind-ui-border-radius);background-color:var(--pagefind-ui-tag)}.pagefind-ui__result.svelte-4xnkmf.svelte-4xnkmf{list-style-type:none;display:flex;align-items:flex-start;gap:min(calc(40px * var(--pagefind-ui-scale)),3%);padding:calc(30px * var(--pagefind-ui-scale)) 0 calc(40px * var(--pagefind-ui-scale));border-top:solid var(--pagefind-ui-border-width) var(--pagefind-ui-border)}.pagefind-ui__result.svelte-4xnkmf.svelte-4xnkmf:last-of-type{border-bottom:solid var(--pagefind-ui-border-width) var(--pagefind-ui-border)}.pagefind-ui__result-nested.svelte-4xnkmf.svelte-4xnkmf{display:flex;flex-direction:column;padding-left:calc(20px * var(--pagefind-ui-scale))}.pagefind-ui__result-nested.svelte-4xnkmf.svelte-4xnkmf:first-of-type{padding-top:calc(10px * var(--pagefind-ui-scale))}.pagefind-ui__result-nested.svelte-4xnkmf .pagefind-ui__result-link.svelte-4xnkmf{font-size:.9em;position:relative}.pagefind-ui__result-nested.svelte-4xnkmf .pagefind-ui__result-link.svelte-4xnkmf:before{content:"\2937 ";position:absolute;top:0;right:calc(100% + .1em)}.pagefind-ui__result-thumb.svelte-4xnkmf.svelte-4xnkmf{width:min(30%,calc((30% - (100px * var(--pagefind-ui-scale))) * 100000));max-width:calc(120px * var(--pagefind-ui-scale));margin-top:calc(10px * var(--pagefind-ui-scale));aspect-ratio:var(--pagefind-ui-image-box-ratio);position:relative}.pagefind-ui__result-image.svelte-4xnkmf.svelte-4xnkmf{display:block;position:absolute;left:50%;transform:translate(-50%);font-size:0;width:auto;height:auto;max-width:100%;max-height:100%;border-radius:var(--pagefind-ui-image-border-radius)}.pagefind-ui__result-inner.svelte-4xnkmf.svelte-4xnkmf{flex:1;display:flex;flex-direction:column;align-items:flex-start;margin-top:calc(10px * var(--pagefind-ui-scale))}.pagefind-ui__result-title.svelte-4xnkmf.svelte-4xnkmf{display:inline-block;font-weight:700;font-size:calc(21px * var(--pagefind-ui-scale));margin-top:0;margin-bottom:0}.pagefind-ui__result-title.svelte-4xnkmf .pagefind-ui__result-link.svelte-4xnkmf{color:var(--pagefind-ui-text);text-decoration:none}.pagefind-ui__result-title.svelte-4xnkmf .pagefind-ui__result-link.svelte-4xnkmf:hover{text-decoration:underline}.pagefind-ui__result-excerpt.svelte-4xnkmf.svelte-4xnkmf{display:inline-block;font-weight:400;font-size:calc(16px * var(--pagefind-ui-scale));margin-top:calc(4px * var(--pagefind-ui-scale));margin-bottom:0;min-width:calc(250px * var(--pagefind-ui-scale))}.pagefind-ui__loading.svelte-4xnkmf.svelte-4xnkmf{color:var(--pagefind-ui-text);background-color:var(--pagefind-ui-text);border-radius:var(--pagefind-ui-border-radius);opacity:.1;pointer-events:none}.pagefind-ui__result-tags.svelte-4xnkmf.svelte-4xnkmf{list-style-type:none;padding:0;display:flex;gap:calc(20px * var(--pagefind-ui-scale));flex-wrap:wrap;margin-top:calc(20px * var(--pagefind-ui-scale))}.pagefind-ui__result-tag.svelte-4xnkmf.svelte-4xnkmf{padding:calc(4px * var(--pagefind-ui-scale)) calc(8px * var(--pagefind-ui-scale));font-size:calc(14px * var(--pagefind-ui-scale));border-radius:var(--pagefind-ui-border-radius);background-color:var(--pagefind-ui-tag)}legend.svelte-1v2r7ls.svelte-1v2r7ls{position:absolute;clip:rect(0 0 0 0)}.pagefind-ui__filter-panel.svelte-1v2r7ls.svelte-1v2r7ls{min-width:min(calc(260px * var(--pagefind-ui-scale)),100%);flex:1;display:flex;flex-direction:column;margin-top:calc(20px * var(--pagefind-ui-scale))}.pagefind-ui__filter-group.svelte-1v2r7ls.svelte-1v2r7ls{border:0;padding:0}.pagefind-ui__filter-block.svelte-1v2r7ls.svelte-1v2r7ls{padding:0;display:block;border-bottom:solid calc(2px * var(--pagefind-ui-scale)) var(--pagefind-ui-border);padding:calc(20px * var(--pagefind-ui-scale)) 0}.pagefind-ui__filter-name.svelte-1v2r7ls.svelte-1v2r7ls{font-size:calc(16px * var(--pagefind-ui-scale));position:relative;display:flex;align-items:center;list-style:none;font-weight:700;cursor:pointer;height:calc(24px * var(--pagefind-ui-scale))}.pagefind-ui__filter-name.svelte-1v2r7ls.svelte-1v2r7ls::-webkit-details-marker{display:none}.pagefind-ui__filter-name.svelte-1v2r7ls.svelte-1v2r7ls:after{position:absolute;content:"";right:calc(6px * var(--pagefind-ui-scale));top:50%;width:calc(8px * var(--pagefind-ui-scale));height:calc(8px * var(--pagefind-ui-scale));border:solid calc(2px * var(--pagefind-ui-scale)) currentColor;border-right:0;border-top:0;transform:translateY(-70%) rotate(-45deg)}.pagefind-ui__filter-block[open].svelte-1v2r7ls .pagefind-ui__filter-name.svelte-1v2r7ls:after{transform:translateY(-70%) rotate(-225deg)}.pagefind-ui__filter-group.svelte-1v2r7ls.svelte-1v2r7ls{display:flex;flex-direction:column;gap:calc(20px * var(--pagefind-ui-scale));padding-top:calc(30px * var(--pagefind-ui-scale))}.pagefind-ui__filter-value.svelte-1v2r7ls.svelte-1v2r7ls{position:relative;display:flex;align-items:center;gap:calc(8px * var(--pagefind-ui-scale))}.pagefind-ui__filter-value.svelte-1v2r7ls.svelte-1v2r7ls:before{position:absolute;content:"";top:50%;left:calc(8px * var(--pagefind-ui-scale));width:0px;height:0px;border:solid 1px #fff;opacity:0;transform:translate(calc(4.5px * var(--pagefind-ui-scale) * -1),calc(.8px * var(--pagefind-ui-scale))) skew(-5deg) rotate(-45deg);transform-origin:top left;border-top:0;border-right:0;pointer-events:none}.pagefind-ui__filter-value.pagefind-ui__filter-value--checked.svelte-1v2r7ls.svelte-1v2r7ls:before{opacity:1;width:calc(9px * var(--pagefind-ui-scale));height:calc(4px * var(--pagefind-ui-scale));transition:width .1s ease-out .1s,height .1s ease-in}.pagefind-ui__filter-checkbox.svelte-1v2r7ls.svelte-1v2r7ls{margin:0;width:calc(16px * var(--pagefind-ui-scale));height:calc(16px * var(--pagefind-ui-scale));border:solid 1px var(--pagefind-ui-border);appearance:none;-webkit-appearance:none;border-radius:calc(var(--pagefind-ui-border-radius) / 2);background-color:var(--pagefind-ui-background);cursor:pointer}.pagefind-ui__filter-checkbox.svelte-1v2r7ls.svelte-1v2r7ls:checked{background-color:var(--pagefind-ui-primary);border:solid 1px var(--pagefind-ui-primary)}.pagefind-ui__filter-label.svelte-1v2r7ls.svelte-1v2r7ls{cursor:pointer;font-size:calc(16px * var(--pagefind-ui-scale));font-weight:400}.pagefind-ui--reset *:where(:not(html,iframe,canvas,img,svg,video):not(svg *,symbol *)){all:unset;display:revert;outline:revert}.pagefind-ui--reset *,.pagefind-ui--reset *:before,.pagefind-ui--reset *:after{box-sizing:border-box}.pagefind-ui--reset a,.pagefind-ui--reset button{cursor:revert}.pagefind-ui--reset ol,.pagefind-ui--reset ul,.pagefind-ui--reset menu{list-style:none}.pagefind-ui--reset img{max-width:100%}.pagefind-ui--reset table{border-collapse:collapse}.pagefind-ui--reset input,.pagefind-ui--reset textarea{-webkit-user-select:auto}.pagefind-ui--reset textarea{white-space:revert}.pagefind-ui--reset meter{-webkit-appearance:revert;appearance:revert}.pagefind-ui--reset ::placeholder{color:unset}.pagefind-ui--reset :where([hidden]){display:none}.pagefind-ui--reset :where([contenteditable]:not([contenteditable="false"])){-moz-user-modify:read-write;-webkit-user-modify:read-write;overflow-wrap:break-word;-webkit-line-break:after-white-space;-webkit-user-select:auto}.pagefind-ui--reset :where([draggable="true"]){-webkit-user-drag:element}.pagefind-ui--reset mark{all:revert}:root{--pagefind-ui-scale:.8;--pagefind-ui-primary:#393939;--pagefind-ui-text:#393939;--pagefind-ui-background:#ffffff;--pagefind-ui-border:#eeeeee;--pagefind-ui-tag:#eeeeee;--pagefind-ui-border-width:2px;--pagefind-ui-border-radius:8px;--pagefind-ui-image-border-radius:8px;--pagefind-ui-image-box-ratio:3 / 2;--pagefind-ui-font:system, -apple-system, "BlinkMacSystemFont", ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", "Ubuntu", "arial", sans-serif}.pagefind-ui.svelte-e9gkc3{width:100%;color:var(--pagefind-ui-text);font-family:var(--pagefind-ui-font)}.pagefind-ui__hidden.svelte-e9gkc3{display:none!important}.pagefind-ui__suppressed.svelte-e9gkc3{opacity:0;pointer-events:none}.pagefind-ui__form.svelte-e9gkc3{position:relative}.pagefind-ui__form.svelte-e9gkc3:before{background-color:var(--pagefind-ui-text);width:calc(18px * var(--pagefind-ui-scale));height:calc(18px * var(--pagefind-ui-scale));top:calc(23px * var(--pagefind-ui-scale));left:calc(20px * var(--pagefind-ui-scale));content:"";position:absolute;display:block;opacity:.7;-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.7549 11.255H11.9649L11.6849 10.985C12.6649 9.845 13.2549 8.365 13.2549 6.755C13.2549 3.165 10.3449 0.255005 6.75488 0.255005C3.16488 0.255005 0.254883 3.165 0.254883 6.755C0.254883 10.345 3.16488 13.255 6.75488 13.255C8.36488 13.255 9.84488 12.665 10.9849 11.685L11.2549 11.965V12.755L16.2549 17.745L17.7449 16.255L12.7549 11.255ZM6.75488 11.255C4.26488 11.255 2.25488 9.245 2.25488 6.755C2.25488 4.26501 4.26488 2.255 6.75488 2.255C9.24488 2.255 11.2549 4.26501 11.2549 6.755C11.2549 9.245 9.24488 11.255 6.75488 11.255Z' fill='%23000000'/%3E%3C/svg%3E%0A");mask-image:url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.7549 11.255H11.9649L11.6849 10.985C12.6649 9.845 13.2549 8.365 13.2549 6.755C13.2549 3.165 10.3449 0.255005 6.75488 0.255005C3.16488 0.255005 0.254883 3.165 0.254883 6.755C0.254883 10.345 3.16488 13.255 6.75488 13.255C8.36488 13.255 9.84488 12.665 10.9849 11.685L11.2549 11.965V12.755L16.2549 17.745L17.7449 16.255L12.7549 11.255ZM6.75488 11.255C4.26488 11.255 2.25488 9.245 2.25488 6.755C2.25488 4.26501 4.26488 2.255 6.75488 2.255C9.24488 2.255 11.2549 4.26501 11.2549 6.755C11.2549 9.245 9.24488 11.255 6.75488 11.255Z' fill='%23000000'/%3E%3C/svg%3E%0A");-webkit-mask-size:100%;mask-size:100%;z-index:9;pointer-events:none}.pagefind-ui__search-input.svelte-e9gkc3{height:calc(64px * var(--pagefind-ui-scale));padding:0 calc(70px * var(--pagefind-ui-scale)) 0 calc(54px * var(--pagefind-ui-scale));background-color:var(--pagefind-ui-background);border:var(--pagefind-ui-border-width) solid var(--pagefind-ui-border);border-radius:var(--pagefind-ui-border-radius);font-size:calc(21px * var(--pagefind-ui-scale));position:relative;appearance:none;-webkit-appearance:none;display:flex;width:100%;box-sizing:border-box;font-weight:700}.pagefind-ui__search-input.svelte-e9gkc3::placeholder{opacity:.2}.pagefind-ui__search-clear.svelte-e9gkc3{position:absolute;top:calc(3px * var(--pagefind-ui-scale));right:calc(3px * var(--pagefind-ui-scale));height:calc(58px * var(--pagefind-ui-scale));padding:0 calc(15px * var(--pagefind-ui-scale)) 0 calc(2px * var(--pagefind-ui-scale));color:var(--pagefind-ui-text);font-size:calc(14px * var(--pagefind-ui-scale));cursor:pointer;background-color:var(--pagefind-ui-background);border-radius:var(--pagefind-ui-border-radius)}.pagefind-ui__drawer.svelte-e9gkc3{gap:calc(60px * var(--pagefind-ui-scale));display:flex;flex-direction:row;flex-wrap:wrap}.pagefind-ui__results-area.svelte-e9gkc3{min-width:min(calc(400px * var(--pagefind-ui-scale)),100%);flex:1000;margin-top:calc(20px * var(--pagefind-ui-scale))}.pagefind-ui__results.svelte-e9gkc3{padding:0}.pagefind-ui__message.svelte-e9gkc3{box-sizing:content-box;font-size:calc(16px * var(--pagefind-ui-scale));height:calc(24px * var(--pagefind-ui-scale));padding:calc(20px * var(--pagefind-ui-scale)) 0;display:flex;align-items:center;font-weight:700;margin-top:0}.pagefind-ui__button.svelte-e9gkc3{margin-top:calc(40px * var(--pagefind-ui-scale));border:var(--pagefind-ui-border-width) solid var(--pagefind-ui-border);border-radius:var(--pagefind-ui-border-radius);height:calc(48px * var(--pagefind-ui-scale));padding:0 calc(12px * var(--pagefind-ui-scale));font-size:calc(16px * var(--pagefind-ui-scale));color:var(--pagefind-ui-primary);background:var(--pagefind-ui-background);width:100%;text-align:center;font-weight:700;cursor:pointer}.pagefind-ui__button.svelte-e9gkc3:hover{border-color:var(--pagefind-ui-primary);color:var(--pagefind-ui-primary);background:var(--pagefind-ui-background)} diff --git a/pagefind/pagefind-ui.js b/pagefind/pagefind-ui.js new file mode 100644 index 0000000..a20be55 --- /dev/null +++ b/pagefind/pagefind-ui.js @@ -0,0 +1,2 @@ +(()=>{var Es=Object.defineProperty;var S=(n,e)=>{for(var t in e)Es(n,t,{get:e[t],enumerable:!0})};function j(){}function _t(n){return n()}function un(){return Object.create(null)}function G(n){n.forEach(_t)}function xe(n){return typeof n=="function"}function K(n,e){return n!=n?e==e:n!==e||n&&typeof n=="object"||typeof n=="function"}var Xe;function ie(n,e){return Xe||(Xe=document.createElement("a")),Xe.href=e,n===Xe.href}function cn(n){return Object.keys(n).length===0}var _n=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global,de=class{constructor(e){this.options=e,this._listeners="WeakMap"in _n?new WeakMap:void 0}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!==null&&e!==void 0?e:this._observer=new ResizeObserver(t=>{var s;for(let l of t)de.entries.set(l.target,l),(s=this._listeners.get(l.target))===null||s===void 0||s(l)})}};de.entries="WeakMap"in _n?new WeakMap:void 0;var fn=!1;function Rs(){fn=!0}function bs(){fn=!1}function b(n,e){n.appendChild(e)}function y(n,e,t){n.insertBefore(e,t||null)}function k(n){n.parentNode&&n.parentNode.removeChild(n)}function Q(n,e){for(let t=0;tn.removeEventListener(e,t,s)}function E(n,e,t){t==null?n.removeAttribute(e):n.getAttribute(e)!==t&&n.setAttribute(e,t)}function Cs(n){return Array.from(n.childNodes)}function N(n,e){e=""+e,n.data!==e&&(n.data=e)}function ft(n,e){n.value=e??""}function B(n,e,t){n.classList[t?"add":"remove"](e)}var $e=class{constructor(e=!1){this.is_svg=!1,this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,t,s=null){this.e||(this.is_svg?this.e=Ts(t.nodeName):this.e=C(t.nodeType===11?"TEMPLATE":t.nodeName),this.t=t.tagName!=="TEMPLATE"?t:t.content,this.c(e)),this.i(s)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(e){for(let t=0;tn.indexOf(s)===-1?e.push(s):t.push(s)),t.forEach(s=>s()),le=e}var Qe=new Set,ee;function ae(){ee={r:0,c:[],p:ee}}function oe(){ee.r||G(ee.c),ee=ee.p}function D(n,e){n&&n.i&&(Qe.delete(n),n.i(e))}function P(n,e,t,s){if(n&&n.o){if(Qe.has(n))return;Qe.add(n),ee.c.push(()=>{Qe.delete(n),s&&(t&&n.d(1),s())}),n.o(e)}else s&&s()}function pn(n,e){P(n,1,1,()=>{e.delete(n.key)})}function gn(n,e,t,s,l,r,i,a,o,h,c,m){let p=n.length,d=r.length,_=p,u={};for(;_--;)u[n[_].key]=_;let f=[],T=new Map,R=new Map,M=[];for(_=d;_--;){let v=m(l,r,_),F=t(v),O=i.get(F);O?s&&M.push(()=>O.p(v,e)):(O=h(F,v),O.c()),T.set(F,f[_]=O),F in u&&R.set(F,Math.abs(_-u[F]))}let U=new Set,X=new Set;function W(v){D(v,1),v.m(a,c),i.set(v.key,v),c=v.first,d--}for(;p&&d;){let v=f[d-1],F=n[p-1],O=v.key,V=F.key;v===F?(c=v.first,p--,d--):T.has(V)?!i.has(O)||U.has(O)?W(v):X.has(V)?p--:R.get(O)>R.get(V)?(X.add(O),W(v)):(U.add(V),p--):(o(F,i),p--)}for(;p--;){let v=n[p];T.has(v.key)||o(v,i)}for(;d;)W(f[d-1]);return G(M),f}var As=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],oa=new Set([...As]);function En(n,e,t){let s=n.$$.props[e];s!==void 0&&(n.$$.bound[s]=t,t(n.$$.ctx[s]))}function et(n){n&&n.c()}function me(n,e,t,s){let{fragment:l,after_update:r}=n.$$;l&&l.m(e,t),s||ct(()=>{let i=n.$$.on_mount.map(_t).filter(xe);n.$$.on_destroy?n.$$.on_destroy.push(...i):G(i),n.$$.on_mount=[]}),r.forEach(ct)}function ue(n,e){let t=n.$$;t.fragment!==null&&(Ms(t.after_update),G(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function vs(n,e){n.$$.dirty[0]===-1&&(se.push(n),ys(),n.$$.dirty.fill(0)),n.$$.dirty[e/31|0]|=1<{let _=d.length?d[0]:p;return h.ctx&&l(h.ctx[m],h.ctx[m]=_)&&(!h.skip_bound&&h.bound[m]&&h.bound[m](_),c&&vs(n,m)),p}):[],h.update(),c=!0,G(h.before_update),h.fragment=s?s(h.ctx):!1,e.target){if(e.hydrate){Rs();let m=Cs(e.target);h.fragment&&h.fragment.l(m),m.forEach(k)}else h.fragment&&h.fragment.c();e.intro&&D(n.$$.fragment),me(n,e.target,e.anchor,e.customElement),bs(),mn()}fe(o)}var ws;typeof HTMLElement=="function"&&(ws=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){let{on_mount:n}=this.$$;this.$$.on_disconnect=n.map(_t).filter(xe);for(let e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(n,e,t){this[n]=t}disconnectedCallback(){G(this.$$.on_disconnect)}$destroy(){ue(this,1),this.$destroy=j}$on(n,e){if(!xe(e))return j;let t=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return t.push(e),()=>{let s=t.indexOf(e);s!==-1&&t.splice(s,1)}}$set(n){this.$$set&&!cn(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}});var q=class{$destroy(){ue(this,1),this.$destroy=j}$on(e,t){if(!xe(t))return j;let s=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return s.push(t),()=>{let l=s.indexOf(t);l!==-1&&s.splice(l,1)}}$set(e){this.$$set&&!cn(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};function I(n){let e=typeof n=="string"?n.charCodeAt(0):n;return e>=97&&e<=122||e>=65&&e<=90}function $(n){let e=typeof n=="string"?n.charCodeAt(0):n;return e>=48&&e<=57}function Z(n){return I(n)||$(n)}var Rn=["art-lojban","cel-gaulish","no-bok","no-nyn","zh-guoyu","zh-hakka","zh-min","zh-min-nan","zh-xiang"];var mt={"en-gb-oed":"en-GB-oxendict","i-ami":"ami","i-bnn":"bnn","i-default":null,"i-enochian":null,"i-hak":"hak","i-klingon":"tlh","i-lux":"lb","i-mingo":null,"i-navajo":"nv","i-pwn":"pwn","i-tao":"tao","i-tay":"tay","i-tsu":"tsu","sgn-be-fr":"sfb","sgn-be-nl":"vgt","sgn-ch-de":"sgg","art-lojban":"jbo","cel-gaulish":null,"no-bok":"nb","no-nyn":"nn","zh-guoyu":"cmn","zh-hakka":"hak","zh-min":null,"zh-min-nan":"nan","zh-xiang":"hsn"};var Fs={}.hasOwnProperty;function tt(n,e={}){let t=bn(),s=String(n),l=s.toLowerCase(),r=0;if(n==null)throw new Error("Expected string, got `"+n+"`");if(Fs.call(mt,l)){let a=mt[l];return(e.normalize===void 0||e.normalize===null||e.normalize)&&typeof a=="string"?tt(a):(t[Rn.includes(l)?"regular":"irregular"]=s,t)}for(;I(l.charCodeAt(r))&&r<9;)r++;if(r>1&&r<9){if(t.language=s.slice(0,r),r<4){let a=0;for(;l.charCodeAt(r)===45&&I(l.charCodeAt(r+1))&&I(l.charCodeAt(r+2))&&I(l.charCodeAt(r+3))&&!I(l.charCodeAt(r+4));){if(a>2)return i(r,3,"Too many extended language subtags, expected at most 3 subtags");t.extendedLanguageSubtags.push(s.slice(r+1,r+4)),r+=4,a++}}for(l.charCodeAt(r)===45&&I(l.charCodeAt(r+1))&&I(l.charCodeAt(r+2))&&I(l.charCodeAt(r+3))&&I(l.charCodeAt(r+4))&&!I(l.charCodeAt(r+5))&&(t.script=s.slice(r+1,r+5),r+=5),l.charCodeAt(r)===45&&(I(l.charCodeAt(r+1))&&I(l.charCodeAt(r+2))&&!I(l.charCodeAt(r+3))?(t.region=s.slice(r+1,r+3),r+=3):$(l.charCodeAt(r+1))&&$(l.charCodeAt(r+2))&&$(l.charCodeAt(r+3))&&!$(l.charCodeAt(r+4))&&(t.region=s.slice(r+1,r+4),r+=4));l.charCodeAt(r)===45;){let a=r+1,o=a;for(;Z(l.charCodeAt(o));){if(o-a>7)return i(o,1,"Too long variant, expected at most 8 characters");o++}if(o-a>4||o-a>3&&$(l.charCodeAt(a)))t.variants.push(s.slice(a,o)),r=o;else break}for(;l.charCodeAt(r)===45&&!(l.charCodeAt(r+1)===120||!Z(l.charCodeAt(r+1))||l.charCodeAt(r+2)!==45||!Z(l.charCodeAt(r+3)));){let a=r+2,o=0;for(;l.charCodeAt(a)===45&&Z(l.charCodeAt(a+1))&&Z(l.charCodeAt(a+2));){let h=a+1;for(a=h+2,o++;Z(l.charCodeAt(a));){if(a-h>7)return i(a,2,"Too long extension, expected at most 8 characters");a++}}if(!o)return i(a,4,"Empty extension, extensions must have at least 2 characters of content");t.extensions.push({singleton:s.charAt(r+1),extensions:s.slice(r+3,a).split("-")}),r=a}}else r=0;if(r===0&&l.charCodeAt(r)===120||l.charCodeAt(r)===45&&l.charCodeAt(r+1)===120){r=r?r+2:1;let a=r;for(;l.charCodeAt(a)===45&&Z(l.charCodeAt(a+1));){let o=r+1;for(a=o;Z(l.charCodeAt(a));){if(a-o>7)return i(a,5,"Too long private-use area, expected at most 8 characters");a++}t.privateuse.push(s.slice(r+1,a)),r=a}}if(r!==s.length)return i(r,6,"Found superfluous content after tag");return t;function i(a,o,h){return e.warning&&e.warning(h,o,a),e.forgiving?t:bn()}}function bn(){return{language:null,extendedLanguageSubtags:[],script:null,region:null,variants:[],extensions:[],privateuse:[],irregular:null,regular:null}}function Tn(n,e,t){let s=n.slice();return s[8]=e[t][0],s[9]=e[t][1],s}function Hs(n){let e,t,s,l,r,i=n[0]&&Cn(n);return{c(){i&&i.c(),e=A(),t=C("div"),s=C("p"),s.textContent=`${n[3](30)}`,l=A(),r=C("p"),r.textContent=`${n[3](40)}`,E(s,"class","pagefind-ui__result-title pagefind-ui__loading svelte-j9e30"),E(r,"class","pagefind-ui__result-excerpt pagefind-ui__loading svelte-j9e30"),E(t,"class","pagefind-ui__result-inner svelte-j9e30")},m(a,o){i&&i.m(a,o),y(a,e,o),y(a,t,o),b(t,s),b(t,l),b(t,r)},p(a,o){a[0]?i||(i=Cn(a),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},d(a){i&&i.d(a),a&&k(e),a&&k(t)}}}function Ns(n){let e,t,s,l,r=n[1].meta?.title+"",i,a,o,h,c=n[1].excerpt+"",m,p=n[0]&&kn(n),d=n[2].length&&Sn(n);return{c(){p&&p.c(),e=A(),t=C("div"),s=C("p"),l=C("a"),i=w(r),o=A(),h=C("p"),m=A(),d&&d.c(),E(l,"class","pagefind-ui__result-link svelte-j9e30"),E(l,"href",a=n[1].meta?.url||n[1].url),E(s,"class","pagefind-ui__result-title svelte-j9e30"),E(h,"class","pagefind-ui__result-excerpt svelte-j9e30"),E(t,"class","pagefind-ui__result-inner svelte-j9e30")},m(_,u){p&&p.m(_,u),y(_,e,u),y(_,t,u),b(t,s),b(s,l),b(l,i),b(t,o),b(t,h),h.innerHTML=c,b(t,m),d&&d.m(t,null)},p(_,u){_[0]?p?p.p(_,u):(p=kn(_),p.c(),p.m(e.parentNode,e)):p&&(p.d(1),p=null),u&2&&r!==(r=_[1].meta?.title+"")&&N(i,r),u&2&&a!==(a=_[1].meta?.url||_[1].url)&&E(l,"href",a),u&2&&c!==(c=_[1].excerpt+"")&&(h.innerHTML=c),_[2].length?d?d.p(_,u):(d=Sn(_),d.c(),d.m(t,null)):d&&(d.d(1),d=null)},d(_){p&&p.d(_),_&&k(e),_&&k(t),d&&d.d()}}}function Cn(n){let e;return{c(){e=C("div"),E(e,"class","pagefind-ui__result-thumb pagefind-ui__loading svelte-j9e30")},m(t,s){y(t,e,s)},d(t){t&&k(e)}}}function kn(n){let e,t=n[1].meta.image&&yn(n);return{c(){e=C("div"),t&&t.c(),E(e,"class","pagefind-ui__result-thumb svelte-j9e30")},m(s,l){y(s,e,l),t&&t.m(e,null)},p(s,l){s[1].meta.image?t?t.p(s,l):(t=yn(s),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(s){s&&k(e),t&&t.d()}}}function yn(n){let e,t,s;return{c(){e=C("img"),E(e,"class","pagefind-ui__result-image svelte-j9e30"),ie(e.src,t=n[1].meta?.image)||E(e,"src",t),E(e,"alt",s=n[1].meta?.image_alt||n[1].meta?.title)},m(l,r){y(l,e,r)},p(l,r){r&2&&!ie(e.src,t=l[1].meta?.image)&&E(e,"src",t),r&2&&s!==(s=l[1].meta?.image_alt||l[1].meta?.title)&&E(e,"alt",s)},d(l){l&&k(e)}}}function Sn(n){let e,t=n[2],s=[];for(let l=0;ln.toLocaleUpperCase();function zs(n,e,t){let{show_images:s=!0}=e,{process_result:l=null}=e,{result:r={data:async()=>{}}}=e,i=["title","image","image_alt","url"],a,o=[],h=async m=>{t(1,a=await m.data()),t(1,a=l?.(a)??a),t(2,o=Object.entries(a.meta).filter(([p])=>!i.includes(p)))},c=(m=30)=>". ".repeat(Math.floor(10+Math.random()*m));return n.$$set=m=>{"show_images"in m&&t(0,s=m.show_images),"process_result"in m&&t(4,l=m.process_result),"result"in m&&t(5,r=m.result)},n.$$.update=()=>{if(n.$$.dirty&32)e:h(r)},[s,a,o,c,l,r]}var pt=class extends q{constructor(e){super(),Y(this,e,zs,Os,K,{show_images:0,process_result:4,result:5})}},vn=pt;function wn(n,e,t){let s=n.slice();return s[11]=e[t][0],s[12]=e[t][1],s}function Fn(n,e,t){let s=n.slice();return s[15]=e[t],s}function js(n){let e,t,s,l,r,i=n[0]&&Hn(n);return{c(){i&&i.c(),e=A(),t=C("div"),s=C("p"),s.textContent=`${n[5](30)}`,l=A(),r=C("p"),r.textContent=`${n[5](40)}`,E(s,"class","pagefind-ui__result-title pagefind-ui__loading svelte-4xnkmf"),E(r,"class","pagefind-ui__result-excerpt pagefind-ui__loading svelte-4xnkmf"),E(t,"class","pagefind-ui__result-inner svelte-4xnkmf")},m(a,o){i&&i.m(a,o),y(a,e,o),y(a,t,o),b(t,s),b(t,l),b(t,r)},p(a,o){a[0]?i||(i=Hn(a),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},d(a){i&&i.d(a),a&&k(e),a&&k(t)}}}function Ds(n){let e,t,s,l,r=n[1].meta?.title+"",i,a,o,h,c,m=n[0]&&Nn(n),p=n[4]&&zn(n),d=n[3],_=[];for(let f=0;fn.toLocaleUpperCase();function Is(n,e,t){let{show_images:s=!0}=e,{process_result:l=null}=e,{result:r={data:async()=>{}}}=e,i=["title","image","image_alt","url"],a,o=[],h=[],c=!1,m=(_,u)=>{if(_.length<=u)return _;let f=[..._].sort((T,R)=>R.locations.length-T.locations.length).slice(0,3).map(T=>T.url);return _.filter(T=>f.includes(T.url))},p=async _=>{t(1,a=await _.data()),t(1,a=l?.(a)??a),t(2,o=Object.entries(a.meta).filter(([u])=>!i.includes(u))),Array.isArray(a.sub_results)&&(t(4,c=a.sub_results?.[0]?.url===(a.meta?.url||a.url)),c?t(3,h=m(a.sub_results.slice(1),3)):t(3,h=m([...a.sub_results],3)))},d=(_=30)=>". ".repeat(Math.floor(10+Math.random()*_));return n.$$set=_=>{"show_images"in _&&t(0,s=_.show_images),"process_result"in _&&t(6,l=_.process_result),"result"in _&&t(7,r=_.result)},n.$$.update=()=>{if(n.$$.dirty&128)e:p(r)},[s,a,o,h,c,d,l,r]}var gt=class extends q{constructor(e){super(),Y(this,e,Is,Us,K,{show_images:0,process_result:6,result:7})}},Pn=gt;function Ln(n,e,t){let s=n.slice();return s[10]=e[t][0],s[11]=e[t][1],s[12]=e,s[13]=t,s}function qn(n,e,t){let s=n.slice();return s[14]=e[t][0],s[15]=e[t][1],s[16]=e,s[17]=t,s}function Bn(n){let e,t,s=n[4]("filters_label",n[5],n[6])+"",l,r,i=Object.entries(n[1]),a=[];for(let o=0;on.toLocaleUpperCase(),Jn=n=>n.toLowerCase();function Ls(n,e,t){let{available_filters:s=null}=e,{show_empty_filters:l=!0}=e,{open_filters:r=[]}=e,{translate:i=()=>""}=e,{automatic_translations:a={}}=e,{translations:o={}}=e,{selected_filters:h={}}=e,c=!1,m=!1;function p(d,_){h[`${d}:${_}`]=this.checked,t(0,h)}return n.$$set=d=>{"available_filters"in d&&t(1,s=d.available_filters),"show_empty_filters"in d&&t(2,l=d.show_empty_filters),"open_filters"in d&&t(3,r=d.open_filters),"translate"in d&&t(4,i=d.translate),"automatic_translations"in d&&t(5,a=d.automatic_translations),"translations"in d&&t(6,o=d.translations),"selected_filters"in d&&t(0,h=d.selected_filters)},n.$$.update=()=>{if(n.$$.dirty&258){e:if(s&&!c){t(8,c=!0);let d=Object.entries(s||{});d.length===1&&Object.entries(d[0][1])?.length<=6&&t(7,m=!0)}}},[h,s,l,r,i,a,o,m,c,p]}var Et=class extends q{constructor(e){super(),Y(this,e,Ls,Ps,K,{available_filters:1,show_empty_filters:2,open_filters:3,translate:4,automatic_translations:5,translations:6,selected_filters:0})}},Yn=Et;var Rt={};S(Rt,{comments:()=>Bs,default:()=>Gs,direction:()=>Ws,strings:()=>Vs,thanks_to:()=>qs});var qs="Jan Claasen ",Bs="",Ws="ltr",Vs={placeholder:"Soek",clear_search:"Opruim",load_more:"Laai nog resultate",search_label:"Soek hierdie webwerf",filters_label:"Filters",zero_results:"Geen resultate vir [SEARCH_TERM]",many_results:"[COUNT] resultate vir [SEARCH_TERM]",one_result:"[COUNT] resultate vir [SEARCH_TERM]",alt_search:"Geen resultate vir [SEARCH_TERM]. Toon resultate vir [DIFFERENT_TERM] in plaas daarvan",search_suggestion:"Geen resultate vir [SEARCH_TERM]. Probeer eerder een van die volgende terme:",searching:"Soek vir [SEARCH_TERM]"},Gs={thanks_to:qs,comments:Bs,direction:Ws,strings:Vs};var bt={};S(bt,{comments:()=>Js,default:()=>Xs,direction:()=>Ys,strings:()=>Zs,thanks_to:()=>Ks});var Ks="Maruf Alom ",Js="",Ys="ltr",Zs={placeholder:"\u0985\u09A8\u09C1\u09B8\u09A8\u09CD\u09A7\u09BE\u09A8 \u0995\u09B0\u09C1\u09A8",clear_search:"\u09AE\u09C1\u099B\u09C7 \u09AB\u09C7\u09B2\u09C1\u09A8",load_more:"\u0986\u09B0\u09CB \u09AB\u09B2\u09BE\u09AB\u09B2 \u09A6\u09C7\u0996\u09C1\u09A8",search_label:"\u098F\u0987 \u0993\u09DF\u09C7\u09AC\u09B8\u09BE\u0987\u099F\u09C7 \u0985\u09A8\u09C1\u09B8\u09A8\u09CD\u09A7\u09BE\u09A8 \u0995\u09B0\u09C1\u09A8",filters_label:"\u09AB\u09BF\u09B2\u09CD\u099F\u09BE\u09B0",zero_results:"[SEARCH_TERM] \u098F\u09B0 \u099C\u09A8\u09CD\u09AF \u0995\u09BF\u099B\u09C1 \u0996\u09C1\u0981\u099C\u09C7 \u09AA\u09BE\u0993\u09DF\u09BE \u09AF\u09BE\u09DF\u09A8\u09BF",many_results:"[COUNT]-\u099F\u09BF \u09AB\u09B2\u09BE\u09AB\u09B2 \u09AA\u09BE\u0993\u09DF\u09BE \u0997\u09BF\u09DF\u09C7\u099B\u09C7 [SEARCH_TERM] \u098F\u09B0 \u099C\u09A8\u09CD\u09AF",one_result:"[COUNT]-\u099F\u09BF \u09AB\u09B2\u09BE\u09AB\u09B2 \u09AA\u09BE\u0993\u09DF\u09BE \u0997\u09BF\u09DF\u09C7\u099B\u09C7 [SEARCH_TERM] \u098F\u09B0 \u099C\u09A8\u09CD\u09AF",alt_search:"\u0995\u09CB\u09A8 \u0995\u09BF\u099B\u09C1 \u0996\u09C1\u0981\u099C\u09C7 \u09AA\u09BE\u0993\u09DF\u09BE \u09AF\u09BE\u09DF\u09A8\u09BF [SEARCH_TERM] \u098F\u09B0 \u099C\u09A8\u09CD\u09AF. \u09AA\u09B0\u09BF\u09AC\u09B0\u09CD\u09A4\u09C7 [DIFFERENT_TERM] \u098F\u09B0 \u099C\u09A8\u09CD\u09AF \u09A6\u09C7\u0996\u09BE\u09A8\u09CB \u09B9\u099A\u09CD\u099B\u09C7",search_suggestion:"\u0995\u09CB\u09A8 \u0995\u09BF\u099B\u09C1 \u0996\u09C1\u0981\u099C\u09C7 \u09AA\u09BE\u0993\u09DF\u09BE \u09AF\u09BE\u09DF\u09A8\u09BF [SEARCH_TERM] \u098F\u09B0 \u09AC\u09BF\u09B7\u09DF\u09C7. \u09A8\u09BF\u09A8\u09CD\u09AE\u09C7\u09B0 \u09AC\u09BF\u09B7\u09DF\u09AC\u09B8\u09CD\u09A4\u09C1 \u0996\u09C1\u0981\u099C\u09C7 \u09A6\u09C7\u0996\u09C1\u09A8:",searching:"\u0985\u09A8\u09C1\u09B8\u09A8\u09CD\u09A7\u09BE\u09A8 \u099A\u09B2\u099B\u09C7 [SEARCH_TERM]..."},Xs={thanks_to:Ks,comments:Js,direction:Ys,strings:Zs};var Tt={};S(Tt,{comments:()=>xs,default:()=>tl,direction:()=>$s,strings:()=>el,thanks_to:()=>Qs});var Qs="Pablo Villaverde ",xs="",$s="ltr",el={placeholder:"Cerca",clear_search:"Netejar",load_more:"Veure m\xE9es resultats",search_label:"Cerca en aquest lloc",filters_label:"Filtres",zero_results:"No es van trobar resultats per [SEARCH_TERM]",many_results:"[COUNT] resultats trobats per [SEARCH_TERM]",one_result:"[COUNT] resultat trobat per [SEARCH_TERM]",alt_search:"No es van trobar resultats per [SEARCH_TERM]. Mostrant al seu lloc resultats per [DIFFERENT_TERM]",search_suggestion:"No es van trobar resultats per [SEARCH_TERM]. Proveu una de les cerques seg\xFCents:",searching:"Cercant [SEARCH_TERM]..."},tl={thanks_to:Qs,comments:xs,direction:$s,strings:el};var Ct={};S(Ct,{comments:()=>sl,default:()=>il,direction:()=>ll,strings:()=>rl,thanks_to:()=>nl});var nl="Dalibor Hon ",sl="",ll="ltr",rl={placeholder:"Hledat",clear_search:"Smazat",load_more:"Na\u010D\xEDst dal\u0161\xED v\xFDsledky",search_label:"Prohledat tuto str\xE1nku",filters_label:"Filtry",zero_results:"\u017D\xE1dn\xE9 v\xFDsledky pro [SEARCH_TERM]",many_results:"[COUNT] v\xFDsledk\u016F pro [SEARCH_TERM]",one_result:"[COUNT] v\xFDsledek pro [SEARCH_TERM]",alt_search:"\u017D\xE1dn\xE9 v\xFDsledky pro [SEARCH_TERM]. Zobrazuj\xED se v\xFDsledky pro [DIFFERENT_TERM]",search_suggestion:"\u017D\xE1dn\xE9 v\xFDsledky pro [SEARCH_TERM]. Souvisej\xEDc\xED v\xFDsledky hled\xE1n\xED:",searching:"Hled\xE1m [SEARCH_TERM]..."},il={thanks_to:nl,comments:sl,direction:ll,strings:rl};var kt={};S(kt,{comments:()=>ol,default:()=>_l,direction:()=>ul,strings:()=>cl,thanks_to:()=>al});var al="Jonas Smedegaard ",ol="",ul="ltr",cl={placeholder:"S\xF8g",clear_search:"Nulstil",load_more:"Indl\xE6s flere resultater",search_label:"S\xF8g p\xE5 dette website",filters_label:"Filtre",zero_results:"Ingen resultater for [SEARCH_TERM]",many_results:"[COUNT] resultater for [SEARCH_TERM]",one_result:"[COUNT] resultat for [SEARCH_TERM]",alt_search:"Ingen resultater for [SEARCH_TERM]. Viser resultater for [DIFFERENT_TERM] i stedet",search_suggestion:"Ingen resultater for [SEARCH_TERM]. Pr\xF8v et af disse s\xF8geord i stedet:",searching:"S\xF8ger efter [SEARCH_TERM]..."},_l={thanks_to:al,comments:ol,direction:ul,strings:cl};var yt={};S(yt,{comments:()=>dl,default:()=>pl,direction:()=>hl,strings:()=>ml,thanks_to:()=>fl});var fl="Jan Claasen ",dl="",hl="ltr",ml={placeholder:"Suche",clear_search:"L\xF6schen",load_more:"Mehr Ergebnisse laden",search_label:"Suche diese Seite",filters_label:"Filter",zero_results:"Keine Ergebnisse f\xFCr [SEARCH_TERM]",many_results:"[COUNT] Ergebnisse f\xFCr [SEARCH_TERM]",one_result:"[COUNT] Ergebnis f\xFCr [SEARCH_TERM]",alt_search:"Keine Ergebnisse f\xFCr [SEARCH_TERM]. Stattdessen werden Ergebnisse f\xFCr [DIFFERENT_TERM] angezeigt",search_suggestion:"Keine Ergebnisse f\xFCr [SEARCH_TERM]. Versuchen Sie eine der folgenden Suchen:",searching:"Suche f\xFCr [SEARCH_TERM]"},pl={thanks_to:fl,comments:dl,direction:hl,strings:ml};var St={};S(St,{comments:()=>El,default:()=>Tl,direction:()=>Rl,strings:()=>bl,thanks_to:()=>gl});var gl="Liam Bigelow ",El="",Rl="ltr",bl={placeholder:"Search",clear_search:"Clear",load_more:"Load more results",search_label:"Search this site",filters_label:"Filters",zero_results:"No results for [SEARCH_TERM]",many_results:"[COUNT] results for [SEARCH_TERM]",one_result:"[COUNT] result for [SEARCH_TERM]",alt_search:"No results for [SEARCH_TERM]. Showing results for [DIFFERENT_TERM] instead",search_suggestion:"No results for [SEARCH_TERM]. Try one of the following searches:",searching:"Searching for [SEARCH_TERM]..."},Tl={thanks_to:gl,comments:El,direction:Rl,strings:bl};var Mt={};S(Mt,{comments:()=>kl,default:()=>Ml,direction:()=>yl,strings:()=>Sl,thanks_to:()=>Cl});var Cl="Pablo Villaverde ",kl="",yl="ltr",Sl={placeholder:"Buscar",clear_search:"Limpiar",load_more:"Ver m\xE1s resultados",search_label:"Buscar en este sitio",filters_label:"Filtros",zero_results:"No se encontraron resultados para [SEARCH_TERM]",many_results:"[COUNT] resultados encontrados para [SEARCH_TERM]",one_result:"[COUNT] resultado encontrado para [SEARCH_TERM]",alt_search:"No se encontraron resultados para [SEARCH_TERM]. Mostrando en su lugar resultados para [DIFFERENT_TERM]",search_suggestion:"No se encontraron resultados para [SEARCH_TERM]. Prueba una de las siguientes b\xFAsquedas:",searching:"Buscando [SEARCH_TERM]..."},Ml={thanks_to:Cl,comments:kl,direction:yl,strings:Sl};var At={};S(At,{comments:()=>vl,default:()=>Hl,direction:()=>wl,strings:()=>Fl,thanks_to:()=>Al});var Al="Valtteri Laitinen ",vl="",wl="ltr",Fl={placeholder:"Haku",clear_search:"Tyhjenn\xE4",load_more:"Lataa lis\xE4\xE4 tuloksia",search_label:"Hae t\xE4lt\xE4 sivustolta",filters_label:"Suodattimet",zero_results:"Ei tuloksia haulle [SEARCH_TERM]",many_results:"[COUNT] tulosta haulle [SEARCH_TERM]",one_result:"[COUNT] tulos haulle [SEARCH_TERM]",alt_search:"Ei tuloksia haulle [SEARCH_TERM]. N\xE4ytet\xE4\xE4n tulokset sen sijaan haulle [DIFFERENT_TERM]",search_suggestion:"Ei tuloksia haulle [SEARCH_TERM]. Kokeile jotain seuraavista:",searching:"Haetaan [SEARCH_TERM]..."},Hl={thanks_to:Al,comments:vl,direction:wl,strings:Fl};var vt={};S(vt,{comments:()=>Ol,default:()=>Dl,direction:()=>zl,strings:()=>jl,thanks_to:()=>Nl});var Nl="Nicolas Friedli ",Ol="",zl="ltr",jl={placeholder:"Rechercher",clear_search:"Nettoyer",load_more:"Charger plus de r\xE9sultats",search_label:"Recherche sur ce site",filters_label:"Filtres",zero_results:"Pas de r\xE9sultat pour [SEARCH_TERM]",many_results:"[COUNT] r\xE9sultats pour [SEARCH_TERM]",one_result:"[COUNT] r\xE9sultat pour [SEARCH_TERM]",alt_search:"Pas de r\xE9sultat pour [SEARCH_TERM]. Montre les r\xE9sultats pour [DIFFERENT_TERM] \xE0 la place",search_suggestion:"Pas de r\xE9sultat pour [SEARCH_TERM]. Essayer une des recherches suivantes:",searching:"Recherche [SEARCH_TERM]..."},Dl={thanks_to:Nl,comments:Ol,direction:zl,strings:jl};var wt={};S(wt,{comments:()=>Il,default:()=>ql,direction:()=>Pl,strings:()=>Ll,thanks_to:()=>Ul});var Ul="Pablo Villaverde ",Il="",Pl="ltr",Ll={placeholder:"Buscar",clear_search:"Limpar",load_more:"Ver m\xE1is resultados",search_label:"Buscar neste sitio",filters_label:"Filtros",zero_results:"Non se atoparon resultados para [SEARCH_TERM]",many_results:"[COUNT] resultados atopados para [SEARCH_TERM]",one_result:"[COUNT] resultado atopado para [SEARCH_TERM]",alt_search:"Non se atoparon resultados para [SEARCH_TERM]. Amosando no seu lugar resultados para [DIFFERENT_TERM]",search_suggestion:"Non se atoparon resultados para [SEARCH_TERM]. Probe unha das seguintes pesquisas:",searching:"Buscando [SEARCH_TERM]..."},ql={thanks_to:Ul,comments:Il,direction:Pl,strings:Ll};var Ft={};S(Ft,{comments:()=>Wl,default:()=>Kl,direction:()=>Vl,strings:()=>Gl,thanks_to:()=>Bl});var Bl="Amit Yadav ",Wl="",Vl="ltr",Gl={placeholder:"\u0916\u094B\u091C\u0947\u0902",clear_search:"\u0938\u093E\u092B \u0915\u0930\u0947\u0902",load_more:"\u0914\u0930 \u0905\u0927\u093F\u0915 \u092A\u0930\u093F\u0923\u093E\u092E \u0932\u094B\u0921 \u0915\u0930\u0947\u0902",search_label:"\u0907\u0938 \u0938\u093E\u0907\u091F \u092E\u0947\u0902 \u0916\u094B\u091C\u0947\u0902",filters_label:"\u092B\u093C\u093F\u0932\u094D\u091F\u0930",zero_results:"\u0915\u094B\u0908 \u092A\u0930\u093F\u0923\u093E\u092E [SEARCH_TERM] \u0915\u0947 \u0932\u093F\u090F \u0928\u0939\u0940\u0902 \u092E\u093F\u0932\u093E",many_results:"[COUNT] \u092A\u0930\u093F\u0923\u093E\u092E [SEARCH_TERM] \u0915\u0947 \u0932\u093F\u090F \u092E\u093F\u0932\u0947",one_result:"[COUNT] \u092A\u0930\u093F\u0923\u093E\u092E [SEARCH_TERM] \u0915\u0947 \u0932\u093F\u090F \u092E\u093F\u0932\u093E",alt_search:"[SEARCH_TERM] \u0915\u0947 \u0932\u093F\u090F \u0915\u094B\u0908 \u092A\u0930\u093F\u0923\u093E\u092E \u0928\u0939\u0940\u0902 \u092E\u093F\u0932\u093E\u0964 \u0907\u0938\u0915\u0947 \u092C\u091C\u093E\u092F [DIFFERENT_TERM] \u0915\u0947 \u0932\u093F\u090F \u092A\u0930\u093F\u0923\u093E\u092E \u0926\u093F\u0916\u093E \u0930\u0939\u093E \u0939\u0948",search_suggestion:"[SEARCH_TERM] \u0915\u0947 \u0932\u093F\u090F \u0915\u094B\u0908 \u092A\u0930\u093F\u0923\u093E\u092E \u0928\u0939\u0940\u0902 \u092E\u093F\u0932\u093E\u0964 \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u0916\u094B\u091C\u094B\u0902 \u092E\u0947\u0902 \u0938\u0947 \u0915\u094B\u0908 \u090F\u0915 \u0906\u091C\u093C\u092E\u093E\u090F\u0902:",searching:"[SEARCH_TERM] \u0915\u0940 \u0916\u094B\u091C \u0915\u0940 \u091C\u093E \u0930\u0939\u0940 \u0939\u0948..."},Kl={thanks_to:Bl,comments:Wl,direction:Vl,strings:Gl};var Ht={};S(Ht,{comments:()=>Yl,default:()=>Ql,direction:()=>Zl,strings:()=>Xl,thanks_to:()=>Jl});var Jl="Diomed ",Yl="",Zl="ltr",Xl={placeholder:"Tra\u017Ei",clear_search:"O\u010Disti",load_more:"U\u010Ditaj vi\u0161e rezultata",search_label:"Pretra\u017Ei ovu stranicu",filters_label:"Filteri",zero_results:"Nema rezultata za [SEARCH_TERM]",many_results:"[COUNT] rezultata za [SEARCH_TERM]",one_result:"[COUNT] rezultat za [SEARCH_TERM]",alt_search:"Nema rezultata za [SEARCH_TERM]. Prikazujem rezultate za [DIFFERENT_TERM]",search_suggestion:"Nema rezultata za [SEARCH_TERM]. Poku\u0161aj s jednom od ovih pretraga:",searching:"Pretra\u017Eujem [SEARCH_TERM]..."},Ql={thanks_to:Jl,comments:Yl,direction:Zl,strings:Xl};var Nt={};S(Nt,{comments:()=>$l,default:()=>nr,direction:()=>er,strings:()=>tr,thanks_to:()=>xl});var xl="Adam Laki ",$l="",er="ltr",tr={placeholder:"Keres\xE9s",clear_search:"T\xF6rl\xE9s",load_more:"Tov\xE1bbi tal\xE1latok bet\xF6lt\xE9se",search_label:"Keres\xE9s az oldalon",filters_label:"Sz\u0171r\xE9s",zero_results:"Nincs tal\xE1lat a(z) [SEARCH_TERM] kifejez\xE9sre",many_results:"[COUNT] db tal\xE1lat a(z) [SEARCH_TERM] kifejez\xE9sre",one_result:"[COUNT] db tal\xE1lat a(z) [SEARCH_TERM] kifejez\xE9sre",alt_search:"Nincs tal\xE1lat a(z) [SEARCH_TERM] kifejez\xE9sre. Tal\xE1latok mutat\xE1sa ink\xE1bb a(z) [DIFFERENT_TERM] kifejez\xE9sre",search_suggestion:"Nincs tal\xE1lat a(z) [SEARCH_TERM] kifejez\xE9sre. Pr\xF3b\xE1ld meg a k\xF6vetkez\u0151 keres\xE9sek egyik\xE9t:",searching:"Keres\xE9s a(z) [SEARCH_TERM] kifejez\xE9sre..."},nr={thanks_to:xl,comments:$l,direction:er,strings:tr};var Ot={};S(Ot,{comments:()=>lr,default:()=>ar,direction:()=>rr,strings:()=>ir,thanks_to:()=>sr});var sr="Nixentric",lr="",rr="ltr",ir={placeholder:"Cari",clear_search:"Bersihkan",load_more:"Muat lebih banyak hasil",search_label:"Telusuri situs ini",filters_label:"Filter",zero_results:"[SEARCH_TERM] tidak ditemukan",many_results:"Ditemukan [COUNT] hasil untuk [SEARCH_TERM]",one_result:"Ditemukan [COUNT] hasil untuk [SEARCH_TERM]",alt_search:"[SEARCH_TERM] tidak ditemukan. Menampilkan hasil [DIFFERENT_TERM] sebagai gantinya",search_suggestion:"[SEARCH_TERM] tidak ditemukan. Coba salah satu pencarian berikut ini:",searching:"Mencari [SEARCH_TERM]..."},ar={thanks_to:sr,comments:lr,direction:rr,strings:ir};var zt={};S(zt,{comments:()=>ur,default:()=>fr,direction:()=>cr,strings:()=>_r,thanks_to:()=>or});var or="Cosette Bruhns Alonso, Andrew Janco ",ur="",cr="ltr",_r={placeholder:"Cerca",clear_search:"Cancella la cronologia",load_more:"Mostra pi\xF9 risultati",search_label:"Cerca nel sito",filters_label:"Filtri di ricerca",zero_results:"Nessun risultato per [SEARCH_TERM]",many_results:"[COUNT] risultati per [SEARCH_TERM]",one_result:"[COUNT] risultato per [SEARCH_TERM]",alt_search:"Nessun risultato per [SEARCH_TERM]. Mostrando risultati per [DIFFERENT_TERM] come alternativa.",search_suggestion:"Nessun risultato per [SEARCH_TERM]. Prova una delle seguenti ricerche:",searching:"Cercando [SEARCH_TERM]..."},fr={thanks_to:or,comments:ur,direction:cr,strings:_r};var jt={};S(jt,{comments:()=>hr,default:()=>gr,direction:()=>mr,strings:()=>pr,thanks_to:()=>dr});var dr="Tate",hr="",mr="ltr",pr={placeholder:"\u691C\u7D22",clear_search:"\u30AF\u30EA\u30A2",load_more:"\u6B21\u3092\u8AAD\u307F\u8FBC\u3080",search_label:"\u3053\u306E\u30B5\u30A4\u30C8\u3092\u691C\u7D22",filters_label:"\u30D5\u30A3\u30EB\u30BF",zero_results:"[SEARCH_TERM]\u306E\u691C\u7D22\u306B\u4E00\u81F4\u3059\u308B\u60C5\u5831\u306F\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F",many_results:"[SEARCH_TERM]\u306E[COUNT]\u4EF6\u306E\u691C\u7D22\u7D50\u679C",one_result:"[SEARCH_TERM]\u306E[COUNT]\u4EF6\u306E\u691C\u7D22\u7D50\u679C",alt_search:"[SEARCH_TERM]\u306E\u691C\u7D22\u306B\u4E00\u81F4\u3059\u308B\u60C5\u5831\u306F\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002[DIFFERENT_TERM]\u306E\u691C\u7D22\u7D50\u679C\u3092\u8868\u793A\u3057\u3066\u3044\u307E\u3059",search_suggestion:"[SEARCH_TERM]\u306E\u691C\u7D22\u306B\u4E00\u81F4\u3059\u308B\u60C5\u5831\u306F\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u6B21\u306E\u3044\u305A\u308C\u304B\u306E\u691C\u7D22\u3092\u8A66\u3057\u3066\u304F\u3060\u3055\u3044",searching:"[SEARCH_TERM]\u3092\u691C\u7D22\u3057\u3066\u3044\u307E\u3059"},gr={thanks_to:dr,comments:hr,direction:mr,strings:pr};var Dt={};S(Dt,{comments:()=>Rr,default:()=>Cr,direction:()=>br,strings:()=>Tr,thanks_to:()=>Er});var Er="Seokho Son ",Rr="",br="ltr",Tr={placeholder:"\uAC80\uC0C9\uC5B4",clear_search:"\uBE44\uC6B0\uAE30",load_more:"\uAC80\uC0C9 \uACB0\uACFC \uB354 \uBCF4\uAE30",search_label:"\uC0AC\uC774\uD2B8 \uAC80\uC0C9",filters_label:"\uD544\uD130",zero_results:"[SEARCH_TERM]\uC5D0 \uB300\uD55C \uACB0\uACFC \uC5C6\uC74C",many_results:"[SEARCH_TERM]\uC5D0 \uB300\uD55C \uACB0\uACFC [COUNT]\uAC74",one_result:"[SEARCH_TERM]\uC5D0 \uB300\uD55C \uACB0\uACFC [COUNT]\uAC74",alt_search:"[SEARCH_TERM]\uC5D0 \uB300\uD55C \uACB0\uACFC \uC5C6\uC74C. [DIFFERENT_TERM]\uC5D0 \uB300\uD55C \uACB0\uACFC",search_suggestion:"[SEARCH_TERM]\uC5D0 \uB300\uD55C \uACB0\uACFC \uC5C6\uC74C. \uCD94\uCC9C \uAC80\uC0C9\uC5B4: ",searching:"[SEARCH_TERM] \uAC80\uC0C9 \uC911..."},Cr={thanks_to:Er,comments:Rr,direction:br,strings:Tr};var Ut={};S(Ut,{comments:()=>yr,default:()=>Ar,direction:()=>Sr,strings:()=>Mr,thanks_to:()=>kr});var kr="",yr="",Sr="ltr",Mr={placeholder:"Rapu",clear_search:"Whakakore",load_more:"Whakauta \u0113tahi otinga k\u0113",search_label:"Rapu",filters_label:"T\u0101tari",zero_results:"Otinga kore ki [SEARCH_TERM]",many_results:"[COUNT] otinga ki [SEARCH_TERM]",one_result:"[COUNT] otinga ki [SEARCH_TERM]",alt_search:"Otinga kore ki [SEARCH_TERM]. Otinga k\u0113 ki [DIFFERENT_TERM]",search_suggestion:"Otinga kore ki [SEARCH_TERM]. whakam\u0101tau ki ng\u0101 mea atu:",searching:"Rapu ki [SEARCH_TERM]..."},Ar={thanks_to:kr,comments:yr,direction:Sr,strings:Mr};var It={};S(It,{comments:()=>wr,default:()=>Nr,direction:()=>Fr,strings:()=>Hr,thanks_to:()=>vr});var vr="Paul van Brouwershaven",wr="",Fr="ltr",Hr={placeholder:"Zoeken",clear_search:"Reset",load_more:"Meer resultaten laden",search_label:"Doorzoek deze site",filters_label:"Filters",zero_results:"Geen resultaten voor [SEARCH_TERM]",many_results:"[COUNT] resultaten voor [SEARCH_TERM]",one_result:"[COUNT] resultaat voor [SEARCH_TERM]",alt_search:"Geen resultaten voor [SEARCH_TERM]. In plaats daarvan worden resultaten voor [DIFFERENT_TERM] weergegeven",search_suggestion:"Geen resultaten voor [SEARCH_TERM]. Probeer een van de volgende zoekopdrachten:",searching:"Zoeken naar [SEARCH_TERM]..."},Nr={thanks_to:vr,comments:wr,direction:Fr,strings:Hr};var Pt={};S(Pt,{comments:()=>zr,default:()=>Ur,direction:()=>jr,strings:()=>Dr,thanks_to:()=>Or});var Or="Christopher Wingate",zr="",jr="ltr",Dr={placeholder:"S\xF8k",clear_search:"Fjern",load_more:"Last flere resultater",search_label:"S\xF8k p\xE5 denne siden",filters_label:"Filtre",zero_results:"Ingen resultater for [SEARCH_TERM]",many_results:"[COUNT] resultater for [SEARCH_TERM]",one_result:"[COUNT] resultat for [SEARCH_TERM]",alt_search:"Ingen resultater for [SEARCH_TERM]. Viser resultater for [DIFFERENT_TERM] i stedet",search_suggestion:"Ingen resultater for [SEARCH_TERM]. Pr\xF8v en av disse s\xF8keordene i stedet:",searching:"S\xF8ker etter [SEARCH_TERM]"},Ur={thanks_to:Or,comments:zr,direction:jr,strings:Dr};var Lt={};S(Lt,{comments:()=>Pr,default:()=>Br,direction:()=>Lr,strings:()=>qr,thanks_to:()=>Ir});var Ir="",Pr="",Lr="ltr",qr={placeholder:"Szukaj",clear_search:"Wyczy\u015B\u0107",load_more:"Za\u0142aduj wi\u0119cej",search_label:"Przeszukaj t\u0119 stron\u0119",filters_label:"Filtry",zero_results:"Brak wynik\xF3w dla [SEARCH_TERM]",many_results:"[COUNT] wynik\xF3w dla [SEARCH_TERM]",one_result:"[COUNT] wynik dla [SEARCH_TERM]",alt_search:"Brak wynik\xF3w dla [SEARCH_TERM]. Wy\u015Bwietlam wyniki dla [DIFFERENT_TERM]",search_suggestion:"Brak wynik\xF3w dla [SEARCH_TERM]. Pokrewne wyniki wyszukiwania:",searching:"Szukam [SEARCH_TERM]..."},Br={thanks_to:Ir,comments:Pr,direction:Lr,strings:qr};var qt={};S(qt,{comments:()=>Vr,default:()=>Jr,direction:()=>Gr,strings:()=>Kr,thanks_to:()=>Wr});var Wr="Jonatah",Vr="",Gr="ltr",Kr={placeholder:"Pesquisar",clear_search:"Limpar",load_more:"Ver mais resultados",search_label:"Pesquisar",filters_label:"Filtros",zero_results:"Nenhum resultado encontrado para [SEARCH_TERM]",many_results:"[COUNT] resultados encontrados para [SEARCH_TERM]",one_result:"[COUNT] resultado encontrado para [SEARCH_TERM]",alt_search:"Nenhum resultado encontrado para [SEARCH_TERM]. Exibindo resultados para [DIFFERENT_TERM]",search_suggestion:"Nenhum resultado encontrado para [SEARCH_TERM]. Tente uma das seguintes pesquisas:",searching:"Pesquisando por [SEARCH_TERM]..."},Jr={thanks_to:Wr,comments:Vr,direction:Gr,strings:Kr};var Bt={};S(Bt,{comments:()=>Zr,default:()=>xr,direction:()=>Xr,strings:()=>Qr,thanks_to:()=>Yr});var Yr="Bogdan Mateescu ",Zr="",Xr="ltr",Qr={placeholder:"C\u0103utare",clear_search:"\u015Eterge\u0163i",load_more:"\xCEnc\u0103rca\u021Bi mai multe rezultate",search_label:"C\u0103uta\u021Bi \xEEn acest site",filters_label:"Filtre",zero_results:"Niciun rezultat pentru [SEARCH_TERM]",many_results:"[COUNT] rezultate pentru [SEARCH_TERM]",one_result:"[COUNT] rezultat pentru [SEARCH_TERM]",alt_search:"Niciun rezultat pentru [SEARCH_TERM]. Se afi\u0219eaz\u0103 \xEEn schimb rezultatele pentru [DIFFERENT_TERM]",search_suggestion:"Niciun rezultat pentru [SEARCH_TERM]. \xCEncerca\u021Bi una dintre urm\u0103toarele c\u0103ut\u0103ri:",searching:"Se caut\u0103 dup\u0103: [SEARCH_TERM]..."},xr={thanks_to:Yr,comments:Zr,direction:Xr,strings:Qr};var Wt={};S(Wt,{comments:()=>ei,default:()=>si,direction:()=>ti,strings:()=>ni,thanks_to:()=>$r});var $r="Aleksandr Gordeev",ei="",ti="ltr",ni={placeholder:"\u041F\u043E\u0438\u0441\u043A",clear_search:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u043F\u043E\u043B\u0435",load_more:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0435\u0449\u0435",search_label:"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443",filters_label:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",zero_results:"\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u043F\u043E \u0437\u0430\u043F\u0440\u043E\u0441\u0443: [SEARCH_TERM]",many_results:"[COUNT] \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432 \u043F\u043E \u0437\u0430\u043F\u0440\u043E\u0441\u0443: [SEARCH_TERM]",one_result:"[COUNT] \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u043F\u043E \u0437\u0430\u043F\u0440\u043E\u0441\u0443: [SEARCH_TERM]",alt_search:"\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u043F\u043E \u0437\u0430\u043F\u0440\u043E\u0441\u0443: [SEARCH_TERM]. \u041F\u043E\u043A\u0430\u0437\u0430\u043D\u044B \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E \u0437\u0430\u043F\u0440\u043E\u0441\u0443: [DIFFERENT_TERM]",search_suggestion:"\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u043F\u043E \u0437\u0430\u043F\u0440\u043E\u0441\u0443: [SEARCH_TERM]. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043E\u0434\u0438\u043D \u0438\u0437 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043D\u0442\u043E\u0432",searching:"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0437\u0430\u043F\u0440\u043E\u0441\u0443: [SEARCH_TERM]"},si={thanks_to:$r,comments:ei,direction:ti,strings:ni};var Vt={};S(Vt,{comments:()=>ri,default:()=>oi,direction:()=>ii,strings:()=>ai,thanks_to:()=>li});var li="Andrija Sagicc",ri="",ii="ltr",ai={placeholder:"\u041F\u0440\u0435\u0442\u0440\u0430\u0433\u0430",clear_search:"\u0411\u0440\u0438\u0441\u0430\u045A\u0435",load_more:"\u041F\u0440\u0438\u043A\u0430\u0437 \u0432\u0438\u0448\u0435 \u0440\u0435\u0437\u0443\u043B\u0442\u0430\u0442\u0430",search_label:"\u041F\u0440\u0435\u0442\u0440\u0430\u0433\u0430 \u0441\u0430\u0458\u0442\u0430",filters_label:"\u0424\u0438\u043B\u0442\u0435\u0440\u0438",zero_results:"\u041D\u0435\u043C\u0430 \u0440\u0435\u0437\u0443\u043B\u0442\u0430\u0442\u0430 \u0437\u0430 [SEARCH_TERM]",many_results:"[COUNT] \u0440\u0435\u0437\u0443\u043B\u0442\u0430\u0442\u0430 \u0437\u0430 [SEARCH_TERM]",one_result:"[COUNT] \u0440\u0435\u0437\u0443\u043B\u0442\u0430\u0442\u0430 \u0437\u0430 [SEARCH_TERM]",alt_search:"\u041D\u0435\u043C\u0430 \u0440\u0435\u0437\u0443\u043B\u0442\u0430\u0442\u0430 \u0437\u0430 [SEARCH_TERM]. \u041F\u0440\u0438\u043A\u0430\u0437 \u0434\u043E\u0434\u0430\u0442\u043D\u0438\u043A \u0440\u0435\u0437\u0443\u043B\u0442\u0430\u0442\u0430 \u0437\u0430 [DIFFERENT_TERM]",search_suggestion:"\u041D\u0435\u043C\u0430 \u0440\u0435\u0437\u0443\u043B\u0442\u0430\u0442\u0430 \u0437\u0430 [SEARCH_TERM]. \u041F\u043E\u043A\u0443\u0448\u0430\u0458\u0442\u0435 \u0441\u0430 \u043D\u0435\u043A\u043E\u043C \u043E\u0434 \u0441\u043B\u0435\u0434\u0435\u045B\u0438\u0445 \u043F\u0440\u0435\u0442\u0440\u0430\u0433\u0430:",searching:"\u041F\u0440\u0435\u0442\u0440\u0430\u0433\u0430 \u0442\u0435\u0440\u043C\u0438\u043D\u0430 [SEARCH_TERM]..."},oi={thanks_to:li,comments:ri,direction:ii,strings:ai};var Gt={};S(Gt,{comments:()=>ci,default:()=>di,direction:()=>_i,strings:()=>fi,thanks_to:()=>ui});var ui="Montazar Al-Jaber ",ci="",_i="ltr",fi={placeholder:"S\xF6k",clear_search:"Rensa",load_more:"Visa fler tr\xE4ffar",search_label:"S\xF6k p\xE5 denna sida",filters_label:"Filter",zero_results:"[SEARCH_TERM] gav inga tr\xE4ffar",many_results:"[SEARCH_TERM] gav [COUNT] tr\xE4ffar",one_result:"[SEARCH_TERM] gav [COUNT] tr\xE4ff",alt_search:"[SEARCH_TERM] gav inga tr\xE4ffar. Visar resultat f\xF6r [DIFFERENT_TERM] ist\xE4llet",search_suggestion:"[SEARCH_TERM] gav inga tr\xE4ffar. F\xF6rs\xF6k igen med en av f\xF6ljande s\xF6kord:",searching:"S\xF6ker efter [SEARCH_TERM]..."},di={thanks_to:ui,comments:ci,direction:_i,strings:fi};var Kt={};S(Kt,{comments:()=>mi,default:()=>Ei,direction:()=>pi,strings:()=>gi,thanks_to:()=>hi});var hi="",mi="",pi="ltr",gi={placeholder:"\u0BA4\u0BC7\u0B9F\u0BC1\u0B95",clear_search:"\u0B85\u0BB4\u0BBF\u0B95\u0BCD\u0B95\u0BC1\u0B95",load_more:"\u0BAE\u0BC7\u0BB2\u0BC1\u0BAE\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0BC1\u0B95\u0BB3\u0BC8\u0B95\u0BCD \u0B95\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B95",search_label:"\u0B87\u0BA8\u0BCD\u0BA4 \u0BA4\u0BB3\u0BA4\u0BCD\u0BA4\u0BBF\u0BB2\u0BCD \u0BA4\u0BC7\u0B9F\u0BC1\u0B95",filters_label:"\u0BB5\u0B9F\u0BBF\u0B95\u0B9F\u0BCD\u0B9F\u0BB2\u0BCD\u0B95\u0BB3\u0BCD",zero_results:"[SEARCH_TERM] \u0B95\u0BCD\u0B95\u0BBE\u0BA9 \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0BC1\u0B95\u0BB3\u0BCD \u0B87\u0BB2\u0BCD\u0BB2\u0BC8",many_results:"[SEARCH_TERM] \u0B95\u0BCD\u0B95\u0BBE\u0BA9 [COUNT] \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0BC1\u0B95\u0BB3\u0BCD",one_result:"[SEARCH_TERM] \u0B95\u0BCD\u0B95\u0BBE\u0BA9 \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0BC1",alt_search:"[SEARCH_TERM] \u0B87\u0BA4\u0BCD\u0BA4\u0BC7\u0B9F\u0BB2\u0BC1\u0B95\u0BCD\u0B95\u0BBE\u0BA9 \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0BC1\u0B95\u0BB3\u0BCD \u0B87\u0BB2\u0BCD\u0BB2\u0BC8, \u0B87\u0BA8\u0BCD\u0BA4 \u0BA4\u0BC7\u0B9F\u0BB2\u0BCD\u0B95\u0BB3\u0BC1\u0B95\u0BCD\u0B95\u0BBE\u0BA9 \u0B92\u0BA4\u0BCD\u0BA4 \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0BC1\u0B95\u0BB3\u0BCD [DIFFERENT_TERM]",search_suggestion:"[SEARCH_TERM] \u0B87\u0BA4\u0BCD \u0BA4\u0BC7\u0B9F\u0BB2\u0BC1\u0B95\u0BCD\u0B95\u0BBE\u0BA9 \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0BC1\u0B95\u0BB3\u0BCD \u0B87\u0BB2\u0BCD\u0BB2\u0BC8.\u0B87\u0BA4\u0BB1\u0BCD\u0B95\u0BC1 \u0BAA\u0BA4\u0BBF\u0BB2\u0BC0\u0B9F\u0BBE\u0BA9 \u0BA4\u0BC7\u0B9F\u0BB2\u0BCD\u0B95\u0BB3\u0BC8 \u0BA4\u0BC7\u0B9F\u0BC1\u0B95:",searching:"[SEARCH_TERM] \u0BA4\u0BC7\u0B9F\u0BAA\u0BCD\u0BAA\u0B9F\u0BC1\u0B95\u0BBF\u0BA9\u0BCD\u0BB1\u0BA4\u0BC1"},Ei={thanks_to:hi,comments:mi,direction:pi,strings:gi};var Jt={};S(Jt,{comments:()=>bi,default:()=>ki,direction:()=>Ti,strings:()=>Ci,thanks_to:()=>Ri});var Ri="Taylan \xD6zg\xFCr Bildik",bi="",Ti="ltr",Ci={placeholder:"Ara\u015Ft\u0131r",clear_search:"Temizle",load_more:"Daha fazla sonu\xE7",search_label:"Site genelinde arama",filters_label:"Filtreler",zero_results:"[SEARCH_TERM] i\xE7in sonu\xE7 yok",many_results:"[SEARCH_TERM] i\xE7in [COUNT] sonu\xE7 bulundu",one_result:"[SEARCH_TERM] i\xE7in [COUNT] sonu\xE7 bulundu",alt_search:"[SEARCH_TERM] i\xE7in sonu\xE7 yok. Bunun yerine [DIFFERENT_TERM] i\xE7in sonu\xE7lar g\xF6steriliyor",search_suggestion:"[SEARCH_TERM] i\xE7in sonu\xE7 yok. Alternatif olarak a\u015Fa\u011F\u0131daki kelimelerden birini deneyebilirsiniz:",searching:"[SEARCH_TERM] ara\u015Ft\u0131r\u0131l\u0131yor..."},ki={thanks_to:Ri,comments:bi,direction:Ti,strings:Ci};var Yt={};S(Yt,{comments:()=>Si,default:()=>vi,direction:()=>Mi,strings:()=>Ai,thanks_to:()=>yi});var yi="Vladyslav Lyshenko ",Si="",Mi="ltr",Ai={placeholder:"\u041F\u043E\u0448\u0443\u043A",clear_search:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u043F\u043E\u043B\u0435",load_more:"\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0438\u0442\u0438 \u0449\u0435",search_label:"\u041F\u043E\u0448\u0443\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443",filters_label:"\u0424\u0456\u043B\u044C\u0442\u0440\u0438",zero_results:"\u041D\u0456\u0447\u043E\u0433\u043E \u043D\u0435 \u0437\u043D\u0430\u0439\u0434\u0435\u043D\u043E \u0437\u0430 \u0437\u0430\u043F\u0438\u0442\u043E\u043C: [SEARCH_TERM]",many_results:"[COUNT] \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0456\u0432 \u043D\u0430 \u0437\u0430\u043F\u0438\u0442: [SEARCH_TERM]",one_result:"[COUNT] \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u0437\u0430 \u0437\u0430\u043F\u0438\u0442\u043E\u043C: [SEARCH_TERM]",alt_search:"\u041D\u0456\u0447\u043E\u0433\u043E \u043D\u0435 \u0437\u043D\u0430\u0439\u0434\u0435\u043D\u043E \u043D\u0430 \u0437\u0430\u043F\u0438\u0442: [SEARCH_TERM]. \u041F\u043E\u043A\u0430\u0437\u0430\u043D\u043E \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0438 \u043D\u0430 \u0437\u0430\u043F\u0438\u0442: [DIFFERENT_TERM]",search_suggestion:"\u041D\u0456\u0447\u043E\u0433\u043E \u043D\u0435 \u0437\u043D\u0430\u0439\u0434\u0435\u043D\u043E \u043D\u0430 \u0437\u0430\u043F\u0438\u0442: [SEARCH_TERM]. \u0421\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043E\u0434\u0438\u043D \u0456\u0437 \u0442\u0430\u043A\u0438\u0445 \u0432\u0430\u0440\u0456\u0430\u043D\u0442\u0456\u0432",searching:"\u041F\u043E\u0448\u0443\u043A \u0437\u0430 \u0437\u0430\u043F\u0438\u0442\u043E\u043C: [SEARCH_TERM]"},vi={thanks_to:yi,comments:Si,direction:Mi,strings:Ai};var Zt={};S(Zt,{comments:()=>Fi,default:()=>Oi,direction:()=>Hi,strings:()=>Ni,thanks_to:()=>wi});var wi="Long Nhat Nguyen",Fi="",Hi="ltr",Ni={placeholder:"T\xECm ki\u1EBFm",clear_search:"X\xF3a",load_more:"Nhi\u1EC1u k\u1EBFt qu\u1EA3 h\u01A1n",search_label:"T\xECm ki\u1EBFm trong trang n\xE0y",filters_label:"B\u1ED9 l\u1ECDc",zero_results:"Kh\xF4ng t\xECm th\u1EA5y k\u1EBFt qu\u1EA3 cho [SEARCH_TERM]",many_results:"[COUNT] k\u1EBFt qu\u1EA3 cho [SEARCH_TERM]",one_result:"[COUNT] k\u1EBFt qu\u1EA3 cho [SEARCH_TERM]",alt_search:"Kh\xF4ng t\xECm th\u1EA5y k\u1EBFt qu\u1EA3 cho [SEARCH_TERM]. Ki\u1EC3m th\u1ECB k\u1EBFt qu\u1EA3 thay th\u1EBF v\u1EDBi [DIFFERENT_TERM]",search_suggestion:"Kh\xF4ng t\xECm th\u1EA5y k\u1EBFt qu\u1EA3 cho [SEARCH_TERM]. Th\u1EED m\u1ED9t trong c\xE1c t\xECm ki\u1EBFm:",searching:"\u0110ang t\xECm ki\u1EBFm cho [SEARCH_TERM]..."},Oi={thanks_to:wi,comments:Fi,direction:Hi,strings:Ni};var Xt={};S(Xt,{comments:()=>ji,default:()=>Ii,direction:()=>Di,strings:()=>Ui,thanks_to:()=>zi});var zi="Amber Song",ji="",Di="ltr",Ui={placeholder:"\u641C\u7D22",clear_search:"\u6E05\u9664",load_more:"\u52A0\u8F7D\u66F4\u591A\u7ED3\u679C",search_label:"\u7AD9\u5185\u641C\u7D22",filters_label:"\u7B5B\u9009",zero_results:"\u672A\u627E\u5230 [SEARCH_TERM] \u7684\u76F8\u5173\u7ED3\u679C",many_results:"\u627E\u5230 [COUNT] \u4E2A [SEARCH_TERM] \u7684\u76F8\u5173\u7ED3\u679C",one_result:"\u627E\u5230 [COUNT] \u4E2A [SEARCH_TERM] \u7684\u76F8\u5173\u7ED3\u679C",alt_search:"\u672A\u627E\u5230 [SEARCH_TERM] \u7684\u76F8\u5173\u7ED3\u679C\u3002\u6539\u4E3A\u663E\u793A [DIFFERENT_TERM] \u7684\u76F8\u5173\u7ED3\u679C",search_suggestion:"\u672A\u627E\u5230 [SEARCH_TERM] \u7684\u76F8\u5173\u7ED3\u679C\u3002\u8BF7\u5C1D\u8BD5\u4EE5\u4E0B\u641C\u7D22\u3002",searching:"\u6B63\u5728\u641C\u7D22 [SEARCH_TERM]..."},Ii={thanks_to:zi,comments:ji,direction:Di,strings:Ui};var Qt={};S(Qt,{comments:()=>Li,default:()=>Wi,direction:()=>qi,strings:()=>Bi,thanks_to:()=>Pi});var Pi="Amber Song",Li="",qi="ltr",Bi={placeholder:"\u641C\u7D22",clear_search:"\u6E05\u9664",load_more:"\u52A0\u8F09\u66F4\u591A\u7D50\u679C",search_label:"\u7AD9\u5167\u641C\u7D22",filters_label:"\u7BE9\u9078",zero_results:"\u672A\u627E\u5230 [SEARCH_TERM] \u7684\u76F8\u95DC\u7D50\u679C",many_results:"\u627E\u5230 [COUNT] \u500B [SEARCH_TERM] \u7684\u76F8\u95DC\u7D50\u679C",one_result:"\u627E\u5230 [COUNT] \u500B [SEARCH_TERM] \u7684\u76F8\u95DC\u7D50\u679C",alt_search:"\u672A\u627E\u5230 [SEARCH_TERM] \u7684\u76F8\u95DC\u7D50\u679C\u3002\u6539\u70BA\u986F\u793A [DIFFERENT_TERM] \u7684\u76F8\u95DC\u7D50\u679C",search_suggestion:"\u672A\u627E\u5230 [SEARCH_TERM] \u7684\u76F8\u95DC\u7D50\u679C\u3002\u8ACB\u5617\u8A66\u4EE5\u4E0B\u641C\u7D22\u3002",searching:"\u6B63\u5728\u641C\u7D22 [SEARCH_TERM]..."},Wi={thanks_to:Pi,comments:Li,direction:qi,strings:Bi};var xt={};S(xt,{comments:()=>Gi,default:()=>Yi,direction:()=>Ki,strings:()=>Ji,thanks_to:()=>Vi});var Vi="Amber Song",Gi="",Ki="ltr",Ji={placeholder:"\u641C\u7D22",clear_search:"\u6E05\u9664",load_more:"\u52A0\u8F7D\u66F4\u591A\u7ED3\u679C",search_label:"\u7AD9\u5185\u641C\u7D22",filters_label:"\u7B5B\u9009",zero_results:"\u672A\u627E\u5230 [SEARCH_TERM] \u7684\u76F8\u5173\u7ED3\u679C",many_results:"\u627E\u5230 [COUNT] \u4E2A [SEARCH_TERM] \u7684\u76F8\u5173\u7ED3\u679C",one_result:"\u627E\u5230 [COUNT] \u4E2A [SEARCH_TERM] \u7684\u76F8\u5173\u7ED3\u679C",alt_search:"\u672A\u627E\u5230 [SEARCH_TERM] \u7684\u76F8\u5173\u7ED3\u679C\u3002\u6539\u4E3A\u663E\u793A [DIFFERENT_TERM] \u7684\u76F8\u5173\u7ED3\u679C",search_suggestion:"\u672A\u627E\u5230 [SEARCH_TERM] \u7684\u76F8\u5173\u7ED3\u679C\u3002\u8BF7\u5C1D\u8BD5\u4EE5\u4E0B\u641C\u7D22\u3002",searching:"\u6B63\u5728\u641C\u7D22 [SEARCH_TERM]..."},Yi={thanks_to:Vi,comments:Gi,direction:Ki,strings:Ji};var Zi=[Rt,bt,Tt,Ct,kt,yt,St,Mt,At,vt,wt,Ft,Ht,Nt,Ot,zt,jt,Dt,Ut,It,Pt,Lt,qt,Bt,Wt,Vt,Gt,Kt,Jt,Yt,Zt,Xt,Qt,xt],Zn=Zi,Xn=["../../translations/af.json","../../translations/bn.json","../../translations/ca.json","../../translations/cs.json","../../translations/da.json","../../translations/de.json","../../translations/en.json","../../translations/es.json","../../translations/fi.json","../../translations/fr.json","../../translations/gl.json","../../translations/hi.json","../../translations/hr.json","../../translations/hu.json","../../translations/id.json","../../translations/it.json","../../translations/ja.json","../../translations/ko.json","../../translations/mi.json","../../translations/nl.json","../../translations/no.json","../../translations/pl.json","../../translations/pt.json","../../translations/ro.json","../../translations/ru.json","../../translations/sr.json","../../translations/sv.json","../../translations/ta.json","../../translations/tr.json","../../translations/uk.json","../../translations/vi.json","../../translations/zh-cn.json","../../translations/zh-tw.json","../../translations/zh.json"];function Qn(n,e,t){let s=n.slice();return s[51]=e[t],s}function xn(n){let e,t,s;function l(i){n[37](i)}let r={show_empty_filters:n[5],open_filters:n[6],available_filters:n[18],translate:n[20],automatic_translations:n[19],translations:n[7]};return n[0]!==void 0&&(r.selected_filters=n[0]),e=new Yn({props:r}),re.push(()=>En(e,"selected_filters",l)),{c(){et(e.$$.fragment)},m(i,a){me(e,i,a),s=!0},p(i,a){let o={};a[0]&32&&(o.show_empty_filters=i[5]),a[0]&64&&(o.open_filters=i[6]),a[0]&262144&&(o.available_filters=i[18]),a[0]&524288&&(o.automatic_translations=i[19]),a[0]&128&&(o.translations=i[7]),!t&&a[0]&1&&(t=!0,o.selected_filters=i[0],hn(()=>t=!1)),e.$set(o)},i(i){s||(D(e.$$.fragment,i),s=!0)},o(i){P(e.$$.fragment,i),s=!1},d(i){ue(e,i)}}}function $n(n){let e,t,s,l,r=[xi,Qi],i=[];function a(o,h){return o[14]?0:1}return t=a(n,[-1,-1]),s=i[t]=r[t](n),{c(){e=C("div"),s.c(),E(e,"class","pagefind-ui__results-area svelte-e9gkc3")},m(o,h){y(o,e,h),i[t].m(e,null),l=!0},p(o,h){let c=t;t=a(o,h),t===c?i[t].p(o,h):(ae(),P(i[c],1,1,()=>{i[c]=null}),oe(),s=i[t],s?s.p(o,h):(s=i[t]=r[t](o),s.c()),D(s,1),s.m(e,null))},i(o){l||(D(s),l=!0)},o(o){P(s),l=!1},d(o){o&&k(e),i[t].d()}}}function Qi(n){let e,t,s,l=[],r=new Map,i,a,o;function h(u,f){return u[13].results.length===0?ta:u[13].results.length===1?ea:$i}let c=h(n,[-1,-1]),m=c(n),p=n[13].results.slice(0,n[17]),d=u=>u[51].id;for(let u=0;un[17]&&ts(n);return{c(){e=C("p"),m.c(),t=A(),s=C("ol");for(let u=0;uu[17]?_?_.p(u,f):(_=ts(u),_.c(),_.m(a.parentNode,a)):_&&(_.d(1),_=null)},i(u){if(!o){for(let f=0;f{o[p]=null}),oe(),l=o[s],l?l.p(e,m):(l=o[s]=a[s](e),l.c()),D(l,1),l.m(r.parentNode,r))},i(c){i||(D(l),i=!0)},o(c){P(l),i=!1},d(c){c&&k(t),o[s].d(c),c&&k(r)}}}function ts(n){let e,t=n[20]("load_more",n[19],n[7])+"",s,l,r;return{c(){e=C("button"),s=w(t),E(e,"type","button"),E(e,"class","pagefind-ui__button svelte-e9gkc3")},m(i,a){y(i,e,a),b(e,s),l||(r=J(e,"click",n[22]),l=!0)},p(i,a){a[0]&524416&&t!==(t=i[20]("load_more",i[19],i[7])+"")&&N(s,t)},d(i){i&&k(e),l=!1,r()}}}function ns(n){let e,t=n[20]("searching",n[19],n[7]).replace(/\[SEARCH_TERM\]/,n[16])+"",s;return{c(){e=C("p"),s=w(t),E(e,"class","pagefind-ui__message svelte-e9gkc3")},m(l,r){y(l,e,r),b(e,s)},p(l,r){r[0]&589952&&t!==(t=l[20]("searching",l[19],l[7]).replace(/\[SEARCH_TERM\]/,l[16])+"")&&N(s,t)},d(l){l&&k(e)}}}function la(n){let e,t,s,l,r,i,a=n[20]("clear_search",n[19],n[7])+"",o,h,c,m,p,d,_,u,f=n[12]&&xn(n),T=n[15]&&$n(n);return{c(){e=C("div"),t=C("form"),s=C("input"),r=A(),i=C("button"),o=w(a),h=A(),c=C("div"),f&&f.c(),m=A(),T&&T.c(),E(s,"class","pagefind-ui__search-input svelte-e9gkc3"),E(s,"type","text"),E(s,"placeholder",l=n[20]("placeholder",n[19],n[7])),E(s,"autocapitalize","none"),E(s,"enterkeyhint","search"),s.autofocus=n[8],E(i,"class","pagefind-ui__search-clear svelte-e9gkc3"),B(i,"pagefind-ui__suppressed",!n[9]),E(c,"class","pagefind-ui__drawer svelte-e9gkc3"),B(c,"pagefind-ui__hidden",!n[15]),E(t,"class","pagefind-ui__form svelte-e9gkc3"),E(t,"role","search"),E(t,"aria-label",p=n[20]("search_label",n[19],n[7])),E(t,"action","javascript:void(0);"),E(e,"class","pagefind-ui svelte-e9gkc3"),B(e,"pagefind-ui--reset",n[1])},m(R,M){y(R,e,M),b(e,t),b(t,s),ft(s,n[9]),n[34](s),b(t,r),b(t,i),b(i,o),n[35](i),b(t,h),b(t,c),f&&f.m(c,null),b(c,m),T&&T.m(c,null),d=!0,n[8]&&s.focus(),_||(u=[J(s,"focus",n[21]),J(s,"keydown",n[32]),J(s,"input",n[33]),J(i,"click",n[36]),J(t,"submit",ra)],_=!0)},p(R,M){(!d||M[0]&524416&&l!==(l=R[20]("placeholder",R[19],R[7])))&&E(s,"placeholder",l),(!d||M[0]&256)&&(s.autofocus=R[8]),M[0]&512&&s.value!==R[9]&&ft(s,R[9]),(!d||M[0]&524416)&&a!==(a=R[20]("clear_search",R[19],R[7])+"")&&N(o,a),(!d||M[0]&512)&&B(i,"pagefind-ui__suppressed",!R[9]),R[12]?f?(f.p(R,M),M[0]&4096&&D(f,1)):(f=xn(R),f.c(),D(f,1),f.m(c,m)):f&&(ae(),P(f,1,1,()=>{f=null}),oe()),R[15]?T?(T.p(R,M),M[0]&32768&&D(T,1)):(T=$n(R),T.c(),D(T,1),T.m(c,null)):T&&(ae(),P(T,1,1,()=>{T=null}),oe()),(!d||M[0]&32768)&&B(c,"pagefind-ui__hidden",!R[15]),(!d||M[0]&524416&&p!==(p=R[20]("search_label",R[19],R[7])))&&E(t,"aria-label",p),(!d||M[0]&2)&&B(e,"pagefind-ui--reset",R[1])},i(R){d||(D(f),D(T),d=!0)},o(R){P(f),P(T),d=!1},d(R){R&&k(e),n[34](null),n[35](null),f&&f.d(),T&&T.d(),_=!1,G(u)}}}var ra=n=>n.preventDefault();function ia(n,e,t){let s={},l=Xn.map(g=>g.match(/([^\/]+)\.json$/)[1]);for(let g=0;gz[g]??H[g]??"";dt(()=>{let g=document?.querySelector?.("html")?.getAttribute?.("lang")||"en",H=tt(g.toLocaleLowerCase());t(19,rn=s[`${H.language}-${H.script}-${H.region}`]||s[`${H.language}-${H.region}`]||s[`${H.language}`]||s.en)}),ht(()=>{F?.destroy?.(),F=null});let an=async()=>{if(!st&&(t(12,st=!0),!F)){let g;try{g=await import(`${r}pagefind.js`)}catch(z){console.error(z),console.error([`Pagefind couldn't be loaded from ${this.options.bundlePath}pagefind.js`,"You can configure this by passing a bundlePath option to PagefindUI",`[DEBUG: Loaded from ${document?.currentScript?.src??"no known script location"}]`].join(` +`))}c||t(24,c=h?12:30);let H={...f||{},excerptLength:c};await g.options(H);for(let z of T){if(!z.bundlePath)throw new Error("mergeIndex requires a bundlePath parameter");let L=z.bundlePath;delete z.bundlePath,await g.mergeIndex(L,z)}F=g,is()}},is=async()=>{F&&(ln=await F.filters(),(!ce||!Object.keys(ce).length)&&t(18,ce=ln))},as=g=>{let H={};return Object.entries(g).filter(([,z])=>z).forEach(([z])=>{let[L,te]=z.split(/:(.*)$/);H[L]=H[L]||[],H[L].push(te)}),H},_e,os=async(g,H)=>{if(!g){t(15,rt=!1),_e&&clearTimeout(_e);return}let z=as(H),L=()=>us(g,z);u>0&&g?(_e&&clearTimeout(_e),_e=setTimeout(L,u),await on(),F.preload(g,{filters:z})):L(),cs()},on=async()=>{for(;!F;)an(),await new Promise(g=>setTimeout(g,50))},us=async(g,H)=>{t(16,sn=g||""),typeof p=="function"&&(g=p(g)),t(14,lt=!0),t(15,rt=!0),await on();let z=++nn,L={filters:H};X&&typeof X=="object"&&(L.sort=X);let te=await F.search(g,L);nn===z&&(te.filters&&Object.keys(te.filters)?.length&&t(18,ce=te.filters),t(13,tn=te),t(14,lt=!1),t(17,it=i))},cs=()=>{let g=V.offsetWidth;g!=ls&&t(10,O.style.paddingRight=`${g+2}px`,O)},_s=g=>{g?.preventDefault(),t(17,it+=i)},fs=g=>{g.key==="Escape"&&(t(9,v=""),O.blur()),g.key==="Enter"&&g.preventDefault()};function ds(){v=this.value,t(9,v),t(23,R)}function hs(g){re[g?"unshift":"push"](()=>{O=g,t(10,O)})}function ms(g){re[g?"unshift":"push"](()=>{V=g,t(11,V)})}let ps=()=>{t(9,v=""),O.blur()};function gs(g){W=g,t(0,W)}return n.$$set=g=>{"base_path"in g&&t(25,r=g.base_path),"page_size"in g&&t(26,i=g.page_size),"reset_styles"in g&&t(1,a=g.reset_styles),"show_images"in g&&t(2,o=g.show_images),"show_sub_results"in g&&t(3,h=g.show_sub_results),"excerpt_length"in g&&t(24,c=g.excerpt_length),"process_result"in g&&t(4,m=g.process_result),"process_term"in g&&t(27,p=g.process_term),"show_empty_filters"in g&&t(5,d=g.show_empty_filters),"open_filters"in g&&t(6,_=g.open_filters),"debounce_timeout_ms"in g&&t(28,u=g.debounce_timeout_ms),"pagefind_options"in g&&t(29,f=g.pagefind_options),"merge_index"in g&&t(30,T=g.merge_index),"trigger_search_term"in g&&t(23,R=g.trigger_search_term),"translations"in g&&t(7,M=g.translations),"autofocus"in g&&t(8,U=g.autofocus),"sort"in g&&t(31,X=g.sort),"selected_filters"in g&&t(0,W=g.selected_filters)},n.$$.update=()=>{if(n.$$.dirty[0]&8388608)e:R&&(t(9,v=R),t(23,R=""));if(n.$$.dirty[0]&513)e:os(v,W)},[W,a,o,h,m,d,_,M,U,v,O,V,st,tn,lt,rt,sn,it,ce,rn,rs,an,_s,R,c,r,i,p,u,f,T,X,fs,ds,hs,ms,ps,gs]}var $t=class extends q{constructor(e){super(),Y(this,e,ia,la,K,{base_path:25,page_size:26,reset_styles:1,show_images:2,show_sub_results:3,excerpt_length:24,process_result:4,process_term:27,show_empty_filters:5,open_filters:6,debounce_timeout_ms:28,pagefind_options:29,merge_index:30,trigger_search_term:23,translations:7,autofocus:8,sort:31,selected_filters:0},null,[-1,-1])}},ss=$t;var en;try{en=new URL(document.currentScript.src).pathname.match(/^(.*\/)(?:pagefind-)?ui.js.*$/)[1]}catch{en="/pagefind/"}var nt=class{constructor(e){this._pfs=null;let t=e.element??"[data-pagefind-ui]",s=e.bundlePath??en,l=e.pageSize??5,r=e.resetStyles??!0,i=e.showImages??!0,a=e.showSubResults??!1,o=e.excerptLength??0,h=e.processResult??null,c=e.processTerm??null,m=e.showEmptyFilters??!0,p=e.openFilters??[],d=e.debounceTimeoutMs??300,_=e.mergeIndex??[],u=e.translations??[],f=e.autofocus??!1,T=e.sort??null;delete e.element,delete e.bundlePath,delete e.pageSize,delete e.resetStyles,delete e.showImages,delete e.showSubResults,delete e.excerptLength,delete e.processResult,delete e.processTerm,delete e.showEmptyFilters,delete e.openFilters,delete e.debounceTimeoutMs,delete e.mergeIndex,delete e.translations,delete e.autofocus,delete e.sort;let R=t instanceof HTMLElement?t:document.querySelector(t);R?this._pfs=new ss({target:R,props:{base_path:s,page_size:l,reset_styles:r,show_images:i,show_sub_results:a,excerpt_length:o,process_result:h,process_term:c,show_empty_filters:m,open_filters:p,debounce_timeout_ms:d,merge_index:_,translations:u,autofocus:f,sort:T,pagefind_options:e}}):console.error(`Pagefind UI couldn't find the selector ${t}`)}triggerSearch(e){this._pfs.$$set({trigger_search_term:e})}triggerFilters(e){let t={};for(let[s,l]of Object.entries(e))if(Array.isArray(l))for(let r of l)t[`${s}:${r}`]=!0;else t[`${s}:${l}`]=!0;this._pfs.$$set({selected_filters:t})}destroy(){this._pfs.$destroy()}};window.PagefindUI=nt;})(); diff --git a/pagefind/pagefind.js b/pagefind/pagefind.js new file mode 100644 index 0000000..3e3fa55 --- /dev/null +++ b/pagefind/pagefind.js @@ -0,0 +1,9 @@ +const pagefind_version="1.1.0";let wasm_bindgen;(function(){const __exports={};let script_src;if(typeof document!=='undefined'&&document.currentScript!==null){script_src=new URL("UNHANDLED",location.href).toString()}let wasm=undefined;let cachedUint8Memory0=null;function getUint8Memory0(){if(cachedUint8Memory0===null||cachedUint8Memory0.byteLength===0){cachedUint8Memory0=new Uint8Array(wasm.memory.buffer)}return cachedUint8Memory0}let WASM_VECTOR_LEN=0;function passArray8ToWasm0(arg,malloc){const ptr=malloc(arg.length*1,1)>>>0;getUint8Memory0().set(arg,ptr/1);WASM_VECTOR_LEN=arg.length;return ptr}__exports.init_pagefind=function(metadata_bytes){const ptr0=passArray8ToWasm0(metadata_bytes,wasm.__wbindgen_malloc);const len0=WASM_VECTOR_LEN;const ret=wasm.init_pagefind(ptr0,len0);return ret>>>0};const cachedTextEncoder=(typeof TextEncoder!=='undefined'?new TextEncoder('utf-8'):{encode:()=>{throw Error('TextEncoder not available')}});const encodeString=(typeof cachedTextEncoder.encodeInto==='function'?function(arg,view){return cachedTextEncoder.encodeInto(arg,view)}:function(arg,view){const buf=cachedTextEncoder.encode(arg);view.set(buf);return{read:arg.length,written:buf.length}});function passStringToWasm0(arg,malloc,realloc){if(realloc===undefined){const buf=cachedTextEncoder.encode(arg);const ptr=malloc(buf.length,1)>>>0;getUint8Memory0().subarray(ptr,ptr+buf.length).set(buf);WASM_VECTOR_LEN=buf.length;return ptr}let len=arg.length;let ptr=malloc(len,1)>>>0;const mem=getUint8Memory0();let offset=0;for(;offset0x7F)break;mem[ptr+offset]=code}if(offset!==len){if(offset!==0){arg=arg.slice(offset)}ptr=realloc(ptr,len,len=offset+arg.length*3,1)>>>0;const view=getUint8Memory0().subarray(ptr+offset,ptr+len);const ret=encodeString(arg,view);offset+=ret.written;ptr=realloc(ptr,len,offset,1)>>>0}WASM_VECTOR_LEN=offset;return ptr}__exports.set_ranking_weights=function(ptr,weights){const ptr0=passStringToWasm0(weights,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const len0=WASM_VECTOR_LEN;const ret=wasm.set_ranking_weights(ptr,ptr0,len0);return ret>>>0};__exports.load_index_chunk=function(ptr,chunk_bytes){const ptr0=passArray8ToWasm0(chunk_bytes,wasm.__wbindgen_malloc);const len0=WASM_VECTOR_LEN;const ret=wasm.load_index_chunk(ptr,ptr0,len0);return ret>>>0};__exports.load_filter_chunk=function(ptr,chunk_bytes){const ptr0=passArray8ToWasm0(chunk_bytes,wasm.__wbindgen_malloc);const len0=WASM_VECTOR_LEN;const ret=wasm.load_filter_chunk(ptr,ptr0,len0);return ret>>>0};__exports.add_synthetic_filter=function(ptr,filter){const ptr0=passStringToWasm0(filter,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const len0=WASM_VECTOR_LEN;const ret=wasm.add_synthetic_filter(ptr,ptr0,len0);return ret>>>0};let cachedInt32Memory0=null;function getInt32Memory0(){if(cachedInt32Memory0===null||cachedInt32Memory0.byteLength===0){cachedInt32Memory0=new Int32Array(wasm.memory.buffer)}return cachedInt32Memory0}const cachedTextDecoder=(typeof TextDecoder!=='undefined'?new TextDecoder('utf-8',{ignoreBOM:true,fatal:true}):{decode:()=>{throw Error('TextDecoder not available')}});if(typeof TextDecoder!=='undefined'){cachedTextDecoder.decode()};function getStringFromWasm0(ptr,len){ptr=ptr>>>0;return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr,ptr+len))}__exports.request_indexes=function(ptr,query){let deferred2_0;let deferred2_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);const ptr0=passStringToWasm0(query,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const len0=WASM_VECTOR_LEN;wasm.request_indexes(retptr,ptr,ptr0,len0);var r0=getInt32Memory0()[retptr/4+0];var r1=getInt32Memory0()[retptr/4+1];deferred2_0=r0;deferred2_1=r1;return getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16);wasm.__wbindgen_free(deferred2_0,deferred2_1,1)}};__exports.request_filter_indexes=function(ptr,filters){let deferred2_0;let deferred2_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);const ptr0=passStringToWasm0(filters,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const len0=WASM_VECTOR_LEN;wasm.request_filter_indexes(retptr,ptr,ptr0,len0);var r0=getInt32Memory0()[retptr/4+0];var r1=getInt32Memory0()[retptr/4+1];deferred2_0=r0;deferred2_1=r1;return getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16);wasm.__wbindgen_free(deferred2_0,deferred2_1,1)}};__exports.request_all_filter_indexes=function(ptr){let deferred1_0;let deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.request_all_filter_indexes(retptr,ptr);var r0=getInt32Memory0()[retptr/4+0];var r1=getInt32Memory0()[retptr/4+1];deferred1_0=r0;deferred1_1=r1;return getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16);wasm.__wbindgen_free(deferred1_0,deferred1_1,1)}};__exports.filters=function(ptr){let deferred1_0;let deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.filters(retptr,ptr);var r0=getInt32Memory0()[retptr/4+0];var r1=getInt32Memory0()[retptr/4+1];deferred1_0=r0;deferred1_1=r1;return getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16);wasm.__wbindgen_free(deferred1_0,deferred1_1,1)}};__exports.search=function(ptr,query,filter,sort,exact){let deferred4_0;let deferred4_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);const ptr0=passStringToWasm0(query,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const len0=WASM_VECTOR_LEN;const ptr1=passStringToWasm0(filter,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const len1=WASM_VECTOR_LEN;const ptr2=passStringToWasm0(sort,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);const len2=WASM_VECTOR_LEN;wasm.search(retptr,ptr,ptr0,len0,ptr1,len1,ptr2,len2,exact);var r0=getInt32Memory0()[retptr/4+0];var r1=getInt32Memory0()[retptr/4+1];deferred4_0=r0;deferred4_1=r1;return getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16);wasm.__wbindgen_free(deferred4_0,deferred4_1,1)}};async function __wbg_load(module,imports){if(typeof Response==='function'&&module instanceof Response){if(typeof WebAssembly.instantiateStreaming==='function'){try{return await WebAssembly.instantiateStreaming(module,imports)}catch(e){if(module.headers.get('Content-Type')!='application/wasm'){console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",e)}else{throw e}}}const bytes=await module.arrayBuffer();return await WebAssembly.instantiate(bytes,imports)}else{const instance=await WebAssembly.instantiate(module,imports);if(instance instanceof WebAssembly.Instance){return{instance,module}}else{return instance}}}function __wbg_get_imports(){const imports={};imports.wbg={};return imports}function __wbg_init_memory(imports,maybe_memory){}function __wbg_finalize_init(instance,module){wasm=instance.exports;__wbg_init.__wbindgen_wasm_module=module;cachedInt32Memory0=null;cachedUint8Memory0=null;return wasm}function initSync(module){if(wasm!==undefined)return wasm;const imports=__wbg_get_imports();__wbg_init_memory(imports);if(!(module instanceof WebAssembly.Module)){module=new WebAssembly.Module(module)}const instance=new WebAssembly.Instance(module,imports);return __wbg_finalize_init(instance,module)}async function __wbg_init(input){if(wasm!==undefined)return wasm;if(typeof input==='undefined'&&typeof script_src!=='undefined'){input=script_src.replace(/\.js$/,'_bg.wasm')}const imports=__wbg_get_imports();if(typeof input==='string'||(typeof Request==='function'&&input instanceof Request)||(typeof URL==='function'&&input instanceof URL)){input=fetch(input)}__wbg_init_memory(imports);const{instance,module}=await __wbg_load(await input,imports);return __wbg_finalize_init(instance,module)}wasm_bindgen=Object.assign(__wbg_init,{initSync},__exports)})();var u8=Uint8Array;var u16=Uint16Array;var u32=Uint32Array;var fleb=new u8([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]);var fdeb=new u8([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]);var clim=new u8([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);var freb=function(eb,start){var b=new u16(31);for(var i2=0;i2<31;++i2){b[i2]=start+=1<>>1|(i&21845)<<1;x=(x&52428)>>>2|(x&13107)<<2;x=(x&61680)>>>4|(x&3855)<<4;rev[i]=((x&65280)>>>8|(x&255)<<8)>>>1}var x;var i;var hMap=function(cd,mb,r){var s=cd.length;var i2=0;var l=new u16(mb);for(;i2>>rvb]=sv}}}}else{co=new u16(s);for(i2=0;i2>>15-cd[i2]}}}return co};var flt=new u8(288);for(i=0;i<144;++i)flt[i]=8;var i;for(i=144;i<256;++i)flt[i]=9;var i;for(i=256;i<280;++i)flt[i]=7;var i;for(i=280;i<288;++i)flt[i]=8;var i;var fdt=new u8(32);for(i=0;i<32;++i)fdt[i]=5;var i;var flrm=hMap(flt,9,1);var fdrm=hMap(fdt,5,1);var max=function(a){var m=a[0];for(var i2=1;i2m)m=a[i2]}return m};var bits=function(d,p,m){var o=p/8|0;return(d[o]|d[o+1]<<8)>>(p&7)&m};var bits16=function(d,p){var o=p/8|0;return(d[o]|d[o+1]<<8|d[o+2]<<16)>>(p&7)};var shft=function(p){return(p+7)/8|0};var slc=function(v,s,e){if(s==null||s<0)s=0;if(e==null||e>v.length)e=v.length;var n=new(v.BYTES_PER_ELEMENT==2?u16:v.BYTES_PER_ELEMENT==4?u32:u8)(e-s);n.set(v.subarray(s,e));return n};var ec=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"];var err=function(ind,msg,nt){var e=new Error(msg||ec[ind]);e.code=ind;if(Error.captureStackTrace)Error.captureStackTrace(e,err);if(!nt)throw e;return e};var inflt=function(dat,buf,st){var sl=dat.length;if(!sl||st&&st.f&&!st.l)return buf||new u8(0);var noBuf=!buf||st;var noSt=!st||st.i;if(!st)st={};if(!buf)buf=new u8(sl*3);var cbuf=function(l2){var bl=buf.length;if(l2>bl){var nbuf=new u8(Math.max(bl*2,l2));nbuf.set(buf);buf=nbuf}};var final=st.f||0,pos=st.p||0,bt=st.b||0,lm=st.l,dm=st.d,lbt=st.m,dbt=st.n;var tbts=sl*8;do{if(!lm){final=bits(dat,pos,1);var type=bits(dat,pos+1,3);pos+=3;if(!type){var s=shft(pos)+4,l=dat[s-4]|dat[s-3]<<8,t=s+l;if(t>sl){if(noSt)err(0);break}if(noBuf)cbuf(bt+l);buf.set(dat.subarray(s,t),bt);st.b=bt+=l,st.p=pos=t*8,st.f=final;continue}else if(type==1)lm=flrm,dm=fdrm,lbt=9,dbt=5;else if(type==2){var hLit=bits(dat,pos,31)+257,hcLen=bits(dat,pos+10,15)+4;var tl=hLit+bits(dat,pos+5,31)+1;pos+=14;var ldt=new u8(tl);var clt=new u8(19);for(var i2=0;i2>>4;if(s<16){ldt[i2++]=s}else{var c=0,n=0;if(s==16)n=3+bits(dat,pos,3),pos+=2,c=ldt[i2-1];else if(s==17)n=3+bits(dat,pos,7),pos+=3;else if(s==18)n=11+bits(dat,pos,127),pos+=7;while(n--)ldt[i2++]=c}}var lt=ldt.subarray(0,hLit),dt=ldt.subarray(hLit);lbt=max(lt);dbt=max(dt);lm=hMap(lt,lbt,1);dm=hMap(dt,dbt,1)}else err(1);if(pos>tbts){if(noSt)err(0);break}}if(noBuf)cbuf(bt+131072);var lms=(1<>>4;pos+=c&15;if(pos>tbts){if(noSt)err(0);break}if(!c)err(2);if(sym<256)buf[bt++]=sym;else if(sym==256){lpos=pos,lm=null;break}else{var add=sym-254;if(sym>264){var i2=sym-257,b=fleb[i2];add=bits(dat,pos,(1<>>4;if(!d)err(3);pos+=d&15;var dt=fd[dsym];if(dsym>3){var b=fdeb[dsym];dt+=bits16(dat,pos)&(1<tbts){if(noSt)err(0);break}if(noBuf)cbuf(bt+131072);var end=bt+add;for(;bt>3&1)+(flg>>4&1);zs>0;zs-=!d[st++]);return st+(flg&2)};var gzl=function(d){var l=d.length;return(d[l-4]|d[l-3]<<8|d[l-2]<<16|d[l-1]<<24)>>>0};function gunzipSync(data,out){return inflt(data.subarray(gzs(data),-8),out||new u8(gzl(data)))}var td=typeof TextDecoder!="undefined"&&new TextDecoder();var tds=0;try{td.decode(et,{stream:true});tds=1}catch(e){}var gz_default=gunzipSync;var calculate_excerpt_region=(word_positions,excerpt_length)=>{if(word_positions.length===0){return 0}let words=[];for(const word of word_positions){words[word.location]=words[word.location]||0;words[word.location]+=word.balanced_score}if(words.length<=excerpt_length){return 0}let densest=words.slice(0,excerpt_length).reduce((partialSum,a)=>partialSum+a,0);let working_sum=densest;let densest_at=[0];for(let i2=0;i2densest){densest=working_sum;densest_at=[i2]}else if(working_sum===densest&&densest_at[densest_at.length-1]===i2-1){densest_at.push(i2)}}let midpoint=densest_at[Math.floor(densest_at.length/2)];return midpoint};var build_excerpt=(content,start,length,locations,not_before,not_from)=>{let is_zws_delimited=content.includes("\u200B");let fragment_words=[];if(is_zws_delimited){fragment_words=content.split("\u200B")}else{fragment_words=content.split(/[\r\n\s]+/g)}for(let word of locations){if(fragment_words[word]?.startsWith(``)){continue}fragment_words[word]=`${fragment_words[word]}`}let endcap=not_from??fragment_words.length;let startcap=not_before??0;if(endcap-startcapendcap){start=endcap-length}if(start{const anchors=fragment.anchors.filter((a)=>/h\d/i.test(a.element)&&a.text?.length&&/\S/.test(a.text)).sort((a,b)=>a.location-b.location);const results=[];let current_anchor_position=0;let current_anchor={title:fragment.meta["title"],url:fragment.url,weighted_locations:[],locations:[],excerpt:""};const add_result=(end_range)=>{if(current_anchor.locations.length){const relative_weighted_locations=current_anchor.weighted_locations.map((l)=>{return{weight:l.weight,balanced_score:l.balanced_score,location:l.location-current_anchor_position}});const excerpt_start=calculate_excerpt_region(relative_weighted_locations,desired_excerpt_length)+current_anchor_position;const excerpt_length=end_range?Math.min(end_range-excerpt_start,desired_excerpt_length):desired_excerpt_length;current_anchor.excerpt=build_excerpt(fragment.raw_content??"",excerpt_start,excerpt_length,current_anchor.locations,current_anchor_position,end_range);results.push(current_anchor)}};for(let word of fragment.weighted_locations){if(!anchors.length||word.location=anchors[0].location){next_anchor=anchors.shift()}let anchored_url=fragment.url;try{const url_is_fq=/^((https?:)?\/\/)/.test(anchored_url);if(url_is_fq){let fq_url=new URL(anchored_url);fq_url.hash=next_anchor.id;anchored_url=fq_url.toString()}else{if(!/^\//.test(anchored_url)){anchored_url=`/${anchored_url}`}let fq_url=new URL(`https://example.com${anchored_url}`);fq_url.hash=next_anchor.id;anchored_url=fq_url.toString().replace(/^https:\/\/example.com/,"")}}catch(e){console.error(`Pagefind: Couldn't process ${anchored_url} for a search result`)}current_anchor_position=next_anchor.location;current_anchor={title:next_anchor.text,url:anchored_url,anchor:next_anchor,weighted_locations:[word],locations:[word.location],excerpt:""}}}add_result(anchors[0]?.location);return results};var asyncSleep=async(ms=100)=>{return new Promise((r)=>setTimeout(r,ms))};var PagefindInstance=class{constructor(opts={}){this.version=pagefind_version;this.backend=wasm_bindgen;this.decoder=new TextDecoder("utf-8");this.wasm=null;this.basePath=opts.basePath||"/pagefind/";this.primary=opts.primary||false;if(this.primary&&!opts.basePath){this.initPrimary()}if(/[^\/]$/.test(this.basePath)){this.basePath=`${this.basePath}/`}if(window?.location?.origin&&this.basePath.startsWith(window.location.origin)){this.basePath=this.basePath.replace(window.location.origin,"")}this.baseUrl=opts.baseUrl||this.defaultBaseUrl();if(!/^(\/|https?:\/\/)/.test(this.baseUrl)){this.baseUrl=`/${this.baseUrl}`}this.indexWeight=opts.indexWeight??1;this.excerptLength=opts.excerptLength??30;this.mergeFilter=opts.mergeFilter??{};this.ranking=opts.ranking;this.highlightParam=opts.highlightParam??null;this.loaded_chunks={};this.loaded_filters={};this.loaded_fragments={};this.raw_ptr=null;this.searchMeta=null;this.languages=null}initPrimary(){let derivedBasePath=import.meta.url.match(/^(.*\/)pagefind.js.*$/)?.[1];if(derivedBasePath){this.basePath=derivedBasePath}else{console.warn(["Pagefind couldn't determine the base of the bundle from the import path. Falling back to the default.","Set a basePath option when initialising Pagefind to ignore this message."].join("\n"))}}defaultBaseUrl(){let default_base=this.basePath.match(/^(.*\/)_?pagefind/)?.[1];return default_base||"/"}async options(options2){const opts=["basePath","baseUrl","indexWeight","excerptLength","mergeFilter","highlightParam","ranking"];for(const[k,v]of Object.entries(options2)){if(k==="mergeFilter"){let filters2=this.stringifyFilters(v);let ptr=await this.getPtr();this.raw_ptr=this.backend.add_synthetic_filter(ptr,filters2)}else if(k==="ranking"){await this.set_ranking(options2.ranking)}else if(opts.includes(k)){if(k==="basePath"&&typeof v==="string")this.basePath=v;if(k==="baseUrl"&&typeof v==="string")this.baseUrl=v;if(k==="indexWeight"&&typeof v==="number")this.indexWeight=v;if(k==="excerptLength"&&typeof v==="number")this.excerptLength=v;if(k==="mergeFilter"&&typeof v==="object")this.mergeFilter=v;if(k==="highlightParam"&&typeof v==="string")this.highlightParam=v}else{console.warn(`Unknown Pagefind option ${k}. Allowed options: [${opts.join(", ")}]`)}}}decompress(data,file="unknown file"){if(this.decoder.decode(data.slice(0,12))==="pagefind_dcd"){return data.slice(12)}data=gz_default(data);if(this.decoder.decode(data.slice(0,12))!=="pagefind_dcd"){console.error(`Decompressing ${file} appears to have failed: Missing signature`);return data}return data.slice(12)}async set_ranking(ranking){if(!ranking)return;let rankingWeights={term_similarity:ranking.termSimilarity??null,page_length:ranking.pageLength??null,term_saturation:ranking.termSaturation??null,term_frequency:ranking.termFrequency??null};let ptr=await this.getPtr();this.raw_ptr=this.backend.set_ranking_weights(ptr,JSON.stringify(rankingWeights))}async init(language,opts){await this.loadEntry();let index=this.findIndex(language);let lang_wasm=index.wasm?index.wasm:"unknown";let resources=[this.loadMeta(index.hash)];if(opts.load_wasm===true){resources.push(this.loadWasm(lang_wasm))}await Promise.all(resources);this.raw_ptr=this.backend.init_pagefind(new Uint8Array(this.searchMeta));if(Object.keys(this.mergeFilter)?.length){let filters2=this.stringifyFilters(this.mergeFilter);let ptr=await this.getPtr();this.raw_ptr=this.backend.add_synthetic_filter(ptr,filters2)}if(this.ranking){await this.set_ranking(this.ranking)}}async loadEntry(){try{let entry_response=await fetch(`${this.basePath}pagefind-entry.json?ts=${Date.now()}`);let entry_json=await entry_response.json();this.languages=entry_json.languages;if(entry_json.version!==this.version){if(this.primary){console.warn(["Pagefind JS version doesn't match the version in your search index.",`Pagefind JS: ${this.version}. Pagefind index: ${entry_json.version}`,"If you upgraded Pagefind recently, you likely have a cached pagefind.js file.","If you encounter any search errors, try clearing your cache."].join("\n"))}else{console.warn(["Merging a Pagefind index from a different version than the main Pagefind instance.",`Main Pagefind JS: ${this.version}. Merged index (${this.basePath}): ${entry_json.version}`,"If you encounter any search errors, make sure that both sites are running the same version of Pagefind."].join("\n"))}}}catch(e){console.error(`Failed to load Pagefind metadata: +${e?.toString()}`);throw new Error("Failed to load Pagefind metadata")}}findIndex(language){if(this.languages){let index=this.languages[language];if(index)return index;index=this.languages[language.split("-")[0]];if(index)return index;let topLang=Object.values(this.languages).sort((a,b)=>b.page_count-a.page_count);if(topLang[0])return topLang[0]}throw new Error("Pagefind Error: No language indexes found.")}async loadMeta(index){try{let compressed_resp=await fetch(`${this.basePath}pagefind.${index}.pf_meta`);let compressed_meta=await compressed_resp.arrayBuffer();this.searchMeta=this.decompress(new Uint8Array(compressed_meta),"Pagefind metadata")}catch(e){console.error(`Failed to load the meta index: +${e?.toString()}`)}}async loadWasm(language){try{const wasm_url=`${this.basePath}wasm.${language}.pagefind`;let compressed_resp=await fetch(wasm_url);let compressed_wasm=await compressed_resp.arrayBuffer();const final_wasm=this.decompress(new Uint8Array(compressed_wasm),"Pagefind WebAssembly");if(!final_wasm){throw new Error("No WASM after decompression")}this.wasm=await this.backend(final_wasm)}catch(e){console.error(`Failed to load the Pagefind WASM: +${e?.toString()}`);throw new Error(`Failed to load the Pagefind WASM: +${e?.toString()}`)}}async _loadGenericChunk(url,method){try{let compressed_resp=await fetch(url);let compressed_chunk=await compressed_resp.arrayBuffer();let chunk=this.decompress(new Uint8Array(compressed_chunk),url);let ptr=await this.getPtr();this.raw_ptr=this.backend[method](ptr,chunk)}catch(e){console.error(`Failed to load the index chunk ${url}: +${e?.toString()}`)}}async loadChunk(hash){if(!this.loaded_chunks[hash]){const url=`${this.basePath}index/${hash}.pf_index`;this.loaded_chunks[hash]=this._loadGenericChunk(url,"load_index_chunk")}return await this.loaded_chunks[hash]}async loadFilterChunk(hash){if(!this.loaded_filters[hash]){const url=`${this.basePath}filter/${hash}.pf_filter`;this.loaded_filters[hash]=this._loadGenericChunk(url,"load_filter_chunk")}return await this.loaded_filters[hash]}async _loadFragment(hash){let compressed_resp=await fetch(`${this.basePath}fragment/${hash}.pf_fragment`);let compressed_fragment=await compressed_resp.arrayBuffer();let fragment=this.decompress(new Uint8Array(compressed_fragment),`Fragment ${hash}`);return JSON.parse(new TextDecoder().decode(fragment))}async loadFragment(hash,weighted_locations=[],search_term){if(!this.loaded_fragments[hash]){this.loaded_fragments[hash]=this._loadFragment(hash)}let fragment=await this.loaded_fragments[hash];fragment.weighted_locations=weighted_locations;fragment.locations=weighted_locations.map((l)=>l.location);if(!fragment.raw_content){fragment.raw_content=fragment.content.replace(//g,">");fragment.content=fragment.content.replace(/\u200B/g,"")}if(!fragment.raw_url){fragment.raw_url=fragment.url}fragment.url=this.processedUrl(fragment.raw_url,search_term);const excerpt_start=calculate_excerpt_region(weighted_locations,this.excerptLength);fragment.excerpt=build_excerpt(fragment.raw_content,excerpt_start,this.excerptLength,fragment.locations);fragment.sub_results=calculate_sub_results(fragment,this.excerptLength);return fragment}fullUrl(raw){if(/^(https?:)?\/\//.test(raw)){return raw}return`${this.baseUrl}/${raw}`.replace(/\/+/g,"/").replace(/^(https?:\/)/,"$1/")}processedUrl(url,search_term){const normalized=this.fullUrl(url);if(this.highlightParam===null){return normalized}let individual_terms=search_term.split(/\s+/);try{let processed=new URL(normalized);for(const term of individual_terms){processed.searchParams.append(this.highlightParam,term)}return processed.toString()}catch(e){try{let processed=new URL(`https://example.com${normalized}`);for(const term of individual_terms){processed.searchParams.append(this.highlightParam,term)}return processed.toString().replace(/^https:\/\/example\.com/,"")}catch(e2){return normalized}}}async getPtr(){while(this.raw_ptr===null){await asyncSleep(50)}if(!this.raw_ptr){console.error("Pagefind: WASM Error (No pointer)");throw new Error("Pagefind: WASM Error (No pointer)")}return this.raw_ptr}parseFilters(str){let output={};if(!str)return output;for(const block of str.split("__PF_FILTER_DELIM__")){let[filter,values]=block.split(/:(.*)$/);output[filter]={};if(values){for(const valueBlock of values.split("__PF_VALUE_DELIM__")){if(valueBlock){let extract=valueBlock.match(/^(.*):(\d+)$/);if(extract){let[,value,count]=extract;output[filter][value]=parseInt(count)??count}}}}}return output}stringifyFilters(obj={}){return JSON.stringify(obj)}stringifySorts(obj={}){let sorts=Object.entries(obj);for(let[sort,direction]of sorts){if(sorts.length>1){console.warn(`Pagefind was provided multiple sort options in this search, but can only operate on one. Using the ${sort} sort.`)}if(direction!=="asc"&&direction!=="desc"){console.warn(`Pagefind was provided a sort with unknown direction ${direction}. Supported: [asc, desc]`)}return`${sort}:${direction}`}return``}async filters(){let ptr=await this.getPtr();let filters2=this.backend.request_all_filter_indexes(ptr);let filter_chunks=filters2.split(" ").filter((v)=>v).map((chunk)=>this.loadFilterChunk(chunk));await Promise.all([...filter_chunks]);ptr=await this.getPtr();let results=this.backend.filters(ptr);return this.parseFilters(results)}async preload(term,options2={}){await this.search(term,{...options2,preload:true})}async search(term,options2={}){options2={verbose:false,filters:{},sort:{},...options2};const log=(str)=>{if(options2.verbose)console.log(str)};log(`Starting search on ${this.basePath}`);let start=Date.now();let ptr=await this.getPtr();let filter_only=term===null;term=term??"";let exact_search=/^\s*".+"\s*$/.test(term);if(exact_search){log(`Running an exact search`)}term=term.toLowerCase().trim().replace(/[\.`~!@#\$%\^&\*\(\)\{\}\[\]\\\|:;'",<>\/\?\-]/g,"").replace(/\s{2,}/g," ").trim();log(`Normalized search term to ${term}`);if(!term?.length&&!filter_only){return{results:[],unfilteredResultCount:0,filters:{},totalFilters:{},timings:{preload:Date.now()-start,search:Date.now()-start,total:Date.now()-start}}}let sort_list=this.stringifySorts(options2.sort);log(`Stringified sort to ${sort_list}`);const filter_list=this.stringifyFilters(options2.filters);log(`Stringified filters to ${filter_list}`);let index_resp=this.backend.request_indexes(ptr,term);let filter_resp=this.backend.request_filter_indexes(ptr,filter_list);let chunks=index_resp.split(" ").filter((v)=>v).map((chunk)=>this.loadChunk(chunk));let filter_chunks=filter_resp.split(" ").filter((v)=>v).map((chunk)=>this.loadFilterChunk(chunk));await Promise.all([...chunks,...filter_chunks]);log(`Loaded necessary chunks to run search`);if(options2.preload){log(`Preload \u2014 bailing out of search operation now.`);return null}ptr=await this.getPtr();let searchStart=Date.now();let result=this.backend.search(ptr,term,filter_list,sort_list,exact_search);log(`Got the raw search result: ${result}`);let[unfilteredResultCount,all_results,filters2,totalFilters]=result.split(/:([^:]*):(.*)__PF_UNFILTERED_DELIM__(.*)$/);let filterObj=this.parseFilters(filters2);let totalFilterObj=this.parseFilters(totalFilters);log(`Remaining filters: ${JSON.stringify(result)}`);let results=all_results.length?all_results.split(" "):[];let resultsInterface=results.map((result2)=>{let[hash,score,all_locations]=result2.split("@");log(`Processing result: + hash:${hash} + score:${score} + locations:${all_locations}`);let weighted_locations=all_locations.length?all_locations.split(",").map((l)=>{let[weight,balanced_score,location]=l.split(">");return{weight:parseInt(weight)/24,balanced_score:parseFloat(balanced_score),location:parseInt(location)}}):[];let locations=weighted_locations.map((l)=>l.location);return{id:hash,score:parseFloat(score)*this.indexWeight,words:locations,data:async()=>await this.loadFragment(hash,weighted_locations,term)}});const searchTime=Date.now()-searchStart;const realTime=Date.now()-start;log(`Found ${results.length} result${results.length == 1 ? "" : "s"} for "${term}" in ${Date.now() - searchStart}ms (${Date.now() - start}ms realtime)`);return{results:resultsInterface,unfilteredResultCount:parseInt(unfilteredResultCount),filters:filterObj,totalFilters:totalFilterObj,timings:{preload:realTime-searchTime,search:searchTime,total:realTime}}}};var Pagefind=class{constructor(options2={}){this.backend=wasm_bindgen;this.primaryLanguage="unknown";this.searchID=0;this.primary=new PagefindInstance({...options2,primary:true});this.instances=[this.primary];this.init(options2?.language)}async options(options2){await this.primary.options(options2)}async init(overrideLanguage){if(document?.querySelector){const langCode=document.querySelector("html")?.getAttribute("lang")||"unknown";this.primaryLanguage=langCode.toLocaleLowerCase()}await this.primary.init(overrideLanguage?overrideLanguage:this.primaryLanguage,{load_wasm:true})}async mergeIndex(indexPath,options2={}){if(this.primary.basePath.startsWith(indexPath)){console.warn(`Skipping mergeIndex ${indexPath} that appears to be the same as the primary index (${this.primary.basePath})`);return}let newInstance=new PagefindInstance({primary:false,basePath:indexPath});this.instances.push(newInstance);while(this.primary.wasm===null){await asyncSleep(50)}await newInstance.init(options2.language||this.primaryLanguage,{load_wasm:false});delete options2["language"];await newInstance.options(options2)}mergeFilters(filters2){const merged={};for(const searchFilter of filters2){for(const[filterKey,values]of Object.entries(searchFilter)){if(!merged[filterKey]){merged[filterKey]=values;continue}else{const filter=merged[filterKey];for(const[valueKey,count]of Object.entries(values)){filter[valueKey]=(filter[valueKey]||0)+count}}}}return merged}async filters(){let filters2=await Promise.all(this.instances.map((i2)=>i2.filters()));return this.mergeFilters(filters2)}async preload(term,options2={}){await Promise.all(this.instances.map((i2)=>i2.preload(term,options2)))}async debouncedSearch(term,options2,debounceTimeoutMs){const thisSearchID=++this.searchID;this.preload(term,options2);await asyncSleep(debounceTimeoutMs);if(thisSearchID!==this.searchID){return null}const searchResult=await this.search(term,options2);if(thisSearchID!==this.searchID){return null}return searchResult}async search(term,options2={}){let search2=await Promise.all(this.instances.map((i2)=>i2.search(term,options2)));const filters2=this.mergeFilters(search2.map((s)=>s.filters));const totalFilters=this.mergeFilters(search2.map((s)=>s.totalFilters));const results=search2.map((s)=>s.results).flat().sort((a,b)=>b.score-a.score);const timings=search2.map((s)=>s.timings);const unfilteredResultCount=search2.reduce((sum,s)=>sum+s.unfilteredResultCount,0);return{results,unfilteredResultCount,filters:filters2,totalFilters,timings}}};var pagefind=void 0;var initial_options=void 0;var init_pagefind=()=>{if(!pagefind){pagefind=new Pagefind(initial_options??{})}};var options=async(new_options)=>{if(pagefind){await pagefind.options(new_options)}else{initial_options=new_options}};var init=async()=>{init_pagefind()};var destroy=async()=>{pagefind=void 0;initial_options=void 0};var mergeIndex=async(indexPath,options2)=>{init_pagefind();return await pagefind.mergeIndex(indexPath,options2)};var search=async(term,options2)=>{init_pagefind();return await pagefind.search(term,options2)};var debouncedSearch=async(term,options2,debounceTimeoutMs=300)=>{init_pagefind();return await pagefind.debouncedSearch(term,options2,debounceTimeoutMs)};var preload=async(term,options2)=>{init_pagefind();return await pagefind.preload(term,options2)};var filters=async()=>{init_pagefind();return await pagefind.filters()};export{debouncedSearch,destroy,filters,init,mergeIndex,options,preload,search} \ No newline at end of file diff --git a/pagefind/pagefind.zh-cn_87776cf75d86f.pf_meta b/pagefind/pagefind.zh-cn_87776cf75d86f.pf_meta new file mode 100644 index 0000000..8ca3d31 Binary files /dev/null and b/pagefind/pagefind.zh-cn_87776cf75d86f.pf_meta differ diff --git a/pagefind/wasm.unknown.pagefind b/pagefind/wasm.unknown.pagefind new file mode 100644 index 0000000..297550a Binary files /dev/null and b/pagefind/wasm.unknown.pagefind differ diff --git a/resources/Icon.html b/resources/Icon.html index 3b57381..d3435a1 100644 --- a/resources/Icon.html +++ b/resources/Icon.html @@ -44,7 +44,7 @@ 相关文章
    1. 1
    👁️‍🗨️总访问量 次 | 👤访客数 次 | 🏃已运行 121 天
    - + \ No newline at end of file diff --git a/technology/AntiShaking.html b/technology/AntiShaking.html index 469bc48..8c8c498 100644 --- a/technology/AntiShaking.html +++ b/technology/AntiShaking.html @@ -12,7 +12,7 @@ - + @@ -43,7 +43,7 @@ -相关文章
    1. 1
    2. 2
    3. 3
    4. 4

    🛡️ 防抖方案(防止用户频繁点击而发送多次重复请求)

    TIP

    以下代码以React+Ts为例

    1.利用原生setTimeout方法实现防抖:

    sh
    const timer = useRef<NodeJS.Timeout | null>(null)
    +相关文章
    1. 1
    2. 2
    3. 3
    4. 4
    5. 5

    🛡️ 防抖方案(防止用户频繁点击而发送多次重复请求)

    TIP

    以下代码以React+Ts为例

    1.利用原生setTimeout方法实现防抖:

    sh
    const timer = useRef<NodeJS.Timeout | null>(null)
     const handleClick = useCallback(() => {
         timer.current && clearTimeout(timer.current)
         timer.current = setTimeout(()=>{
    @@ -61,8 +61,8 @@
     if (refLoading.current) return
     setLoading(true)
     const { data, code, message } = await xxxxx()
    -setLoading(false)

    上次更新于:

    👁️‍🗨️总访问量 次 | 👤访客数 次 | 🏃已运行 121 天
    - +setLoading(false)

    上次更新于:

    👁️‍🗨️总访问量 次 | 👤访客数 次 | 🏃已运行 121 天
    + \ No newline at end of file diff --git a/technology/BlogTread.html b/technology/BlogTread.html index 755e664..c8b8c9a 100644 --- a/technology/BlogTread.html +++ b/technology/BlogTread.html @@ -12,7 +12,7 @@ - + @@ -43,7 +43,7 @@ -相关文章
    1. 1
    2. 2
    3. 3
    4. 4

    🤧 博客搭建踩坑记录

    一、部署到gitee pages 样式不生效

    原因:打包后的路径不匹配,对应不上相关的js、css等文件
    解决:

    shell
    base必须配置,否则打包会丢失css样式!!
    +相关文章
    1. 1
    2. 2
    3. 3
    4. 4
    5. 5

    🤧 博客搭建踩坑记录

    一、部署到gitee pages 样式不生效

    原因:打包后的路径不匹配,对应不上相关的js、css等文件
    解决:

    shell
    base必须配置,否则打包会丢失css样式!!
     
     根目录配置 /,那么对应 https://yiov.github.io/
     
    @@ -65,8 +65,8 @@
     .spa文件(不需要写什么内容)
     
     官方描述:
    -通过在 Gitee Pages 部署根目录增加名为 .spa 文件,即可开启支持单页应用的支持。

    四、网站浏览量、统计量问题

    这里用的是不蒜子实现的,非常的简单易上手,但是在开发运行会展示如下效果:

    👁️‍🗨️总访问量:6441970
    👤访客数:3810459

    解决:

    shell
    可以直接无视,部署上去会自动从0开始计算

    五、构建报navigator、windows不存在

    原因:构建是node环境的,所以不存在,打包失败

    可以参考vitepress文档访问浏览器 API 的库

    👽额外记录

    搭建自动gitee推送

    TIP

    在package.json的scripts里添加: "deploy": "pnpm run build && git add . && git commit -m \"gitee 自动推送\" && git push -u origin master && git subtree push --prefix docs/.vitepress/dist origin gh-pages"

    解释
    git subtree push --prefix docs/.vitepress/dist origin gh-pages: 将指定目录(docs/.vitepress/dist)的内容推送到远程仓库的 gh-pages 分支。这通常用于将构建后的静态网站文件推送到特定分支,以便在类似 GitHub Pages 或 Gitee Pages 等平台上托管静态网站。

    注意:在.gitignore上将dist移除,;git subtree push要在push master 之后执行

    尝试过使用rimraf库: npm install rimraf --save-dev
    代码:rimraf docs/.vitepress/dist
    来将dist文件删除,以免在master上提交上去,但是经过一系列尝试,发现没办法同时推送两个分支,会有报错,未找到合适方法,就干脆两个分支也一起提交了上去

    历程总结

    为了搭建此博客,也经历了不少,基本路程是这样的:
    技术选型->主题选择->修改配置->编辑文章->搭建图床->打包部署

    上次更新于:

    👁️‍🗨️总访问量 次 | 👤访客数 次 | 🏃已运行 121 天
    - +通过在 Gitee Pages 部署根目录增加名为 .spa 文件,即可开启支持单页应用的支持。

    四、网站浏览量、统计量问题

    这里用的是不蒜子实现的,非常的简单易上手,但是在开发运行会展示如下效果:

    👁️‍🗨️总访问量:6441970
    👤访客数:3810459

    解决:

    shell
    可以直接无视,部署上去会自动从0开始计算

    五、构建报navigator、windows不存在

    原因:构建是node环境的,所以不存在,打包失败

    可以参考vitepress文档访问浏览器 API 的库

    👽额外记录

    搭建自动gitee推送

    TIP

    在package.json的scripts里添加: "deploy": "pnpm run build && git add . && git commit -m \"gitee 自动推送\" && git push -u origin master && git subtree push --prefix docs/.vitepress/dist origin gh-pages"

    解释
    git subtree push --prefix docs/.vitepress/dist origin gh-pages: 将指定目录(docs/.vitepress/dist)的内容推送到远程仓库的 gh-pages 分支。这通常用于将构建后的静态网站文件推送到特定分支,以便在类似 GitHub Pages 或 Gitee Pages 等平台上托管静态网站。

    注意:在.gitignore上将dist移除,;git subtree push要在push master 之后执行

    尝试过使用rimraf库: npm install rimraf --save-dev
    代码:rimraf docs/.vitepress/dist
    来将dist文件删除,以免在master上提交上去,但是经过一系列尝试,发现没办法同时推送两个分支,会有报错,未找到合适方法,就干脆两个分支也一起提交了上去

    历程总结

    为了搭建此博客,也经历了不少,基本路程是这样的:
    技术选型->主题选择->修改配置->编辑文章->搭建图床->打包部署

    上次更新于:

    👁️‍🗨️总访问量 次 | 👤访客数 次 | 🏃已运行 121 天
    + \ No newline at end of file diff --git a/technology/CodeNorm.html b/technology/CodeNorm.html new file mode 100644 index 0000000..ab72936 --- /dev/null +++ b/technology/CodeNorm.html @@ -0,0 +1,127 @@ + + + + + + 代码规范记录(持续更新) 🙂 | a无名 + + + + + + + + + + + + + + + + +
    Skip to content

    代码规范记录(持续更新) 🙂

    TIP

    记录一些规范,提高代码质量,减少bug

    • 空函数清理、注释代码清理、console.log清理。
    • 尽量都用 === 全等。
    • 后面没有代码了就不要多加一个return。
    • 公共js方法,公共组件,要多加注释。
    • 不是非常有必要,不要使用any,在很多情况下,我们可以使用 unknown 来替代 any,既灵活,又可以继续保证类型安全。
    • provide/inject 是在解决多级透传问题的时候才能使用,而且使用要特别谨慎。因为它会将逻辑提升到组件树的更高层次来处理逻辑,会使高层组件变得更复杂。并且对于某些组件来说,不利于复用。对于全局状态的使用,都要谨慎。
    • 可选链在必要的情况下才能使用,禁止滥用;使用可选链简化代码。
    • 内联样式不超过两个;模版不建议写复杂判断,需要放在逻辑中维护。
    • 变量命名需要有具体语义,不能太泛化;单一组件功能变量名允许泛化。
    • 变量命名采用小驼峰。
    • ts: interface命名用I开头,type命名用T开头,enum用E开头。
    • import 顺序需要按照:全局vue,UI库,第三方库,公共方法,业务方法;按从广到窄的维度引入(封装的组件放最后):vue、ui、第三方、全局 、私有
    • vue单文件模块顺序:template script style。
    • 新页面路由命名需要规范:一级菜单/二级菜单/页面名称,例子:/user/plateform/user-create。
    • swich里赋值相同的话,合并case。
    • 组件应用时props参数:按照 ref、class、传入、传出 顺序书写。
    vue
     <my-components
    +    ref="myComponents"
    +    class="home-my-components"
    +    :data="data"
    +    @changeHandle="changeHandle"
    +  />
    • 方法命名。

    can: 判断是否可执行某个动作 函数返回一个布尔值 true可执行 false不可执行
    has: 判断是否含有某个值 函数返回一个布尔值 true含有此值 false不含有此值
    is: 判断是否为某个值,函数返回一个布尔值 true为某个值 false不为某个值
    get: 获取某个值 函数返回一个非布尔值
    set: 设置某个值 无返回值或者返回是否加载完成的结果

    • 路由参数:query对象中属性必须是字符串;不建议传递复杂Json数据,传入标识进行查询。
    bash
    // bad
    +router.push({
    +  path: '/example/path',
    +  query: {
    +    isView: true,
    +    info: JSON.stringify(data),
    +  },
    +});
    +// good
    +router.push({
    +  path: '/example/path',
    +  query: {
    +    isView: '1',
    +    id: infoId,
    +  },
    +});
    • 模板不能有复杂的运算,超过一层运算建议不在模版中处理。
    • Vue官方提供了4-5种class绑定方式,建议统一使用一种,以数组的方式动态绑定类名。
    vue
    <div :class="['title-text', active ? 'active' : '', errorClass]">
    +  <!-- ... -->
    +</div>
    • 不建议开发者大批量的对一个对象执行多次delete操作,原因是连续的delete操作代码显得冗余。
    ts
    使用解构赋值替代对象多个属性的 delete 操作;
    +使用 loadsh-es 提供的方法 unset/omit 等替代 delete 操作;
    +
    +// bad
    +const params = { /** ... */ };
    +delete params['attr'];
    +delete params['sku_id'];
    +delete params['id'];
    +
    +// good
    +const params = { /** ... */ };
    +const { attr, sku_id, id, ...unset } = params;
    • 函数注释。
    ts
    /**
    + * @Description 加入购物车
    + * @Author luochen_ya
    + * @Date 2024-03-13
    + * @param {Number} goodId 商品id
    + * @param {Array<Number>} specs sku规格
    + * @param {Number} amount 数量
    + * @param {String} remarks 备注
    + * @returns <Promise> 购物车信息
    + */
    +apiProductAddCard = (goodId, specs, amount, remarks) => {
    +  return axios.post('***', { goodId, specs, amount, remarks })
    +}
    • 利用提前返回简化逻辑。
    ts
    // ❌ 错误做法
    +function doSomething() {
    +  if (user) {
    +    if (user.role === "ADMIN") {
    +      return 'Administrator';
    +    } else {
    +      return 'User';
    +    }
    +  } else {
    +    return 'Anonymous';
    +  }
    +}
    +// ✅ 正确做法
    +function doSomething() {
    +  if (!user) return 'Anonymous'
    +  if (user.role === "ADMIN") return 'Administrator'
    +
    +  return 'User'
    +}
    • 双向数据绑定,双向数据绑定 和 change 函数共同使用可能会导致数据混乱,产生预期外的bug,change事件内会修改双向绑定值的情况下,应当改为单向数据流。
    vue
    <!-- bad -->
    +<a-input
    +  v-model:value="value"
    +  @change="value = formatHandle(value)"
    +/>
    +
    +<!-- good -->
    +<a-input
    +  :value="value"
    +  @change="formatHandle"
    +/>
    +
    +function formatHandle(e: InputEvent) {
    +    // value format
    +}

    上次更新于:

    👁️‍🗨️总访问量 次 | 👤访客数 次 | 🏃已运行 121 天
    + + + + \ No newline at end of file diff --git a/technology/SpaApp.html b/technology/SpaApp.html index 84a4b08..ab645b2 100644 --- a/technology/SpaApp.html +++ b/technology/SpaApp.html @@ -12,7 +12,7 @@ - + @@ -43,8 +43,8 @@ -相关文章
    1. 1
    2. 2
    3. 3
    4. 4

    SPA(单页应用)的一些探讨 🙂

    什么是SPA

    单页Web应用(SPA - Single Page web Application) 也就是说只有一个HTML文件的Web应用, 我们就称之为单页Web应用, 就称之为SPA应用

    SPA的特点:

    1.SPA应用只有一个HTML文件, 所有的内容其实都在这个页面中呈现的
    2.SPA应用只会加载一次HTML文件, 不会因为用户的操作而进行页面的重新加载, 当用户与应用程序交互时, 是通过动态更新页面内容的方式来呈现不同的内容

    SPA优点:

    1.有良好的交互体验,不会重新加载整个网页, 只是局部更新
    2.前后端分离开发,前端负责页面呈现和交互, 后端负责数据
    3.减轻服务器压力,只用处理数据不用处理界面

    SPA缺点:

    1.(首屏加载慢)SPA(单页应用)在初次加载时,由于需要加载所有必要的 JavaScript 和 CSS 文件,以及应用的主 HTML 文件,因此可能会产生白屏时间较长的问题,对用户体验而言是非常糟糕的。 首屏加载慢(因为要等到HTML下载完才会去下载JS/CSS, 要等到JS下载完初始化完才会去获取数据) 其中白屏时间主要影响因素之一:SPA 应用在加载完成后,需要再进行一次 DOM 渲染才能显示页面内容。在渲染过程中,可能需要加载大量的 JavaScript 文件、CSS 文件或网络请求,这些操作都需要耗费时间,从而导致白屏时间变长。

    2.非常(依赖js环境),如果用户浏览器设置了禁用js,应用则无法打开

    3.(安全问题)

    4.SEO不好(页面内容是通过ajax异步获取的,爬虫不会等待异步请求完成后再抓取页面内容)

    解决单页面应用的SEO困难问题:

    1.预渲染:无需服务器实时动态编译,采用预渲染,在构建时针对特定路由简单的生成静态HTML文件,本质就是客户端渲染, 只不过和SPA不同的是预渲染有多个界面。

    2.服务端渲染ssr:后端既提供数据又提供视图和交互逻辑,也就是服务器接到客户端请求之后,找到对应的数据并根据找到的数据生成对应的视图,然后将包含数据的视图一次性发给客户端,客户端直接将渲染即可。

    框架: nextjs、nuxtjs
    预渲染webpack插件: PrerenderSPAPlugin

    上次更新于:

    👁️‍🗨️总访问量 次 | 👤访客数 次 | 🏃已运行 121 天
    - +相关文章
    1. 1
    2. 2
    3. 3
    4. 4
    5. 5

    SPA(单页应用)的一些探讨 🙂

    什么是SPA

    单页Web应用(SPA - Single Page web Application) 也就是说只有一个HTML文件的Web应用, 我们就称之为单页Web应用, 就称之为SPA应用

    SPA的特点:

    1.SPA应用只有一个HTML文件, 所有的内容其实都在这个页面中呈现的
    2.SPA应用只会加载一次HTML文件, 不会因为用户的操作而进行页面的重新加载, 当用户与应用程序交互时, 是通过动态更新页面内容的方式来呈现不同的内容

    SPA优点:

    1.有良好的交互体验,不会重新加载整个网页, 只是局部更新
    2.前后端分离开发,前端负责页面呈现和交互, 后端负责数据
    3.减轻服务器压力,只用处理数据不用处理界面

    SPA缺点:

    1.(首屏加载慢)SPA(单页应用)在初次加载时,由于需要加载所有必要的 JavaScript 和 CSS 文件,以及应用的主 HTML 文件,因此可能会产生白屏时间较长的问题,对用户体验而言是非常糟糕的。 首屏加载慢(因为要等到HTML下载完才会去下载JS/CSS, 要等到JS下载完初始化完才会去获取数据) 其中白屏时间主要影响因素之一:SPA 应用在加载完成后,需要再进行一次 DOM 渲染才能显示页面内容。在渲染过程中,可能需要加载大量的 JavaScript 文件、CSS 文件或网络请求,这些操作都需要耗费时间,从而导致白屏时间变长。

    2.非常(依赖js环境),如果用户浏览器设置了禁用js,应用则无法打开

    3.(安全问题)

    4.SEO不好(页面内容是通过ajax异步获取的,爬虫不会等待异步请求完成后再抓取页面内容)

    解决单页面应用的SEO困难问题:

    1.预渲染:无需服务器实时动态编译,采用预渲染,在构建时针对特定路由简单的生成静态HTML文件,本质就是客户端渲染, 只不过和SPA不同的是预渲染有多个界面。

    2.服务端渲染ssr:后端既提供数据又提供视图和交互逻辑,也就是服务器接到客户端请求之后,找到对应的数据并根据找到的数据生成对应的视图,然后将包含数据的视图一次性发给客户端,客户端直接将渲染即可。

    框架: nextjs、nuxtjs
    预渲染webpack插件: PrerenderSPAPlugin

    上次更新于:

    👁️‍🗨️总访问量 次 | 👤访客数 次 | 🏃已运行 121 天
    + \ No newline at end of file diff --git a/technology/VueResponsive.html b/technology/VueResponsive.html index b1bd3d3..4f26656 100644 --- a/technology/VueResponsive.html +++ b/technology/VueResponsive.html @@ -12,7 +12,7 @@ - + @@ -43,7 +43,7 @@ -相关文章
    1. 1
    2. 2
    3. 3
    4. 4

    ☠ Vue2/3 的对比与响应式原理剖析

    一、Vue2

    响应式原理:

    1.对象

    Vue.js 2.x 中的响应式是通过使用 ES5 的 Object.defineProperty() 方法实现的。这个方法允许我们定义一个对象的属性,其中包括 getter 和 setter。当对象的属性被访问或者修改时,这些 getter 和 setter 会被调用,这就是 Vue 的响应式实现。(一次只能监听一个属性,如果需要监听多个属性,你需要对每个属性都调用一次 Object.defineProperty(),遇到深层对象,需要进行递归遍历)

    2.数组

    Vue 2.x 中监听数组的方式是通过重写数组的变异方法(mutator methods),比如 push()、pop()、shift()、unshift()、splice()、sort() 和 reverse() 等。Vue 在这些方法被调用时,会触发视图的更新。

    3.Object.defineProperty 的简单认识

    js
    // 定义一个新的属性 'name'
    +相关文章
    1. 1
    2. 2
    3. 3
    4. 4
    5. 5

    ☠ Vue2/3 的对比与响应式原理剖析

    一、Vue2

    响应式原理:

    1.对象

    Vue.js 2.x 中的响应式是通过使用 ES5 的 Object.defineProperty() 方法实现的。这个方法允许我们定义一个对象的属性,其中包括 getter 和 setter。当对象的属性被访问或者修改时,这些 getter 和 setter 会被调用,这就是 Vue 的响应式实现。(一次只能监听一个属性,如果需要监听多个属性,你需要对每个属性都调用一次 Object.defineProperty(),遇到深层对象,需要进行递归遍历)

    2.数组

    Vue 2.x 中监听数组的方式是通过重写数组的变异方法(mutator methods),比如 push()、pop()、shift()、unshift()、splice()、sort() 和 reverse() 等。Vue 在这些方法被调用时,会触发视图的更新。

    3.Object.defineProperty 的简单认识

    js
    // 定义一个新的属性 'name'
     Object.defineProperty(obj, "name", {
       // 获取属性值时的操作
       get: function () {
    @@ -126,8 +126,8 @@
     let proxy = new Proxy(target, handler);
     
     console.log(proxy.name); // 输出: 获取属性:name,然后输出 John
    -proxy.age = 35; // 输出: 设置属性:age to 35

    三、Vue2 和 Vue3 比较

    选项式 api 和组合式 api

    选项 API(Options API):这是 Vue 2 中最常见的一种方式,通过在组件选项中声明 data、methods、computed、watch 等来组织代码。它将相关功能按照选项的形式组织在一起,使得组件的结构相对清晰,适合较小规模的应用或者新手入门。
    组合式 API(Composition API):这是 Vue 3 中引入的一种全新的 API,它允许开发者根据逻辑功能来组织代码,而不是按照固定的选项。它提供了 setup 函数,使得代码更加灵活和可复用,尤其适用于大型应用或者需要更高度组织的情况。
    比较: Vue 2 的选项 API 一旦项目大起来功能越来越多,维护就变得困难。Vue 3 的组合式 API 很好的解决了这一问题,因为它可以将某一个功能模块放在一起。

    生命周期

    setup:相当于 vue2 前的 created 周期->创建时(beforeCreate 和 created 的结合)
    onBeforeMount:DOM 即将挂载
    onMounted:DOM 挂载完毕
    onBeforeUpdate:DOM 即将更新
    onUpdated:DOM 更新完毕
    onBeforeUnmount:即将销毁
    onUnmounted:销毁完毕

    添加了路由缓存后新增两个(当卸载和重新进去组件后只会执行这两个):
    onActivated 和 onDeactivated

    v-for 和 v-if 优先级

    vue2 v-for 优先级更大:v-if < v-for
    vue3 v-if 优先级更大:v-if > v-for

    diff 算法的优化

    当数据发生改变的时候,vue 会生成新的 dom 树,然后和之前的 dom 树进行比较,也就是新旧虚拟 dom 的一个对比,但是在 vue2 中这是一个全量的比较,它是每一个节点都会进行比较,没有变化的静态内容也会进行比较,会消耗一些时间。 怎么样快速区别出更新的内容,这就是 vue3 所优化的一个地方。它是根据节点会不会发生变化来添加静态标记、动态标记,而后比较时会忽略所有的静态节点,只对有标记的动态节点进行对比,而且在多层的嵌套下依然有效,提高了效率。

    静态提升

    以前 vue2 不管元素有没有更新,每次都会创建然后渲染。 vue3 使用静态提升后,静态元素页面初始的时候只渲染一次,而在更新渲染的时候,不需要再创建,提升性能

    事件监听缓存

    以前事件是一个动态绑定,追踪变化,现在是缓存起来进行复用,以减少事件绑定的开销

    更好的Tree-shaking(如果没用到,就不会被打包进来)

    在 Vue 2 中,Vue实例在项目中是单例的,很多api功能都被放在了this上,捆绑程序无法检测到该对象的哪些属性在代码中被使用到,而且由于 Vue 的源代码是使用 CommonJS 格式编写的,所以它不支持 tree shaking。这意味着即使你只使用了 Vue 的一部分功能,你的最终打包文件仍然会包含整个 Vue 库的代码。

    在 Vue 3 中,Vue 的源代码被重写为使用 ES Modules 格式,这使得 Vue 3 支持 tree shaking。vue3将全局 API 进行分块,这意味着如果你只使用了 Vue 的一部分功能,那么你的最终打包文件只会包含你实际使用的那部分代码,未使用的代码会被移除。这可以帮助减小最终打包文件的大小,提高应用的加载性能。

    tree shaking的前提是所有的东西都必须用ES6 module的import来写,要充分利用 tree shaking,你还需要使用支持 tree shaking 的打包工具,如 Webpack 或 Rollup,并且需要正确配置它们。

    通过Tree shaking,Vue3给我们带来的好处是:
    减少程序体积(更小)
    减少程序执行时间(更快)
    便于将来对程序架构进行优化(更友好)

    响应式实现方式的升级

    Vue2 用 object.defineProties 有以下几个缺点:
    1.一次只能对一个属性进行监听,需要遍历来对所有属性监听;
    2.在遇到一个对象的属性还是一个对象的情况下,需要递归监听,会消耗一些时间、性能;
    3.新增的对象属性监听不到,需要进行手动监听(vue2 通过$set 解决);
    4.对于数组通过 push、unshift 方法增加的元素,无法监听(vue2 通过改写数组方法解决)。

    vue3 用 proxy 后直接监听整个对象,无论嵌套多少层都可以监听到(proxy 的 get 方法),同样对数组适用,基本类型是类似Vue2包装在一个内部对象中,然后对这个对象进行代理(class的get和set)。

    vue2 和 vue3 组件通信对比

    上次更新于:

    👁️‍🗨️总访问量 次 | 👤访客数 次 | 🏃已运行 121 天
    - +proxy.age = 35; // 输出: 设置属性:age to 35

    三、Vue2 和 Vue3 比较

    选项式 api 和组合式 api

    选项 API(Options API):这是 Vue 2 中最常见的一种方式,通过在组件选项中声明 data、methods、computed、watch 等来组织代码。它将相关功能按照选项的形式组织在一起,使得组件的结构相对清晰,适合较小规模的应用或者新手入门。
    组合式 API(Composition API):这是 Vue 3 中引入的一种全新的 API,它允许开发者根据逻辑功能来组织代码,而不是按照固定的选项。它提供了 setup 函数,使得代码更加灵活和可复用,尤其适用于大型应用或者需要更高度组织的情况。
    比较: Vue 2 的选项 API 一旦项目大起来功能越来越多,维护就变得困难。Vue 3 的组合式 API 很好的解决了这一问题,因为它可以将某一个功能模块放在一起。

    生命周期

    setup:相当于 vue2 前的 created 周期->创建时(beforeCreate 和 created 的结合)
    onBeforeMount:DOM 即将挂载
    onMounted:DOM 挂载完毕
    onBeforeUpdate:DOM 即将更新
    onUpdated:DOM 更新完毕
    onBeforeUnmount:即将销毁
    onUnmounted:销毁完毕

    添加了路由缓存后新增两个(当卸载和重新进去组件后只会执行这两个):
    onActivated 和 onDeactivated

    v-for 和 v-if 优先级

    vue2 v-for 优先级更大:v-if < v-for
    vue3 v-if 优先级更大:v-if > v-for

    diff 算法的优化

    当数据发生改变的时候,vue 会生成新的 dom 树,然后和之前的 dom 树进行比较,也就是新旧虚拟 dom 的一个对比,但是在 vue2 中这是一个全量的比较,它是每一个节点都会进行比较,没有变化的静态内容也会进行比较,会消耗一些时间。 怎么样快速区别出更新的内容,这就是 vue3 所优化的一个地方。它是根据节点会不会发生变化来添加静态标记、动态标记,而后比较时会忽略所有的静态节点,只对有标记的动态节点进行对比,而且在多层的嵌套下依然有效,提高了效率。

    静态提升

    以前 vue2 不管元素有没有更新,每次都会创建然后渲染。 vue3 使用静态提升后,静态元素页面初始的时候只渲染一次,而在更新渲染的时候,不需要再创建,提升性能

    事件监听缓存

    以前事件是一个动态绑定,追踪变化,现在是缓存起来进行复用,以减少事件绑定的开销

    更好的Tree-shaking(如果没用到,就不会被打包进来)

    在 Vue 2 中,Vue实例在项目中是单例的,很多api功能都被放在了this上,捆绑程序无法检测到该对象的哪些属性在代码中被使用到,而且由于 Vue 的源代码是使用 CommonJS 格式编写的,所以它不支持 tree shaking。这意味着即使你只使用了 Vue 的一部分功能,你的最终打包文件仍然会包含整个 Vue 库的代码。

    在 Vue 3 中,Vue 的源代码被重写为使用 ES Modules 格式,这使得 Vue 3 支持 tree shaking。vue3将全局 API 进行分块,这意味着如果你只使用了 Vue 的一部分功能,那么你的最终打包文件只会包含你实际使用的那部分代码,未使用的代码会被移除。这可以帮助减小最终打包文件的大小,提高应用的加载性能。

    tree shaking的前提是所有的东西都必须用ES6 module的import来写,要充分利用 tree shaking,你还需要使用支持 tree shaking 的打包工具,如 Webpack 或 Rollup,并且需要正确配置它们。

    通过Tree shaking,Vue3给我们带来的好处是:
    减少程序体积(更小)
    减少程序执行时间(更快)
    便于将来对程序架构进行优化(更友好)

    响应式实现方式的升级

    Vue2 用 object.defineProties 有以下几个缺点:
    1.一次只能对一个属性进行监听,需要遍历来对所有属性监听;
    2.在遇到一个对象的属性还是一个对象的情况下,需要递归监听,会消耗一些时间、性能;
    3.新增的对象属性监听不到,需要进行手动监听(vue2 通过$set 解决);
    4.对于数组通过 push、unshift 方法增加的元素,无法监听(vue2 通过改写数组方法解决)。

    vue3 用 proxy 后直接监听整个对象,无论嵌套多少层都可以监听到(proxy 的 get 方法),同样对数组适用,基本类型是类似Vue2包装在一个内部对象中,然后对这个对象进行代理(class的get和set)。

    vue2 和 vue3 组件通信对比

    上次更新于:

    👁️‍🗨️总访问量 次 | 👤访客数 次 | 🏃已运行 121 天
    + \ No newline at end of file