gear-second 1.7.4 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +15 -15
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
* @vue/shared v3.4.15
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
|
-
**/function Ne(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const le={},Ye=[],Ve=()=>{},
|
|
5
|
+
**/function Ne(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const le={},Ye=[],Ve=()=>{},pl=()=>!1,Mn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),mo=e=>e.startsWith("onUpdate:"),_e=Object.assign,vo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},hl=Object.prototype.hasOwnProperty,ue=(e,t)=>hl.call(e,t),te=Array.isArray,Zt=e=>On(e)==="[object Map]",kr=e=>On(e)==="[object Set]",re=e=>typeof e=="function",we=e=>typeof e=="string",Gt=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",Ir=e=>(ge(e)||re(e))&&re(e.then)&&re(e.catch),Cr=Object.prototype.toString,On=e=>Cr.call(e),gl=e=>On(e).slice(8,-1),Tr=e=>On(e)==="[object Object]",bo=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ln=Ne(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),An=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ml=/-(\w)/g,je=An(e=>e.replace(ml,(t,n)=>n?n.toUpperCase():"")),vl=/\B([A-Z])/g,Fe=An(e=>e.replace(vl,"-$1").toLowerCase()),zn=An(e=>e.charAt(0).toUpperCase()+e.slice(1)),yo=An(e=>e?`on${zn(e)}`:""),st=(e,t)=>!Object.is(e,t),jn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Rn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},_o=e=>{const t=parseFloat(e);return isNaN(t)?e:t},wo=e=>{const t=we(e)?Number(e):NaN;return isNaN(t)?e:t};let Er;const xo=()=>Er||(Er=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Oe(e){if(te(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=we(o)?wl(o):Oe(o);if(r)for(const i in r)t[i]=r[i]}return t}else if(we(e)||ge(e))return e}const bl=/;(?![^(]*\))/g,yl=/:([^]+)/,_l=/\/\*[^]*?\*\//g;function wl(e){const t={};return e.replace(_l,"").split(bl).forEach(n=>{if(n){const o=n.split(yl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Ie(e){let t="";if(we(e))t=e;else if(te(e))for(let n=0;n<e.length;n++){const o=Ie(e[n]);o&&(t+=o+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const xl=Ne("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function $r(e){return!!e||e===""}const Xe=e=>we(e)?e:e==null?"":te(e)||ge(e)&&(e.toString===Cr||!re(e.toString))?JSON.stringify(e,Pr,2):String(e),Pr=(e,t)=>t&&t.__v_isRef?Pr(e,t.value):Zt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],i)=>(n[So(o,i)+" =>"]=r,n),{})}:kr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>So(n))}:Gt(t)?So(t):ge(t)&&!te(t)&&!Tr(t)?String(t):t,So=(e,t="")=>{var n;return Gt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
6
|
* @vue/reactivity v3.4.15
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
8
|
* @license MIT
|
|
9
|
-
**/let He;class kl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=He,!t&&He&&(this.index=(He.scopes||(He.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=He;try{return He=this,t()}finally{He=n}}}on(){He=this}off(){He=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function Il(e,t=He){t&&t.active&&t.effects.push(e)}function Or(){return He}function Cl(e){He&&He.cleanups.push(e)}let zt;class ko{constructor(t,n,o,r){this.fn=t,this.trigger=n,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Il(this,r)}get dirty(){if(this._dirtyLevel===1){_t();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Tl(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),wt()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=yt,n=zt;try{return yt=!0,zt=this,this._runnings++,Lr(this),this.fn()}finally{Ar(this),this._runnings--,zt=n,yt=t}}stop(){var t;this.active&&(Lr(this),Ar(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Tl(e){return e.value}function Lr(e){e._trackId++,e._depsLength=0}function Ar(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)zr(e.deps[t],e);e.deps.length=e._depsLength}}function zr(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let yt=!0,Io=0;const jr=[];function _t(){jr.push(yt),yt=!1}function wt(){const e=jr.pop();yt=e===void 0?!0:e}function Co(){Io++}function To(){for(Io--;!Io&&Eo.length;)Eo.shift()()}function Rr(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&zr(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Eo=[];function Dr(e,t,n){Co();for(const o of e.keys())if(o._dirtyLevel<t&&e.get(o)===o._trackId){const r=o._dirtyLevel;o._dirtyLevel=t,r===0&&(o._shouldSchedule=!0,o.trigger())}Br(e),To()}function Br(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,Eo.push(t.scheduler))}const Nr=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},$o=new WeakMap,jt=Symbol(""),Po=Symbol("");function Re(e,t,n){if(yt&&zt){let o=$o.get(e);o||$o.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=Nr(()=>o.delete(n))),Rr(zt,r)}}function pt(e,t,n,o,r,i){const s=$o.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&ee(e)){const a=Number(o);s.forEach((c,u)=>{(u==="length"||!Zt(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":ee(e)?bo(n)&&l.push(s.get("length")):(l.push(s.get(jt)),Xt(e)&&l.push(s.get(Po)));break;case"delete":ee(e)||(l.push(s.get(jt)),Xt(e)&&l.push(s.get(Po)));break;case"set":Xt(e)&&l.push(s.get(jt));break}Co();for(const a of l)a&&Dr(a,2);To()}const El=Ne("__proto__,__v_isRef,__isVue"),Vr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Zt)),Fr=$l();function $l(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ae(this);for(let i=0,s=this.length;i<s;i++)Re(o,"get",i+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(ae)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){_t(),Co();const o=ae(this)[t].apply(this,n);return To(),wt(),o}}),e}function Pl(e){const t=ae(this);return Re(t,"has",e),t.hasOwnProperty(e)}class Hr{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,o){const r=this._isReadonly,i=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return o===(r?i?Hl:Gr:i?Zr:Xr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=ee(t);if(!r){if(s&&ue(Fr,n))return Reflect.get(Fr,n,o);if(n==="hasOwnProperty")return Pl}const l=Reflect.get(t,n,o);return(Zt(n)?Vr.has(n):El(n))||(r||Re(t,"get",n),i)?l:Ce(l)?s&&bo(n)?l:l.value:ge(l)?r?Qr(l):an(l):l}}class Wr extends Hr{constructor(t=!1){super(!1,t)}set(t,n,o,r){let i=t[n];if(!this._shallow){const a=Qt(i);if(!Wn(o)&&!Qt(o)&&(i=ae(i),o=ae(o)),!ee(t)&&Ce(i)&&!Ce(o))return a?!1:(i.value=o,!0)}const s=ee(t)&&bo(n)?Number(n)<t.length:ue(t,n),l=Reflect.set(t,n,o,r);return t===ae(r)&&(s?st(o,i)&&pt(t,"set",n,o):pt(t,"add",n,o)),l}deleteProperty(t,n){const o=ue(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&o&&pt(t,"delete",n,void 0),r}has(t,n){const o=Reflect.has(t,n);return(!Zt(n)||!Vr.has(n))&&Re(t,"has",n),o}ownKeys(t){return Re(t,"iterate",ee(t)?"length":jt),Reflect.ownKeys(t)}}class Ml extends Hr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ol=new Wr,Ll=new Ml,Al=new Wr(!0),Mo=e=>e,Dn=e=>Reflect.getPrototypeOf(e);function Bn(e,t,n=!1,o=!1){e=e.__v_raw;const r=ae(e),i=ae(t);n||(st(t,i)&&Re(r,"get",t),Re(r,"get",i));const{has:s}=Dn(r),l=o?Mo:n?Ao:cn;if(s.call(r,t))return l(e.get(t));if(s.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function Nn(e,t=!1){const n=this.__v_raw,o=ae(n),r=ae(e);return t||(st(e,r)&&Re(o,"has",e),Re(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Vn(e,t=!1){return e=e.__v_raw,!t&&Re(ae(e),"iterate",jt),Reflect.get(e,"size",e)}function Kr(e){e=ae(e);const t=ae(this);return Dn(t).has.call(t,e)||(t.add(e),pt(t,"add",e,e)),this}function qr(e,t){t=ae(t);const n=ae(this),{has:o,get:r}=Dn(n);let i=o.call(n,e);i||(e=ae(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?st(t,s)&&pt(n,"set",e,t):pt(n,"add",e,t),this}function Ur(e){const t=ae(this),{has:n,get:o}=Dn(t);let r=n.call(t,e);r||(e=ae(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&pt(t,"delete",e,void 0),i}function Yr(){const e=ae(this),t=e.size!==0,n=e.clear();return t&&pt(e,"clear",void 0,void 0),n}function Fn(e,t){return function(o,r){const i=this,s=i.__v_raw,l=ae(s),a=t?Mo:e?Ao:cn;return!e&&Re(l,"iterate",jt),s.forEach((c,u)=>o.call(r,a(c),a(u),i))}}function Hn(e,t,n){return function(...o){const r=this.__v_raw,i=ae(r),s=Xt(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...o),u=n?Mo:t?Ao:cn;return!t&&Re(i,"iterate",a?Po:jt),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:l?[u(f[0]),u(f[1])]:u(f),done:h}},[Symbol.iterator](){return this}}}}function xt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function zl(){const e={get(i){return Bn(this,i)},get size(){return Vn(this)},has:Nn,add:Kr,set:qr,delete:Ur,clear:Yr,forEach:Fn(!1,!1)},t={get(i){return Bn(this,i,!1,!0)},get size(){return Vn(this)},has:Nn,add:Kr,set:qr,delete:Ur,clear:Yr,forEach:Fn(!1,!0)},n={get(i){return Bn(this,i,!0)},get size(){return Vn(this,!0)},has(i){return Nn.call(this,i,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:Fn(!0,!1)},o={get(i){return Bn(this,i,!0,!0)},get size(){return Vn(this,!0)},has(i){return Nn.call(this,i,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:Fn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Hn(i,!1,!1),n[i]=Hn(i,!0,!1),t[i]=Hn(i,!1,!0),o[i]=Hn(i,!0,!0)}),[e,n,t,o]}const[jl,Rl,Dl,Bl]=zl();function Oo(e,t){const n=t?e?Bl:Dl:e?Rl:jl;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ue(n,r)&&r in o?n:o,r,i)}const Nl={get:Oo(!1,!1)},Vl={get:Oo(!1,!0)},Fl={get:Oo(!0,!1)},Xr=new WeakMap,Zr=new WeakMap,Gr=new WeakMap,Hl=new WeakMap;function Wl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Kl(e){return e.__v_skip||!Object.isExtensible(e)?0:Wl(ml(e))}function an(e){return Qt(e)?e:Lo(e,!1,Ol,Nl,Xr)}function ql(e){return Lo(e,!1,Al,Vl,Zr)}function Qr(e){return Lo(e,!0,Ll,Fl,Gr)}function Lo(e,t,n,o,r){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Kl(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return r.set(e,l),l}function Gt(e){return Qt(e)?Gt(e.__v_raw):!!(e&&e.__v_isReactive)}function Qt(e){return!!(e&&e.__v_isReadonly)}function Wn(e){return!!(e&&e.__v_isShallow)}function Jr(e){return Gt(e)||Qt(e)}function ae(e){const t=e&&e.__v_raw;return t?ae(t):e}function ei(e){return Rn(e,"__v_skip",!0),e}const cn=e=>ge(e)?an(e):e,Ao=e=>ge(e)?Qr(e):e;class ti{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ko(()=>t(this._value),()=>un(this,1),()=>this.dep&&Br(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=ae(this);return(!t._cacheable||t.effect.dirty)&&st(t._value,t._value=t.effect.run())&&un(t,2),zo(t),t.effect._dirtyLevel>=1&&un(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 o,r;const i=re(e);return i?(o=e,r=Ve):(o=e.get,r=e.set),new ti(o,r,i||!r,n)}function zo(e){yt&&zt&&(e=ae(e),Rr(zt,e.dep||(e.dep=Nr(()=>e.dep=void 0,e instanceof ti?e:void 0))))}function un(e,t=2,n){e=ae(e);const o=e.dep;o&&Dr(o,t)}function Ce(e){return!!(e&&e.__v_isRef===!0)}function X(e){return Yl(e,!1)}function Yl(e,t){return Ce(e)?e:new Xl(e,t)}class Xl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ae(t),this._value=n?t:cn(t)}get value(){return zo(this),this._value}set value(t){const n=this.__v_isShallow||Wn(t)||Qt(t);t=n?t:ae(t),st(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:cn(t),un(this,2))}}function Z(e){return Ce(e)?e.value:e}const Zl={get:(e,t,n)=>Z(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ce(r)&&!Ce(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function ni(e){return Gt(e)?e:new Proxy(e,Zl)}class Gl{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>zo(this),()=>un(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function Ql(e){return new Gl(e)}/**
|
|
9
|
+
**/let He;class Sl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=He,!t&&He&&(this.index=(He.scopes||(He.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=He;try{return He=this,t()}finally{He=n}}}on(){He=this}off(){He=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function kl(e,t=He){t&&t.active&&t.effects.push(e)}function Mr(){return He}function Il(e){He&&He.cleanups.push(e)}let zt;class ko{constructor(t,n,o,r){this.fn=t,this.trigger=n,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,kl(this,r)}get dirty(){if(this._dirtyLevel===1){_t();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Cl(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),wt()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=yt,n=zt;try{return yt=!0,zt=this,this._runnings++,Or(this),this.fn()}finally{Lr(this),this._runnings--,zt=n,yt=t}}stop(){var t;this.active&&(Or(this),Lr(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Cl(e){return e.value}function Or(e){e._trackId++,e._depsLength=0}function Lr(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Ar(e.deps[t],e);e.deps.length=e._depsLength}}function Ar(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let yt=!0,Io=0;const zr=[];function _t(){zr.push(yt),yt=!1}function wt(){const e=zr.pop();yt=e===void 0?!0:e}function Co(){Io++}function To(){for(Io--;!Io&&Eo.length;)Eo.shift()()}function jr(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&Ar(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Eo=[];function Rr(e,t,n){Co();for(const o of e.keys())if(o._dirtyLevel<t&&e.get(o)===o._trackId){const r=o._dirtyLevel;o._dirtyLevel=t,r===0&&(o._shouldSchedule=!0,o.trigger())}Dr(e),To()}function Dr(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,Eo.push(t.scheduler))}const Br=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},$o=new WeakMap,jt=Symbol(""),Po=Symbol("");function Re(e,t,n){if(yt&&zt){let o=$o.get(e);o||$o.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=Br(()=>o.delete(n))),jr(zt,r)}}function pt(e,t,n,o,r,i){const s=$o.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&te(e)){const a=Number(o);s.forEach((c,u)=>{(u==="length"||!Gt(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":te(e)?bo(n)&&l.push(s.get("length")):(l.push(s.get(jt)),Zt(e)&&l.push(s.get(Po)));break;case"delete":te(e)||(l.push(s.get(jt)),Zt(e)&&l.push(s.get(Po)));break;case"set":Zt(e)&&l.push(s.get(jt));break}Co();for(const a of l)a&&Rr(a,2);To()}const Tl=Ne("__proto__,__v_isRef,__isVue"),Nr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Gt)),Vr=El();function El(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ae(this);for(let i=0,s=this.length;i<s;i++)Re(o,"get",i+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(ae)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){_t(),Co();const o=ae(this)[t].apply(this,n);return To(),wt(),o}}),e}function $l(e){const t=ae(this);return Re(t,"has",e),t.hasOwnProperty(e)}class Fr{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,o){const r=this._isReadonly,i=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return o===(r?i?Fl:Zr:i?Xr:Yr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=te(t);if(!r){if(s&&ue(Vr,n))return Reflect.get(Vr,n,o);if(n==="hasOwnProperty")return $l}const l=Reflect.get(t,n,o);return(Gt(n)?Nr.has(n):Tl(n))||(r||Re(t,"get",n),i)?l:Ce(l)?s&&bo(n)?l:l.value:ge(l)?r?Gr(l):cn(l):l}}class Hr extends Fr{constructor(t=!1){super(!1,t)}set(t,n,o,r){let i=t[n];if(!this._shallow){const a=Jt(i);if(!Wn(o)&&!Jt(o)&&(i=ae(i),o=ae(o)),!te(t)&&Ce(i)&&!Ce(o))return a?!1:(i.value=o,!0)}const s=te(t)&&bo(n)?Number(n)<t.length:ue(t,n),l=Reflect.set(t,n,o,r);return t===ae(r)&&(s?st(o,i)&&pt(t,"set",n,o):pt(t,"add",n,o)),l}deleteProperty(t,n){const o=ue(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&o&&pt(t,"delete",n,void 0),r}has(t,n){const o=Reflect.has(t,n);return(!Gt(n)||!Nr.has(n))&&Re(t,"has",n),o}ownKeys(t){return Re(t,"iterate",te(t)?"length":jt),Reflect.ownKeys(t)}}class Pl extends Fr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ml=new Hr,Ol=new Pl,Ll=new Hr(!0),Mo=e=>e,Dn=e=>Reflect.getPrototypeOf(e);function Bn(e,t,n=!1,o=!1){e=e.__v_raw;const r=ae(e),i=ae(t);n||(st(t,i)&&Re(r,"get",t),Re(r,"get",i));const{has:s}=Dn(r),l=o?Mo:n?Ao:un;if(s.call(r,t))return l(e.get(t));if(s.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function Nn(e,t=!1){const n=this.__v_raw,o=ae(n),r=ae(e);return t||(st(e,r)&&Re(o,"has",e),Re(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Vn(e,t=!1){return e=e.__v_raw,!t&&Re(ae(e),"iterate",jt),Reflect.get(e,"size",e)}function Wr(e){e=ae(e);const t=ae(this);return Dn(t).has.call(t,e)||(t.add(e),pt(t,"add",e,e)),this}function Kr(e,t){t=ae(t);const n=ae(this),{has:o,get:r}=Dn(n);let i=o.call(n,e);i||(e=ae(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?st(t,s)&&pt(n,"set",e,t):pt(n,"add",e,t),this}function qr(e){const t=ae(this),{has:n,get:o}=Dn(t);let r=n.call(t,e);r||(e=ae(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&pt(t,"delete",e,void 0),i}function Ur(){const e=ae(this),t=e.size!==0,n=e.clear();return t&&pt(e,"clear",void 0,void 0),n}function Fn(e,t){return function(o,r){const i=this,s=i.__v_raw,l=ae(s),a=t?Mo:e?Ao:un;return!e&&Re(l,"iterate",jt),s.forEach((c,u)=>o.call(r,a(c),a(u),i))}}function Hn(e,t,n){return function(...o){const r=this.__v_raw,i=ae(r),s=Zt(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...o),u=n?Mo:t?Ao:un;return!t&&Re(i,"iterate",a?Po:jt),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:l?[u(f[0]),u(f[1])]:u(f),done:h}},[Symbol.iterator](){return this}}}}function xt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Al(){const e={get(i){return Bn(this,i)},get size(){return Vn(this)},has:Nn,add:Wr,set:Kr,delete:qr,clear:Ur,forEach:Fn(!1,!1)},t={get(i){return Bn(this,i,!1,!0)},get size(){return Vn(this)},has:Nn,add:Wr,set:Kr,delete:qr,clear:Ur,forEach:Fn(!1,!0)},n={get(i){return Bn(this,i,!0)},get size(){return Vn(this,!0)},has(i){return Nn.call(this,i,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:Fn(!0,!1)},o={get(i){return Bn(this,i,!0,!0)},get size(){return Vn(this,!0)},has(i){return Nn.call(this,i,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:Fn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Hn(i,!1,!1),n[i]=Hn(i,!0,!1),t[i]=Hn(i,!1,!0),o[i]=Hn(i,!0,!0)}),[e,n,t,o]}const[zl,jl,Rl,Dl]=Al();function Oo(e,t){const n=t?e?Dl:Rl:e?jl:zl;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ue(n,r)&&r in o?n:o,r,i)}const Bl={get:Oo(!1,!1)},Nl={get:Oo(!1,!0)},Vl={get:Oo(!0,!1)},Yr=new WeakMap,Xr=new WeakMap,Zr=new WeakMap,Fl=new WeakMap;function Hl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wl(e){return e.__v_skip||!Object.isExtensible(e)?0:Hl(gl(e))}function cn(e){return Jt(e)?e:Lo(e,!1,Ml,Bl,Yr)}function Kl(e){return Lo(e,!1,Ll,Nl,Xr)}function Gr(e){return Lo(e,!0,Ol,Vl,Zr)}function Lo(e,t,n,o,r){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Wl(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return r.set(e,l),l}function Qt(e){return Jt(e)?Qt(e.__v_raw):!!(e&&e.__v_isReactive)}function Jt(e){return!!(e&&e.__v_isReadonly)}function Wn(e){return!!(e&&e.__v_isShallow)}function Qr(e){return Qt(e)||Jt(e)}function ae(e){const t=e&&e.__v_raw;return t?ae(t):e}function Jr(e){return Rn(e,"__v_skip",!0),e}const un=e=>ge(e)?cn(e):e,Ao=e=>ge(e)?Gr(e):e;class ei{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ko(()=>t(this._value),()=>dn(this,1),()=>this.dep&&Dr(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=ae(this);return(!t._cacheable||t.effect.dirty)&&st(t._value,t._value=t.effect.run())&&dn(t,2),zo(t),t.effect._dirtyLevel>=1&&dn(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function ql(e,t,n=!1){let o,r;const i=re(e);return i?(o=e,r=Ve):(o=e.get,r=e.set),new ei(o,r,i||!r,n)}function zo(e){yt&&zt&&(e=ae(e),jr(zt,e.dep||(e.dep=Br(()=>e.dep=void 0,e instanceof ei?e:void 0))))}function dn(e,t=2,n){e=ae(e);const o=e.dep;o&&Rr(o,t)}function Ce(e){return!!(e&&e.__v_isRef===!0)}function Z(e){return Ul(e,!1)}function Ul(e,t){return Ce(e)?e:new Yl(e,t)}class Yl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ae(t),this._value=n?t:un(t)}get value(){return zo(this),this._value}set value(t){const n=this.__v_isShallow||Wn(t)||Jt(t);t=n?t:ae(t),st(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:un(t),dn(this,2))}}function G(e){return Ce(e)?e.value:e}const Xl={get:(e,t,n)=>G(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ce(r)&&!Ce(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function ti(e){return Qt(e)?e:new Proxy(e,Xl)}class Zl{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>zo(this),()=>dn(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function Gl(e){return new Zl(e)}/**
|
|
10
10
|
* @vue/runtime-core v3.4.15
|
|
11
11
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
12
|
* @license MIT
|
|
13
|
-
**/const
|
|
13
|
+
**/const fn=[];function zp(e,...t){_t();const n=fn.length?fn[fn.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=Ql();if(o)ht(o,n,11,[e+t.join(""),n&&n.proxy,r.map(({vnode:i})=>`at <${Ui(n,i.type)}>`).join(`
|
|
14
14
|
`),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(`
|
|
15
|
-
`,...
|
|
16
|
-
`],...ta(n))}),t}function ta({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,r=` at <${Yi(e.component,e.type,o)}`,i=">"+n;return e.props?[r,...na(e.props),i]:[r+i]}function na(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...oi(o,e[o]))}),n.length>3&&t.push(" ..."),t}function oi(e,t,n){return we(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Ce(t)?(t=oi(e,ae(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):re(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ae(t),n?t:[`${e}=`,t])}function ht(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){Kn(i,t,n)}return r}function Ze(e,t,n,o){if(re(e)){const i=ht(e,t,n,o);return i&&Cr(i)&&i.catch(s=>{Kn(s,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(Ze(e[i],t,n,o));return r}function Kn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,l)===!1)return}i=i.parent}const a=t.appContext.config.errorHandler;if(a){ht(a,null,10,[e,s,l]);return}}oa(e,n,r,o)}function oa(e,t,n,o=!0){console.error(e)}let fn=!1,jo=!1;const Me=[];let lt=0;const Jt=[];let St=null,Rt=0;const ri=Promise.resolve();let Ro=null;function gt(e){const t=Ro||ri;return e?t.then(this?e.bind(this):e):t}function ra(e){let t=lt+1,n=Me.length;for(;t<n;){const o=t+n>>>1,r=Me[o],i=pn(r);i<e||i===e&&r.pre?t=o+1:n=o}return t}function Do(e){(!Me.length||!Me.includes(e,fn&&e.allowRecurse?lt+1:lt))&&(e.id==null?Me.push(e):Me.splice(ra(e.id),0,e),ii())}function ii(){!fn&&!jo&&(jo=!0,Ro=ri.then(ai))}function ia(e){const t=Me.indexOf(e);t>lt&&Me.splice(t,1)}function sa(e){ee(e)?Jt.push(...e):(!St||!St.includes(e,e.allowRecurse?Rt+1:Rt))&&Jt.push(e),ii()}function si(e,t,n=fn?lt+1:0){for(;n<Me.length;n++){const o=Me[n];if(o&&o.pre){if(e&&o.id!==e.uid)continue;Me.splice(n,1),n--,o()}}}function li(e){if(Jt.length){const t=[...new Set(Jt)].sort((n,o)=>pn(n)-pn(o));if(Jt.length=0,St){St.push(...t);return}for(St=t,Rt=0;Rt<St.length;Rt++)St[Rt]();St=null,Rt=0}}const pn=e=>e.id==null?1/0:e.id,la=(e,t)=>{const n=pn(e)-pn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ai(e){jo=!1,fn=!0,Me.sort(la);const t=Ve;try{for(lt=0;lt<Me.length;lt++){const n=Me[lt];n&&n.active!==!1&&ht(n,null,14)}}finally{lt=0,Me.length=0,li(),fn=!1,Ro=null,(Me.length||Jt.length)&&ai()}}function aa(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||le;let r=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in o){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:f,trim:h}=o[u]||le;h&&(r=n.map(x=>we(x)?x.trim():x)),f&&(r=n.map(_o))}let l,a=o[l=yo(t)]||o[l=yo(je(t))];!a&&i&&(a=o[l=yo(Fe(t))]),a&&Ze(a,e,6,r);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ze(c,e,6,r)}}function ci(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let s={},l=!1;if(!re(e)){const a=c=>{const u=ci(c,t,!0);u&&(l=!0,_e(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(ge(e)&&o.set(e,null),null):(ee(i)?i.forEach(a=>s[a]=null):_e(s,i),ge(e)&&o.set(e,s),s)}function qn(e,t){return!e||!Mn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ue(e,t[0].toLowerCase()+t.slice(1))||ue(e,Fe(t))||ue(e,t))}let Te=null,ui=null;function Un(e){const t=Te;return Te=e,ui=e&&e.type.__scopeId||null,t}function ie(e,t=Te,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Bi(-1);const i=Un(t);let s;try{s=e(...r)}finally{Un(i),o._d&&Bi(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function jp(){}function Bo(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:f,data:h,setupState:x,ctx:y,inheritAttrs:_}=e;let $,z;const q=Un(e);try{if(n.shapeFlag&4){const N=r||o,S=N;$=at(u.call(S,N,f,i,x,h,y)),z=a}else{const N=t;$=at(N.length>1?N(i,{attrs:a,slots:l,emit:c}):N(i,null)),z=t.props?a:ca(a)}}catch(N){bn.length=0,Kn(N,e,1),$=G(Je)}let k=$;if(z&&_!==!1){const N=Object.keys(z),{shapeFlag:S}=k;N.length&&S&7&&(s&&N.some(mo)&&(z=ua(z,s)),k=It(k,z))}return n.dirs&&(k=It(k),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&(k.transition=n.transition),$=k,Un(q),$}const ca=e=>{let t;for(const n in e)(n==="class"||n==="style"||Mn(n))&&((t||(t={}))[n]=e[n]);return t},ua=(e,t)=>{const n={};for(const o in e)(!mo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function da(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?di(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const h=u[f];if(s[h]!==o[h]&&!qn(c,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?di(o,s,c):!0:!!s;return!1}function di(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const i=o[r];if(t[i]!==e[i]&&!qn(n,i))return!0}return!1}function fa({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=n,t=t.parent;else break}}const fi="components",pi=Symbol.for("v-ndc");function pa(e){return we(e)?ha(fi,e,!1)||e:e||pi}function ha(e,t,n=!0,o=!1){const r=Te||Pe;if(r){const i=r.type;if(e===fi){const l=Ui(i,!1);if(l&&(l===t||l===je(t)||l===zn(je(t))))return i}const s=hi(r[e]||i[e],t)||hi(r.appContext[e],t);return!s&&o?i:s}}function hi(e,t){return e&&(e[t]||e[je(t)]||e[zn(je(t))])}const ga=e=>e.__isSuspense;function ma(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):sa(e)}const va=Symbol.for("v-scx"),ba=()=>Vt(va);function ya(e,t){return No(e,null,{flush:"sync"})}const Yn={};function pe(e,t,n){return No(e,t,n)}function No(e,t,{immediate:n,deep:o,flush:r,once:i,onTrack:s,onTrigger:l}=le){if(t&&i){const m=t;t=(...w)=>{m(...w),S()}}const a=Pe,c=m=>o===!0?m:Dt(m,o===!1?1:void 0);let u,f=!1,h=!1;if(Ce(e)?(u=()=>e.value,f=Wn(e)):Gt(e)?(u=()=>c(e),f=!0):ee(e)?(h=!0,f=e.some(m=>Gt(m)||Wn(m)),u=()=>e.map(m=>{if(Ce(m))return m.value;if(Gt(m))return c(m);if(re(m))return ht(m,a,2)})):re(e)?t?u=()=>ht(e,a,2):u=()=>(x&&x(),Ze(e,a,3,[y])):u=Ve,t&&o){const m=u;u=()=>Dt(m())}let x,y=m=>{x=k.onStop=()=>{ht(m,a,4),x=k.onStop=void 0}},_;if(ao)if(y=Ve,t?n&&Ze(t,a,3,[u(),h?[]:void 0,y]):u(),r==="sync"){const m=ba();_=m.__watcherHandles||(m.__watcherHandles=[])}else return Ve;let $=h?new Array(e.length).fill(Yn):Yn;const z=()=>{if(!(!k.active||!k.dirty))if(t){const m=k.run();(o||f||(h?m.some((w,v)=>st(w,$[v])):st(m,$)))&&(x&&x(),Ze(t,a,3,[m,$===Yn?void 0:h&&$[0]===Yn?[]:$,y]),$=m)}else k.run()};z.allowRecurse=!!t;let q;r==="sync"?q=z:r==="post"?q=()=>De(z,a&&a.suspense):(z.pre=!0,a&&(z.id=a.uid),q=()=>Do(z));const k=new ko(u,Ve,q),N=Or(),S=()=>{k.stop(),N&&vo(N.effects,k)};return t?n?z():$=k.run():r==="post"?De(k.run.bind(k),a&&a.suspense):k.run(),_&&_.push(S),S}function _a(e,t,n){const o=this.proxy,r=we(e)?e.includes(".")?gi(o,e):()=>o[e]:e.bind(o,o);let i;re(t)?i=t:(i=t.handler,n=t);const s=_n(this),l=No(r,i.bind(o),n);return s(),l}function gi(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r<n.length&&o;r++)o=o[n[r]];return o}}function Dt(e,t,n=0,o){if(!ge(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(o=o||new Set,o.has(e))return e;if(o.add(e),Ce(e))Dt(e.value,t,n,o);else if(ee(e))for(let r=0;r<e.length;r++)Dt(e[r],t,n,o);else if(Ir(e)||Xt(e))e.forEach(r=>{Dt(r,t,n,o)});else if(Er(e))for(const r in e)Dt(e[r],t,n,o);return e}function mt(e,t){if(Te===null)return e;const n=co(Te)||Te.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,s,l,a=le]=t[r];i&&(re(i)&&(i={mounted:i,updated:i}),i.deep&&Dt(s),o.push({dir:i,instance:n,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Bt(e,t,n,o){const r=e.dirs,i=t&&t.dirs;for(let s=0;s<r.length;s++){const l=r[s];i&&(l.oldValue=i[s].value);let a=l.dir[o];a&&(_t(),Ze(a,n,8,[e.el,l,e,t]),wt())}}const kt=Symbol("_leaveCb"),Xn=Symbol("_enterCb");function wa(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Qe(()=>{e.isMounted=!0}),Wo(()=>{e.isUnmounting=!0}),e}const Ge=[Function,Array],mi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ge,onEnter:Ge,onAfterEnter:Ge,onEnterCancelled:Ge,onBeforeLeave:Ge,onLeave:Ge,onAfterLeave:Ge,onLeaveCancelled:Ge,onBeforeAppear:Ge,onAppear:Ge,onAfterAppear:Ge,onAppearCancelled:Ge},xa={name:"BaseTransition",props:mi,setup(e,{slots:t}){const n=nr(),o=wa();let r;return()=>{const i=t.default&&yi(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const _ of i)if(_.type!==Je){s=_;break}}const l=ae(e),{mode:a}=l;if(o.isLeaving)return Fo(s);const c=bi(s);if(!c)return Fo(s);const u=Vo(c,l,o,n);Ho(c,u);const f=n.subTree,h=f&&bi(f);let x=!1;const{getTransitionKey:y}=c.type;if(y){const _=y();r===void 0?r=_:_!==r&&(r=_,x=!0)}if(h&&h.type!==Je&&(!Ht(c,h)||x)){const _=Vo(h,l,o,n);if(Ho(h,_),a==="out-in")return o.isLeaving=!0,_.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Fo(s);a==="in-out"&&c.type!==Je&&(_.delayLeave=($,z,q)=>{const k=vi(o,h);k[String(h.key)]=h,$[kt]=()=>{z(),$[kt]=void 0,delete u.delayedLeave},u.delayedLeave=q})}return s}}};function vi(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Vo(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:h,onAfterLeave:x,onLeaveCancelled:y,onBeforeAppear:_,onAppear:$,onAfterAppear:z,onAppearCancelled:q}=t,k=String(e.key),N=vi(n,e),S=(v,C)=>{v&&Ze(v,o,9,C)},m=(v,C)=>{const L=C[1];S(v,C),ee(v)?v.every(te=>te.length<=1)&&L():v.length<=1&&L()},w={mode:i,persisted:s,beforeEnter(v){let C=l;if(!n.isMounted)if(r)C=_||l;else return;v[kt]&&v[kt](!0);const L=N[k];L&&Ht(e,L)&&L.el[kt]&&L.el[kt](),S(C,[v])},enter(v){let C=a,L=c,te=u;if(!n.isMounted)if(r)C=$||a,L=z||c,te=q||u;else return;let V=!1;const oe=v[Xn]=P=>{V||(V=!0,P?S(te,[v]):S(L,[v]),w.delayedLeave&&w.delayedLeave(),v[Xn]=void 0)};C?m(C,[v,oe]):oe()},leave(v,C){const L=String(e.key);if(v[Xn]&&v[Xn](!0),n.isUnmounting)return C();S(f,[v]);let te=!1;const V=v[kt]=oe=>{te||(te=!0,C(),oe?S(y,[v]):S(x,[v]),v[kt]=void 0,N[L]===e&&delete N[L])};N[L]=e,h?m(h,[v,V]):V()},clone(v){return Vo(v,t,n,o)}};return w}function Fo(e){if(Zn(e))return e=It(e),e.children=null,e}function bi(e){return Zn(e)?e.children?e.children[0]:void 0:e}function Ho(e,t){e.shapeFlag&6&&e.component?Ho(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 yi(e,t=!1,n){let o=[],r=0;for(let i=0;i<e.length;i++){let s=e[i];const l=n==null?s.key:String(n)+String(s.key!=null?s.key:i);s.type===Se?(s.patchFlag&128&&r++,o=o.concat(yi(s.children,t,l))):(t||s.type!==Je)&&o.push(l!=null?It(s,{key:l}):s)}if(r>1)for(let i=0;i<o.length;i++)o[i].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function ke(e,t){return re(e)?(()=>_e({name:e.name},t,{setup:e}))():e}const hn=e=>!!e.type.__asyncLoader,Zn=e=>e.type.__isKeepAlive;function Sa(e,t){_i(e,"a",t)}function ka(e,t){_i(e,"da",t)}function _i(e,t,n=Pe){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Gn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Zn(r.parent.vnode)&&Ia(o,t,n,r),r=r.parent}}function Ia(e,t,n,o){const r=Gn(t,e,o,!0);Nt(()=>{vo(o[t],r)},n)}function Gn(e,t,n=Pe,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;_t();const l=_n(n),a=Ze(t,n,e,s);return l(),wt(),a});return o?r.unshift(i):r.push(i),i}}const vt=e=>(t,n=Pe)=>(!ao||e==="sp")&&Gn(e,(...o)=>t(...o),n),Ca=vt("bm"),Qe=vt("m"),Ta=vt("bu"),Ea=vt("u"),Wo=vt("bum"),Nt=vt("um"),$a=vt("sp"),Pa=vt("rtg"),Ma=vt("rtc");function Oa(e,t=Pe){Gn("ec",e,t)}function gn(e,t,n,o){let r;const i=n&&n[o];if(ee(e)||we(e)){r=new Array(e.length);for(let s=0,l=e.length;s<l;s++)r[s]=t(e[s],s,void 0,i&&i[s])}else if(typeof e=="number"){r=new Array(e);for(let s=0;s<e;s++)r[s]=t(s+1,s,void 0,i&&i[s])}else if(ge(e))if(e[Symbol.iterator])r=Array.from(e,(s,l)=>t(s,l,void 0,i&&i[l]));else{const s=Object.keys(e);r=new Array(s.length);for(let l=0,a=s.length;l<a;l++){const c=s[l];r[l]=t(e[c],c,l,i&&i[l])}}else r=[];return n&&(n[o]=r),r}function wi(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(ee(o))for(let r=0;r<o.length;r++)e[o[r].name]=o[r].fn;else o&&(e[o.name]=o.key?(...r)=>{const i=o.fn(...r);return i&&(i.key=o.key),i}:o.fn)}return e}function xe(e,t,n={},o,r){if(Te.isCE||Te.parent&&hn(Te.parent)&&Te.parent.isCE)return t!=="default"&&(n.name=t),G("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),R();const s=i&&xi(i(n)),l=me(Se,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function xi(e){return e.some(t=>oo(t)?!(t.type===Je||t.type===Se&&!xi(t.children)):!0)?e:null}const Ko=e=>e?Hi(e)?co(e)||e.proxy:Ko(e.parent):null,mn=_e(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=>Ko(e.parent),$root:e=>Ko(e.root),$emit:e=>e.emit,$options:e=>Yo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Do(e.update)}),$nextTick:e=>e.n||(e.n=gt.bind(e.proxy)),$watch:e=>_a.bind(e)}),qo=(e,t)=>e!==le&&!e.__isScriptSetup&&ue(e,t),La={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const x=s[t];if(x!==void 0)switch(x){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(qo(o,t))return s[t]=1,o[t];if(r!==le&&ue(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&ue(c,t))return s[t]=3,i[t];if(n!==le&&ue(n,t))return s[t]=4,n[t];Uo&&(s[t]=0)}}const u=mn[t];let f,h;if(u)return t==="$attrs"&&Re(e,"get",t),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==le&&ue(n,t))return s[t]=4,n[t];if(h=a.config.globalProperties,ue(h,t))return h[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return qo(r,t)?(r[t]=n,!0):o!==le&&ue(o,t)?(o[t]=n,!0):ue(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let l;return!!n[s]||e!==le&&ue(e,s)||qo(t,s)||(l=i[0])&&ue(l,s)||ue(o,s)||ue(mn,s)||ue(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ue(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Qn(e){return ee(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function en(e,t){return!e||!t?e||t:ee(e)&&ee(t)?e.concat(t):_e({},Qn(e),Qn(t))}let Uo=!0;function Aa(e){const t=Yo(e),n=e.proxy,o=e.ctx;Uo=!1,t.beforeCreate&&Si(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:h,beforeUpdate:x,updated:y,activated:_,deactivated:$,beforeDestroy:z,beforeUnmount:q,destroyed:k,unmounted:N,render:S,renderTracked:m,renderTriggered:w,errorCaptured:v,serverPrefetch:C,expose:L,inheritAttrs:te,components:V,directives:oe,filters:P}=t;if(c&&za(c,o,null),s)for(const O in s){const F=s[O];re(F)&&(o[O]=F.bind(n))}if(r){const O=r.call(n,n);ge(O)&&(e.data=an(O))}if(Uo=!0,i)for(const O in i){const F=i[O],ce=re(F)?F.bind(n,n):re(F.get)?F.get.bind(n,n):Ve,fe=!re(F)&&re(F.set)?F.set.bind(n):Ve,be=se({get:ce,set:fe});Object.defineProperty(o,O,{enumerable:!0,configurable:!0,get:()=>be.value,set:ye=>be.value=ye})}if(l)for(const O in l)ki(l[O],o,n,O);if(a){const O=re(a)?a.call(n):a;Reflect.ownKeys(O).forEach(F=>{to(F,O[F])})}u&&Si(u,e,"c");function K(O,F){ee(F)?F.forEach(ce=>O(ce.bind(n))):F&&O(F.bind(n))}if(K(Ca,f),K(Qe,h),K(Ta,x),K(Ea,y),K(Sa,_),K(ka,$),K(Oa,v),K(Ma,m),K(Pa,w),K(Wo,q),K(Nt,N),K($a,C),ee(L))if(L.length){const O=e.exposed||(e.exposed={});L.forEach(F=>{Object.defineProperty(O,F,{get:()=>n[F],set:ce=>n[F]=ce})})}else e.exposed||(e.exposed={});S&&e.render===Ve&&(e.render=S),te!=null&&(e.inheritAttrs=te),V&&(e.components=V),oe&&(e.directives=oe)}function za(e,t,n=Ve){ee(e)&&(e=Xo(e));for(const o in e){const r=e[o];let i;ge(r)?"default"in r?i=Vt(r.from||o,r.default,!0):i=Vt(r.from||o):i=Vt(r),Ce(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function Si(e,t,n){Ze(ee(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function ki(e,t,n,o){const r=o.includes(".")?gi(n,o):()=>n[o];if(we(e)){const i=t[e];re(i)&&pe(r,i)}else if(re(e))pe(r,e.bind(n));else if(ge(e))if(ee(e))e.forEach(i=>ki(i,t,n,o));else{const i=re(e.handler)?e.handler.bind(n):t[e.handler];re(i)&&pe(r,i,e)}}function Yo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let a;return l?a=l:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(c=>Jn(a,c,s,!0)),Jn(a,t,s)),ge(t)&&i.set(t,a),a}function Jn(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Jn(e,i,n,!0),r&&r.forEach(s=>Jn(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=ja[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const ja={data:Ii,props:Ci,emits:Ci,methods:vn,computed:vn,beforeCreate:Le,created:Le,beforeMount:Le,mounted:Le,beforeUpdate:Le,updated:Le,beforeDestroy:Le,beforeUnmount:Le,destroyed:Le,unmounted:Le,activated:Le,deactivated:Le,errorCaptured:Le,serverPrefetch:Le,components:vn,directives:vn,watch:Da,provide:Ii,inject:Ra};function Ii(e,t){return t?e?function(){return _e(re(e)?e.call(this,this):e,re(t)?t.call(this,this):t)}:t:e}function Ra(e,t){return vn(Xo(e),Xo(t))}function Xo(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Le(e,t){return e?[...new Set([].concat(e,t))]:t}function vn(e,t){return e?_e(Object.create(null),e,t):t}function Ci(e,t){return e?ee(e)&&ee(t)?[...new Set([...e,...t])]:_e(Object.create(null),Qn(e),Qn(t??{})):t}function Da(e,t){if(!e)return t;if(!t)return e;const n=_e(Object.create(null),e);for(const o in t)n[o]=Le(e[o],t[o]);return n}function Ti(){return{app:null,config:{isNativeTag:hl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ba=0;function Na(e,t){return function(o,r=null){re(o)||(o=_e({},o)),r!=null&&!ge(r)&&(r=null);const i=Ti(),s=new WeakSet;let l=!1;const a=i.app={_uid:Ba++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:dc,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&re(c.install)?(s.add(c),c.install(a,...u)):re(c)&&(s.add(c),c(a,...u))),a},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),a},component(c,u){return u?(i.components[c]=u,a):i.components[c]},directive(c,u){return u?(i.directives[c]=u,a):i.directives[c]},mount(c,u,f){if(!l){const h=G(o,r);return h.appContext=i,f===!0?f="svg":f===!1&&(f=void 0),u&&t?t(h,c):e(h,c,f),l=!0,a._container=c,c.__vue_app__=a,co(h.component)||h.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return i.provides[c]=u,a},runWithContext(c){eo=a;try{return c()}finally{eo=null}}};return a}}let eo=null;function to(e,t){if(Pe){let n=Pe.provides;const o=Pe.parent&&Pe.parent.provides;o===n&&(n=Pe.provides=Object.create(o)),n[e]=t}}function Vt(e,t,n=!1){const o=Pe||Te;if(o||eo){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:eo._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&re(t)?t.call(o&&o.proxy):t}}function Va(e,t,n,o=!1){const r={},i={};Rn(i,ro,1),e.propsDefaults=Object.create(null),Ei(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:ql(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Fa(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=ae(r),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let h=u[f];if(qn(e.emitsOptions,h))continue;const x=t[h];if(a)if(ue(i,h))x!==i[h]&&(i[h]=x,c=!0);else{const y=je(h);r[y]=Zo(a,l,y,x,e,!1)}else x!==i[h]&&(i[h]=x,c=!0)}}}else{Ei(e,t,r,i)&&(c=!0);let u;for(const f in l)(!t||!ue(t,f)&&((u=Fe(f))===f||!ue(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(r[f]=Zo(a,l,f,void 0,e,!0)):delete r[f]);if(i!==l)for(const f in i)(!t||!ue(t,f))&&(delete i[f],c=!0)}c&&pt(e,"set","$attrs")}function Ei(e,t,n,o){const[r,i]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(Ln(a))continue;const c=t[a];let u;r&&ue(r,u=je(a))?!i||!i.includes(u)?n[u]=c:(l||(l={}))[u]=c:qn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(i){const a=ae(n),c=l||le;for(let u=0;u<i.length;u++){const f=i[u];n[f]=Zo(r,a,f,c[f],e,!ue(c,f))}}return s}function Zo(e,t,n,o,r,i){const s=e[n];if(s!=null){const l=ue(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&re(a)){const{propsDefaults:c}=r;if(n in c)o=c[n];else{const u=_n(r);o=c[n]=a.call(null,t),u()}}else o=a}s[0]&&(i&&!l?o=!1:s[1]&&(o===""||o===Fe(n))&&(o=!0))}return o}function $i(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const i=e.props,s={},l=[];let a=!1;if(!re(e)){const u=f=>{a=!0;const[h,x]=$i(f,t,!0);_e(s,h),x&&l.push(...x)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return ge(e)&&o.set(e,Ye),Ye;if(ee(i))for(let u=0;u<i.length;u++){const f=je(i[u]);Pi(f)&&(s[f]=le)}else if(i)for(const u in i){const f=je(u);if(Pi(f)){const h=i[u],x=s[f]=ee(h)||re(h)?{type:h}:_e({},h);if(x){const y=Li(Boolean,x.type),_=Li(String,x.type);x[0]=y>-1,x[1]=_<0||y<_,(y>-1||ue(x,"default"))&&l.push(f)}}}const c=[s,l];return ge(e)&&o.set(e,c),c}function Pi(e){return e[0]!=="$"}function Mi(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Oi(e,t){return Mi(e)===Mi(t)}function Li(e,t){return ee(t)?t.findIndex(n=>Oi(n,e)):re(t)&&Oi(t,e)?0:-1}const Ai=e=>e[0]==="_"||e==="$stable",Go=e=>ee(e)?e.map(at):[at(e)],Ha=(e,t,n)=>{if(t._n)return t;const o=ie((...r)=>Go(t(...r)),n);return o._c=!1,o},zi=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Ai(r))continue;const i=e[r];if(re(i))t[r]=Ha(r,i,o);else if(i!=null){const s=Go(i);t[r]=()=>s}}},ji=(e,t)=>{const n=Go(t);e.slots.default=()=>n},Wa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ae(t),Rn(t,"_",n)):zi(t,e.slots={})}else e.slots={},t&&ji(e,t);Rn(e.slots,ro,1)},Ka=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=le;if(o.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(_e(r,t),!n&&l===1&&delete r._):(i=!t.$stable,zi(t,r)),s=t}else t&&(ji(e,t),s={default:1});if(i)for(const l in r)!Ai(l)&&s[l]==null&&delete r[l]};function Qo(e,t,n,o,r=!1){if(ee(e)){e.forEach((h,x)=>Qo(h,t&&(ee(t)?t[x]:t),n,o,r));return}if(hn(o)&&!r)return;const i=o.shapeFlag&4?co(o.component)||o.component.proxy:o.el,s=r?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===le?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==a&&(we(c)?(u[c]=null,ue(f,c)&&(f[c]=null)):Ce(c)&&(c.value=null)),re(a))ht(a,l,12,[s,u]);else{const h=we(a),x=Ce(a),y=e.f;if(h||x){const _=()=>{if(y){const $=h?ue(f,a)?f[a]:u[a]:a.value;r?ee($)&&vo($,i):ee($)?$.includes(i)||$.push(i):h?(u[a]=[i],ue(f,a)&&(f[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else h?(u[a]=s,ue(f,a)&&(f[a]=s)):x&&(a.value=s,e.k&&(u[e.k]=s))};r||y?_():(_.id=-1,De(_,n))}}}function qa(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(xo().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const De=ma;function Ua(e){return Ya(e)}function Ya(e,t){qa();const n=xo();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:h,setScopeId:x=Ve,insertStaticContent:y}=e,_=(d,p,b,I=null,E=null,j=null,D=void 0,A=null,B=!!p.dynamicChildren)=>{if(d===p)return;d&&!Ht(d,p)&&(I=qe(d),ye(d,E,j,!0),d=null),p.patchFlag===-2&&(B=!1,p.dynamicChildren=null);const{type:M,ref:H,shapeFlag:Q}=p;switch(M){case no:$(d,p,b,I);break;case Je:z(d,p,b,I);break;case er:d==null&&q(p,b,I,D);break;case Se:V(d,p,b,I,E,j,D,A,B);break;default:Q&1?S(d,p,b,I,E,j,D,A,B):Q&6?oe(d,p,b,I,E,j,D,A,B):(Q&64||Q&128)&&M.process(d,p,b,I,E,j,D,A,B,dt)}H!=null&&E&&Qo(H,d&&d.ref,j,p||d,!p)},$=(d,p,b,I)=>{if(d==null)o(p.el=l(p.children),b,I);else{const E=p.el=d.el;p.children!==d.children&&c(E,p.children)}},z=(d,p,b,I)=>{d==null?o(p.el=a(p.children||""),b,I):p.el=d.el},q=(d,p,b,I)=>{[d.el,d.anchor]=y(d.children,p,b,I,d.el,d.anchor)},k=({el:d,anchor:p},b,I)=>{let E;for(;d&&d!==p;)E=h(d),o(d,b,I),d=E;o(p,b,I)},N=({el:d,anchor:p})=>{let b;for(;d&&d!==p;)b=h(d),r(d),d=b;r(p)},S=(d,p,b,I,E,j,D,A,B)=>{p.type==="svg"?D="svg":p.type==="math"&&(D="mathml"),d==null?m(p,b,I,E,j,D,A,B):C(d,p,E,j,D,A,B)},m=(d,p,b,I,E,j,D,A)=>{let B,M;const{props:H,shapeFlag:Q,transition:g,dirs:T}=d;if(B=d.el=s(d.type,j,H&&H.is,H),Q&8?u(B,d.children):Q&16&&v(d.children,B,null,I,E,Jo(d,j),D,A),T&&Bt(d,null,I,"created"),w(B,d,d.scopeId,D,I),H){for(const J in H)J!=="value"&&!Ln(J)&&i(B,J,null,H[J],j,d.children,I,E,Ke);"value"in H&&i(B,"value",null,H.value,j),(M=H.onVnodeBeforeMount)&&ct(M,I,d)}T&&Bt(d,null,I,"beforeMount");const W=Xa(E,g);W&&g.beforeEnter(B),o(B,p,b),((M=H&&H.onVnodeMounted)||W||T)&&De(()=>{M&&ct(M,I,d),W&&g.enter(B),T&&Bt(d,null,I,"mounted")},E)},w=(d,p,b,I,E)=>{if(b&&x(d,b),I)for(let j=0;j<I.length;j++)x(d,I[j]);if(E){let j=E.subTree;if(p===j){const D=E.vnode;w(d,D,D.scopeId,D.slotScopeIds,E.parent)}}},v=(d,p,b,I,E,j,D,A,B=0)=>{for(let M=B;M<d.length;M++){const H=d[M]=A?Tt(d[M]):at(d[M]);_(null,H,p,b,I,E,j,D,A)}},C=(d,p,b,I,E,j,D)=>{const A=p.el=d.el;let{patchFlag:B,dynamicChildren:M,dirs:H}=p;B|=d.patchFlag&16;const Q=d.props||le,g=p.props||le;let T;if(b&&Ft(b,!1),(T=g.onVnodeBeforeUpdate)&&ct(T,b,p,d),H&&Bt(p,d,b,"beforeUpdate"),b&&Ft(b,!0),M?L(d.dynamicChildren,M,A,b,I,Jo(p,E),j):D||F(d,p,A,null,b,I,Jo(p,E),j,!1),B>0){if(B&16)te(A,p,Q,g,b,I,E);else if(B&2&&Q.class!==g.class&&i(A,"class",null,g.class,E),B&4&&i(A,"style",Q.style,g.style,E),B&8){const W=p.dynamicProps;for(let J=0;J<W.length;J++){const de=W[J],$e=Q[de],it=g[de];(it!==$e||de==="value")&&i(A,de,$e,it,E,d.children,b,I,Ke)}}B&1&&d.children!==p.children&&u(A,p.children)}else!D&&M==null&&te(A,p,Q,g,b,I,E);((T=g.onVnodeUpdated)||H)&&De(()=>{T&&ct(T,b,p,d),H&&Bt(p,d,b,"updated")},I)},L=(d,p,b,I,E,j,D)=>{for(let A=0;A<p.length;A++){const B=d[A],M=p[A],H=B.el&&(B.type===Se||!Ht(B,M)||B.shapeFlag&70)?f(B.el):b;_(B,M,H,null,I,E,j,D,!0)}},te=(d,p,b,I,E,j,D)=>{if(b!==I){if(b!==le)for(const A in b)!Ln(A)&&!(A in I)&&i(d,A,b[A],null,D,p.children,E,j,Ke);for(const A in I){if(Ln(A))continue;const B=I[A],M=b[A];B!==M&&A!=="value"&&i(d,A,M,B,D,p.children,E,j,Ke)}"value"in I&&i(d,"value",b.value,I.value,D)}},V=(d,p,b,I,E,j,D,A,B)=>{const M=p.el=d?d.el:l(""),H=p.anchor=d?d.anchor:l("");let{patchFlag:Q,dynamicChildren:g,slotScopeIds:T}=p;T&&(A=A?A.concat(T):T),d==null?(o(M,b,I),o(H,b,I),v(p.children||[],b,H,E,j,D,A,B)):Q>0&&Q&64&&g&&d.dynamicChildren?(L(d.dynamicChildren,g,b,E,j,D,A),(p.key!=null||E&&p===E.subTree)&&Ri(d,p,!0)):F(d,p,b,H,E,j,D,A,B)},oe=(d,p,b,I,E,j,D,A,B)=>{p.slotScopeIds=A,d==null?p.shapeFlag&512?E.ctx.activate(p,b,I,D,B):P(p,b,I,E,j,D,B):ne(d,p,B)},P=(d,p,b,I,E,j,D)=>{const A=d.component=oc(d,I,E);if(Zn(d)&&(A.ctx.renderer=dt),rc(A),A.asyncDep){if(E&&E.registerDep(A,K),!d.el){const B=A.subTree=G(Je);z(null,B,p,b)}}else K(A,d,p,b,E,j,D)},ne=(d,p,b)=>{const I=p.component=d.component;if(da(d,p,b))if(I.asyncDep&&!I.asyncResolved){O(I,p,b);return}else I.next=p,ia(I.update),I.effect.dirty=!0,I.update();else p.el=d.el,I.vnode=p},K=(d,p,b,I,E,j,D)=>{const A=()=>{if(d.isMounted){let{next:H,bu:Q,u:g,parent:T,vnode:W}=d;{const ln=Di(d);if(ln){H&&(H.el=W.el,O(d,H,D)),ln.asyncDep.then(()=>{d.isUnmounted||A()});return}}let J=H,de;Ft(d,!1),H?(H.el=W.el,O(d,H,D)):H=W,Q&&jn(Q),(de=H.props&&H.props.onVnodeBeforeUpdate)&&ct(de,T,H,W),Ft(d,!0);const $e=Bo(d),it=d.subTree;d.subTree=$e,_(it,$e,f(it.el),qe(it),d,E,j),H.el=$e.el,J===null&&fa(d,$e.el),g&&De(g,E),(de=H.props&&H.props.onVnodeUpdated)&&De(()=>ct(de,T,H,W),E)}else{let H;const{el:Q,props:g}=p,{bm:T,m:W,parent:J}=d,de=hn(p);if(Ft(d,!1),T&&jn(T),!de&&(H=g&&g.onVnodeBeforeMount)&&ct(H,J,p),Ft(d,!0),Q&&bt){const $e=()=>{d.subTree=Bo(d),bt(Q,d.subTree,d,E,null)};de?p.type.__asyncLoader().then(()=>!d.isUnmounted&&$e()):$e()}else{const $e=d.subTree=Bo(d);_(null,$e,b,I,d,E,j),p.el=$e.el}if(W&&De(W,E),!de&&(H=g&&g.onVnodeMounted)){const $e=p;De(()=>ct(H,J,$e),E)}(p.shapeFlag&256||J&&hn(J.vnode)&&J.vnode.shapeFlag&256)&&d.a&&De(d.a,E),d.isMounted=!0,p=b=I=null}},B=d.effect=new ko(A,Ve,()=>Do(M),d.scope),M=d.update=()=>{B.dirty&&B.run()};M.id=d.uid,Ft(d,!0),M()},O=(d,p,b)=>{p.component=d;const I=d.vnode.props;d.vnode=p,d.next=null,Fa(d,p.props,I,b),Ka(d,p.children,b),_t(),si(d),wt()},F=(d,p,b,I,E,j,D,A,B=!1)=>{const M=d&&d.children,H=d?d.shapeFlag:0,Q=p.children,{patchFlag:g,shapeFlag:T}=p;if(g>0){if(g&128){fe(M,Q,b,I,E,j,D,A,B);return}else if(g&256){ce(M,Q,b,I,E,j,D,A,B);return}}T&8?(H&16&&Ke(M,E,j),Q!==M&&u(b,Q)):H&16?T&16?fe(M,Q,b,I,E,j,D,A,B):Ke(M,E,j,!0):(H&8&&u(b,""),T&16&&v(Q,b,I,E,j,D,A,B))},ce=(d,p,b,I,E,j,D,A,B)=>{d=d||Ye,p=p||Ye;const M=d.length,H=p.length,Q=Math.min(M,H);let g;for(g=0;g<Q;g++){const T=p[g]=B?Tt(p[g]):at(p[g]);_(d[g],T,b,null,E,j,D,A,B)}M>H?Ke(d,E,j,!0,!1,Q):v(p,b,I,E,j,D,A,B,Q)},fe=(d,p,b,I,E,j,D,A,B)=>{let M=0;const H=p.length;let Q=d.length-1,g=H-1;for(;M<=Q&&M<=g;){const T=d[M],W=p[M]=B?Tt(p[M]):at(p[M]);if(Ht(T,W))_(T,W,b,null,E,j,D,A,B);else break;M++}for(;M<=Q&&M<=g;){const T=d[Q],W=p[g]=B?Tt(p[g]):at(p[g]);if(Ht(T,W))_(T,W,b,null,E,j,D,A,B);else break;Q--,g--}if(M>Q){if(M<=g){const T=g+1,W=T<H?p[T].el:I;for(;M<=g;)_(null,p[M]=B?Tt(p[M]):at(p[M]),b,W,E,j,D,A,B),M++}}else if(M>g)for(;M<=Q;)ye(d[M],E,j,!0),M++;else{const T=M,W=M,J=new Map;for(M=W;M<=g;M++){const Ue=p[M]=B?Tt(p[M]):at(p[M]);Ue.key!=null&&J.set(Ue.key,M)}let de,$e=0;const it=g-W+1;let ln=!1,dl=0;const Pn=new Array(it);for(M=0;M<it;M++)Pn[M]=0;for(M=T;M<=Q;M++){const Ue=d[M];if($e>=it){ye(Ue,E,j,!0);continue}let ft;if(Ue.key!=null)ft=J.get(Ue.key);else for(de=W;de<=g;de++)if(Pn[de-W]===0&&Ht(Ue,p[de])){ft=de;break}ft===void 0?ye(Ue,E,j,!0):(Pn[ft-W]=M+1,ft>=dl?dl=ft:ln=!0,_(Ue,p[ft],b,null,E,j,D,A,B),$e++)}const fl=ln?Za(Pn):Ye;for(de=fl.length-1,M=it-1;M>=0;M--){const Ue=W+M,ft=p[Ue],pl=Ue+1<H?p[Ue+1].el:I;Pn[M]===0?_(null,ft,b,pl,E,j,D,A,B):ln&&(de<0||M!==fl[de]?be(ft,b,pl,2):de--)}}},be=(d,p,b,I,E=null)=>{const{el:j,type:D,transition:A,children:B,shapeFlag:M}=d;if(M&6){be(d.component.subTree,p,b,I);return}if(M&128){d.suspense.move(p,b,I);return}if(M&64){D.move(d,p,b,dt);return}if(D===Se){o(j,p,b);for(let Q=0;Q<B.length;Q++)be(B[Q],p,b,I);o(d.anchor,p,b);return}if(D===er){k(d,p,b);return}if(I!==2&&M&1&&A)if(I===0)A.beforeEnter(j),o(j,p,b),De(()=>A.enter(j),E);else{const{leave:Q,delayLeave:g,afterLeave:T}=A,W=()=>o(j,p,b),J=()=>{Q(j,()=>{W(),T&&T()})};g?g(j,W,J):J()}else o(j,p,b)},ye=(d,p,b,I=!1,E=!1)=>{const{type:j,props:D,ref:A,children:B,dynamicChildren:M,shapeFlag:H,patchFlag:Q,dirs:g}=d;if(A!=null&&Qo(A,null,b,d,!0),H&256){p.ctx.deactivate(d);return}const T=H&1&&g,W=!hn(d);let J;if(W&&(J=D&&D.onVnodeBeforeUnmount)&&ct(J,p,d),H&6)Yt(d.component,b,I);else{if(H&128){d.suspense.unmount(b,I);return}T&&Bt(d,null,p,"beforeUnmount"),H&64?d.type.remove(d,p,b,E,dt,I):M&&(j!==Se||Q>0&&Q&64)?Ke(M,p,b,!1,!0):(j===Se&&Q&384||!E&&H&16)&&Ke(B,p,b),I&&ze(d)}(W&&(J=D&&D.onVnodeUnmounted)||T)&&De(()=>{J&&ct(J,p,d),T&&Bt(d,null,p,"unmounted")},b)},ze=d=>{const{type:p,el:b,anchor:I,transition:E}=d;if(p===Se){nt(b,I);return}if(p===er){N(d);return}const j=()=>{r(b),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(d.shapeFlag&1&&E&&!E.persisted){const{leave:D,delayLeave:A}=E,B=()=>D(b,j);A?A(d.el,j,B):B()}else j()},nt=(d,p)=>{let b;for(;d!==p;)b=h(d),r(d),d=b;r(p)},Yt=(d,p,b)=>{const{bum:I,scope:E,update:j,subTree:D,um:A}=d;I&&jn(I),E.stop(),j&&(j.active=!1,ye(D,d,p,b)),A&&De(A,p),De(()=>{d.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},Ke=(d,p,b,I=!1,E=!1,j=0)=>{for(let D=j;D<d.length;D++)ye(d[D],p,b,I,E)},qe=d=>d.shapeFlag&6?qe(d.component.subTree):d.shapeFlag&128?d.suspense.next():h(d.anchor||d.el);let ot=!1;const Be=(d,p,b)=>{d==null?p._vnode&&ye(p._vnode,null,null,!0):_(p._vnode||null,d,p,null,null,null,b),ot||(ot=!0,si(),li(),ot=!1),p._vnode=d},dt={p:_,um:ye,m:be,r:ze,mt:P,mc:v,pc:F,pbc:L,n:qe,o:e};let At,bt;return t&&([At,bt]=t(dt)),{render:Be,hydrate:At,createApp:Na(Be,At)}}function Jo({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 Ft({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Xa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ri(e,t,n=!1){const o=e.children,r=t.children;if(ee(o)&&ee(r))for(let i=0;i<o.length;i++){const s=o[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=Tt(r[i]),l.el=s.el),n||Ri(s,l)),l.type===no&&(l.el=s.el)}}function Za(e){const t=e.slice(),n=[0];let o,r,i,s,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(r=n[n.length-1],e[r]<c){t[o]=r,n.push(o);continue}for(i=0,s=n.length-1;i<s;)l=i+s>>1,e[n[l]]<c?i=l+1:s=l;c<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}function Di(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Di(t)}const Ga=e=>e.__isTeleport,Se=Symbol.for("v-fgt"),no=Symbol.for("v-txt"),Je=Symbol.for("v-cmt"),er=Symbol.for("v-stc"),bn=[];let rt=null;function R(e=!1){bn.push(rt=e?null:[])}function Qa(){bn.pop(),rt=bn[bn.length-1]||null}let yn=1;function Bi(e){yn+=e}function Ni(e){return e.dynamicChildren=yn>0?rt||Ye:null,Qa(),yn>0&&rt&&rt.push(e),e}function U(e,t,n,o,r,i){return Ni(Y(e,t,n,o,r,i,!0))}function me(e,t,n,o,r){return Ni(G(e,t,n,o,r,!0))}function oo(e){return e?e.__v_isVNode===!0:!1}function Ht(e,t){return e.type===t.type&&e.key===t.key}const ro="__vInternal",Vi=({key:e})=>e??null,io=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||Ce(e)||re(e)?{i:Te,r:e,k:t,f:!!n}:e:null);function Y(e,t=null,n=null,o=0,r=null,i=e===Se?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Vi(t),ref:t&&io(t),scopeId:ui,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:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Te};return l?(tr(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=we(n)?8:16),yn>0&&!s&&rt&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&rt.push(a),a}const G=Ja;function Ja(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===pi)&&(e=Je),oo(e)){const l=It(e,t,!0);return n&&tr(l,n),yn>0&&!i&&rt&&(l.shapeFlag&6?rt[rt.indexOf(e)]=l:rt.push(l)),l.patchFlag|=-2,l}if(uc(e)&&(e=e.__vccOpts),t){t=ec(t);let{class:l,style:a}=t;l&&!we(l)&&(t.class=Ie(l)),ge(a)&&(Jr(a)&&!ee(a)&&(a=_e({},a)),t.style=Oe(a))}const s=we(e)?1:ga(e)?128:Ga(e)?64:ge(e)?4:re(e)?2:0;return Y(e,t,n,o,r,s,i,!0)}function ec(e){return e?Jr(e)||ro in e?_e({},e):e:null}function It(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,l=t?so(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Vi(l),ref:t&&t.ref?n&&r?ee(r)?r.concat(io(t)):[r,io(t)]:io(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Se?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&It(e.ssContent),ssFallback:e.ssFallback&&It(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ct(e=" ",t=0){return G(no,null,e,t)}function Ee(e="",t=!1){return t?(R(),me(Je,null,e)):G(Je,null,e)}function at(e){return e==null||typeof e=="boolean"?G(Je):ee(e)?G(Se,null,e.slice()):typeof e=="object"?Tt(e):G(no,null,String(e))}function Tt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:It(e)}function tr(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ee(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),tr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(ro in t)?t._ctx=Te:r===3&&Te&&(Te.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else re(t)?(t={default:t,_ctx:Te},n=32):(t=String(t),o&64?(n=16,t=[Ct(t)]):n=8);e.children=t,e.shapeFlag|=n}function so(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=Ie([t.class,o.class]));else if(r==="style")t.style=Oe([t.style,o.style]);else if(Mn(r)){const i=t[r],s=o[r];s&&i!==s&&!(ee(i)&&i.includes(s))&&(t[r]=i?[].concat(i,s):s)}else r!==""&&(t[r]=o[r])}return t}function ct(e,t,n,o=null){Ze(e,t,7,[n,o])}const tc=Ti();let nc=0;function oc(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||tc,i={uid:nc++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new kl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:$i(o,r),emitsOptions:ci(o,r),emit:null,emitted:null,propsDefaults:le,inheritAttrs:o.inheritAttrs,ctx:le,data:le,props:le,attrs:le,slots:le,refs:le,setupState:le,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=aa.bind(null,i),e.ce&&e.ce(i),i}let Pe=null;const nr=()=>Pe||Te;let lo,or;{const e=xo(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),i=>{r.length>1?r.forEach(s=>s(i)):r[0](i)}};lo=t("__VUE_INSTANCE_SETTERS__",n=>Pe=n),or=t("__VUE_SSR_SETTERS__",n=>ao=n)}const _n=e=>{const t=Pe;return lo(e),e.scope.on(),()=>{e.scope.off(),lo(t)}},Fi=()=>{Pe&&Pe.scope.off(),lo(null)};function Hi(e){return e.vnode.shapeFlag&4}let ao=!1;function rc(e,t=!1){t&&or(t);const{props:n,children:o}=e.vnode,r=Hi(e);Va(e,n,r,t),Wa(e,o);const i=r?ic(e,t):void 0;return t&&or(!1),i}function ic(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ei(new Proxy(e.ctx,La));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?lc(e):null,i=_n(e);_t();const s=ht(o,e,0,[e.props,r]);if(wt(),i(),Cr(s)){if(s.then(Fi,Fi),t)return s.then(l=>{Wi(e,l,t)}).catch(l=>{Kn(l,e,0)});e.asyncDep=s}else Wi(e,s,t)}else qi(e,t)}function Wi(e,t,n){re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=ni(t)),qi(e,n)}let Ki;function qi(e,t,n){const o=e.type;if(!e.render){if(!t&&Ki&&!o.render){const r=o.template||Yo(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=_e(_e({isCustomElement:i,delimiters:l},s),a);o.render=Ki(r,c)}}e.render=o.render||Ve}{const r=_n(e);_t();try{Aa(e)}finally{wt(),r()}}}function sc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Re(e,"get","$attrs"),t[n]}}))}function lc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return sc(e)},slots:e.slots,emit:e.emit,expose:t}}function co(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ni(ei(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mn)return mn[n](e)},has(t,n){return n in t||n in mn}}))}const ac=/(?:^|[-_])(\w)/g,cc=e=>e.replace(ac,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ui(e,t=!0){return re(e)?e.displayName||e.name:e.name||t&&e.__name}function Yi(e,t,n=!1){let o=Ui(t);if(!o&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(o=r[1])}if(!o&&e&&e.parent){const r=i=>{for(const s in i)if(i[s]===t)return s};o=r(e.components||e.parent.type.components)||r(e.appContext.components)}return o?cc(o):n?"App":"Anonymous"}function uc(e){return re(e)&&"__vccOpts"in e}const se=(e,t)=>Ul(e,t,ao);function wn(e,t,n=le){const o=nr(),r=je(t),i=Fe(t),s=Ql((a,c)=>{let u;return ya(()=>{const f=e[t];st(u,f)&&(u=f,c())}),{get(){return a(),n.get?n.get(u):u},set(f){const h=o.vnode.props;!(h&&(t in h||r in h||i in h)&&(`onUpdate:${t}`in h||`onUpdate:${r}`in h||`onUpdate:${i}`in h))&&st(f,u)&&(u=f,c()),o.emit(`update:${t}`,n.set?n.set(f):f)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return s[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?e[l]||{}:s,done:!1}:{done:!0}}}},s}function Xi(e,t,n){const o=arguments.length;return o===2?ge(t)&&!ee(t)?oo(t)?G(e,null,[t]):G(e,t):G(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&oo(n)&&(n=[n]),G(e,t,n))}const dc="3.4.15";/**
|
|
15
|
+
`,...Jl(r)),console.warn(...i)}wt()}function Ql(){let e=fn[fn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function Jl(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
|
|
16
|
+
`],...ea(n))}),t}function ea({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,r=` at <${Ui(e.component,e.type,o)}`,i=">"+n;return e.props?[r,...ta(e.props),i]:[r+i]}function ta(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...ni(o,e[o]))}),n.length>3&&t.push(" ..."),t}function ni(e,t,n){return we(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Ce(t)?(t=ni(e,ae(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):re(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ae(t),n?t:[`${e}=`,t])}function ht(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){Kn(i,t,n)}return r}function Ze(e,t,n,o){if(re(e)){const i=ht(e,t,n,o);return i&&Ir(i)&&i.catch(s=>{Kn(s,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(Ze(e[i],t,n,o));return r}function Kn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,l)===!1)return}i=i.parent}const a=t.appContext.config.errorHandler;if(a){ht(a,null,10,[e,s,l]);return}}na(e,n,r,o)}function na(e,t,n,o=!0){console.error(e)}let pn=!1,jo=!1;const Me=[];let lt=0;const en=[];let St=null,Rt=0;const oi=Promise.resolve();let Ro=null;function gt(e){const t=Ro||oi;return e?t.then(this?e.bind(this):e):t}function oa(e){let t=lt+1,n=Me.length;for(;t<n;){const o=t+n>>>1,r=Me[o],i=hn(r);i<e||i===e&&r.pre?t=o+1:n=o}return t}function Do(e){(!Me.length||!Me.includes(e,pn&&e.allowRecurse?lt+1:lt))&&(e.id==null?Me.push(e):Me.splice(oa(e.id),0,e),ri())}function ri(){!pn&&!jo&&(jo=!0,Ro=oi.then(li))}function ra(e){const t=Me.indexOf(e);t>lt&&Me.splice(t,1)}function ia(e){te(e)?en.push(...e):(!St||!St.includes(e,e.allowRecurse?Rt+1:Rt))&&en.push(e),ri()}function ii(e,t,n=pn?lt+1:0){for(;n<Me.length;n++){const o=Me[n];if(o&&o.pre){if(e&&o.id!==e.uid)continue;Me.splice(n,1),n--,o()}}}function si(e){if(en.length){const t=[...new Set(en)].sort((n,o)=>hn(n)-hn(o));if(en.length=0,St){St.push(...t);return}for(St=t,Rt=0;Rt<St.length;Rt++)St[Rt]();St=null,Rt=0}}const hn=e=>e.id==null?1/0:e.id,sa=(e,t)=>{const n=hn(e)-hn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function li(e){jo=!1,pn=!0,Me.sort(sa);const t=Ve;try{for(lt=0;lt<Me.length;lt++){const n=Me[lt];n&&n.active!==!1&&ht(n,null,14)}}finally{lt=0,Me.length=0,si(),pn=!1,Ro=null,(Me.length||en.length)&&li()}}function la(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||le;let r=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in o){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:f,trim:h}=o[u]||le;h&&(r=n.map(S=>we(S)?S.trim():S)),f&&(r=n.map(_o))}let l,a=o[l=yo(t)]||o[l=yo(je(t))];!a&&i&&(a=o[l=yo(Fe(t))]),a&&Ze(a,e,6,r);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ze(c,e,6,r)}}function ai(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let s={},l=!1;if(!re(e)){const a=c=>{const u=ai(c,t,!0);u&&(l=!0,_e(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(ge(e)&&o.set(e,null),null):(te(i)?i.forEach(a=>s[a]=null):_e(s,i),ge(e)&&o.set(e,s),s)}function qn(e,t){return!e||!Mn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ue(e,t[0].toLowerCase()+t.slice(1))||ue(e,Fe(t))||ue(e,t))}let Te=null,ci=null;function Un(e){const t=Te;return Te=e,ci=e&&e.type.__scopeId||null,t}function ie(e,t=Te,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Di(-1);const i=Un(t);let s;try{s=e(...r)}finally{Un(i),o._d&&Di(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function jp(){}function Bo(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:f,data:h,setupState:S,ctx:_,inheritAttrs:w}=e;let $,L;const K=Un(e);try{if(n.shapeFlag&4){const N=r||o,x=N;$=at(u.call(x,N,f,i,S,h,_)),L=a}else{const N=t;$=at(N.length>1?N(i,{attrs:a,slots:l,emit:c}):N(i,null)),L=t.props?a:aa(a)}}catch(N){yn.length=0,Kn(N,e,1),$=Q(Je)}let C=$;if(L&&w!==!1){const N=Object.keys(L),{shapeFlag:x}=C;N.length&&x&7&&(s&&N.some(mo)&&(L=ca(L,s)),C=It(C,L))}return n.dirs&&(C=It(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),$=C,Un(K),$}const aa=e=>{let t;for(const n in e)(n==="class"||n==="style"||Mn(n))&&((t||(t={}))[n]=e[n]);return t},ca=(e,t)=>{const n={};for(const o in e)(!mo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function ua(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?ui(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const h=u[f];if(s[h]!==o[h]&&!qn(c,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?ui(o,s,c):!0:!!s;return!1}function ui(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const i=o[r];if(t[i]!==e[i]&&!qn(n,i))return!0}return!1}function da({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=n,t=t.parent;else break}}const di="components",fi=Symbol.for("v-ndc");function fa(e){return we(e)?pa(di,e,!1)||e:e||fi}function pa(e,t,n=!0,o=!1){const r=Te||Pe;if(r){const i=r.type;if(e===di){const l=qi(i,!1);if(l&&(l===t||l===je(t)||l===zn(je(t))))return i}const s=pi(r[e]||i[e],t)||pi(r.appContext[e],t);return!s&&o?i:s}}function pi(e,t){return e&&(e[t]||e[je(t)]||e[zn(je(t))])}const ha=e=>e.__isSuspense;function ga(e,t){t&&t.pendingBranch?te(e)?t.effects.push(...e):t.effects.push(e):ia(e)}const ma=Symbol.for("v-scx"),va=()=>Vt(ma);function ba(e,t){return No(e,null,{flush:"sync"})}const Yn={};function pe(e,t,n){return No(e,t,n)}function No(e,t,{immediate:n,deep:o,flush:r,once:i,onTrack:s,onTrigger:l}=le){if(t&&i){const m=t;t=(...z)=>{m(...z),x()}}const a=Pe,c=m=>o===!0?m:Dt(m,o===!1?1:void 0);let u,f=!1,h=!1;if(Ce(e)?(u=()=>e.value,f=Wn(e)):Qt(e)?(u=()=>c(e),f=!0):te(e)?(h=!0,f=e.some(m=>Qt(m)||Wn(m)),u=()=>e.map(m=>{if(Ce(m))return m.value;if(Qt(m))return c(m);if(re(m))return ht(m,a,2)})):re(e)?t?u=()=>ht(e,a,2):u=()=>(S&&S(),Ze(e,a,3,[_])):u=Ve,t&&o){const m=u;u=()=>Dt(m())}let S,_=m=>{S=C.onStop=()=>{ht(m,a,4),S=C.onStop=void 0}},w;if(ao)if(_=Ve,t?n&&Ze(t,a,3,[u(),h?[]:void 0,_]):u(),r==="sync"){const m=va();w=m.__watcherHandles||(m.__watcherHandles=[])}else return Ve;let $=h?new Array(e.length).fill(Yn):Yn;const L=()=>{if(!(!C.active||!C.dirty))if(t){const m=C.run();(o||f||(h?m.some((z,b)=>st(z,$[b])):st(m,$)))&&(S&&S(),Ze(t,a,3,[m,$===Yn?void 0:h&&$[0]===Yn?[]:$,_]),$=m)}else C.run()};L.allowRecurse=!!t;let K;r==="sync"?K=L:r==="post"?K=()=>De(L,a&&a.suspense):(L.pre=!0,a&&(L.id=a.uid),K=()=>Do(L));const C=new ko(u,Ve,K),N=Mr(),x=()=>{C.stop(),N&&vo(N.effects,C)};return t?n?L():$=C.run():r==="post"?De(C.run.bind(C),a&&a.suspense):C.run(),w&&w.push(x),x}function ya(e,t,n){const o=this.proxy,r=we(e)?e.includes(".")?hi(o,e):()=>o[e]:e.bind(o,o);let i;re(t)?i=t:(i=t.handler,n=t);const s=wn(this),l=No(r,i.bind(o),n);return s(),l}function hi(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r<n.length&&o;r++)o=o[n[r]];return o}}function Dt(e,t,n=0,o){if(!ge(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(o=o||new Set,o.has(e))return e;if(o.add(e),Ce(e))Dt(e.value,t,n,o);else if(te(e))for(let r=0;r<e.length;r++)Dt(e[r],t,n,o);else if(kr(e)||Zt(e))e.forEach(r=>{Dt(r,t,n,o)});else if(Tr(e))for(const r in e)Dt(e[r],t,n,o);return e}function mt(e,t){if(Te===null)return e;const n=co(Te)||Te.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,s,l,a=le]=t[r];i&&(re(i)&&(i={mounted:i,updated:i}),i.deep&&Dt(s),o.push({dir:i,instance:n,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Bt(e,t,n,o){const r=e.dirs,i=t&&t.dirs;for(let s=0;s<r.length;s++){const l=r[s];i&&(l.oldValue=i[s].value);let a=l.dir[o];a&&(_t(),Ze(a,n,8,[e.el,l,e,t]),wt())}}const kt=Symbol("_leaveCb"),Xn=Symbol("_enterCb");function _a(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Qe(()=>{e.isMounted=!0}),Wo(()=>{e.isUnmounting=!0}),e}const Ge=[Function,Array],gi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ge,onEnter:Ge,onAfterEnter:Ge,onEnterCancelled:Ge,onBeforeLeave:Ge,onLeave:Ge,onAfterLeave:Ge,onLeaveCancelled:Ge,onBeforeAppear:Ge,onAppear:Ge,onAfterAppear:Ge,onAppearCancelled:Ge},wa={name:"BaseTransition",props:gi,setup(e,{slots:t}){const n=nr(),o=_a();let r;return()=>{const i=t.default&&bi(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const w of i)if(w.type!==Je){s=w;break}}const l=ae(e),{mode:a}=l;if(o.isLeaving)return Fo(s);const c=vi(s);if(!c)return Fo(s);const u=Vo(c,l,o,n);Ho(c,u);const f=n.subTree,h=f&&vi(f);let S=!1;const{getTransitionKey:_}=c.type;if(_){const w=_();r===void 0?r=w:w!==r&&(r=w,S=!0)}if(h&&h.type!==Je&&(!Ht(c,h)||S)){const w=Vo(h,l,o,n);if(Ho(h,w),a==="out-in")return o.isLeaving=!0,w.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Fo(s);a==="in-out"&&c.type!==Je&&(w.delayLeave=($,L,K)=>{const C=mi(o,h);C[String(h.key)]=h,$[kt]=()=>{L(),$[kt]=void 0,delete u.delayedLeave},u.delayedLeave=K})}return s}}};function mi(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Vo(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:h,onAfterLeave:S,onLeaveCancelled:_,onBeforeAppear:w,onAppear:$,onAfterAppear:L,onAppearCancelled:K}=t,C=String(e.key),N=mi(n,e),x=(b,v)=>{b&&Ze(b,o,9,v)},m=(b,v)=>{const T=v[1];x(b,v),te(b)?b.every(U=>U.length<=1)&&T():b.length<=1&&T()},z={mode:i,persisted:s,beforeEnter(b){let v=l;if(!n.isMounted)if(r)v=w||l;else return;b[kt]&&b[kt](!0);const T=N[C];T&&Ht(e,T)&&T.el[kt]&&T.el[kt](),x(v,[b])},enter(b){let v=a,T=c,U=u;if(!n.isMounted)if(r)v=$||a,T=L||c,U=K||u;else return;let V=!1;const oe=b[Xn]=P=>{V||(V=!0,P?x(U,[b]):x(T,[b]),z.delayedLeave&&z.delayedLeave(),b[Xn]=void 0)};v?m(v,[b,oe]):oe()},leave(b,v){const T=String(e.key);if(b[Xn]&&b[Xn](!0),n.isUnmounting)return v();x(f,[b]);let U=!1;const V=b[kt]=oe=>{U||(U=!0,v(),oe?x(_,[b]):x(S,[b]),b[kt]=void 0,N[T]===e&&delete N[T])};N[T]=e,h?m(h,[b,V]):V()},clone(b){return Vo(b,t,n,o)}};return z}function Fo(e){if(Zn(e))return e=It(e),e.children=null,e}function vi(e){return Zn(e)?e.children?e.children[0]:void 0:e}function Ho(e,t){e.shapeFlag&6&&e.component?Ho(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 bi(e,t=!1,n){let o=[],r=0;for(let i=0;i<e.length;i++){let s=e[i];const l=n==null?s.key:String(n)+String(s.key!=null?s.key:i);s.type===Se?(s.patchFlag&128&&r++,o=o.concat(bi(s.children,t,l))):(t||s.type!==Je)&&o.push(l!=null?It(s,{key:l}):s)}if(r>1)for(let i=0;i<o.length;i++)o[i].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function ke(e,t){return re(e)?(()=>_e({name:e.name},t,{setup:e}))():e}const gn=e=>!!e.type.__asyncLoader,Zn=e=>e.type.__isKeepAlive;function xa(e,t){yi(e,"a",t)}function Sa(e,t){yi(e,"da",t)}function yi(e,t,n=Pe){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Gn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Zn(r.parent.vnode)&&ka(o,t,n,r),r=r.parent}}function ka(e,t,n,o){const r=Gn(t,e,o,!0);Nt(()=>{vo(o[t],r)},n)}function Gn(e,t,n=Pe,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;_t();const l=wn(n),a=Ze(t,n,e,s);return l(),wt(),a});return o?r.unshift(i):r.push(i),i}}const vt=e=>(t,n=Pe)=>(!ao||e==="sp")&&Gn(e,(...o)=>t(...o),n),Ia=vt("bm"),Qe=vt("m"),Ca=vt("bu"),Ta=vt("u"),Wo=vt("bum"),Nt=vt("um"),Ea=vt("sp"),$a=vt("rtg"),Pa=vt("rtc");function Ma(e,t=Pe){Gn("ec",e,t)}function mn(e,t,n,o){let r;const i=n&&n[o];if(te(e)||we(e)){r=new Array(e.length);for(let s=0,l=e.length;s<l;s++)r[s]=t(e[s],s,void 0,i&&i[s])}else if(typeof e=="number"){r=new Array(e);for(let s=0;s<e;s++)r[s]=t(s+1,s,void 0,i&&i[s])}else if(ge(e))if(e[Symbol.iterator])r=Array.from(e,(s,l)=>t(s,l,void 0,i&&i[l]));else{const s=Object.keys(e);r=new Array(s.length);for(let l=0,a=s.length;l<a;l++){const c=s[l];r[l]=t(e[c],c,l,i&&i[l])}}else r=[];return n&&(n[o]=r),r}function _i(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(te(o))for(let r=0;r<o.length;r++)e[o[r].name]=o[r].fn;else o&&(e[o.name]=o.key?(...r)=>{const i=o.fn(...r);return i&&(i.key=o.key),i}:o.fn)}return e}function xe(e,t,n={},o,r){if(Te.isCE||Te.parent&&gn(Te.parent)&&Te.parent.isCE)return t!=="default"&&(n.name=t),Q("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),R();const s=i&&wi(i(n)),l=me(Se,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function wi(e){return e.some(t=>oo(t)?!(t.type===Je||t.type===Se&&!wi(t.children)):!0)?e:null}const Ko=e=>e?Fi(e)?co(e)||e.proxy:Ko(e.parent):null,vn=_e(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=>Ko(e.parent),$root:e=>Ko(e.root),$emit:e=>e.emit,$options:e=>Yo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Do(e.update)}),$nextTick:e=>e.n||(e.n=gt.bind(e.proxy)),$watch:e=>ya.bind(e)}),qo=(e,t)=>e!==le&&!e.__isScriptSetup&&ue(e,t),Oa={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const S=s[t];if(S!==void 0)switch(S){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(qo(o,t))return s[t]=1,o[t];if(r!==le&&ue(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&ue(c,t))return s[t]=3,i[t];if(n!==le&&ue(n,t))return s[t]=4,n[t];Uo&&(s[t]=0)}}const u=vn[t];let f,h;if(u)return t==="$attrs"&&Re(e,"get",t),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==le&&ue(n,t))return s[t]=4,n[t];if(h=a.config.globalProperties,ue(h,t))return h[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return qo(r,t)?(r[t]=n,!0):o!==le&&ue(o,t)?(o[t]=n,!0):ue(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let l;return!!n[s]||e!==le&&ue(e,s)||qo(t,s)||(l=i[0])&&ue(l,s)||ue(o,s)||ue(vn,s)||ue(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ue(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Qn(e){return te(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function tn(e,t){return!e||!t?e||t:te(e)&&te(t)?e.concat(t):_e({},Qn(e),Qn(t))}let Uo=!0;function La(e){const t=Yo(e),n=e.proxy,o=e.ctx;Uo=!1,t.beforeCreate&&xi(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:h,beforeUpdate:S,updated:_,activated:w,deactivated:$,beforeDestroy:L,beforeUnmount:K,destroyed:C,unmounted:N,render:x,renderTracked:m,renderTriggered:z,errorCaptured:b,serverPrefetch:v,expose:T,inheritAttrs:U,components:V,directives:oe,filters:P}=t;if(c&&Aa(c,o,null),s)for(const O in s){const F=s[O];re(F)&&(o[O]=F.bind(n))}if(r){const O=r.call(n,n);ge(O)&&(e.data=cn(O))}if(Uo=!0,i)for(const O in i){const F=i[O],ce=re(F)?F.bind(n,n):re(F.get)?F.get.bind(n,n):Ve,fe=!re(F)&&re(F.set)?F.set.bind(n):Ve,be=se({get:ce,set:fe});Object.defineProperty(o,O,{enumerable:!0,configurable:!0,get:()=>be.value,set:ye=>be.value=ye})}if(l)for(const O in l)Si(l[O],o,n,O);if(a){const O=re(a)?a.call(n):a;Reflect.ownKeys(O).forEach(F=>{to(F,O[F])})}u&&xi(u,e,"c");function q(O,F){te(F)?F.forEach(ce=>O(ce.bind(n))):F&&O(F.bind(n))}if(q(Ia,f),q(Qe,h),q(Ca,S),q(Ta,_),q(xa,w),q(Sa,$),q(Ma,b),q(Pa,m),q($a,z),q(Wo,K),q(Nt,N),q(Ea,v),te(T))if(T.length){const O=e.exposed||(e.exposed={});T.forEach(F=>{Object.defineProperty(O,F,{get:()=>n[F],set:ce=>n[F]=ce})})}else e.exposed||(e.exposed={});x&&e.render===Ve&&(e.render=x),U!=null&&(e.inheritAttrs=U),V&&(e.components=V),oe&&(e.directives=oe)}function Aa(e,t,n=Ve){te(e)&&(e=Xo(e));for(const o in e){const r=e[o];let i;ge(r)?"default"in r?i=Vt(r.from||o,r.default,!0):i=Vt(r.from||o):i=Vt(r),Ce(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function xi(e,t,n){Ze(te(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Si(e,t,n,o){const r=o.includes(".")?hi(n,o):()=>n[o];if(we(e)){const i=t[e];re(i)&&pe(r,i)}else if(re(e))pe(r,e.bind(n));else if(ge(e))if(te(e))e.forEach(i=>Si(i,t,n,o));else{const i=re(e.handler)?e.handler.bind(n):t[e.handler];re(i)&&pe(r,i,e)}}function Yo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let a;return l?a=l:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(c=>Jn(a,c,s,!0)),Jn(a,t,s)),ge(t)&&i.set(t,a),a}function Jn(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Jn(e,i,n,!0),r&&r.forEach(s=>Jn(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=za[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const za={data:ki,props:Ii,emits:Ii,methods:bn,computed:bn,beforeCreate:Le,created:Le,beforeMount:Le,mounted:Le,beforeUpdate:Le,updated:Le,beforeDestroy:Le,beforeUnmount:Le,destroyed:Le,unmounted:Le,activated:Le,deactivated:Le,errorCaptured:Le,serverPrefetch:Le,components:bn,directives:bn,watch:Ra,provide:ki,inject:ja};function ki(e,t){return t?e?function(){return _e(re(e)?e.call(this,this):e,re(t)?t.call(this,this):t)}:t:e}function ja(e,t){return bn(Xo(e),Xo(t))}function Xo(e){if(te(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Le(e,t){return e?[...new Set([].concat(e,t))]:t}function bn(e,t){return e?_e(Object.create(null),e,t):t}function Ii(e,t){return e?te(e)&&te(t)?[...new Set([...e,...t])]:_e(Object.create(null),Qn(e),Qn(t??{})):t}function Ra(e,t){if(!e)return t;if(!t)return e;const n=_e(Object.create(null),e);for(const o in t)n[o]=Le(e[o],t[o]);return n}function Ci(){return{app:null,config:{isNativeTag:pl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Da=0;function Ba(e,t){return function(o,r=null){re(o)||(o=_e({},o)),r!=null&&!ge(r)&&(r=null);const i=Ci(),s=new WeakSet;let l=!1;const a=i.app={_uid:Da++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:uc,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&re(c.install)?(s.add(c),c.install(a,...u)):re(c)&&(s.add(c),c(a,...u))),a},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),a},component(c,u){return u?(i.components[c]=u,a):i.components[c]},directive(c,u){return u?(i.directives[c]=u,a):i.directives[c]},mount(c,u,f){if(!l){const h=Q(o,r);return h.appContext=i,f===!0?f="svg":f===!1&&(f=void 0),u&&t?t(h,c):e(h,c,f),l=!0,a._container=c,c.__vue_app__=a,co(h.component)||h.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return i.provides[c]=u,a},runWithContext(c){eo=a;try{return c()}finally{eo=null}}};return a}}let eo=null;function to(e,t){if(Pe){let n=Pe.provides;const o=Pe.parent&&Pe.parent.provides;o===n&&(n=Pe.provides=Object.create(o)),n[e]=t}}function Vt(e,t,n=!1){const o=Pe||Te;if(o||eo){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:eo._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&re(t)?t.call(o&&o.proxy):t}}function Na(e,t,n,o=!1){const r={},i={};Rn(i,ro,1),e.propsDefaults=Object.create(null),Ti(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:Kl(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Va(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=ae(r),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let h=u[f];if(qn(e.emitsOptions,h))continue;const S=t[h];if(a)if(ue(i,h))S!==i[h]&&(i[h]=S,c=!0);else{const _=je(h);r[_]=Zo(a,l,_,S,e,!1)}else S!==i[h]&&(i[h]=S,c=!0)}}}else{Ti(e,t,r,i)&&(c=!0);let u;for(const f in l)(!t||!ue(t,f)&&((u=Fe(f))===f||!ue(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(r[f]=Zo(a,l,f,void 0,e,!0)):delete r[f]);if(i!==l)for(const f in i)(!t||!ue(t,f))&&(delete i[f],c=!0)}c&&pt(e,"set","$attrs")}function Ti(e,t,n,o){const[r,i]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(Ln(a))continue;const c=t[a];let u;r&&ue(r,u=je(a))?!i||!i.includes(u)?n[u]=c:(l||(l={}))[u]=c:qn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(i){const a=ae(n),c=l||le;for(let u=0;u<i.length;u++){const f=i[u];n[f]=Zo(r,a,f,c[f],e,!ue(c,f))}}return s}function Zo(e,t,n,o,r,i){const s=e[n];if(s!=null){const l=ue(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&re(a)){const{propsDefaults:c}=r;if(n in c)o=c[n];else{const u=wn(r);o=c[n]=a.call(null,t),u()}}else o=a}s[0]&&(i&&!l?o=!1:s[1]&&(o===""||o===Fe(n))&&(o=!0))}return o}function Ei(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const i=e.props,s={},l=[];let a=!1;if(!re(e)){const u=f=>{a=!0;const[h,S]=Ei(f,t,!0);_e(s,h),S&&l.push(...S)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return ge(e)&&o.set(e,Ye),Ye;if(te(i))for(let u=0;u<i.length;u++){const f=je(i[u]);$i(f)&&(s[f]=le)}else if(i)for(const u in i){const f=je(u);if($i(f)){const h=i[u],S=s[f]=te(h)||re(h)?{type:h}:_e({},h);if(S){const _=Oi(Boolean,S.type),w=Oi(String,S.type);S[0]=_>-1,S[1]=w<0||_<w,(_>-1||ue(S,"default"))&&l.push(f)}}}const c=[s,l];return ge(e)&&o.set(e,c),c}function $i(e){return e[0]!=="$"}function Pi(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Mi(e,t){return Pi(e)===Pi(t)}function Oi(e,t){return te(t)?t.findIndex(n=>Mi(n,e)):re(t)&&Mi(t,e)?0:-1}const Li=e=>e[0]==="_"||e==="$stable",Go=e=>te(e)?e.map(at):[at(e)],Fa=(e,t,n)=>{if(t._n)return t;const o=ie((...r)=>Go(t(...r)),n);return o._c=!1,o},Ai=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Li(r))continue;const i=e[r];if(re(i))t[r]=Fa(r,i,o);else if(i!=null){const s=Go(i);t[r]=()=>s}}},zi=(e,t)=>{const n=Go(t);e.slots.default=()=>n},Ha=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ae(t),Rn(t,"_",n)):Ai(t,e.slots={})}else e.slots={},t&&zi(e,t);Rn(e.slots,ro,1)},Wa=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=le;if(o.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(_e(r,t),!n&&l===1&&delete r._):(i=!t.$stable,Ai(t,r)),s=t}else t&&(zi(e,t),s={default:1});if(i)for(const l in r)!Li(l)&&s[l]==null&&delete r[l]};function Qo(e,t,n,o,r=!1){if(te(e)){e.forEach((h,S)=>Qo(h,t&&(te(t)?t[S]:t),n,o,r));return}if(gn(o)&&!r)return;const i=o.shapeFlag&4?co(o.component)||o.component.proxy:o.el,s=r?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===le?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==a&&(we(c)?(u[c]=null,ue(f,c)&&(f[c]=null)):Ce(c)&&(c.value=null)),re(a))ht(a,l,12,[s,u]);else{const h=we(a),S=Ce(a),_=e.f;if(h||S){const w=()=>{if(_){const $=h?ue(f,a)?f[a]:u[a]:a.value;r?te($)&&vo($,i):te($)?$.includes(i)||$.push(i):h?(u[a]=[i],ue(f,a)&&(f[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else h?(u[a]=s,ue(f,a)&&(f[a]=s)):S&&(a.value=s,e.k&&(u[e.k]=s))};r||_?w():(w.id=-1,De(w,n))}}}function Ka(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(xo().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const De=ga;function qa(e){return Ua(e)}function Ua(e,t){Ka();const n=xo();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:h,setScopeId:S=Ve,insertStaticContent:_}=e,w=(d,p,y,k=null,E=null,j=null,D=void 0,A=null,B=!!p.dynamicChildren)=>{if(d===p)return;d&&!Ht(d,p)&&(k=qe(d),ye(d,E,j,!0),d=null),p.patchFlag===-2&&(B=!1,p.dynamicChildren=null);const{type:M,ref:H,shapeFlag:J}=p;switch(M){case no:$(d,p,y,k);break;case Je:L(d,p,y,k);break;case er:d==null&&K(p,y,k,D);break;case Se:V(d,p,y,k,E,j,D,A,B);break;default:J&1?x(d,p,y,k,E,j,D,A,B):J&6?oe(d,p,y,k,E,j,D,A,B):(J&64||J&128)&&M.process(d,p,y,k,E,j,D,A,B,dt)}H!=null&&E&&Qo(H,d&&d.ref,j,p||d,!p)},$=(d,p,y,k)=>{if(d==null)o(p.el=l(p.children),y,k);else{const E=p.el=d.el;p.children!==d.children&&c(E,p.children)}},L=(d,p,y,k)=>{d==null?o(p.el=a(p.children||""),y,k):p.el=d.el},K=(d,p,y,k)=>{[d.el,d.anchor]=_(d.children,p,y,k,d.el,d.anchor)},C=({el:d,anchor:p},y,k)=>{let E;for(;d&&d!==p;)E=h(d),o(d,y,k),d=E;o(p,y,k)},N=({el:d,anchor:p})=>{let y;for(;d&&d!==p;)y=h(d),r(d),d=y;r(p)},x=(d,p,y,k,E,j,D,A,B)=>{p.type==="svg"?D="svg":p.type==="math"&&(D="mathml"),d==null?m(p,y,k,E,j,D,A,B):v(d,p,E,j,D,A,B)},m=(d,p,y,k,E,j,D,A)=>{let B,M;const{props:H,shapeFlag:J,transition:g,dirs:I}=d;if(B=d.el=s(d.type,j,H&&H.is,H),J&8?u(B,d.children):J&16&&b(d.children,B,null,k,E,Jo(d,j),D,A),I&&Bt(d,null,k,"created"),z(B,d,d.scopeId,D,k),H){for(const ee in H)ee!=="value"&&!Ln(ee)&&i(B,ee,null,H[ee],j,d.children,k,E,Ke);"value"in H&&i(B,"value",null,H.value,j),(M=H.onVnodeBeforeMount)&&ct(M,k,d)}I&&Bt(d,null,k,"beforeMount");const W=Ya(E,g);W&&g.beforeEnter(B),o(B,p,y),((M=H&&H.onVnodeMounted)||W||I)&&De(()=>{M&&ct(M,k,d),W&&g.enter(B),I&&Bt(d,null,k,"mounted")},E)},z=(d,p,y,k,E)=>{if(y&&S(d,y),k)for(let j=0;j<k.length;j++)S(d,k[j]);if(E){let j=E.subTree;if(p===j){const D=E.vnode;z(d,D,D.scopeId,D.slotScopeIds,E.parent)}}},b=(d,p,y,k,E,j,D,A,B=0)=>{for(let M=B;M<d.length;M++){const H=d[M]=A?Tt(d[M]):at(d[M]);w(null,H,p,y,k,E,j,D,A)}},v=(d,p,y,k,E,j,D)=>{const A=p.el=d.el;let{patchFlag:B,dynamicChildren:M,dirs:H}=p;B|=d.patchFlag&16;const J=d.props||le,g=p.props||le;let I;if(y&&Ft(y,!1),(I=g.onVnodeBeforeUpdate)&&ct(I,y,p,d),H&&Bt(p,d,y,"beforeUpdate"),y&&Ft(y,!0),M?T(d.dynamicChildren,M,A,y,k,Jo(p,E),j):D||F(d,p,A,null,y,k,Jo(p,E),j,!1),B>0){if(B&16)U(A,p,J,g,y,k,E);else if(B&2&&J.class!==g.class&&i(A,"class",null,g.class,E),B&4&&i(A,"style",J.style,g.style,E),B&8){const W=p.dynamicProps;for(let ee=0;ee<W.length;ee++){const de=W[ee],$e=J[de],it=g[de];(it!==$e||de==="value")&&i(A,de,$e,it,E,d.children,y,k,Ke)}}B&1&&d.children!==p.children&&u(A,p.children)}else!D&&M==null&&U(A,p,J,g,y,k,E);((I=g.onVnodeUpdated)||H)&&De(()=>{I&&ct(I,y,p,d),H&&Bt(p,d,y,"updated")},k)},T=(d,p,y,k,E,j,D)=>{for(let A=0;A<p.length;A++){const B=d[A],M=p[A],H=B.el&&(B.type===Se||!Ht(B,M)||B.shapeFlag&70)?f(B.el):y;w(B,M,H,null,k,E,j,D,!0)}},U=(d,p,y,k,E,j,D)=>{if(y!==k){if(y!==le)for(const A in y)!Ln(A)&&!(A in k)&&i(d,A,y[A],null,D,p.children,E,j,Ke);for(const A in k){if(Ln(A))continue;const B=k[A],M=y[A];B!==M&&A!=="value"&&i(d,A,M,B,D,p.children,E,j,Ke)}"value"in k&&i(d,"value",y.value,k.value,D)}},V=(d,p,y,k,E,j,D,A,B)=>{const M=p.el=d?d.el:l(""),H=p.anchor=d?d.anchor:l("");let{patchFlag:J,dynamicChildren:g,slotScopeIds:I}=p;I&&(A=A?A.concat(I):I),d==null?(o(M,y,k),o(H,y,k),b(p.children||[],y,H,E,j,D,A,B)):J>0&&J&64&&g&&d.dynamicChildren?(T(d.dynamicChildren,g,y,E,j,D,A),(p.key!=null||E&&p===E.subTree)&&ji(d,p,!0)):F(d,p,y,H,E,j,D,A,B)},oe=(d,p,y,k,E,j,D,A,B)=>{p.slotScopeIds=A,d==null?p.shapeFlag&512?E.ctx.activate(p,y,k,D,B):P(p,y,k,E,j,D,B):ne(d,p,B)},P=(d,p,y,k,E,j,D)=>{const A=d.component=nc(d,k,E);if(Zn(d)&&(A.ctx.renderer=dt),oc(A),A.asyncDep){if(E&&E.registerDep(A,q),!d.el){const B=A.subTree=Q(Je);L(null,B,p,y)}}else q(A,d,p,y,E,j,D)},ne=(d,p,y)=>{const k=p.component=d.component;if(ua(d,p,y))if(k.asyncDep&&!k.asyncResolved){O(k,p,y);return}else k.next=p,ra(k.update),k.effect.dirty=!0,k.update();else p.el=d.el,k.vnode=p},q=(d,p,y,k,E,j,D)=>{const A=()=>{if(d.isMounted){let{next:H,bu:J,u:g,parent:I,vnode:W}=d;{const an=Ri(d);if(an){H&&(H.el=W.el,O(d,H,D)),an.asyncDep.then(()=>{d.isUnmounted||A()});return}}let ee=H,de;Ft(d,!1),H?(H.el=W.el,O(d,H,D)):H=W,J&&jn(J),(de=H.props&&H.props.onVnodeBeforeUpdate)&&ct(de,I,H,W),Ft(d,!0);const $e=Bo(d),it=d.subTree;d.subTree=$e,w(it,$e,f(it.el),qe(it),d,E,j),H.el=$e.el,ee===null&&da(d,$e.el),g&&De(g,E),(de=H.props&&H.props.onVnodeUpdated)&&De(()=>ct(de,I,H,W),E)}else{let H;const{el:J,props:g}=p,{bm:I,m:W,parent:ee}=d,de=gn(p);if(Ft(d,!1),I&&jn(I),!de&&(H=g&&g.onVnodeBeforeMount)&&ct(H,ee,p),Ft(d,!0),J&&bt){const $e=()=>{d.subTree=Bo(d),bt(J,d.subTree,d,E,null)};de?p.type.__asyncLoader().then(()=>!d.isUnmounted&&$e()):$e()}else{const $e=d.subTree=Bo(d);w(null,$e,y,k,d,E,j),p.el=$e.el}if(W&&De(W,E),!de&&(H=g&&g.onVnodeMounted)){const $e=p;De(()=>ct(H,ee,$e),E)}(p.shapeFlag&256||ee&&gn(ee.vnode)&&ee.vnode.shapeFlag&256)&&d.a&&De(d.a,E),d.isMounted=!0,p=y=k=null}},B=d.effect=new ko(A,Ve,()=>Do(M),d.scope),M=d.update=()=>{B.dirty&&B.run()};M.id=d.uid,Ft(d,!0),M()},O=(d,p,y)=>{p.component=d;const k=d.vnode.props;d.vnode=p,d.next=null,Va(d,p.props,k,y),Wa(d,p.children,y),_t(),ii(d),wt()},F=(d,p,y,k,E,j,D,A,B=!1)=>{const M=d&&d.children,H=d?d.shapeFlag:0,J=p.children,{patchFlag:g,shapeFlag:I}=p;if(g>0){if(g&128){fe(M,J,y,k,E,j,D,A,B);return}else if(g&256){ce(M,J,y,k,E,j,D,A,B);return}}I&8?(H&16&&Ke(M,E,j),J!==M&&u(y,J)):H&16?I&16?fe(M,J,y,k,E,j,D,A,B):Ke(M,E,j,!0):(H&8&&u(y,""),I&16&&b(J,y,k,E,j,D,A,B))},ce=(d,p,y,k,E,j,D,A,B)=>{d=d||Ye,p=p||Ye;const M=d.length,H=p.length,J=Math.min(M,H);let g;for(g=0;g<J;g++){const I=p[g]=B?Tt(p[g]):at(p[g]);w(d[g],I,y,null,E,j,D,A,B)}M>H?Ke(d,E,j,!0,!1,J):b(p,y,k,E,j,D,A,B,J)},fe=(d,p,y,k,E,j,D,A,B)=>{let M=0;const H=p.length;let J=d.length-1,g=H-1;for(;M<=J&&M<=g;){const I=d[M],W=p[M]=B?Tt(p[M]):at(p[M]);if(Ht(I,W))w(I,W,y,null,E,j,D,A,B);else break;M++}for(;M<=J&&M<=g;){const I=d[J],W=p[g]=B?Tt(p[g]):at(p[g]);if(Ht(I,W))w(I,W,y,null,E,j,D,A,B);else break;J--,g--}if(M>J){if(M<=g){const I=g+1,W=I<H?p[I].el:k;for(;M<=g;)w(null,p[M]=B?Tt(p[M]):at(p[M]),y,W,E,j,D,A,B),M++}}else if(M>g)for(;M<=J;)ye(d[M],E,j,!0),M++;else{const I=M,W=M,ee=new Map;for(M=W;M<=g;M++){const Ue=p[M]=B?Tt(p[M]):at(p[M]);Ue.key!=null&&ee.set(Ue.key,M)}let de,$e=0;const it=g-W+1;let an=!1,ul=0;const Pn=new Array(it);for(M=0;M<it;M++)Pn[M]=0;for(M=I;M<=J;M++){const Ue=d[M];if($e>=it){ye(Ue,E,j,!0);continue}let ft;if(Ue.key!=null)ft=ee.get(Ue.key);else for(de=W;de<=g;de++)if(Pn[de-W]===0&&Ht(Ue,p[de])){ft=de;break}ft===void 0?ye(Ue,E,j,!0):(Pn[ft-W]=M+1,ft>=ul?ul=ft:an=!0,w(Ue,p[ft],y,null,E,j,D,A,B),$e++)}const dl=an?Xa(Pn):Ye;for(de=dl.length-1,M=it-1;M>=0;M--){const Ue=W+M,ft=p[Ue],fl=Ue+1<H?p[Ue+1].el:k;Pn[M]===0?w(null,ft,y,fl,E,j,D,A,B):an&&(de<0||M!==dl[de]?be(ft,y,fl,2):de--)}}},be=(d,p,y,k,E=null)=>{const{el:j,type:D,transition:A,children:B,shapeFlag:M}=d;if(M&6){be(d.component.subTree,p,y,k);return}if(M&128){d.suspense.move(p,y,k);return}if(M&64){D.move(d,p,y,dt);return}if(D===Se){o(j,p,y);for(let J=0;J<B.length;J++)be(B[J],p,y,k);o(d.anchor,p,y);return}if(D===er){C(d,p,y);return}if(k!==2&&M&1&&A)if(k===0)A.beforeEnter(j),o(j,p,y),De(()=>A.enter(j),E);else{const{leave:J,delayLeave:g,afterLeave:I}=A,W=()=>o(j,p,y),ee=()=>{J(j,()=>{W(),I&&I()})};g?g(j,W,ee):ee()}else o(j,p,y)},ye=(d,p,y,k=!1,E=!1)=>{const{type:j,props:D,ref:A,children:B,dynamicChildren:M,shapeFlag:H,patchFlag:J,dirs:g}=d;if(A!=null&&Qo(A,null,y,d,!0),H&256){p.ctx.deactivate(d);return}const I=H&1&&g,W=!gn(d);let ee;if(W&&(ee=D&&D.onVnodeBeforeUnmount)&&ct(ee,p,d),H&6)Xt(d.component,y,k);else{if(H&128){d.suspense.unmount(y,k);return}I&&Bt(d,null,p,"beforeUnmount"),H&64?d.type.remove(d,p,y,E,dt,k):M&&(j!==Se||J>0&&J&64)?Ke(M,p,y,!1,!0):(j===Se&&J&384||!E&&H&16)&&Ke(B,p,y),k&&ze(d)}(W&&(ee=D&&D.onVnodeUnmounted)||I)&&De(()=>{ee&&ct(ee,p,d),I&&Bt(d,null,p,"unmounted")},y)},ze=d=>{const{type:p,el:y,anchor:k,transition:E}=d;if(p===Se){nt(y,k);return}if(p===er){N(d);return}const j=()=>{r(y),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(d.shapeFlag&1&&E&&!E.persisted){const{leave:D,delayLeave:A}=E,B=()=>D(y,j);A?A(d.el,j,B):B()}else j()},nt=(d,p)=>{let y;for(;d!==p;)y=h(d),r(d),d=y;r(p)},Xt=(d,p,y)=>{const{bum:k,scope:E,update:j,subTree:D,um:A}=d;k&&jn(k),E.stop(),j&&(j.active=!1,ye(D,d,p,y)),A&&De(A,p),De(()=>{d.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},Ke=(d,p,y,k=!1,E=!1,j=0)=>{for(let D=j;D<d.length;D++)ye(d[D],p,y,k,E)},qe=d=>d.shapeFlag&6?qe(d.component.subTree):d.shapeFlag&128?d.suspense.next():h(d.anchor||d.el);let ot=!1;const Be=(d,p,y)=>{d==null?p._vnode&&ye(p._vnode,null,null,!0):w(p._vnode||null,d,p,null,null,null,y),ot||(ot=!0,ii(),si(),ot=!1),p._vnode=d},dt={p:w,um:ye,m:be,r:ze,mt:P,mc:b,pc:F,pbc:T,n:qe,o:e};let At,bt;return t&&([At,bt]=t(dt)),{render:Be,hydrate:At,createApp:Ba(Be,At)}}function Jo({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 Ft({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ya(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ji(e,t,n=!1){const o=e.children,r=t.children;if(te(o)&&te(r))for(let i=0;i<o.length;i++){const s=o[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=Tt(r[i]),l.el=s.el),n||ji(s,l)),l.type===no&&(l.el=s.el)}}function Xa(e){const t=e.slice(),n=[0];let o,r,i,s,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(r=n[n.length-1],e[r]<c){t[o]=r,n.push(o);continue}for(i=0,s=n.length-1;i<s;)l=i+s>>1,e[n[l]]<c?i=l+1:s=l;c<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}function Ri(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ri(t)}const Za=e=>e.__isTeleport,Se=Symbol.for("v-fgt"),no=Symbol.for("v-txt"),Je=Symbol.for("v-cmt"),er=Symbol.for("v-stc"),yn=[];let rt=null;function R(e=!1){yn.push(rt=e?null:[])}function Ga(){yn.pop(),rt=yn[yn.length-1]||null}let _n=1;function Di(e){_n+=e}function Bi(e){return e.dynamicChildren=_n>0?rt||Ye:null,Ga(),_n>0&&rt&&rt.push(e),e}function Y(e,t,n,o,r,i){return Bi(X(e,t,n,o,r,i,!0))}function me(e,t,n,o,r){return Bi(Q(e,t,n,o,r,!0))}function oo(e){return e?e.__v_isVNode===!0:!1}function Ht(e,t){return e.type===t.type&&e.key===t.key}const ro="__vInternal",Ni=({key:e})=>e??null,io=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||Ce(e)||re(e)?{i:Te,r:e,k:t,f:!!n}:e:null);function X(e,t=null,n=null,o=0,r=null,i=e===Se?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ni(t),ref:t&&io(t),scopeId:ci,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:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Te};return l?(tr(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=we(n)?8:16),_n>0&&!s&&rt&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&rt.push(a),a}const Q=Qa;function Qa(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===fi)&&(e=Je),oo(e)){const l=It(e,t,!0);return n&&tr(l,n),_n>0&&!i&&rt&&(l.shapeFlag&6?rt[rt.indexOf(e)]=l:rt.push(l)),l.patchFlag|=-2,l}if(cc(e)&&(e=e.__vccOpts),t){t=Ja(t);let{class:l,style:a}=t;l&&!we(l)&&(t.class=Ie(l)),ge(a)&&(Qr(a)&&!te(a)&&(a=_e({},a)),t.style=Oe(a))}const s=we(e)?1:ha(e)?128:Za(e)?64:ge(e)?4:re(e)?2:0;return X(e,t,n,o,r,s,i,!0)}function Ja(e){return e?Qr(e)||ro in e?_e({},e):e:null}function It(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,l=t?so(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ni(l),ref:t&&t.ref?n&&r?te(r)?r.concat(io(t)):[r,io(t)]:io(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Se?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&It(e.ssContent),ssFallback:e.ssFallback&&It(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ct(e=" ",t=0){return Q(no,null,e,t)}function Ee(e="",t=!1){return t?(R(),me(Je,null,e)):Q(Je,null,e)}function at(e){return e==null||typeof e=="boolean"?Q(Je):te(e)?Q(Se,null,e.slice()):typeof e=="object"?Tt(e):Q(no,null,String(e))}function Tt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:It(e)}function tr(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(te(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),tr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(ro in t)?t._ctx=Te:r===3&&Te&&(Te.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else re(t)?(t={default:t,_ctx:Te},n=32):(t=String(t),o&64?(n=16,t=[Ct(t)]):n=8);e.children=t,e.shapeFlag|=n}function so(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=Ie([t.class,o.class]));else if(r==="style")t.style=Oe([t.style,o.style]);else if(Mn(r)){const i=t[r],s=o[r];s&&i!==s&&!(te(i)&&i.includes(s))&&(t[r]=i?[].concat(i,s):s)}else r!==""&&(t[r]=o[r])}return t}function ct(e,t,n,o=null){Ze(e,t,7,[n,o])}const ec=Ci();let tc=0;function nc(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||ec,i={uid:tc++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Sl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ei(o,r),emitsOptions:ai(o,r),emit:null,emitted:null,propsDefaults:le,inheritAttrs:o.inheritAttrs,ctx:le,data:le,props:le,attrs:le,slots:le,refs:le,setupState:le,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=la.bind(null,i),e.ce&&e.ce(i),i}let Pe=null;const nr=()=>Pe||Te;let lo,or;{const e=xo(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),i=>{r.length>1?r.forEach(s=>s(i)):r[0](i)}};lo=t("__VUE_INSTANCE_SETTERS__",n=>Pe=n),or=t("__VUE_SSR_SETTERS__",n=>ao=n)}const wn=e=>{const t=Pe;return lo(e),e.scope.on(),()=>{e.scope.off(),lo(t)}},Vi=()=>{Pe&&Pe.scope.off(),lo(null)};function Fi(e){return e.vnode.shapeFlag&4}let ao=!1;function oc(e,t=!1){t&&or(t);const{props:n,children:o}=e.vnode,r=Fi(e);Na(e,n,r,t),Ha(e,o);const i=r?rc(e,t):void 0;return t&&or(!1),i}function rc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Jr(new Proxy(e.ctx,Oa));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?sc(e):null,i=wn(e);_t();const s=ht(o,e,0,[e.props,r]);if(wt(),i(),Ir(s)){if(s.then(Vi,Vi),t)return s.then(l=>{Hi(e,l,t)}).catch(l=>{Kn(l,e,0)});e.asyncDep=s}else Hi(e,s,t)}else Ki(e,t)}function Hi(e,t,n){re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=ti(t)),Ki(e,n)}let Wi;function Ki(e,t,n){const o=e.type;if(!e.render){if(!t&&Wi&&!o.render){const r=o.template||Yo(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=_e(_e({isCustomElement:i,delimiters:l},s),a);o.render=Wi(r,c)}}e.render=o.render||Ve}{const r=wn(e);_t();try{La(e)}finally{wt(),r()}}}function ic(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Re(e,"get","$attrs"),t[n]}}))}function sc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return ic(e)},slots:e.slots,emit:e.emit,expose:t}}function co(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ti(Jr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in vn)return vn[n](e)},has(t,n){return n in t||n in vn}}))}const lc=/(?:^|[-_])(\w)/g,ac=e=>e.replace(lc,t=>t.toUpperCase()).replace(/[-_]/g,"");function qi(e,t=!0){return re(e)?e.displayName||e.name:e.name||t&&e.__name}function Ui(e,t,n=!1){let o=qi(t);if(!o&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(o=r[1])}if(!o&&e&&e.parent){const r=i=>{for(const s in i)if(i[s]===t)return s};o=r(e.components||e.parent.type.components)||r(e.appContext.components)}return o?ac(o):n?"App":"Anonymous"}function cc(e){return re(e)&&"__vccOpts"in e}const se=(e,t)=>ql(e,t,ao);function xn(e,t,n=le){const o=nr(),r=je(t),i=Fe(t),s=Gl((a,c)=>{let u;return ba(()=>{const f=e[t];st(u,f)&&(u=f,c())}),{get(){return a(),n.get?n.get(u):u},set(f){const h=o.vnode.props;!(h&&(t in h||r in h||i in h)&&(`onUpdate:${t}`in h||`onUpdate:${r}`in h||`onUpdate:${i}`in h))&&st(f,u)&&(u=f,c()),o.emit(`update:${t}`,n.set?n.set(f):f)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return s[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?e[l]||{}:s,done:!1}:{done:!0}}}},s}function Yi(e,t,n){const o=arguments.length;return o===2?ge(t)&&!te(t)?oo(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&oo(n)&&(n=[n]),Q(e,t,n))}const uc="3.4.15";/**
|
|
17
17
|
* @vue/runtime-dom v3.4.15
|
|
18
18
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
19
19
|
* @license MIT
|
|
20
|
-
**/const fc="http://www.w3.org/2000/svg",pc="http://www.w3.org/1998/Math/MathML",Et=typeof document<"u"?document:null,Zi=Et&&Et.createElement("template"),hc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?Et.createElementNS(fc,e):t==="mathml"?Et.createElementNS(pc,e):Et.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Et.createTextNode(e),createComment:e=>Et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Et.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Zi.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=Zi.content;if(o==="svg"||o==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},$t="transition",xn="animation",Sn=Symbol("_vtc"),tn=(e,{slots:t})=>Xi(xa,gc(e),t);tn.displayName="Transition";const Gi={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};tn.props=_e({},mi,Gi);const Wt=(e,t=[])=>{ee(e)?e.forEach(n=>n(...t)):e&&e(...t)},Qi=e=>e?ee(e)?e.some(t=>t.length>1):e.length>1:!1;function gc(e){const t={};for(const V in e)V in Gi||(t[V]=e[V]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:x=`${n}-leave-to`}=e,y=mc(r),_=y&&y[0],$=y&&y[1],{onBeforeEnter:z,onEnter:q,onEnterCancelled:k,onLeave:N,onLeaveCancelled:S,onBeforeAppear:m=z,onAppear:w=q,onAppearCancelled:v=k}=t,C=(V,oe,P)=>{Kt(V,oe?u:l),Kt(V,oe?c:s),P&&P()},L=(V,oe)=>{V._isLeaving=!1,Kt(V,f),Kt(V,x),Kt(V,h),oe&&oe()},te=V=>(oe,P)=>{const ne=V?w:q,K=()=>C(oe,V,P);Wt(ne,[oe,K]),Ji(()=>{Kt(oe,V?a:i),Pt(oe,V?u:l),Qi(ne)||es(oe,o,_,K)})};return _e(t,{onBeforeEnter(V){Wt(z,[V]),Pt(V,i),Pt(V,s)},onBeforeAppear(V){Wt(m,[V]),Pt(V,a),Pt(V,c)},onEnter:te(!1),onAppear:te(!0),onLeave(V,oe){V._isLeaving=!0;const P=()=>L(V,oe);Pt(V,f),yc(),Pt(V,h),Ji(()=>{V._isLeaving&&(Kt(V,f),Pt(V,x),Qi(N)||es(V,o,$,P))}),Wt(N,[V,P])},onEnterCancelled(V){C(V,!1),Wt(k,[V])},onAppearCancelled(V){C(V,!0),Wt(v,[V])},onLeaveCancelled(V){L(V),Wt(S,[V])}})}function mc(e){if(e==null)return null;if(ge(e))return[rr(e.enter),rr(e.leave)];{const t=rr(e);return[t,t]}}function rr(e){return wo(e)}function Pt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Sn]||(e[Sn]=new Set)).add(t)}function Kt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[Sn];n&&(n.delete(t),n.size||(e[Sn]=void 0))}function Ji(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let vc=0;function es(e,t,n,o){const r=e._endId=++vc,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=bc(e,t);if(!s)return o();const c=s+"end";let u=0;const f=()=>{e.removeEventListener(c,h),i()},h=x=>{x.target===e&&++u>=a&&f()};setTimeout(()=>{u<a&&f()},l+1),e.addEventListener(c,h)}function bc(e,t){const n=window.getComputedStyle(e),o=y=>(n[y]||"").split(", "),r=o(`${$t}Delay`),i=o(`${$t}Duration`),s=ts(r,i),l=o(`${xn}Delay`),a=o(`${xn}Duration`),c=ts(l,a);let u=null,f=0,h=0;t===$t?s>0&&(u=$t,f=s,h=i.length):t===xn?c>0&&(u=xn,f=c,h=a.length):(f=Math.max(s,c),u=f>0?s>c?$t:xn:null,h=u?u===$t?i.length:a.length:0);const x=u===$t&&/\b(transform|all)(,|$)/.test(o(`${$t}Property`).toString());return{type:u,timeout:f,propCount:h,hasTransform:x}}function ts(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>ns(n)+ns(e[o])))}function ns(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function yc(){return document.body.offsetHeight}function _c(e,t,n){const o=e[Sn];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ir=Symbol("_vod"),os={beforeMount(e,{value:t},{transition:n}){e[ir]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):kn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),kn(e,!0),o.enter(e)):o.leave(e,()=>{kn(e,!1)}):kn(e,t))},beforeUnmount(e,{value:t}){kn(e,t)}};function kn(e,t){e.style.display=t?e[ir]:"none"}const wc=Symbol("");function xc(e,t,n){const o=e.style,r=o.display,i=we(n);if(n&&!i){if(t&&!we(t))for(const s in t)n[s]==null&&sr(o,s,"");for(const s in n)sr(o,s,n[s])}else if(i){if(t!==n){const s=o[wc];s&&(n+=";"+s),o.cssText=n}}else t&&e.removeAttribute("style");ir in e&&(o.display=r)}const rs=/\s*!important$/;function sr(e,t,n){if(ee(n))n.forEach(o=>sr(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Sc(e,t);rs.test(n)?e.setProperty(Fe(o),n.replace(rs,""),"important"):e[o]=n}}const is=["Webkit","Moz","ms"],lr={};function Sc(e,t){const n=lr[t];if(n)return n;let o=je(t);if(o!=="filter"&&o in e)return lr[t]=o;o=zn(o);for(let r=0;r<is.length;r++){const i=is[r]+o;if(i in e)return lr[t]=i}return t}const ss="http://www.w3.org/1999/xlink";function kc(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(ss,t.slice(6,t.length)):e.setAttributeNS(ss,t,n);else{const i=Sl(t);n==null||i&&!Pr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function Ic(e,t,n,o,r,i,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,r,i),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const c=l==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Pr(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function nn(e,t,n,o){e.addEventListener(t,n,o)}function Cc(e,t,n,o){e.removeEventListener(t,n,o)}const ls=Symbol("_vei");function Tc(e,t,n,o,r=null){const i=e[ls]||(e[ls]={}),s=i[t];if(o&&s)s.value=o;else{const[l,a]=Ec(t);if(o){const c=i[t]=Mc(o,r);nn(e,l,c,a)}else s&&(Cc(e,l,s,a),i[t]=void 0)}}const as=/(?:Once|Passive|Capture)$/;function Ec(e){let t;if(as.test(e)){t={};let o;for(;o=e.match(as);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Fe(e.slice(2)),t]}let ar=0;const $c=Promise.resolve(),Pc=()=>ar||($c.then(()=>ar=0),ar=Date.now());function Mc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Ze(Oc(o,n.value),t,5,[o])};return n.value=e,n.attached=Pc(),n}function Oc(e,t){if(ee(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const cs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Lc=(e,t,n,o,r,i,s,l,a)=>{const c=r==="svg";t==="class"?_c(e,o,c):t==="style"?xc(e,n,o):Mn(t)?mo(t)||Tc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ac(e,t,o,c))?Ic(e,t,o,i,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),kc(e,t,o,c))};function Ac(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&cs(t)&&re(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 cs(t)&&we(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function zc(e,t){const n=ke(e);class o extends cr{constructor(i){super(n,i,t)}}return o.def=n,o}const jc=typeof HTMLElement<"u"?HTMLElement:class{};class cr extends jc{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&o?o(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),gt(()=>{this._connected||(hs(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);this._ob=new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(o,r=!1)=>{const{props:i,styles:s}=o;let l;if(i&&!ee(i))for(const a in i){const c=i[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=wo(this._props[a])),(l||(l=Object.create(null)))[je(a)]=!0)}this._numberProps=l,r&&this._resolveProps(o),this._applyStyles(s),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=ee(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(je))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i)}})}_setAttr(t){let n=this.getAttribute(t);const o=je(t);this._numberProps&&this._numberProps[o]&&(n=wo(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(Fe(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Fe(t),n+""):n||this.removeAttribute(Fe(t))))}_update(){hs(this._createVNode(),this.shadowRoot)}_createVNode(){const t=G(this._def,_e({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(i,s)=>{this.dispatchEvent(new CustomEvent(i,{detail:s}))};n.emit=(i,...s)=>{o(i,s),Fe(i)!==i&&o(Fe(i),s)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof cr){n.parent=r._instance,n.provides=r._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}const us=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?n=>jn(t,n):t};function Rc(e){e.target.composing=!0}function ds(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ur=Symbol("_assign"),Dc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[ur]=us(r);const i=o||r.props&&r.props.type==="number";nn(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=_o(l)),e[ur](l)}),n&&nn(e,"change",()=>{e.value=e.value.trim()}),t||(nn(e,"compositionstart",Rc),nn(e,"compositionend",ds),nn(e,"change",ds))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e[ur]=us(i),e.composing)return;const s=r||e.type==="number"?_o(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Bc=["ctrl","shift","alt","meta"],Nc={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)=>Bc.some(n=>e[`${n}Key`]&&!t.includes(n))},et=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...i)=>{for(let s=0;s<t.length;s++){const l=Nc[t[s]];if(l&&l(r,t))return}return e(r,...i)})},Vc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},fs=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const i=Fe(r.key);if(t.some(s=>s===i||Vc[s]===i))return e(r)})},Fc=_e({patchProp:Lc},hc);let ps;function Hc(){return ps||(ps=Ua(Fc))}const hs=(...e)=>{Hc().render(...e)};var gs;const dr=typeof window<"u",Wc=e=>typeof e=="string",Mt=()=>{};dr&&((gs=window==null?void 0:window.navigator)!=null&&gs.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function uo(e){return typeof e=="function"?e():Z(e)}function ms(e,t){function n(...o){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(i)})}return n}function Kc(e,t={}){let n,o,r=Mt;const i=l=>{clearTimeout(l),r(),r=Mt};return l=>{const a=uo(e),c=uo(t.maxWait);return n&&i(n),a<=0||c!==void 0&&c<=0?(o&&(i(o),o=null),Promise.resolve(l())):new Promise((u,f)=>{r=t.rejectOnCancel?f:u,c&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&i(o),o=null,u(l())},a)})}}function qc(e,t=!0,n=!0,o=!1){let r=0,i,s=!0,l=Mt,a;const c=()=>{i&&(clearTimeout(i),i=void 0,l(),l=Mt)};return f=>{const h=uo(e),x=Date.now()-r,y=()=>a=f();if(c(),h<=0)return r=Date.now(),y();if(x>h&&(n||!s))r=Date.now(),y();else if(t)return new Promise((_,$)=>{l=o?$:_,i=setTimeout(()=>{r=Date.now(),s=!0,_(y()),c()},h-x)});return!n&&!i&&(i=setTimeout(()=>s=!0,h)),s=!1,a}}function Uc(e){return e}function fr(e){return Or()?(Cl(e),!0):!1}function Ae(e,t=200,n={}){return ms(Kc(t,n),e)}function vs(e,t=200,n=!1,o=!0,r=!1){return ms(qc(t,n,o,r),e)}function bs(e,t=!0){nr()?Qe(e):t?e():gt(e)}function qt(e){var t;const n=uo(e);return(t=n==null?void 0:n.$el)!=null?t:n}const In=dr?window:void 0,Yc=dr?window.document:void 0;function Ot(...e){let t,n,o,r;if(Wc(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=In):[t,n,o,r]=e,!t)return Mt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,f,h)=>(u.addEventListener(f,h,r),()=>u.removeEventListener(f,h,r)),a=pe(()=>qt(t),u=>{s(),u&&i.push(...n.flatMap(f=>o.map(h=>l(u,f,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return fr(c),c}function ys(e,t=!1){const n=X(),o=()=>n.value=!!e();return o(),bs(o,t),n}const _s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ws="__vueuse_ssr_handlers__";_s[ws]=_s[ws]||{};function xs({document:e=Yc}={}){if(!e)return X("visible");const t=X(e.visibilityState);return Ot(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Ss=Object.getOwnPropertySymbols,Xc=Object.prototype.hasOwnProperty,Zc=Object.prototype.propertyIsEnumerable,Gc=(e,t)=>{var n={};for(var o in e)Xc.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Ss)for(var o of Ss(e))t.indexOf(o)<0&&Zc.call(e,o)&&(n[o]=e[o]);return n};function Qc(e,t,n={}){const o=n,{window:r=In}=o,i=Gc(o,["window"]);let s;const l=ys(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},c=pe(()=>qt(e),f=>{a(),l.value&&r&&f&&(s=new ResizeObserver(t),s.observe(f,i))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return fr(u),{isSupported:l,stop:u}}function pr(e,t={width:0,height:0},n={}){const{window:o=In,box:r="content-box"}=n,i=se(()=>{var a,c;return(c=(a=qt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=X(t.width),l=X(t.height);return Qc(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&i.value){const u=qt(e);if(u){const f=o.getComputedStyle(u);s.value=parseFloat(f.width),l.value=parseFloat(f.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((f,{inlineSize:h})=>f+h,0),l.value=u.reduce((f,{blockSize:h})=>f+h,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),pe(()=>qt(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function hr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=In}=n,l=ys(()=>s&&"IntersectionObserver"in s);let a=Mt;const c=l.value?pe(()=>({el:qt(e),root:qt(o)}),({el:f,root:h})=>{if(a(),!f)return;const x=new IntersectionObserver(t,{root:h,rootMargin:r,threshold:i});x.observe(f),a=()=>{x.disconnect(),a=Mt}},{immediate:!0,flush:"post"}):Mt,u=()=>{a(),c()};return fr(u),{isSupported:l,stop:u}}var ks;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ks||(ks={}));var Jc=Object.defineProperty,Is=Object.getOwnPropertySymbols,eu=Object.prototype.hasOwnProperty,tu=Object.prototype.propertyIsEnumerable,Cs=(e,t,n)=>t in e?Jc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nu=(e,t)=>{for(var n in t||(t={}))eu.call(t,n)&&Cs(e,n,t[n]);if(Is)for(var n of Is(t))tu.call(t,n)&&Cs(e,n,t[n]);return e};nu({linear:Uc},{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]});function ou(e={}){const{window:t=In,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,s=X(n),l=X(o),a=()=>{t&&(i?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),bs(a),Ot("resize",a,{passive:!0}),r&&Ot("orientationchange",a,{passive:!0}),{width:s,height:l}}const ru=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,i=.65;const s=setInterval(a,20);l();function l(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function a(){const c=+n||50;r<=c?(r++,i-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${i}`):(o.remove(),clearInterval(s))}},on={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>ru(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},iu={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},su={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},lu={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},au=ke({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=t,o=X(null),r=X(null),i=X(!1),s=X(!1),l=X(3);return Qe(()=>{let a;hr(r,c=>{s.value=c.some(u=>u.isIntersecting),l.value=5,a&&(clearInterval(a),a=void 0),s.value&&(a=setInterval(()=>{l.value-=1,l.value<=0&&(clearInterval(a),a=void 0,n("next"))},1e3))}),hr(o,c=>{i.value=c.some(u=>u.isIntersecting)}),Nt(()=>a&&clearInterval(a))}),(a,c)=>(R(),U("div",{ref_key:"root",ref:o,class:"h-full w-full flex justify-center items-center"},[mt(Y("div",iu,[a.hasNext?(R(),U("div",su,[s.value?(R(),U("div",lu)):Ee("",!0),mt((R(),U("button",{ref_key:"nextButton",ref:r,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:c[0]||(c[0]=et(()=>n("next"),["stop"]))},[Ct(" Next in "+Xe(l.value),1)])),[[Z(on)]])])):Ee("",!0),mt((R(),U("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:c[1]||(c[1]=et(()=>n("hide"),["stop"]))},[Ct(" Hide ")])),[[Z(on)]])],512),[[os,i.value||!a.hasNext]])],512))}}),cu=`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
|
|
21
|
-
`,he=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},
|
|
22
|
-
`]]]),Ru=Object.freeze(Object.defineProperty({__proto__:null,default:vr},Symbol.toStringTag,{value:"Module"})),Du=["onClick","onKeyup"],po=ke({__name:"InputSelect",props:en({items:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=wn(e,"modelValue"),o=X(null),r=X({width:"",left:""});Qe(()=>{let s=!1;pe(n,l=>{var c;const a=(c=o.value)==null?void 0:c.children[l+1];a&&(r.value={width:a.offsetWidth+"px",left:a.offsetLeft+"px"},a.scrollIntoView({behavior:s?"smooth":"auto",block:"center",inline:"center"}),s=!0)},{immediate:!0})});function i(s){n.value=s}return(s,l)=>(R(),U("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[Y("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Oe(r.value)},null,4),(R(!0),U(Se,null,gn(t.items,(a,c)=>mt((R(),U("div",{key:c,tabindex:"0",class:Ie(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.value,"text-stone-400":c!=n.value}]),onClick:()=>i(c),onKeyup:[fs(()=>i(c),["enter"]),fs(()=>i(c),["space"])]},[Ct(Xe(a),1)],42,Du)),[[Z(on),30]])),128))],512))}}),Bu=Object.freeze(Object.defineProperty({__proto__:null,default:po},Symbol.toStringTag,{value:"Module"})),Nu={class:"flex items-center mb-8 last:mb-0"},Vu={class:"flex-grow overflow-hidden"},rn=ke({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(R(),U("div",Nu,[Y("div",{class:Ie(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Xe(t.label),3),Y("div",Vu,[xe(t.$slots,"default")])]))}}),Fu=Object.freeze(Object.defineProperty({__proto__:null,default:rn},Symbol.toStringTag,{value:"Module"})),Hu={},Wu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ku=[Y("path",{fill:"currentColor",d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"},null,-1)];function qu(e,t){return R(),U("svg",Wu,Ku)}const Ms=he(Hu,[["render",qu]]),Uu=Object.freeze(Object.defineProperty({__proto__:null,default:Ms},Symbol.toStringTag,{value:"Module"})),Yu={},Xu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Zu=[Y("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),Y("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Gu(e,t){return R(),U("svg",Xu,Zu)}const Os=he(Yu,[["render",Gu]]),Qu=Object.freeze(Object.defineProperty({__proto__:null,default:Os},Symbol.toStringTag,{value:"Module"}));function Ju(e){if(e)try{return JSON.parse(e)}catch{return}}function ed(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var ut=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(ut||{}),Lt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Lt||{});const td=.25,nd=5,od=.25,Cn=.25,Tn=5,rd=.05,id=0,sd=4;function ld(e){var k,N,S,m,w,v;const{titleName:t,isWebtoon:n}=e,o=se(()=>t.value?ed(t.value):location.hostname),r=X(ad(`tkr:${o.value}`)),i=C=>{r.value=C;const L=`tkr:${o.value}`;!C||!Object.keys(C).length?localStorage.removeItem(L):localStorage.setItem(L,JSON.stringify(C))},s=C=>{if(!r.value){i(C);return}const L={...r.value};Object.entries(C).forEach(([te,V])=>{V===void 0?delete L[te]:L[te]=V}),i(L)},l=X(((k=r.value)==null?void 0:k.style)??e.defaultStyle??Lt.longStrip),a=X(((N=r.value)==null?void 0:N.direction)??e.defaultDirection??ut.vertical),c=X((S=r.value)==null?void 0:S.gap),u=X(((m=r.value)==null?void 0:m.speed)??1),f=X(((w=r.value)==null?void 0:w.zoom)??1),h=X(((v=r.value)==null?void 0:v.breakFirst)??!1),x=se({get(){return n.value?Lt.longStrip:l.value},set:C=>{l.value=C,s({style:C}),C!==Lt.longStrip&&a.value===ut.vertical&&(y.value=ut.rtl)}}),y=se({get:()=>n.value?ut.vertical:a.value,set:C=>{a.value=C,s({direction:C})}}),_=se({get:()=>c.value!==void 0?c.value:e.maybeWebtoon.value||x.value!==Lt.longStrip?0:1,set(C){c.value=C,s({gap:C})}}),$=se({get:()=>u.value,set(C){u.value=C,s({speed:C===1?void 0:C})}}),z=se({get:()=>f.value,set(C){f.value=C,s({zoom:C===1?void 0:C})}}),q=se({get:()=>h.value,set(C){h.value=C,s({breakFirst:C?!0:void 0})}});return{direction:y,style:x,gap:_,speed:$,zoom:z,isLongStrip:se(()=>x.value===Lt.longStrip),isDouble:se(()=>x.value===Lt.double),isRTL:se(()=>y.value===ut.rtl),isVertical:se(()=>y.value===ut.vertical),breakFirst:q}}function ad(e){const t=localStorage.getItem(e),n=Ju(t),o={};return n?(n.style!==void 0&&Object.values(Lt).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(ut).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=id&&n.gap<=sd&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=Cn&&n.speed<=Tn&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=Cn&&n.zoom<=Tn&&(o.zoom=n.zoom),n.breakFirst===!0&&(o.breakFirst=!0),Object.keys(o).length?o:void 0):o}const Ls=ke({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=e,o=t,r=X(!1),i=se(()=>n.name??location.hostname);fo({onKeyUp:a=>{a.key==="s"&&!a.metaKey&&!a.ctrlKey&&(r.value=!r.value)}});function s(a){o("update:zoom",Math.round(a)/100)}function l(){r.value=!1,o("help")}return(a,c)=>(R(),U(Se,null,[G(tt,{title:"Reader settings (S)",disabled:a.disabled,onClick:c[0]||(c[0]=()=>r.value=!0)},{default:ie(()=>[G(Os)]),_:1},8,["disabled"]),G(Ps,{modelValue:r.value,"onUpdate:modelValue":c[5]||(c[5]=u=>r.value=u),name:i.value},{actions:ie(()=>[G(tt,{transparent:"",onClick:l},{default:ie(()=>[G(Ms)]),_:1})]),default:ie(()=>[G(rn,{label:"Style"},{default:ie(()=>[G(po,{"model-value":a.readerStyle,items:a.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":c[1]||(c[1]=u=>o("update:reader-style",u))},null,8,["model-value","items"])]),_:1}),G(rn,{label:"Direction"},{default:ie(()=>[G(po,{"model-value":a.direction,items:a.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":c[2]||(c[2]=u=>o("update:direction",u))},null,8,["model-value","items"])]),_:1}),G(rn,{label:"Gap"},{default:ie(()=>[G(po,{"model-value":a.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":c[3]||(c[3]=u=>o("update:gap",u))},null,8,["model-value"])]),_:1}),G(rn,{label:"Speed"},{default:ie(()=>[G(vr,{"model-value":a.speed,min:Z(td),max:Z(nd),step:Z(od),suffix:"x","onUpdate:modelValue":c[4]||(c[4]=u=>o("update:speed",u))},{suffix:ie(()=>[Ct(Xe(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),G(rn,{label:"Zoom"},{default:ie(()=>[G(vr,{"model-value":Math.ceil(a.zoom*100),min:Z(Cn)*100,max:Z(Tn)*100,step:Z(rd)*100,"onUpdate:modelValue":s},{suffix:ie(()=>[Ct(Xe(Math.ceil(a.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64))}}),cd=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),ud={},dd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},fd=[Y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[Y("circle",{cx:"14",cy:"14",r:"12"}),Y("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function pd(e,t){return R(),U("svg",dd,fd)}const As=he(ud,[["render",pd]]),hd=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"})),gd={key:0,class:"h-9 rounded-full inline-flex justify-between items-center bg-black bg-opacity-50 gap-1 py-2 px-3 pointer-events-auto hover:bg-stone-900 hover:bg-opacity-50 duration-200",title:"Reset zoom"},md={class:"block w-4 h-4"},vd={class:"w-12"},zs=ke({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>t.zoom!==1?(R(),U("button",gd,[Y("div",md,[G(As)]),Y("div",vd,Xe(Math.ceil(t.zoom*100))+"%",1)])):Ee("",!0)}}),bd=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),yd={},_d={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wd=[Y("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function xd(e,t){return R(),U("svg",_d,wd)}const js=he(yd,[["render",xd]]),Sd=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),Rs=ke({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=X(typeof n!="string"||+n!==t.direction),r=Ae(()=>o.value=!1,1250);pe(()=>t.direction,()=>{i(),o.value=!0,r()}),Qe(()=>{i(),r();let s;const l=xs();pe(l,a=>{a!=="visible"?s=Date.now():Date.now()-s>3e4&&(o.value=!0,r())})});function i(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,l)=>(R(),me(tn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[o.value?(R(),U("div",{key:0,class:Ie(["fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none w-28 h-24 p-4 bg-black bg-opacity-40 rounded-2xl duration-500",{"rotate-90":s.direction===Z(ut).vertical,"rotate-180":s.direction===Z(ut).rtl}])},[G(js)],2)):Ee("",!0)]),_:1}))}}),kd=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"})),Id=Y("div",{class:"fixed-screen bg-black bg-opacity-90"},null,-1),Ds=ke({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,r=X(null),i=X([]);Qe(async()=>{const c=pr(r),u=Ae(()=>{s({width:c.width.value,height:c.height.value})},50);u(),pe(c.width,u),pe(c.height,u)});function s(c){var h;const u=(h=r.value)==null?void 0:h.parentElement;if(!u)return;const f=Array.from(u.querySelectorAll("#controls [title]"));f.length&&(i.value=l(f,c))}function l(c,u){const f=[],h=[];let x=0,y=0;const _=50,$=25;c.forEach(S=>{var L;const m=(L=S.getAttribute("title"))==null?void 0:L.trim(),w=S.getBoundingClientRect();if(!m||!w.height||!w.width)return;const v=Math.ceil((w.top-10)/_),C=Math.ceil((w.left-10)/_);h.push({isTour:!1,title:m,rect:w,fromX:C,toX:Math.max(C+1,Math.ceil((w.right+10)/_)),fromY:v,toY:Math.max(v+1,Math.ceil((w.bottom+10)/_))})}),h.forEach(S=>{for(let m=S.fromY;m<S.toY;m++){f[m]??(f[m]=[]);for(let w=S.fromX;w<S.toX;w++)f[m][w]=S;S.toY>x+1&&(x=S.toY-1),S.toX>y+1&&(y=S.toX-1)}});let z=y/2;h.forEach(S=>{S.isAlignRight=S.fromX>z});const q=(S,m)=>{f[m]??(f[m]=[]);const w=m>=S.toY;if(S.isTour)for(let v=S.fromX;v<S.toX;v++)delete f[S.fromY][v],S.fromY=m,S.toY=m+(w?1:-1),f[m][v]=S;else{const v=S.isAlignRight?S.fromX-3:S.fromX,C=v+3;S.helpItem={fromX:v,toX:C,fromY:m,toY:m+1,isTour:!0,isAlignRight:S.isAlignRight};for(let L=v;L<C;L++)f[m][L]=S.helpItem}},k=(S,m)=>{if(m>x||m<0)return!1;const w=m>=S.toY,v=f[m];if(!v)return q(S,m),!0;const C=v[S.fromX];if(C&&!C.isTour)return!1;if(C&&C.isTour)return k(C,w?m+1:m-1)?(q(S,m),!0):!1;if(!C){const L=S.isAlignRight?-1:1;return v[S.fromX+L]||v[S.fromX+L*2]?k(S,w?m+1:m-1):(q(S,m),!0)}return!1};h.forEach(S=>{if(!k(S,S.toY)){if(S.isAlignRight){const m=f[S.fromY]??[];if(!m.slice(S.fromX-3,S.fromX).filter(Boolean).length){const v=S.fromX-3,C=S.fromX;S.helpItem={isTour:!0,isAlignRight:!0,fromX:v,toX:C,fromY:S.fromY,toY:S.toY};for(let L=S.fromX-3;L<S.fromX;L++)m[L]=S.helpItem;return}}k(S,S.fromY-1)}});const N=[];return h.forEach(S=>{const{title:m,helpItem:w,rect:v,isAlignRight:C,fromX:L,fromY:te,toY:V}=S;if(!m||!w||!v)return;const oe=w.fromY>=V,P=w.toY<=te;N.push({title:a(m),style:{top:oe?`${v.bottom+(w.fromY-V)*_+$}px`:P?void 0:`${v.top+8}px`,bottom:P?`${u.height-v.top+(w.toY-te)*_+$}px`:void 0,left:C?void 0:`${v.left}px`,right:C?oe?`${u.width-v.right}px`:`${u.width-v.right+v.width+$}px`:void 0},arrowStyle:{width:P||oe?"2px":`${Math.abs(w.toX-L)*_+$-5}px`,height:P||oe?`${(oe?w.fromY-V:te-w.toY)*_+$}px`:"2px",top:oe?`${v.bottom}px`:P?void 0:`${v.top+20}px`,bottom:P?`${u.height-v.top}px`:void 0,left:C?void 0:`${v.left+v.width/2}px`,right:C?oe?`${u.width-v.right+v.width/2}px`:`${u.width-v.right+v.width}px`:void 0}})}),N}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(R(),U(Se,null,[Id,Y("div",{ref_key:"root",ref:r,class:"fixed-screen z-20 overscroll-contain select-none",onClick:u[0]||(u[0]=et(f=>o("hide"),["stop"]))},[(R(!0),U(Se,null,gn(i.value,f=>(R(),U(Se,{key:f.title},[Y("div",{class:"absolute",style:Oe(f.style)},Xe(f.title),5),Y("div",{class:"absolute bg-stone-300 rounded-lg",style:Oe(f.arrowStyle)},null,4)],64))),128))],512)],64))}}),Cd=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),Bs=ke({__name:"PageNav",props:en({disabled:{type:Boolean},pages:{},totalImgs:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=wn(e,"modelValue"),o=se(()=>t.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),r=se(()=>{const a=n.value,c=t.pages.findIndex(u=>u.some(({index:f})=>f===a));return c===-1?t.pages.length-1:c}),i=se(()=>t.pages.length?`${o.value[r.value]}/${t.totalImgs}`:"--");function s(a){const c=t.pages[a][0].index;l(c)}function l(a){n.value=a}return(a,c)=>(R(),me(mr,{"model-value":r.value,label:i.value,title:"Current page",items:o.value,disabled:a.disabled,"onUpdate:modelValue":s},null,8,["model-value","label","items","disabled"]))}}),Td=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"})),Ed={},$d={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Pd=[Y("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),Y("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function Md(e,t){return R(),U("svg",$d,Pd)}const br=he(Ed,[["render",Md]]),Od=Object.freeze(Object.defineProperty({__proto__:null,default:br},Symbol.toStringTag,{value:"Module"})),Ld={},Ad={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},zd=[Y("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function jd(e,t){return R(),U("svg",Ad,zd)}const yr=he(Ld,[["render",jd]]),Rd=Object.freeze(Object.defineProperty({__proto__:null,default:yr},Symbol.toStringTag,{value:"Module"})),Ns=he(ke({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=X(0);return pe(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>n.value?(R(),U("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(R(),me(yr,{key:0})):(R(),me(br,{key:1}))])):Ee("",!0)}}),[["styles",[`.animate-pause-fade{animation:pause-fade .4s linear forwards;transform-origin:center}@keyframes pause-fade{0%{opacity:0;transform:scale(.3)}10%{opacity:1;transform:scale(.35)}55%{opacity:1;transform:scale(.65)}to{opacity:0;transform:scale(1)}}
|
|
23
|
-
`]]]),
|
|
24
|
-
`,
|
|
25
|
-
`]]]),
|
|
26
|
-
`]]]),
|
|
27
|
-
`]]]),sf=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),lf={},af={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},cf=[Y("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function uf(e,t){return R(),U("svg",af,cf)}const qs=he(lf,[["render",uf]]),df=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),ff={},pf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},hf=[Y("path",{fill:"currentColor",d:"M6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h6v2H7v12.95l5-2.15l5 2.15V11h2v8.475q0 .55-.45.838t-.95.087L12 18l-5.6 2.4ZM7 5h6h-6Zm11 4q-.425 0-.713-.287T17 8V7h-1q-.425 0-.713-.288T15 6q0-.425.288-.713T16 5h1V4q0-.425.288-.713T18 3q.425 0 .713.288T19 4v1h1q.425 0 .713.288T21 6q0 .425-.288.713T20 7h-1v1q0 .425-.288.713T18 9Z"},null,-1)];function gf(e,t){return R(),U("svg",pf,hf)}const Us=he(ff,[["render",gf]]),mf=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"})),vf={},bf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},yf=[Y("path",{fill:"currentColor",d:"M17.825 8.575q-.2 0-.375-.062t-.325-.213L15.7 6.875q-.3-.3-.3-.712t.3-.688q.275-.3.7-.3t.7.275l.725.725l2.825-2.85q.3-.3.7-.3t.725.3q.275.3.275.725t-.275.7l-3.55 3.55q-.15.15-.325.213t-.375.062ZM6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h7q-.5.75-.75 1.438T13 6q0 1.8 1.137 3.175T17 10.9q.575.075 1 .075t1-.075v8.575q0 .55-.45.838t-.95.087L12 18l-5.6 2.4Z"},null,-1)];function _f(e,t){return R(),U("svg",bf,yf)}const Ys=he(vf,[["render",_f]]),wf=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),xf={},Sf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},kf=[Y("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function If(e,t){return R(),U("svg",Sf,kf)}const Xs=he(xf,[["render",If]]),Cf=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),Tf={},Ef={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},$f=[Y("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Pf(e,t){return R(),U("svg",Ef,$f)}const Zs=he(Tf,[["render",Pf]]),Mf=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),Of={},Lf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56"},Af=[Y("path",{fill:"currentColor",d:"M29.84 49.574h12.398c4.899 0 7.336-2.437 7.336-7.265V13.69c0-4.828-2.437-7.265-7.336-7.265H29.84Zm-16.055 0h12.398V6.426H13.785c-4.875 0-7.36 2.414-7.36 7.265V42.31c0 4.851 2.485 7.265 7.36 7.265"},null,-1)];function zf(e,t){return R(),U("svg",Lf,Af)}const Gs=he(Of,[["render",zf]]),jf=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),Rf={},Df={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Bf=[Y("g",{fill:"none"},[Y("path",{d:"M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"}),Y("path",{fill:"currentColor",d:"M8 3v18H5a2 2 0 0 1-1.995-1.85L3 19V5a2 2 0 0 1 1.85-1.995L5 3zm11 0a2 2 0 0 1 1.995 1.85L21 5v14a2 2 0 0 1-1.85 1.995L19 21h-9V3z"})],-1)];function Nf(e,t){return R(),U("svg",Df,Bf)}const Qs=he(Rf,[["render",Nf]]),Vf=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),Ff={},Hf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Wf=[Y("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function Kf(e,t){return R(),U("svg",Hf,Wf)}const Js=he(Ff,[["render",Kf]]),qf=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),Uf={},Yf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Xf=[Y("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function Zf(e,t){return R(),U("svg",Yf,Xf)}const el=he(Uf,[["render",Zf]]),Gf=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),Qf={},Jf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},ep=[Y("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function tp(e,t){return R(),U("svg",Jf,ep)}const tl=he(Qf,[["render",tp]]),np=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"}));function sn(e=0){return new Promise(t=>setTimeout(t,e))}function nl(e){return new Promise(t=>{const n=o=>{if(!o)return t(void 0);const r=URL.createObjectURL(o);t(r)};e.toBlob(n,"image/jpeg",1)})}async function op(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),r=o.getContext("2d"),i=e.naturalWidth,s=e.naturalHeight;return o.width=i,o.height=s,r==null||r.drawImage(e,0,0,i,s),await nl(o)}function ho(e){const t=e.getAttributeNames(),n=t.indexOf("src");n!==-1&&(t.splice(n,1),t.push("src"));for(const o of t){if(o==="srcset"||o!=="data-url"&&o!=="data-original"&&!o.includes("src"))continue;const r=e.getAttribute(o);if(r)return o==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:r.replace(/(\n|\t)/g," ").trim()}}async function rp(e,t){return(t==null?void 0:t.src)===e&&t.naturalWidth&&t.naturalHeight?{width:t.naturalWidth,height:t.naturalHeight}:await new Promise(n=>{const o=new Image,r=setInterval(()=>{const{naturalWidth:i,naturalHeight:s}=o;s&&i&&(n({width:i,height:s}),clearInterval(r))},20);o.onerror=()=>{n(void 0),clearInterval(r)},o.src=e})}class ip{constructor({isIOS:t,onDownloaded:n}){ve(this,"reactiveResults",an({}));ve(this,"isIOS");ve(this,"tkLoadId",Date.now());ve(this,"isMounted",!0);ve(this,"onDisposeCallbacks",[]);ve(this,"onDownloaded");this.isIOS=t,this.onDownloaded=n}dispose(){this.isMounted=!1,this.onDisposeCallbacks.forEach(t=>t()),this.onDisposeCallbacks=[],this.onDownloaded=()=>{}}async download(t){var l;if(!this.isMounted)return;const n=t.el;let o=t.computedSrc;if(!n&&!o)return;const r=n instanceof HTMLImageElement,i=n instanceof HTMLCanvasElement;if(n){if(n._tkLoadId===this.tkLoadId)return;if(n._tkLoadId=this.tkLoadId,r){const a=()=>this.onImgElLoaded(t,n);n.addEventListener("load",a),this.onDisposeCallbacks.push(()=>{n.removeEventListener("load",a)})}}if(r&&!o){if(o=ho(n),!o)return;n._tkSrc=o}else if(i&&!o){if(o=await nl(n),!o)return;n._tkSrc=o}if(!o||!this.isMounted)return;const s=r&&o.startsWith("blob");s&&!n.complete||((l=this.reactiveResults)[o]??(l[o]={src:o,isLoading:!0,hasError:!1}),s&&this.isIOS&&await sn(300),await this.downloadSrc(t))}async onImgElLoaded(t,n){var r;if(!this.isMounted)return;const o=ho(n);o&&(!o.startsWith("blob")&&t.computedSrc===o||(n._tkSrc=o,(r=this.reactiveResults)[o]??(r[o]={src:o,isLoading:!0,hasError:!1}),this.downloadSrc(t)))}async downloadSrc(t){const n=t.computedSrc;if(!n)return;const o=t.el instanceof HTMLImageElement?t.el:void 0,r=o?await op(o,n):n;if(!r)return;const i=await rp(r,o);if(!this.isMounted)return;const s=!!i&&(i.width<200||i.height<200);this.reactiveResults[n]={src:r,size:i,isLoading:!1,hasError:!i,invalid:s},i&&this.onDownloaded(t,i)}}const sp=3;class lp{constructor({getItems:t,getActiveIndex:n,isCompleted:o,callback:r}){ve(this,"isQueueStarted",!1);ve(this,"debouncedEnqueue");ve(this,"concurrentCount",0);ve(this,"getItems");ve(this,"getActiveIndex");ve(this,"isCompleted");ve(this,"callback");ve(this,"activeIndex",0);ve(this,"completedItems");ve(this,"isMounted",!0);this.getItems=t,this.getActiveIndex=n,this.isCompleted=o,this.callback=r,this.debouncedEnqueue=Ae(this.enqueue.bind(this),50)}dispose(){this.isMounted=!1}run(){this.isQueueStarted?this.debouncedEnqueue():(this.isQueueStarted=!0,this.enqueue())}get canEnqueue(){return this.concurrentCount<sp&&this.isMounted}async enqueue(){if(!this.canEnqueue)return;const t=this.getItems();if(t===this.completedItems)return;this.completedItems=void 0;const n=this.resetActiveIndex(),o=Math.max(0,Math.min(t.length-1,n-1)),r=[];for(let i=o;i<t.length;i++){if(!this.canEnqueue)return;r.push(await this.invokeItemCallback(i,i==t.length-1))}for(let i=o-1;i>=0;i--){if(!this.canEnqueue)return;r.push(await this.invokeItemCallback(i,i==0))}this.getItems()===t&&r.filter(Boolean).length==t.length&&(this.completedItems=t)}async invokeItemCallback(t,n){const o=this.getItems()[t];return o?this.isCompleted(o)?!0:(this.concurrentCount++,this.callback(o).then(()=>{this.concurrentCount=Math.max(0,this.concurrentCount-1),n||this.debouncedEnqueue()}),await sn(),!1):!1}resetActiveIndex(){const t=this.getActiveIndex();return t<this.activeIndex&&(this.concurrentCount=Math.max(0,this.concurrentCount-Math.abs(t-this.activeIndex))),this.activeIndex=t,t}}class Ut{constructor(t,n,o){this.src=t,this.el=n,this.parentEl=o}get computedSrc(){var t;return this.src??((t=this.el)==null?void 0:t._tkSrc)}}async function En(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(r=>{setTimeout(async()=>{const i=await En(e-1,t,n);r(i)},t)})}function wr(e,t){if(!e||e===document.body)return!0;const n=t.get(e);if(n!==void 0)return n;const o=getComputedStyle(e);if(!(o.display!=="none"&&+(o.opacity??"1")>.1))return t.set(e,!1),!1;const i=wr(e.parentElement,t);return t.set(e,i),i}function ol(e){const t=e.tagName.toLowerCase();if(t==="option"){const n=e.parentElement;if(n.tagName.toLowerCase()!=="select")return;n.value=e.getAttribute("value")||"",n.dispatchEvent(new Event("change"));return}return t==="a"&&e.addEventListener("click",n=>n.preventDefault(),{once:!0}),e.click()}async function ap(e){const{lstrip:t,lstripBtn:n}=e||{};if(!t||!n||!!document.querySelector(t))return!1;const r=await En(50,30,()=>document.querySelector(n));return r?(ol(r),await sn(),!0):!1}class cp{constructor({spec:t,onChanged:n}){ve(this,"spec");ve(this,"onChanged");ve(this,"rawImages",[]);ve(this,"isMounted",!0);ve(this,"loadRawImagesTs");ve(this,"disconnectObservers");this.spec=t,this.onChanged=n,this.init()}dispose(){var t;this.isMounted=!1,(t=this.disconnectObservers)==null||t.call(this),this.disconnectObservers=void 0,this.onChanged=()=>{}}init(){var s;let t;const n=Ae(()=>{t&&this.loadRawImages(t)},100),o=new MutationObserver(n),r=(s=this.spec)!=null&&s.imgDivs?void 0:(()=>{let l=window.innerWidth;return new ResizeObserver(Ae(()=>{const a=window.innerWidth;if(a!==l){l=a;return}n()},50))})();this.disconnectObservers=async()=>{o.disconnect(),r==null||r.disconnect()};let i=!1;this.loadContentEl(l=>{t!==l&&(t=l,o.disconnect(),r==null||r.disconnect(),o.observe(t,{childList:!0,subtree:!0}),r==null||r.observe(t),i?n():(i=!0,this.loadRawImages(t)))})}setRawImages(t){let n=!1;const o=t.map((r,i)=>{const s=this.rawImages[i];return s&&s.el===r.el&&s.parentEl===r.parentEl&&s.src===r.src?s:(n=!0,r)});(n||!o.length)&&(this.rawImages=o,this.onChanged(t))}async loadContentEl(t){var l;const n=(l=this.spec)==null?void 0:l.content;if(!n){t(document.body);return}const o=await ap(this.spec);let r=n?await En(o?100:1,10,()=>document.querySelector(n)):void 0;if(!r)return;t(r);let i=0;const s=async()=>{if(this.isMounted&&!(r!=null&&r.isConnected)){if(i=0,r=await En(50,20,()=>{const a=document.querySelector(n);return a!=null&&a.isConnected&&a!==r?a:void 0}),!r)return;t(r)}!this.isMounted||++i>=10||setTimeout(s,200)};setTimeout(s,200)}async loadRawImages(t){var i;if(!this.isMounted||!t.isConnected)return;const n=Date.now();this.loadRawImagesTs=n;const o=(i=this.spec)==null?void 0:i.imgDivs,r=o?await up(t,o):dp(t);this.loadRawImagesTs!==n||!t.isConnected||!this.isMounted||this.setRawImages(r)}}async function up(e,t){const n=Array.from(e.querySelectorAll(t)),o=new Map;return n.map(i=>{const s=Array.from(i.querySelectorAll("img,canvas"));for(const l of s)if(wr(l,o)){if(l instanceof HTMLCanvasElement){if(rl(l))return new Ut(void 0,l,i)}else if(l instanceof HTMLImageElement&&il(l)){const a=ho(l);return new Ut(a,l,i)}}return new Ut(void 0,void 0,i)})}function dp(e){const t=[],n={},o=new Map;return Array.from(e.querySelectorAll("img,canvas")).forEach(i=>{if(wr(i,o)){if(i instanceof HTMLCanvasElement)rl(i)&&t.push(new Ut(void 0,i));else if(i instanceof HTMLImageElement&&il(i)){const s=ho(i);if(s){const l=n[s];if(l!==void 0&&l!==-1){t.splice(l,1);return}n[s]=t.length}t.push(new Ut(s,i))}}}),t}function rl(e){return e.isConnected&&e.width>=200&&e.height>=200}function il(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||t.width>=200&&t.height>=200}function sl(e){var t,n;for(let o=0;o<e.length;o++){const r=((t=e[o])==null?void 0:t.el)??((n=e[o])==null?void 0:n.parentEl),i=r==null?void 0:r.getBoundingClientRect();if(!i||i.bottom<=0)continue;const s=i.top;return o+(s>=0?0:-s/i.height)}return 0}function fp(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src)).map(o=>new Ut(void 0,o));return sl(n)}function go({rawImages:e,page:t,smooth:n,skipIfVisible:o,isScrollDown:r}){const i=Math.floor(t),s=e[Math.min(e.length-1,i)];if(!s)return;const l=s.el??s.parentEl??document.querySelector(`img[src^="${s.computedSrc}"]`);if(!l)return;const a=l.getBoundingClientRect();if(o&&a.top<=0&&a.top+a.height>0)return;const c=ll(l);if(!c)return;const u=t>=e.length?a.height:r?Math.max(0,a.height-window.innerHeight+100):t%1*a.height;c.el.scrollTo({top:c.top+u,behavior:n?"smooth":"instant"})}function ll(e,t=new Map){if(!e)return;const{offsetTop:n,offsetParent:o}=e;if(o&&n&&t.set(o,Math.max(t.get(o)??0,n)),!(e.scrollHeight-e.clientHeight>=10&&(e===document.documentElement||window.getComputedStyle(e).overflow!=="visible")))return ll(e.parentElement,t);let i=0;return t.forEach((s,l)=>{i+=l===o?s-n:s}),{el:e,top:i}}function pp(e){var x,y,_,$;const t=X((x=e.raw.value)==null?void 0:x.isWebtoon),n=X((y=e.raw.value)==null?void 0:y.isWebtoon);let o=!1;const r=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android"),i=(($=(_=e.raw.value)==null?void 0:_.imgs)==null?void 0:$.filter(Boolean))??[];let s=e.isAutoShow!==!1?e.page.value:i.length?fp(i):void 0,l=i.map(z=>new Ut(z)),a;const c=new ip({isIOS:r,onDownloaded(z,q){let k=l.indexOf(z);if(k===-1){const N=z.computedSrc;k=l.findIndex(S=>S.computedSrc===N)}if(k!==-1){if(q&&!t.value&&k>Math.min(1,l.length-3)&&k<Math.max(l.length-2,3)){const N=q.height/q.width,S=N>2||N<.5,m=N>1.6||N<.6;t.value!==S&&(t.value=S),n.value!==m&&(n.value=m)}f()}}}),u=new lp({getItems:()=>l,getActiveIndex:()=>Math.floor(e.page.value),isCompleted:z=>{const q=z.computedSrc;return!!(q&&c.reactiveResults[q])},callback:z=>c.download(z)});if(i.length)u.run();else{let z=!1;a=new cp({spec:e.spec,async onChanged(q){var k;if(l=q,!e.raw.value&&!q.length){e.onError("no_img");return}(k=e.spec)!=null&&k.imgDivs&&!z&&e.isAutoShow!==!1&&e.page.value&&(z=!0,go({rawImages:q,page:e.page.value,skipIfVisible:!0}),await sn(1)),s===void 0&&e.isAutoShow===!1&&(s=sl(q)),u.run()}})}Wo(()=>{c.dispose(),u.dispose(),a==null||a.dispose(),o&&go({rawImages:l,page:e.page.value})});function f(){var S,m,w,v;if(o||t.value===void 0||s===void 0)return;const z=Math.max(0,Math.min(s,l.length)),q=l.length-1,k=Math.min(Math.floor(z),q);if(k>=1){const C=(S=l[k])==null?void 0:S.computedSrc;if(!C){e.isAutoShow&&go({rawImages:l,page:k});return}const L=(m=l[k-1])==null?void 0:m.computedSrc;if(L&&!((w=c.reactiveResults[L])!=null&&w.size)||!((v=c.reactiveResults[C])!=null&&v.size))return}if(o)return;o=!0,e.onReady(z);let N=!0;pe(()=>Math.floor(e.page.value),(C,L)=>{go({rawImages:l,page:C,smooth:r,isScrollDown:L===void 0||C>L||l.length===1,skipIfVisible:N&&l.length>1}),N=!1,L??(L=-1),u.run()},{immediate:!0})}return{asyncImgs:se(()=>{Object.values(c.reactiveResults);const z=[];return l.forEach(q=>{const k=q.computedSrc,N=k?c.reactiveResults[k]:void 0;(k&&!(N!=null&&N.invalid)||q.parentEl)&&z.push(N)}),z}),isWebtoon:se(()=>t.value??!1),maybeWebtoon:se(()=>n.value??!1)}}function hp(e,t,n){return se(()=>t.value?al(e.value,n.value):e.value.map((o,r)=>[{img:o,index:r}]))}function al(e,t,n=0){if(e.length===0)return[];const o=e.slice(0,2),r=o.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height),i=r||t?[o[0]]:o;return[i.map((s,l)=>({img:s,index:n+l})),...al(e.slice(i.length),t&&r,n+i.length)]}function gp(e,t){const n=sessionStorage.getItem("tk:page:path");n!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),n&&sessionStorage.removeItem("tk:page"));const o=X(t&&e>0?Math.max(0,e):+(sessionStorage.getItem("tk:page")??"0")||e);return se({get:()=>o.value,set:r=>{o.value=r,sessionStorage.setItem("tk:page",r+"")}})}function mp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const xr=40;function vp({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:i,spaceTop:s,scrollEl:l,isWebtoon:a,interferePlayer:c,onChangedPage:u,onInitialized:f,onFinished:h}){let x=!1,y=!1,_=!1,$;const z=Ae(C,300),q=vs(()=>{C(),z()},300),k=Ae(m,50);async function N(){w(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function S(){var O;y=!0,f(),L(),(O=l.value)==null||O.addEventListener("scroll",q),setTimeout(()=>{const{width:F,height:ce}=ou();pe(F,()=>{r.value&&k()}),pe(ce,()=>{r.value||k()}),pe(n,m),pe(t,m)},300)}async function m(){if(!y||x)return;x=!0,await gt();const O=e.value;if(V()===O){x=!1;return}w(O)}function w(O,{smooth:F,ensureLastImgVisibility:ce=!1}={smooth:!1}){const fe=l.value;if(!fe)return;x=!0;const be=async()=>{await gt(),x=!1,y||S()},ye=Math.floor(O),ze=fe.querySelector(`[data-index="${ye}"],[data-index2="${ye}"]`);if(!ze){be();return}c(async()=>{await v(fe,!o.value&&F,async()=>{await K(fe,ze,{smooth:F,page:O,ensureLastImgVisibility:ce})}),await be()})}async function v(O,F,ce){F&&O.style.setProperty("scroll-snap-type","none"),await ce(),F&&O.style.removeProperty("scroll-snap-type")}function C(){if(x)return;const O=V();O!==void 0&&O!==e.value&&u(O),L()}function L(){_||!_&&te()&&(_=!0,h())}function te(){const O=l.value;if(!O)return!1;const F=o.value?a.value?3:!r.value&&O.clientWidth>O.clientHeight?2.25:2.5:2;return r.value?O.scrollHeight-O.scrollTop<O.clientHeight*F:O.scrollWidth-(i.value?-O.scrollLeft:O.scrollLeft)<O.clientWidth*F}function V(){const O=oe();return O?(+O.getAttribute("data-index")||0)+(o.value?P(O):0):void 0}function oe(){var F;if($??($=l.value.getRootNode()),!$)return;const O=(F=$.elementsFromPoint)==null?void 0:F.call($,r.value||!o.value?window.innerWidth/2:i.value?window.innerWidth-xr:xr,r.value&&o.value?s.value||xr:window.innerHeight/2);if(O)for(let ce=0;ce<O.length;ce++){const fe=O[ce];if(fe.hasAttribute("data-index"))return fe;if(fe===l.value)break}}function P(O){const F=O.getBoundingClientRect();return r.value?Math.abs(F.top-s.value)/F.height:i.value?Math.max(0,F.right-l.value.clientWidth)/F.width:Math.abs(F.left)/F.width}let ne=!1;async function K(O,F,ce){if(ne)return;const fe=F.getBoundingClientRect();if(!o.value){if(r.value){if(fe.top<=0&&fe.bottom>=O.clientHeight)return}else if(fe.left<=0&&fe.right>=O.clientWidth)return}ne=!0;const be=r.value?O.scrollTop:O.scrollLeft,ye=ce.page,ze=o.value?ye%1:0,nt=await En(30,10,async()=>{await sn();let Be;if(!(F.offsetHeight<10))return o.value?r.value?Be=F.offsetTop+ze*F.offsetHeight-s.value:i.value?Be=F.offsetLeft-O.clientWidth+F.offsetWidth-ze*F.offsetWidth:Be=F.offsetLeft+ze*F.offsetWidth:r.value?Be=F.offsetTop+(fe.top>0?0:fe.height-O.clientHeight):Be=F.offsetLeft+(fe.left>0?0:fe.width-O.clientWidth),ye>.5&&Math.abs(Be)<100?void 0:Be})??0,Yt=ce.ensureLastImgVisibility?r.value?Math.min(nt,O.scrollHeight-O.clientHeight*2):i.value?Math.max(nt,-(O.scrollWidth-O.clientWidth*2)):Math.min(nt,O.scrollWidth-O.clientWidth*2):nt;if(!ce.smooth){r.value?O.scrollTop=Yt:O.scrollLeft=Yt,ne=!1;return}const Ke=Yt-be,qe=30;let ot=0;return new Promise(Be=>{(function dt(){const At=bp(ot,be,Ke,qe);r.value?O.scrollTop=At:O.scrollLeft=At,ot++,ot<=qe?requestAnimationFrame(dt):(Be(),ne=!1)})()})}return{init:N,goToPage:w}}function bp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function yp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:i,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=X(typeof l=="string"?l==="true":e),c=se({get:()=>a.value,set:v=>{a.value=v,sessionStorage.setItem("tk:playing",v?"true":"false")}}),u=X(!1);let f,h;const x=Ae(m,100),y=Ae(()=>{u.value=!0},t?2e3:1e3),_=()=>setTimeout(()=>{u.value=!1,y()},30);_(),t||Ot(window,"mousemove",_);const $=xs();Qe(()=>{pe($,v=>{c.value&&(v==="visible"?m():h==null||h())}),pe(s,()=>z()),pe(i,v=>{v||k()})}),Nt(k);async function z(v){c.value&&(h==null||h()),v&&(await gt(),await v()),c.value&&x()}function q(){c.value?k():N()}function k(){c.value&&(c.value=!1,h==null||h(),_())}function N(){!c.value&&i.value&&(c.value=!0,m(),_())}function S(){h==null||h()}function m(){const v=n.value;if(!c.value||!v)return;const C=o.value?v.scrollHeight-v.clientHeight:v.scrollWidth-v.clientWidth,L=w();if(C<=L){k();return}h=()=>{f=Date.now(),h=void 0};const te=Date.now();f=te;const V=.05*s.value,oe=o.value?"scrollTop":"scrollLeft";let P=Date.now(),ne=0;const K=()=>{if(f!==te)return;const O=Date.now(),F=O-P;P=O;const ce=V*F+ne;ce>=1?(ne=ce%1,v[oe]+=(ce-ne)*(r.value?-1:1)):ne=ce,setTimeout(K,1)};K()}function w(){const v=n.value;return o.value?v.scrollTop:r.value?-v.scrollLeft:v.scrollLeft}return{isPlaying:c,isIdle:u,toggle:q,play:N,pause:S,resume:m,stop:k,interfere:z,awake:_}}function _p(e,t){var N,S,m;const{vol:n,inferVol:o,chap:r,title:i,slug:s,basePath:l}=e;let a=-1;const c=t&&!t.url?document.querySelectorAll(t.sel):void 0;function u(w,v){w.slug?Sr(l,w.slug,v):w.elIndex!==void 0&&c&&c[w.elIndex]&&ol(c[w.elIndex])}function f(w){const v=k[w];return v?C=>u(v,C):void 0}const h=(N=e.prev)==null?void 0:N.slug,x=(S=e.next)==null?void 0:S.slug;let y=h?w=>Sr(l,h,w):void 0,_=x?w=>Sr(l,x,w):void 0;const $=n??o,z=t==null?void 0:t.url,q=((m=i.chapters)==null?void 0:m.filter(w=>w.slug||!z&&w.elIndex!==void 0))??[],k=q.length>1?q:[];if(k.length){if(z&&(a=k.findIndex(w=>w.slug===e.slug)),a===-1&&(a=k.findIndex(w=>(w.vol??w.inferVol)===$&&w.chap===r)),z&&a===-1&&(a=k.findIndex(w=>w.slug&&s.startsWith(`${w.slug}-`)&&s.length-w.slug.length>3)),a!==-1)y??(y=f(a+1)),_??(_=f(a-1));else if(!h&&!x){const w=k.findIndex(v=>{const C=v.vol??v.inferVol;return $===void 0||C===void 0||$===C?v.chap<r:C<$});w!==-1?(y=f(w),_=f(w-1)):_=f(k.length-1)}}return{activeIndex:a,activeLabel:cl({vol:n,chap:r}),prev:y,next:_,chapters:k.map(w=>({label:cl(w),select:v=>u(w,v)}))}}function cl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}function Sr(e,t,n){const o=!t||t.includes("//")||t.startsWith("/")?t:"/"+[...e.split("/"),...t.split("/")].filter(Boolean).join("/"),r=o.includes("//")?o:location.origin+o;n?window.open(r,"_blank","noopener"):location.href=r}const wp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},ul=he(ke({inheritAttrs:!1,__name:"App",props:{immediate:{type:Boolean},raw:{},spec:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},readerStyle:{},direction:{},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean}},emits:["error","ready","pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","finished"],setup(e,{emit:t}){const n=e,o=t;let r=!1,i,s=-1;const l=X(!1),a=X(!1),c=mu({touchDevice:n.touchDevice}),u=gp(n.page,n.isAutoShow),f=se(()=>n.spaceTop??0),{asyncImgs:h,isWebtoon:x,maybeWebtoon:y}=pp({raw:se(()=>n.raw),spec:n.spec,page:u,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:f,async onReady(g){ze(g),l.value=!0},onError:()=>{o("error"),j()}}),{direction:_,style:$,isRTL:z,isDouble:q,isVertical:k,isLongStrip:N,gap:S,speed:m,zoom:w,breakFirst:v}=ld({titleName:se(()=>{var g;return(g=n.raw)==null?void 0:g.title.name}),isWebtoon:x,maybeWebtoon:y,defaultStyle:n.readerStyle,defaultDirection:n.direction}),C=hp(h,q,v),L=se(()=>u.value>=h.value.length),te=se(()=>{var g;return n.raw?_p(n.raw,(g=n.spec)==null?void 0:g.chapter):void 0}),V=X(null),oe=X(null),P=X(!1),ne=X(!1),K=yp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:se(()=>{var g;return(g=V.value)==null?void 0:g.$el}),speed:m,isRTL:z,isVertical:k,isLongStrip:N}),O=se(()=>!n.touchDevice&&K.isIdle.value&&!c.value),F=se({get(){return w.value},set(g){K.interfere(()=>{w.value=g})}}),ce=vp({page:u,style:$,direction:_,isLongStrip:N,isVertical:k,isRTL:z,spaceTop:f,isWebtoon:x,scrollEl:se(()=>{var g;return(g=V.value)==null?void 0:g.$el}),interferePlayer:g=>K.interfere(g),onChangedPage:ze,onInitialized(){o("ready"),a.value=!0,i=nt()},onFinished:()=>o("finished")}),fe=se(()=>Math.floor(u.value)),be=()=>K.interfere(()=>sn(100));bu().addListener({onKeyDown:g=>{if(n.tourEnabled)return;const T=N.value&&k.value,W=N.value&&!k.value,J=!N.value&&k.value,de=!N.value&&!k.value;switch(g.key){case" ":g.preventDefault(),N.value?(Q(!1),K.toggle()):I();break;case"ArrowUp":case"PageUp":T?be():J&&fe.value!==0&&(g.preventDefault(),b());break;case"ArrowDown":case"PageDown":T?be():J&&!L.value&&(g.preventDefault(),I());break;case"ArrowLeft":W?be():de?(g.preventDefault(),d()):k.value&&ot();break;case"ArrowRight":W?be():de?(g.preventDefault(),p()):k.value&&qe();break}},onKeyUp:g=>{switch(g.key){case"f":B();break;case"t":A();break;case"h":Q();break}}}),Ot("fullscreenchange",()=>{P.value=!!document.fullscreenElement}),pe(K.isPlaying,g=>{g||D(!1),o("playingChanged",g)}),pe(K.isIdle,g=>{K.isPlaying.value&&D(g)}),pe(c,g=>{!g&&K.isIdle.value?K.awake():g&&n.fullScreen&&D()});function ze(g){if(u.value===g)return;const T=h.value.length;if(g<0||g>=T+1)return;const W=u.value;u.value=g;const J=Math.floor(g*100)/100;J!==s&&(s=J,o("pageChanged",J)),g>=T?(D(!1),K.stop()):g<.01&&W>g?(D(!1),K.awake()):r||(N.value?i!==void 0&&nt()-i>300&&D(!0):Math.abs(W-g)===1&&D(!0))}function nt(){var T;const g=(T=V.value)==null?void 0:T.$el;return g?k.value?g.scrollTop:z.value?-g.scrollLeft:g.scrollLeft:0}function Yt(){!n.touchDevice&&!N.value&&ce.goToPage(fe.value,{smooth:!0})}function Ke(){if(K.isPlaying.value){!n.fullScreen||!n.touchDevice?K.stop():K.awake();return}D()}function qe(g=!1){var T,W;(W=(T=te.value)==null?void 0:T.next)==null||W.call(T,g)}function ot(g=!1){var T,W;(W=(T=te.value)==null?void 0:T.prev)==null||W.call(T,g)}function Be(g,T){var W,J,de;(de=(J=(W=te.value)==null?void 0:W.chapters)==null?void 0:J[g])==null||de.select(bt(T))}function dt(g){z.value?qe(bt(g)):ot(bt(g))}function At(g){z.value?ot(bt(g)):qe(bt(g))}function bt(g){return!n.touchDevice&&(g.ctrlKey||g.metaKey)}function d(){z.value?I():b()}function p(){z.value?b():I()}function b(){var W;const g=C.value,T=L.value?g[g.length-1][0].index:(W=g[E()-1])==null?void 0:W[0].index;T!==void 0?ce.goToPage(T):ot()}function I(){var g,T;if(L.value)qe();else{const W=((T=(g=C.value[E()+1])==null?void 0:g[0])==null?void 0:T.index)??h.value.length;ce.goToPage(W)}}function E(){const g=fe.value,T=C.value.findIndex(W=>W.some(({index:J})=>J===g));return T===-1?C.value.length-1:T}function j(){mp(),o("dispose")}async function D(g){if(c.value&&!n.fullScreen)return;const T=typeof g=="boolean"?g:!n.fullScreen;T!==n.fullScreen&&(r=!0,o("fullScreenChanged",T),T&&setTimeout(()=>{n.fullScreen&&c.value&&o("fullScreenChanged",!1)},100))}function A(){n.entryId?H():M()}function B(){var g,T;document.fullscreenElement?document.exitFullscreen():(T=(g=oe.value)==null?void 0:g.$el)==null||T.requestFullscreen()}function M(){K.stop(),o("addEntry")}function H(){K.stop(),o("openEntry",n.entryId)}function Q(g){ne.value!==g&&(ne.value=!ne.value,ne.value&&K.isPlaying.value&&K.stop())}return(g,T)=>g.immediate||l.value?(R(),me(Ws,{key:0,ref_key:"root",ref:oe,loading:!a.value,immediate:!!g.immediate,"full-screen":!!g.fullScreen,idle:O.value,"space-top":f.value,rtl:Z(z),onClick:T[11]||(T[11]=et(()=>{},["stop"]))},wi({settings:ie(()=>{var W;return[G(Ls,{"reader-style":Z($),"onUpdate:readerStyle":T[3]||(T[3]=J=>Ce($)?$.value=J:null),direction:Z(_),"onUpdate:direction":T[4]||(T[4]=J=>Ce(_)?_.value=J:null),gap:Z(S),"onUpdate:gap":T[5]||(T[5]=J=>Ce(S)?S.value=J:null),speed:Z(m),"onUpdate:speed":T[6]||(T[6]=J=>Ce(m)?m.value=J:null),zoom:F.value,"onUpdate:zoom":T[7]||(T[7]=J=>F.value=J),name:(W=g.raw)==null?void 0:W.title.name,webtoon:Z(x),disabled:!l.value,onHelp:Q},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":ie(()=>[G(tn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[G(zs,{zoom:F.value,onClick:T[10]||(T[10]=et(()=>F.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:ie(()=>[Y("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Oe({width:`${Z(u)/(Z(h).length-1)*100}%`})},null,4)]),default:ie(()=>{var W;return[l.value?(R(),me(Hs,{key:0,ref_key:"body",ref:V,zoom:F.value,"onUpdate:zoom":T[0]||(T[0]=J=>F.value=J),"page-index":fe.value,pages:Z(C),"total-imgs":Z(h).length,direction:Z(_),gap:Z(S),"is-long-strip":Z(N),isRTL:Z(z),"is-vertical":Z(k),"space-top":f.value,busy:Z(c),idle:O.value,"play-controller":Z(K),"touch-device":g.touchDevice,"has-next":!!((W=te.value)!=null&&W.next),onVnodeMounted:Z(ce).init,onPrev:b,onNext:I,onClick:Ke,onDragEnd:Yt,onWheelPassive:T[1]||(T[1]=()=>Z(K).interfere())},wi({_:2},[l.value&&Z(h).length?{name:"end",fn:ie(()=>{var J;return[G(Ts,{"has-next":!!((J=te.value)!=null&&J.next),onNext:qe,onHide:j},null,8,["has-next"])]}),key:"0"}:void 0]),1032,["zoom","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","busy","idle","play-controller","touch-device","has-next","onVnodeMounted"])):Ee("",!0),a.value&&!L.value&&!g.tourEnabled?(R(),me(Rs,{key:1,direction:Z(_)},null,8,["direction"])):Ee("",!0),a.value&&!L.value?(R(),me(Ns,{key:2,playing:!!Z(K).isPlaying.value},null,8,["playing"])):Ee("",!0),ne.value?(R(),me(Ds,{key:3,"touch-device":g.touchDevice,onHide:Q},null,8,["touch-device"])):Ee("",!0),g.tourEnabled?(R(),me(Ks,{key:4,onHide:T[2]||(T[2]=()=>o("tourEnabledChanged",!1))})):Ee("",!0)]}),_:2},[g.raw?{name:"back",fn:ie(()=>[G(tt,{href:g.raw.title.url,title:"Back to manga"},{default:ie(()=>[G(qs)]),_:1},8,["href"])]),key:"0"}:void 0,g.touchDevice?void 0:{name:"exit",fn:ie(()=>[G(tt,{title:"Hide reader","data-tour":"You have entered reader mode, press here to return to the original page",onClick:j},{default:ie(()=>[G(tl)]),_:1})]),key:"1"},te.value?{name:"chapter-nav",fn:ie(()=>[G(mr,{modelValue:te.value.activeIndex,label:te.value.activeLabel,title:"Select chapter",items:te.value.chapters,onSelect:Be},{item:ie(({item:W})=>[Ct(Xe(W.label),1)]),_:1},8,["modelValue","label","items"]),te.value.next||te.value.prev?(R(),U("div",wp,[G(tt,{title:`${Z(z)?"Next":"Prev"} chapter (←)`,disabled:Z(z)?!te.value.next:!te.value.prev,class:"!rounded-r-none",onClick:dt},{default:ie(()=>[G(Xs)]),_:1},8,["title","disabled"]),G(tt,{title:`${Z(z)?"Prev":"Next"} chapter (→)`,disabled:Z(z)?!te.value.prev:!te.value.next,class:"!rounded-l-none",onClick:At},{default:ie(()=>[G(Zs)]),_:1},8,["title","disabled"])])):Ee("",!0)]),key:"2"}:void 0,Z(C).length?{name:"page-nav",fn:ie(()=>[G(Bs,{"model-value":fe.value,disabled:!a.value,pages:Z(C),"total-imgs":Z(h).length,"onUpdate:modelValue":Z(ce).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,g.raw?{name:"entry",fn:ie(()=>[G(tt,{title:g.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:A},{default:ie(()=>[g.entryId?(R(),me(Ys,{key:0})):(R(),me(Us,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,g.touchDevice?void 0:{name:"full-screen",fn:ie(()=>[G(tt,{title:`${P.value?"Exit":"Enter"} fullscreen (F)`,onClick:B},{default:ie(()=>[P.value?(R(),me(el,{key:0})):(R(),me(Js,{key:1}))]),_:1},8,["title"])]),key:"5"},Z(N)?{name:"play",fn:ie(()=>[G(tt,{"data-tour":"Press here to play like a video",title:`${Z(K).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!a.value,onClick:T[8]||(T[8]=()=>Z(K).toggle())},{default:ie(()=>[Z(K).isPlaying.value?(R(),me(br,{key:0})):(R(),me(yr,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0,Z(q)?{name:"break-first",fn:ie(()=>[G(tt,{title:"Separate 1st page","data-tour":"Press here to separate the first page from double-page mode",disabled:!a.value,onClick:T[9]||(T[9]=()=>v.value=!Z(v))},{default:ie(()=>[Z(v)?(R(),me(Qs,{key:0})):(R(),me(Gs,{key:1}))]),_:1},8,["disabled"])]),key:"7"}:void 0]),1032,["loading","immediate","full-screen","idle","space-top","rtl"])):Ee("",!0)}}),[["styles",[`/*! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Helvetica,sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:300px){.container{max-width:300px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.fixed-screen{height:100vh;left:0;position:fixed;top:0;width:100vw}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:4px;width:4px}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-full{top:100%}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.-ml-20{margin-left:-80px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.ml-1{margin-left:4px}.ml-auto{margin-left:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-0\\.5{height:2px}.h-1{height:4px}.h-1\\.5{height:6px}.h-10{height:40px}.h-12{height:48px}.h-16{height:64px}.h-20{height:80px}.h-24{height:96px}.h-4{height:16px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-9{height:36px}.h-\\[101\\%\\]{height:101%}.h-\\[27rem\\]{height:432px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-full{max-height:100%}.w-1{width:4px}.w-1\\/3{width:33.333333%}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-28{width:112px}.w-4{width:16px}.w-40{width:160px}.w-\\[4\\.5rem\\]{width:72px}.w-full{width:100%}.w-screen{width:100vw}.max-w-full{max-width:100%}.max-w-xs{max-width:320px}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-right{transform-origin:right}.origin-top{transform-origin:top}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1{--tw-translate-y:-4px}.-translate-y-1\\.5{--tw-translate-y:-6px}.-translate-y-1\\.5,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--tw-translate-y:4px}.translate-y-1\\.5{--tw-translate-y:6px}.translate-y-1\\.5,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y:100%}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-grabbing{cursor:grabbing}.cursor-none{cursor:none}.cursor-pointer{cursor:pointer}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.\\!snap-none{scroll-snap-type:none!important}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.gap-6{gap:24px}.gap-\\[1px\\]{gap:1px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:4px}.rounded-2xl{border-radius:16px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-sm{border-radius:2px}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.rounded-t-sm{border-top-left-radius:2px;border-top-right-radius:2px}.rounded-t-xl{border-top-left-radius:12px;border-top-right-radius:12px}.border{border-width:1px}.border-2{border-width:2px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-opacity-40{--tw-bg-opacity:.4}.bg-opacity-50{--tw-bg-opacity:.5}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-90{--tw-bg-opacity:.9}.bg-none{background-image:none}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:4px}.p-2{padding:8px}.p-4{padding:16px}.p-6{padding:24px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-6{padding-left:24px;padding-right:24px}.py-1{padding-bottom:4px;padding-top:4px}.py-2{padding-bottom:8px;padding-top:8px}.pb-12{padding-bottom:48px}.pb-6{padding-bottom:24px}.pl-1{padding-left:4px}.pt-3{padding-top:12px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-90{opacity:.9}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:300px){.\\32xs\\:gap-3{gap:12px}}@media (min-width:640px){.sm\\:w-\\[32rem\\]{width:512px}.sm\\:p-3{padding:12px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-5{padding-bottom:20px}.md\\:text-lg{font-size:18px;line-height:28px}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}.lg\\:pb-3{padding-bottom:12px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
|
|
28
|
-
`]]]),xp=Object.freeze(Object.defineProperty({__proto__:null,default:
|
|
29
|
-
|
|
20
|
+
**/const dc="http://www.w3.org/2000/svg",fc="http://www.w3.org/1998/Math/MathML",Et=typeof document<"u"?document:null,Xi=Et&&Et.createElement("template"),pc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?Et.createElementNS(dc,e):t==="mathml"?Et.createElementNS(fc,e):Et.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Et.createTextNode(e),createComment:e=>Et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Et.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Xi.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=Xi.content;if(o==="svg"||o==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},$t="transition",Sn="animation",kn=Symbol("_vtc"),nn=(e,{slots:t})=>Yi(wa,hc(e),t);nn.displayName="Transition";const Zi={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};nn.props=_e({},gi,Zi);const Wt=(e,t=[])=>{te(e)?e.forEach(n=>n(...t)):e&&e(...t)},Gi=e=>e?te(e)?e.some(t=>t.length>1):e.length>1:!1;function hc(e){const t={};for(const V in e)V in Zi||(t[V]=e[V]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:S=`${n}-leave-to`}=e,_=gc(r),w=_&&_[0],$=_&&_[1],{onBeforeEnter:L,onEnter:K,onEnterCancelled:C,onLeave:N,onLeaveCancelled:x,onBeforeAppear:m=L,onAppear:z=K,onAppearCancelled:b=C}=t,v=(V,oe,P)=>{Kt(V,oe?u:l),Kt(V,oe?c:s),P&&P()},T=(V,oe)=>{V._isLeaving=!1,Kt(V,f),Kt(V,S),Kt(V,h),oe&&oe()},U=V=>(oe,P)=>{const ne=V?z:K,q=()=>v(oe,V,P);Wt(ne,[oe,q]),Qi(()=>{Kt(oe,V?a:i),Pt(oe,V?u:l),Gi(ne)||Ji(oe,o,w,q)})};return _e(t,{onBeforeEnter(V){Wt(L,[V]),Pt(V,i),Pt(V,s)},onBeforeAppear(V){Wt(m,[V]),Pt(V,a),Pt(V,c)},onEnter:U(!1),onAppear:U(!0),onLeave(V,oe){V._isLeaving=!0;const P=()=>T(V,oe);Pt(V,f),bc(),Pt(V,h),Qi(()=>{V._isLeaving&&(Kt(V,f),Pt(V,S),Gi(N)||Ji(V,o,$,P))}),Wt(N,[V,P])},onEnterCancelled(V){v(V,!1),Wt(C,[V])},onAppearCancelled(V){v(V,!0),Wt(b,[V])},onLeaveCancelled(V){T(V),Wt(x,[V])}})}function gc(e){if(e==null)return null;if(ge(e))return[rr(e.enter),rr(e.leave)];{const t=rr(e);return[t,t]}}function rr(e){return wo(e)}function Pt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[kn]||(e[kn]=new Set)).add(t)}function Kt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[kn];n&&(n.delete(t),n.size||(e[kn]=void 0))}function Qi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let mc=0;function Ji(e,t,n,o){const r=e._endId=++mc,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=vc(e,t);if(!s)return o();const c=s+"end";let u=0;const f=()=>{e.removeEventListener(c,h),i()},h=S=>{S.target===e&&++u>=a&&f()};setTimeout(()=>{u<a&&f()},l+1),e.addEventListener(c,h)}function vc(e,t){const n=window.getComputedStyle(e),o=_=>(n[_]||"").split(", "),r=o(`${$t}Delay`),i=o(`${$t}Duration`),s=es(r,i),l=o(`${Sn}Delay`),a=o(`${Sn}Duration`),c=es(l,a);let u=null,f=0,h=0;t===$t?s>0&&(u=$t,f=s,h=i.length):t===Sn?c>0&&(u=Sn,f=c,h=a.length):(f=Math.max(s,c),u=f>0?s>c?$t:Sn:null,h=u?u===$t?i.length:a.length:0);const S=u===$t&&/\b(transform|all)(,|$)/.test(o(`${$t}Property`).toString());return{type:u,timeout:f,propCount:h,hasTransform:S}}function es(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>ts(n)+ts(e[o])))}function ts(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function bc(){return document.body.offsetHeight}function yc(e,t,n){const o=e[kn];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ir=Symbol("_vod"),ns={beforeMount(e,{value:t},{transition:n}){e[ir]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):In(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),In(e,!0),o.enter(e)):o.leave(e,()=>{In(e,!1)}):In(e,t))},beforeUnmount(e,{value:t}){In(e,t)}};function In(e,t){e.style.display=t?e[ir]:"none"}const _c=Symbol("");function wc(e,t,n){const o=e.style,r=o.display,i=we(n);if(n&&!i){if(t&&!we(t))for(const s in t)n[s]==null&&sr(o,s,"");for(const s in n)sr(o,s,n[s])}else if(i){if(t!==n){const s=o[_c];s&&(n+=";"+s),o.cssText=n}}else t&&e.removeAttribute("style");ir in e&&(o.display=r)}const os=/\s*!important$/;function sr(e,t,n){if(te(n))n.forEach(o=>sr(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=xc(e,t);os.test(n)?e.setProperty(Fe(o),n.replace(os,""),"important"):e[o]=n}}const rs=["Webkit","Moz","ms"],lr={};function xc(e,t){const n=lr[t];if(n)return n;let o=je(t);if(o!=="filter"&&o in e)return lr[t]=o;o=zn(o);for(let r=0;r<rs.length;r++){const i=rs[r]+o;if(i in e)return lr[t]=i}return t}const is="http://www.w3.org/1999/xlink";function Sc(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(is,t.slice(6,t.length)):e.setAttributeNS(is,t,n);else{const i=xl(t);n==null||i&&!$r(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function kc(e,t,n,o,r,i,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,r,i),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const c=l==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=$r(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function on(e,t,n,o){e.addEventListener(t,n,o)}function Ic(e,t,n,o){e.removeEventListener(t,n,o)}const ss=Symbol("_vei");function Cc(e,t,n,o,r=null){const i=e[ss]||(e[ss]={}),s=i[t];if(o&&s)s.value=o;else{const[l,a]=Tc(t);if(o){const c=i[t]=Pc(o,r);on(e,l,c,a)}else s&&(Ic(e,l,s,a),i[t]=void 0)}}const ls=/(?:Once|Passive|Capture)$/;function Tc(e){let t;if(ls.test(e)){t={};let o;for(;o=e.match(ls);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Fe(e.slice(2)),t]}let ar=0;const Ec=Promise.resolve(),$c=()=>ar||(Ec.then(()=>ar=0),ar=Date.now());function Pc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Ze(Mc(o,n.value),t,5,[o])};return n.value=e,n.attached=$c(),n}function Mc(e,t){if(te(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const as=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Oc=(e,t,n,o,r,i,s,l,a)=>{const c=r==="svg";t==="class"?yc(e,o,c):t==="style"?wc(e,n,o):Mn(t)?mo(t)||Cc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Lc(e,t,o,c))?kc(e,t,o,i,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Sc(e,t,o,c))};function Lc(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&as(t)&&re(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 as(t)&&we(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Ac(e,t){const n=ke(e);class o extends cr{constructor(i){super(n,i,t)}}return o.def=n,o}const zc=typeof HTMLElement<"u"?HTMLElement:class{};class cr extends zc{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&o?o(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),gt(()=>{this._connected||(ps(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);this._ob=new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(o,r=!1)=>{const{props:i,styles:s}=o;let l;if(i&&!te(i))for(const a in i){const c=i[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=wo(this._props[a])),(l||(l=Object.create(null)))[je(a)]=!0)}this._numberProps=l,r&&this._resolveProps(o),this._applyStyles(s),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=te(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(je))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i)}})}_setAttr(t){let n=this.getAttribute(t);const o=je(t);this._numberProps&&this._numberProps[o]&&(n=wo(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(Fe(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Fe(t),n+""):n||this.removeAttribute(Fe(t))))}_update(){ps(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Q(this._def,_e({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(i,s)=>{this.dispatchEvent(new CustomEvent(i,{detail:s}))};n.emit=(i,...s)=>{o(i,s),Fe(i)!==i&&o(Fe(i),s)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof cr){n.parent=r._instance,n.provides=r._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}const cs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return te(t)?n=>jn(t,n):t};function jc(e){e.target.composing=!0}function us(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ur=Symbol("_assign"),Rc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[ur]=cs(r);const i=o||r.props&&r.props.type==="number";on(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=_o(l)),e[ur](l)}),n&&on(e,"change",()=>{e.value=e.value.trim()}),t||(on(e,"compositionstart",jc),on(e,"compositionend",us),on(e,"change",us))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e[ur]=cs(i),e.composing)return;const s=r||e.type==="number"?_o(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Dc=["ctrl","shift","alt","meta"],Bc={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)=>Dc.some(n=>e[`${n}Key`]&&!t.includes(n))},et=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...i)=>{for(let s=0;s<t.length;s++){const l=Bc[t[s]];if(l&&l(r,t))return}return e(r,...i)})},Nc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ds=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const i=Fe(r.key);if(t.some(s=>s===i||Nc[s]===i))return e(r)})},Vc=_e({patchProp:Oc},pc);let fs;function Fc(){return fs||(fs=qa(Vc))}const ps=(...e)=>{Fc().render(...e)};var hs;const dr=typeof window<"u",Hc=e=>typeof e=="string",Mt=()=>{};dr&&((hs=window==null?void 0:window.navigator)!=null&&hs.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function uo(e){return typeof e=="function"?e():G(e)}function gs(e,t){function n(...o){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(i)})}return n}function Wc(e,t={}){let n,o,r=Mt;const i=l=>{clearTimeout(l),r(),r=Mt};return l=>{const a=uo(e),c=uo(t.maxWait);return n&&i(n),a<=0||c!==void 0&&c<=0?(o&&(i(o),o=null),Promise.resolve(l())):new Promise((u,f)=>{r=t.rejectOnCancel?f:u,c&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&i(o),o=null,u(l())},a)})}}function Kc(e,t=!0,n=!0,o=!1){let r=0,i,s=!0,l=Mt,a;const c=()=>{i&&(clearTimeout(i),i=void 0,l(),l=Mt)};return f=>{const h=uo(e),S=Date.now()-r,_=()=>a=f();if(c(),h<=0)return r=Date.now(),_();if(S>h&&(n||!s))r=Date.now(),_();else if(t)return new Promise((w,$)=>{l=o?$:w,i=setTimeout(()=>{r=Date.now(),s=!0,w(_()),c()},h-S)});return!n&&!i&&(i=setTimeout(()=>s=!0,h)),s=!1,a}}function qc(e){return e}function fr(e){return Mr()?(Il(e),!0):!1}function Ae(e,t=200,n={}){return gs(Wc(t,n),e)}function ms(e,t=200,n=!1,o=!0,r=!1){return gs(Kc(t,n,o,r),e)}function vs(e,t=!0){nr()?Qe(e):t?e():gt(e)}function qt(e){var t;const n=uo(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Cn=dr?window:void 0,Uc=dr?window.document:void 0;function Ot(...e){let t,n,o,r;if(Hc(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=Cn):[t,n,o,r]=e,!t)return Mt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,f,h)=>(u.addEventListener(f,h,r),()=>u.removeEventListener(f,h,r)),a=pe(()=>qt(t),u=>{s(),u&&i.push(...n.flatMap(f=>o.map(h=>l(u,f,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return fr(c),c}function bs(e,t=!1){const n=Z(),o=()=>n.value=!!e();return o(),vs(o,t),n}const ys=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_s="__vueuse_ssr_handlers__";ys[_s]=ys[_s]||{};function ws({document:e=Uc}={}){if(!e)return Z("visible");const t=Z(e.visibilityState);return Ot(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var xs=Object.getOwnPropertySymbols,Yc=Object.prototype.hasOwnProperty,Xc=Object.prototype.propertyIsEnumerable,Zc=(e,t)=>{var n={};for(var o in e)Yc.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&xs)for(var o of xs(e))t.indexOf(o)<0&&Xc.call(e,o)&&(n[o]=e[o]);return n};function Gc(e,t,n={}){const o=n,{window:r=Cn}=o,i=Zc(o,["window"]);let s;const l=bs(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},c=pe(()=>qt(e),f=>{a(),l.value&&r&&f&&(s=new ResizeObserver(t),s.observe(f,i))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return fr(u),{isSupported:l,stop:u}}function pr(e,t={width:0,height:0},n={}){const{window:o=Cn,box:r="content-box"}=n,i=se(()=>{var a,c;return(c=(a=qt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=Z(t.width),l=Z(t.height);return Gc(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&i.value){const u=qt(e);if(u){const f=o.getComputedStyle(u);s.value=parseFloat(f.width),l.value=parseFloat(f.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((f,{inlineSize:h})=>f+h,0),l.value=u.reduce((f,{blockSize:h})=>f+h,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),pe(()=>qt(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function hr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=Cn}=n,l=bs(()=>s&&"IntersectionObserver"in s);let a=Mt;const c=l.value?pe(()=>({el:qt(e),root:qt(o)}),({el:f,root:h})=>{if(a(),!f)return;const S=new IntersectionObserver(t,{root:h,rootMargin:r,threshold:i});S.observe(f),a=()=>{S.disconnect(),a=Mt}},{immediate:!0,flush:"post"}):Mt,u=()=>{a(),c()};return fr(u),{isSupported:l,stop:u}}var Ss;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ss||(Ss={}));var Qc=Object.defineProperty,ks=Object.getOwnPropertySymbols,Jc=Object.prototype.hasOwnProperty,eu=Object.prototype.propertyIsEnumerable,Is=(e,t,n)=>t in e?Qc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tu=(e,t)=>{for(var n in t||(t={}))Jc.call(t,n)&&Is(e,n,t[n]);if(ks)for(var n of ks(t))eu.call(t,n)&&Is(e,n,t[n]);return e};tu({linear:qc},{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]});function nu(e={}){const{window:t=Cn,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,s=Z(n),l=Z(o),a=()=>{t&&(i?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),vs(a),Ot("resize",a,{passive:!0}),r&&Ot("orientationchange",a,{passive:!0}),{width:s,height:l}}const ou=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,i=.65;const s=setInterval(a,20);l();function l(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function a(){const c=+n||50;r<=c?(r++,i-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${i}`):(o.remove(),clearInterval(s))}},rn={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>ou(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},ru={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},iu={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},su={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},lu=ke({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=t,o=Z(null),r=Z(null),i=Z(!1),s=Z(!1),l=Z(3);return Qe(()=>{let a;hr(r,c=>{s.value=c.some(u=>u.isIntersecting),l.value=5,a&&(clearInterval(a),a=void 0),s.value&&(a=setInterval(()=>{l.value-=1,l.value<=0&&(clearInterval(a),a=void 0,n("next"))},1e3))}),hr(o,c=>{i.value=c.some(u=>u.isIntersecting)}),Nt(()=>a&&clearInterval(a))}),(a,c)=>(R(),Y("div",{ref_key:"root",ref:o,class:"h-full w-full flex justify-center items-center"},[mt(X("div",ru,[a.hasNext?(R(),Y("div",iu,[s.value?(R(),Y("div",su)):Ee("",!0),mt((R(),Y("button",{ref_key:"nextButton",ref:r,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:c[0]||(c[0]=et(()=>n("next"),["stop"]))},[Ct(" Next in "+Xe(l.value),1)])),[[G(rn)]])])):Ee("",!0),mt((R(),Y("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:c[1]||(c[1]=et(()=>n("hide"),["stop"]))},[Ct(" Hide ")])),[[G(rn)]])],512),[[ns,i.value||!a.hasNext]])],512))}}),au=`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
|
|
21
|
+
`,he=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Cs=he(lu,[["styles",[au]]]),cu=Object.freeze(Object.defineProperty({__proto__:null,default:Cs},Symbol.toStringTag,{value:"Module"})),uu={},du={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},fu=[X("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function pu(e,t){return R(),Y("svg",du,fu)}const Ts=he(uu,[["render",pu]]),hu=Object.freeze(Object.defineProperty({__proto__:null,default:Ts},Symbol.toStringTag,{value:"Module"}));function gu({touchDevice:e}){const t=Z(!1);let n=0;return to("busy:touchDevice",e),to("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function gr(){const e=Vt("busy:touchDevice"),t=Vt("setBusyState");let n=!1;return Nt(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}class mu{constructor(){ve(this,"listeners");this.listeners=[],this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.init()}init(){window.addEventListener("keydown",this.onKeyDown,{capture:!0}),window.addEventListener("keyup",this.onKeyUp,{capture:!0}),window.addEventListener("keypress",this.onKeyPress,{capture:!0})}dispose(){window.removeEventListener("keydown",this.onKeyDown,{capture:!0}),window.removeEventListener("keyup",this.onKeyUp,{capture:!0}),window.removeEventListener("keypress",this.onKeyPress,{capture:!0})}onKeyPress(t){t.stopImmediatePropagation(),t.stopPropagation()}onKeyDown(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyDown)==null?void 0:o.call(n,t)})}onKeyUp(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyUp)==null?void 0:o.call(n,t)})}addListener(t){this.listeners.push(t)}removeListener(t){const n=this.listeners.indexOf(t);n!==-1&&this.listeners.splice(n,1)}}function vu(){const e=new mu;return Nt(()=>e.dispose()),to("keyController",e),e}function fo(e){const t=Vt("keyController");Qe(()=>t.addListener(e)),Nt(()=>t.removeListener(e))}const bu=["aria-hidden"],yu=["onClick"],_u={class:"inline-flex items-center justify-center w-full h-full px-4 rounded-full group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200"},wu={class:"whitespace-nowrap"},mr=ke({__name:"ButtonDropdown",props:tn({label:{},title:{},items:{},disabled:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:tn(["select"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,r=xn(e,"modelValue"),i=Z(null),s=Z(!1),l=Z(null),a=Z(!1),c=Z(!1),u=Z(!1);fo({onKeyDown:w});const f=gr();function h(){if(!n.items.length){s.value=!1;return}s.value=!s.value,f(s.value),s.value?(S(),gt(()=>setTimeout(()=>{var m,z;(z=(m=l.value)==null?void 0:m.children[r.value])==null||z.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),L(i.value)):setTimeout(K,250)}function S(){const m=i.value;if(m){const z=m.getBoundingClientRect(),b=z.x+z.width/2;a.value=z.y>window.innerHeight/2,c.value=b<window.innerWidth/3,u.value=b>window.innerWidth/3*2}}function _(m,z){m!=r.value&&(r.value=m,o("select",m,z)),h()}function w(m){s.value&&m.key==="Escape"&&(h(),m.preventDefault())}let $=[];function L(m){const z=window.getComputedStyle(m).zIndex,b=m.style.zIndex;(!z||!(+z>0))&&((!m.parentElement||m.parentElement.childElementCount>1)&&(m.style.zIndex="1",$.push({el:m,zIndex:b})),m.parentElement&&L(m.parentElement))}function K(){$.forEach(({el:m,zIndex:z})=>{m.style.zIndex=z??""}),$=[]}let C=!1;function N(){C||(C=!0,f(!0,{desktopOnly:!0}))}function x(){C&&(C=!1,f(!1,{desktopOnly:!0}))}return(m,z)=>(R(),Y("div",{ref_key:"root",ref:i,class:"select-none relative inline-flex"},[s.value?(R(),Y("div",{key:0,class:"fixed-screen bg-transparent",onClick:h})):Ee("",!0),m.items.length?(R(),me(nn,{key:1,name:"slide-fade","enter-from-class":"scale-y-90 opacity-0 pointer-events-none","leave-to-class":"scale-y-90 opacity-0 pointer-events-none"},{default:ie(()=>[s.value?(R(),Y("ul",{key:0,ref_key:"list",ref:l,"aria-hidden":!s.value,class:Ie(["scrollbar-sm duration-150 delay-50 absolute w-40 max-h-[70vh] list-none bg-stone-800 bg-opacity-80 backdrop-blur-md rounded-lg overflow-auto",{"origin-bottom bottom-full -translate-y-1.5":a.value,"origin-top top-full translate-y-1.5":!a.value,"left-1/2 -ml-20 text-center":!c.value&&!u.value,"right-0 text-right":u.value}]),onWheelPassive:z[0]||(z[0]=et(()=>{},["stop"]))},[(R(!0),Y(Se,null,mn(m.items,(b,v)=>mt((R(),Y("li",{key:v,tabindex:"-1",class:Ie(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":v===r.value}]),onClick:T=>_(v,T)},[X("div",{class:Ie(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":v>0}])},[xe(m.$slots,"item",{item:b},()=>[Ct(Xe(b),1)])],2)],10,yu)),[[G(rn),30]])),128))],42,bu)):Ee("",!0)]),_:3})):Ee("",!0),mt((R(),Y("button",so({type:"button",tabindex:"-1",class:["w-full h-10 max-h-full rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":m.disabled}]},m.title?{title:m.title}:{},{onClick:et(h,["stop"]),onMouseenter:N,onMouseleave:x}),[X("div",_u,[X("span",wu,Xe(m.label),1),m.items.length?(R(),Y("span",{key:0,class:Ie(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":a.value}]),"aria-hidden":"true"},[Q(Ts)],2)):Ee("",!0)])],16)),[[G(rn),30]])],512))}}),xu=Object.freeze(Object.defineProperty({__proto__:null,default:mr},Symbol.toStringTag,{value:"Module"})),Su={class:"group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200 rounđe-full p-2 w-full h-full inline-flex justify-center items-center"},tt=ke({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=t,r=gr();let i=!1;function s(){i||(i=!0,r(!0,{desktopOnly:!0}))}function l(){i&&(i=!1,r(!1,{desktopOnly:!0}))}function a(c){n.disabled?c.preventDefault():o("click",c)}return(c,u)=>mt((R(),me(fa(c.href?"a":"button"),so(c.href?{href:c.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full flex-shrink-0",{"cursor-default text-stone-400 hover:text-stone-400":c.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!c.disabled,"bg-black bg-opacity-50":!c.transparent}],onClick:et(a,["stop"]),onMouseenter:s,onMouseleave:l}),{default:ie(()=>[X("div",Su,[xe(c.$slots,"default")])]),_:3},16,["class"])),[[G(rn),c.disabled?0:15]])}}),ku=Object.freeze(Object.defineProperty({__proto__:null,default:tt},Symbol.toStringTag,{value:"Module"})),Iu={},Cu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Tu=[X("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)];function Eu(e,t){return R(),Y("svg",Cu,Tu)}const Es=he(Iu,[["render",Eu]]),$u=Object.freeze(Object.defineProperty({__proto__:null,default:Es},Symbol.toStringTag,{value:"Module"})),Pu={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},Mu={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3"},Ou={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},$s=ke({__name:"BottomSheet",props:tn({name:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=xn(e,"modelValue");fo({onKeyDown:o});const n=gr();pe(t,r=>n(r));function o(r){t.value&&r.key==="Escape"&&(t.value=!1,r.preventDefault())}return(r,i)=>(R(),Y("div",{class:Ie(["fixed-screen flex flex-col items-center justify-end select-none",{"!pointer-events-none":!t.value}]),onClick:i[3]||(i[3]=()=>t.value=!1)},[Q(nn,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:ie(()=>[t.value?(R(),Y("div",{key:0,class:"inline-flex flex-col h-[27rem] w-full sm:w-[32rem] max-h-[80vh] bg-stone-800 bg-opacity-90 backdrop-blur-md rounded-t-xl max-w-full overflow-hidden duration-200",onClick:i[1]||(i[1]=et(()=>{},["stop"])),onWheelPassive:i[2]||(i[2]=et(()=>{},["stop"]))},[X("div",Pu,[Q(tt,{transparent:"",onClick:i[0]||(i[0]=()=>t.value=!1)},{default:ie(()=>[Q(Es)]),_:1}),X("div",Mu,Xe(r.name),1),xe(r.$slots,"actions")]),X("div",Ou,[xe(r.$slots,"default")])],32)):Ee("",!0)]),_:3})],2))}}),Lu=Object.freeze(Object.defineProperty({__proto__:null,default:$s},Symbol.toStringTag,{value:"Module"})),Au=["min","max","step"],zu={class:"flex-shrink-0"},vr=he(ke({__name:"InputPercentage",props:tn({min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=xn(e,"modelValue"),n=se({get(){return t.value},set(o){t.value=+o}});return(o,r)=>(R(),Y("div",{class:Ie(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":o.disabled}]),style:Oe({"--percentage":`${(n.value-o.min)/(o.max-o.min)*100}%`})},[mt(X("input",{"onUpdate:modelValue":r[0]||(r[0]=i=>n.value=i),type:"range",min:o.min,max:o.max,step:o.step??1,class:"flex-grow"},null,8,Au),[[Rc,n.value]]),X("p",zu,[xe(o.$slots,"suffix")])],6))}}),[["styles",[`input[type=range]{--tw-bg-opacity:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to right,#d6d3d1 var(--percentage),#78716c var(--percentage));background-color:rgb(120 113 108/var(--tw-bg-opacity));border-radius:2px;border-style:none;cursor:pointer;height:6px;opacity:.9;outline:2px solid transparent;outline-offset:2px}input[type=range]::-webkit-slider-thumb{--tw-border-opacity:1;--tw-bg-opacity:1;-webkit-appearance:none!important;background-color:rgb(214 211 209/var(--tw-bg-opacity));border-color:rgb(214 211 209/var(--tw-border-opacity));border-radius:2px;border-style:solid;border-width:2px;cursor:pointer;height:28px;transition-duration:.2s;width:16px}input[type=range]:hover{opacity:1}
|
|
22
|
+
`]]]),ju=Object.freeze(Object.defineProperty({__proto__:null,default:vr},Symbol.toStringTag,{value:"Module"})),Ru=["onClick","onKeyup"],po=ke({__name:"InputSelect",props:tn({items:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=xn(e,"modelValue"),o=Z(null),r=Z({width:"",left:""});Qe(()=>{let s=!1;pe(n,l=>{var c;const a=(c=o.value)==null?void 0:c.children[l+1];a&&(r.value={width:a.offsetWidth+"px",left:a.offsetLeft+"px"},a.scrollIntoView({behavior:s?"smooth":"auto",block:"center",inline:"center"}),s=!0)},{immediate:!0})});function i(s){n.value=s}return(s,l)=>(R(),Y("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[X("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Oe(r.value)},null,4),(R(!0),Y(Se,null,mn(t.items,(a,c)=>mt((R(),Y("div",{key:c,tabindex:"0",class:Ie(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.value,"text-stone-400":c!=n.value}]),onClick:()=>i(c),onKeyup:[ds(()=>i(c),["enter"]),ds(()=>i(c),["space"])]},[Ct(Xe(a),1)],42,Ru)),[[G(rn),30]])),128))],512))}}),Du=Object.freeze(Object.defineProperty({__proto__:null,default:po},Symbol.toStringTag,{value:"Module"})),Bu={class:"flex items-center mb-8 last:mb-0"},Nu={class:"flex-grow overflow-hidden"},sn=ke({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(R(),Y("div",Bu,[X("div",{class:Ie(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Xe(t.label),3),X("div",Nu,[xe(t.$slots,"default")])]))}}),Vu=Object.freeze(Object.defineProperty({__proto__:null,default:sn},Symbol.toStringTag,{value:"Module"})),Fu={},Hu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Wu=[X("path",{fill:"currentColor",d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"},null,-1)];function Ku(e,t){return R(),Y("svg",Hu,Wu)}const Ps=he(Fu,[["render",Ku]]),qu=Object.freeze(Object.defineProperty({__proto__:null,default:Ps},Symbol.toStringTag,{value:"Module"})),Uu={},Yu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Xu=[X("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),X("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Zu(e,t){return R(),Y("svg",Yu,Xu)}const Ms=he(Uu,[["render",Zu]]),Gu=Object.freeze(Object.defineProperty({__proto__:null,default:Ms},Symbol.toStringTag,{value:"Module"}));function Qu(e){if(e)try{return JSON.parse(e)}catch{return}}function Ju(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var ut=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(ut||{}),Lt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Lt||{});const ed=.25,td=5,nd=.25,Tn=.25,En=5,od=.05,rd=0,id=4;function sd(e){var C,N,x,m,z,b;const{titleName:t,isWebtoon:n}=e,o=se(()=>t.value?Ju(t.value):location.hostname),r=Z(ld(`tkr:${o.value}`)),i=v=>{r.value=v;const T=`tkr:${o.value}`;!v||!Object.keys(v).length?localStorage.removeItem(T):localStorage.setItem(T,JSON.stringify(v))},s=v=>{if(!r.value){i(v);return}const T={...r.value};Object.entries(v).forEach(([U,V])=>{V===void 0?delete T[U]:T[U]=V}),i(T)},l=Z(((C=r.value)==null?void 0:C.style)??e.defaultStyle??Lt.longStrip),a=Z(((N=r.value)==null?void 0:N.direction)??e.defaultDirection??ut.vertical),c=Z((x=r.value)==null?void 0:x.gap),u=Z(((m=r.value)==null?void 0:m.speed)??1),f=Z(((z=r.value)==null?void 0:z.zoom)??1),h=Z(((b=r.value)==null?void 0:b.breakFirst)??!1),S=se({get(){return n.value?Lt.longStrip:l.value},set:v=>{l.value=v,s({style:v}),v!==Lt.longStrip&&a.value===ut.vertical&&(_.value=ut.rtl)}}),_=se({get:()=>n.value?ut.vertical:a.value,set:v=>{a.value=v,s({direction:v})}}),w=se({get:()=>c.value!==void 0?c.value:e.maybeWebtoon.value||S.value!==Lt.longStrip?0:1,set(v){c.value=v,s({gap:v})}}),$=se({get:()=>u.value,set(v){u.value=v,s({speed:v===1?void 0:v})}}),L=se({get:()=>f.value,set(v){f.value=v,s({zoom:v===1?void 0:v})}}),K=se({get:()=>h.value,set(v){h.value=v,s({breakFirst:v?!0:void 0})}});return{direction:_,style:S,gap:w,speed:$,zoom:L,isLongStrip:se(()=>S.value===Lt.longStrip),isDouble:se(()=>S.value===Lt.double),isRTL:se(()=>_.value===ut.rtl),isVertical:se(()=>_.value===ut.vertical),breakFirst:K}}function ld(e){const t=localStorage.getItem(e),n=Qu(t),o={};return n?(n.style!==void 0&&Object.values(Lt).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(ut).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=rd&&n.gap<=id&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=Tn&&n.speed<=En&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=Tn&&n.zoom<=En&&(o.zoom=n.zoom),n.breakFirst===!0&&(o.breakFirst=!0),Object.keys(o).length?o:void 0):o}const Os=ke({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=e,o=t,r=Z(!1),i=se(()=>n.name??location.hostname);fo({onKeyUp:a=>{a.key==="s"&&!a.metaKey&&!a.ctrlKey&&(r.value=!r.value)}});function s(a){o("update:zoom",Math.round(a)/100)}function l(){r.value=!1,o("help")}return(a,c)=>(R(),Y(Se,null,[Q(tt,{title:"Reader settings (S)",disabled:a.disabled,onClick:c[0]||(c[0]=()=>r.value=!0)},{default:ie(()=>[Q(Ms)]),_:1},8,["disabled"]),Q($s,{modelValue:r.value,"onUpdate:modelValue":c[5]||(c[5]=u=>r.value=u),name:i.value},{actions:ie(()=>[Q(tt,{transparent:"",onClick:l},{default:ie(()=>[Q(Ps)]),_:1})]),default:ie(()=>[Q(sn,{label:"Style"},{default:ie(()=>[Q(po,{"model-value":a.readerStyle,items:a.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":c[1]||(c[1]=u=>o("update:reader-style",u))},null,8,["model-value","items"])]),_:1}),Q(sn,{label:"Direction"},{default:ie(()=>[Q(po,{"model-value":a.direction,items:a.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":c[2]||(c[2]=u=>o("update:direction",u))},null,8,["model-value","items"])]),_:1}),Q(sn,{label:"Gap"},{default:ie(()=>[Q(po,{"model-value":a.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":c[3]||(c[3]=u=>o("update:gap",u))},null,8,["model-value"])]),_:1}),Q(sn,{label:"Speed"},{default:ie(()=>[Q(vr,{"model-value":a.speed,min:G(ed),max:G(td),step:G(nd),suffix:"x","onUpdate:modelValue":c[4]||(c[4]=u=>o("update:speed",u))},{suffix:ie(()=>[Ct(Xe(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),Q(sn,{label:"Zoom"},{default:ie(()=>[Q(vr,{"model-value":Math.ceil(a.zoom*100),min:G(Tn)*100,max:G(En)*100,step:G(od)*100,"onUpdate:modelValue":s},{suffix:ie(()=>[Ct(Xe(Math.ceil(a.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64))}}),ad=Object.freeze(Object.defineProperty({__proto__:null,default:Os},Symbol.toStringTag,{value:"Module"})),cd={},ud={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},dd=[X("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[X("circle",{cx:"14",cy:"14",r:"12"}),X("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function fd(e,t){return R(),Y("svg",ud,dd)}const Ls=he(cd,[["render",fd]]),pd=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),hd={key:0,class:"h-9 rounded-full inline-flex justify-between items-center bg-black bg-opacity-50 gap-1 py-2 px-3 pointer-events-auto hover:bg-stone-900 hover:bg-opacity-50 duration-200",title:"Reset zoom"},gd={class:"block w-4 h-4"},md={class:"w-12"},As=ke({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>t.zoom!==1?(R(),Y("button",hd,[X("div",gd,[Q(Ls)]),X("div",md,Xe(Math.ceil(t.zoom*100))+"%",1)])):Ee("",!0)}}),vd=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"})),bd={},yd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},_d=[X("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function wd(e,t){return R(),Y("svg",yd,_d)}const zs=he(bd,[["render",wd]]),xd=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),js=ke({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=Z(typeof n!="string"||+n!==t.direction),r=Ae(()=>o.value=!1,1250);pe(()=>t.direction,()=>{i(),o.value=!0,r()}),Qe(()=>{i(),r();let s;const l=ws();pe(l,a=>{a!=="visible"?s=Date.now():Date.now()-s>3e4&&(o.value=!0,r())})});function i(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,l)=>(R(),me(nn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[o.value?(R(),Y("div",{key:0,class:Ie(["fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none w-28 h-24 p-4 bg-black bg-opacity-40 rounded-2xl duration-500",{"rotate-90":s.direction===G(ut).vertical,"rotate-180":s.direction===G(ut).rtl}])},[Q(zs)],2)):Ee("",!0)]),_:1}))}}),Sd=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),kd=X("div",{class:"fixed-screen bg-black bg-opacity-90"},null,-1),Rs=ke({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,r=Z(null),i=Z([]);Qe(async()=>{const c=pr(r),u=Ae(()=>{s({width:c.width.value,height:c.height.value})},50);u(),pe(c.width,u),pe(c.height,u)});function s(c){var h;const u=(h=r.value)==null?void 0:h.parentElement;if(!u)return;const f=Array.from(u.querySelectorAll("#controls [title]"));f.length&&(i.value=l(f,c))}function l(c,u){const f=[],h=[];let S=0,_=0;const w=50,$=25;c.forEach(x=>{var T;const m=(T=x.getAttribute("title"))==null?void 0:T.trim(),z=x.getBoundingClientRect();if(!m||!z.height||!z.width)return;const b=Math.ceil((z.top-10)/w),v=Math.ceil((z.left-10)/w);h.push({isTour:!1,title:m,rect:z,fromX:v,toX:Math.max(v+1,Math.ceil((z.right+10)/w)),fromY:b,toY:Math.max(b+1,Math.ceil((z.bottom+10)/w))})}),h.forEach(x=>{for(let m=x.fromY;m<x.toY;m++){f[m]??(f[m]=[]);for(let z=x.fromX;z<x.toX;z++)f[m][z]=x;x.toY>S+1&&(S=x.toY-1),x.toX>_+1&&(_=x.toX-1)}});let L=_/2;h.forEach(x=>{x.isAlignRight=x.fromX>L});const K=(x,m)=>{f[m]??(f[m]=[]);const z=m>=x.toY;if(x.isTour)for(let b=x.fromX;b<x.toX;b++)delete f[x.fromY][b],x.fromY=m,x.toY=m+(z?1:-1),f[m][b]=x;else{const b=x.isAlignRight?x.fromX-3:x.fromX,v=b+3;x.helpItem={fromX:b,toX:v,fromY:m,toY:m+1,isTour:!0,isAlignRight:x.isAlignRight};for(let T=b;T<v;T++)f[m][T]=x.helpItem}},C=(x,m)=>{if(m>S||m<0)return!1;const z=m>=x.toY,b=f[m];if(!b)return K(x,m),!0;const v=b[x.fromX];if(v&&!v.isTour)return!1;if(v&&v.isTour)return C(v,z?m+1:m-1)?(K(x,m),!0):!1;if(!v){const T=x.isAlignRight?-1:1;return b[x.fromX+T]||b[x.fromX+T*2]?C(x,z?m+1:m-1):(K(x,m),!0)}return!1};h.forEach(x=>{if(!C(x,x.toY)){if(x.isAlignRight){const m=f[x.fromY]??[];if(!m.slice(x.fromX-3,x.fromX).filter(Boolean).length){const b=x.fromX-3,v=x.fromX;x.helpItem={isTour:!0,isAlignRight:!0,fromX:b,toX:v,fromY:x.fromY,toY:x.toY};for(let T=x.fromX-3;T<x.fromX;T++)m[T]=x.helpItem;return}}C(x,x.fromY-1)}});const N=[];return h.forEach(x=>{const{title:m,helpItem:z,rect:b,isAlignRight:v,fromX:T,fromY:U,toY:V}=x;if(!m||!z||!b)return;const oe=z.fromY>=V,P=z.toY<=U;N.push({title:a(m),style:{top:oe?`${b.bottom+(z.fromY-V)*w+$}px`:P?void 0:`${b.top+8}px`,bottom:P?`${u.height-b.top+(z.toY-U)*w+$}px`:void 0,left:v?void 0:`${b.left}px`,right:v?oe?`${u.width-b.right}px`:`${u.width-b.right+b.width+$}px`:void 0},arrowStyle:{width:P||oe?"2px":`${Math.abs(z.toX-T)*w+$-5}px`,height:P||oe?`${(oe?z.fromY-V:U-z.toY)*w+$}px`:"2px",top:oe?`${b.bottom}px`:P?void 0:`${b.top+20}px`,bottom:P?`${u.height-b.top}px`:void 0,left:v?void 0:`${b.left+b.width/2}px`,right:v?oe?`${u.width-b.right+b.width/2}px`:`${u.width-b.right+b.width}px`:void 0}})}),N}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(R(),Y(Se,null,[kd,X("div",{ref_key:"root",ref:r,class:"fixed-screen z-20 overscroll-contain select-none",onClick:u[0]||(u[0]=et(f=>o("hide"),["stop"]))},[(R(!0),Y(Se,null,mn(i.value,f=>(R(),Y(Se,{key:f.title},[X("div",{class:"absolute",style:Oe(f.style)},Xe(f.title),5),X("div",{class:"absolute bg-stone-300 rounded-lg",style:Oe(f.arrowStyle)},null,4)],64))),128))],512)],64))}}),Id=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"})),Ds=ke({__name:"PageNav",props:tn({disabled:{type:Boolean},pages:{},totalImgs:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=xn(e,"modelValue"),o=se(()=>t.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),r=se(()=>{const a=n.value,c=t.pages.findIndex(u=>u.some(({index:f})=>f===a));return c===-1?t.pages.length-1:c}),i=se(()=>t.pages.length?`${o.value[r.value]}/${t.totalImgs}`:"--");function s(a){const c=t.pages[a][0].index;l(c)}function l(a){n.value=a}return(a,c)=>(R(),me(mr,{"model-value":r.value,label:i.value,title:"Current page",items:o.value,disabled:a.disabled,"onUpdate:modelValue":s},null,8,["model-value","label","items","disabled"]))}}),Cd=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),Td={},Ed={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},$d=[X("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),X("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function Pd(e,t){return R(),Y("svg",Ed,$d)}const br=he(Td,[["render",Pd]]),Md=Object.freeze(Object.defineProperty({__proto__:null,default:br},Symbol.toStringTag,{value:"Module"})),Od={},Ld={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Ad=[X("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function zd(e,t){return R(),Y("svg",Ld,Ad)}const yr=he(Od,[["render",zd]]),jd=Object.freeze(Object.defineProperty({__proto__:null,default:yr},Symbol.toStringTag,{value:"Module"})),Bs=he(ke({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=Z(0);return pe(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>n.value?(R(),Y("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(R(),me(yr,{key:0})):(R(),me(br,{key:1}))])):Ee("",!0)}}),[["styles",[`.animate-pause-fade{animation:pause-fade .4s linear forwards;transform-origin:center}@keyframes pause-fade{0%{opacity:0;transform:scale(.3)}10%{opacity:1;transform:scale(.35)}55%{opacity:1;transform:scale(.65)}to{opacity:0;transform:scale(1)}}
|
|
23
|
+
`]]]),Rd=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"})),Ns=ke({__name:"GesturesContainer",props:{zoom:{},pageIndex:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},emits:["update:zoom","dragEnd","click"],setup(e,{emit:t}){const n=e,o=t,r=Z(null),i=Z(Math.min(En,Math.max(Tn,n.zoom))),s=Z(!1),l=Z(!1),a=Z(!1);pe(()=>n.zoom,P=>oe(P)),Qe(()=>{n.touchDevice?Ot(r,"touchstart",$):(Ot(r,"mousedown",h),Ot(window,"wheel",N))}),fo({onKeyDown:P=>{var ne;if(!n.busy&&((ne=r.value)==null||ne.focus(),!(P.key==="Meta"||P.key==="Control")&&(P.ctrlKey||P.metaKey)))switch(P.key){case"0":oe(1);break;case"-":oe(i.value-.2),P.preventDefault();break;case"=":case"+":oe(i.value+.2),P.preventDefault();break}}});function c(P){l.value!==P&&(l.value=P,P?n.playController.pause():(o("dragEnd"),n.playController.resume()))}let u={x:0,y:0},f={x:0,y:0};function h(P){P.button===0&&(u={x:P.clientX,y:P.clientY},f={x:r.value.scrollLeft,y:r.value.scrollTop},window.addEventListener("mousemove",S),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",S),setTimeout(()=>c(!1))},{once:!0}),P.preventDefault(),P.stopPropagation())}function S(P){c(!0);const ne=P.clientX-u.x,q=P.clientY-u.y,O=r.value;O.scrollLeft=f.x-ne,O.scrollTop=f.y-q}let _=!1,w={distance:0,zoom:i.value,x:0,y:0};function $(P){n.busy||(_=P.touches.length===2,_&&(c(!0),P.stopPropagation(),P.preventDefault(),w={distance:x(P),zoom:i.value,x:(P.touches[0].clientX+P.touches[1].clientX)/2,y:(P.touches[0].clientY+P.touches[1].clientY)/2}),(_||n.playController.isPlaying.value&&n.longStrip)&&(window.addEventListener("touchmove",K),window.addEventListener("touchend",L,{once:!0})))}function L(){if(window.removeEventListener("touchmove",K),_){c(!1),_=!1;return}if(!l.value)return;const P=Ae(()=>{c(!1),r.value.removeEventListener("scroll",q)},200),ne=setTimeout(P,200);r.value.addEventListener("scroll",q);function q(){clearTimeout(ne),P()}}function K(P){if(c(!0),_){P.stopPropagation(),P.preventDefault();const q=x(P)/w.distance;oe(Math.ceil(q*w.zoom*100)/100,w)}}const C=Ae(()=>s.value=!1,100);function N(P){if(!n.busy){if(P.ctrlKey||P.metaKey){P.stopPropagation(),P.preventDefault();const ne=Math.ceil((i.value+P.deltaY*-.01)*100)/100;oe(ne,{x:P.clientX,y:P.clientY});return}n.horizontal&&(s.value||(s.value=!0),C(),P.deltaY&&(r.value&&(r.value.scrollLeft+=P.deltaY*(n.rtl?-1:1)),P.stopPropagation()))}}function x(P){return Math.hypot(P.touches[0].clientX-P.touches[1].clientX,P.touches[0].clientY-P.touches[1].clientY)}let m,z;function b(P){if(l.value||a.value)return;if(!n.touchDevice){o("click",P);return}const ne={x:P.clientX,y:P.clientY},q=m&&Math.abs(ne.x-m.x)<30&&Math.abs(ne.y-m.y)<30;m??(m=ne),q&&(m=void 0,v(ne)),z&&(clearTimeout(z),z=void 0),!q&&(z=setTimeout(()=>{!l.value&&!a.value&&o("click",P),z=void 0,m=void 0},250))}function v(P){const ne=i.value===1?2:1;oe(ne,P)}let T;const U=Ae(()=>{a.value=!1,T=void 0},150);function V(){if(!a.value){const P=r.value;if(!P)return;const ne=P.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;ne&&(T={el:ne,rect:ne.getBoundingClientRect()},a.value=!0)}if(T)return U(),T}async function oe(P,ne){const q=r.value,O=Math.min(En,Math.max(Tn,P));if(!q||i.value===O)return;const F=V();if(!F)return;const ce=(ne==null?void 0:ne.x)??q.clientWidth/2,fe=(ne==null?void 0:ne.y)??q.clientHeight/2;i.value=O,o("update:zoom",O),await gt();const{el:be,rect:ye}=F,ze=be.offsetWidth/ye.width,nt=be.offsetHeight/ye.height;q.scrollLeft=be.offsetLeft-ye.left*ze+ce*(ze-1),q.scrollTop=be.offsetTop-ye.top*nt+fe*(nt-1)}return(P,ne)=>(R(),Y("div",{ref_key:"root",ref:r,tabindex:"0",class:Ie(["w-full h-full overflow-auto scrollbar-none overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!P.longStrip&&(l.value||s.value||a.value),"cursor-grabbing":l.value,"overflow-hidden":a.value}]),style:Oe({"font-size":`${i.value}px`}),onClick:et(b,["stop"])},[xe(P.$slots,"default")],6))}}),Dd=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"})),Vs=ke({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=t,o=Z(null),r=Z(!1);return Qe(async()=>{await gt();let i=!1;hr(o,s=>{r.value=s.some(l=>l.isIntersecting),r.value&&!i&&n("visible")})}),(i,s)=>(R(),Y("div",{ref_key:"root",ref:o},[xe(i.$slots,"default",{visible:r.value})],512))}}),Bd=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"})),Nd=`.loading-indicator{display:inline-block;height:80px;position:relative;width:80px}.loading-indicator:after,.loading-indicator:before{animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite;border:4px solid #b85c38;border-radius:9999px;content:"";display:block;opacity:1;position:absolute}.loading-indicator:after{animation-delay:-.5s}@keyframes lds-ripple{0%{height:0;left:36px;opacity:0;top:36px;width:0}4.9%{height:0;left:36px;opacity:0;top:36px;width:0}5%{height:0;left:36px;opacity:1;top:36px;width:0}to{height:72px;left:0;opacity:0;top:0;width:72px}}
|
|
24
|
+
`,Vd={},Fd={class:"loading-indicator"};function Hd(e,t){return R(),Y("div",Fd)}const _r=he(Vd,[["render",Hd],["styles",[Nd]]]),Wd=Object.freeze(Object.defineProperty({__proto__:null,default:_r},Symbol.toStringTag,{value:"Module"}));function Kd({pageIndex:e,isLongStrip:t}){let n=e.value,o=e.value+3;const r=Z(n),i=Z(o),s=Ae(l,50);pe(e,a=>{n>a&&(n=a)});function l(){r.value!==n&&(r.value=n),i.value!==o&&(i.value=o)}return{min:r,max:i,onPageVisible(a){o<a&&(o=a),s()},onScroll(){t.value?l():s()}}}const qd={key:0,class:"page--loading"},Ud=["src"],Yd=["src"],Xd=["data-index"],Fs=he(ke({__name:"ReaderBody",props:{pageIndex:{},direction:{},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isRTL:{type:Boolean},pages:{},totalImgs:{},gap:{},zoom:{},spaceTop:{},touchDevice:{type:Boolean},playController:{},busy:{type:Boolean},idle:{type:Boolean},hasNext:{type:Boolean}},emits:["update:zoom","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=t,r=Z(null),i=se(()=>{var _;return(_=r.value)==null?void 0:_.$el}),s=Z(null),l=pr(i),a=se(()=>{const{width:_,height:w}=l,$=n.isLongStrip?n.isVertical?_.value:w.value:Math.min(_.value,w.value);return Math.min(4,Math.max(1,Math.ceil($/400-1)))*n.gap}),c=Kd({pageIndex:se(()=>n.pageIndex),isLongStrip:se(()=>n.isLongStrip)}),u=se(()=>{const{width:{value:_},height:{value:w}}=l;return n.pages.map($=>{var v;const L=$.some(T=>{var U;return(U=T.img)==null?void 0:U.isLoading}),K=$.map(T=>T.index),C={isLoading:L,indexes:K};if(L||K[K.length-1]<c.min.value-1||K[0]>c.max.value+2)return C;const N=$.map(({img:T})=>T).filter(Boolean);if(!N.length||(C.srcs=N.map(({src:T})=>T),N.every(T=>T.hasError)))return C;const m=(v=N.find(T=>!T.hasError))==null?void 0:v.size,z=N.reduce((T,U)=>{var V;return T+(((V=U.size)==null?void 0:V.width)??m.width)},0),b=N.reduce((T,U)=>{var V;return T+(((V=U.size)==null?void 0:V.height)??m.height)},0)/N.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&_/z<w/b?(C.width=Math.min(_,z),C.height=b*C.width/z):C.height=Math.min(w,b),C})}),f=se(()=>{const _=n.isVertical?"width":"height";return u.value.map(w=>w[_]).filter(Boolean).sort((w,$)=>$-w)[0]});function h({indexes:_}){const w=_[_.length-1];w!==void 0&&c.onPageVisible(w)}function S(_){if(!n.isLongStrip){const w=n.isVertical?l.height.value:l.width.value,L=(n.isVertical?_.clientY:n.isRTL?w-_.clientX:_.clientX)/w;if(L<=.2&&n.pageIndex>0){o("prev");return}else if(L>=.8){o("next");return}}o("click")}return(_,w)=>(R(),me(Ns,{ref_key:"root",ref:r,zoom:_.zoom,"page-index":_.pageIndex,class:Ie(["reader-body",{"reader-body--long-strip":_.isLongStrip,"reader-body--pages":!_.isLongStrip,"reader-body--vertical":_.isVertical,"reader-body--rtl":_.isRTL,"reader-body--idle":_.idle,"reader-body--first":!_.isLongStrip&&_.pageIndex===0,"reader-body--last":!_.isLongStrip&&_.pageIndex===_.totalImgs&&!_.hasNext,"reader-body--1page":u.value.length===1}]),"play-controller":_.playController,horizontal:!_.isVertical,rtl:_.isRTL,"touch-device":_.touchDevice,busy:_.busy,"long-strip":_.isLongStrip,style:Oe({"--gap":`${a.value}em`,"--space-top":(_.spaceTop||0)+"px","--screen-width-em":G(l).width.value+"em","--screen-height-em":G(l).height.value+"em",..._.isLongStrip?{"--max-size-em":f.value+"em"}:{}}),"onUpdate:zoom":w[0]||(w[0]=$=>o("update:zoom",$)),onDragEnd:w[1]||(w[1]=()=>o("dragEnd")),onClick:S,onScroll:G(c).onScroll},{default:ie(()=>[(R(!0),Y(Se,null,mn(u.value,$=>(R(),me(Vs,so({key:_.direction+"_"+$.indexes[0],"data-index":$.indexes[0]},$.indexes.length>1?{"data-index2":$.indexes[1]}:{},{onVisible:()=>h($)}),{default:ie(({visible:L})=>{var K;return[!((K=$.srcs)!=null&&K.length)||$.isLoading?(R(),Y("div",qd,[mt(Q(_r,null,null,512),[[ns,L]])])):$.srcs.length==1?(R(),Y("img",{key:1,src:$.srcs[0],style:Oe({height:$.height!==void 0?$.height+"em":""})},null,12,Ud)):(R(),Y("div",{key:2,class:Ie(["page--double",{"flex-row-reverse":_.isRTL}]),style:Oe({width:$.width!==void 0?$.width+"em":"",height:$.height!==void 0?$.height+"em":""})},[(R(!0),Y(Se,null,mn($.srcs,C=>(R(),Y("div",{key:C},[X("img",{src:C},null,8,Yd)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),X("div",{ref_key:"autoNextEl",ref:s,class:"last","data-index":_.totalImgs},[xe(_.$slots,"end")],8,Xd)]),_:3},8,["zoom","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style","onScroll"]))}}),[["styles",[`.reader-body{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width:1024px){.reader-body{transform:none}}.reader-body--rtl{flex-direction:row-reverse}.reader-body.reader-body--vertical>div{padding:calc(var(--gap)/2) 0}.reader-body:not(.reader-body--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.reader-body:not(.reader-body--vertical)>div{padding:0 calc(var(--gap)/2)}.reader-body--long-strip.reader-body--vertical.reader-body--1page>div:first-child{min-height:100vh}.reader-body--long-strip.reader-body--vertical>div:first-child{margin-top:var(--space-top);padding-top:0}.reader-body--long-strip.reader-body--vertical>div:last-child{padding-bottom:0}.reader-body--long-strip.reader-body--vertical>div{width:var(--max-size-em)}.reader-body--long-strip.reader-body--vertical .page--loading{height:75vh;max-width:100%;width:100vw}.reader-body--long-strip.reader-body--vertical .last{height:100vh}.reader-body--long-strip:not(.reader-body--vertical).reader-body--1page>div:first-child{min-width:100vw}.reader-body--long-strip:not(.reader-body--vertical)>div{align-items:center;display:flex;height:var(--max-size-em)}.reader-body--long-strip:not(.reader-body--vertical) .page--loading{height:100vh;max-height:100%;max-width:100vw;width:680px}.reader-body--long-strip:not(.reader-body--vertical) .last{width:100vw}.reader-body--long-strip>div>img{flex-shrink:0;margin:auto}.reader-body--pages:after,.reader-body--pages:before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.reader-body--pages.reader-body--first:before,.reader-body--pages.reader-body--last:after{cursor:default}.reader-body--pages.reader-body--idle:after,.reader-body--pages.reader-body--idle:before{cursor:none}.reader-body--pages>div{align-items:center;display:grid;justify-content:center;min-height:100vh;min-width:100vw;scroll-snap-align:center}.reader-body--pages.reader-body--vertical{--tw-scroll-snap-strictness:mandatory;scroll-snap-type:y var(--tw-scroll-snap-strictness)}.reader-body--pages.reader-body--vertical:after,.reader-body--pages.reader-body--vertical:before{height:20vw;left:0;right:0}.reader-body--pages.reader-body--vertical:before{top:0}.reader-body--pages.reader-body--vertical:after{bottom:0}.reader-body--pages.reader-body--vertical>div{width:var(--screen-width-em)}.reader-body--pages:not(.reader-body--vertical){--tw-scroll-snap-strictness:mandatory;scroll-snap-type:x var(--tw-scroll-snap-strictness)}.reader-body--pages:not(.reader-body--vertical).reader-body--rtl:before{right:0}.reader-body--pages:not(.reader-body--vertical).reader-body--rtl:after,.reader-body--pages:not(.reader-body--vertical):not(.reader-body--rtl):before{left:0}.reader-body--pages:not(.reader-body--vertical):not(.reader-body--rtl):after{right:0}.reader-body--pages:not(.reader-body--vertical):after,.reader-body--pages:not(.reader-body--vertical):before{bottom:0;top:0;width:20vw}.reader-body--pages:not(.reader-body--vertical)>div{height:var(--screen-height-em)}.reader-body--pages .page--loading{height:100vh;width:100vw}.reader-body--pages .page--double{align-items:center;display:flex;gap:var(--gap);justify-content:center}.reader-body--pages .page--double div{display:flex;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body--pages .page--double div img{flex-shrink:0;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.reader-body>div{flex-shrink:0;margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body .page--loading{align-items:center;display:flex;justify-content:center}.reader-body img{--tw-bg-opacity:1!important;background-color:rgb(41 37 36/var(--tw-bg-opacity))!important;-o-object-fit:contain!important;object-fit:contain!important;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}
|
|
25
|
+
`]]]),Zd=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),Gd={key:0,class:"fixed inset-0 h-[101%] flex justify-center items-center z-10 bg-black"},Qd={class:"flex justify-between items-end"},Jd={class:"inline-block children-pointer-events-auto w-1/3"},ef={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},tf={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},nf={class:"inline-block z-20 relative"},Hs=he(ke({__name:"ReaderLayout",props:{loading:{type:Boolean},immediate:{type:Boolean},idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){return(t,n)=>(R(),Y("div",{class:Ie(["reader-layout",{"cursor-none":t.idle,"cursor-default":!t.idle,"bg-black":t.immediate||!t.loading,"opacity-0":!t.immediate&&t.loading,"duration-200 transition-colors":!t.immediate}])},[t.loading&&t.immediate?(R(),Y("div",Gd,[Q(_r)])):Ee("",!0),xe(t.$slots,"default"),X("div",{id:"controls",class:Ie(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear left-0 top-0 w-screen h-screen flex flex-col justify-between p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3",{"opacity-100 z-20":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}])},[X("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:Oe({paddingTop:`${t.spaceTop||0}px`})},[xe(t.$slots,"back"),xe(t.$slots,"exit"),xe(t.$slots,"chapter-nav")],4),X("div",Qd,[X("div",Jd,[xe(t.$slots,"page-nav")]),X("div",ef,[xe(t.$slots,"reset-zoom")]),X("div",tf,[xe(t.$slots,"entry"),X("div",nf,[xe(t.$slots,"settings")]),xe(t.$slots,"full-screen"),xe(t.$slots,"play"),xe(t.$slots,"break-first")])]),X("div",{class:Ie(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[xe(t.$slots,"progress")],2)],2)],2))}}),[["styles",[`.reader-layout{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity));direction:ltr;font-family:Helvetica,sans-serif;font-size:16px;height:100vh;left:0;line-height:24px;overflow:hidden;overscroll-behavior:contain;position:fixed;text-align:left;top:0;width:100vw}
|
|
26
|
+
`]]]),of=Object.freeze(Object.defineProperty({__proto__:null,default:Hs},Symbol.toStringTag,{value:"Module"})),Ws=he(ke({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=t,o=Z(null),r=Z(0),i=Z([]),s=se(()=>i.value[r.value]),l=ms(a,500);Qe(()=>{const f=pr(o),h=Ae(()=>c({width:f.width.value,height:f.height.value}),50);h(),pe(f.width,h),pe(f.height,h)});function a(){r.value>=i.value.length-1?n("hide"):r.value++}function c(f){const h=u();i.value=h.map(({rect:S,text:_})=>{const w=S.top<f.height-S.bottom,$=S.left<f.width-S.right;return{text:_,style:{left:`${S.left}px`,top:`${S.top}px`,width:`${S.width}px`,height:`${S.height}px`},textStyle:{left:$?`${S.left-12}px`:void 0,right:$?void 0:`${f.width-S.left}px`,top:w?`${S.bottom+12}px`:`${S.top+20}px`,textAlign:w?void 0:"right",transform:w?void 0:"translateY(-50%)"}}}),r.value>=i.value.length&&(r.value=i.value.length-1)}function u(){var S;const f=(S=o.value)==null?void 0:S.parentElement;if(!f)return[];const h=[];return f.querySelectorAll("[data-tour]").forEach(_=>{var L;const w=(L=_.getAttribute("data-tour"))==null?void 0:L.trim();if(!(w!=null&&w.length))return;const $=_.getBoundingClientRect();h.push({rect:$,text:w})}),h}return(f,h)=>{var S,_;return R(),Y(Se,null,[X("div",{class:Ie(["fixed-screen bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),X("div",{ref_key:"root",ref:o,class:"tour",onClick:h[0]||(h[0]=et((...w)=>G(l)&&G(l)(...w),["stop"]))},[s.value?(R(),Y("div",{key:r.value,class:"tour__target",style:Oe(s.value.style)},null,4)):Ee("",!0),(R(),Y("div",{key:r.value,class:"tour__text",style:Oe((S=s.value)==null?void 0:S.textStyle)},Xe(((_=s.value)==null?void 0:_.text)??""),5))],512)],64)}}}),[["styles",[`.tour{height:100vh;left:0;overflow:hidden;position:fixed;top:0;width:100vw;z-index:20}.tour__target{--tw-border-opacity:1;animation:tour-target-anim .5s forwards;border-color:rgb(120 113 108/var(--tw-border-opacity));border-radius:9999px;border-width:2px;box-shadow:0 0 0 99999px #000000e6}.tour__target,.tour__text{position:absolute}.tour__text{animation:tour-text-anim 1s forwards,tour-text-bounce .75s ease-in-out infinite alternate;max-width:320px;padding-left:12px;padding-right:12px;transition-duration:1s}@keyframes tour-target-anim{0%{--tw-border-opacity:0;opacity:0;transform:scale(3)}to{--tw-border-opacity:1;opacity:.9;transform:scale(1)}}@keyframes tour-text-anim{0%{opacity:0}to{opacity:1}}@keyframes tour-text-bounce{0%{margin-top:0}to{margin-top:10px}}
|
|
27
|
+
`]]]),rf=Object.freeze(Object.defineProperty({__proto__:null,default:Ws},Symbol.toStringTag,{value:"Module"})),sf={},lf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},af=[X("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function cf(e,t){return R(),Y("svg",lf,af)}const Ks=he(sf,[["render",cf]]),uf=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),df={},ff={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},pf=[X("path",{fill:"currentColor",d:"M6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h6v2H7v12.95l5-2.15l5 2.15V11h2v8.475q0 .55-.45.838t-.95.087L12 18l-5.6 2.4ZM7 5h6h-6Zm11 4q-.425 0-.713-.287T17 8V7h-1q-.425 0-.713-.288T15 6q0-.425.288-.713T16 5h1V4q0-.425.288-.713T18 3q.425 0 .713.288T19 4v1h1q.425 0 .713.288T21 6q0 .425-.288.713T20 7h-1v1q0 .425-.288.713T18 9Z"},null,-1)];function hf(e,t){return R(),Y("svg",ff,pf)}const qs=he(df,[["render",hf]]),gf=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),mf={},vf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},bf=[X("path",{fill:"currentColor",d:"M17.825 8.575q-.2 0-.375-.062t-.325-.213L15.7 6.875q-.3-.3-.3-.712t.3-.688q.275-.3.7-.3t.7.275l.725.725l2.825-2.85q.3-.3.7-.3t.725.3q.275.3.275.725t-.275.7l-3.55 3.55q-.15.15-.325.213t-.375.062ZM6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h7q-.5.75-.75 1.438T13 6q0 1.8 1.137 3.175T17 10.9q.575.075 1 .075t1-.075v8.575q0 .55-.45.838t-.95.087L12 18l-5.6 2.4Z"},null,-1)];function yf(e,t){return R(),Y("svg",vf,bf)}const Us=he(mf,[["render",yf]]),_f=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"})),wf={},xf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Sf=[X("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function kf(e,t){return R(),Y("svg",xf,Sf)}const Ys=he(wf,[["render",kf]]),If=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),Cf={},Tf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ef=[X("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function $f(e,t){return R(),Y("svg",Tf,Ef)}const Xs=he(Cf,[["render",$f]]),Pf=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),Mf={},Of={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56"},Lf=[X("path",{fill:"currentColor",d:"M29.84 49.574h12.398c4.899 0 7.336-2.437 7.336-7.265V13.69c0-4.828-2.437-7.265-7.336-7.265H29.84Zm-16.055 0h12.398V6.426H13.785c-4.875 0-7.36 2.414-7.36 7.265V42.31c0 4.851 2.485 7.265 7.36 7.265"},null,-1)];function Af(e,t){return R(),Y("svg",Of,Lf)}const Zs=he(Mf,[["render",Af]]),zf=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),jf={},Rf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Df=[X("g",{fill:"none"},[X("path",{d:"M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"}),X("path",{fill:"currentColor",d:"M8 3v18H5a2 2 0 0 1-1.995-1.85L3 19V5a2 2 0 0 1 1.85-1.995L5 3zm11 0a2 2 0 0 1 1.995 1.85L21 5v14a2 2 0 0 1-1.85 1.995L19 21h-9V3z"})],-1)];function Bf(e,t){return R(),Y("svg",Rf,Df)}const Gs=he(jf,[["render",Bf]]),Nf=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),Vf={},Ff={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Hf=[X("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function Wf(e,t){return R(),Y("svg",Ff,Hf)}const Qs=he(Vf,[["render",Wf]]),Kf=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),qf={},Uf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Yf=[X("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function Xf(e,t){return R(),Y("svg",Uf,Yf)}const Js=he(qf,[["render",Xf]]),Zf=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),Gf={},Qf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Jf=[X("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function ep(e,t){return R(),Y("svg",Qf,Jf)}const el=he(Gf,[["render",ep]]),tp=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"}));function ln(e=0){return new Promise(t=>setTimeout(t,e))}function tl(e){return new Promise(t=>{const n=o=>{if(!o)return t(void 0);const r=URL.createObjectURL(o);t(r)};e.toBlob(n,"image/jpeg",1)})}async function np(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),r=o.getContext("2d"),i=e.naturalWidth,s=e.naturalHeight;return o.width=i,o.height=s,r==null||r.drawImage(e,0,0,i,s),await tl(o)}function ho(e){const t=e.getAttributeNames(),n=t.indexOf("src");n!==-1&&(t.splice(n,1),t.push("src"));for(const o of t){if(o==="srcset"||o!=="data-url"&&o!=="data-original"&&!o.includes("src"))continue;const r=e.getAttribute(o);if(r)return o==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:r.replace(/(\n|\t)/g," ").trim()}}async function op(e,t){return(t==null?void 0:t.src)===e&&t.naturalWidth&&t.naturalHeight?{width:t.naturalWidth,height:t.naturalHeight}:await new Promise(n=>{const o=new Image,r=setInterval(()=>{const{naturalWidth:i,naturalHeight:s}=o;s&&i&&(n({width:i,height:s}),clearInterval(r))},20);o.onerror=()=>{n(void 0),clearInterval(r)},o.src=e})}class rp{constructor({isIOS:t,onDownloaded:n}){ve(this,"reactiveResults",cn({}));ve(this,"isIOS");ve(this,"tkLoadId",Date.now());ve(this,"isMounted",!0);ve(this,"onDisposeCallbacks",[]);ve(this,"onDownloaded");this.isIOS=t,this.onDownloaded=n}dispose(){this.isMounted=!1,this.onDisposeCallbacks.forEach(t=>t()),this.onDisposeCallbacks=[],this.onDownloaded=()=>{}}async download(t){var l;if(!this.isMounted)return;const n=t.el;let o=t.computedSrc;if(!n&&!o)return;const r=n instanceof HTMLImageElement,i=n instanceof HTMLCanvasElement;if(n){if(n._tkLoadId===this.tkLoadId)return;if(n._tkLoadId=this.tkLoadId,r){const a=()=>this.onImgElLoaded(t,n);n.addEventListener("load",a),this.onDisposeCallbacks.push(()=>{n.removeEventListener("load",a)})}}if(r&&!o){if(o=ho(n),!o)return;n._tkSrc=o}else if(i&&!o){if(o=await tl(n),!o)return;n._tkSrc=o}if(!o||!this.isMounted)return;const s=r&&o.startsWith("blob");s&&!n.complete||((l=this.reactiveResults)[o]??(l[o]={src:o,isLoading:!0,hasError:!1}),s&&this.isIOS&&await ln(300),await this.downloadSrc(t))}async onImgElLoaded(t,n){var r;if(!this.isMounted)return;const o=ho(n);o&&(!o.startsWith("blob")&&t.computedSrc===o||(n._tkSrc=o,(r=this.reactiveResults)[o]??(r[o]={src:o,isLoading:!0,hasError:!1}),this.downloadSrc(t)))}async downloadSrc(t){const n=t.computedSrc;if(!n)return;const o=t.el instanceof HTMLImageElement?t.el:void 0,r=o?await np(o,n):n;if(!r)return;const i=await op(r,o);if(!this.isMounted)return;const s=!!i&&(i.width<200||i.height<200);this.reactiveResults[n]={src:r,size:i,isLoading:!1,hasError:!i,invalid:s},i&&this.onDownloaded(t,i)}}const ip=3;class sp{constructor({getItems:t,getActiveIndex:n,isCompleted:o,callback:r}){ve(this,"isQueueStarted",!1);ve(this,"debouncedEnqueue");ve(this,"concurrentCount",0);ve(this,"getItems");ve(this,"getActiveIndex");ve(this,"isCompleted");ve(this,"callback");ve(this,"activeIndex",0);ve(this,"completedItems");ve(this,"isMounted",!0);this.getItems=t,this.getActiveIndex=n,this.isCompleted=o,this.callback=r,this.debouncedEnqueue=Ae(this.enqueue.bind(this),50)}dispose(){this.isMounted=!1}run(){this.isQueueStarted?this.debouncedEnqueue():(this.isQueueStarted=!0,this.enqueue())}get canEnqueue(){return this.concurrentCount<ip&&this.isMounted}async enqueue(){if(!this.canEnqueue)return;const t=this.getItems();if(t===this.completedItems)return;this.completedItems=void 0;const n=this.resetActiveIndex(),o=Math.max(0,Math.min(t.length-1,n-1)),r=[];for(let i=o;i<t.length;i++){if(!this.canEnqueue)return;r.push(await this.invokeItemCallback(i,i==t.length-1))}for(let i=o-1;i>=0;i--){if(!this.canEnqueue)return;r.push(await this.invokeItemCallback(i,i==0))}this.getItems()===t&&r.filter(Boolean).length==t.length&&(this.completedItems=t)}async invokeItemCallback(t,n){const o=this.getItems()[t];return o?this.isCompleted(o)?!0:(this.concurrentCount++,this.callback(o).then(()=>{this.concurrentCount=Math.max(0,this.concurrentCount-1),n||this.debouncedEnqueue()}),await ln(),!1):!1}resetActiveIndex(){const t=this.getActiveIndex();return t<this.activeIndex&&(this.concurrentCount=Math.max(0,this.concurrentCount-Math.abs(t-this.activeIndex))),this.activeIndex=t,t}}class Ut{constructor(t,n,o){this.src=t,this.el=n,this.parentEl=o}get computedSrc(){var t;return this.src??((t=this.el)==null?void 0:t._tkSrc)}}async function $n(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(r=>{setTimeout(async()=>{const i=await $n(e-1,t,n);r(i)},t)})}function wr(e,t){if(!e||e===document.body)return!0;const n=t.get(e);if(n!==void 0)return n;const o=getComputedStyle(e);if(!(o.display!=="none"&&+(o.opacity??"1")>.1))return t.set(e,!1),!1;const i=wr(e.parentElement,t);return t.set(e,i),i}function nl(e){const t=e.tagName.toLowerCase();if(t==="option"){const n=e.parentElement;if(n.tagName.toLowerCase()!=="select")return;n.value=e.getAttribute("value")||"",n.dispatchEvent(new Event("change"));return}return t==="a"&&e.addEventListener("click",n=>n.preventDefault(),{once:!0}),e.click()}async function lp(e){const{lstrip:t,lstripBtn:n}=e||{};if(!t||!n||!!document.querySelector(t))return!1;const r=await $n(50,30,()=>document.querySelector(n));return r?(nl(r),await ln(),!0):!1}class ap{constructor({spec:t,onChanged:n}){ve(this,"spec");ve(this,"onChanged");ve(this,"rawImages",[]);ve(this,"isMounted",!0);ve(this,"loadRawImagesTs");ve(this,"disconnectObservers");this.spec=t,this.onChanged=n,this.init()}dispose(){var t;this.isMounted=!1,(t=this.disconnectObservers)==null||t.call(this),this.disconnectObservers=void 0,this.onChanged=()=>{}}init(){var s;let t;const n=Ae(()=>{t&&this.loadRawImages(t)},100),o=new MutationObserver(n),r=(s=this.spec)!=null&&s.imgDivs?void 0:(()=>{let l=window.innerWidth;return new ResizeObserver(Ae(()=>{const a=window.innerWidth;if(a!==l){l=a;return}n()},50))})();this.disconnectObservers=async()=>{o.disconnect(),r==null||r.disconnect()};let i=!1;this.loadContentEl(l=>{t!==l&&(t=l,o.disconnect(),r==null||r.disconnect(),o.observe(t,{childList:!0,subtree:!0}),r==null||r.observe(t),i?n():(i=!0,this.loadRawImages(t)))})}setRawImages(t){let n=!1;const o=t.map((r,i)=>{const s=this.rawImages[i];return s&&s.el===r.el&&s.parentEl===r.parentEl&&s.src===r.src?s:(n=!0,r)});(n||!o.length)&&(this.rawImages=o,this.onChanged(t))}async loadContentEl(t){var l;const n=(l=this.spec)==null?void 0:l.content;if(!n){t(document.body);return}const o=await lp(this.spec);let r=await $n(o?100:1,10,()=>document.querySelector(n));if(!r)return;t(r);let i=0;const s=async()=>{if(this.isMounted&&!(r!=null&&r.isConnected)){if(i=0,r=await $n(50,20,()=>{const a=document.querySelector(n);return a!=null&&a.isConnected&&a!==r?a:void 0}),!r)return;t(r)}!this.isMounted||++i>=10||setTimeout(s,200)};setTimeout(s,200)}async loadRawImages(t){var i;if(!this.isMounted||!t.isConnected)return;const n=Date.now();this.loadRawImagesTs=n;const o=(i=this.spec)==null?void 0:i.imgDivs,r=o?await cp(t,o):up(t);this.loadRawImagesTs!==n||!t.isConnected||!this.isMounted||this.setRawImages(r)}}async function cp(e,t){const n=Array.from(e.querySelectorAll(t)),o=new Map;return n.map(i=>{const s=Array.from(i.querySelectorAll("img,canvas"));for(const l of s)if(wr(l,o)){if(l instanceof HTMLCanvasElement){if(ol(l))return new Ut(void 0,l,i)}else if(l instanceof HTMLImageElement&&rl(l)){const a=ho(l);return new Ut(a,l,i)}}return new Ut(void 0,void 0,i)})}function up(e){const t=[],n={},o=new Map;return Array.from(e.querySelectorAll("img,canvas")).forEach(i=>{if(wr(i,o)){if(i instanceof HTMLCanvasElement)ol(i)&&t.push(new Ut(void 0,i));else if(i instanceof HTMLImageElement&&rl(i)){const s=ho(i);if(s){const l=n[s];if(l!==void 0&&l!==-1){t.splice(l,1);return}n[s]=t.length}t.push(new Ut(s,i))}}}),t}function ol(e){return e.isConnected&&e.width>=200&&e.height>=200}function rl(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||t.width>=200&&t.height>=200}function il(e){var t,n;for(let o=0;o<e.length;o++){const r=((t=e[o])==null?void 0:t.el)??((n=e[o])==null?void 0:n.parentEl),i=r==null?void 0:r.getBoundingClientRect();if(!i||i.bottom<=0)continue;const s=i.top;return o+(s>=0?0:-s/i.height)}return 0}function dp(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src)).map(o=>new Ut(void 0,o));return il(n)}function go({rawImages:e,page:t,smooth:n,skipIfVisible:o,isScrollDown:r}){const i=Math.floor(t),s=e[Math.min(e.length-1,i)];if(!s)return;const l=s.el??s.parentEl??document.querySelector(`img[src^="${s.computedSrc}"]`);if(!l)return;const a=l.getBoundingClientRect();if(o&&a.top<=0&&a.top+a.height>0)return;const c=sl(l);if(!c)return;const u=t>=e.length?a.height:r?Math.max(0,a.height-window.innerHeight+100):t%1*a.height;c.el.scrollTo({top:c.top+u,behavior:n?"smooth":"instant"})}function sl(e,t=new Map){if(!e)return;const{offsetTop:n,offsetParent:o}=e;if(o&&n&&t.set(o,Math.max(t.get(o)??0,n)),!(e.scrollHeight-e.clientHeight>=10&&(e===document.documentElement||window.getComputedStyle(e).overflow!=="visible")))return sl(e.parentElement,t);let i=0;return t.forEach((s,l)=>{i+=l===o?s-n:s}),{el:e,top:i}}function fp(e){var S,_,w,$;const t=Z((S=e.raw.value)==null?void 0:S.isWebtoon),n=Z((_=e.raw.value)==null?void 0:_.isWebtoon);let o=!1;const r=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android"),i=(($=(w=e.raw.value)==null?void 0:w.imgs)==null?void 0:$.filter(Boolean))??[];let s=e.isAutoShow!==!1?e.page.value:i.length?dp(i):void 0,l=i.map(L=>new Ut(L)),a;const c=new rp({isIOS:r,onDownloaded(L,K){let C=l.indexOf(L);if(C===-1){const N=L.computedSrc;C=l.findIndex(x=>x.computedSrc===N)}if(C!==-1){if(K&&!t.value&&C>Math.min(1,l.length-3)&&C<Math.max(l.length-2,3)){const N=K.height/K.width,x=N>2||N<.5,m=N>1.6||N<.6;t.value!==x&&(t.value=x),n.value!==m&&(n.value=m)}f()}}}),u=new sp({getItems:()=>l,getActiveIndex:()=>Math.floor(e.page.value),isCompleted:L=>{const K=L.computedSrc;return!!(K&&c.reactiveResults[K])},callback:L=>c.download(L)});if(i.length)u.run();else{let L=!1;a=new ap({spec:e.spec,async onChanged(K){var C;if(l=K,!e.raw.value&&!K.length){e.onError("no_img");return}(C=e.spec)!=null&&C.imgDivs&&!L&&e.isAutoShow!==!1&&e.page.value&&(L=!0,go({rawImages:K,page:e.page.value,skipIfVisible:!0}),await ln(1)),s===void 0&&e.isAutoShow===!1&&(s=il(K)),u.run()}})}Wo(()=>{c.dispose(),u.dispose(),a==null||a.dispose(),o&&go({rawImages:l,page:e.page.value})});function f(){var x,m,z,b;if(o||t.value===void 0||s===void 0)return;const L=Math.max(0,Math.min(s,l.length)),K=l.length-1,C=Math.min(Math.floor(L),K);if(C>=1){const v=(x=l[C])==null?void 0:x.computedSrc;if(!v){e.isAutoShow&&go({rawImages:l,page:C});return}const T=(m=l[C-1])==null?void 0:m.computedSrc;if(T&&!((z=c.reactiveResults[T])!=null&&z.size)||!((b=c.reactiveResults[v])!=null&&b.size))return}if(o)return;o=!0,e.onReady(L);let N=!0;pe(()=>Math.floor(e.page.value),(v,T)=>{go({rawImages:l,page:v,smooth:r,isScrollDown:T===void 0||v>T||l.length===1,skipIfVisible:N&&l.length>1}),N=!1,T??(T=-1),u.run()},{immediate:!0})}return{asyncImgs:se(()=>{Object.values(c.reactiveResults);const L=[];return l.forEach(K=>{const C=K.computedSrc,N=C?c.reactiveResults[C]:void 0;(C&&!(N!=null&&N.invalid)||K.parentEl)&&L.push(N)}),L}),isWebtoon:se(()=>t.value??!1),maybeWebtoon:se(()=>n.value??!1)}}function pp(e,t,n){return se(()=>t.value?ll(e.value,n.value):e.value.map((o,r)=>[{img:o,index:r}]))}function ll(e,t,n=0){if(e.length===0)return[];const o=e.slice(0,2),r=o.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height),i=r||t?[o[0]]:o;return[i.map((s,l)=>({img:s,index:n+l})),...ll(e.slice(i.length),t&&r,n+i.length)]}function hp(e,t){const n=sessionStorage.getItem("tk:page:path");n!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),n&&sessionStorage.removeItem("tk:page"));const o=Z(t&&e>0?Math.max(0,e):+(sessionStorage.getItem("tk:page")??"0")||e);return se({get:()=>o.value,set:r=>{o.value=r,sessionStorage.setItem("tk:page",r+"")}})}function gp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const xr=40;function mp({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:i,spaceTop:s,scrollEl:l,isWebtoon:a,interferePlayer:c,onChangedPage:u,onInitialized:f,onFinished:h}){let S=!1,_=!1,w=!1,$;const L=Ae(v,300),K=ms(()=>{v(),L()},300),C=Ae(m,50);async function N(){z(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function x(){var O;_=!0,f(),T(),(O=l.value)==null||O.addEventListener("scroll",K),setTimeout(()=>{const{width:F,height:ce}=nu();pe(F,()=>{r.value&&C()}),pe(ce,()=>{r.value||C()}),pe(n,m),pe(t,m)},300)}async function m(){if(!_||S)return;S=!0,await gt();const O=e.value;if(V()===O){S=!1;return}z(O)}function z(O,{smooth:F,ensureLastImgVisibility:ce=!1}={smooth:!1}){const fe=l.value;if(!fe)return;S=!0;const be=async()=>{await gt(),S=!1,_||x()},ye=Math.floor(O),ze=fe.querySelector(`[data-index="${ye}"],[data-index2="${ye}"]`);if(!ze){be();return}c(async()=>{await b(fe,!o.value&&F,async()=>{await q(fe,ze,{smooth:F,page:O,ensureLastImgVisibility:ce})}),await be()})}async function b(O,F,ce){F&&O.style.setProperty("scroll-snap-type","none"),await ce(),F&&O.style.removeProperty("scroll-snap-type")}function v(){if(S)return;const O=V();O!==void 0&&O!==e.value&&u(O),T()}function T(){w||!w&&U()&&(w=!0,h())}function U(){const O=l.value;if(!O)return!1;const F=o.value?a.value?3:!r.value&&O.clientWidth>O.clientHeight?2.25:2.5:2;return r.value?O.scrollHeight-O.scrollTop<O.clientHeight*F:O.scrollWidth-(i.value?-O.scrollLeft:O.scrollLeft)<O.clientWidth*F}function V(){const O=oe();return O?(+O.getAttribute("data-index")||0)+(o.value?P(O):0):void 0}function oe(){var F;if($??($=l.value.getRootNode()),!$)return;const O=(F=$.elementsFromPoint)==null?void 0:F.call($,r.value||!o.value?window.innerWidth/2:i.value?window.innerWidth-xr:xr,r.value&&o.value?s.value||xr:window.innerHeight/2);if(O)for(let ce=0;ce<O.length;ce++){const fe=O[ce];if(fe.hasAttribute("data-index"))return fe;if(fe===l.value)break}}function P(O){const F=O.getBoundingClientRect();return r.value?Math.abs(F.top-s.value)/F.height:i.value?Math.max(0,F.right-l.value.clientWidth)/F.width:Math.abs(F.left)/F.width}let ne=!1;async function q(O,F,ce){if(ne)return;const fe=F.getBoundingClientRect();if(!o.value){if(r.value){if(fe.top<=0&&fe.bottom>=O.clientHeight)return}else if(fe.left<=0&&fe.right>=O.clientWidth)return}ne=!0;const be=r.value?O.scrollTop:O.scrollLeft,ye=ce.page,ze=o.value?ye%1:0,nt=await $n(30,10,async()=>{await ln();let Be;if(!(F.offsetHeight<10))return o.value?r.value?Be=F.offsetTop+ze*F.offsetHeight-s.value:i.value?Be=F.offsetLeft-O.clientWidth+F.offsetWidth-ze*F.offsetWidth:Be=F.offsetLeft+ze*F.offsetWidth:r.value?Be=F.offsetTop+(fe.top>0?0:fe.height-O.clientHeight):Be=F.offsetLeft+(fe.left>0?0:fe.width-O.clientWidth),ye>.5&&Math.abs(Be)<100?void 0:Be})??0,Xt=ce.ensureLastImgVisibility?r.value?Math.min(nt,O.scrollHeight-O.clientHeight*2):i.value?Math.max(nt,-(O.scrollWidth-O.clientWidth*2)):Math.min(nt,O.scrollWidth-O.clientWidth*2):nt;if(!ce.smooth){r.value?O.scrollTop=Xt:O.scrollLeft=Xt,ne=!1;return}const Ke=Xt-be,qe=30;let ot=0;return new Promise(Be=>{(function dt(){const At=vp(ot,be,Ke,qe);r.value?O.scrollTop=At:O.scrollLeft=At,ot++,ot<=qe?requestAnimationFrame(dt):(Be(),ne=!1)})()})}return{init:N,goToPage:z}}function vp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function bp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:i,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=Z(typeof l=="string"?l==="true":e),c=se({get:()=>a.value,set:b=>{a.value=b,sessionStorage.setItem("tk:playing",b?"true":"false")}}),u=Z(!1);let f,h;const S=Ae(m,100),_=Ae(()=>{u.value=!0},t?2e3:1e3),w=()=>setTimeout(()=>{u.value=!1,_()},30);w(),t||Ot(window,"mousemove",w);const $=ws();Qe(()=>{pe($,b=>{c.value&&(b==="visible"?m():h==null||h())}),pe(s,()=>L()),pe(i,b=>{b||C()})}),Nt(C);async function L(b){c.value&&(h==null||h()),b&&(await gt(),await b()),c.value&&S()}function K(){c.value?C():N()}function C(){c.value&&(c.value=!1,h==null||h(),w())}function N(){!c.value&&i.value&&(c.value=!0,m(),w())}function x(){h==null||h()}function m(){const b=n.value;if(!c.value||!b)return;const v=o.value?b.scrollHeight-b.clientHeight:b.scrollWidth-b.clientWidth,T=z();if(v<=T){C();return}h=()=>{f=Date.now(),h=void 0};const U=Date.now();f=U;const V=.05*s.value,oe=o.value?"scrollTop":"scrollLeft";let P=Date.now(),ne=0;const q=()=>{if(f!==U)return;const O=Date.now(),F=O-P;P=O;const ce=V*F+ne;ce>=1?(ne=ce%1,b[oe]+=(ce-ne)*(r.value?-1:1)):ne=ce,setTimeout(q,1)};q()}function z(){const b=n.value;return o.value?b.scrollTop:r.value?-b.scrollLeft:b.scrollLeft}return{isPlaying:c,isIdle:u,toggle:K,play:N,pause:x,resume:m,stop:C,interfere:L,awake:w}}function yp({raw:e,chapterSpec:t,siteMeta:n}){var m,z,b;const{vol:o,inferVol:r,chap:i,title:s,slug:l,basePath:a}=e;let c=-1;const u=t&&!t.url?document.querySelectorAll(t.sel):void 0;function f(v,T){v.slug?h(v.slug,T):v.elIndex!==void 0&&u&&u[v.elIndex]&&nl(u[v.elIndex])}function h(v,T){const U=_p(a,v,(n==null?void 0:n.trailing)??!0);T?window.open(U,"_blank","noopener"):location.href=U}function S(v){const T=x[v];return T?U=>f(T,U):void 0}const _=(m=e.prev)==null?void 0:m.slug,w=(z=e.next)==null?void 0:z.slug;let $=_?v=>h(_,v):void 0,L=w?v=>h(w,v):void 0;const K=o??r,C=t==null?void 0:t.url,N=((b=s.chapters)==null?void 0:b.filter(v=>v.slug||!C&&v.elIndex!==void 0))??[],x=N.length>1?N:[];if(x.length){if(C&&(c=x.findIndex(v=>v.slug===e.slug)),c===-1&&(c=x.findIndex(v=>(v.vol??v.inferVol)===K&&v.chap===i)),C&&c===-1&&(c=x.findIndex(v=>v.slug&&l.startsWith(`${v.slug}-`)&&l.length-v.slug.length>3)),c!==-1)$??($=S(c+1)),L??(L=S(c-1));else if(!_&&!w){const v=x.findIndex(T=>{const U=T.vol??T.inferVol;return K===void 0||U===void 0||K===U?T.chap<i:U<K});v!==-1?($=S(v),L=S(v-1)):L=S(x.length-1)}}return{activeIndex:c,activeLabel:al({vol:o,chap:i}),prev:$,next:L,chapters:x.map(v=>({label:al(v),select:T=>f(v,T)}))}}function al({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}function _p(e,t,n){const o=!t||t.includes("//")||t.startsWith("/")?t:"/"+[...e.split("/"),...t.split("/")].filter(Boolean).join("/"),[r,i]=(o.includes("//")?o:location.origin+o).split("?");return[r.endsWith("/")===n?r:n?r+"/":r.substring(0,-1),i].filter(Boolean).join("?")}const wp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},cl=he(ke({inheritAttrs:!1,__name:"App",props:{immediate:{type:Boolean},raw:{},spec:{},siteMeta:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},readerStyle:{},direction:{},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean}},emits:["error","ready","pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","finished"],setup(e,{emit:t}){const n=e,o=t;let r=!1,i,s=-1;const l=Z(!1),a=Z(!1),c=gu({touchDevice:n.touchDevice}),u=hp(n.page,n.isAutoShow),f=se(()=>n.spaceTop??0),{asyncImgs:h,isWebtoon:S,maybeWebtoon:_}=fp({raw:se(()=>n.raw),spec:n.spec,page:u,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:f,async onReady(g){ze(g),l.value=!0},onError:()=>{o("error"),j()}}),{direction:w,style:$,isRTL:L,isDouble:K,isVertical:C,isLongStrip:N,gap:x,speed:m,zoom:z,breakFirst:b}=sd({titleName:se(()=>{var g;return(g=n.raw)==null?void 0:g.title.name}),isWebtoon:S,maybeWebtoon:_,defaultStyle:n.readerStyle,defaultDirection:n.direction}),v=pp(h,K,b),T=se(()=>u.value>=h.value.length),U=se(()=>{var g;return n.raw?yp({raw:n.raw,chapterSpec:(g=n.spec)==null?void 0:g.chapter,siteMeta:n.siteMeta}):void 0}),V=Z(null),oe=Z(null),P=Z(!1),ne=Z(!1),q=bp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:se(()=>{var g;return(g=V.value)==null?void 0:g.$el}),speed:m,isRTL:L,isVertical:C,isLongStrip:N}),O=se(()=>!n.touchDevice&&q.isIdle.value&&!c.value),F=se({get(){return z.value},set(g){q.interfere(()=>{z.value=g})}}),ce=mp({page:u,style:$,direction:w,isLongStrip:N,isVertical:C,isRTL:L,spaceTop:f,isWebtoon:S,scrollEl:se(()=>{var g;return(g=V.value)==null?void 0:g.$el}),interferePlayer:g=>q.interfere(g),onChangedPage:ze,onInitialized(){o("ready"),a.value=!0,i=nt()},onFinished:()=>o("finished")}),fe=se(()=>Math.floor(u.value)),be=()=>q.interfere(()=>ln(100));vu().addListener({onKeyDown:g=>{if(n.tourEnabled)return;const I=N.value&&C.value,W=N.value&&!C.value,ee=!N.value&&C.value,de=!N.value&&!C.value;switch(g.key){case" ":g.preventDefault(),N.value?(J(!1),q.toggle()):D();break;case"ArrowUp":case"PageUp":I?be():ee&&fe.value!==0&&(g.preventDefault(),y());break;case"ArrowDown":case"PageDown":I?be():ee&&!T.value&&(g.preventDefault(),k());break;case"ArrowLeft":W?be():de?(g.preventDefault(),d()):C.value&&ot();break;case"ArrowRight":W?be():de?(g.preventDefault(),p()):C.value&&qe();break}},onKeyUp:g=>{switch(g.key){case"f":B();break;case"t":A();break;case"h":J();break}}}),Ot("fullscreenchange",()=>{P.value=!!document.fullscreenElement}),pe(q.isPlaying,g=>{g||D(!1),o("playingChanged",g)}),pe(q.isIdle,g=>{q.isPlaying.value&&D(g)}),pe(c,g=>{!g&&q.isIdle.value?q.awake():g&&n.fullScreen&&D()});function ze(g){if(u.value===g)return;const I=h.value.length;if(g<0||g>=I+1)return;const W=u.value;u.value=g;const ee=Math.floor(g*100)/100;ee!==s&&(s=ee,o("pageChanged",ee)),g>=I?(D(!1),q.stop()):g<.01&&W>g?(D(!1),q.awake()):r||(N.value?i!==void 0&&nt()-i>300&&D(!0):Math.abs(W-g)===1&&D(!0))}function nt(){var I;const g=(I=V.value)==null?void 0:I.$el;return g?C.value?g.scrollTop:L.value?-g.scrollLeft:g.scrollLeft:0}function Xt(){!n.touchDevice&&!N.value&&ce.goToPage(fe.value,{smooth:!0})}function Ke(){if(q.isPlaying.value){!n.fullScreen||!n.touchDevice?q.stop():q.awake();return}D()}function qe(g=!1){var I,W;(W=(I=U.value)==null?void 0:I.next)==null||W.call(I,g)}function ot(g=!1){var I,W;(W=(I=U.value)==null?void 0:I.prev)==null||W.call(I,g)}function Be(g,I){var W,ee,de;(de=(ee=(W=U.value)==null?void 0:W.chapters)==null?void 0:ee[g])==null||de.select(bt(I))}function dt(g){L.value?qe(bt(g)):ot(bt(g))}function At(g){L.value?ot(bt(g)):qe(bt(g))}function bt(g){return!n.touchDevice&&(g.ctrlKey||g.metaKey)}function d(){L.value?k():y()}function p(){L.value?y():k()}function y(){var W;const g=v.value,I=T.value?g[g.length-1][0].index:(W=g[E()-1])==null?void 0:W[0].index;I!==void 0?ce.goToPage(I):ot()}function k(){var g,I;if(T.value)qe();else{const W=((I=(g=v.value[E()+1])==null?void 0:g[0])==null?void 0:I.index)??h.value.length;ce.goToPage(W)}}function E(){const g=fe.value,I=v.value.findIndex(W=>W.some(({index:ee})=>ee===g));return I===-1?v.value.length-1:I}function j(){gp(),o("dispose")}async function D(g){if(c.value&&!n.fullScreen)return;const I=typeof g=="boolean"?g:!n.fullScreen;I!==n.fullScreen&&(r=!0,o("fullScreenChanged",I),I&&setTimeout(()=>{n.fullScreen&&c.value&&o("fullScreenChanged",!1)},100))}function A(){n.entryId?H():M()}function B(){var g,I;document.fullscreenElement?document.exitFullscreen():(I=(g=oe.value)==null?void 0:g.$el)==null||I.requestFullscreen()}function M(){q.stop(),o("addEntry")}function H(){q.stop(),o("openEntry",n.entryId)}function J(g){ne.value!==g&&(ne.value=!ne.value,ne.value&&q.isPlaying.value&&q.stop())}return(g,I)=>g.immediate||l.value?(R(),me(Hs,{key:0,ref_key:"root",ref:oe,loading:!a.value,immediate:!!g.immediate,"full-screen":!!g.fullScreen,idle:O.value,"space-top":f.value,rtl:G(L),onClick:I[11]||(I[11]=et(()=>{},["stop"]))},_i({settings:ie(()=>{var W;return[Q(Os,{"reader-style":G($),"onUpdate:readerStyle":I[3]||(I[3]=ee=>Ce($)?$.value=ee:null),direction:G(w),"onUpdate:direction":I[4]||(I[4]=ee=>Ce(w)?w.value=ee:null),gap:G(x),"onUpdate:gap":I[5]||(I[5]=ee=>Ce(x)?x.value=ee:null),speed:G(m),"onUpdate:speed":I[6]||(I[6]=ee=>Ce(m)?m.value=ee:null),zoom:F.value,"onUpdate:zoom":I[7]||(I[7]=ee=>F.value=ee),name:(W=g.raw)==null?void 0:W.title.name,webtoon:G(S),disabled:!l.value,onHelp:J},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":ie(()=>[Q(nn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[Q(As,{zoom:F.value,onClick:I[10]||(I[10]=et(()=>F.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:ie(()=>[X("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Oe({width:`${G(u)/(G(h).length-1)*100}%`})},null,4)]),default:ie(()=>{var W;return[l.value?(R(),me(Fs,{key:0,ref_key:"body",ref:V,zoom:F.value,"onUpdate:zoom":I[0]||(I[0]=ee=>F.value=ee),"page-index":fe.value,pages:G(v),"total-imgs":G(h).length,direction:G(w),gap:G(x),"is-long-strip":G(N),isRTL:G(L),"is-vertical":G(C),"space-top":f.value,busy:G(c),idle:O.value,"play-controller":G(q),"touch-device":g.touchDevice,"has-next":!!((W=U.value)!=null&&W.next),onVnodeMounted:G(ce).init,onPrev:y,onNext:k,onClick:Ke,onDragEnd:Xt,onWheelPassive:I[1]||(I[1]=()=>G(q).interfere())},_i({_:2},[l.value&&G(h).length?{name:"end",fn:ie(()=>{var ee;return[Q(Cs,{"has-next":!!((ee=U.value)!=null&&ee.next),onNext:qe,onHide:j},null,8,["has-next"])]}),key:"0"}:void 0]),1032,["zoom","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","busy","idle","play-controller","touch-device","has-next","onVnodeMounted"])):Ee("",!0),a.value&&!T.value&&!g.tourEnabled?(R(),me(js,{key:1,direction:G(w)},null,8,["direction"])):Ee("",!0),a.value&&!T.value?(R(),me(Bs,{key:2,playing:!!G(q).isPlaying.value},null,8,["playing"])):Ee("",!0),ne.value?(R(),me(Rs,{key:3,"touch-device":g.touchDevice,onHide:J},null,8,["touch-device"])):Ee("",!0),g.tourEnabled?(R(),me(Ws,{key:4,onHide:I[2]||(I[2]=()=>o("tourEnabledChanged",!1))})):Ee("",!0)]}),_:2},[g.raw?{name:"back",fn:ie(()=>[Q(tt,{href:g.raw.title.url,title:"Back to manga"},{default:ie(()=>[Q(Ks)]),_:1},8,["href"])]),key:"0"}:void 0,g.touchDevice?void 0:{name:"exit",fn:ie(()=>[Q(tt,{title:"Hide reader","data-tour":"You have entered reader mode, press here to return to the original page",onClick:j},{default:ie(()=>[Q(el)]),_:1})]),key:"1"},U.value?{name:"chapter-nav",fn:ie(()=>[Q(mr,{modelValue:U.value.activeIndex,label:U.value.activeLabel,title:"Select chapter",items:U.value.chapters,onSelect:Be},{item:ie(({item:W})=>[Ct(Xe(W.label),1)]),_:1},8,["modelValue","label","items"]),U.value.next||U.value.prev?(R(),Y("div",wp,[Q(tt,{title:`${G(L)?"Next":"Prev"} chapter (←)`,disabled:G(L)?!U.value.next:!U.value.prev,class:"!rounded-r-none",onClick:dt},{default:ie(()=>[Q(Ys)]),_:1},8,["title","disabled"]),Q(tt,{title:`${G(L)?"Prev":"Next"} chapter (→)`,disabled:G(L)?!U.value.prev:!U.value.next,class:"!rounded-l-none",onClick:At},{default:ie(()=>[Q(Xs)]),_:1},8,["title","disabled"])])):Ee("",!0)]),key:"2"}:void 0,G(v).length?{name:"page-nav",fn:ie(()=>[Q(Ds,{"model-value":fe.value,disabled:!a.value,pages:G(v),"total-imgs":G(h).length,"onUpdate:modelValue":G(ce).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,g.raw?{name:"entry",fn:ie(()=>[Q(tt,{title:g.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:A},{default:ie(()=>[g.entryId?(R(),me(Us,{key:0})):(R(),me(qs,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,g.touchDevice?void 0:{name:"full-screen",fn:ie(()=>[Q(tt,{title:`${P.value?"Exit":"Enter"} fullscreen (F)`,onClick:B},{default:ie(()=>[P.value?(R(),me(Js,{key:0})):(R(),me(Qs,{key:1}))]),_:1},8,["title"])]),key:"5"},G(N)?{name:"play",fn:ie(()=>[Q(tt,{"data-tour":"Press here to play like a video",title:`${G(q).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!a.value,onClick:I[8]||(I[8]=()=>G(q).toggle())},{default:ie(()=>[G(q).isPlaying.value?(R(),me(br,{key:0})):(R(),me(yr,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0,G(K)?{name:"break-first",fn:ie(()=>[Q(tt,{title:"Separate 1st page","data-tour":"Press here to separate the first page from double-page mode",disabled:!a.value,onClick:I[9]||(I[9]=()=>b.value=!G(b))},{default:ie(()=>[G(b)?(R(),me(Gs,{key:0})):(R(),me(Zs,{key:1}))]),_:1},8,["disabled"])]),key:"7"}:void 0]),1032,["loading","immediate","full-screen","idle","space-top","rtl"])):Ee("",!0)}}),[["styles",[`/*! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Helvetica,sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:300px){.container{max-width:300px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.fixed-screen{height:100vh;left:0;position:fixed;top:0;width:100vw}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:4px;width:4px}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-full{top:100%}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.-ml-20{margin-left:-80px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.ml-1{margin-left:4px}.ml-auto{margin-left:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-0\\.5{height:2px}.h-1{height:4px}.h-1\\.5{height:6px}.h-10{height:40px}.h-12{height:48px}.h-16{height:64px}.h-20{height:80px}.h-24{height:96px}.h-4{height:16px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-9{height:36px}.h-\\[101\\%\\]{height:101%}.h-\\[27rem\\]{height:432px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-full{max-height:100%}.w-1{width:4px}.w-1\\/3{width:33.333333%}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-28{width:112px}.w-4{width:16px}.w-40{width:160px}.w-\\[4\\.5rem\\]{width:72px}.w-full{width:100%}.w-screen{width:100vw}.max-w-full{max-width:100%}.max-w-xs{max-width:320px}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-right{transform-origin:right}.origin-top{transform-origin:top}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1{--tw-translate-y:-4px}.-translate-y-1\\.5{--tw-translate-y:-6px}.-translate-y-1\\.5,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--tw-translate-y:4px}.translate-y-1\\.5{--tw-translate-y:6px}.translate-y-1\\.5,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y:100%}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-grabbing{cursor:grabbing}.cursor-none{cursor:none}.cursor-pointer{cursor:pointer}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.\\!snap-none{scroll-snap-type:none!important}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.gap-6{gap:24px}.gap-\\[1px\\]{gap:1px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:4px}.rounded-2xl{border-radius:16px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-sm{border-radius:2px}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.rounded-t-sm{border-top-left-radius:2px;border-top-right-radius:2px}.rounded-t-xl{border-top-left-radius:12px;border-top-right-radius:12px}.border{border-width:1px}.border-2{border-width:2px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-opacity-40{--tw-bg-opacity:.4}.bg-opacity-50{--tw-bg-opacity:.5}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-90{--tw-bg-opacity:.9}.bg-none{background-image:none}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:4px}.p-2{padding:8px}.p-4{padding:16px}.p-6{padding:24px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-6{padding-left:24px;padding-right:24px}.py-1{padding-bottom:4px;padding-top:4px}.py-2{padding-bottom:8px;padding-top:8px}.pb-12{padding-bottom:48px}.pb-6{padding-bottom:24px}.pl-1{padding-left:4px}.pt-3{padding-top:12px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-90{opacity:.9}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:300px){.\\32xs\\:gap-3{gap:12px}}@media (min-width:640px){.sm\\:w-\\[32rem\\]{width:512px}.sm\\:p-3{padding:12px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-5{padding-bottom:20px}.md\\:text-lg{font-size:18px;line-height:28px}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}.lg\\:pb-3{padding-bottom:12px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
|
|
28
|
+
`]]]),xp=Object.freeze(Object.defineProperty({__proto__:null,default:cl},Symbol.toStringTag,{value:"Module"})),Sp={},kp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Ip=[X("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46s46-20.595 46-46s-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];function Cp(e,t){return R(),Y("svg",kp,Ip)}const Tp=Object.freeze(Object.defineProperty({__proto__:null,default:he(Sp,[["render",Cp]])},Symbol.toStringTag,{value:"Module"})),Ep=`gear-second{display:block!important;inset:0!important;opacity:0!important;pointer-events:none!important;position:fixed!important;z-index:-10!important}html.gear-second,html.gear-second *{pointer-events:none!important;scroll-behavior:auto!important;scrollbar-width:none!important}html.gear-second ::-webkit-scrollbar,html.gear-second::-webkit-scrollbar{display:none!important}html.gear-second body gear-second~*,html.gear-second>:not(body):not(head){--tw-translate-x:100%!important;--tw-translate-y:-100%!important;display:none!important;height:0!important;min-height:0!important;min-width:0!important;opacity:0!important;pointer-events:none!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important;visibility:hidden!important;width:0!important}html.gear-second body{touch-action:pan-x pan-y!important;visibility:hidden!important}html.gear-second body gear-second{--tw-bg-opacity:1!important;background-color:rgb(0 0 0/var(--tw-bg-opacity))!important;filter:none!important;opacity:1!important;pointer-events:auto!important;transform:none!important;visibility:visible!important;z-index:10000000000000000!important}html.gear-second body .m-content #progress-bar{display:none!important}
|
|
29
|
+
`,Yt="gear-second",Sr={immediate:void 0,raw:void 0,spec:void 0,page:0,spaceTop:void 0,fullScreen:void 0,touchDevice:void 0,entryId:void 0,autoPlay:void 0,readerStyle:void 0,direction:void 0,isAutoShow:void 0,tourEnabled:void 0,onError:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onFinished:void 0},We={promise:void 0,data:cn({...Sr})};async function $p(e){return We.promise?(We.data.raw=e.raw,await We.promise):(We.promise=new Promise(t=>{let n=!1,o=!1,r,i;const s=!!e.spaceTop||!!e.isAutoShow&&!!e.page,l=()=>{n||(n=!0,clearInterval(r),r=void 0,i!=null&&i.isConnected&&document.body.removeChild(i),document.documentElement.classList.remove(Yt),Object.assign(We.data,Sr),We.promise=void 0)},a=Ae(f=>{var h;return!n&&((h=e.onPageChanged)==null?void 0:h.call(e,f))},300);Object.assign(We.data,Sr,e,{immediate:s,onReady(){s||(c(),document.documentElement.classList.add(Yt))},onError(){var f,h;l(),o?((f=e.onDispose)==null||f.call(e),(h=e.onError)==null||h.call(e)):u()},onDispose:()=>{var f;l(),(f=e==null?void 0:e.onDispose)==null||f.call(e)},onFullScreenChanged:f=>{var h;We.data.fullScreen=f,(h=e.onFullScreenChanged)==null||h.call(e,f)},onPageChanged:f=>{We.data.page=f,a(f)},onTourEnabledChanged:f=>{We.data.tourEnabled=f}}),Pp().then(()=>{if(n){u();return}i=document.createElement(Yt),s?(document.documentElement.classList.add(Yt),document.body.appendChild(i),setTimeout(c)):document.body.appendChild(i);let f=0;r=setInterval(()=>{++f===30&&(clearInterval(r),r=void 0),!i.isConnected&&!n&&(document.documentElement.classList.add(Yt),document.body.appendChild(i))},100)});function c(){o||(o=!0,t({triggerDoubleTap(){},triggerTouchStart(){},updateArgs(f){Object.assign(We.data,f)},dispose:l}))}function u(){o||t(void 0)}}),await We.promise)}async function Pp(){if(window.customElements.get(Yt))return;const e=document.createElement("style");e.appendChild(document.createTextNode(Ep)),document.head.appendChild(e);const t=Ac({styles:[await Mp()],data:()=>({readerData:We.data}),render(){return Yi(cl,this.readerData)}});window.customElements.define(Yt,t)}async function Mp(){const e=Object.assign({"./App.vue":xp,"./components/AutoNext.vue":cu,"./components/BottomSheet.vue":Lu,"./components/ButtonDropdown.vue":xu,"./components/ButtonIcon.vue":ku,"./components/ButtonReaderSettings.vue":ad,"./components/ButtonResetZoom.vue":vd,"./components/DirectionToast.vue":Sd,"./components/GesturesContainer.vue":Dd,"./components/HelpScreen.vue":Id,"./components/InputPercentage.vue":ju,"./components/InputSelect.vue":Du,"./components/IntersectionWrapper.vue":Bd,"./components/LoadingIndicator.vue":Wd,"./components/PageNav.vue":Cd,"./components/PauseToast.vue":Rd,"./components/ReaderBody.vue":Zd,"./components/ReaderLayout.vue":of,"./components/ReaderTour.vue":rf,"./components/TableField.vue":Vu,"./components/icons/IconBack.vue":uf,"./components/icons/IconBookmarkNew.vue":gf,"./components/icons/IconBookmarked.vue":_f,"./components/icons/IconChevronLeft.vue":If,"./components/icons/IconChevronRight.vue":Pf,"./components/icons/IconClose.vue":$u,"./components/icons/IconDouble.vue":zf,"./components/icons/IconDoubleSkip.vue":Nf,"./components/icons/IconExclamationCircle.vue":Tp,"./components/icons/IconFullscreen.vue":Kf,"./components/icons/IconFullscreenExit.vue":Zf,"./components/icons/IconHelp.vue":qu,"./components/icons/IconNext.vue":xd,"./components/icons/IconPause.vue":Md,"./components/icons/IconPlay.vue":jd,"./components/icons/IconReaderExit.vue":tp,"./components/icons/IconSettings.vue":Gu,"./components/icons/IconTriangle.vue":hu,"./components/icons/IconZoom.vue":pd}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return $p});
|