gear-second 1.12.0 → 1.13.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.
Files changed (2) hide show
  1. package/index.js +17 -17
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,29 +1,29 @@
1
- (function(Be,le){typeof exports=="object"&&typeof module<"u"?module.exports=le():typeof define=="function"&&define.amd?define(le):(Be=typeof globalThis<"u"?globalThis:Be||self,Be._gearSecond_=le())})(this,function(){"use strict";var Np=Object.defineProperty;var Vp=(Be,le,Ye)=>le in Be?Np(Be,le,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):Be[le]=Ye;var ve=(Be,le,Ye)=>(Vp(Be,typeof le!="symbol"?le+"":le,Ye),Ye);/**
1
+ (function(Ve,le){typeof exports=="object"&&typeof module<"u"?module.exports=le():typeof define=="function"&&define.amd?define(le):(Ve=typeof globalThis<"u"?globalThis:Ve||self,Ve._gearSecond_=le())})(this,function(){"use strict";var Fp=Object.defineProperty;var Hp=(Ve,le,Ye)=>le in Ve?Fp(Ve,le,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):Ve[le]=Ye;var me=(Ve,le,Ye)=>(Hp(Ve,typeof le!="symbol"?le+"":le,Ye),Ye);/**
2
2
  * @vue/shared v3.4.15
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **/function Be(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const le={},Ye=[],Ne=()=>{},bl=()=>!1,On=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),vo=e=>e.startsWith("onUpdate:"),ye=Object.assign,bo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},_l=Object.prototype.hasOwnProperty,ue=(e,t)=>_l.call(e,t),ne=Array.isArray,Gt=e=>Ln(e)==="[object Map]",xr=e=>Ln(e)==="[object Set]",ie=e=>typeof e=="function",we=e=>typeof e=="string",Qt=e=>typeof e=="symbol",be=e=>e!==null&&typeof e=="object",Sr=e=>(be(e)||ie(e))&&ie(e.then)&&ie(e.catch),kr=Object.prototype.toString,Ln=e=>kr.call(e),yl=e=>Ln(e).slice(8,-1),Cr=e=>Ln(e)==="[object Object]",_o=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,An=Be(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},wl=/-(\w)/g,je=zn(e=>e.replace(wl,(t,n)=>n?n.toUpperCase():"")),xl=/\B([A-Z])/g,Ve=zn(e=>e.replace(xl,"-$1").toLowerCase()),jn=zn(e=>e.charAt(0).toUpperCase()+e.slice(1)),yo=zn(e=>e?`on${jn(e)}`:""),it=(e,t)=>!Object.is(e,t),Dn=(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})},wo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},xo=e=>{const t=we(e)?Number(e):NaN;return isNaN(t)?e:t};let Ir;const Er=()=>Ir||(Ir=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Oe(e){if(ne(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=we(o)?Il(o):Oe(o);if(r)for(const i in r)t[i]=r[i]}return t}else if(we(e)||be(e))return e}const Sl=/;(?![^(]*\))/g,kl=/:([^]+)/,Cl=/\/\*[^]*?\*\//g;function Il(e){const t={};return e.replace(Cl,"").split(Sl).forEach(n=>{if(n){const o=n.split(kl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Ce(e){let t="";if(we(e))t=e;else if(ne(e))for(let n=0;n<e.length;n++){const o=Ce(e[n]);o&&(t+=o+" ")}else if(be(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const El=Be("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Tr(e){return!!e||e===""}const Xe=e=>we(e)?e:e==null?"":ne(e)||be(e)&&(e.toString===kr||!ie(e.toString))?JSON.stringify(e,$r,2):String(e),$r=(e,t)=>t&&t.__v_isRef?$r(e,t.value):Gt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],i)=>(n[So(o,i)+" =>"]=r,n),{})}:xr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>So(n))}:Qt(t)?So(t):be(t)&&!ne(t)&&!Cr(t)?String(t):t,So=(e,t="")=>{var n;return Qt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
5
+ **/function Ve(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const le={},Ye=[],Fe=()=>{},_l=()=>!1,On=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),vo=e=>e.startsWith("onUpdate:"),xe=Object.assign,bo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},yl=Object.prototype.hasOwnProperty,fe=(e,t)=>yl.call(e,t),ee=Array.isArray,Zt=e=>Ln(e)==="[object Map]",xi=e=>Ln(e)==="[object Set]",re=e=>typeof e=="function",Se=e=>typeof e=="string",Gt=e=>typeof e=="symbol",ve=e=>e!==null&&typeof e=="object",Si=e=>(ve(e)||re(e))&&re(e.then)&&re(e.catch),ki=Object.prototype.toString,Ln=e=>ki.call(e),wl=e=>Ln(e).slice(8,-1),Ii=e=>Ln(e)==="[object Object]",_o=e=>Se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,zn=Ve(",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))},xl=/-(\w)/g,je=An(e=>e.replace(xl,(t,n)=>n?n.toUpperCase():"")),Sl=/\B([A-Z])/g,He=An(e=>e.replace(Sl,"-$1").toLowerCase()),jn=An(e=>e.charAt(0).toUpperCase()+e.slice(1)),yo=An(e=>e?`on${jn(e)}`:""),it=(e,t)=>!Object.is(e,t),Dn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Bn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},wo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},xo=e=>{const t=Se(e)?Number(e):NaN;return isNaN(t)?e:t};let Ci;const Ti=()=>Ci||(Ci=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Oe(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],i=Se(o)?Tl(o):Oe(o);if(i)for(const r in i)t[r]=i[r]}return t}else if(Se(e)||ve(e))return e}const kl=/;(?![^(]*\))/g,Il=/:([^]+)/,Cl=/\/\*[^]*?\*\//g;function Tl(e){const t={};return e.replace(Cl,"").split(kl).forEach(n=>{if(n){const o=n.split(Il);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Te(e){let t="";if(Se(e))t=e;else if(ee(e))for(let n=0;n<e.length;n++){const o=Te(e[n]);o&&(t+=o+" ")}else if(ve(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const El=Ve("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Ei(e){return!!e||e===""}const Xe=e=>Se(e)?e:e==null?"":ee(e)||ve(e)&&(e.toString===ki||!re(e.toString))?JSON.stringify(e,$i,2):String(e),$i=(e,t)=>t&&t.__v_isRef?$i(e,t.value):Zt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,i],r)=>(n[So(o,r)+" =>"]=i,n),{})}:xi(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>So(n))}:Gt(t)?So(t):ve(t)&&!ee(t)&&!Ii(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 Fe;class Tl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Fe,!t&&Fe&&(this.index=(Fe.scopes||(Fe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Fe;try{return Fe=this,t()}finally{Fe=n}}}on(){Fe=this}off(){Fe=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 $l(e,t=Fe){t&&t.active&&t.effects.push(e)}function Pr(){return Fe}function Pl(e){Fe&&Fe.cleanups.push(e)}let jt;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,$l(this,r)}get dirty(){if(this._dirtyLevel===1){bt();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Ml(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),_t()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=vt,n=jt;try{return vt=!0,jt=this,this._runnings++,Mr(this),this.fn()}finally{Or(this),this._runnings--,jt=n,vt=t}}stop(){var t;this.active&&(Mr(this),Or(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Ml(e){return e.value}function Mr(e){e._trackId++,e._depsLength=0}function Or(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Lr(e.deps[t],e);e.deps.length=e._depsLength}}function Lr(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let vt=!0,Co=0;const Ar=[];function bt(){Ar.push(vt),vt=!1}function _t(){const e=Ar.pop();vt=e===void 0?!0:e}function Io(){Co++}function Eo(){for(Co--;!Co&&To.length;)To.shift()()}function zr(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&Lr(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const To=[];function jr(e,t,n){Io();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),Eo()}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,To.push(t.scheduler))}const Rr=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},$o=new WeakMap,Dt=Symbol(""),Po=Symbol("");function De(e,t,n){if(vt&&jt){let o=$o.get(e);o||$o.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=Rr(()=>o.delete(n))),zr(jt,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"&&ne(e)){const a=Number(o);s.forEach((c,u)=>{(u==="length"||!Qt(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":ne(e)?_o(n)&&l.push(s.get("length")):(l.push(s.get(Dt)),Gt(e)&&l.push(s.get(Po)));break;case"delete":ne(e)||(l.push(s.get(Dt)),Gt(e)&&l.push(s.get(Po)));break;case"set":Gt(e)&&l.push(s.get(Dt));break}Io();for(const a of l)a&&jr(a,2);Eo()}const Ol=Be("__proto__,__v_isRef,__isVue"),Br=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Qt)),Nr=Ll();function Ll(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ce(this);for(let i=0,s=this.length;i<s;i++)De(o,"get",i+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(ce)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){bt(),Io();const o=ce(this)[t].apply(this,n);return Eo(),_t(),o}}),e}function Al(e){const t=ce(this);return De(t,"has",e),t.hasOwnProperty(e)}class Vr{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?Ul:Xr:i?Yr:Ur).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=ne(t);if(!r){if(s&&ue(Nr,n))return Reflect.get(Nr,n,o);if(n==="hasOwnProperty")return Al}const l=Reflect.get(t,n,o);return(Qt(n)?Br.has(n):Ol(n))||(r||De(t,"get",n),i)?l:Ie(l)?s&&_o(n)?l:l.value:be(l)?r?Zr(l):un(l):l}}class Fr extends Vr{constructor(t=!1){super(!1,t)}set(t,n,o,r){let i=t[n];if(!this._shallow){const a=en(i);if(!Kn(o)&&!en(o)&&(i=ce(i),o=ce(o)),!ne(t)&&Ie(i)&&!Ie(o))return a?!1:(i.value=o,!0)}const s=ne(t)&&_o(n)?Number(n)<t.length:ue(t,n),l=Reflect.set(t,n,o,r);return t===ce(r)&&(s?it(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(!Qt(n)||!Br.has(n))&&De(t,"has",n),o}ownKeys(t){return De(t,"iterate",ne(t)?"length":Dt),Reflect.ownKeys(t)}}class zl extends Vr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const jl=new Fr,Dl=new zl,Rl=new Fr(!0),Mo=e=>e,Bn=e=>Reflect.getPrototypeOf(e);function Nn(e,t,n=!1,o=!1){e=e.__v_raw;const r=ce(e),i=ce(t);n||(it(t,i)&&De(r,"get",t),De(r,"get",i));const{has:s}=Bn(r),l=o?Mo:n?Ao:dn;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 Vn(e,t=!1){const n=this.__v_raw,o=ce(n),r=ce(e);return t||(it(e,r)&&De(o,"has",e),De(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Fn(e,t=!1){return e=e.__v_raw,!t&&De(ce(e),"iterate",Dt),Reflect.get(e,"size",e)}function Hr(e){e=ce(e);const t=ce(this);return Bn(t).has.call(t,e)||(t.add(e),pt(t,"add",e,e)),this}function Wr(e,t){t=ce(t);const n=ce(this),{has:o,get:r}=Bn(n);let i=o.call(n,e);i||(e=ce(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?it(t,s)&&pt(n,"set",e,t):pt(n,"add",e,t),this}function Kr(e){const t=ce(this),{has:n,get:o}=Bn(t);let r=n.call(t,e);r||(e=ce(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 qr(){const e=ce(this),t=e.size!==0,n=e.clear();return t&&pt(e,"clear",void 0,void 0),n}function Hn(e,t){return function(o,r){const i=this,s=i.__v_raw,l=ce(s),a=t?Mo:e?Ao:dn;return!e&&De(l,"iterate",Dt),s.forEach((c,u)=>o.call(r,a(c),a(u),i))}}function Wn(e,t,n){return function(...o){const r=this.__v_raw,i=ce(r),s=Gt(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...o),u=n?Mo:t?Ao:dn;return!t&&De(i,"iterate",a?Po:Dt),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:l?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function yt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Bl(){const e={get(i){return Nn(this,i)},get size(){return Fn(this)},has:Vn,add:Hr,set:Wr,delete:Kr,clear:qr,forEach:Hn(!1,!1)},t={get(i){return Nn(this,i,!1,!0)},get size(){return Fn(this)},has:Vn,add:Hr,set:Wr,delete:Kr,clear:qr,forEach:Hn(!1,!0)},n={get(i){return Nn(this,i,!0)},get size(){return Fn(this,!0)},has(i){return Vn.call(this,i,!0)},add:yt("add"),set:yt("set"),delete:yt("delete"),clear:yt("clear"),forEach:Hn(!0,!1)},o={get(i){return Nn(this,i,!0,!0)},get size(){return Fn(this,!0)},has(i){return Vn.call(this,i,!0)},add:yt("add"),set:yt("set"),delete:yt("delete"),clear:yt("clear"),forEach:Hn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Wn(i,!1,!1),n[i]=Wn(i,!0,!1),t[i]=Wn(i,!1,!0),o[i]=Wn(i,!0,!0)}),[e,n,t,o]}const[Nl,Vl,Fl,Hl]=Bl();function Oo(e,t){const n=t?e?Hl:Fl:e?Vl:Nl;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 Wl={get:Oo(!1,!1)},Kl={get:Oo(!1,!0)},ql={get:Oo(!0,!1)},Ur=new WeakMap,Yr=new WeakMap,Xr=new WeakMap,Ul=new WeakMap;function Yl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Xl(e){return e.__v_skip||!Object.isExtensible(e)?0:Yl(yl(e))}function un(e){return en(e)?e:Lo(e,!1,jl,Wl,Ur)}function Zl(e){return Lo(e,!1,Rl,Kl,Yr)}function Zr(e){return Lo(e,!0,Dl,ql,Xr)}function Lo(e,t,n,o,r){if(!be(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Xl(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return r.set(e,l),l}function Jt(e){return en(e)?Jt(e.__v_raw):!!(e&&e.__v_isReactive)}function en(e){return!!(e&&e.__v_isReadonly)}function Kn(e){return!!(e&&e.__v_isShallow)}function Gr(e){return Jt(e)||en(e)}function ce(e){const t=e&&e.__v_raw;return t?ce(t):e}function Qr(e){return Rn(e,"__v_skip",!0),e}const dn=e=>be(e)?un(e):e,Ao=e=>be(e)?Zr(e):e;class Jr{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),()=>fn(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=ce(this);return(!t._cacheable||t.effect.dirty)&&it(t._value,t._value=t.effect.run())&&fn(t,2),zo(t),t.effect._dirtyLevel>=1&&fn(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Gl(e,t,n=!1){let o,r;const i=ie(e);return i?(o=e,r=Ne):(o=e.get,r=e.set),new Jr(o,r,i||!r,n)}function zo(e){vt&&jt&&(e=ce(e),zr(jt,e.dep||(e.dep=Rr(()=>e.dep=void 0,e instanceof Jr?e:void 0))))}function fn(e,t=2,n){e=ce(e);const o=e.dep;o&&jr(o,t)}function Ie(e){return!!(e&&e.__v_isRef===!0)}function X(e){return Ql(e,!1)}function Ql(e,t){return Ie(e)?e:new Jl(e,t)}class Jl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ce(t),this._value=n?t:dn(t)}get value(){return zo(this),this._value}set value(t){const n=this.__v_isShallow||Kn(t)||en(t);t=n?t:ce(t),it(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:dn(t),fn(this,2))}}function Z(e){return Ie(e)?e.value:e}const ea={get:(e,t,n)=>Z(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ie(r)&&!Ie(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function ei(e){return Jt(e)?e:new Proxy(e,ea)}class ta{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>zo(this),()=>fn(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function na(e){return new ta(e)}/**
9
+ **/let We;class $l{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=We,!t&&We&&(this.index=(We.scopes||(We.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=We;try{return We=this,t()}finally{We=n}}}on(){We=this}off(){We=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 i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function Pl(e,t=We){t&&t.active&&t.effects.push(e)}function Pi(){return We}function Ml(e){We&&We.cleanups.push(e)}let zt;class ko{constructor(t,n,o,i){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,Pl(this,i)}get dirty(){if(this._dirtyLevel===1){vt();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Ol(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),bt()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=mt,n=zt;try{return mt=!0,zt=this,this._runnings++,Mi(this),this.fn()}finally{Oi(this),this._runnings--,zt=n,mt=t}}stop(){var t;this.active&&(Mi(this),Oi(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Ol(e){return e.value}function Mi(e){e._trackId++,e._depsLength=0}function Oi(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Li(e.deps[t],e);e.deps.length=e._depsLength}}function Li(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let mt=!0,Io=0;const zi=[];function vt(){zi.push(mt),mt=!1}function bt(){const e=zi.pop();mt=e===void 0?!0:e}function Co(){Io++}function To(){for(Io--;!Io&&Eo.length;)Eo.shift()()}function Ai(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&Li(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Eo=[];function ji(e,t,n){Co();for(const o of e.keys())if(o._dirtyLevel<t&&e.get(o)===o._trackId){const i=o._dirtyLevel;o._dirtyLevel=t,i===0&&(o._shouldSchedule=!0,o.trigger())}Di(e),To()}function Di(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 Bi=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},$o=new WeakMap,At=Symbol(""),Po=Symbol("");function De(e,t,n){if(mt&&zt){let o=$o.get(e);o||$o.set(e,o=new Map);let i=o.get(n);i||o.set(n,i=Bi(()=>o.delete(n))),Ai(zt,i)}}function dt(e,t,n,o,i,r){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"||!Gt(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":ee(e)?_o(n)&&l.push(s.get("length")):(l.push(s.get(At)),Zt(e)&&l.push(s.get(Po)));break;case"delete":ee(e)||(l.push(s.get(At)),Zt(e)&&l.push(s.get(Po)));break;case"set":Zt(e)&&l.push(s.get(At));break}Co();for(const a of l)a&&ji(a,2);To()}const Ll=Ve("__proto__,__v_isRef,__isVue"),Ri=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Gt)),Ni=zl();function zl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ce(this);for(let r=0,s=this.length;r<s;r++)De(o,"get",r+"");const i=o[t](...n);return i===-1||i===!1?o[t](...n.map(ce)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){vt(),Co();const o=ce(this)[t].apply(this,n);return To(),bt(),o}}),e}function Al(e){const t=ce(this);return De(t,"has",e),t.hasOwnProperty(e)}class Vi{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,o){const i=this._isReadonly,r=this._shallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return o===(i?r?Yl:Xi:r?Yi:Ui).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=ee(t);if(!i){if(s&&fe(Ni,n))return Reflect.get(Ni,n,o);if(n==="hasOwnProperty")return Al}const l=Reflect.get(t,n,o);return(Gt(n)?Ri.has(n):Ll(n))||(i||De(t,"get",n),r)?l:Ee(l)?s&&_o(n)?l:l.value:ve(l)?i?Zi(l):cn(l):l}}class Fi extends Vi{constructor(t=!1){super(!1,t)}set(t,n,o,i){let r=t[n];if(!this._shallow){const a=Jt(r);if(!Kn(o)&&!Jt(o)&&(r=ce(r),o=ce(o)),!ee(t)&&Ee(r)&&!Ee(o))return a?!1:(r.value=o,!0)}const s=ee(t)&&_o(n)?Number(n)<t.length:fe(t,n),l=Reflect.set(t,n,o,i);return t===ce(i)&&(s?it(o,r)&&dt(t,"set",n,o):dt(t,"add",n,o)),l}deleteProperty(t,n){const o=fe(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&o&&dt(t,"delete",n,void 0),i}has(t,n){const o=Reflect.has(t,n);return(!Gt(n)||!Ri.has(n))&&De(t,"has",n),o}ownKeys(t){return De(t,"iterate",ee(t)?"length":At),Reflect.ownKeys(t)}}class jl extends Vi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Dl=new Fi,Bl=new jl,Rl=new Fi(!0),Mo=e=>e,Rn=e=>Reflect.getPrototypeOf(e);function Nn(e,t,n=!1,o=!1){e=e.__v_raw;const i=ce(e),r=ce(t);n||(it(t,r)&&De(i,"get",t),De(i,"get",r));const{has:s}=Rn(i),l=o?Mo:n?zo:un;if(s.call(i,t))return l(e.get(t));if(s.call(i,r))return l(e.get(r));e!==i&&e.get(t)}function Vn(e,t=!1){const n=this.__v_raw,o=ce(n),i=ce(e);return t||(it(e,i)&&De(o,"has",e),De(o,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Fn(e,t=!1){return e=e.__v_raw,!t&&De(ce(e),"iterate",At),Reflect.get(e,"size",e)}function Hi(e){e=ce(e);const t=ce(this);return Rn(t).has.call(t,e)||(t.add(e),dt(t,"add",e,e)),this}function Wi(e,t){t=ce(t);const n=ce(this),{has:o,get:i}=Rn(n);let r=o.call(n,e);r||(e=ce(e),r=o.call(n,e));const s=i.call(n,e);return n.set(e,t),r?it(t,s)&&dt(n,"set",e,t):dt(n,"add",e,t),this}function Ki(e){const t=ce(this),{has:n,get:o}=Rn(t);let i=n.call(t,e);i||(e=ce(e),i=n.call(t,e)),o&&o.call(t,e);const r=t.delete(e);return i&&dt(t,"delete",e,void 0),r}function qi(){const e=ce(this),t=e.size!==0,n=e.clear();return t&&dt(e,"clear",void 0,void 0),n}function Hn(e,t){return function(o,i){const r=this,s=r.__v_raw,l=ce(s),a=t?Mo:e?zo:un;return!e&&De(l,"iterate",At),s.forEach((c,u)=>o.call(i,a(c),a(u),r))}}function Wn(e,t,n){return function(...o){const i=this.__v_raw,r=ce(i),s=Zt(r),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=i[e](...o),u=n?Mo:t?zo:un;return!t&&De(r,"iterate",a?Po:At),{next(){const{value:p,done:d}=c.next();return d?{value:p,done:d}:{value:l?[u(p[0]),u(p[1])]:u(p),done:d}},[Symbol.iterator](){return this}}}}function _t(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Nl(){const e={get(r){return Nn(this,r)},get size(){return Fn(this)},has:Vn,add:Hi,set:Wi,delete:Ki,clear:qi,forEach:Hn(!1,!1)},t={get(r){return Nn(this,r,!1,!0)},get size(){return Fn(this)},has:Vn,add:Hi,set:Wi,delete:Ki,clear:qi,forEach:Hn(!1,!0)},n={get(r){return Nn(this,r,!0)},get size(){return Fn(this,!0)},has(r){return Vn.call(this,r,!0)},add:_t("add"),set:_t("set"),delete:_t("delete"),clear:_t("clear"),forEach:Hn(!0,!1)},o={get(r){return Nn(this,r,!0,!0)},get size(){return Fn(this,!0)},has(r){return Vn.call(this,r,!0)},add:_t("add"),set:_t("set"),delete:_t("delete"),clear:_t("clear"),forEach:Hn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=Wn(r,!1,!1),n[r]=Wn(r,!0,!1),t[r]=Wn(r,!1,!0),o[r]=Wn(r,!0,!0)}),[e,n,t,o]}const[Vl,Fl,Hl,Wl]=Nl();function Oo(e,t){const n=t?e?Wl:Hl:e?Fl:Vl;return(o,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?o:Reflect.get(fe(n,i)&&i in o?n:o,i,r)}const Kl={get:Oo(!1,!1)},ql={get:Oo(!1,!0)},Ul={get:Oo(!0,!1)},Ui=new WeakMap,Yi=new WeakMap,Xi=new WeakMap,Yl=new WeakMap;function Xl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Zl(e){return e.__v_skip||!Object.isExtensible(e)?0:Xl(wl(e))}function cn(e){return Jt(e)?e:Lo(e,!1,Dl,Kl,Ui)}function Gl(e){return Lo(e,!1,Rl,ql,Yi)}function Zi(e){return Lo(e,!0,Bl,Ul,Xi)}function Lo(e,t,n,o,i){if(!ve(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const s=Zl(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return i.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 Kn(e){return!!(e&&e.__v_isShallow)}function Gi(e){return Qt(e)||Jt(e)}function ce(e){const t=e&&e.__v_raw;return t?ce(t):e}function Qi(e){return Bn(e,"__v_skip",!0),e}const un=e=>ve(e)?cn(e):e,zo=e=>ve(e)?Zi(e):e;class Ji{constructor(t,n,o,i){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&&Di(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=o}get value(){const t=ce(this);return(!t._cacheable||t.effect.dirty)&&it(t._value,t._value=t.effect.run())&&dn(t,2),Ao(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,i;const r=re(e);return r?(o=e,i=Fe):(o=e.get,i=e.set),new Ji(o,i,r||!i,n)}function Ao(e){mt&&zt&&(e=ce(e),Ai(zt,e.dep||(e.dep=Bi(()=>e.dep=void 0,e instanceof Ji?e:void 0))))}function dn(e,t=2,n){e=ce(e);const o=e.dep;o&&ji(o,t)}function Ee(e){return!!(e&&e.__v_isRef===!0)}function X(e){return Jl(e,!1)}function Jl(e,t){return Ee(e)?e:new ea(e,t)}class ea{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ce(t),this._value=n?t:un(t)}get value(){return Ao(this),this._value}set value(t){const n=this.__v_isShallow||Kn(t)||Jt(t);t=n?t:ce(t),it(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:un(t),dn(this,2))}}function Y(e){return Ee(e)?e.value:e}const ta={get:(e,t,n)=>Y(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return Ee(i)&&!Ee(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function er(e){return Qt(e)?e:new Proxy(e,ta)}class na{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>Ao(this),()=>dn(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function oa(e){return new na(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 pn=[];function Hp(e,...t){bt();const n=pn.length?pn[pn.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=oa();if(o)ht(o,n,11,[e+t.join(""),n&&n.proxy,r.map(({vnode:i})=>`at <${qi(n,i.type)}>`).join(`
14
- `),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(`
15
- `,...ra(r)),console.warn(...i)}_t()}function oa(){let e=pn[pn.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 ra(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
16
- `],...ia(n))}),t}function ia({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,r=` at <${qi(e.component,e.type,o)}`,i=">"+n;return e.props?[r,...sa(e.props),i]:[r+i]}function sa(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...ti(o,e[o]))}),n.length>3&&t.push(" ..."),t}function ti(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}`]:Ie(t)?(t=ti(e,ce(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ie(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ce(t),n?t:[`${e}=`,t])}function ht(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){qn(i,t,n)}return r}function Ze(e,t,n,o){if(ie(e)){const i=ht(e,t,n,o);return i&&Sr(i)&&i.catch(s=>{qn(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 qn(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}}la(e,n,r,o)}function la(e,t,n,o=!0){console.error(e)}let hn=!1,jo=!1;const Le=[];let st=0;const tn=[];let wt=null,Rt=0;const ni=Promise.resolve();let Do=null;function xt(e){const t=Do||ni;return e?t.then(this?e.bind(this):e):t}function aa(e){let t=st+1,n=Le.length;for(;t<n;){const o=t+n>>>1,r=Le[o],i=gn(r);i<e||i===e&&r.pre?t=o+1:n=o}return t}function Ro(e){(!Le.length||!Le.includes(e,hn&&e.allowRecurse?st+1:st))&&(e.id==null?Le.push(e):Le.splice(aa(e.id),0,e),oi())}function oi(){!hn&&!jo&&(jo=!0,Do=ni.then(si))}function ca(e){const t=Le.indexOf(e);t>st&&Le.splice(t,1)}function ua(e){ne(e)?tn.push(...e):(!wt||!wt.includes(e,e.allowRecurse?Rt+1:Rt))&&tn.push(e),oi()}function ri(e,t,n=hn?st+1:0){for(;n<Le.length;n++){const o=Le[n];if(o&&o.pre){if(e&&o.id!==e.uid)continue;Le.splice(n,1),n--,o()}}}function ii(e){if(tn.length){const t=[...new Set(tn)].sort((n,o)=>gn(n)-gn(o));if(tn.length=0,wt){wt.push(...t);return}for(wt=t,Rt=0;Rt<wt.length;Rt++)wt[Rt]();wt=null,Rt=0}}const gn=e=>e.id==null?1/0:e.id,da=(e,t)=>{const n=gn(e)-gn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function si(e){jo=!1,hn=!0,Le.sort(da);const t=Ne;try{for(st=0;st<Le.length;st++){const n=Le[st];n&&n.active!==!1&&ht(n,null,14)}}finally{st=0,Le.length=0,ii(),hn=!1,Do=null,(Le.length||tn.length)&&si()}}function fa(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:d}=o[u]||le;d&&(r=n.map(v=>we(v)?v.trim():v)),f&&(r=n.map(wo))}let l,a=o[l=yo(t)]||o[l=yo(je(t))];!a&&i&&(a=o[l=yo(Ve(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 li(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(!ie(e)){const a=c=>{const u=li(c,t,!0);u&&(l=!0,ye(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(be(e)&&o.set(e,null),null):(ne(i)?i.forEach(a=>s[a]=null):ye(s,i),be(e)&&o.set(e,s),s)}function Un(e,t){return!e||!On(t)?!1:(t=t.slice(2).replace(/Once$/,""),ue(e,t[0].toLowerCase()+t.slice(1))||ue(e,Ve(t))||ue(e,t))}let Ee=null,ai=null;function Yn(e){const t=Ee;return Ee=e,ai=e&&e.type.__scopeId||null,t}function re(e,t=Ee,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Di(-1);const i=Yn(t);let s;try{s=e(...r)}finally{Yn(i),o._d&&Di(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function Wp(){}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:d,setupState:v,ctx:k,inheritAttrs:C}=e;let B,V;const K=Yn(e);try{if(n.shapeFlag&4){const N=r||o,_=N;B=at(u.call(_,N,f,i,v,d,k)),V=a}else{const N=t;B=at(N.length>1?N(i,{attrs:a,slots:l,emit:c}):N(i,null)),V=t.props?a:pa(a)}}catch(N){yn.length=0,qn(N,e,1),B=Q(Je)}let $=B;if(V&&C!==!1){const N=Object.keys(V),{shapeFlag:_}=$;N.length&&_&7&&(s&&N.some(vo)&&(V=ha(V,s)),$=kt($,V))}return n.dirs&&($=kt($),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&($.transition=n.transition),B=$,Yn(K),B}const pa=e=>{let t;for(const n in e)(n==="class"||n==="style"||On(n))&&((t||(t={}))[n]=e[n]);return t},ha=(e,t)=>{const n={};for(const o in e)(!vo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function ga(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?ci(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const d=u[f];if(s[d]!==o[d]&&!Un(c,d))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?ci(o,s,c):!0:!!s;return!1}function ci(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]&&!Un(n,i))return!0}return!1}function ma({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 ui="components",di=Symbol.for("v-ndc");function va(e){return we(e)?ba(ui,e,!1)||e:e||di}function ba(e,t,n=!0,o=!1){const r=Ee||Pe;if(r){const i=r.type;if(e===ui){const l=Ki(i,!1);if(l&&(l===t||l===je(t)||l===jn(je(t))))return i}const s=fi(r[e]||i[e],t)||fi(r.appContext[e],t);return!s&&o?i:s}}function fi(e,t){return e&&(e[t]||e[je(t)]||e[jn(je(t))])}const _a=e=>e.__isSuspense;function ya(e,t){t&&t.pendingBranch?ne(e)?t.effects.push(...e):t.effects.push(e):ua(e)}const wa=Symbol.for("v-scx"),xa=()=>Ft(wa);function Sa(e,t){return No(e,null,{flush:"sync"})}const Xn={};function fe(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 S=t;t=(...F)=>{S(...F),_()}}const a=Pe,c=S=>o===!0?S:Bt(S,o===!1?1:void 0);let u,f=!1,d=!1;if(Ie(e)?(u=()=>e.value,f=Kn(e)):Jt(e)?(u=()=>c(e),f=!0):ne(e)?(d=!0,f=e.some(S=>Jt(S)||Kn(S)),u=()=>e.map(S=>{if(Ie(S))return S.value;if(Jt(S))return c(S);if(ie(S))return ht(S,a,2)})):ie(e)?t?u=()=>ht(e,a,2):u=()=>(v&&v(),Ze(e,a,3,[k])):u=Ne,t&&o){const S=u;u=()=>Bt(S())}let v,k=S=>{v=$.onStop=()=>{ht(S,a,4),v=$.onStop=void 0}},C;if(uo)if(k=Ne,t?n&&Ze(t,a,3,[u(),d?[]:void 0,k]):u(),r==="sync"){const S=xa();C=S.__watcherHandles||(S.__watcherHandles=[])}else return Ne;let B=d?new Array(e.length).fill(Xn):Xn;const V=()=>{if(!(!$.active||!$.dirty))if(t){const S=$.run();(o||f||(d?S.some((F,g)=>it(F,B[g])):it(S,B)))&&(v&&v(),Ze(t,a,3,[S,B===Xn?void 0:d&&B[0]===Xn?[]:B,k]),B=S)}else $.run()};V.allowRecurse=!!t;let K;r==="sync"?K=V:r==="post"?K=()=>Re(V,a&&a.suspense):(V.pre=!0,a&&(V.id=a.uid),K=()=>Ro(V));const $=new ko(u,Ne,K),N=Pr(),_=()=>{$.stop(),N&&bo(N.effects,$)};return t?n?V():B=$.run():r==="post"?Re($.run.bind($),a&&a.suspense):$.run(),C&&C.push(_),_}function ka(e,t,n){const o=this.proxy,r=we(e)?e.includes(".")?pi(o,e):()=>o[e]:e.bind(o,o);let i;ie(t)?i=t:(i=t.handler,n=t);const s=xn(this),l=No(r,i.bind(o),n);return s(),l}function pi(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 Bt(e,t,n=0,o){if(!be(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),Ie(e))Bt(e.value,t,n,o);else if(ne(e))for(let r=0;r<e.length;r++)Bt(e[r],t,n,o);else if(xr(e)||Gt(e))e.forEach(r=>{Bt(r,t,n,o)});else if(Cr(e))for(const r in e)Bt(e[r],t,n,o);return e}function lt(e,t){if(Ee===null)return e;const n=fo(Ee)||Ee.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,s,l,a=le]=t[r];i&&(ie(i)&&(i={mounted:i,updated:i}),i.deep&&Bt(s),o.push({dir:i,instance:n,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Nt(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&&(bt(),Ze(a,n,8,[e.el,l,e,t]),_t())}}const St=Symbol("_leaveCb"),Zn=Symbol("_enterCb");function Ca(){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],hi={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},Ia={name:"BaseTransition",props:hi,setup(e,{slots:t}){const n=tr(),o=Ca();let r;return()=>{const i=t.default&&vi(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const C of i)if(C.type!==Je){s=C;break}}const l=ce(e),{mode:a}=l;if(o.isLeaving)return Fo(s);const c=mi(s);if(!c)return Fo(s);const u=Vo(c,l,o,n);Ho(c,u);const f=n.subTree,d=f&&mi(f);let v=!1;const{getTransitionKey:k}=c.type;if(k){const C=k();r===void 0?r=C:C!==r&&(r=C,v=!0)}if(d&&d.type!==Je&&(!Wt(c,d)||v)){const C=Vo(d,l,o,n);if(Ho(d,C),a==="out-in")return o.isLeaving=!0,C.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Fo(s);a==="in-out"&&c.type!==Je&&(C.delayLeave=(B,V,K)=>{const $=gi(o,d);$[String(d.key)]=d,B[St]=()=>{V(),B[St]=void 0,delete u.delayedLeave},u.delayedLeave=K})}return s}}};function gi(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:d,onAfterLeave:v,onLeaveCancelled:k,onBeforeAppear:C,onAppear:B,onAfterAppear:V,onAppearCancelled:K}=t,$=String(e.key),N=gi(n,e),_=(g,P)=>{g&&Ze(g,o,9,P)},S=(g,P)=>{const j=P[1];_(g,P),ne(g)?g.every(ee=>ee.length<=1)&&j():g.length<=1&&j()},F={mode:i,persisted:s,beforeEnter(g){let P=l;if(!n.isMounted)if(r)P=C||l;else return;g[St]&&g[St](!0);const j=N[$];j&&Wt(e,j)&&j.el[St]&&j.el[St](),_(P,[g])},enter(g){let P=a,j=c,ee=u;if(!n.isMounted)if(r)P=B||a,j=V||c,ee=K||u;else return;let y=!1;const O=g[Zn]=x=>{y||(y=!0,x?_(ee,[g]):_(j,[g]),F.delayedLeave&&F.delayedLeave(),g[Zn]=void 0)};P?S(P,[g,O]):O()},leave(g,P){const j=String(e.key);if(g[Zn]&&g[Zn](!0),n.isUnmounting)return P();_(f,[g]);let ee=!1;const y=g[St]=O=>{ee||(ee=!0,P(),O?_(k,[g]):_(v,[g]),g[St]=void 0,N[j]===e&&delete N[j])};N[j]=e,d?S(d,[g,y]):y()},clone(g){return Vo(g,t,n,o)}};return F}function Fo(e){if(Gn(e))return e=kt(e),e.children=null,e}function mi(e){return Gn(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 vi(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===ke?(s.patchFlag&128&&r++,o=o.concat(vi(s.children,t,l))):(t||s.type!==Je)&&o.push(l!=null?kt(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 xe(e,t){return ie(e)?(()=>ye({name:e.name},t,{setup:e}))():e}const mn=e=>!!e.type.__asyncLoader,Gn=e=>e.type.__isKeepAlive;function Ea(e,t){bi(e,"a",t)}function Ta(e,t){bi(e,"da",t)}function bi(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(Qn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Gn(r.parent.vnode)&&$a(o,t,n,r),r=r.parent}}function $a(e,t,n,o){const r=Qn(t,e,o,!0);Vt(()=>{bo(o[t],r)},n)}function Qn(e,t,n=Pe,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;bt();const l=xn(n),a=Ze(t,n,e,s);return l(),_t(),a});return o?r.unshift(i):r.push(i),i}}const gt=e=>(t,n=Pe)=>(!uo||e==="sp")&&Qn(e,(...o)=>t(...o),n),Pa=gt("bm"),Qe=gt("m"),Ma=gt("bu"),Oa=gt("u"),Wo=gt("bum"),Vt=gt("um"),La=gt("sp"),Aa=gt("rtg"),za=gt("rtc");function ja(e,t=Pe){Qn("ec",e,t)}function vn(e,t,n,o){let r;const i=n&&n[o];if(ne(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(be(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(ne(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 Se(e,t,n={},o,r){if(Ee.isCE||Ee.parent&&mn(Ee.parent)&&Ee.parent.isCE)return t!=="default"&&(n.name=t),Q("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),L();const s=i&&yi(i(n)),l=ge(ke,{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 yi(e){return e.some(t=>io(t)?!(t.type===Je||t.type===ke&&!yi(t.children)):!0)?e:null}const Ko=e=>e?Vi(e)?fo(e)||e.proxy:Ko(e.parent):null,bn=ye(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,Ro(e.update)}),$nextTick:e=>e.n||(e.n=xt.bind(e.proxy)),$watch:e=>ka.bind(e)}),qo=(e,t)=>e!==le&&!e.__isScriptSetup&&ue(e,t),Da={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 v=s[t];if(v!==void 0)switch(v){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=bn[t];let f,d;if(u)return t==="$attrs"&&De(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(d=a.config.globalProperties,ue(d,t))return d[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(bn,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 Jn(e){return ne(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function nn(e,t){return!e||!t?e||t:ne(e)&&ne(t)?e.concat(t):ye({},Jn(e),Jn(t))}let Uo=!0;function Ra(e){const t=Yo(e),n=e.proxy,o=e.ctx;Uo=!1,t.beforeCreate&&wi(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:v,updated:k,activated:C,deactivated:B,beforeDestroy:V,beforeUnmount:K,destroyed:$,unmounted:N,render:_,renderTracked:S,renderTriggered:F,errorCaptured:g,serverPrefetch:P,expose:j,inheritAttrs:ee,components:y,directives:O,filters:x}=t;if(c&&Ba(c,o,null),s)for(const w in s){const H=s[w];ie(H)&&(o[w]=H.bind(n))}if(r){const w=r.call(n,n);be(w)&&(e.data=un(w))}if(Uo=!0,i)for(const w in i){const H=i[w],ae=ie(H)?H.bind(n,n):ie(H.get)?H.get.bind(n,n):Ne,de=!ie(H)&&ie(H.set)?H.set.bind(n):Ne,_e=se({get:ae,set:de});Object.defineProperty(o,w,{enumerable:!0,configurable:!0,get:()=>_e.value,set:me=>_e.value=me})}if(l)for(const w in l)xi(l[w],o,n,w);if(a){const w=ie(a)?a.call(n):a;Reflect.ownKeys(w).forEach(H=>{no(H,w[H])})}u&&wi(u,e,"c");function oe(w,H){ne(H)?H.forEach(ae=>w(ae.bind(n))):H&&w(H.bind(n))}if(oe(Pa,f),oe(Qe,d),oe(Ma,v),oe(Oa,k),oe(Ea,C),oe(Ta,B),oe(ja,g),oe(za,S),oe(Aa,F),oe(Wo,K),oe(Vt,N),oe(La,P),ne(j))if(j.length){const w=e.exposed||(e.exposed={});j.forEach(H=>{Object.defineProperty(w,H,{get:()=>n[H],set:ae=>n[H]=ae})})}else e.exposed||(e.exposed={});_&&e.render===Ne&&(e.render=_),ee!=null&&(e.inheritAttrs=ee),y&&(e.components=y),O&&(e.directives=O)}function Ba(e,t,n=Ne){ne(e)&&(e=Xo(e));for(const o in e){const r=e[o];let i;be(r)?"default"in r?i=Ft(r.from||o,r.default,!0):i=Ft(r.from||o):i=Ft(r),Ie(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function wi(e,t,n){Ze(ne(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function xi(e,t,n,o){const r=o.includes(".")?pi(n,o):()=>n[o];if(we(e)){const i=t[e];ie(i)&&fe(r,i)}else if(ie(e))fe(r,e.bind(n));else if(be(e))if(ne(e))e.forEach(i=>xi(i,t,n,o));else{const i=ie(e.handler)?e.handler.bind(n):t[e.handler];ie(i)&&fe(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=>eo(a,c,s,!0)),eo(a,t,s)),be(t)&&i.set(t,a),a}function eo(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&eo(e,i,n,!0),r&&r.forEach(s=>eo(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=Na[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Na={data:Si,props:ki,emits:ki,methods:_n,computed:_n,beforeCreate:ze,created:ze,beforeMount:ze,mounted:ze,beforeUpdate:ze,updated:ze,beforeDestroy:ze,beforeUnmount:ze,destroyed:ze,unmounted:ze,activated:ze,deactivated:ze,errorCaptured:ze,serverPrefetch:ze,components:_n,directives:_n,watch:Fa,provide:Si,inject:Va};function Si(e,t){return t?e?function(){return ye(ie(e)?e.call(this,this):e,ie(t)?t.call(this,this):t)}:t:e}function Va(e,t){return _n(Xo(e),Xo(t))}function Xo(e){if(ne(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ze(e,t){return e?[...new Set([].concat(e,t))]:t}function _n(e,t){return e?ye(Object.create(null),e,t):t}function ki(e,t){return e?ne(e)&&ne(t)?[...new Set([...e,...t])]:ye(Object.create(null),Jn(e),Jn(t??{})):t}function Fa(e,t){if(!e)return t;if(!t)return e;const n=ye(Object.create(null),e);for(const o in t)n[o]=ze(e[o],t[o]);return n}function Ci(){return{app:null,config:{isNativeTag:bl,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 Ha=0;function Wa(e,t){return function(o,r=null){ie(o)||(o=ye({},o)),r!=null&&!be(r)&&(r=null);const i=Ci(),s=new WeakSet;let l=!1;const a=i.app={_uid:Ha++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:gc,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&ie(c.install)?(s.add(c),c.install(a,...u)):ie(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 d=Q(o,r);return d.appContext=i,f===!0?f="svg":f===!1&&(f=void 0),u&&t?t(d,c):e(d,c,f),l=!0,a._container=c,c.__vue_app__=a,fo(d.component)||d.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return i.provides[c]=u,a},runWithContext(c){to=a;try{return c()}finally{to=null}}};return a}}let to=null;function no(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 Ft(e,t,n=!1){const o=Pe||Ee;if(o||to){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:to._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&ie(t)?t.call(o&&o.proxy):t}}function Ka(e,t,n,o=!1){const r={},i={};Rn(i,so,1),e.propsDefaults=Object.create(null),Ii(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:Zl(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function qa(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=ce(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 d=u[f];if(Un(e.emitsOptions,d))continue;const v=t[d];if(a)if(ue(i,d))v!==i[d]&&(i[d]=v,c=!0);else{const k=je(d);r[k]=Zo(a,l,k,v,e,!1)}else v!==i[d]&&(i[d]=v,c=!0)}}}else{Ii(e,t,r,i)&&(c=!0);let u;for(const f in l)(!t||!ue(t,f)&&((u=Ve(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 Ii(e,t,n,o){const[r,i]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(An(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:Un(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(i){const a=ce(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&&ie(a)){const{propsDefaults:c}=r;if(n in c)o=c[n];else{const u=xn(r);o=c[n]=a.call(null,t),u()}}else o=a}s[0]&&(i&&!l?o=!1:s[1]&&(o===""||o===Ve(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(!ie(e)){const u=f=>{a=!0;const[d,v]=Ei(f,t,!0);ye(s,d),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return be(e)&&o.set(e,Ye),Ye;if(ne(i))for(let u=0;u<i.length;u++){const f=je(i[u]);Ti(f)&&(s[f]=le)}else if(i)for(const u in i){const f=je(u);if(Ti(f)){const d=i[u],v=s[f]=ne(d)||ie(d)?{type:d}:ye({},d);if(v){const k=Mi(Boolean,v.type),C=Mi(String,v.type);v[0]=k>-1,v[1]=C<0||k<C,(k>-1||ue(v,"default"))&&l.push(f)}}}const c=[s,l];return be(e)&&o.set(e,c),c}function Ti(e){return e[0]!=="$"}function $i(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Pi(e,t){return $i(e)===$i(t)}function Mi(e,t){return ne(t)?t.findIndex(n=>Pi(n,e)):ie(t)&&Pi(t,e)?0:-1}const Oi=e=>e[0]==="_"||e==="$stable",Go=e=>ne(e)?e.map(at):[at(e)],Ua=(e,t,n)=>{if(t._n)return t;const o=re((...r)=>Go(t(...r)),n);return o._c=!1,o},Li=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Oi(r))continue;const i=e[r];if(ie(i))t[r]=Ua(r,i,o);else if(i!=null){const s=Go(i);t[r]=()=>s}}},Ai=(e,t)=>{const n=Go(t);e.slots.default=()=>n},Ya=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ce(t),Rn(t,"_",n)):Li(t,e.slots={})}else e.slots={},t&&Ai(e,t);Rn(e.slots,so,1)},Xa=(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:(ye(r,t),!n&&l===1&&delete r._):(i=!t.$stable,Li(t,r)),s=t}else t&&(Ai(e,t),s={default:1});if(i)for(const l in r)!Oi(l)&&s[l]==null&&delete r[l]};function Qo(e,t,n,o,r=!1){if(ne(e)){e.forEach((d,v)=>Qo(d,t&&(ne(t)?t[v]:t),n,o,r));return}if(mn(o)&&!r)return;const i=o.shapeFlag&4?fo(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)):Ie(c)&&(c.value=null)),ie(a))ht(a,l,12,[s,u]);else{const d=we(a),v=Ie(a),k=e.f;if(d||v){const C=()=>{if(k){const B=d?ue(f,a)?f[a]:u[a]:a.value;r?ne(B)&&bo(B,i):ne(B)?B.includes(i)||B.push(i):d?(u[a]=[i],ue(f,a)&&(f[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else d?(u[a]=s,ue(f,a)&&(f[a]=s)):v&&(a.value=s,e.k&&(u[e.k]=s))};r||k?C():(C.id=-1,Re(C,n))}}}const Re=ya;function Za(e){return Ga(e)}function Ga(e,t){const n=Er();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:v=Ne,insertStaticContent:k}=e,C=(p,h,b,E=null,T=null,z=null,D=void 0,A=null,R=!!h.dynamicChildren)=>{if(p===h)return;p&&!Wt(p,h)&&(E=mt(p),me(p,T,z,!0),p=null),h.patchFlag===-2&&(R=!1,h.dynamicChildren=null);const{type:M,ref:W,shapeFlag:J}=h;switch(M){case oo:B(p,h,b,E);break;case Je:V(p,h,b,E);break;case ro:p==null&&K(h,b,E,D);break;case ke:y(p,h,b,E,T,z,D,A,R);break;default:J&1?_(p,h,b,E,T,z,D,A,R):J&6?O(p,h,b,E,T,z,D,A,R):(J&64||J&128)&&M.process(p,h,b,E,T,z,D,A,R,dt)}W!=null&&T&&Qo(W,p&&p.ref,z,h||p,!h)},B=(p,h,b,E)=>{if(p==null)o(h.el=l(h.children),b,E);else{const T=h.el=p.el;h.children!==p.children&&c(T,h.children)}},V=(p,h,b,E)=>{p==null?o(h.el=a(h.children||""),b,E):h.el=p.el},K=(p,h,b,E)=>{[p.el,p.anchor]=k(p.children,h,b,E,p.el,p.anchor)},$=({el:p,anchor:h},b,E)=>{let T;for(;p&&p!==h;)T=d(p),o(p,b,E),p=T;o(h,b,E)},N=({el:p,anchor:h})=>{let b;for(;p&&p!==h;)b=d(p),r(p),p=b;r(h)},_=(p,h,b,E,T,z,D,A,R)=>{h.type==="svg"?D="svg":h.type==="math"&&(D="mathml"),p==null?S(h,b,E,T,z,D,A,R):P(p,h,T,z,D,A,R)},S=(p,h,b,E,T,z,D,A)=>{let R,M;const{props:W,shapeFlag:J,transition:m,dirs:I}=p;if(R=p.el=s(p.type,z,W&&W.is,W),J&8?u(R,p.children):J&16&&g(p.children,R,null,E,T,Jo(p,z),D,A),I&&Nt(p,null,E,"created"),F(R,p,p.scopeId,D,E),W){for(const te in W)te!=="value"&&!An(te)&&i(R,te,null,W[te],z,p.children,E,T,Ke);"value"in W&&i(R,"value",null,W.value,z),(M=W.onVnodeBeforeMount)&&ct(M,E,p)}I&&Nt(p,null,E,"beforeMount");const q=Qa(T,m);q&&m.beforeEnter(R),o(R,h,b),((M=W&&W.onVnodeMounted)||q||I)&&Re(()=>{M&&ct(M,E,p),q&&m.enter(R),I&&Nt(p,null,E,"mounted")},T)},F=(p,h,b,E,T)=>{if(b&&v(p,b),E)for(let z=0;z<E.length;z++)v(p,E[z]);if(T){let z=T.subTree;if(h===z){const D=T.vnode;F(p,D,D.scopeId,D.slotScopeIds,T.parent)}}},g=(p,h,b,E,T,z,D,A,R=0)=>{for(let M=R;M<p.length;M++){const W=p[M]=A?It(p[M]):at(p[M]);C(null,W,h,b,E,T,z,D,A)}},P=(p,h,b,E,T,z,D)=>{const A=h.el=p.el;let{patchFlag:R,dynamicChildren:M,dirs:W}=h;R|=p.patchFlag&16;const J=p.props||le,m=h.props||le;let I;if(b&&Ht(b,!1),(I=m.onVnodeBeforeUpdate)&&ct(I,b,h,p),W&&Nt(h,p,b,"beforeUpdate"),b&&Ht(b,!0),M?j(p.dynamicChildren,M,A,b,E,Jo(h,T),z):D||H(p,h,A,null,b,E,Jo(h,T),z,!1),R>0){if(R&16)ee(A,h,J,m,b,E,T);else if(R&2&&J.class!==m.class&&i(A,"class",null,m.class,T),R&4&&i(A,"style",J.style,m.style,T),R&8){const q=h.dynamicProps;for(let te=0;te<q.length;te++){const he=q[te],$e=J[he],rt=m[he];(rt!==$e||he==="value")&&i(A,he,$e,rt,T,p.children,b,E,Ke)}}R&1&&p.children!==h.children&&u(A,h.children)}else!D&&M==null&&ee(A,h,J,m,b,E,T);((I=m.onVnodeUpdated)||W)&&Re(()=>{I&&ct(I,b,h,p),W&&Nt(h,p,b,"updated")},E)},j=(p,h,b,E,T,z,D)=>{for(let A=0;A<h.length;A++){const R=p[A],M=h[A],W=R.el&&(R.type===ke||!Wt(R,M)||R.shapeFlag&70)?f(R.el):b;C(R,M,W,null,E,T,z,D,!0)}},ee=(p,h,b,E,T,z,D)=>{if(b!==E){if(b!==le)for(const A in b)!An(A)&&!(A in E)&&i(p,A,b[A],null,D,h.children,T,z,Ke);for(const A in E){if(An(A))continue;const R=E[A],M=b[A];R!==M&&A!=="value"&&i(p,A,M,R,D,h.children,T,z,Ke)}"value"in E&&i(p,"value",b.value,E.value,D)}},y=(p,h,b,E,T,z,D,A,R)=>{const M=h.el=p?p.el:l(""),W=h.anchor=p?p.anchor:l("");let{patchFlag:J,dynamicChildren:m,slotScopeIds:I}=h;I&&(A=A?A.concat(I):I),p==null?(o(M,b,E),o(W,b,E),g(h.children||[],b,W,T,z,D,A,R)):J>0&&J&64&&m&&p.dynamicChildren?(j(p.dynamicChildren,m,b,T,z,D,A),(h.key!=null||T&&h===T.subTree)&&zi(p,h,!0)):H(p,h,b,W,T,z,D,A,R)},O=(p,h,b,E,T,z,D,A,R)=>{h.slotScopeIds=A,p==null?h.shapeFlag&512?T.ctx.activate(h,b,E,D,R):x(h,b,E,T,z,D,R):Y(p,h,R)},x=(p,h,b,E,T,z,D)=>{const A=p.component=lc(p,E,T);if(Gn(p)&&(A.ctx.renderer=dt),ac(A),A.asyncDep){if(T&&T.registerDep(A,oe),!p.el){const R=A.subTree=Q(Je);V(null,R,h,b)}}else oe(A,p,h,b,T,z,D)},Y=(p,h,b)=>{const E=h.component=p.component;if(ga(p,h,b))if(E.asyncDep&&!E.asyncResolved){w(E,h,b);return}else E.next=h,ca(E.update),E.effect.dirty=!0,E.update();else h.el=p.el,E.vnode=h},oe=(p,h,b,E,T,z,D)=>{const A=()=>{if(p.isMounted){let{next:W,bu:J,u:m,parent:I,vnode:q}=p;{const cn=ji(p);if(cn){W&&(W.el=q.el,w(p,W,D)),cn.asyncDep.then(()=>{p.isUnmounted||A()});return}}let te=W,he;Ht(p,!1),W?(W.el=q.el,w(p,W,D)):W=q,J&&Dn(J),(he=W.props&&W.props.onVnodeBeforeUpdate)&&ct(he,I,W,q),Ht(p,!0);const $e=Bo(p),rt=p.subTree;p.subTree=$e,C(rt,$e,f(rt.el),mt(rt),p,T,z),W.el=$e.el,te===null&&ma(p,$e.el),m&&Re(m,T),(he=W.props&&W.props.onVnodeUpdated)&&Re(()=>ct(he,I,W,q),T)}else{let W;const{el:J,props:m}=h,{bm:I,m:q,parent:te}=p,he=mn(h);if(Ht(p,!1),I&&Dn(I),!he&&(W=m&&m.onVnodeBeforeMount)&&ct(W,te,h),Ht(p,!0),J&&zt){const $e=()=>{p.subTree=Bo(p),zt(J,p.subTree,p,T,null)};he?h.type.__asyncLoader().then(()=>!p.isUnmounted&&$e()):$e()}else{const $e=p.subTree=Bo(p);C(null,$e,b,E,p,T,z),h.el=$e.el}if(q&&Re(q,T),!he&&(W=m&&m.onVnodeMounted)){const $e=h;Re(()=>ct(W,te,$e),T)}(h.shapeFlag&256||te&&mn(te.vnode)&&te.vnode.shapeFlag&256)&&p.a&&Re(p.a,T),p.isMounted=!0,h=b=E=null}},R=p.effect=new ko(A,Ne,()=>Ro(M),p.scope),M=p.update=()=>{R.dirty&&R.run()};M.id=p.uid,Ht(p,!0),M()},w=(p,h,b)=>{h.component=p;const E=p.vnode.props;p.vnode=h,p.next=null,qa(p,h.props,E,b),Xa(p,h.children,b),bt(),ri(p),_t()},H=(p,h,b,E,T,z,D,A,R=!1)=>{const M=p&&p.children,W=p?p.shapeFlag:0,J=h.children,{patchFlag:m,shapeFlag:I}=h;if(m>0){if(m&128){de(M,J,b,E,T,z,D,A,R);return}else if(m&256){ae(M,J,b,E,T,z,D,A,R);return}}I&8?(W&16&&Ke(M,T,z),J!==M&&u(b,J)):W&16?I&16?de(M,J,b,E,T,z,D,A,R):Ke(M,T,z,!0):(W&8&&u(b,""),I&16&&g(J,b,E,T,z,D,A,R))},ae=(p,h,b,E,T,z,D,A,R)=>{p=p||Ye,h=h||Ye;const M=p.length,W=h.length,J=Math.min(M,W);let m;for(m=0;m<J;m++){const I=h[m]=R?It(h[m]):at(h[m]);C(p[m],I,b,null,T,z,D,A,R)}M>W?Ke(p,T,z,!0,!1,J):g(h,b,E,T,z,D,A,R,J)},de=(p,h,b,E,T,z,D,A,R)=>{let M=0;const W=h.length;let J=p.length-1,m=W-1;for(;M<=J&&M<=m;){const I=p[M],q=h[M]=R?It(h[M]):at(h[M]);if(Wt(I,q))C(I,q,b,null,T,z,D,A,R);else break;M++}for(;M<=J&&M<=m;){const I=p[J],q=h[m]=R?It(h[m]):at(h[m]);if(Wt(I,q))C(I,q,b,null,T,z,D,A,R);else break;J--,m--}if(M>J){if(M<=m){const I=m+1,q=I<W?h[I].el:E;for(;M<=m;)C(null,h[M]=R?It(h[M]):at(h[M]),b,q,T,z,D,A,R),M++}}else if(M>m)for(;M<=J;)me(p[M],T,z,!0),M++;else{const I=M,q=M,te=new Map;for(M=q;M<=m;M++){const Ue=h[M]=R?It(h[M]):at(h[M]);Ue.key!=null&&te.set(Ue.key,M)}let he,$e=0;const rt=m-q+1;let cn=!1,gl=0;const Mn=new Array(rt);for(M=0;M<rt;M++)Mn[M]=0;for(M=I;M<=J;M++){const Ue=p[M];if($e>=rt){me(Ue,T,z,!0);continue}let ft;if(Ue.key!=null)ft=te.get(Ue.key);else for(he=q;he<=m;he++)if(Mn[he-q]===0&&Wt(Ue,h[he])){ft=he;break}ft===void 0?me(Ue,T,z,!0):(Mn[ft-q]=M+1,ft>=gl?gl=ft:cn=!0,C(Ue,h[ft],b,null,T,z,D,A,R),$e++)}const ml=cn?Ja(Mn):Ye;for(he=ml.length-1,M=rt-1;M>=0;M--){const Ue=q+M,ft=h[Ue],vl=Ue+1<W?h[Ue+1].el:E;Mn[M]===0?C(null,ft,b,vl,T,z,D,A,R):cn&&(he<0||M!==ml[he]?_e(ft,b,vl,2):he--)}}},_e=(p,h,b,E,T=null)=>{const{el:z,type:D,transition:A,children:R,shapeFlag:M}=p;if(M&6){_e(p.component.subTree,h,b,E);return}if(M&128){p.suspense.move(h,b,E);return}if(M&64){D.move(p,h,b,dt);return}if(D===ke){o(z,h,b);for(let J=0;J<R.length;J++)_e(R[J],h,b,E);o(p.anchor,h,b);return}if(D===ro){$(p,h,b);return}if(E!==2&&M&1&&A)if(E===0)A.beforeEnter(z),o(z,h,b),Re(()=>A.enter(z),T);else{const{leave:J,delayLeave:m,afterLeave:I}=A,q=()=>o(z,h,b),te=()=>{J(z,()=>{q(),I&&I()})};m?m(z,q,te):te()}else o(z,h,b)},me=(p,h,b,E=!1,T=!1)=>{const{type:z,props:D,ref:A,children:R,dynamicChildren:M,shapeFlag:W,patchFlag:J,dirs:m}=p;if(A!=null&&Qo(A,null,b,p,!0),W&256){h.ctx.deactivate(p);return}const I=W&1&&m,q=!mn(p);let te;if(q&&(te=D&&D.onVnodeBeforeUnmount)&&ct(te,h,p),W&6)Lt(p.component,b,E);else{if(W&128){p.suspense.unmount(b,E);return}I&&Nt(p,null,h,"beforeUnmount"),W&64?p.type.remove(p,h,b,T,dt,E):M&&(z!==ke||J>0&&J&64)?Ke(M,h,b,!1,!0):(z===ke&&J&384||!T&&W&16)&&Ke(R,h,b),E&&We(p)}(q&&(te=D&&D.onVnodeUnmounted)||I)&&Re(()=>{te&&ct(te,h,p),I&&Nt(p,null,h,"unmounted")},b)},We=p=>{const{type:h,el:b,anchor:E,transition:T}=p;if(h===ke){nt(b,E);return}if(h===ro){N(p);return}const z=()=>{r(b),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(p.shapeFlag&1&&T&&!T.persisted){const{leave:D,delayLeave:A}=T,R=()=>D(b,z);A?A(p.el,z,R):R()}else z()},nt=(p,h)=>{let b;for(;p!==h;)b=d(p),r(p),p=b;r(h)},Lt=(p,h,b)=>{const{bum:E,scope:T,update:z,subTree:D,um:A}=p;E&&Dn(E),T.stop(),z&&(z.active=!1,me(D,p,h,b)),A&&Re(A,h),Re(()=>{p.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&p.asyncDep&&!p.asyncResolved&&p.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},Ke=(p,h,b,E=!1,T=!1,z=0)=>{for(let D=z;D<p.length;D++)me(p[D],h,b,E,T)},mt=p=>p.shapeFlag&6?mt(p.component.subTree):p.shapeFlag&128?p.suspense.next():d(p.anchor||p.el);let qe=!1;const Me=(p,h,b)=>{p==null?h._vnode&&me(h._vnode,null,null,!0):C(h._vnode||null,p,h,null,null,null,b),qe||(qe=!0,ri(),ii(),qe=!1),h._vnode=p},dt={p:C,um:me,m:_e,r:We,mt:x,mc:g,pc:H,pbc:j,n:mt,o:e};let At,zt;return t&&([At,zt]=t(dt)),{render:Me,hydrate:At,createApp:Wa(Me,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 Ht({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Qa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function zi(e,t,n=!1){const o=e.children,r=t.children;if(ne(o)&&ne(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]=It(r[i]),l.el=s.el),n||zi(s,l)),l.type===oo&&(l.el=s.el)}}function Ja(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 ji(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ji(t)}const ec=e=>e.__isTeleport,ke=Symbol.for("v-fgt"),oo=Symbol.for("v-txt"),Je=Symbol.for("v-cmt"),ro=Symbol.for("v-stc"),yn=[];let ot=null;function L(e=!1){yn.push(ot=e?null:[])}function tc(){yn.pop(),ot=yn[yn.length-1]||null}let wn=1;function Di(e){wn+=e}function Ri(e){return e.dynamicChildren=wn>0?ot||Ye:null,tc(),wn>0&&ot&&ot.push(e),e}function U(e,t,n,o,r,i){return Ri(G(e,t,n,o,r,i,!0))}function ge(e,t,n,o,r){return Ri(Q(e,t,n,o,r,!0))}function io(e){return e?e.__v_isVNode===!0:!1}function Wt(e,t){return e.type===t.type&&e.key===t.key}const so="__vInternal",Bi=({key:e})=>e??null,lo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||Ie(e)||ie(e)?{i:Ee,r:e,k:t,f:!!n}:e:null);function G(e,t=null,n=null,o=0,r=null,i=e===ke?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Bi(t),ref:t&&lo(t),scopeId:ai,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:Ee};return l?(er(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=we(n)?8:16),wn>0&&!s&&ot&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&ot.push(a),a}const Q=nc;function nc(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===di)&&(e=Je),io(e)){const l=kt(e,t,!0);return n&&er(l,n),wn>0&&!i&&ot&&(l.shapeFlag&6?ot[ot.indexOf(e)]=l:ot.push(l)),l.patchFlag|=-2,l}if(hc(e)&&(e=e.__vccOpts),t){t=oc(t);let{class:l,style:a}=t;l&&!we(l)&&(t.class=Ce(l)),be(a)&&(Gr(a)&&!ne(a)&&(a=ye({},a)),t.style=Oe(a))}const s=we(e)?1:_a(e)?128:ec(e)?64:be(e)?4:ie(e)?2:0;return G(e,t,n,o,r,s,i,!0)}function oc(e){return e?Gr(e)||so in e?ye({},e):e:null}function kt(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,l=t?ao(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Bi(l),ref:t&&t.ref?n&&r?ne(r)?r.concat(lo(t)):[r,lo(t)]:lo(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!==ke?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&&kt(e.ssContent),ssFallback:e.ssFallback&&kt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ct(e=" ",t=0){return Q(oo,null,e,t)}function rc(e,t){const n=Q(ro,null,e);return n.staticCount=t,n}function Te(e="",t=!1){return t?(L(),ge(Je,null,e)):Q(Je,null,e)}function at(e){return e==null||typeof e=="boolean"?Q(Je):ne(e)?Q(ke,null,e.slice()):typeof e=="object"?It(e):Q(oo,null,String(e))}function It(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:kt(e)}function er(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ne(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),er(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(so in t)?t._ctx=Ee:r===3&&Ee&&(Ee.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ie(t)?(t={default:t,_ctx:Ee},n=32):(t=String(t),o&64?(n=16,t=[Ct(t)]):n=8);e.children=t,e.shapeFlag|=n}function ao(...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=Ce([t.class,o.class]));else if(r==="style")t.style=Oe([t.style,o.style]);else if(On(r)){const i=t[r],s=o[r];s&&i!==s&&!(ne(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 ic=Ci();let sc=0;function lc(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||ic,i={uid:sc++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Tl(!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:li(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=fa.bind(null,i),e.ce&&e.ce(i),i}let Pe=null;const tr=()=>Pe||Ee;let co,nr;{const e=Er(),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)}};co=t("__VUE_INSTANCE_SETTERS__",n=>Pe=n),nr=t("__VUE_SSR_SETTERS__",n=>uo=n)}const xn=e=>{const t=Pe;return co(e),e.scope.on(),()=>{e.scope.off(),co(t)}},Ni=()=>{Pe&&Pe.scope.off(),co(null)};function Vi(e){return e.vnode.shapeFlag&4}let uo=!1;function ac(e,t=!1){t&&nr(t);const{props:n,children:o}=e.vnode,r=Vi(e);Ka(e,n,r,t),Ya(e,o);const i=r?cc(e,t):void 0;return t&&nr(!1),i}function cc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Qr(new Proxy(e.ctx,Da));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?dc(e):null,i=xn(e);bt();const s=ht(o,e,0,[e.props,r]);if(_t(),i(),Sr(s)){if(s.then(Ni,Ni),t)return s.then(l=>{Fi(e,l,t)}).catch(l=>{qn(l,e,0)});e.asyncDep=s}else Fi(e,s,t)}else Wi(e,t)}function Fi(e,t,n){ie(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:be(t)&&(e.setupState=ei(t)),Wi(e,n)}let Hi;function Wi(e,t,n){const o=e.type;if(!e.render){if(!t&&Hi&&!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=ye(ye({isCustomElement:i,delimiters:l},s),a);o.render=Hi(r,c)}}e.render=o.render||Ne}{const r=xn(e);bt();try{Ra(e)}finally{_t(),r()}}}function uc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return De(e,"get","$attrs"),t[n]}}))}function dc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return uc(e)},slots:e.slots,emit:e.emit,expose:t}}function fo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ei(Qr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bn)return bn[n](e)},has(t,n){return n in t||n in bn}}))}const fc=/(?:^|[-_])(\w)/g,pc=e=>e.replace(fc,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ki(e,t=!0){return ie(e)?e.displayName||e.name:e.name||t&&e.__name}function qi(e,t,n=!1){let o=Ki(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?pc(o):n?"App":"Anonymous"}function hc(e){return ie(e)&&"__vccOpts"in e}const se=(e,t)=>Gl(e,t,uo);function Sn(e,t,n=le){const o=tr(),r=je(t),i=Ve(t),s=na((a,c)=>{let u;return Sa(()=>{const f=e[t];it(u,f)&&(u=f,c())}),{get(){return a(),n.get?n.get(u):u},set(f){const d=o.vnode.props;!(d&&(t in d||r in d||i in d)&&(`onUpdate:${t}`in d||`onUpdate:${r}`in d||`onUpdate:${i}`in d))&&it(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 Ui(e,t,n){const o=arguments.length;return o===2?be(t)&&!ne(t)?io(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&io(n)&&(n=[n]),Q(e,t,n))}const gc="3.4.15";/**
13
+ **/const fn=[];function Kp(e,...t){vt();const n=fn.length?fn[fn.length-1].component:null,o=n&&n.appContext.config.warnHandler,i=ia();if(o)ft(o,n,11,[e+t.join(""),n&&n.proxy,i.map(({vnode:r})=>`at <${qr(n,r.type)}>`).join(`
14
+ `),i]);else{const r=[`[Vue warn]: ${e}`,...t];i.length&&r.push(`
15
+ `,...ra(i)),console.warn(...r)}bt()}function ia(){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 ra(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
16
+ `],...sa(n))}),t}function sa({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,i=` at <${qr(e.component,e.type,o)}`,r=">"+n;return e.props?[i,...la(e.props),r]:[i+r]}function la(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...tr(o,e[o]))}),n.length>3&&t.push(" ..."),t}function tr(e,t,n){return Se(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Ee(t)?(t=tr(e,ce(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):re(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ce(t),n?t:[`${e}=`,t])}function ft(e,t,n,o){let i;try{i=o?e(...o):e()}catch(r){qn(r,t,n)}return i}function Ze(e,t,n,o){if(re(e)){const r=ft(e,t,n,o);return r&&Si(r)&&r.catch(s=>{qn(s,t,n)}),r}const i=[];for(let r=0;r<e.length;r++)i.push(Ze(e[r],t,n,o));return i}function qn(e,t,n,o=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const c=r.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,l)===!1)return}r=r.parent}const a=t.appContext.config.errorHandler;if(a){ft(a,null,10,[e,s,l]);return}}aa(e,n,i,o)}function aa(e,t,n,o=!0){console.error(e)}let pn=!1,jo=!1;const Le=[];let rt=0;const en=[];let yt=null,jt=0;const nr=Promise.resolve();let Do=null;function wt(e){const t=Do||nr;return e?t.then(this?e.bind(this):e):t}function ca(e){let t=rt+1,n=Le.length;for(;t<n;){const o=t+n>>>1,i=Le[o],r=hn(i);r<e||r===e&&i.pre?t=o+1:n=o}return t}function Bo(e){(!Le.length||!Le.includes(e,pn&&e.allowRecurse?rt+1:rt))&&(e.id==null?Le.push(e):Le.splice(ca(e.id),0,e),or())}function or(){!pn&&!jo&&(jo=!0,Do=nr.then(sr))}function ua(e){const t=Le.indexOf(e);t>rt&&Le.splice(t,1)}function da(e){ee(e)?en.push(...e):(!yt||!yt.includes(e,e.allowRecurse?jt+1:jt))&&en.push(e),or()}function ir(e,t,n=pn?rt+1:0){for(;n<Le.length;n++){const o=Le[n];if(o&&o.pre){if(e&&o.id!==e.uid)continue;Le.splice(n,1),n--,o()}}}function rr(e){if(en.length){const t=[...new Set(en)].sort((n,o)=>hn(n)-hn(o));if(en.length=0,yt){yt.push(...t);return}for(yt=t,jt=0;jt<yt.length;jt++)yt[jt]();yt=null,jt=0}}const hn=e=>e.id==null?1/0:e.id,fa=(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 sr(e){jo=!1,pn=!0,Le.sort(fa);const t=Fe;try{for(rt=0;rt<Le.length;rt++){const n=Le[rt];n&&n.active!==!1&&ft(n,null,14)}}finally{rt=0,Le.length=0,rr(),pn=!1,Do=null,(Le.length||en.length)&&sr()}}function pa(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||le;let i=n;const r=t.startsWith("update:"),s=r&&t.slice(7);if(s&&s in o){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:p,trim:d}=o[u]||le;d&&(i=n.map(b=>Se(b)?b.trim():b)),p&&(i=n.map(wo))}let l,a=o[l=yo(t)]||o[l=yo(je(t))];!a&&r&&(a=o[l=yo(He(t))]),a&&Ze(a,e,6,i);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,i)}}function lr(e,t,n=!1){const o=t.emitsCache,i=o.get(e);if(i!==void 0)return i;const r=e.emits;let s={},l=!1;if(!re(e)){const a=c=>{const u=lr(c,t,!0);u&&(l=!0,xe(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(ve(e)&&o.set(e,null),null):(ee(r)?r.forEach(a=>s[a]=null):xe(s,r),ve(e)&&o.set(e,s),s)}function Un(e,t){return!e||!On(t)?!1:(t=t.slice(2).replace(/Once$/,""),fe(e,t[0].toLowerCase()+t.slice(1))||fe(e,He(t))||fe(e,t))}let $e=null,ar=null;function Yn(e){const t=$e;return $e=e,ar=e&&e.type.__scopeId||null,t}function ie(e,t=$e,n){if(!t||e._n)return e;const o=(...i)=>{o._d&&Dr(-1);const r=Yn(t);let s;try{s=e(...i)}finally{Yn(r),o._d&&Dr(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function qp(){}function Ro(e){const{type:t,vnode:n,proxy:o,withProxy:i,props:r,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:p,data:d,setupState:b,ctx:S,inheritAttrs:I}=e;let B,R;const W=Yn(e);try{if(n.shapeFlag&4){const V=i||o,_=V;B=lt(u.call(_,V,p,r,b,d,S)),R=a}else{const V=t;B=lt(V.length>1?V(r,{attrs:a,slots:l,emit:c}):V(r,null)),R=t.props?a:ha(a)}}catch(V){_n.length=0,qn(V,e,1),B=Q(Je)}let E=B;if(R&&I!==!1){const V=Object.keys(R),{shapeFlag:_}=E;V.length&&_&7&&(s&&V.some(vo)&&(R=ga(R,s)),E=St(E,R))}return n.dirs&&(E=St(E),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),B=E,Yn(W),B}const ha=e=>{let t;for(const n in e)(n==="class"||n==="style"||On(n))&&((t||(t={}))[n]=e[n]);return t},ga=(e,t)=>{const n={};for(const o in e)(!vo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function ma(e,t,n){const{props:o,children:i,component:r}=e,{props:s,children:l,patchFlag:a}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?cr(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let p=0;p<u.length;p++){const d=u[p];if(s[d]!==o[d]&&!Un(c,d))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?cr(o,s,c):!0:!!s;return!1}function cr(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let i=0;i<o.length;i++){const r=o[i];if(t[r]!==e[r]&&!Un(n,r))return!0}return!1}function va({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 ur="components",dr=Symbol.for("v-ndc");function ba(e){return Se(e)?_a(ur,e,!1)||e:e||dr}function _a(e,t,n=!0,o=!1){const i=$e||Me;if(i){const r=i.type;if(e===ur){const l=Kr(r,!1);if(l&&(l===t||l===je(t)||l===jn(je(t))))return r}const s=fr(i[e]||r[e],t)||fr(i.appContext[e],t);return!s&&o?r:s}}function fr(e,t){return e&&(e[t]||e[je(t)]||e[jn(je(t))])}const ya=e=>e.__isSuspense;function wa(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):da(e)}const xa=Symbol.for("v-scx"),Sa=()=>Nt(xa);function ka(e,t){return No(e,null,{flush:"sync"})}const Xn={};function pe(e,t,n){return No(e,t,n)}function No(e,t,{immediate:n,deep:o,flush:i,once:r,onTrack:s,onTrigger:l}=le){if(t&&r){const x=t;t=(...F)=>{x(...F),_()}}const a=Me,c=x=>o===!0?x:Dt(x,o===!1?1:void 0);let u,p=!1,d=!1;if(Ee(e)?(u=()=>e.value,p=Kn(e)):Qt(e)?(u=()=>c(e),p=!0):ee(e)?(d=!0,p=e.some(x=>Qt(x)||Kn(x)),u=()=>e.map(x=>{if(Ee(x))return x.value;if(Qt(x))return c(x);if(re(x))return ft(x,a,2)})):re(e)?t?u=()=>ft(e,a,2):u=()=>(b&&b(),Ze(e,a,3,[S])):u=Fe,t&&o){const x=u;u=()=>Dt(x())}let b,S=x=>{b=E.onStop=()=>{ft(x,a,4),b=E.onStop=void 0}},I;if(uo)if(S=Fe,t?n&&Ze(t,a,3,[u(),d?[]:void 0,S]):u(),i==="sync"){const x=Sa();I=x.__watcherHandles||(x.__watcherHandles=[])}else return Fe;let B=d?new Array(e.length).fill(Xn):Xn;const R=()=>{if(!(!E.active||!E.dirty))if(t){const x=E.run();(o||p||(d?x.some((F,m)=>it(F,B[m])):it(x,B)))&&(b&&b(),Ze(t,a,3,[x,B===Xn?void 0:d&&B[0]===Xn?[]:B,S]),B=x)}else E.run()};R.allowRecurse=!!t;let W;i==="sync"?W=R:i==="post"?W=()=>Be(R,a&&a.suspense):(R.pre=!0,a&&(R.id=a.uid),W=()=>Bo(R));const E=new ko(u,Fe,W),V=Pi(),_=()=>{E.stop(),V&&bo(V.effects,E)};return t?n?R():B=E.run():i==="post"?Be(E.run.bind(E),a&&a.suspense):E.run(),I&&I.push(_),_}function Ia(e,t,n){const o=this.proxy,i=Se(e)?e.includes(".")?pr(o,e):()=>o[e]:e.bind(o,o);let r;re(t)?r=t:(r=t.handler,n=t);const s=wn(this),l=No(i,r.bind(o),n);return s(),l}function pr(e,t){const n=t.split(".");return()=>{let o=e;for(let i=0;i<n.length&&o;i++)o=o[n[i]];return o}}function Dt(e,t,n=0,o){if(!ve(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),Ee(e))Dt(e.value,t,n,o);else if(ee(e))for(let i=0;i<e.length;i++)Dt(e[i],t,n,o);else if(xi(e)||Zt(e))e.forEach(i=>{Dt(i,t,n,o)});else if(Ii(e))for(const i in e)Dt(e[i],t,n,o);return e}function st(e,t){if($e===null)return e;const n=fo($e)||$e.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,s,l,a=le]=t[i];r&&(re(r)&&(r={mounted:r,updated:r}),r.deep&&Dt(s),o.push({dir:r,instance:n,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Bt(e,t,n,o){const i=e.dirs,r=t&&t.dirs;for(let s=0;s<i.length;s++){const l=i[s];r&&(l.oldValue=r[s].value);let a=l.dir[o];a&&(vt(),Ze(a,n,8,[e.el,l,e,t]),bt())}}const xt=Symbol("_leaveCb"),Zn=Symbol("_enterCb");function Ca(){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],hr={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},Ta={name:"BaseTransition",props:hr,setup(e,{slots:t}){const n=ti(),o=Ca();let i;return()=>{const r=t.default&&vr(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){for(const I of r)if(I.type!==Je){s=I;break}}const l=ce(e),{mode:a}=l;if(o.isLeaving)return Fo(s);const c=mr(s);if(!c)return Fo(s);const u=Vo(c,l,o,n);Ho(c,u);const p=n.subTree,d=p&&mr(p);let b=!1;const{getTransitionKey:S}=c.type;if(S){const I=S();i===void 0?i=I:I!==i&&(i=I,b=!0)}if(d&&d.type!==Je&&(!Ft(c,d)||b)){const I=Vo(d,l,o,n);if(Ho(d,I),a==="out-in")return o.isLeaving=!0,I.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Fo(s);a==="in-out"&&c.type!==Je&&(I.delayLeave=(B,R,W)=>{const E=gr(o,d);E[String(d.key)]=d,B[xt]=()=>{R(),B[xt]=void 0,delete u.delayedLeave},u.delayedLeave=W})}return s}}};function gr(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:i,mode:r,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:p,onLeave:d,onAfterLeave:b,onLeaveCancelled:S,onBeforeAppear:I,onAppear:B,onAfterAppear:R,onAppearCancelled:W}=t,E=String(e.key),V=gr(n,e),_=(m,$)=>{m&&Ze(m,o,9,$)},x=(m,$)=>{const j=$[1];_(m,$),ee(m)?m.every(U=>U.length<=1)&&j():m.length<=1&&j()},F={mode:r,persisted:s,beforeEnter(m){let $=l;if(!n.isMounted)if(i)$=I||l;else return;m[xt]&&m[xt](!0);const j=V[E];j&&Ft(e,j)&&j.el[xt]&&j.el[xt](),_($,[m])},enter(m){let $=a,j=c,U=u;if(!n.isMounted)if(i)$=B||a,j=R||c,U=W||u;else return;let h=!1;const w=m[Zn]=K=>{h||(h=!0,K?_(U,[m]):_(j,[m]),F.delayedLeave&&F.delayedLeave(),m[Zn]=void 0)};$?x($,[m,w]):w()},leave(m,$){const j=String(e.key);if(m[Zn]&&m[Zn](!0),n.isUnmounting)return $();_(p,[m]);let U=!1;const h=m[xt]=w=>{U||(U=!0,$(),w?_(S,[m]):_(b,[m]),m[xt]=void 0,V[j]===e&&delete V[j])};V[j]=e,d?x(d,[m,h]):h()},clone(m){return Vo(m,t,n,o)}};return F}function Fo(e){if(Gn(e))return e=St(e),e.children=null,e}function mr(e){return Gn(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 vr(e,t=!1,n){let o=[],i=0;for(let r=0;r<e.length;r++){let s=e[r];const l=n==null?s.key:String(n)+String(s.key!=null?s.key:r);s.type===Ie?(s.patchFlag&128&&i++,o=o.concat(vr(s.children,t,l))):(t||s.type!==Je)&&o.push(l!=null?St(s,{key:l}):s)}if(i>1)for(let r=0;r<o.length;r++)o[r].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function ke(e,t){return re(e)?(()=>xe({name:e.name},t,{setup:e}))():e}const gn=e=>!!e.type.__asyncLoader,Gn=e=>e.type.__isKeepAlive;function Ea(e,t){br(e,"a",t)}function $a(e,t){br(e,"da",t)}function br(e,t,n=Me){const o=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Qn(t,o,n),n){let i=n.parent;for(;i&&i.parent;)Gn(i.parent.vnode)&&Pa(o,t,n,i),i=i.parent}}function Pa(e,t,n,o){const i=Qn(t,e,o,!0);Rt(()=>{bo(o[t],i)},n)}function Qn(e,t,n=Me,o=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;vt();const l=wn(n),a=Ze(t,n,e,s);return l(),bt(),a});return o?i.unshift(r):i.push(r),r}}const pt=e=>(t,n=Me)=>(!uo||e==="sp")&&Qn(e,(...o)=>t(...o),n),Ma=pt("bm"),Qe=pt("m"),Oa=pt("bu"),La=pt("u"),Wo=pt("bum"),Rt=pt("um"),za=pt("sp"),Aa=pt("rtg"),ja=pt("rtc");function Da(e,t=Me){Qn("ec",e,t)}function mn(e,t,n,o){let i;const r=n&&n[o];if(ee(e)||Se(e)){i=new Array(e.length);for(let s=0,l=e.length;s<l;s++)i[s]=t(e[s],s,void 0,r&&r[s])}else if(typeof e=="number"){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,r&&r[s])}else if(ve(e))if(e[Symbol.iterator])i=Array.from(e,(s,l)=>t(s,l,void 0,r&&r[l]));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,a=s.length;l<a;l++){const c=s[l];i[l]=t(e[c],c,l,r&&r[l])}}else i=[];return n&&(n[o]=i),i}function _r(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(ee(o))for(let i=0;i<o.length;i++)e[o[i].name]=o[i].fn;else o&&(e[o.name]=o.key?(...i)=>{const r=o.fn(...i);return r&&(r.key=o.key),r}:o.fn)}return e}function _e(e,t,n={},o,i){if($e.isCE||$e.parent&&gn($e.parent)&&$e.parent.isCE)return t!=="default"&&(n.name=t),Q("slot",n,o&&o());let r=e[t];r&&r._c&&(r._d=!1),O();const s=r&&yr(r(n)),l=he(Ie,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),r&&r._c&&(r._d=!0),l}function yr(e){return e.some(t=>ro(t)?!(t.type===Je||t.type===Ie&&!yr(t.children)):!0)?e:null}const Ko=e=>e?Vr(e)?fo(e)||e.proxy:Ko(e.parent):null,vn=xe(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,Bo(e.update)}),$nextTick:e=>e.n||(e.n=wt.bind(e.proxy)),$watch:e=>Ia.bind(e)}),qo=(e,t)=>e!==le&&!e.__isScriptSetup&&fe(e,t),Ba={get({_:e},t){const{ctx:n,setupState:o,data:i,props:r,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const b=s[t];if(b!==void 0)switch(b){case 1:return o[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(qo(o,t))return s[t]=1,o[t];if(i!==le&&fe(i,t))return s[t]=2,i[t];if((c=e.propsOptions[0])&&fe(c,t))return s[t]=3,r[t];if(n!==le&&fe(n,t))return s[t]=4,n[t];Uo&&(s[t]=0)}}const u=vn[t];let p,d;if(u)return t==="$attrs"&&De(e,"get",t),u(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==le&&fe(n,t))return s[t]=4,n[t];if(d=a.config.globalProperties,fe(d,t))return d[t]},set({_:e},t,n){const{data:o,setupState:i,ctx:r}=e;return qo(i,t)?(i[t]=n,!0):o!==le&&fe(o,t)?(o[t]=n,!0):fe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:i,propsOptions:r}},s){let l;return!!n[s]||e!==le&&fe(e,s)||qo(t,s)||(l=r[0])&&fe(l,s)||fe(o,s)||fe(vn,s)||fe(i.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:fe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Jn(e){return ee(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function tn(e,t){return!e||!t?e||t:ee(e)&&ee(t)?e.concat(t):xe({},Jn(e),Jn(t))}let Uo=!0;function Ra(e){const t=Yo(e),n=e.proxy,o=e.ctx;Uo=!1,t.beforeCreate&&wr(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:p,mounted:d,beforeUpdate:b,updated:S,activated:I,deactivated:B,beforeDestroy:R,beforeUnmount:W,destroyed:E,unmounted:V,render:_,renderTracked:x,renderTriggered:F,errorCaptured:m,serverPrefetch:$,expose:j,inheritAttrs:U,components:h,directives:w,filters:K}=t;if(c&&Na(c,o,null),s)for(const z in s){const L=s[z];re(L)&&(o[z]=L.bind(n))}if(i){const z=i.call(n,n);ve(z)&&(e.data=cn(z))}if(Uo=!0,r)for(const z in r){const L=r[z],ue=re(L)?L.bind(n,n):re(L.get)?L.get.bind(n,n):Fe,de=!re(L)&&re(L.set)?L.set.bind(n):Fe,ye=se({get:ue,set:de});Object.defineProperty(o,z,{enumerable:!0,configurable:!0,get:()=>ye.value,set:be=>ye.value=be})}if(l)for(const z in l)xr(l[z],o,n,z);if(a){const z=re(a)?a.call(n):a;Reflect.ownKeys(z).forEach(L=>{no(L,z[L])})}u&&wr(u,e,"c");function ae(z,L){ee(L)?L.forEach(ue=>z(ue.bind(n))):L&&z(L.bind(n))}if(ae(Ma,p),ae(Qe,d),ae(Oa,b),ae(La,S),ae(Ea,I),ae($a,B),ae(Da,m),ae(ja,x),ae(Aa,F),ae(Wo,W),ae(Rt,V),ae(za,$),ee(j))if(j.length){const z=e.exposed||(e.exposed={});j.forEach(L=>{Object.defineProperty(z,L,{get:()=>n[L],set:ue=>n[L]=ue})})}else e.exposed||(e.exposed={});_&&e.render===Fe&&(e.render=_),U!=null&&(e.inheritAttrs=U),h&&(e.components=h),w&&(e.directives=w)}function Na(e,t,n=Fe){ee(e)&&(e=Xo(e));for(const o in e){const i=e[o];let r;ve(i)?"default"in i?r=Nt(i.from||o,i.default,!0):r=Nt(i.from||o):r=Nt(i),Ee(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[o]=r}}function wr(e,t,n){Ze(ee(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function xr(e,t,n,o){const i=o.includes(".")?pr(n,o):()=>n[o];if(Se(e)){const r=t[e];re(r)&&pe(i,r)}else if(re(e))pe(i,e.bind(n));else if(ve(e))if(ee(e))e.forEach(r=>xr(r,t,n,o));else{const r=re(e.handler)?e.handler.bind(n):t[e.handler];re(r)&&pe(i,r,e)}}function Yo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,l=r.get(t);let a;return l?a=l:!i.length&&!n&&!o?a=t:(a={},i.length&&i.forEach(c=>eo(a,c,s,!0)),eo(a,t,s)),ve(t)&&r.set(t,a),a}function eo(e,t,n,o=!1){const{mixins:i,extends:r}=t;r&&eo(e,r,n,!0),i&&i.forEach(s=>eo(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=Va[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Va={data:Sr,props:kr,emits:kr,methods:bn,computed:bn,beforeCreate:ze,created:ze,beforeMount:ze,mounted:ze,beforeUpdate:ze,updated:ze,beforeDestroy:ze,beforeUnmount:ze,destroyed:ze,unmounted:ze,activated:ze,deactivated:ze,errorCaptured:ze,serverPrefetch:ze,components:bn,directives:bn,watch:Ha,provide:Sr,inject:Fa};function Sr(e,t){return t?e?function(){return xe(re(e)?e.call(this,this):e,re(t)?t.call(this,this):t)}:t:e}function Fa(e,t){return bn(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 ze(e,t){return e?[...new Set([].concat(e,t))]:t}function bn(e,t){return e?xe(Object.create(null),e,t):t}function kr(e,t){return e?ee(e)&&ee(t)?[...new Set([...e,...t])]:xe(Object.create(null),Jn(e),Jn(t??{})):t}function Ha(e,t){if(!e)return t;if(!t)return e;const n=xe(Object.create(null),e);for(const o in t)n[o]=ze(e[o],t[o]);return n}function Ir(){return{app:null,config:{isNativeTag:_l,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 Wa=0;function Ka(e,t){return function(o,i=null){re(o)||(o=xe({},o)),i!=null&&!ve(i)&&(i=null);const r=Ir(),s=new WeakSet;let l=!1;const a=r.app={_uid:Wa++,_component:o,_props:i,_container:null,_context:r,_instance:null,version:mc,get config(){return r.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 r.mixins.includes(c)||r.mixins.push(c),a},component(c,u){return u?(r.components[c]=u,a):r.components[c]},directive(c,u){return u?(r.directives[c]=u,a):r.directives[c]},mount(c,u,p){if(!l){const d=Q(o,i);return d.appContext=r,p===!0?p="svg":p===!1&&(p=void 0),u&&t?t(d,c):e(d,c,p),l=!0,a._container=c,c.__vue_app__=a,fo(d.component)||d.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return r.provides[c]=u,a},runWithContext(c){to=a;try{return c()}finally{to=null}}};return a}}let to=null;function no(e,t){if(Me){let n=Me.provides;const o=Me.parent&&Me.parent.provides;o===n&&(n=Me.provides=Object.create(o)),n[e]=t}}function Nt(e,t,n=!1){const o=Me||$e;if(o||to){const i=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:to._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&re(t)?t.call(o&&o.proxy):t}}function qa(e,t,n,o=!1){const i={},r={};Bn(r,so,1),e.propsDefaults=Object.create(null),Cr(e,t,i,r);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=o?i:Gl(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function Ua(e,t,n,o){const{props:i,attrs:r,vnode:{patchFlag:s}}=e,l=ce(i),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let p=0;p<u.length;p++){let d=u[p];if(Un(e.emitsOptions,d))continue;const b=t[d];if(a)if(fe(r,d))b!==r[d]&&(r[d]=b,c=!0);else{const S=je(d);i[S]=Zo(a,l,S,b,e,!1)}else b!==r[d]&&(r[d]=b,c=!0)}}}else{Cr(e,t,i,r)&&(c=!0);let u;for(const p in l)(!t||!fe(t,p)&&((u=He(p))===p||!fe(t,u)))&&(a?n&&(n[p]!==void 0||n[u]!==void 0)&&(i[p]=Zo(a,l,p,void 0,e,!0)):delete i[p]);if(r!==l)for(const p in r)(!t||!fe(t,p))&&(delete r[p],c=!0)}c&&dt(e,"set","$attrs")}function Cr(e,t,n,o){const[i,r]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(zn(a))continue;const c=t[a];let u;i&&fe(i,u=je(a))?!r||!r.includes(u)?n[u]=c:(l||(l={}))[u]=c:Un(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(r){const a=ce(n),c=l||le;for(let u=0;u<r.length;u++){const p=r[u];n[p]=Zo(i,a,p,c[p],e,!fe(c,p))}}return s}function Zo(e,t,n,o,i,r){const s=e[n];if(s!=null){const l=fe(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&re(a)){const{propsDefaults:c}=i;if(n in c)o=c[n];else{const u=wn(i);o=c[n]=a.call(null,t),u()}}else o=a}s[0]&&(r&&!l?o=!1:s[1]&&(o===""||o===He(n))&&(o=!0))}return o}function Tr(e,t,n=!1){const o=t.propsCache,i=o.get(e);if(i)return i;const r=e.props,s={},l=[];let a=!1;if(!re(e)){const u=p=>{a=!0;const[d,b]=Tr(p,t,!0);xe(s,d),b&&l.push(...b)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!a)return ve(e)&&o.set(e,Ye),Ye;if(ee(r))for(let u=0;u<r.length;u++){const p=je(r[u]);Er(p)&&(s[p]=le)}else if(r)for(const u in r){const p=je(u);if(Er(p)){const d=r[u],b=s[p]=ee(d)||re(d)?{type:d}:xe({},d);if(b){const S=Mr(Boolean,b.type),I=Mr(String,b.type);b[0]=S>-1,b[1]=I<0||S<I,(S>-1||fe(b,"default"))&&l.push(p)}}}const c=[s,l];return ve(e)&&o.set(e,c),c}function Er(e){return e[0]!=="$"}function $r(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Pr(e,t){return $r(e)===$r(t)}function Mr(e,t){return ee(t)?t.findIndex(n=>Pr(n,e)):re(t)&&Pr(t,e)?0:-1}const Or=e=>e[0]==="_"||e==="$stable",Go=e=>ee(e)?e.map(lt):[lt(e)],Ya=(e,t,n)=>{if(t._n)return t;const o=ie((...i)=>Go(t(...i)),n);return o._c=!1,o},Lr=(e,t,n)=>{const o=e._ctx;for(const i in e){if(Or(i))continue;const r=e[i];if(re(r))t[i]=Ya(i,r,o);else if(r!=null){const s=Go(r);t[i]=()=>s}}},zr=(e,t)=>{const n=Go(t);e.slots.default=()=>n},Xa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ce(t),Bn(t,"_",n)):Lr(t,e.slots={})}else e.slots={},t&&zr(e,t);Bn(e.slots,so,1)},Za=(e,t,n)=>{const{vnode:o,slots:i}=e;let r=!0,s=le;if(o.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:(xe(i,t),!n&&l===1&&delete i._):(r=!t.$stable,Lr(t,i)),s=t}else t&&(zr(e,t),s={default:1});if(r)for(const l in i)!Or(l)&&s[l]==null&&delete i[l]};function Qo(e,t,n,o,i=!1){if(ee(e)){e.forEach((d,b)=>Qo(d,t&&(ee(t)?t[b]:t),n,o,i));return}if(gn(o)&&!i)return;const r=o.shapeFlag&4?fo(o.component)||o.component.proxy:o.el,s=i?null:r,{i:l,r:a}=e,c=t&&t.r,u=l.refs===le?l.refs={}:l.refs,p=l.setupState;if(c!=null&&c!==a&&(Se(c)?(u[c]=null,fe(p,c)&&(p[c]=null)):Ee(c)&&(c.value=null)),re(a))ft(a,l,12,[s,u]);else{const d=Se(a),b=Ee(a),S=e.f;if(d||b){const I=()=>{if(S){const B=d?fe(p,a)?p[a]:u[a]:a.value;i?ee(B)&&bo(B,r):ee(B)?B.includes(r)||B.push(r):d?(u[a]=[r],fe(p,a)&&(p[a]=u[a])):(a.value=[r],e.k&&(u[e.k]=a.value))}else d?(u[a]=s,fe(p,a)&&(p[a]=s)):b&&(a.value=s,e.k&&(u[e.k]=s))};i||S?I():(I.id=-1,Be(I,n))}}}const Be=wa;function Ga(e){return Qa(e)}function Qa(e,t){const n=Ti();n.__VUE__=!0;const{insert:o,remove:i,patchProp:r,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:p,nextSibling:d,setScopeId:b=Fe,insertStaticContent:S}=e,I=(f,g,y,k=null,C=null,A=null,N=void 0,M=null,D=!!g.dynamicChildren)=>{if(f===g)return;f&&!Ft(f,g)&&(k=ht(f),be(f,C,A,!0),f=null),g.patchFlag===-2&&(D=!1,g.dynamicChildren=null);const{type:P,ref:H,shapeFlag:te}=g;switch(P){case oo:B(f,g,y,k);break;case Je:R(f,g,y,k);break;case io:f==null&&W(g,y,k,N);break;case Ie:h(f,g,y,k,C,A,N,M,D);break;default:te&1?_(f,g,y,k,C,A,N,M,D):te&6?w(f,g,y,k,C,A,N,M,D):(te&64||te&128)&&P.process(f,g,y,k,C,A,N,M,D,qe)}H!=null&&C&&Qo(H,f&&f.ref,A,g||f,!g)},B=(f,g,y,k)=>{if(f==null)o(g.el=l(g.children),y,k);else{const C=g.el=f.el;g.children!==f.children&&c(C,g.children)}},R=(f,g,y,k)=>{f==null?o(g.el=a(g.children||""),y,k):g.el=f.el},W=(f,g,y,k)=>{[f.el,f.anchor]=S(f.children,g,y,k,f.el,f.anchor)},E=({el:f,anchor:g},y,k)=>{let C;for(;f&&f!==g;)C=d(f),o(f,y,k),f=C;o(g,y,k)},V=({el:f,anchor:g})=>{let y;for(;f&&f!==g;)y=d(f),i(f),f=y;i(g)},_=(f,g,y,k,C,A,N,M,D)=>{g.type==="svg"?N="svg":g.type==="math"&&(N="mathml"),f==null?x(g,y,k,C,A,N,M,D):$(f,g,C,A,N,M,D)},x=(f,g,y,k,C,A,N,M)=>{let D,P;const{props:H,shapeFlag:te,transition:G,dirs:v}=f;if(D=f.el=s(f.type,A,H&&H.is,H),te&8?u(D,f.children):te&16&&m(f.children,D,null,k,C,Jo(f,A),N,M),v&&Bt(f,null,k,"created"),F(D,f,f.scopeId,N,k),H){for(const J in H)J!=="value"&&!zn(J)&&r(D,J,null,H[J],A,f.children,k,C,Ne);"value"in H&&r(D,"value",null,H.value,A),(P=H.onVnodeBeforeMount)&&at(P,k,f)}v&&Bt(f,null,k,"beforeMount");const T=Ja(C,G);T&&G.beforeEnter(D),o(D,g,y),((P=H&&H.onVnodeMounted)||T||v)&&Be(()=>{P&&at(P,k,f),T&&G.enter(D),v&&Bt(f,null,k,"mounted")},C)},F=(f,g,y,k,C)=>{if(y&&b(f,y),k)for(let A=0;A<k.length;A++)b(f,k[A]);if(C){let A=C.subTree;if(g===A){const N=C.vnode;F(f,N,N.scopeId,N.slotScopeIds,C.parent)}}},m=(f,g,y,k,C,A,N,M,D=0)=>{for(let P=D;P<f.length;P++){const H=f[P]=M?It(f[P]):lt(f[P]);I(null,H,g,y,k,C,A,N,M)}},$=(f,g,y,k,C,A,N)=>{const M=g.el=f.el;let{patchFlag:D,dynamicChildren:P,dirs:H}=g;D|=f.patchFlag&16;const te=f.props||le,G=g.props||le;let v;if(y&&Vt(y,!1),(v=G.onVnodeBeforeUpdate)&&at(v,y,g,f),H&&Bt(g,f,y,"beforeUpdate"),y&&Vt(y,!0),P?j(f.dynamicChildren,P,M,y,k,Jo(g,C),A):N||L(f,g,M,null,y,k,Jo(g,C),A,!1),D>0){if(D&16)U(M,g,te,G,y,k,C);else if(D&2&&te.class!==G.class&&r(M,"class",null,G.class,C),D&4&&r(M,"style",te.style,G.style,C),D&8){const T=g.dynamicProps;for(let J=0;J<T.length;J++){const ne=T[J],we=te[ne],ot=G[ne];(ot!==we||ne==="value")&&r(M,ne,we,ot,C,f.children,y,k,Ne)}}D&1&&f.children!==g.children&&u(M,g.children)}else!N&&P==null&&U(M,g,te,G,y,k,C);((v=G.onVnodeUpdated)||H)&&Be(()=>{v&&at(v,y,g,f),H&&Bt(g,f,y,"updated")},k)},j=(f,g,y,k,C,A,N)=>{for(let M=0;M<g.length;M++){const D=f[M],P=g[M],H=D.el&&(D.type===Ie||!Ft(D,P)||D.shapeFlag&70)?p(D.el):y;I(D,P,H,null,k,C,A,N,!0)}},U=(f,g,y,k,C,A,N)=>{if(y!==k){if(y!==le)for(const M in y)!zn(M)&&!(M in k)&&r(f,M,y[M],null,N,g.children,C,A,Ne);for(const M in k){if(zn(M))continue;const D=k[M],P=y[M];D!==P&&M!=="value"&&r(f,M,P,D,N,g.children,C,A,Ne)}"value"in k&&r(f,"value",y.value,k.value,N)}},h=(f,g,y,k,C,A,N,M,D)=>{const P=g.el=f?f.el:l(""),H=g.anchor=f?f.anchor:l("");let{patchFlag:te,dynamicChildren:G,slotScopeIds:v}=g;v&&(M=M?M.concat(v):v),f==null?(o(P,y,k),o(H,y,k),m(g.children||[],y,H,C,A,N,M,D)):te>0&&te&64&&G&&f.dynamicChildren?(j(f.dynamicChildren,G,y,C,A,N,M),(g.key!=null||C&&g===C.subTree)&&Ar(f,g,!0)):L(f,g,y,H,C,A,N,M,D)},w=(f,g,y,k,C,A,N,M,D)=>{g.slotScopeIds=M,f==null?g.shapeFlag&512?C.ctx.activate(g,y,k,N,D):K(g,y,k,C,A,N,D):oe(f,g,D)},K=(f,g,y,k,C,A,N)=>{const M=f.component=ac(f,k,C);if(Gn(f)&&(M.ctx.renderer=qe),cc(M),M.asyncDep){if(C&&C.registerDep(M,ae),!f.el){const D=M.subTree=Q(Je);R(null,D,g,y)}}else ae(M,f,g,y,C,A,N)},oe=(f,g,y)=>{const k=g.component=f.component;if(ma(f,g,y))if(k.asyncDep&&!k.asyncResolved){z(k,g,y);return}else k.next=g,ua(k.update),k.effect.dirty=!0,k.update();else g.el=f.el,k.vnode=g},ae=(f,g,y,k,C,A,N)=>{const M=()=>{if(f.isMounted){let{next:H,bu:te,u:G,parent:v,vnode:T}=f;{const an=jr(f);if(an){H&&(H.el=T.el,z(f,H,N)),an.asyncDep.then(()=>{f.isUnmounted||M()});return}}let J=H,ne;Vt(f,!1),H?(H.el=T.el,z(f,H,N)):H=T,te&&Dn(te),(ne=H.props&&H.props.onVnodeBeforeUpdate)&&at(ne,v,H,T),Vt(f,!0);const we=Ro(f),ot=f.subTree;f.subTree=we,I(ot,we,p(ot.el),ht(ot),f,C,A),H.el=we.el,J===null&&va(f,we.el),G&&Be(G,C),(ne=H.props&&H.props.onVnodeUpdated)&&Be(()=>at(ne,v,H,T),C)}else{let H;const{el:te,props:G}=g,{bm:v,m:T,parent:J}=f,ne=gn(g);if(Vt(f,!1),v&&Dn(v),!ne&&(H=G&&G.onVnodeBeforeMount)&&at(H,J,g),Vt(f,!0),te&&Pn){const we=()=>{f.subTree=Ro(f),Pn(te,f.subTree,f,C,null)};ne?g.type.__asyncLoader().then(()=>!f.isUnmounted&&we()):we()}else{const we=f.subTree=Ro(f);I(null,we,y,k,f,C,A),g.el=we.el}if(T&&Be(T,C),!ne&&(H=G&&G.onVnodeMounted)){const we=g;Be(()=>at(H,J,we),C)}(g.shapeFlag&256||J&&gn(J.vnode)&&J.vnode.shapeFlag&256)&&f.a&&Be(f.a,C),f.isMounted=!0,g=y=k=null}},D=f.effect=new ko(M,Fe,()=>Bo(P),f.scope),P=f.update=()=>{D.dirty&&D.run()};P.id=f.uid,Vt(f,!0),P()},z=(f,g,y)=>{g.component=f;const k=f.vnode.props;f.vnode=g,f.next=null,Ua(f,g.props,k,y),Za(f,g.children,y),vt(),ir(f),bt()},L=(f,g,y,k,C,A,N,M,D=!1)=>{const P=f&&f.children,H=f?f.shapeFlag:0,te=g.children,{patchFlag:G,shapeFlag:v}=g;if(G>0){if(G&128){de(P,te,y,k,C,A,N,M,D);return}else if(G&256){ue(P,te,y,k,C,A,N,M,D);return}}v&8?(H&16&&Ne(P,C,A),te!==P&&u(y,te)):H&16?v&16?de(P,te,y,k,C,A,N,M,D):Ne(P,C,A,!0):(H&8&&u(y,""),v&16&&m(te,y,k,C,A,N,M,D))},ue=(f,g,y,k,C,A,N,M,D)=>{f=f||Ye,g=g||Ye;const P=f.length,H=g.length,te=Math.min(P,H);let G;for(G=0;G<te;G++){const v=g[G]=D?It(g[G]):lt(g[G]);I(f[G],v,y,null,C,A,N,M,D)}P>H?Ne(f,C,A,!0,!1,te):m(g,y,k,C,A,N,M,D,te)},de=(f,g,y,k,C,A,N,M,D)=>{let P=0;const H=g.length;let te=f.length-1,G=H-1;for(;P<=te&&P<=G;){const v=f[P],T=g[P]=D?It(g[P]):lt(g[P]);if(Ft(v,T))I(v,T,y,null,C,A,N,M,D);else break;P++}for(;P<=te&&P<=G;){const v=f[te],T=g[G]=D?It(g[G]):lt(g[G]);if(Ft(v,T))I(v,T,y,null,C,A,N,M,D);else break;te--,G--}if(P>te){if(P<=G){const v=G+1,T=v<H?g[v].el:k;for(;P<=G;)I(null,g[P]=D?It(g[P]):lt(g[P]),y,T,C,A,N,M,D),P++}}else if(P>G)for(;P<=te;)be(f[P],C,A,!0),P++;else{const v=P,T=P,J=new Map;for(P=T;P<=G;P++){const Ue=g[P]=D?It(g[P]):lt(g[P]);Ue.key!=null&&J.set(Ue.key,P)}let ne,we=0;const ot=G-T+1;let an=!1,ml=0;const Mn=new Array(ot);for(P=0;P<ot;P++)Mn[P]=0;for(P=v;P<=te;P++){const Ue=f[P];if(we>=ot){be(Ue,C,A,!0);continue}let ut;if(Ue.key!=null)ut=J.get(Ue.key);else for(ne=T;ne<=G;ne++)if(Mn[ne-T]===0&&Ft(Ue,g[ne])){ut=ne;break}ut===void 0?be(Ue,C,A,!0):(Mn[ut-T]=P+1,ut>=ml?ml=ut:an=!0,I(Ue,g[ut],y,null,C,A,N,M,D),we++)}const vl=an?ec(Mn):Ye;for(ne=vl.length-1,P=ot-1;P>=0;P--){const Ue=T+P,ut=g[Ue],bl=Ue+1<H?g[Ue+1].el:k;Mn[P]===0?I(null,ut,y,bl,C,A,N,M,D):an&&(ne<0||P!==vl[ne]?ye(ut,y,bl,2):ne--)}}},ye=(f,g,y,k,C=null)=>{const{el:A,type:N,transition:M,children:D,shapeFlag:P}=f;if(P&6){ye(f.component.subTree,g,y,k);return}if(P&128){f.suspense.move(g,y,k);return}if(P&64){N.move(f,g,y,qe);return}if(N===Ie){o(A,g,y);for(let te=0;te<D.length;te++)ye(D[te],g,y,k);o(f.anchor,g,y);return}if(N===io){E(f,g,y);return}if(k!==2&&P&1&&M)if(k===0)M.beforeEnter(A),o(A,g,y),Be(()=>M.enter(A),C);else{const{leave:te,delayLeave:G,afterLeave:v}=M,T=()=>o(A,g,y),J=()=>{te(A,()=>{T(),v&&v()})};G?G(A,T,J):J()}else o(A,g,y)},be=(f,g,y,k=!1,C=!1)=>{const{type:A,props:N,ref:M,children:D,dynamicChildren:P,shapeFlag:H,patchFlag:te,dirs:G}=f;if(M!=null&&Qo(M,null,y,f,!0),H&256){g.ctx.deactivate(f);return}const v=H&1&&G,T=!gn(f);let J;if(T&&(J=N&&N.onVnodeBeforeUnmount)&&at(J,g,f),H&6)Ot(f.component,y,k);else{if(H&128){f.suspense.unmount(y,k);return}v&&Bt(f,null,g,"beforeUnmount"),H&64?f.type.remove(f,g,y,C,qe,k):P&&(A!==Ie||te>0&&te&64)?Ne(P,g,y,!1,!0):(A===Ie&&te&384||!C&&H&16)&&Ne(D,g,y),k&&Re(f)}(T&&(J=N&&N.onVnodeUnmounted)||v)&&Be(()=>{J&&at(J,g,f),v&&Bt(f,null,g,"unmounted")},y)},Re=f=>{const{type:g,el:y,anchor:k,transition:C}=f;if(g===Ie){Xt(y,k);return}if(g===io){V(f);return}const A=()=>{i(y),C&&!C.persisted&&C.afterLeave&&C.afterLeave()};if(f.shapeFlag&1&&C&&!C.persisted){const{leave:N,delayLeave:M}=C,D=()=>N(y,A);M?M(f.el,A,D):D()}else A()},Xt=(f,g)=>{let y;for(;f!==g;)y=d(f),i(f),f=y;i(g)},Ot=(f,g,y)=>{const{bum:k,scope:C,update:A,subTree:N,um:M}=f;k&&Dn(k),C.stop(),A&&(A.active=!1,be(N,f,g,y)),M&&Be(M,g),Be(()=>{f.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},Ne=(f,g,y,k=!1,C=!1,A=0)=>{for(let N=A;N<f.length;N++)be(f[N],g,y,k,C)},ht=f=>f.shapeFlag&6?ht(f.component.subTree):f.shapeFlag&128?f.suspense.next():d(f.anchor||f.el);let gt=!1;const Pe=(f,g,y)=>{f==null?g._vnode&&be(g._vnode,null,null,!0):I(g._vnode||null,f,g,null,null,null,y),gt||(gt=!0,ir(),rr(),gt=!1),g._vnode=f},qe={p:I,um:be,m:ye,r:Re,mt:K,mc:m,pc:L,pbc:j,n:ht,o:e};let Lt,Pn;return t&&([Lt,Pn]=t(qe)),{render:Pe,hydrate:Lt,createApp:Ka(Pe,Lt)}}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 Vt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ja(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ar(e,t,n=!1){const o=e.children,i=t.children;if(ee(o)&&ee(i))for(let r=0;r<o.length;r++){const s=o[r];let l=i[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=i[r]=It(i[r]),l.el=s.el),n||Ar(s,l)),l.type===oo&&(l.el=s.el)}}function ec(e){const t=e.slice(),n=[0];let o,i,r,s,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(i=n[n.length-1],e[i]<c){t[o]=i,n.push(o);continue}for(r=0,s=n.length-1;r<s;)l=r+s>>1,e[n[l]]<c?r=l+1:s=l;c<e[n[r]]&&(r>0&&(t[o]=n[r-1]),n[r]=o)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}function jr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:jr(t)}const tc=e=>e.__isTeleport,Ie=Symbol.for("v-fgt"),oo=Symbol.for("v-txt"),Je=Symbol.for("v-cmt"),io=Symbol.for("v-stc"),_n=[];let nt=null;function O(e=!1){_n.push(nt=e?null:[])}function nc(){_n.pop(),nt=_n[_n.length-1]||null}let yn=1;function Dr(e){yn+=e}function Br(e){return e.dynamicChildren=yn>0?nt||Ye:null,nc(),yn>0&&nt&&nt.push(e),e}function q(e,t,n,o,i,r){return Br(Z(e,t,n,o,i,r,!0))}function he(e,t,n,o,i){return Br(Q(e,t,n,o,i,!0))}function ro(e){return e?e.__v_isVNode===!0:!1}function Ft(e,t){return e.type===t.type&&e.key===t.key}const so="__vInternal",Rr=({key:e})=>e??null,lo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Se(e)||Ee(e)||re(e)?{i:$e,r:e,k:t,f:!!n}:e:null);function Z(e,t=null,n=null,o=0,i=null,r=e===Ie?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Rr(t),ref:t&&lo(t),scopeId:ar,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:r,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:$e};return l?(ei(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=Se(n)?8:16),yn>0&&!s&&nt&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&nt.push(a),a}const Q=oc;function oc(e,t=null,n=null,o=0,i=null,r=!1){if((!e||e===dr)&&(e=Je),ro(e)){const l=St(e,t,!0);return n&&ei(l,n),yn>0&&!r&&nt&&(l.shapeFlag&6?nt[nt.indexOf(e)]=l:nt.push(l)),l.patchFlag|=-2,l}if(gc(e)&&(e=e.__vccOpts),t){t=ic(t);let{class:l,style:a}=t;l&&!Se(l)&&(t.class=Te(l)),ve(a)&&(Gi(a)&&!ee(a)&&(a=xe({},a)),t.style=Oe(a))}const s=Se(e)?1:ya(e)?128:tc(e)?64:ve(e)?4:re(e)?2:0;return Z(e,t,n,o,i,s,r,!0)}function ic(e){return e?Gi(e)||so in e?xe({},e):e:null}function St(e,t,n=!1){const{props:o,ref:i,patchFlag:r,children:s}=e,l=t?ao(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Rr(l),ref:t&&t.ref?n&&i?ee(i)?i.concat(lo(t)):[i,lo(t)]:lo(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ie?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&St(e.ssContent),ssFallback:e.ssFallback&&St(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function kt(e=" ",t=0){return Q(oo,null,e,t)}function rc(e,t){const n=Q(io,null,e);return n.staticCount=t,n}function Ce(e="",t=!1){return t?(O(),he(Je,null,e)):Q(Je,null,e)}function lt(e){return e==null||typeof e=="boolean"?Q(Je):ee(e)?Q(Ie,null,e.slice()):typeof e=="object"?It(e):Q(oo,null,String(e))}function It(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:St(e)}function ei(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 i=t.default;i&&(i._c&&(i._d=!1),ei(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(so in t)?t._ctx=$e:i===3&&$e&&($e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else re(t)?(t={default:t,_ctx:$e},n=32):(t=String(t),o&64?(n=16,t=[kt(t)]):n=8);e.children=t,e.shapeFlag|=n}function ao(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const i in o)if(i==="class")t.class!==o.class&&(t.class=Te([t.class,o.class]));else if(i==="style")t.style=Oe([t.style,o.style]);else if(On(i)){const r=t[i],s=o[i];s&&r!==s&&!(ee(r)&&r.includes(s))&&(t[i]=r?[].concat(r,s):s)}else i!==""&&(t[i]=o[i])}return t}function at(e,t,n,o=null){Ze(e,t,7,[n,o])}const sc=Ir();let lc=0;function ac(e,t,n){const o=e.type,i=(t?t.appContext:e.appContext)||sc,r={uid:lc++,vnode:e,type:o,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new $l(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Tr(o,i),emitsOptions:lr(o,i),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 r.ctx={_:r},r.root=t?t.root:r,r.emit=pa.bind(null,r),e.ce&&e.ce(r),r}let Me=null;const ti=()=>Me||$e;let co,ni;{const e=Ti(),t=(n,o)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(o),r=>{i.length>1?i.forEach(s=>s(r)):i[0](r)}};co=t("__VUE_INSTANCE_SETTERS__",n=>Me=n),ni=t("__VUE_SSR_SETTERS__",n=>uo=n)}const wn=e=>{const t=Me;return co(e),e.scope.on(),()=>{e.scope.off(),co(t)}},Nr=()=>{Me&&Me.scope.off(),co(null)};function Vr(e){return e.vnode.shapeFlag&4}let uo=!1;function cc(e,t=!1){t&&ni(t);const{props:n,children:o}=e.vnode,i=Vr(e);qa(e,n,i,t),Xa(e,o);const r=i?uc(e,t):void 0;return t&&ni(!1),r}function uc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Qi(new Proxy(e.ctx,Ba));const{setup:o}=n;if(o){const i=e.setupContext=o.length>1?fc(e):null,r=wn(e);vt();const s=ft(o,e,0,[e.props,i]);if(bt(),r(),Si(s)){if(s.then(Nr,Nr),t)return s.then(l=>{Fr(e,l,t)}).catch(l=>{qn(l,e,0)});e.asyncDep=s}else Fr(e,s,t)}else Wr(e,t)}function Fr(e,t,n){re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ve(t)&&(e.setupState=er(t)),Wr(e,n)}let Hr;function Wr(e,t,n){const o=e.type;if(!e.render){if(!t&&Hr&&!o.render){const i=o.template||Yo(e).template;if(i){const{isCustomElement:r,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=xe(xe({isCustomElement:r,delimiters:l},s),a);o.render=Hr(i,c)}}e.render=o.render||Fe}{const i=wn(e);vt();try{Ra(e)}finally{bt(),i()}}}function dc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return De(e,"get","$attrs"),t[n]}}))}function fc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return dc(e)},slots:e.slots,emit:e.emit,expose:t}}function fo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(er(Qi(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 pc=/(?:^|[-_])(\w)/g,hc=e=>e.replace(pc,t=>t.toUpperCase()).replace(/[-_]/g,"");function Kr(e,t=!0){return re(e)?e.displayName||e.name:e.name||t&&e.__name}function qr(e,t,n=!1){let o=Kr(t);if(!o&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(o=i[1])}if(!o&&e&&e.parent){const i=r=>{for(const s in r)if(r[s]===t)return s};o=i(e.components||e.parent.type.components)||i(e.appContext.components)}return o?hc(o):n?"App":"Anonymous"}function gc(e){return re(e)&&"__vccOpts"in e}const se=(e,t)=>Ql(e,t,uo);function xn(e,t,n=le){const o=ti(),i=je(t),r=He(t),s=oa((a,c)=>{let u;return ka(()=>{const p=e[t];it(u,p)&&(u=p,c())}),{get(){return a(),n.get?n.get(u):u},set(p){const d=o.vnode.props;!(d&&(t in d||i in d||r in d)&&(`onUpdate:${t}`in d||`onUpdate:${i}`in d||`onUpdate:${r}`in d))&&it(p,u)&&(u=p,c()),o.emit(`update:${t}`,n.set?n.set(p):p)}}}),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 Ur(e,t,n){const o=arguments.length;return o===2?ve(t)&&!ee(t)?ro(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&ro(n)&&(n=[n]),Q(e,t,n))}const mc="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 mc="http://www.w3.org/2000/svg",vc="http://www.w3.org/1998/Math/MathML",Et=typeof document<"u"?document:null,Yi=Et&&Et.createElement("template"),bc={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(mc,e):t==="mathml"?Et.createElementNS(vc,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{Yi.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=Yi.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]}},Tt="transition",kn="animation",Cn=Symbol("_vtc"),on=(e,{slots:t})=>Ui(Ia,_c(e),t);on.displayName="Transition";const Xi={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};on.props=ye({},hi,Xi);const Kt=(e,t=[])=>{ne(e)?e.forEach(n=>n(...t)):e&&e(...t)},Zi=e=>e?ne(e)?e.some(t=>t.length>1):e.length>1:!1;function _c(e){const t={};for(const y in e)y in Xi||(t[y]=e[y]);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:d=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,k=yc(r),C=k&&k[0],B=k&&k[1],{onBeforeEnter:V,onEnter:K,onEnterCancelled:$,onLeave:N,onLeaveCancelled:_,onBeforeAppear:S=V,onAppear:F=K,onAppearCancelled:g=$}=t,P=(y,O,x)=>{qt(y,O?u:l),qt(y,O?c:s),x&&x()},j=(y,O)=>{y._isLeaving=!1,qt(y,f),qt(y,v),qt(y,d),O&&O()},ee=y=>(O,x)=>{const Y=y?F:K,oe=()=>P(O,y,x);Kt(Y,[O,oe]),Gi(()=>{qt(O,y?a:i),$t(O,y?u:l),Zi(Y)||Qi(O,o,C,oe)})};return ye(t,{onBeforeEnter(y){Kt(V,[y]),$t(y,i),$t(y,s)},onBeforeAppear(y){Kt(S,[y]),$t(y,a),$t(y,c)},onEnter:ee(!1),onAppear:ee(!0),onLeave(y,O){y._isLeaving=!0;const x=()=>j(y,O);$t(y,f),Sc(),$t(y,d),Gi(()=>{y._isLeaving&&(qt(y,f),$t(y,v),Zi(N)||Qi(y,o,B,x))}),Kt(N,[y,x])},onEnterCancelled(y){P(y,!1),Kt($,[y])},onAppearCancelled(y){P(y,!0),Kt(g,[y])},onLeaveCancelled(y){j(y),Kt(_,[y])}})}function yc(e){if(e==null)return null;if(be(e))return[or(e.enter),or(e.leave)];{const t=or(e);return[t,t]}}function or(e){return xo(e)}function $t(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Cn]||(e[Cn]=new Set)).add(t)}function qt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[Cn];n&&(n.delete(t),n.size||(e[Cn]=void 0))}function Gi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let wc=0;function Qi(e,t,n,o){const r=e._endId=++wc,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=xc(e,t);if(!s)return o();const c=s+"end";let u=0;const f=()=>{e.removeEventListener(c,d),i()},d=v=>{v.target===e&&++u>=a&&f()};setTimeout(()=>{u<a&&f()},l+1),e.addEventListener(c,d)}function xc(e,t){const n=window.getComputedStyle(e),o=k=>(n[k]||"").split(", "),r=o(`${Tt}Delay`),i=o(`${Tt}Duration`),s=Ji(r,i),l=o(`${kn}Delay`),a=o(`${kn}Duration`),c=Ji(l,a);let u=null,f=0,d=0;t===Tt?s>0&&(u=Tt,f=s,d=i.length):t===kn?c>0&&(u=kn,f=c,d=a.length):(f=Math.max(s,c),u=f>0?s>c?Tt:kn:null,d=u?u===Tt?i.length:a.length:0);const v=u===Tt&&/\b(transform|all)(,|$)/.test(o(`${Tt}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:v}}function Ji(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>es(n)+es(e[o])))}function es(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Sc(){return document.body.offsetHeight}function kc(e,t,n){const o=e[Cn];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const rr=Symbol("_vod"),ts={beforeMount(e,{value:t},{transition:n}){e[rr]=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[rr]:"none"}const Cc=Symbol("");function Ic(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&&ir(o,s,"");for(const s in n)ir(o,s,n[s])}else if(i){if(t!==n){const s=o[Cc];s&&(n+=";"+s),o.cssText=n}}else t&&e.removeAttribute("style");rr in e&&(o.display=r)}const ns=/\s*!important$/;function ir(e,t,n){if(ne(n))n.forEach(o=>ir(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Ec(e,t);ns.test(n)?e.setProperty(Ve(o),n.replace(ns,""),"important"):e[o]=n}}const os=["Webkit","Moz","ms"],sr={};function Ec(e,t){const n=sr[t];if(n)return n;let o=je(t);if(o!=="filter"&&o in e)return sr[t]=o;o=jn(o);for(let r=0;r<os.length;r++){const i=os[r]+o;if(i in e)return sr[t]=i}return t}const rs="http://www.w3.org/1999/xlink";function Tc(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(rs,t.slice(6,t.length)):e.setAttributeNS(rs,t,n);else{const i=El(t);n==null||i&&!Tr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function $c(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=Tr(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function rn(e,t,n,o){e.addEventListener(t,n,o)}function Pc(e,t,n,o){e.removeEventListener(t,n,o)}const is=Symbol("_vei");function Mc(e,t,n,o,r=null){const i=e[is]||(e[is]={}),s=i[t];if(o&&s)s.value=o;else{const[l,a]=Oc(t);if(o){const c=i[t]=zc(o,r);rn(e,l,c,a)}else s&&(Pc(e,l,s,a),i[t]=void 0)}}const ss=/(?:Once|Passive|Capture)$/;function Oc(e){let t;if(ss.test(e)){t={};let o;for(;o=e.match(ss);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ve(e.slice(2)),t]}let lr=0;const Lc=Promise.resolve(),Ac=()=>lr||(Lc.then(()=>lr=0),lr=Date.now());function zc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Ze(jc(o,n.value),t,5,[o])};return n.value=e,n.attached=Ac(),n}function jc(e,t){if(ne(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 ls=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Dc=(e,t,n,o,r,i,s,l,a)=>{const c=r==="svg";t==="class"?kc(e,o,c):t==="style"?Ic(e,n,o):On(t)?vo(t)||Mc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Rc(e,t,o,c))?$c(e,t,o,i,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Tc(e,t,o,c))};function Rc(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&ls(t)&&ie(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 ls(t)&&we(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Bc(e,t){const n=xe(e);class o extends ar{constructor(i){super(n,i,t)}}return o.def=n,o}const Nc=typeof HTMLElement<"u"?HTMLElement:class{};class ar extends Nc{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),xt(()=>{this._connected||(fs(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&&!ne(i))for(const a in i){const c=i[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=xo(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=ne(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=xo(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(Ve(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ve(t),n+""):n||this.removeAttribute(Ve(t))))}_update(){fs(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Q(this._def,ye({},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),Ve(i)!==i&&o(Ve(i),s)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof ar){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 as=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ne(t)?n=>Dn(t,n):t};function Vc(e){e.target.composing=!0}function cs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const cr=Symbol("_assign"),Fc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[cr]=as(r);const i=o||r.props&&r.props.type==="number";rn(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=wo(l)),e[cr](l)}),n&&rn(e,"change",()=>{e.value=e.value.trim()}),t||(rn(e,"compositionstart",Vc),rn(e,"compositionend",cs),rn(e,"change",cs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e[cr]=as(i),e.composing)return;const s=r||e.type==="number"?wo(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Hc=["ctrl","shift","alt","meta"],Wc={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)=>Hc.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=Wc[t[s]];if(l&&l(r,t))return}return e(r,...i)})},Kc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},us=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const i=Ve(r.key);if(t.some(s=>s===i||Kc[s]===i))return e(r)})},qc=ye({patchProp:Dc},bc);let ds;function Uc(){return ds||(ds=Za(qc))}const fs=(...e)=>{Uc().render(...e)};var ps;const ur=typeof window<"u",Yc=e=>typeof e=="string",Pt=()=>{};ur&&((ps=window==null?void 0:window.navigator)!=null&&ps.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function po(e){return typeof e=="function"?e():Z(e)}function hs(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 Xc(e,t={}){let n,o,r=Pt;const i=l=>{clearTimeout(l),r(),r=Pt};return l=>{const a=po(e),c=po(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 Zc(e,t=!0,n=!0,o=!1){let r=0,i,s=!0,l=Pt,a;const c=()=>{i&&(clearTimeout(i),i=void 0,l(),l=Pt)};return f=>{const d=po(e),v=Date.now()-r,k=()=>a=f();if(c(),d<=0)return r=Date.now(),k();if(v>d&&(n||!s))r=Date.now(),k();else if(t)return new Promise((C,B)=>{l=o?B:C,i=setTimeout(()=>{r=Date.now(),s=!0,C(k()),c()},d-v)});return!n&&!i&&(i=setTimeout(()=>s=!0,d)),s=!1,a}}function Gc(e){return e}function dr(e){return Pr()?(Pl(e),!0):!1}function Ae(e,t=200,n={}){return hs(Xc(t,n),e)}function gs(e,t=200,n=!1,o=!0,r=!1){return hs(Zc(t,n,o,r),e)}function ms(e,t=!0){tr()?Qe(e):t?e():xt(e)}function Ut(e){var t;const n=po(e);return(t=n==null?void 0:n.$el)!=null?t:n}const En=ur?window:void 0,Qc=ur?window.document:void 0;function Mt(...e){let t,n,o,r;if(Yc(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=En):[t,n,o,r]=e,!t)return Pt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,f,d)=>(u.addEventListener(f,d,r),()=>u.removeEventListener(f,d,r)),a=fe(()=>Ut(t),u=>{s(),u&&i.push(...n.flatMap(f=>o.map(d=>l(u,f,d))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return dr(c),c}function vs(e,t=!1){const n=X(),o=()=>n.value=!!e();return o(),ms(o,t),n}const bs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_s="__vueuse_ssr_handlers__";bs[_s]=bs[_s]||{};function ys({document:e=Qc}={}){if(!e)return X("visible");const t=X(e.visibilityState);return Mt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var ws=Object.getOwnPropertySymbols,Jc=Object.prototype.hasOwnProperty,eu=Object.prototype.propertyIsEnumerable,tu=(e,t)=>{var n={};for(var o in e)Jc.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&ws)for(var o of ws(e))t.indexOf(o)<0&&eu.call(e,o)&&(n[o]=e[o]);return n};function nu(e,t,n={}){const o=n,{window:r=En}=o,i=tu(o,["window"]);let s;const l=vs(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},c=fe(()=>Ut(e),f=>{a(),l.value&&r&&f&&(s=new ResizeObserver(t),s.observe(f,i))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return dr(u),{isSupported:l,stop:u}}function xs(e,t={width:0,height:0},n={}){const{window:o=En,box:r="content-box"}=n,i=se(()=>{var a,c;return(c=(a=Ut(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=X(t.width),l=X(t.height);return nu(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&i.value){const u=Ut(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:d})=>f+d,0),l.value=u.reduce((f,{blockSize:d})=>f+d,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),fe(()=>Ut(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function fr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=En}=n,l=vs(()=>s&&"IntersectionObserver"in s);let a=Pt;const c=l.value?fe(()=>({el:Ut(e),root:Ut(o)}),({el:f,root:d})=>{if(a(),!f)return;const v=new IntersectionObserver(t,{root:d,rootMargin:r,threshold:i});v.observe(f),a=()=>{v.disconnect(),a=Pt}},{immediate:!0,flush:"post"}):Pt,u=()=>{a(),c()};return dr(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 ou=Object.defineProperty,ks=Object.getOwnPropertySymbols,ru=Object.prototype.hasOwnProperty,iu=Object.prototype.propertyIsEnumerable,Cs=(e,t,n)=>t in e?ou(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,su=(e,t)=>{for(var n in t||(t={}))ru.call(t,n)&&Cs(e,n,t[n]);if(ks)for(var n of ks(t))iu.call(t,n)&&Cs(e,n,t[n]);return e};su({linear:Gc},{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 Is(e={}){const{window:t=En,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(),ms(a),Mt("resize",a,{passive:!0}),r&&Mt("orientationchange",a,{passive:!0}),{width:s,height:l}}const lu=(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))}},sn={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>lu(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},au={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},cu={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},uu=xe({__name:"AutoNext",props:{hasNext:{type:Boolean},seconds:{}},emits:["next","hide"],setup(e,{emit:t}){const n=e,o=t,r=X(null),i=X(null),s=X(!1),l=X(!1),a=X(n.seconds),c=X(n.seconds<0),u=X(n.seconds);return Qe(()=>{let f;fr(i,d=>{l.value=d.some(v=>v.isIntersecting),c.value=n.seconds<0,a.value=n.seconds,u.value=n.seconds,f&&(clearInterval(f),f=void 0),!(!l.value||c.value)&&(f=setInterval(()=>{a.value-=1,a.value<=0&&(clearInterval(f),f=void 0,o("next"))},1e3))}),fr(r,d=>{s.value=d.some(v=>v.isIntersecting)}),Vt(()=>f&&clearInterval(f))}),(f,d)=>(L(),U("div",{ref_key:"root",ref:r,class:"h-full w-full flex justify-center items-center"},[lt(G("div",au,[f.hasNext?(L(),U("div",cu,[l.value?(L(),U("div",{key:0,class:"absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50",style:Oe(c.value?{}:{animation:`auto-next ${u.value}s linear forwards`})},null,4)):Te("",!0),lt((L(),U("button",{ref_key:"nextButton",ref:i,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 totalDuration-200",onClick:d[0]||(d[0]=et(()=>o("next"),["stop"]))},[Ct(Xe(c.value?"Next":`Next in ${a.value}`),1)])),[[Z(sn)]])])):Te("",!0),lt((L(),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 totalDuration-200",onClick:d[1]||(d[1]=et(()=>o("hide"),["stop"]))},[Ct(" Hide ")])),[[Z(sn)]])],512),[[ts,s.value||!f.hasNext]])],512))}}),du=`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
21
- `,pe=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Es=pe(uu,[["styles",[du]]]),fu=Object.freeze(Object.defineProperty({__proto__:null,default:Es},Symbol.toStringTag,{value:"Module"}));function pu({touchDevice:e}){const t=X(!1);let n=0;return no("busy:touchDevice",e),no("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function pr(){const e=Ft("busy:touchDevice"),t=Ft("setBusyState");let n=!1;return Vt(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const hu={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=xe({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=t,r=pr();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)=>lt((L(),ge(va(c.href?"a":"button"),ao(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:re(()=>[G("div",hu,[Se(c.$slots,"default")])]),_:3},16,["class"])),[[Z(sn),c.disabled?0:15]])}}),gu=Object.freeze(Object.defineProperty({__proto__:null,default:tt},Symbol.toStringTag,{value:"Module"})),mu={},vu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},bu=[G("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 _u(e,t){return L(),U("svg",vu,bu)}const Ts=pe(mu,[["render",_u]]),yu=Object.freeze(Object.defineProperty({__proto__:null,default:Ts},Symbol.toStringTag,{value:"Module"}));class wu{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 xu(){const e=new wu;return Vt(()=>e.dispose()),no("keyController",e),e}function ho(e){const t=Ft("keyController");Qe(()=>t.addListener(e)),Vt(()=>t.removeListener(e))}const Su={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},ku={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3"},Cu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},$s=xe({__name:"BottomSheet",props:nn({name:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Sn(e,"modelValue");ho({onKeyDown:o});const n=pr();fe(t,r=>n(r));function o(r){t.value&&r.key==="Escape"&&(t.value=!1,r.preventDefault())}return(r,i)=>(L(),U("div",{class:Ce(["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(on,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:re(()=>[t.value?(L(),U("div",{key:0,class:"inline-flex flex-col h-[30rem] 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"]))},[G("div",Su,[Q(tt,{transparent:"",onClick:i[0]||(i[0]=()=>t.value=!1)},{default:re(()=>[Q(Ts)]),_:1}),G("div",ku,Xe(r.name),1),Se(r.$slots,"actions")]),G("div",Cu,[Se(r.$slots,"default")])],32)):Te("",!0)]),_:3})],2))}}),Iu=Object.freeze(Object.defineProperty({__proto__:null,default:$s},Symbol.toStringTag,{value:"Module"})),Eu=["min","max","step"],Tu={class:"flex-shrink-0"},hr=pe(xe({__name:"InputPercentage",props:nn({min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Sn(e,"modelValue"),n=se({get(){return t.value},set(o){t.value=+o}});return(o,r)=>(L(),U("div",{class:Ce(["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}%`})},[lt(G("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,Eu),[[Fc,n.value]]),G("p",Tu,[Se(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
- `]]]),$u=Object.freeze(Object.defineProperty({__proto__:null,default:hr},Symbol.toStringTag,{value:"Module"})),Pu=["onClick","onKeyup"],Tn=xe({__name:"InputSelect",props:nn({items:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=Sn(e,"modelValue"),o=X(null),r=X({width:"",left:""});Qe(()=>{let s=!1;fe(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)=>(L(),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:{}},[G("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Oe(r.value)},null,4),(L(!0),U(ke,null,vn(t.items,(a,c)=>lt((L(),U("div",{key:c,tabindex:"0",class:Ce(["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:[us(()=>i(c),["enter"]),us(()=>i(c),["space"])]},[Ct(Xe(a),1)],42,Pu)),[[Z(sn),30]])),128))],512))}}),Mu=Object.freeze(Object.defineProperty({__proto__:null,default:Tn},Symbol.toStringTag,{value:"Module"})),Ou={class:"flex items-center mb-8 last:mb-0"},Lu={class:"flex-grow overflow-hidden"},Yt=xe({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(L(),U("div",Ou,[G("div",{class:Ce(["flex-shrink-0 w-[4.8rem]",{"opacity-50":t.disabled}])},Xe(t.label),3),G("div",Lu,[Se(t.$slots,"default")])]))}}),Au=Object.freeze(Object.defineProperty({__proto__:null,default:Yt},Symbol.toStringTag,{value:"Module"})),zu={},ju={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Du=[G("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 Ru(e,t){return L(),U("svg",ju,Du)}const Ps=pe(zu,[["render",Ru]]),Bu=Object.freeze(Object.defineProperty({__proto__:null,default:Ps},Symbol.toStringTag,{value:"Module"})),Nu={},Vu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Fu=[G("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),G("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Hu(e,t){return L(),U("svg",Vu,Fu)}const Ms=pe(Nu,[["render",Hu]]),Wu=Object.freeze(Object.defineProperty({__proto__:null,default:Ms},Symbol.toStringTag,{value:"Module"}));function Ku(e){if(e)try{return JSON.parse(e)}catch{return}}function qu(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||{}),Ot=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Ot||{});const Uu=.25,Yu=5,Xu=.25,$n=.25,Pn=5,Zu=.05,Gu=0,Qu=4,Os=5;function Ju(e){var _,S,F,g,P,j,ee;const{titleName:t,isWebtoon:n}=e,o=se(()=>t.value?qu(t.value):location.hostname),r=X(ed(`tkr:${o.value}`)),i=y=>{r.value=y;const O=`tkr:${o.value}`;!y||!Object.keys(y).length?localStorage.removeItem(O):localStorage.setItem(O,JSON.stringify(y))},s=y=>{if(!r.value){i(y);return}const O={...r.value};Object.entries(y).forEach(([x,Y])=>{Y===void 0?delete O[x]:O[x]=Y}),i(O)},l=X(((_=r.value)==null?void 0:_.style)??e.defaultStyle??Ot.longStrip),a=X(((S=r.value)==null?void 0:S.direction)??e.defaultDirection??ut.vertical),c=X((F=r.value)==null?void 0:F.gap),u=X(((g=r.value)==null?void 0:g.speed)??1),f=X(((P=r.value)==null?void 0:P.zoom)??1),d=X(((j=r.value)==null?void 0:j.breakFirst)??!1),v=X(((ee=r.value)==null?void 0:ee.autoNextSeconds)??Os),k=se({get(){return n.value?Ot.longStrip:l.value},set:y=>{l.value=y,s({style:y}),y!==Ot.longStrip&&a.value===ut.vertical&&(C.value=ut.rtl)}}),C=se({get:()=>n.value?ut.vertical:a.value,set:y=>{a.value=y,s({direction:y})}}),B=se({get:()=>c.value!==void 0?c.value:e.maybeWebtoon.value||k.value!==Ot.longStrip?0:1,set(y){c.value=y,s({gap:y})}}),V=se({get:()=>u.value,set(y){u.value=y,s({speed:y===1?void 0:y})}}),K=se({get:()=>f.value,set(y){f.value=y,s({zoom:y===1?void 0:y})}}),$=se({get:()=>d.value,set(y){d.value=y,s({breakFirst:y?!0:void 0})}}),N=se({get:()=>v.value,set(y){v.value=y,s({autoNextSeconds:y===Os?void 0:y})}});return{direction:C,style:k,gap:B,speed:V,zoom:K,isLongStrip:se(()=>k.value===Ot.longStrip),isDouble:se(()=>k.value===Ot.double),isRTL:se(()=>C.value===ut.rtl),isVertical:se(()=>C.value===ut.vertical),breakFirst:$,autoNextSeconds:N}}function ed(e){const t=localStorage.getItem(e),n=Ku(t),o={};return n?(n.style!==void 0&&Object.values(Ot).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>=Gu&&n.gap<=Qu&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=$n&&n.speed<=Pn&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=$n&&n.zoom<=Pn&&(o.zoom=n.zoom),n.breakFirst===!0&&(o.breakFirst=!0),n.autoNextSeconds<=5&&n.autoNextSeconds>=-1&&(o.autoNextSeconds=n.autoNextSeconds),Object.keys(o).length?o:void 0):o}const Ls=xe({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},autoNextSeconds:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:autoNextSeconds","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=e,o=t,r=X(!1),i=se(()=>n.name??location.hostname);ho({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)=>(L(),U(ke,null,[Q(tt,{title:"Reader settings (S)",disabled:a.disabled,onClick:c[0]||(c[0]=()=>r.value=!0)},{default:re(()=>[Q(Ms)]),_:1},8,["disabled"]),Q($s,{modelValue:r.value,"onUpdate:modelValue":c[6]||(c[6]=u=>r.value=u),name:i.value},{actions:re(()=>[Q(tt,{transparent:"",onClick:l},{default:re(()=>[Q(Ps)]),_:1})]),default:re(()=>[Q(Yt,{label:"Style"},{default:re(()=>[Q(Tn,{"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(Yt,{label:"Direction"},{default:re(()=>[Q(Tn,{"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(Yt,{label:"Gap"},{default:re(()=>[Q(Tn,{"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(Yt,{label:"Auto Next"},{default:re(()=>[Q(Tn,{"model-value":a.autoNextSeconds<0?0:a.autoNextSeconds,items:["None","1s","2s","3s","4s","5s"],"onUpdate:modelValue":c[4]||(c[4]=u=>o("update:autoNextSeconds",u===0?-1:u))},null,8,["model-value"])]),_:1}),Q(Yt,{label:"Speed"},{default:re(()=>[Q(hr,{"model-value":a.speed,min:Z(Uu),max:Z(Yu),step:Z(Xu),suffix:"x","onUpdate:modelValue":c[5]||(c[5]=u=>o("update:speed",u))},{suffix:re(()=>[Ct(Xe(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),Q(Yt,{label:"Zoom"},{default:re(()=>[Q(hr,{"model-value":Math.ceil(a.zoom*100),min:Z($n)*100,max:Z(Pn)*100,step:Z(Zu)*100,"onUpdate:modelValue":s},{suffix:re(()=>[Ct(Xe(Math.ceil(a.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64))}}),td=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),nd={},od={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},rd=[G("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[G("circle",{cx:"14",cy:"14",r:"12"}),G("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function id(e,t){return L(),U("svg",od,rd)}const As=pe(nd,[["render",id]]),sd=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"})),ld={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"},ad={class:"block w-4 h-4"},cd={class:"w-12"},zs=xe({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>t.zoom!==1?(L(),U("button",ld,[G("div",ad,[Q(As)]),G("div",cd,Xe(Math.ceil(t.zoom*100))+"%",1)])):Te("",!0)}}),ud=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"}));async function ln(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 ln(e-1,t,n);r(i)},t)})}const dd={},fd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},pd=[rc('<circle cx="18" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".67" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="12" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".33" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="6" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin="0" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle>',3)];function hd(e,t){return L(),U("svg",fd,pd)}const js=pe(dd,[["render",hd]]),gd=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),md={},vd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},bd=[G("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function _d(e,t){return L(),U("svg",vd,bd)}const Ds=pe(md,[["render",_d]]),yd=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),wd=["aria-hidden"],xd=["onClick"],Sd={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"},kd={class:"whitespace-nowrap"},gr=xe({__name:"ButtonDropdown",props:nn({label:{},title:{},items:{},disabled:{type:Boolean},canLoadItems:{type:Boolean},loadItems:{type:Function}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:nn(["select"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,r=Sn(e,"modelValue"),i=X(null),s=X(!1),l=X(!1),a=X(!1),c=X(!1),u=X(!1),f={mounted:g=>{var P;(P=g.children[r.value])==null||P.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}};ho({onKeyDown:V});const d=pr();async function v(){if(!n.items.length&&(s.value||await k(),!n.items.length)){s.value=!1;return}s.value=!s.value,d(s.value),s.value?(C(),$(i.value)):setTimeout(N,250)}async function k(){l.value||n.items.length||!n.canLoadItems||!n.loadItems||(l.value=!0,await n.loadItems(),l.value=!1)}function C(){const g=i.value;if(g){const P=g.getBoundingClientRect(),j=P.x+P.width/2;a.value=P.y>window.innerHeight/2,c.value=j<window.innerWidth/3,u.value=j>window.innerWidth/3*2}}function B(g,P){v(),g!=r.value&&(r.value=g,o("select",g,P))}function V(g){s.value&&g.key==="Escape"&&(v(),g.preventDefault())}let K=[];function $(g){const P=window.getComputedStyle(g).zIndex,j=g.style.zIndex;(!P||!(+P>0))&&((!g.parentElement||g.parentElement.childElementCount>1)&&(g.style.zIndex="1",K.push({el:g,zIndex:j})),g.parentElement&&$(g.parentElement))}function N(){K.forEach(({el:g,zIndex:P})=>{g.style.zIndex=P??""}),K=[]}let _=!1;function S(){_||(_=!0,d(!0,{desktopOnly:!0}))}function F(){_&&(_=!1,d(!1,{desktopOnly:!0}))}return(g,P)=>(L(),U("div",{ref_key:"root",ref:i,class:"select-none relative inline-flex"},[s.value?(L(),U("div",{key:0,class:"fixed-screen bg-transparent",onClick:v})):Te("",!0),g.items.length?(L(),ge(on,{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:re(()=>[s.value?lt((L(),U("ul",{key:0,ref:"list","aria-hidden":!s.value,class:Ce(["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:P[0]||(P[0]=et(()=>{},["stop"]))},[(L(!0),U(ke,null,vn(g.items,(j,ee)=>lt((L(),U("li",{key:ee,tabindex:"-1",class:Ce(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":ee===r.value}]),onClick:y=>B(ee,y)},[G("div",{class:Ce(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":ee>0}])},[Se(g.$slots,"item",{item:j},()=>[Ct(Xe(j),1)])],2)],10,xd)),[[Z(sn),30]])),128))],42,wd)),[[f]]):Te("",!0)]),_:3})):Te("",!0),lt((L(),U("button",ao({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":g.disabled||l.value}]},g.title?{title:g.title}:{},{onClick:et(v,["stop"]),onMouseenter:S,onMouseleave:F}),[G("div",Sd,[G("span",kd,Xe(g.label),1),g.items.length||g.canLoadItems?(L(),U("span",{key:0,class:Ce(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":a.value}]),"aria-hidden":"true"},[l.value?(L(),ge(js,{key:0})):(L(),ge(Ds,{key:1}))],2)):Te("",!0)])],16)),[[Z(sn),30]])],512))}}),Cd=Object.freeze(Object.defineProperty({__proto__:null,default:gr},Symbol.toStringTag,{value:"Module"})),Rs=xe({__name:"ChapterNav",props:{data:{},chapterSpec:{},touchDevice:{type:Boolean}},emits:["getHiddenChapters"],setup(e,{emit:t}){const n=e,o=t;async function r(){o("getHiddenChapters"),await ln(50,50,()=>n.data.chapters.length?!0:void 0)}function i(l,a){var c,u,f;(f=(u=(c=n.data)==null?void 0:c.chapters)==null?void 0:u[l])==null||f.select(s(a))}function s(l){return!n.touchDevice&&(l.ctrlKey||l.metaKey)}return(l,a)=>{var c;return L(),ge(gr,{modelValue:l.data.activeIndex,label:l.data.activeLabel,title:"Select chapter",items:l.data.chapters,"can-load-items":!!((c=l.chapterSpec)!=null&&c.trigger),"load-items":r,onSelect:i},{item:re(({item:u})=>[Ct(Xe(u.label),1)]),_:1},8,["modelValue","label","items","can-load-items"])}}}),Id=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"})),Ed={},Td={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},$d=[G("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 Pd(e,t){return L(),U("svg",Td,$d)}const Bs=pe(Ed,[["render",Pd]]),Md=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"})),Ns=xe({__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);fe(()=>t.direction,()=>{i(),o.value=!0,r()}),Qe(()=>{i(),r();let s;const l=ys();fe(l,a=>{a!=="visible"?s=Date.now():Date.now()-s>7e3&&(o.value=!0,r())})});function i(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,l)=>(L(),ge(on,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:re(()=>[o.value?(L(),U("div",{key:0,class:Ce(["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}])},[Q(Bs)],2)):Te("",!0)]),_:1}))}}),Od=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"})),Ld=G("div",{class:"fixed-screen bg-black bg-opacity-90"},null,-1),Vs=xe({__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=xs(r),u=Ae(()=>{s({width:c.width.value,height:c.height.value})},50);u(),fe(c.width,u),fe(c.height,u)});function s(c){var d;const u=(d=r.value)==null?void 0:d.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=[],d=[];let v=0,k=0;const C=50,B=25;c.forEach(_=>{var j;const S=(j=_.getAttribute("title"))==null?void 0:j.trim(),F=_.getBoundingClientRect();if(!S||!F.height||!F.width)return;const g=Math.ceil((F.top-10)/C),P=Math.ceil((F.left-10)/C);d.push({isTour:!1,title:S,rect:F,fromX:P,toX:Math.max(P+1,Math.ceil((F.right+10)/C)),fromY:g,toY:Math.max(g+1,Math.ceil((F.bottom+10)/C))})}),d.forEach(_=>{for(let S=_.fromY;S<_.toY;S++){f[S]??(f[S]=[]);for(let F=_.fromX;F<_.toX;F++)f[S][F]=_;_.toY>v+1&&(v=_.toY-1),_.toX>k+1&&(k=_.toX-1)}});let V=k/2;d.forEach(_=>{_.isAlignRight=_.fromX>V});const K=(_,S)=>{f[S]??(f[S]=[]);const F=S>=_.toY;if(_.isTour)for(let g=_.fromX;g<_.toX;g++)delete f[_.fromY][g],_.fromY=S,_.toY=S+(F?1:-1),f[S][g]=_;else{const g=_.isAlignRight?_.fromX-3:_.fromX,P=g+3;_.helpItem={fromX:g,toX:P,fromY:S,toY:S+1,isTour:!0,isAlignRight:_.isAlignRight};for(let j=g;j<P;j++)f[S][j]=_.helpItem}},$=(_,S)=>{if(S>v||S<0)return!1;const F=S>=_.toY,g=f[S];if(!g)return K(_,S),!0;const P=g[_.fromX];if(P&&!P.isTour)return!1;if(P&&P.isTour)return $(P,F?S+1:S-1)?(K(_,S),!0):!1;if(!P){const j=_.isAlignRight?-1:1;return g[_.fromX+j]||g[_.fromX+j*2]?$(_,F?S+1:S-1):(K(_,S),!0)}return!1};d.forEach(_=>{if(!$(_,_.toY)){if(_.isAlignRight){const S=f[_.fromY]??[];if(!S.slice(_.fromX-3,_.fromX).filter(Boolean).length){const g=_.fromX-3,P=_.fromX;_.helpItem={isTour:!0,isAlignRight:!0,fromX:g,toX:P,fromY:_.fromY,toY:_.toY};for(let j=_.fromX-3;j<_.fromX;j++)S[j]=_.helpItem;return}}$(_,_.fromY-1)}});const N=[];return d.forEach(_=>{const{title:S,helpItem:F,rect:g,isAlignRight:P,fromX:j,fromY:ee,toY:y}=_;if(!S||!F||!g)return;const O=F.fromY>=y,x=F.toY<=ee;N.push({title:a(S),style:{top:O?`${g.bottom+(F.fromY-y)*C+B}px`:x?void 0:`${g.top+8}px`,bottom:x?`${u.height-g.top+(F.toY-ee)*C+B}px`:void 0,left:P?void 0:`${g.left}px`,right:P?O?`${u.width-g.right}px`:`${u.width-g.right+g.width+B}px`:void 0},arrowStyle:{width:x||O?"2px":`${Math.abs(F.toX-j)*C+B-5}px`,height:x||O?`${(O?F.fromY-y:ee-F.toY)*C+B}px`:"2px",top:O?`${g.bottom}px`:x?void 0:`${g.top+20}px`,bottom:x?`${u.height-g.top}px`:void 0,left:P?void 0:`${g.left+g.width/2}px`,right:P?O?`${u.width-g.right+g.width/2}px`:`${u.width-g.right+g.width}px`:void 0}})}),N}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(L(),U(ke,null,[Ld,G("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"]))},[(L(!0),U(ke,null,vn(i.value,f=>(L(),U(ke,{key:f.title},[G("div",{class:"absolute",style:Oe(f.style)},Xe(f.title),5),G("div",{class:"absolute bg-stone-300 rounded-lg",style:Oe(f.arrowStyle)},null,4)],64))),128))],512)],64))}}),Ad=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"})),Fs=xe({__name:"PageNav",props:nn({disabled:{type:Boolean},pages:{},totalImgs:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=Sn(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)=>(L(),ge(gr,{"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"]))}}),zd=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),jd={},Dd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Rd=[G("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),G("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 Bd(e,t){return L(),U("svg",Dd,Rd)}const mr=pe(jd,[["render",Bd]]),Nd=Object.freeze(Object.defineProperty({__proto__:null,default:mr},Symbol.toStringTag,{value:"Module"})),Vd={},Fd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Hd=[G("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 Wd(e,t){return L(),U("svg",Fd,Hd)}const vr=pe(Vd,[["render",Wd]]),Kd=Object.freeze(Object.defineProperty({__proto__:null,default:vr},Symbol.toStringTag,{value:"Module"})),Hs=pe(xe({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=X(0);return fe(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>n.value?(L(),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?(L(),ge(vr,{key:0})):(L(),ge(mr,{key:1}))])):Te("",!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
- `]]]),qd=Object.freeze(Object.defineProperty({__proto__:null,default:Hs},Symbol.toStringTag,{value:"Module"})),Ws=xe({__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=X(null),i=X(Math.min(Pn,Math.max($n,n.zoom))),s=X(!1),l=X(!1),a=X(!1);fe(()=>n.zoom,x=>O(x)),Qe(()=>{n.touchDevice?Mt(r,"touchstart",B):(Mt(r,"mousedown",d),Mt(window,"wheel",F))}),ho({onKeyDown:x=>{var Y;if(!n.busy&&((Y=r.value)==null||Y.focus(),!(x.key==="Meta"||x.key==="Control")&&(x.ctrlKey||x.metaKey)))switch(x.key){case"0":O(1);break;case"-":O(i.value-.2),x.preventDefault();break;case"=":case"+":O(i.value+.2),x.preventDefault();break}}});function c(x){l.value!==x&&(l.value=x,x?n.playController.pause():(o("dragEnd"),n.playController.resume()))}let u={x:0,y:0},f={x:0,y:0};function d(x){x.button===0&&(u={x:x.clientX,y:x.clientY},f={x:r.value.scrollLeft,y:r.value.scrollTop},window.addEventListener("mousemove",v),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",v),setTimeout(()=>c(!1))},{once:!0}),x.preventDefault(),x.stopPropagation())}function v(x){c(!0);const Y=x.clientX-u.x,oe=x.clientY-u.y,w=r.value;w.scrollLeft=f.x-Y,w.scrollTop=f.y-oe}let k=!1,C={distance:0,zoom:i.value,x:0,y:0};function B(x){n.busy||(k=x.touches.length===2,k&&(c(!0),x.stopPropagation(),x.preventDefault(),C={distance:g(x),zoom:i.value,x:(x.touches[0].clientX+x.touches[1].clientX)/2,y:(x.touches[0].clientY+x.touches[1].clientY)/2}),(k||n.playController.isPlaying.value&&n.longStrip)&&(window.addEventListener("touchmove",K),window.addEventListener("touchend",V,{once:!0})))}function V(){if(window.removeEventListener("touchmove",K),k){c(!1),k=!1;return}if(!l.value)return;const x=Ae(()=>{c(!1),r.value.removeEventListener("scroll",oe)},200),Y=setTimeout(x,200);r.value.addEventListener("scroll",oe);function oe(){clearTimeout(Y),x()}}function K(x){if(c(!0),k){x.stopPropagation(),x.preventDefault();const oe=g(x)/C.distance;O(Math.ceil(oe*C.zoom*100)/100,C)}}const $=Ae(()=>s.value=!1,100);let N=!1,_=!1;const S=Ae(()=>{N=!1,_=!1},30);function F(x){if(!n.busy){if(N||(N=!0,_=x.ctrlKey||x.metaKey),S(),_){x.stopPropagation(),x.preventDefault();const Y=Math.ceil((i.value+x.deltaY*-.01)*100)/100;O(Y,{x:x.clientX,y:x.clientY});return}n.horizontal&&(s.value||(s.value=!0),$(),x.deltaY&&(r.value&&(r.value.scrollLeft+=x.deltaY*(n.rtl?-1:1)),x.stopPropagation()))}}function g(x){return Math.hypot(x.touches[0].clientX-x.touches[1].clientX,x.touches[0].clientY-x.touches[1].clientY)}function P(x){!l.value&&!a.value&&o("click",x)}let j;const ee=Ae(()=>{a.value=!1,j=void 0},150);function y(){if(!a.value){const x=r.value;if(!x)return;const Y=x.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;Y&&(j={el:Y,rect:Y.getBoundingClientRect()},a.value=!0)}if(j)return ee(),j}async function O(x,Y){const oe=r.value,w=Math.min(Pn,Math.max($n,x));if(!oe||i.value===w)return;const H=y();if(!H)return;const ae=(Y==null?void 0:Y.x)??oe.clientWidth/2,de=(Y==null?void 0:Y.y)??oe.clientHeight/2;i.value=w,o("update:zoom",w),await xt();const{el:_e,rect:me}=H,We=_e.offsetWidth/me.width,nt=_e.offsetHeight/me.height;oe.scrollLeft=_e.offsetLeft-me.left*We+ae*(We-1),oe.scrollTop=_e.offsetTop-me.top*nt+de*(nt-1)}return(x,Y)=>(L(),U("div",{ref_key:"root",ref:r,tabindex:"0",class:Ce(["w-full h-full overflow-auto scrollbar-none overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!x.longStrip&&(l.value||s.value||a.value),"cursor-grabbing":!x.touchDevice&&l.value,"overflow-hidden":a.value}]),style:Oe({"font-size":`${i.value}px`}),onClick:et(P,["stop"])},[Se(x.$slots,"default")],6))}}),Ud=Object.freeze(Object.defineProperty({__proto__:null,default:Ws},Symbol.toStringTag,{value:"Module"})),Ks=xe({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=t,o=X(null),r=X(!1);return Qe(async()=>{await xt();let i=!1;fr(o,s=>{const l=s.some(a=>a.isIntersecting);l!==r.value&&(r.value=l),l&&!i&&n("visible")})}),(i,s)=>(L(),U("div",{ref_key:"root",ref:o},[Se(i.$slots,"default",{visible:r.value})],512))}}),Yd=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),Xd=`.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
- `,Zd={},Gd={class:"loading-indicator"};function Qd(e,t){return L(),U("div",Gd)}const br=pe(Zd,[["render",Qd],["styles",[Xd]]]),Jd=Object.freeze(Object.defineProperty({__proto__:null,default:br},Symbol.toStringTag,{value:"Module"}));function ef({pageIndex:e,isLongStrip:t}){let n=e.value,o=e.value+3;const r=X(n),i=X(o),s=Ae(l,50);fe(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 tf={key:0,class:"img img--loading"},nf=["src"],of=["src"],rf=["data-index"],qs=pe(xe({__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=X(null),i=Is(),s=se(()=>{const{width:d,height:v}=i,k=n.isLongStrip?n.isVertical?d.value:v.value:Math.min(d.value,v.value);return Math.min(4,Math.max(1,Math.ceil(k/400-1)))*n.gap}),l=ef({pageIndex:se(()=>n.pageIndex),isLongStrip:se(()=>n.isLongStrip)}),a=se(()=>{const{width:{value:d},height:{value:v}}=i;return n.pages.map(k=>{var F;const C=k.some(g=>{var P;return(P=g.img)==null?void 0:P.isLoading}),B=k.map(g=>g.index),V={isLoading:C,indexes:B};if(C||B[B.length-1]<l.min.value-1||B[0]>l.max.value+2)return V;const K=k.map(({img:g})=>g).filter(Boolean);if(!K.length||(V.srcs=K.map(({src:g})=>g),K.every(g=>g.hasError)))return V;const N=(F=K.find(g=>!g.hasError))==null?void 0:F.size,_=K.reduce((g,P)=>{var j;return g+(((j=P.size)==null?void 0:j.width)??N.width)},0),S=K.reduce((g,P)=>{var j;return g+(((j=P.size)==null?void 0:j.height)??N.height)},0)/K.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&d/_<v/S?(V.width=Math.min(d,_),V.height=S*V.width/_):V.height=Math.min(v,S),V})}),c=se(()=>{const d=n.isVertical?"width":"height";return a.value.map(v=>v[d]).filter(Boolean).sort((v,k)=>k-v)[0]});function u({indexes:d}){const v=d[d.length-1];v!==void 0&&l.onPageVisible(v)}function f(d){if(!n.isLongStrip){const v=n.isVertical?i.height.value:i.width.value,C=(n.isVertical?d.clientY:n.isRTL?v-d.clientX:d.clientX)/v;if(C<=.2&&n.pageIndex>0){o("prev");return}else if(C>=.8){o("next");return}}o("click")}return(d,v)=>(L(),ge(Ws,{zoom:d.zoom,"page-index":d.pageIndex,class:Ce(["rbod",{"rbod--touch":d.touchDevice,"rbod--long-strip":d.isLongStrip,"rbod--paging":!d.isLongStrip,"rbod--vertical":d.isVertical,"rbod--rtl":d.isRTL,"rbod--idle":d.idle,"rbod--first":!d.isLongStrip&&d.pageIndex===0,"rbod--last":!d.isLongStrip&&d.pageIndex===d.totalImgs&&!d.hasNext,"rbod--1page":a.value.length===1}]),"play-controller":d.playController,horizontal:!d.isVertical,rtl:d.isRTL,"touch-device":d.touchDevice,busy:d.busy,"long-strip":d.isLongStrip,style:Oe({"--gap":`${s.value}em`,"--space-top":(d.spaceTop||0)+"px","--screen-width-em":Z(i).width.value+"em","--screen-height-em":Z(i).height.value+"em",...d.isLongStrip?{"--max-size-em":c.value+"em"}:{}}),"onUpdate:zoom":v[0]||(v[0]=k=>o("update:zoom",k)),onDragEnd:v[1]||(v[1]=()=>o("dragEnd")),onClick:f,onScroll:Z(l).onScroll},{default:re(()=>[(L(!0),U(ke,null,vn(a.value,k=>(L(),ge(Ks,ao({key:d.direction+"_"+k.indexes[0],"data-index":k.indexes[0]},k.indexes.length>1?{"data-index2":k.indexes[1]}:{},{onVisible:()=>u(k)}),{default:re(({visible:C})=>{var B;return[!((B=k.srcs)!=null&&B.length)||k.isLoading?(L(),U("div",tf,[lt(Q(br,null,null,512),[[ts,C]])])):k.srcs.length==1?(L(),U("img",{key:1,class:Ce(["img",{invisible:d.isLongStrip&&k.indexes[0]<d.pageIndex-1}]),src:k.srcs[0],style:Oe({height:k.height!==void 0?k.height+"em":""})},null,14,nf)):(L(),U("div",{key:2,class:Ce(["img img--double",{"flex-row-reverse":d.isRTL}]),style:Oe({width:k.width!==void 0?k.width+"em":"",height:k.height!==void 0?k.height+"em":""})},[(L(!0),U(ke,null,vn(k.srcs,V=>(L(),U("div",{key:V},[G("img",{src:V},null,8,of)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),G("div",{ref_key:"autoNextEl",ref:r,class:"last","data-index":d.totalImgs},[Se(d.$slots,"end")],8,rf)]),_:3},8,["zoom","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style","onScroll"]))}}),[["styles",[`.rbod{--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){.rbod{transform:none}}.rbod--rtl{flex-direction:row-reverse}.rbod.rbod--vertical>div{padding:calc(var(--gap)/2) 0}.rbod:not(.rbod--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.rbod:not(.rbod--vertical)>div{padding:0 calc(var(--gap)/2)}.rbod--long-strip.rbod--vertical.rbod--1page>div:first-child{min-height:100vh}.rbod--long-strip.rbod--vertical>div:first-child{margin-top:var(--space-top);padding-top:0}.rbod--long-strip.rbod--vertical>div:last-child{padding-bottom:0}.rbod--long-strip.rbod--vertical>div{width:var(--max-size-em)}.rbod--long-strip.rbod--vertical .img--loading{height:75vh;max-width:100%;width:100vw}.rbod--long-strip.rbod--vertical .last{height:100vh}.rbod--long-strip:not(.rbod--vertical).rbod--1page>div:first-child{min-width:100vw}.rbod--long-strip:not(.rbod--vertical)>div{align-items:center;display:flex;height:var(--max-size-em)}.rbod--long-strip:not(.rbod--vertical) .img--loading{height:100vh;max-height:100%;max-width:100vw;width:680px}.rbod--long-strip:not(.rbod--vertical) .last{width:100vw}.rbod--long-strip>div>img{flex-shrink:0;margin:auto}.rbod--paging:not(.rbod--touch):after,.rbod--paging:not(.rbod--touch):before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.rbod--paging.rbod--first:before,.rbod--paging.rbod--last:after{cursor:default}.rbod--paging.rbod--idle:after,.rbod--paging.rbod--idle:before{cursor:none}.rbod--paging>div{align-items:center;display:grid;justify-content:center;min-height:100vh;min-width:100vw;scroll-snap-align:center;scroll-snap-stop:always}.rbod--paging.rbod--vertical{--tw-scroll-snap-strictness:mandatory;scroll-snap-type:y var(--tw-scroll-snap-strictness)}.rbod--paging.rbod--vertical:after,.rbod--paging.rbod--vertical:before{height:20vw;left:0;right:0}.rbod--paging.rbod--vertical:before{top:0}.rbod--paging.rbod--vertical:after{bottom:0}.rbod--paging.rbod--vertical>div{width:var(--screen-width-em)}.rbod--paging:not(.rbod--vertical){--tw-scroll-snap-strictness:mandatory;scroll-snap-type:x var(--tw-scroll-snap-strictness)}.rbod--paging:not(.rbod--vertical).rbod--rtl:before{right:0}.rbod--paging:not(.rbod--vertical).rbod--rtl:after,.rbod--paging:not(.rbod--vertical):not(.rbod--rtl):before{left:0}.rbod--paging:not(.rbod--vertical):not(.rbod--rtl):after{right:0}.rbod--paging:not(.rbod--vertical):after,.rbod--paging:not(.rbod--vertical):before{bottom:0;top:0;width:20vw}.rbod--paging:not(.rbod--vertical)>div{height:var(--screen-height-em)}.rbod--paging .img--loading{height:100vh;width:100vw}.rbod--paging .img--double{align-items:center;display:flex;gap:var(--gap);justify-content:center}.rbod--paging .img--double div{display:flex;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.rbod--paging .img--double div img{flex-shrink:0;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.rbod>div{flex-shrink:0;margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.rbod .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}.rbod .img--loading{align-items:center;display:flex;justify-content:center}
25
- `]]]),sf=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),lf={key:0,class:"fixed inset-0 h-[101%] flex justify-center items-center z-10 bg-black"},af={class:"flex justify-between items-end"},cf={class:"inline-block children-pointer-events-auto w-1/3"},uf={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},df={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},ff={class:"inline-block z-20 relative"},Us=pe(xe({__name:"ReaderLayout",props:{loading:{type:Boolean},immediate:{type:Boolean},idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){return(t,n)=>(L(),U("div",{class:Ce(["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?(L(),U("div",lf,[Q(br)])):Te("",!0),Se(t.$slots,"default"),G("div",{id:"controls",class:Ce(["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}])},[G("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`})},[Se(t.$slots,"back"),Se(t.$slots,"exit"),Se(t.$slots,"chapter-nav")],4),G("div",af,[G("div",cf,[Se(t.$slots,"page-nav")]),G("div",uf,[Se(t.$slots,"reset-zoom")]),G("div",df,[Se(t.$slots,"entry"),G("div",ff,[Se(t.$slots,"settings")]),Se(t.$slots,"full-screen"),Se(t.$slots,"play"),Se(t.$slots,"break-first")])]),G("div",{class:Ce(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[Se(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
- `]]]),pf=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"})),Ys=pe(xe({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=t,o=X(null),r=X(0),i=X([]),s=se(()=>i.value[r.value]),l=gs(a,500);Qe(()=>{const f=xs(o),d=Ae(()=>c({width:f.width.value,height:f.height.value}),50);d(),fe(f.width,d),fe(f.height,d)});function a(){r.value>=i.value.length-1?n("hide"):r.value++}function c(f){const d=u();i.value=d.map(({rect:v,text:k})=>{const C=v.top<f.height-v.bottom,B=v.left<f.width-v.right;return{text:k,style:{left:`${v.left}px`,top:`${v.top}px`,width:`${v.width}px`,height:`${v.height}px`},textStyle:{left:B?`${v.left-12}px`:void 0,right:B?void 0:`${f.width-v.left}px`,top:C?`${v.bottom+12}px`:`${v.top+20}px`,textAlign:C?void 0:"right",transform:C?void 0:"translateY(-50%)"}}}),r.value>=i.value.length&&(r.value=i.value.length-1)}function u(){var v;const f=(v=o.value)==null?void 0:v.parentElement;if(!f)return[];const d=[];return f.querySelectorAll("[data-tour]").forEach(k=>{var V;const C=(V=k.getAttribute("data-tour"))==null?void 0:V.trim();if(!(C!=null&&C.length))return;const B=k.getBoundingClientRect();d.push({rect:B,text:C})}),d}return(f,d)=>{var v,k;return L(),U(ke,null,[G("div",{class:Ce(["fixed-screen bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),G("div",{ref_key:"root",ref:o,class:"tour",onClick:d[0]||(d[0]=et((...C)=>Z(l)&&Z(l)(...C),["stop"]))},[s.value?(L(),U("div",{key:r.value,class:"tour__target",style:Oe(s.value.style)},null,4)):Te("",!0),(L(),U("div",{key:r.value,class:"tour__text",style:Oe((v=s.value)==null?void 0:v.textStyle)},Xe(((k=s.value)==null?void 0:k.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
- `]]]),hf=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),gf={},mf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},vf=[G("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 bf(e,t){return L(),U("svg",mf,vf)}const Xs=pe(gf,[["render",bf]]),_f=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),yf={},wf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},xf=[G("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 Sf(e,t){return L(),U("svg",wf,xf)}const Zs=pe(yf,[["render",Sf]]),kf=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),Cf={},If={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ef=[G("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 Tf(e,t){return L(),U("svg",If,Ef)}const Gs=pe(Cf,[["render",Tf]]),$f=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),Pf={},Mf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Of=[G("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Lf(e,t){return L(),U("svg",Mf,Of)}const Qs=pe(Pf,[["render",Lf]]),Af=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),zf={},jf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Df=[G("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Rf(e,t){return L(),U("svg",jf,Df)}const Js=pe(zf,[["render",Rf]]),Bf=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),Nf={},Vf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56"},Ff=[G("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 Hf(e,t){return L(),U("svg",Vf,Ff)}const el=pe(Nf,[["render",Hf]]),Wf=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),Kf={},qf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Uf=[G("g",{fill:"none"},[G("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"}),G("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 Yf(e,t){return L(),U("svg",qf,Uf)}const tl=pe(Kf,[["render",Yf]]),Xf=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),Zf={},Gf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Qf=[G("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function Jf(e,t){return L(),U("svg",Gf,Qf)}const nl=pe(Zf,[["render",Jf]]),ep=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),tp={},np={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},op=[G("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function rp(e,t){return L(),U("svg",np,op)}const ol=pe(tp,[["render",rp]]),ip=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),sp={},lp={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},ap=[G("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 cp(e,t){return L(),U("svg",lp,ap)}const rl=pe(sp,[["render",cp]]),up=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"}));function an(e=0){return new Promise(t=>setTimeout(t,e))}function go(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()}}function il(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 dp(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 il(o)}async function fp(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 pp{constructor({isIOS:t,onDownloaded:n,onDownloadError:o}){ve(this,"reactiveResults",un({}));ve(this,"isIOS");ve(this,"tkLoadId",Date.now());ve(this,"isMounted",!0);ve(this,"onDisposeCallbacks",[]);ve(this,"onDownloaded");ve(this,"onDownloadError");this.isIOS=t,this.onDownloaded=n,this.onDownloadError=o}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,!0),c=()=>this.onImgElLoaded(t,n,!1);n.addEventListener("load",a),n.addEventListener("error",c),this.onDisposeCallbacks.push(()=>{n.removeEventListener("load",a),n.removeEventListener("error",c)})}}if(r&&!o){if(o=go(n),!o)return;n._tkSrc=o}else if(i&&!o){if(o=await il(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 an(300),await this.downloadSrc(t))}async onImgElLoaded(t,n,o){var i;if(!this.isMounted)return;const r=go(n);if(r&&!(!r.startsWith("blob:")&&t.computedSrc===r)){if(n._tkSrc=r,!o){this.reactiveResults[r]={src:r,isLoading:!1,hasError:!0},this.onDownloadError();return}(i=this.reactiveResults)[r]??(i[r]={src:r,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 dp(o,n):n;if(!r||!this.isMounted)return;const i=await fp(r,o);this.isMounted&&(this.reactiveResults[n]={src:r,size:i,isLoading:!1,hasError:!i,invalid:!!i&&(i.width<200||i.height<200)},i?this.onDownloaded(t,i):this.onDownloadError())}}const hp=3;class gp{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<hp&&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 an(),!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 Xt{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)}}class sl{constructor(){ve(this,"elsPool",new Map)}check(t){if(!t||t===document.body)return!0;const n=this.elsPool.get(t);if(n!==void 0)return n;const o=getComputedStyle(t);if(!(o.display!=="none"&&+(o.opacity??"1")>.1))return this.elsPool.set(t,!1),!1;const i=this.check(t.parentElement);return this.elsPool.set(t,i),i}}function _r(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 mp(e){const{lstrip:t,lstripBtn:n}=e||{};if(!t||!n||!!document.querySelector(t))return!1;const r=await ln(50,30,()=>document.querySelector(n));return r?(_r(r),await an(),!0):!1}class vp{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=await mp(this.spec),o=(l=this.spec)==null?void 0:l.content;if(!o){t(document.body);return}let r=await ln(n?100:1,10,()=>document.querySelector(o));if(!r)return;t(r);let i=0;const s=async()=>{if(this.isMounted&&!(r!=null&&r.isConnected)){if(i=0,r=await ln(50,20,()=>{const a=document.querySelector(o);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 bp(t,o):ll(t);this.loadRawImagesTs!==n||!t.isConnected||!this.isMounted||this.setRawImages(r)}}async function bp(e,t){const n=Array.from(e.querySelectorAll(t));if(!n.length)return ll(e);const o=new sl;return n.map(i=>{const s=Array.from(i.querySelectorAll("img,canvas"));for(const l of s)if(o.check(l)){if(l instanceof HTMLCanvasElement){if(al(l))return new Xt(void 0,l,i)}else if(l instanceof HTMLImageElement&&cl(l)){const a=go(l);return new Xt(a,l,i)}}return new Xt(void 0,void 0,i)})}function ll(e){const t=[],n={},o=new sl;return Array.from(e.querySelectorAll("img,canvas")).forEach(i=>{if(o.check(i)){if(i instanceof HTMLCanvasElement)al(i)&&t.push(new Xt(void 0,i));else if(i instanceof HTMLImageElement&&cl(i)){const s=go(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 Xt(s,i))}}}),t}function al(e){return e.isConnected&&e.width>=200&&e.height>=200}function cl(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||t.width>=200&&t.height>=200}function ul(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 _p(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 Xt(void 0,o));return ul(n)}function mo({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=dl(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 dl(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 dl(e.parentElement,t);let i=0;return t.forEach((s,l)=>{i+=l===o?s-n:s}),{el:e,top:i}}function yp(e){var k,C,B,V;const t=X((k=e.raw.value)==null?void 0:k.isWebtoon),n=X((C=e.raw.value)==null?void 0:C.isWebtoon);let o=!1;const r=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android"),i=((V=(B=e.raw.value)==null?void 0:B.imgs)==null?void 0:V.filter(Boolean))??[];let s=e.isAutoShow!==!1?e.page.value:i.length?_p(i):void 0,l=i.map(K=>new Xt(K)),a,c;const u=new pp({isIOS:r,onDownloaded(K,$){let N=l.indexOf(K);if(N===-1){const _=K.computedSrc;N=l.findIndex(S=>S.computedSrc===_)}if(N!==-1){if($&&!t.value&&N>Math.min(1,l.length-3)&&N<Math.max(l.length-2,3)){const _=$.height/$.width,S=_>2||_<.5,F=_>1.6||_<.6;t.value!==S&&(t.value=S),n.value!==F&&(n.value=F)}d()}},onDownloadError(){c||t.value!==void 0||(c=setTimeout(()=>{c=void 0,t.value===void 0&&e.onError("Failed to load images")},3e3))}}),f=new gp({getItems:()=>l,getActiveIndex:()=>Math.floor(e.page.value),isCompleted:K=>{const $=K.computedSrc;return!!($&&u.reactiveResults[$])},callback:K=>u.download(K)});if(i.length)f.run();else{let K=!1;a=new vp({spec:e.spec,async onChanged($){var N;if(l=$,!e.raw.value&&!$.length){e.onError("no_img");return}(N=e.spec)!=null&&N.imgDivs&&!K&&e.isAutoShow!==!1&&e.page.value&&(K=!0,mo({rawImages:$,page:e.page.value,skipIfVisible:!0}),await an(1)),s===void 0&&e.isAutoShow===!1&&(s=ul($)),f.run()}})}Wo(()=>{u.dispose(),f.dispose(),a==null||a.dispose(),c&&clearTimeout(c),o&&mo({rawImages:l,page:e.page.value})});function d(){var _,S,F;if(o||t.value===void 0||s===void 0)return;const K=Math.max(0,Math.min(s,l.length)),$=Math.min(Math.floor(K),l.length-1);if($>=1){if(!((_=l[$])==null?void 0:_.computedSrc)){e.isAutoShow&&mo({rawImages:l,page:$});return}for(let P=$;P<l.length;P++){const j=(S=l[P])==null?void 0:S.computedSrc;if(!j)return;const ee=u.reactiveResults[j];if(!ee)return;if(!ee.invalid){if(!ee.size&&!ee.hasError)return;break}}for(let P=$-1;P>=0;P--){const j=(F=l[P])==null?void 0:F.computedSrc;if(!j)break;const ee=u.reactiveResults[j];if(!ee)return;if(!ee.invalid){if(!ee.size&&!ee.hasError)return;break}}}if(o)return;o=!0,e.onReady(K);let N=!0;fe(()=>Math.floor(e.page.value),(g,P)=>{mo({rawImages:l,page:g,smooth:r,isScrollDown:P===void 0||g>P||l.length===1,skipIfVisible:N&&l.length>1}),N=!1,P??(P=-1),f.run()},{immediate:!0})}return{asyncImgs:se(()=>{Object.values(u.reactiveResults);const K=[];return l.forEach($=>{const N=$.computedSrc,_=N?u.reactiveResults[N]:void 0;(N&&!(_!=null&&_.invalid)||$.parentEl)&&K.push(_)}),K}),isWebtoon:se(()=>t.value??!1),maybeWebtoon:se(()=>n.value??!1)}}function wp(e,t,n){return se(()=>t.value?fl(e.value,n.value):e.value.map((o,r)=>[{img:o,index:r}]))}function fl(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})),...fl(e.slice(i.length),t&&r,n+i.length)]}function xp(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 Sp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const yr=40;function kp({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:d}){let v=!1,k=!1,C=!1,B;const V=Ae(P,300),K=gs(()=>{P(),V()},300),$=Ae(S,50);async function N(){F(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function _(){var w;k=!0,f(),j(),(w=l.value)==null||w.addEventListener("scroll",K),setTimeout(()=>{const{width:H,height:ae}=Is();fe(H,()=>{r.value&&$()}),fe(ae,()=>{r.value||$()}),fe(n,S),fe(t,S)},300)}async function S(){if(!k||v)return;v=!0,await xt();const w=e.value;if(y()===w){v=!1;return}F(w)}function F(w,{smooth:H,ensureLastImgVisibility:ae=!1}={smooth:!1}){const de=l.value;if(!de)return;v=!0;const _e=async()=>{await xt(),v=!1,k||_()},me=Math.floor(w),We=de.querySelector(`[data-index="${me}"],[data-index2="${me}"]`);if(!We){_e();return}c(async()=>{await g(de,!o.value&&H,async()=>{await oe(de,We,{smooth:H,page:w,ensureLastImgVisibility:ae})}),await _e()})}async function g(w,H,ae){H&&w.style.setProperty("scroll-snap-type","none"),await ae(),H&&w.style.removeProperty("scroll-snap-type")}function P(){if(v)return;const w=y();w!==void 0&&w!==e.value&&u(w),j()}function j(){C||!C&&ee()&&(C=!0,d())}function ee(){const w=l.value;if(!w)return!1;const H=o.value?a.value?3:!r.value&&w.clientWidth>w.clientHeight?2.25:2.5:2;return r.value?w.scrollHeight-w.scrollTop<w.clientHeight*H:w.scrollWidth-(i.value?-w.scrollLeft:w.scrollLeft)<w.clientWidth*H}function y(){const w=O();return w?(+w.getAttribute("data-index")||0)+(o.value?x(w):0):void 0}function O(){var H;if(B??(B=l.value.getRootNode()),!B)return;const w=(H=B.elementsFromPoint)==null?void 0:H.call(B,r.value||!o.value?window.innerWidth/2:i.value?window.innerWidth-yr:yr,r.value&&o.value?s.value||yr:window.innerHeight/2);if(w)for(let ae=0;ae<w.length;ae++){const de=w[ae];if(de.hasAttribute("data-index"))return de;if(de===l.value)break}}function x(w){const H=w.getBoundingClientRect();return r.value?Math.abs(H.top-s.value)/H.height:i.value?Math.max(0,H.right-l.value.clientWidth)/H.width:Math.abs(H.left)/H.width}let Y=!1;async function oe(w,H,ae){if(Y)return;const de=H.getBoundingClientRect();if(!o.value){if(r.value){if(de.top<=0&&de.bottom>=w.clientHeight)return}else if(de.left<=0&&de.right>=w.clientWidth)return}Y=!0;const _e=r.value?w.scrollTop:w.scrollLeft,me=ae.page,We=o.value?me%1:0,nt=await ln(30,10,async()=>{await an();let Me;if(!(H.offsetHeight<10))return o.value?r.value?Me=H.offsetTop+We*H.offsetHeight-s.value:i.value?Me=H.offsetLeft-w.clientWidth+H.offsetWidth-We*H.offsetWidth:Me=H.offsetLeft+We*H.offsetWidth:r.value?Me=H.offsetTop+(de.top>0?0:de.height-w.clientHeight):Me=H.offsetLeft+(de.left>0?0:de.width-w.clientWidth),me>.5&&Math.abs(Me)<100?void 0:Me})??0,Lt=ae.ensureLastImgVisibility?r.value?Math.min(nt,w.scrollHeight-w.clientHeight*2):i.value?Math.max(nt,-(w.scrollWidth-w.clientWidth*2)):Math.min(nt,w.scrollWidth-w.clientWidth*2):nt;if(!ae.smooth){r.value?w.scrollTop=Lt:w.scrollLeft=Lt,Y=!1;return}const Ke=Lt-_e,mt=30;let qe=0;return new Promise(Me=>{(function dt(){const At=Cp(qe,_e,Ke,mt);r.value?w.scrollTop=At:w.scrollLeft=At,qe++,qe<=mt?requestAnimationFrame(dt):(Me(),Y=!1)})()})}return{init:N,goToPage:F}}function Cp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function Ip({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:g=>{a.value=g,sessionStorage.setItem("tk:playing",g?"true":"false")}}),u=X(!1);let f,d;const v=Ae(S,100),k=Ae(()=>{u.value=!0},t?2e3:1e3),C=()=>setTimeout(()=>{u.value=!1,k()},30);C(),t||Mt(window,"mousemove",C);const B=ys();Qe(()=>{fe(B,g=>{c.value&&(g==="visible"?S():d==null||d())}),fe(s,()=>V()),fe(i,g=>{g||$()})}),Vt($);async function V(g){c.value&&(d==null||d()),g&&(await xt(),await g()),c.value&&v()}function K(){c.value?$():N()}function $(){c.value&&(c.value=!1,d==null||d(),C())}function N(){!c.value&&i.value&&(c.value=!0,S(),C())}function _(){d==null||d()}function S(){const g=n.value;if(!c.value||!g)return;const P=o.value?g.scrollHeight-g.clientHeight:g.scrollWidth-g.clientWidth,j=F();if(P<=j){$();return}d=()=>{f=Date.now(),d=void 0};const ee=Date.now();f=ee;const y=.05*s.value,O=o.value?"scrollTop":"scrollLeft";let x=Date.now(),Y=0;const oe=()=>{if(f!==ee)return;const w=Date.now(),H=w-x;x=w;const ae=y*H+Y;ae>=1?(Y=ae%1,g[O]+=(ae-Y)*(r.value?-1:1)):Y=ae,setTimeout(oe,1)};oe()}function F(){const g=n.value;return o.value?g.scrollTop:r.value?-g.scrollLeft:g.scrollLeft}return{isPlaying:c,isIdle:u,toggle:K,play:N,pause:_,resume:S,stop:$,interfere:V,awake:C}}function Ep({raw:e,spec:t,siteMeta:n}){var j,ee,y;const{vol:o,inferVol:r,chap:i,title:s,slug:l,basePath:a}=e,c=t==null?void 0:t.chapter;let u=-1;const f=c&&!c.url?document.querySelectorAll(c.sel):void 0;async function d(O,x){if(O.slug)v(O.slug,x);else if(O.elIndex!==void 0&&f&&f[O.elIndex]){let Y=null;c!=null&&c.trigger&&(Y=document.querySelector(c.trigger)),Y&&(Y.click(),await new Promise(oe=>setTimeout(()=>oe(),50))),_r(f[O.elIndex]),Y&&Y.click()}}function v(O,x){const Y=Tp(a,O,(n==null?void 0:n.trailing)??!0);x?window.open(Y,"_blank","noopener"):location.href=Y}function k(O){const x=$[O];return x?Y=>d(x,Y):void 0}function C(O,x,Y){if(O){const oe=document.querySelector(O);oe&&_r(oe);return}x&&v(x,Y)}const B=o??r,V=c==null?void 0:c.url,K=((j=s.chapters)==null?void 0:j.filter(O=>O.slug||!V&&O.elIndex!==void 0))??[],$=K.length>1?K:[],N=(ee=e.prev)==null?void 0:ee.slug,_=(y=e.next)==null?void 0:y.slug,{prevBtn:S,nextBtn:F}=t??{};let g=N||S&&!$.length?O=>C(S,N,O):void 0,P=_||F&&!$.length?O=>C(F,_,O):void 0;if($.length){if(V&&(u=$.findIndex(O=>O.slug===e.slug)),u===-1&&(u=$.findIndex(O=>(O.vol??O.inferVol)===B&&O.chap===i)),V&&u===-1&&(u=$.findIndex(O=>O.slug&&l.startsWith(`${O.slug}-`)&&l.length-O.slug.length>3)),u!==-1)g??(g=k(u+1)),P??(P=k(u-1));else if(!N&&!_){const O=$.findIndex(x=>{const Y=x.vol??x.inferVol;return B===void 0||Y===void 0||B===Y?x.chap<i:Y<B});O!==-1?(g=k(O),P=k(O-1)):P=k($.length-1)}}return{activeIndex:u,activeLabel:pl({vol:o,chap:i}),prev:g,next:P,chapters:$.map(O=>({label:pl(O),select:x=>d(O,x)}))}}function pl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}function Tp(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 $p={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},hl=pe(xe({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","getHiddenChapters"],setup(e,{emit:t}){const n=e,o=t;let r=!1,i,s=-1;const l=X(!1),a=X(!1),c=pu({touchDevice:n.touchDevice}),u=xp(n.page,n.isAutoShow),f=se(()=>n.spaceTop??0),{asyncImgs:d,isWebtoon:v,maybeWebtoon:k}=yp({raw:se(()=>n.raw),spec:n.spec,page:u,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:f,async onReady(m){nt(m),l.value=!0},onError:()=>{o("error"),z()}}),{direction:C,style:B,isRTL:V,isDouble:K,isVertical:$,isLongStrip:N,gap:_,speed:S,zoom:F,breakFirst:g,autoNextSeconds:P}=Ju({titleName:se(()=>{var m;return(m=n.raw)==null?void 0:m.title.name}),isWebtoon:v,maybeWebtoon:k,defaultStyle:n.readerStyle,defaultDirection:n.direction}),j=wp(d,K,g),ee=se(()=>u.value>=d.value.length),y=se(()=>n.raw?Ep({raw:n.raw,spec:n.spec,siteMeta:n.siteMeta}):void 0),O=X(null),x=X(null),Y=X(!1),oe=X(!1),w=Ip({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:se(()=>{var m;return(m=O.value)==null?void 0:m.$el}),speed:S,isRTL:V,isVertical:$,isLongStrip:N}),H=se(()=>!n.touchDevice&&w.isIdle.value&&!c.value),ae=se({get(){return F.value},set(m){w.interfere(()=>{F.value=m})}}),de=kp({page:u,style:B,direction:C,isLongStrip:N,isVertical:$,isRTL:V,spaceTop:f,isWebtoon:v,scrollEl:se(()=>{var m;return(m=O.value)==null?void 0:m.$el}),interferePlayer:m=>w.interfere(m),onChangedPage:nt,onInitialized(){o("ready"),a.value=!0,i=Lt()},onFinished:()=>o("finished")}),_e=se(()=>Math.floor(u.value)),me=()=>w.interfere(()=>an(100));xu().addListener({onKeyDown:m=>{if(n.tourEnabled)return;const I=N.value&&$.value,q=N.value&&!$.value,te=!N.value&&$.value,he=!N.value&&!$.value;switch(m.key){case" ":m.preventDefault(),N.value?(J(!1),w.toggle()):D();break;case"ArrowUp":case"PageUp":I?me():te&&_e.value!==0&&(m.preventDefault(),b());break;case"ArrowDown":case"PageDown":I?me():te&&!ee.value&&(m.preventDefault(),E());break;case"ArrowLeft":q?me():he?(m.preventDefault(),p()):$.value&&Me();break;case"ArrowRight":q?me():he?(m.preventDefault(),h()):$.value&&qe();break}},onKeyUp:m=>{switch(m.key){case"b":g.value=!g.value;break;case"f":R();break;case"t":A();break;case"h":J();break}}}),Mt("fullscreenchange",()=>{Y.value=!!document.fullscreenElement}),fe(w.isPlaying,m=>{m||D(!1),o("playingChanged",m)}),fe(w.isIdle,m=>{w.isPlaying.value&&D(m)}),fe(c,m=>{!m&&w.isIdle.value?w.awake():m&&n.fullScreen&&D()});function nt(m){if(u.value===m)return;const I=d.value.length;if(m<0||m>=I+1)return;const q=u.value;u.value=m;const te=Math.floor(m*100)/100;te!==s&&(s=te,o("pageChanged",te)),m>=I?(D(!1),w.stop()):m<.01&&q>m?(D(!1),w.awake()):r||(N.value?i!==void 0&&Lt()-i>300&&D(!0):Math.abs(q-m)===1&&D(!0))}function Lt(){var I;const m=(I=O.value)==null?void 0:I.$el;return m?$.value?m.scrollTop:V.value?-m.scrollLeft:m.scrollLeft:0}function Ke(){!n.touchDevice&&!N.value&&de.goToPage(_e.value,{smooth:!0})}function mt(){if(w.isPlaying.value){!n.fullScreen||!n.touchDevice?w.stop():w.awake();return}D()}function qe(m=!1){var I,q;(q=(I=y.value)==null?void 0:I.next)==null||q.call(I,m)}function Me(m=!1){var I,q;(q=(I=y.value)==null?void 0:I.prev)==null||q.call(I,m)}function dt(m){V.value?qe(zt(m)):Me(zt(m))}function At(m){V.value?Me(zt(m)):qe(zt(m))}function zt(m){return!n.touchDevice&&(m.ctrlKey||m.metaKey)}function p(){V.value?E():b()}function h(){V.value?b():E()}function b(){var q;const m=j.value,I=ee.value?m[m.length-1][0].index:(q=m[T()-1])==null?void 0:q[0].index;I!==void 0?de.goToPage(I):Me()}function E(){var m,I;if(ee.value)qe();else{const q=((I=(m=j.value[T()+1])==null?void 0:m[0])==null?void 0:I.index)??d.value.length;de.goToPage(q)}}function T(){const m=_e.value,I=j.value.findIndex(q=>q.some(({index:te})=>te===m));return I===-1?j.value.length-1:I}function z(){Sp(),o("dispose")}async function D(m){if(c.value&&!n.fullScreen)return;const I=typeof m=="boolean"?m:!n.fullScreen;I!==n.fullScreen&&(r=!0,o("fullScreenChanged",I),I&&setTimeout(()=>{n.fullScreen&&c.value&&o("fullScreenChanged",!1)},100))}function A(){n.entryId?W():M()}function R(){var m,I;document.fullscreenElement?document.exitFullscreen():(I=(m=x.value)==null?void 0:m.$el)==null||I.requestFullscreen()}function M(){w.stop(),o("addEntry")}function W(){w.stop(),o("openEntry",n.entryId)}function J(m){oe.value!==m&&(oe.value=!oe.value,oe.value&&w.isPlaying.value&&w.stop())}return(m,I)=>m.immediate||l.value?(L(),ge(Us,{key:0,ref_key:"root",ref:x,loading:!a.value,immediate:!!m.immediate,"full-screen":!!m.fullScreen,idle:H.value,"space-top":f.value,rtl:Z(V),onClick:I[13]||(I[13]=et(()=>{},["stop"]))},_i({settings:re(()=>{var q;return[Q(Ls,{"reader-style":Z(B),"onUpdate:readerStyle":I[4]||(I[4]=te=>Ie(B)?B.value=te:null),direction:Z(C),"onUpdate:direction":I[5]||(I[5]=te=>Ie(C)?C.value=te:null),gap:Z(_),"onUpdate:gap":I[6]||(I[6]=te=>Ie(_)?_.value=te:null),speed:Z(S),"onUpdate:speed":I[7]||(I[7]=te=>Ie(S)?S.value=te:null),zoom:ae.value,"onUpdate:zoom":I[8]||(I[8]=te=>ae.value=te),"auto-next-seconds":Z(P),"onUpdate:autoNextSeconds":I[9]||(I[9]=te=>Ie(P)?P.value=te:null),name:(q=m.raw)==null?void 0:q.title.name,webtoon:Z(v),disabled:!l.value,onHelp:J},null,8,["reader-style","direction","gap","speed","zoom","auto-next-seconds","name","webtoon","disabled"])]}),"reset-zoom":re(()=>[Q(on,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:re(()=>[Q(zs,{zoom:ae.value,onClick:I[12]||(I[12]=et(()=>ae.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:re(()=>[G("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Oe({width:`${Z(u)/(Z(d).length-1)*100}%`})},null,4)]),default:re(()=>{var q;return[l.value?(L(),ge(qs,{key:0,ref_key:"body",ref:O,zoom:ae.value,"onUpdate:zoom":I[0]||(I[0]=te=>ae.value=te),"page-index":_e.value,pages:Z(j),"total-imgs":Z(d).length,direction:Z(C),gap:Z(_),"is-long-strip":Z(N),isRTL:Z(V),"is-vertical":Z($),"space-top":f.value,busy:Z(c),idle:H.value,"play-controller":Z(w),"touch-device":m.touchDevice,"has-next":!!((q=y.value)!=null&&q.next),onVnodeMounted:Z(de).init,onPrev:b,onNext:E,onClick:mt,onDragEnd:Ke,onWheelPassive:I[1]||(I[1]=()=>Z(w).interfere())},_i({_:2},[l.value&&Z(d).length?{name:"end",fn:re(()=>{var te;return[Q(Es,{"has-next":!!((te=y.value)!=null&&te.next),seconds:Z(P),onNext:qe,onHide:z},null,8,["has-next","seconds"])]}),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"])):Te("",!0),a.value&&!ee.value&&!m.tourEnabled?(L(),ge(Ns,{key:1,direction:Z(C)},null,8,["direction"])):Te("",!0),a.value&&!ee.value?(L(),ge(Hs,{key:2,playing:!!Z(w).isPlaying.value},null,8,["playing"])):Te("",!0),oe.value?(L(),ge(Vs,{key:3,"touch-device":m.touchDevice,onHide:J},null,8,["touch-device"])):Te("",!0),m.tourEnabled?(L(),ge(Ys,{key:4,onHide:I[2]||(I[2]=()=>o("tourEnabledChanged",!1))})):Te("",!0)]}),_:2},[m.raw?{name:"back",fn:re(()=>[Q(tt,{href:m.raw.title.url,title:"Back to manga"},{default:re(()=>[Q(Xs)]),_:1},8,["href"])]),key:"0"}:void 0,m.touchDevice?void 0:{name:"exit",fn:re(()=>[Q(tt,{title:"Hide reader","data-tour":"You have entered reader mode, press here to return to the original page",onClick:z},{default:re(()=>[Q(rl)]),_:1})]),key:"1"},y.value?{name:"chapter-nav",fn:re(()=>{var q;return[Q(Rs,{"touch-device":m.touchDevice,"chapter-spec":(q=m.spec)==null?void 0:q.chapter,data:y.value,onGetHiddenChapters:I[3]||(I[3]=()=>o("getHiddenChapters"))},null,8,["touch-device","chapter-spec","data"]),y.value.next||y.value.prev?(L(),U("div",$p,[Q(tt,{title:`${Z(V)?"Next":"Prev"} chapter (←)`,disabled:Z(V)?!y.value.next:!y.value.prev,class:"!rounded-r-none",onClick:dt},{default:re(()=>[Q(Qs)]),_:1},8,["title","disabled"]),Q(tt,{title:`${Z(V)?"Prev":"Next"} chapter (→)`,disabled:Z(V)?!y.value.prev:!y.value.next,class:"!rounded-l-none",onClick:At},{default:re(()=>[Q(Js)]),_:1},8,["title","disabled"])])):Te("",!0)]}),key:"2"}:void 0,Z(j).length?{name:"page-nav",fn:re(()=>[Q(Fs,{"model-value":_e.value,disabled:!a.value,pages:Z(j),"total-imgs":Z(d).length,"onUpdate:modelValue":Z(de).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,m.raw?{name:"entry",fn:re(()=>[Q(tt,{title:m.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:A},{default:re(()=>[m.entryId?(L(),ge(Gs,{key:0})):(L(),ge(Zs,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,m.touchDevice?void 0:{name:"full-screen",fn:re(()=>[Q(tt,{title:`${Y.value?"Exit":"Enter"} fullscreen (F)`,onClick:R},{default:re(()=>[Y.value?(L(),ge(ol,{key:0})):(L(),ge(nl,{key:1}))]),_:1},8,["title"])]),key:"5"},Z(N)?{name:"play",fn:re(()=>[Q(tt,{"data-tour":"Press here to play like a video",title:`${Z(w).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!a.value,onClick:I[10]||(I[10]=()=>Z(w).toggle())},{default:re(()=>[Z(w).isPlaying.value?(L(),ge(mr,{key:0})):(L(),ge(vr,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0,Z(K)?{name:"break-first",fn:re(()=>[Q(tt,{title:"Break 1st page (B)","data-tour":"Press here to separate the first page from double-page mode",disabled:!a.value,onClick:I[11]||(I[11]=()=>g.value=!Z(g))},{default:re(()=>[Z(g)?(L(),ge(tl,{key:0})):(L(),ge(el,{key:1}))]),_:1},8,["disabled"])]),key:"7"}:void 0]),1032,["loading","immediate","full-screen","idle","space-top","rtl"])):Te("",!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}.invisible{visibility:hidden}.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-\\[30rem\\]{height:480px}.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\\.8rem\\]{width:76.8px}.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)}.snap-center{scroll-snap-align:center}.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
- `]]]),Pp=Object.freeze(Object.defineProperty({__proto__:null,default:hl},Symbol.toStringTag,{value:"Module"})),Mp={},Op={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Lp=[G("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 Ap(e,t){return L(),U("svg",Op,Lp)}const zp=Object.freeze(Object.defineProperty({__proto__:null,default:pe(Mp,[["render",Ap]])},Symbol.toStringTag,{value:"Module"})),jp=`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}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}html.gear-second body>:not(gear-second){visibility:hidden!important}
29
- `,Zt="gear-second",wr={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},He={promise:void 0,data:un({...wr})};async function Dp(e){return He.promise?(He.data.raw=e.raw,await He.promise):(He.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(Zt),Object.assign(He.data,wr),He.promise=void 0)},a=Ae(f=>{var d;return!n&&((d=e.onPageChanged)==null?void 0:d.call(e,f))},300);Object.assign(He.data,wr,e,{immediate:s,onReady(){s||(c(),document.documentElement.classList.add(Zt))},onError(){var f,d;l(),o?((f=e.onDispose)==null||f.call(e),(d=e.onError)==null||d.call(e)):u()},onDispose:()=>{var f;l(),(f=e==null?void 0:e.onDispose)==null||f.call(e)},onFullScreenChanged:f=>{var d;He.data.fullScreen=f,(d=e.onFullScreenChanged)==null||d.call(e,f)},onPageChanged:f=>{He.data.page=f,a(f)},onTourEnabledChanged:f=>{He.data.tourEnabled=f}}),Rp().then(()=>{if(n){u();return}i=document.createElement(Zt),s?(document.documentElement.classList.add(Zt),document.body.appendChild(i),setTimeout(c)):document.body.appendChild(i);let f=0;r=setInterval(()=>{if(++f===30||n){clearInterval(r),r=void 0;return}i.isConnected||(document.documentElement.classList.add(Zt),document.body.appendChild(i))},100)});function c(){o||(o=!0,t({triggerDoubleTap(){},triggerTouchStart(){},updateArgs(f){Object.assign(He.data,f)},dispose:l}))}function u(){o||t(void 0)}}),await He.promise)}async function Rp(){if(window.customElements.get(Zt))return;const e=document.createElement("style");e.appendChild(document.createTextNode(jp)),document.head.appendChild(e);const t=Bc({styles:[await Bp()],data:()=>({readerData:He.data}),render(){return Ui(hl,this.readerData)}});window.customElements.define(Zt,t)}async function Bp(){const e=Object.assign({"./App.vue":Pp,"./components/AutoNext.vue":fu,"./components/BottomSheet.vue":Iu,"./components/ButtonDropdown.vue":Cd,"./components/ButtonIcon.vue":gu,"./components/ButtonReaderSettings.vue":td,"./components/ButtonResetZoom.vue":ud,"./components/ChapterNav.vue":Id,"./components/DirectionToast.vue":Od,"./components/GesturesContainer.vue":Ud,"./components/HelpScreen.vue":Ad,"./components/InputPercentage.vue":$u,"./components/InputSelect.vue":Mu,"./components/IntersectionWrapper.vue":Yd,"./components/LoadingIndicator.vue":Jd,"./components/PageNav.vue":zd,"./components/PauseToast.vue":qd,"./components/ReaderBody.vue":sf,"./components/ReaderLayout.vue":pf,"./components/ReaderTour.vue":hf,"./components/TableField.vue":Au,"./components/icons/IconBack.vue":_f,"./components/icons/IconBookmarkNew.vue":kf,"./components/icons/IconBookmarked.vue":$f,"./components/icons/IconChevronLeft.vue":Af,"./components/icons/IconChevronRight.vue":Bf,"./components/icons/IconClose.vue":yu,"./components/icons/IconDouble.vue":Wf,"./components/icons/IconDoubleSkip.vue":Xf,"./components/icons/IconExclamationCircle.vue":zp,"./components/icons/IconFullscreen.vue":ep,"./components/icons/IconFullscreenExit.vue":ip,"./components/icons/IconHelp.vue":Bu,"./components/icons/IconLoading.vue":gd,"./components/icons/IconNext.vue":Md,"./components/icons/IconPause.vue":Nd,"./components/icons/IconPlay.vue":Kd,"./components/icons/IconReaderExit.vue":up,"./components/icons/IconSettings.vue":Wu,"./components/icons/IconTriangle.vue":yd,"./components/icons/IconZoom.vue":sd}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return Dp});
20
+ **/const vc="http://www.w3.org/2000/svg",bc="http://www.w3.org/1998/Math/MathML",Ct=typeof document<"u"?document:null,Yr=Ct&&Ct.createElement("template"),_c={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 i=t==="svg"?Ct.createElementNS(vc,e):t==="mathml"?Ct.createElementNS(bc,e):Ct.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&i.setAttribute("multiple",o.multiple),i},createText:e=>Ct.createTextNode(e),createComment:e=>Ct.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ct.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,i,r){const s=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{Yr.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=Yr.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]}},Tt="transition",Sn="animation",kn=Symbol("_vtc"),nn=(e,{slots:t})=>Ur(Ta,yc(e),t);nn.displayName="Transition";const Xr={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=xe({},hr,Xr);const Ht=(e,t=[])=>{ee(e)?e.forEach(n=>n(...t)):e&&e(...t)},Zr=e=>e?ee(e)?e.some(t=>t.length>1):e.length>1:!1;function yc(e){const t={};for(const h in e)h in Xr||(t[h]=e[h]);if(e.css===!1)return t;const{name:n="v",type:o,duration:i,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=r,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:b=`${n}-leave-to`}=e,S=wc(i),I=S&&S[0],B=S&&S[1],{onBeforeEnter:R,onEnter:W,onEnterCancelled:E,onLeave:V,onLeaveCancelled:_,onBeforeAppear:x=R,onAppear:F=W,onAppearCancelled:m=E}=t,$=(h,w,K)=>{Wt(h,w?u:l),Wt(h,w?c:s),K&&K()},j=(h,w)=>{h._isLeaving=!1,Wt(h,p),Wt(h,b),Wt(h,d),w&&w()},U=h=>(w,K)=>{const oe=h?F:W,ae=()=>$(w,h,K);Ht(oe,[w,ae]),Gr(()=>{Wt(w,h?a:r),Et(w,h?u:l),Zr(oe)||Qr(w,o,I,ae)})};return xe(t,{onBeforeEnter(h){Ht(R,[h]),Et(h,r),Et(h,s)},onBeforeAppear(h){Ht(x,[h]),Et(h,a),Et(h,c)},onEnter:U(!1),onAppear:U(!0),onLeave(h,w){h._isLeaving=!0;const K=()=>j(h,w);Et(h,p),kc(),Et(h,d),Gr(()=>{h._isLeaving&&(Wt(h,p),Et(h,b),Zr(V)||Qr(h,o,B,K))}),Ht(V,[h,K])},onEnterCancelled(h){$(h,!1),Ht(E,[h])},onAppearCancelled(h){$(h,!0),Ht(m,[h])},onLeaveCancelled(h){j(h),Ht(_,[h])}})}function wc(e){if(e==null)return null;if(ve(e))return[oi(e.enter),oi(e.leave)];{const t=oi(e);return[t,t]}}function oi(e){return xo(e)}function Et(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[kn]||(e[kn]=new Set)).add(t)}function Wt(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 Gr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let xc=0;function Qr(e,t,n,o){const i=e._endId=++xc,r=()=>{i===e._endId&&o()};if(n)return setTimeout(r,n);const{type:s,timeout:l,propCount:a}=Sc(e,t);if(!s)return o();const c=s+"end";let u=0;const p=()=>{e.removeEventListener(c,d),r()},d=b=>{b.target===e&&++u>=a&&p()};setTimeout(()=>{u<a&&p()},l+1),e.addEventListener(c,d)}function Sc(e,t){const n=window.getComputedStyle(e),o=S=>(n[S]||"").split(", "),i=o(`${Tt}Delay`),r=o(`${Tt}Duration`),s=Jr(i,r),l=o(`${Sn}Delay`),a=o(`${Sn}Duration`),c=Jr(l,a);let u=null,p=0,d=0;t===Tt?s>0&&(u=Tt,p=s,d=r.length):t===Sn?c>0&&(u=Sn,p=c,d=a.length):(p=Math.max(s,c),u=p>0?s>c?Tt:Sn:null,d=u?u===Tt?r.length:a.length:0);const b=u===Tt&&/\b(transform|all)(,|$)/.test(o(`${Tt}Property`).toString());return{type:u,timeout:p,propCount:d,hasTransform:b}}function Jr(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>es(n)+es(e[o])))}function es(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function kc(){return document.body.offsetHeight}function Ic(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 ii=Symbol("_vod"),ts={beforeMount(e,{value:t},{transition:n}){e[ii]=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[ii]:"none"}const Cc=Symbol("");function Tc(e,t,n){const o=e.style,i=o.display,r=Se(n);if(n&&!r){if(t&&!Se(t))for(const s in t)n[s]==null&&ri(o,s,"");for(const s in n)ri(o,s,n[s])}else if(r){if(t!==n){const s=o[Cc];s&&(n+=";"+s),o.cssText=n}}else t&&e.removeAttribute("style");ii in e&&(o.display=i)}const ns=/\s*!important$/;function ri(e,t,n){if(ee(n))n.forEach(o=>ri(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Ec(e,t);ns.test(n)?e.setProperty(He(o),n.replace(ns,""),"important"):e[o]=n}}const os=["Webkit","Moz","ms"],si={};function Ec(e,t){const n=si[t];if(n)return n;let o=je(t);if(o!=="filter"&&o in e)return si[t]=o;o=jn(o);for(let i=0;i<os.length;i++){const r=os[i]+o;if(r in e)return si[t]=r}return t}const is="http://www.w3.org/1999/xlink";function $c(e,t,n,o,i){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(is,t.slice(6,t.length)):e.setAttributeNS(is,t,n);else{const r=El(t);n==null||r&&!Ei(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function Pc(e,t,n,o,i,r,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,i,r),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=Ei(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 Mc(e,t,n,o){e.removeEventListener(t,n,o)}const rs=Symbol("_vei");function Oc(e,t,n,o,i=null){const r=e[rs]||(e[rs]={}),s=r[t];if(o&&s)s.value=o;else{const[l,a]=Lc(t);if(o){const c=r[t]=jc(o,i);on(e,l,c,a)}else s&&(Mc(e,l,s,a),r[t]=void 0)}}const ss=/(?:Once|Passive|Capture)$/;function Lc(e){let t;if(ss.test(e)){t={};let o;for(;o=e.match(ss);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):He(e.slice(2)),t]}let li=0;const zc=Promise.resolve(),Ac=()=>li||(zc.then(()=>li=0),li=Date.now());function jc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Ze(Dc(o,n.value),t,5,[o])};return n.value=e,n.attached=Ac(),n}function Dc(e,t){if(ee(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>i=>!i._stopped&&o&&o(i))}else return t}const ls=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Bc=(e,t,n,o,i,r,s,l,a)=>{const c=i==="svg";t==="class"?Ic(e,o,c):t==="style"?Tc(e,n,o):On(t)?vo(t)||Oc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Rc(e,t,o,c))?Pc(e,t,o,r,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),$c(e,t,o,c))};function Rc(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&ls(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 i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return ls(t)&&Se(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Nc(e,t){const n=ke(e);class o extends ai{constructor(r){super(n,r,t)}}return o.def=n,o}const Vc=typeof HTMLElement<"u"?HTMLElement:class{};class ai extends Vc{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),wt(()=>{this._connected||(fs(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 i of o)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(o,i=!1)=>{const{props:r,styles:s}=o;let l;if(r&&!ee(r))for(const a in r){const c=r[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=xo(this._props[a])),(l||(l=Object.create(null)))[je(a)]=!0)}this._numberProps=l,i&&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 i of Object.keys(this))i[0]!=="_"&&o.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of o.map(je))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(r){this._setProp(i,r)}})}_setAttr(t){let n=this.getAttribute(t);const o=je(t);this._numberProps&&this._numberProps[o]&&(n=xo(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,i=!0){n!==this._props[t]&&(this._props[t]=n,i&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(He(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(He(t),n+""):n||this.removeAttribute(He(t))))}_update(){fs(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Q(this._def,xe({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(r,s)=>{this.dispatchEvent(new CustomEvent(r,{detail:s}))};n.emit=(r,...s)=>{o(r,s),He(r)!==r&&o(He(r),s)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof ai){n.parent=i._instance,n.provides=i._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}const as=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?n=>Dn(t,n):t};function Fc(e){e.target.composing=!0}function cs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ci=Symbol("_assign"),Hc={created(e,{modifiers:{lazy:t,trim:n,number:o}},i){e[ci]=as(i);const r=o||i.props&&i.props.type==="number";on(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),r&&(l=wo(l)),e[ci](l)}),n&&on(e,"change",()=>{e.value=e.value.trim()}),t||(on(e,"compositionstart",Fc),on(e,"compositionend",cs),on(e,"change",cs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:i}},r){if(e[ci]=as(r),e.composing)return;const s=i||e.type==="number"?wo(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Wc=["ctrl","shift","alt","meta"],Kc={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)=>Wc.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]=(i,...r)=>{for(let s=0;s<t.length;s++){const l=Kc[t[s]];if(l&&l(i,t))return}return e(i,...r)})},qc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},us=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=i=>{if(!("key"in i))return;const r=He(i.key);if(t.some(s=>s===r||qc[s]===r))return e(i)})},Uc=xe({patchProp:Bc},_c);let ds;function Yc(){return ds||(ds=Ga(Uc))}const fs=(...e)=>{Yc().render(...e)};var ps;const ui=typeof window<"u",Xc=e=>typeof e=="string",$t=()=>{};ui&&((ps=window==null?void 0:window.navigator)!=null&&ps.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function po(e){return typeof e=="function"?e():Y(e)}function hs(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}function Zc(e,t={}){let n,o,i=$t;const r=l=>{clearTimeout(l),i(),i=$t};return l=>{const a=po(e),c=po(t.maxWait);return n&&r(n),a<=0||c!==void 0&&c<=0?(o&&(r(o),o=null),Promise.resolve(l())):new Promise((u,p)=>{i=t.rejectOnCancel?p:u,c&&!o&&(o=setTimeout(()=>{n&&r(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&r(o),o=null,u(l())},a)})}}function Gc(e,t=!0,n=!0,o=!1){let i=0,r,s=!0,l=$t,a;const c=()=>{r&&(clearTimeout(r),r=void 0,l(),l=$t)};return p=>{const d=po(e),b=Date.now()-i,S=()=>a=p();if(c(),d<=0)return i=Date.now(),S();if(b>d&&(n||!s))i=Date.now(),S();else if(t)return new Promise((I,B)=>{l=o?B:I,r=setTimeout(()=>{i=Date.now(),s=!0,I(S()),c()},d-b)});return!n&&!r&&(r=setTimeout(()=>s=!0,d)),s=!1,a}}function Qc(e){return e}function di(e){return Pi()?(Ml(e),!0):!1}function Ae(e,t=200,n={}){return hs(Zc(t,n),e)}function gs(e,t=200,n=!1,o=!0,i=!1){return hs(Gc(t,n,o,i),e)}function ms(e,t=!0){ti()?Qe(e):t?e():wt(e)}function Kt(e){var t;const n=po(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Cn=ui?window:void 0,Jc=ui?window.document:void 0;function Pt(...e){let t,n,o,i;if(Xc(e[0])||Array.isArray(e[0])?([n,o,i]=e,t=Cn):[t,n,o,i]=e,!t)return $t;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],s=()=>{r.forEach(u=>u()),r.length=0},l=(u,p,d)=>(u.addEventListener(p,d,i),()=>u.removeEventListener(p,d,i)),a=pe(()=>Kt(t),u=>{s(),u&&r.push(...n.flatMap(p=>o.map(d=>l(u,p,d))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return di(c),c}function vs(e,t=!1){const n=X(),o=()=>n.value=!!e();return o(),ms(o,t),n}const bs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_s="__vueuse_ssr_handlers__";bs[_s]=bs[_s]||{};function ys({document:e=Jc}={}){if(!e)return X("visible");const t=X(e.visibilityState);return Pt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var ws=Object.getOwnPropertySymbols,eu=Object.prototype.hasOwnProperty,tu=Object.prototype.propertyIsEnumerable,nu=(e,t)=>{var n={};for(var o in e)eu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&ws)for(var o of ws(e))t.indexOf(o)<0&&tu.call(e,o)&&(n[o]=e[o]);return n};function ou(e,t,n={}){const o=n,{window:i=Cn}=o,r=nu(o,["window"]);let s;const l=vs(()=>i&&"ResizeObserver"in i),a=()=>{s&&(s.disconnect(),s=void 0)},c=pe(()=>Kt(e),p=>{a(),l.value&&i&&p&&(s=new ResizeObserver(t),s.observe(p,r))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return di(u),{isSupported:l,stop:u}}function xs(e,t={width:0,height:0},n={}){const{window:o=Cn,box:i="content-box"}=n,r=se(()=>{var a,c;return(c=(a=Kt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=X(t.width),l=X(t.height);return ou(e,([a])=>{const c=i==="border-box"?a.borderBoxSize:i==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&r.value){const u=Kt(e);if(u){const p=o.getComputedStyle(u);s.value=parseFloat(p.width),l.value=parseFloat(p.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((p,{inlineSize:d})=>p+d,0),l.value=u.reduce((p,{blockSize:d})=>p+d,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),pe(()=>Kt(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function fi(e,t,n={}){const{root:o,rootMargin:i="0px",threshold:r=.1,window:s=Cn}=n,l=vs(()=>s&&"IntersectionObserver"in s);let a=$t;const c=l.value?pe(()=>({el:Kt(e),root:Kt(o)}),({el:p,root:d})=>{if(a(),!p)return;const b=new IntersectionObserver(t,{root:d,rootMargin:i,threshold:r});b.observe(p),a=()=>{b.disconnect(),a=$t}},{immediate:!0,flush:"post"}):$t,u=()=>{a(),c()};return di(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 iu=Object.defineProperty,ks=Object.getOwnPropertySymbols,ru=Object.prototype.hasOwnProperty,su=Object.prototype.propertyIsEnumerable,Is=(e,t,n)=>t in e?iu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lu=(e,t)=>{for(var n in t||(t={}))ru.call(t,n)&&Is(e,n,t[n]);if(ks)for(var n of ks(t))su.call(t,n)&&Is(e,n,t[n]);return e};lu({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 Cs(e={}){const{window:t=Cn,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:i=!0,includeScrollbar:r=!0}=e,s=X(n),l=X(o),a=()=>{t&&(r?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),ms(a),Pt("resize",a,{passive:!0}),i&&Pt("orientationchange",a,{passive:!0}),{width:s,height:l}}const au=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let i=1,r=.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;i<=c?(i++,r-=.65/c,o.style.transform=`scale(${i})`,o.style.opacity=`${r}`):(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=>au(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},cu={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},uu={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},du=ke({__name:"AutoNext",props:{hasNext:{type:Boolean},seconds:{}},emits:["next","hide"],setup(e,{emit:t}){const n=e,o=t,i=X(null),r=X(null),s=X(!1),l=X(!1),a=X(n.seconds),c=X(n.seconds<0),u=X(n.seconds);return Qe(()=>{let p;fi(r,d=>{l.value=d.some(b=>b.isIntersecting),c.value=n.seconds<0,a.value=n.seconds,u.value=n.seconds,p&&(clearInterval(p),p=void 0),!(!l.value||c.value)&&(p=setInterval(()=>{a.value-=1,a.value<=0&&(clearInterval(p),p=void 0,o("next"))},1e3))}),fi(i,d=>{s.value=d.some(b=>b.isIntersecting)}),Rt(()=>p&&clearInterval(p))}),(p,d)=>(O(),q("div",{ref_key:"root",ref:i,class:"h-full w-full flex justify-center items-center"},[st(Z("div",cu,[p.hasNext?(O(),q("div",uu,[l.value?(O(),q("div",{key:0,class:"absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50",style:Oe(c.value?{}:{animation:`auto-next ${u.value}s linear forwards`})},null,4)):Ce("",!0),st((O(),q("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 totalDuration-200",onClick:d[0]||(d[0]=et(()=>o("next"),["stop"]))},[kt(Xe(c.value?"Next":`Next in ${a.value}`),1)])),[[Y(rn)]])])):Ce("",!0),st((O(),q("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 totalDuration-200",onClick:d[1]||(d[1]=et(()=>o("hide"),["stop"]))},[kt(" Hide ")])),[[Y(rn)]])],512),[[ts,s.value||!p.hasNext]])],512))}}),fu=`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
21
+ `,ge=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},Ts=ge(du,[["styles",[fu]]]),pu=Object.freeze(Object.defineProperty({__proto__:null,default:Ts},Symbol.toStringTag,{value:"Module"}));function hu({touchDevice:e}){const t=X(!1);let n=0;return no("busy:touchDevice",e),no("setBusyState",o=>{n+=o?1:-1;const i=n>0;t.value!=i&&(t.value=i)}),t}function pi(){const e=Nt("busy:touchDevice"),t=Nt("setBusyState");let n=!1;return Rt(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:i=!1}={})=>{i&&e||(n=o,t==null||t(o))}}const gu={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,i=pi();let r=!1;function s(){r||(r=!0,i(!0,{desktopOnly:!0}))}function l(){r&&(r=!1,i(!1,{desktopOnly:!0}))}function a(c){n.disabled?c.preventDefault():o("click",c)}return(c,u)=>st((O(),he(ba(c.href?"a":"button"),ao(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(()=>[Z("div",gu,[_e(c.$slots,"default")])]),_:3},16,["class"])),[[Y(rn),c.disabled?0:15]])}}),mu=Object.freeze(Object.defineProperty({__proto__:null,default:tt},Symbol.toStringTag,{value:"Module"})),vu={},bu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},_u=[Z("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 yu(e,t){return O(),q("svg",bu,_u)}const Es=ge(vu,[["render",yu]]),wu=Object.freeze(Object.defineProperty({__proto__:null,default:Es},Symbol.toStringTag,{value:"Module"}));class xu{constructor(){me(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 Su(){const e=new xu;return Rt(()=>e.dispose()),no("keyController",e),e}function ho(e){const t=Nt("keyController");Qe(()=>t.addListener(e)),Rt(()=>t.removeListener(e))}const ku={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},Iu={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3 select-text"},Cu={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");ho({onKeyDown:o});const n=pi();pe(t,i=>n(i));function o(i){t.value&&i.key==="Escape"&&(t.value=!1,i.preventDefault())}return(i,r)=>(O(),q("div",{class:Te(["fixed-screen flex flex-col items-center justify-end select-none",{"!pointer-events-none":!t.value}]),onClick:r[3]||(r[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?(O(),q("div",{key:0,class:"inline-flex flex-col h-[30rem] 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:r[1]||(r[1]=et(()=>{},["stop"])),onWheelPassive:r[2]||(r[2]=et(()=>{},["stop"]))},[Z("div",ku,[Q(tt,{transparent:"",onClick:r[0]||(r[0]=()=>t.value=!1)},{default:ie(()=>[Q(Es)]),_:1}),Z("div",Iu,Xe(i.name),1),_e(i.$slots,"actions")]),Z("div",Cu,[_e(i.$slots,"default")])],32)):Ce("",!0)]),_:3})],2))}}),Tu=Object.freeze(Object.defineProperty({__proto__:null,default:$s},Symbol.toStringTag,{value:"Module"})),Eu=["min","max","step"],$u={class:"flex-shrink-0"},hi=ge(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,i)=>(O(),q("div",{class:Te(["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}%`})},[st(Z("input",{"onUpdate:modelValue":i[0]||(i[0]=r=>n.value=r),type:"range",min:o.min,max:o.max,step:o.step??1,class:"flex-grow"},null,8,Eu),[[Hc,n.value]]),Z("p",$u,[_e(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
+ `]]]),Pu=Object.freeze(Object.defineProperty({__proto__:null,default:hi},Symbol.toStringTag,{value:"Module"})),Mu=["onClick","onKeyup"],Tn=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=X(null),i=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&&(i.value={width:a.offsetWidth+"px",left:a.offsetLeft+"px"},a.scrollIntoView({behavior:s?"smooth":"auto",block:"center",inline:"center"}),s=!0)},{immediate:!0})});function r(s){n.value=s}return(s,l)=>(O(),q("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:{}},[Z("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Oe(i.value)},null,4),(O(!0),q(Ie,null,mn(t.items,(a,c)=>st((O(),q("div",{key:c,tabindex:"0",class:Te(["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:()=>r(c),onKeyup:[us(()=>r(c),["enter"]),us(()=>r(c),["space"])]},[kt(Xe(a),1)],42,Mu)),[[Y(rn),30]])),128))],512))}}),Ou=Object.freeze(Object.defineProperty({__proto__:null,default:Tn},Symbol.toStringTag,{value:"Module"})),Lu={class:"flex items-center mb-8 last:mb-0"},zu={class:"flex-grow overflow-hidden"},qt=ke({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(O(),q("div",Lu,[Z("div",{class:Te(["flex-shrink-0 w-[4.8rem]",{"opacity-50":t.disabled}])},Xe(t.label),3),Z("div",zu,[_e(t.$slots,"default")])]))}}),Au=Object.freeze(Object.defineProperty({__proto__:null,default:qt},Symbol.toStringTag,{value:"Module"})),ju={},Du={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Bu=[Z("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 Ru(e,t){return O(),q("svg",Du,Bu)}const Ps=ge(ju,[["render",Ru]]),Nu=Object.freeze(Object.defineProperty({__proto__:null,default:Ps},Symbol.toStringTag,{value:"Module"})),Vu={},Fu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Hu=[Z("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),Z("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Wu(e,t){return O(),q("svg",Fu,Hu)}const Ms=ge(Vu,[["render",Wu]]),Ku=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 Uu(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var ct=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(ct||{}),Mt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Mt||{});const Yu=.25,Xu=5,Zu=.25,En=.2,$n=5,Gu=.05,Qu=0,Ju=4,Os=5;function ed(e){var _,x,F,m,$,j,U;const{titleName:t,isWebtoon:n}=e,o=se(()=>t.value?Uu(t.value):location.hostname),i=X(td(`tkr:${o.value}`)),r=h=>{i.value=h;const w=`tkr:${o.value}`;!h||!Object.keys(h).length?localStorage.removeItem(w):localStorage.setItem(w,JSON.stringify(h))},s=h=>{if(!i.value){r(h);return}const w={...i.value};Object.entries(h).forEach(([K,oe])=>{oe===void 0?delete w[K]:w[K]=oe}),r(w)},l=X(((_=i.value)==null?void 0:_.style)??e.defaultStyle??Mt.longStrip),a=X(((x=i.value)==null?void 0:x.direction)??e.defaultDirection??ct.vertical),c=X((F=i.value)==null?void 0:F.gap),u=X(((m=i.value)==null?void 0:m.speed)??1),p=X((($=i.value)==null?void 0:$.zoom)??1),d=X(((j=i.value)==null?void 0:j.breakFirst)??!1),b=X(((U=i.value)==null?void 0:U.autoNextSeconds)??Os),S=se({get(){return n.value?Mt.longStrip:l.value},set:h=>{l.value=h,s({style:h}),h!==Mt.longStrip&&a.value===ct.vertical&&(I.value=ct.rtl)}}),I=se({get:()=>n.value?ct.vertical:a.value,set:h=>{a.value=h,s({direction:h})}}),B=se({get:()=>c.value!==void 0?c.value:e.maybeWebtoon.value||S.value!==Mt.longStrip?0:1,set(h){c.value=h,s({gap:h})}}),R=se({get:()=>u.value,set(h){u.value=h,s({speed:h===1?void 0:h})}}),W=se({get:()=>p.value,set(h){p.value=h,s({zoom:h===1?void 0:h})}}),E=se({get:()=>d.value,set(h){d.value=h,s({breakFirst:h?!0:void 0})}}),V=se({get:()=>b.value,set(h){b.value=h,s({autoNextSeconds:h===Os?void 0:h})}});return{direction:I,style:S,gap:B,speed:R,zoom:W,isLongStrip:se(()=>S.value===Mt.longStrip),isDouble:se(()=>S.value===Mt.double),isRTL:se(()=>I.value===ct.rtl),isVertical:se(()=>I.value===ct.vertical),breakFirst:E,autoNextSeconds:V}}function td(e){const t=localStorage.getItem(e),n=qu(t),o={};return n?(n.style!==void 0&&Object.values(Mt).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(ct).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=Qu&&n.gap<=Ju&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=En&&n.speed<=$n&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=En&&n.zoom<=$n&&(o.zoom=n.zoom),n.breakFirst===!0&&(o.breakFirst=!0),n.autoNextSeconds<=5&&n.autoNextSeconds>=-1&&(o.autoNextSeconds=n.autoNextSeconds),Object.keys(o).length?o:void 0):o}const Ls=ke({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},autoNextSeconds:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:autoNextSeconds","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=e,o=t,i=X(!1),r=se(()=>n.name??location.hostname);ho({onKeyUp:a=>{a.key==="s"&&!a.metaKey&&!a.ctrlKey&&(i.value=!i.value)}});function s(a){o("update:zoom",Math.round(a)/100)}function l(){i.value=!1,o("help")}return(a,c)=>(O(),q(Ie,null,[Q(tt,{title:"Reader settings (S)",disabled:a.disabled,onClick:c[0]||(c[0]=()=>i.value=!0)},{default:ie(()=>[Q(Ms)]),_:1},8,["disabled"]),Q($s,{modelValue:i.value,"onUpdate:modelValue":c[6]||(c[6]=u=>i.value=u),name:r.value},{actions:ie(()=>[Q(tt,{transparent:"",onClick:l},{default:ie(()=>[Q(Ps)]),_:1})]),default:ie(()=>[Q(qt,{label:"Style"},{default:ie(()=>[Q(Tn,{"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(qt,{label:"Direction"},{default:ie(()=>[Q(Tn,{"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(qt,{label:"Gap"},{default:ie(()=>[Q(Tn,{"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(qt,{label:"Auto Next"},{default:ie(()=>[Q(Tn,{"model-value":a.autoNextSeconds<0?0:a.autoNextSeconds,items:["None","1s","2s","3s","4s","5s"],"onUpdate:modelValue":c[4]||(c[4]=u=>o("update:autoNextSeconds",u===0?-1:u))},null,8,["model-value"])]),_:1}),Q(qt,{label:"Speed"},{default:ie(()=>[Q(hi,{"model-value":a.speed,min:Y(Yu),max:Y(Xu),step:Y(Zu),suffix:"x","onUpdate:modelValue":c[5]||(c[5]=u=>o("update:speed",u))},{suffix:ie(()=>[kt(Xe(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),Q(qt,{label:"Zoom"},{default:ie(()=>[Q(hi,{"model-value":Math.ceil(a.zoom*100),min:Y(En)*100,max:Y($n)*100,step:Y(Gu)*100,"onUpdate:modelValue":s},{suffix:ie(()=>[kt(Xe(Math.ceil(a.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64))}}),nd=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),od={},id={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},rd=[Z("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[Z("circle",{cx:"14",cy:"14",r:"12"}),Z("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function sd(e,t){return O(),q("svg",id,rd)}const zs=ge(od,[["render",sd]]),ld=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),ad={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"},cd={class:"block w-4 h-4"},ud={class:"w-12"},As=ke({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>(O(),q("button",ad,[Z("div",cd,[Q(zs)]),Z("div",ud,Xe(Math.ceil(t.zoom*100))+"%",1)]))}}),dd=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"}));async function sn(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(i=>{setTimeout(async()=>{const r=await sn(e-1,t,n);i(r)},t)})}const fd={},pd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},hd=[rc('<circle cx="18" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".67" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="12" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".33" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="6" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin="0" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle>',3)];function gd(e,t){return O(),q("svg",pd,hd)}const js=ge(fd,[["render",gd]]),md=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),vd={},bd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},_d=[Z("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function yd(e,t){return O(),q("svg",bd,_d)}const Ds=ge(vd,[["render",yd]]),wd=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),xd=["aria-hidden"],Sd=["onClick"],kd={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"},Id={class:"whitespace-nowrap"},gi=ke({__name:"ButtonDropdown",props:tn({label:{},title:{},items:{},disabled:{type:Boolean},canLoadItems:{type:Boolean},loadItems:{type:Function}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:tn(["select"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,i=xn(e,"modelValue"),r=X(null),s=X(!1),l=X(!1),a=X(!1),c=X(!1),u=X(!1),p={mounted:m=>{var $;($=m.children[i.value])==null||$.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}};ho({onKeyDown:R});const d=pi();async function b(){if(!n.items.length&&(s.value||await S(),!n.items.length)){s.value=!1;return}s.value=!s.value,d(s.value),s.value?(I(),E(r.value)):setTimeout(V,250)}async function S(){l.value||n.items.length||!n.canLoadItems||!n.loadItems||(l.value=!0,await n.loadItems(),l.value=!1)}function I(){const m=r.value;if(m){const $=m.getBoundingClientRect(),j=$.x+$.width/2;a.value=$.y>window.innerHeight/2,c.value=j<window.innerWidth/3,u.value=j>window.innerWidth/3*2}}function B(m,$){b(),m!=i.value&&(i.value=m,o("select",m,$))}function R(m){s.value&&m.key==="Escape"&&(b(),m.preventDefault())}let W=[];function E(m){const $=window.getComputedStyle(m).zIndex,j=m.style.zIndex;(!$||!(+$>0))&&((!m.parentElement||m.parentElement.childElementCount>1)&&(m.style.zIndex="1",W.push({el:m,zIndex:j})),m.parentElement&&E(m.parentElement))}function V(){W.forEach(({el:m,zIndex:$})=>{m.style.zIndex=$??""}),W=[]}let _=!1;function x(){_||(_=!0,d(!0,{desktopOnly:!0}))}function F(){_&&(_=!1,d(!1,{desktopOnly:!0}))}return(m,$)=>(O(),q("div",{ref_key:"root",ref:r,class:"select-none relative inline-flex"},[s.value?(O(),q("div",{key:0,class:"fixed-screen bg-transparent",onClick:b})):Ce("",!0),m.items.length?(O(),he(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?st((O(),q("ul",{key:0,ref:"list","aria-hidden":!s.value,class:Te(["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:$[0]||($[0]=et(()=>{},["stop"]))},[(O(!0),q(Ie,null,mn(m.items,(j,U)=>st((O(),q("li",{key:U,tabindex:"-1",class:Te(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":U===i.value}]),onClick:h=>B(U,h)},[Z("div",{class:Te(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":U>0}])},[_e(m.$slots,"item",{item:j},()=>[kt(Xe(j),1)])],2)],10,Sd)),[[Y(rn),30]])),128))],42,xd)),[[p]]):Ce("",!0)]),_:3})):Ce("",!0),st((O(),q("button",ao({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||l.value}]},m.title?{title:m.title}:{},{onClick:et(b,["stop"]),onMouseenter:x,onMouseleave:F}),[Z("div",kd,[Z("span",Id,Xe(m.label),1),m.items.length||m.canLoadItems?(O(),q("span",{key:0,class:Te(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":a.value}]),"aria-hidden":"true"},[l.value?(O(),he(js,{key:0})):(O(),he(Ds,{key:1}))],2)):Ce("",!0)])],16)),[[Y(rn),30]])],512))}}),Cd=Object.freeze(Object.defineProperty({__proto__:null,default:gi},Symbol.toStringTag,{value:"Module"})),Bs=ke({__name:"ChapterNav",props:{data:{},chapterSpec:{},touchDevice:{type:Boolean}},emits:["getHiddenChapters"],setup(e,{emit:t}){const n=e,o=t;async function i(){o("getHiddenChapters"),await sn(50,50,()=>n.data.chapters.length?!0:void 0)}function r(l,a){var c,u,p;(p=(u=(c=n.data)==null?void 0:c.chapters)==null?void 0:u[l])==null||p.select(s(a))}function s(l){return!n.touchDevice&&(l.ctrlKey||l.metaKey)}return(l,a)=>{var c;return O(),he(gi,{modelValue:l.data.activeIndex,label:l.data.activeLabel,title:"Select chapter",items:l.data.chapters,"can-load-items":!!((c=l.chapterSpec)!=null&&c.trigger),"load-items":i,onSelect:r},{item:ie(({item:u})=>[kt(Xe(u.label),1)]),_:1},8,["modelValue","label","items","can-load-items"])}}}),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 24 24"},Pd=[Z("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 Md(e,t){return O(),q("svg",$d,Pd)}const Rs=ge(Ed,[["render",Md]]),Od=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"})),Ns=ke({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=X(typeof n!="string"||+n!==t.direction),i=Ae(()=>o.value=!1,1250);pe(()=>t.direction,()=>{r(),o.value=!0,i()}),Qe(()=>{r(),i();let s;const l=ys();pe(l,a=>{a!=="visible"?s=Date.now():Date.now()-s>7e3&&(o.value=!0,i())})});function r(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,l)=>(O(),he(nn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[o.value?(O(),q("div",{key:0,class:Te(["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===Y(ct).vertical,"rotate-180":s.direction===Y(ct).rtl}])},[Q(Rs)],2)):Ce("",!0)]),_:1}))}}),Ld=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"})),zd=Z("div",{class:"fixed-screen bg-black bg-opacity-90"},null,-1),Vs=ke({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,i=X(null),r=X([]);Qe(async()=>{const c=xs(i),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 d;const u=(d=i.value)==null?void 0:d.parentElement;if(!u)return;const p=Array.from(u.querySelectorAll("#controls [title]"));p.length&&(r.value=l(p,c))}function l(c,u){const p=[],d=[];let b=0,S=0;const I=50,B=25;c.forEach(_=>{var j;const x=(j=_.getAttribute("title"))==null?void 0:j.trim(),F=_.getBoundingClientRect();if(!x||!F.height||!F.width)return;const m=Math.ceil((F.top-10)/I),$=Math.ceil((F.left-10)/I);d.push({isTour:!1,title:x,rect:F,fromX:$,toX:Math.max($+1,Math.ceil((F.right+10)/I)),fromY:m,toY:Math.max(m+1,Math.ceil((F.bottom+10)/I))})}),d.forEach(_=>{for(let x=_.fromY;x<_.toY;x++){p[x]??(p[x]=[]);for(let F=_.fromX;F<_.toX;F++)p[x][F]=_;_.toY>b+1&&(b=_.toY-1),_.toX>S+1&&(S=_.toX-1)}});let R=S/2;d.forEach(_=>{_.isAlignRight=_.fromX>R});const W=(_,x)=>{p[x]??(p[x]=[]);const F=x>=_.toY;if(_.isTour)for(let m=_.fromX;m<_.toX;m++)delete p[_.fromY][m],_.fromY=x,_.toY=x+(F?1:-1),p[x][m]=_;else{const m=_.isAlignRight?_.fromX-3:_.fromX,$=m+3;_.helpItem={fromX:m,toX:$,fromY:x,toY:x+1,isTour:!0,isAlignRight:_.isAlignRight};for(let j=m;j<$;j++)p[x][j]=_.helpItem}},E=(_,x)=>{if(x>b||x<0)return!1;const F=x>=_.toY,m=p[x];if(!m)return W(_,x),!0;const $=m[_.fromX];if($&&!$.isTour)return!1;if($&&$.isTour)return E($,F?x+1:x-1)?(W(_,x),!0):!1;if(!$){const j=_.isAlignRight?-1:1;return m[_.fromX+j]||m[_.fromX+j*2]?E(_,F?x+1:x-1):(W(_,x),!0)}return!1};d.forEach(_=>{if(!E(_,_.toY)){if(_.isAlignRight){const x=p[_.fromY]??[];if(!x.slice(_.fromX-3,_.fromX).filter(Boolean).length){const m=_.fromX-3,$=_.fromX;_.helpItem={isTour:!0,isAlignRight:!0,fromX:m,toX:$,fromY:_.fromY,toY:_.toY};for(let j=_.fromX-3;j<_.fromX;j++)x[j]=_.helpItem;return}}E(_,_.fromY-1)}});const V=[];return d.forEach(_=>{const{title:x,helpItem:F,rect:m,isAlignRight:$,fromX:j,fromY:U,toY:h}=_;if(!x||!F||!m)return;const w=F.fromY>=h,K=F.toY<=U;V.push({title:a(x),style:{top:w?`${m.bottom+(F.fromY-h)*I+B}px`:K?void 0:`${m.top+8}px`,bottom:K?`${u.height-m.top+(F.toY-U)*I+B}px`:void 0,left:$?void 0:`${m.left}px`,right:$?w?`${u.width-m.right}px`:`${u.width-m.right+m.width+B}px`:void 0},arrowStyle:{width:K||w?"2px":`${Math.abs(F.toX-j)*I+B-5}px`,height:K||w?`${(w?F.fromY-h:U-F.toY)*I+B}px`:"2px",top:w?`${m.bottom}px`:K?void 0:`${m.top+20}px`,bottom:K?`${u.height-m.top}px`:void 0,left:$?void 0:`${m.left+m.width/2}px`,right:$?w?`${u.width-m.right+m.width/2}px`:`${u.width-m.right+m.width}px`:void 0}})}),V}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(O(),q(Ie,null,[zd,Z("div",{ref_key:"root",ref:i,class:"fixed-screen z-20 overscroll-contain select-none",onClick:u[0]||(u[0]=et(p=>o("hide"),["stop"]))},[(O(!0),q(Ie,null,mn(r.value,p=>(O(),q(Ie,{key:p.title},[Z("div",{class:"absolute",style:Oe(p.style)},Xe(p.title),5),Z("div",{class:"absolute bg-stone-300 rounded-lg",style:Oe(p.arrowStyle)},null,4)],64))),128))],512)],64))}}),Ad=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"})),Fs=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("-"))),i=se(()=>{const a=n.value,c=t.pages.findIndex(u=>u.some(({index:p})=>p===a));return c===-1?t.pages.length-1:c}),r=se(()=>t.pages.length?`${o.value[i.value]}/${t.totalImgs}`:"--");function s(a){const c=t.pages[a][0].index;l(c)}function l(a){n.value=a}return(a,c)=>(O(),he(gi,{"model-value":i.value,label:r.value,title:"Current page",items:o.value,disabled:a.disabled,"onUpdate:modelValue":s},null,8,["model-value","label","items","disabled"]))}}),jd=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),Dd={},Bd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Rd=[Z("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),Z("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 Nd(e,t){return O(),q("svg",Bd,Rd)}const mi=ge(Dd,[["render",Nd]]),Vd=Object.freeze(Object.defineProperty({__proto__:null,default:mi},Symbol.toStringTag,{value:"Module"})),Fd={},Hd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Wd=[Z("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 Kd(e,t){return O(),q("svg",Hd,Wd)}const vi=ge(Fd,[["render",Kd]]),qd=Object.freeze(Object.defineProperty({__proto__:null,default:vi},Symbol.toStringTag,{value:"Module"})),Hs=ge(ke({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=X(0);return pe(()=>t.playing,()=>{n.value=Date.now()}),(o,i)=>n.value?(O(),q("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?(O(),he(vi,{key:0})):(O(),he(mi,{key:1}))])):Ce("",!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
+ `]]]),Ud=Object.freeze(Object.defineProperty({__proto__:null,default:Hs},Symbol.toStringTag,{value:"Module"})),Ws=ke({__name:"GesturesContainer",props:{zoom:{},zooming:{type:Boolean},pageIndex:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},emits:["update:zoom","update:zooming","dragEnd","click"],setup(e,{emit:t}){const n=e,o=t,i=X(null),r=X(Math.min($n,Math.max(En,n.zoom))),s=X(!1),l=X(!1),a={isZoomIn:!1,isZoomOut:!1,initial:void 0};pe(()=>n.zoom,h=>U(h)),Qe(()=>{n.touchDevice?Pt(i,"touchstart",I):(Pt(i,"mousedown",d),Pt(window,"wheel",_))}),ho({onKeyDown:h=>{var w;if(!n.busy&&((w=i.value)==null||w.focus(),!(h.key==="Meta"||h.key==="Control")&&(h.ctrlKey||h.metaKey)))switch(h.key){case"0":U(1);break;case"-":U(r.value-.2),h.preventDefault();break;case"=":case"+":U(r.value+.2),h.preventDefault();break}},onKeyUp:h=>{n.zooming&&!(h.ctrlKey||h.metaKey)&&m()}});function c(h){l.value!==h&&(l.value=h,h?n.playController.pause():(o("dragEnd"),n.playController.resume()))}let u={x:0,y:0},p={x:0,y:0};function d(h){h.button===0&&(u={x:h.clientX,y:h.clientY},p={x:i.value.scrollLeft,y:i.value.scrollTop},window.addEventListener("mousemove",b),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",b),setTimeout(()=>c(!1))},{once:!0}),h.preventDefault(),h.stopPropagation())}function b(h){c(!0);const w=h.clientX-u.x,K=h.clientY-u.y,oe=i.value;oe.scrollLeft=p.x-w,oe.scrollTop=p.y-K}let S={distance:0,zoom:r.value,x:0,y:0};function I(h){if(n.busy)return;let w=h.touches.length===2;w&&(o("update:zooming",!0),c(!0),h.stopPropagation(),h.preventDefault(),S={distance:x(h),zoom:r.value,x:(h.touches[0].clientX+h.touches[1].clientX)/2,y:(h.touches[0].clientY+h.touches[1].clientY)/2}),(w||n.playController.isPlaying.value&&n.longStrip)&&(window.addEventListener("touchmove",R),window.addEventListener("touchend",B,{once:!0}))}function B(){if(window.removeEventListener("touchmove",R),n.zooming){c(!1),m();return}if(!l.value)return;const h=Ae(()=>{c(!1),i.value.removeEventListener("scroll",K)},200),w=setTimeout(h,200);i.value.addEventListener("scroll",K);function K(){clearTimeout(w),h()}}function R(h){if(c(!0),n.zooming){h.stopPropagation(),h.preventDefault();const K=x(h)/S.distance;j(Math.ceil(K*S.zoom*100)/100,S)}}const W=Ae(()=>s.value=!1,100);let E=!1;const V=Ae(()=>{E=!1},30);function _(h){if(n.busy)return;let w=n.zooming;if(E||(E=!0,w=h.ctrlKey||h.metaKey,w&&o("update:zooming",!0)),V(),w){h.stopPropagation(),h.preventDefault();const K=Math.ceil((r.value+h.deltaY*-.01)*100)/100;j(K,{x:h.clientX,y:h.clientY});return}n.horizontal&&(s.value||(s.value=!0),W(),h.deltaY&&(i.value&&(i.value.scrollLeft+=h.deltaY*(n.rtl?-1:1)),h.stopPropagation()))}function x(h){return Math.hypot(h.touches[0].clientX-h.touches[1].clientX,h.touches[0].clientY-h.touches[1].clientY)}function F(h){!l.value&&!n.zooming&&o("click",h)}function m(){o("update:zooming",!1),a.initial=void 0,a.isZoomIn=!1,a.isZoomOut=!1}function $(){if(a.initial)return;const h=i.value;if(!h)return;const w=h.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;w&&(a.initial={el:w,rect:w.getBoundingClientRect()})}function j(h,w){if(a.isZoomIn=a.isZoomIn||!a.isZoomOut&&h>1,a.isZoomIn&&h<1){U(1,w);return}if(a.isZoomOut=a.isZoomOut||!a.isZoomIn&&h<1,a.isZoomOut&&h>1){U(1,w);return}U(h,w)}async function U(h,w){const K=i.value,oe=Math.min($n,Math.max(En,h));if(!K||r.value===oe)return;$();const{initial:ae}=a;if(!ae)return;const z=(w==null?void 0:w.x)??K.clientWidth/2,L=(w==null?void 0:w.y)??K.clientHeight/2;r.value=oe,o("update:zoom",oe),await wt();const{el:ue,rect:de}=ae,ye=ue.offsetWidth/de.width,be=ue.offsetHeight/de.height;K.scrollLeft=ue.offsetLeft-de.left*ye+z*(ye-1),K.scrollTop=ue.offsetTop-de.top*be+L*(be-1)}return(h,w)=>(O(),q("div",{ref_key:"root",ref:i,tabindex:"0",class:Te(["w-full h-full overflow-auto scrollbar-none overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!h.longStrip&&(l.value||s.value||h.zooming),"cursor-grabbing":!h.touchDevice&&l.value,"overflow-hidden":h.zooming}]),style:Oe({"font-size":`${r.value}px`}),onClick:et(F,["stop"])},[_e(h.$slots,"default")],6))}}),Yd=Object.freeze(Object.defineProperty({__proto__:null,default:Ws},Symbol.toStringTag,{value:"Module"})),Ks=ke({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=t,o=X(null),i=X(!1);return Qe(async()=>{await wt();let r=!1;fi(o,s=>{const l=s.some(a=>a.isIntersecting);l!==i.value&&(i.value=l),l&&!r&&n("visible")})}),(r,s)=>(O(),q("div",{ref_key:"root",ref:o},[_e(r.$slots,"default",{visible:i.value})],512))}}),Xd=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),Zd=`.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
+ `,Gd={},Qd={class:"loading-indicator"};function Jd(e,t){return O(),q("div",Qd)}const bi=ge(Gd,[["render",Jd],["styles",[Zd]]]),ef=Object.freeze(Object.defineProperty({__proto__:null,default:bi},Symbol.toStringTag,{value:"Module"}));function tf({pageIndex:e,isLongStrip:t}){let n=e.value,o=e.value+3;const i=X(n),r=X(o),s=Ae(l,50);pe(e,a=>{n>a&&(n=a)});function l(){i.value!==n&&(i.value=n),r.value!==o&&(r.value=o)}return{min:i,max:r,onPageVisible(a){o<a&&(o=a),s()},onScroll(){t.value?l():s()}}}const nf={key:0,class:"img img--loading"},of=["src"],rf=["src"],sf=["data-index"],qs=ge(ke({__name:"ReaderBody",props:{pageIndex:{},direction:{},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isRTL:{type:Boolean},pages:{},totalImgs:{},gap:{},zoom:{},zooming:{type:Boolean},spaceTop:{},touchDevice:{type:Boolean},playController:{},busy:{type:Boolean},idle:{type:Boolean},hasNext:{type:Boolean}},emits:["update:zoom","update:zooming","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=t,i=X(null),r=Cs(),s=se(()=>{const{width:d,height:b}=r,S=n.isLongStrip?n.isVertical?d.value:b.value:Math.min(d.value,b.value);return Math.min(4,Math.max(1,Math.ceil(S/400-1)))*n.gap}),l=tf({pageIndex:se(()=>n.pageIndex),isLongStrip:se(()=>n.isLongStrip)}),a=se(()=>{const{width:{value:d},height:{value:b}}=r;return n.pages.map(S=>{var F;const I=S.some(m=>{var $;return($=m.img)==null?void 0:$.isLoading}),B=S.map(m=>m.index),R={isLoading:I,indexes:B};if(I||B[B.length-1]<l.min.value-1||B[0]>l.max.value+2)return R;const W=S.map(({img:m})=>m).filter(Boolean);if(!W.length||(R.srcs=W.map(({src:m})=>m),W.every(m=>m.hasError)))return R;const V=(F=W.find(m=>!m.hasError))==null?void 0:F.size,_=W.reduce((m,$)=>{var j;return m+(((j=$.size)==null?void 0:j.width)??V.width)},0),x=W.reduce((m,$)=>{var j;return m+(((j=$.size)==null?void 0:j.height)??V.height)},0)/W.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&d/_<b/x?(R.width=Math.min(d,_),R.height=x*R.width/_):R.height=Math.min(b,x),R})}),c=se(()=>{const d=n.isVertical?"width":"height";return a.value.map(b=>b[d]).filter(Boolean).sort((b,S)=>S-b)[0]});function u({indexes:d}){const b=d[d.length-1];b!==void 0&&l.onPageVisible(b)}function p(d){if(!n.isLongStrip){const b=n.isVertical?r.height.value:r.width.value,I=(n.isVertical?d.clientY:n.isRTL?b-d.clientX:d.clientX)/b;if(I<=.2&&n.pageIndex>0){o("prev");return}else if(I>=.8){o("next");return}}o("click")}return(d,b)=>(O(),he(Ws,{zoom:d.zoom,zooming:d.zooming,"page-index":d.pageIndex,class:Te(["rbod",{"rbod--touch":d.touchDevice,"rbod--long-strip":d.isLongStrip,"rbod--paging":!d.isLongStrip,"rbod--vertical":d.isVertical,"rbod--rtl":d.isRTL,"rbod--idle":d.idle,"rbod--first":!d.isLongStrip&&d.pageIndex===0,"rbod--last":!d.isLongStrip&&d.pageIndex===d.totalImgs&&!d.hasNext,"rbod--1page":a.value.length===1}]),"play-controller":d.playController,horizontal:!d.isVertical,rtl:d.isRTL,"touch-device":d.touchDevice,busy:d.busy,"long-strip":d.isLongStrip,style:Oe({"--gap":`${s.value}em`,"--space-top":(d.spaceTop||0)+"px","--screen-width-em":Y(r).width.value+"em","--screen-height-em":Y(r).height.value+"em",...d.isLongStrip?{"--max-size-em":c.value+"em"}:{}}),"onUpdate:zoom":b[0]||(b[0]=S=>o("update:zoom",S)),"onUpdate:zooming":b[1]||(b[1]=S=>o("update:zooming",S)),onDragEnd:b[2]||(b[2]=()=>o("dragEnd")),onClick:p,onScroll:Y(l).onScroll},{default:ie(()=>[(O(!0),q(Ie,null,mn(a.value,S=>(O(),he(Ks,ao({key:d.direction+"_"+S.indexes[0],"data-index":S.indexes[0]},S.indexes.length>1?{"data-index2":S.indexes[1]}:{},{onVisible:()=>u(S)}),{default:ie(({visible:I})=>{var B;return[!((B=S.srcs)!=null&&B.length)||S.isLoading?(O(),q("div",nf,[st(Q(bi,null,null,512),[[ts,I]])])):S.srcs.length==1?(O(),q("img",{key:1,class:Te(["img",{invisible:d.isLongStrip&&S.indexes[0]<d.pageIndex-1}]),src:S.srcs[0],style:Oe({height:S.height!==void 0?S.height+"em":""})},null,14,of)):(O(),q("div",{key:2,class:Te(["img img--double",{"flex-row-reverse":d.isRTL}]),style:Oe({width:S.width!==void 0?S.width+"em":"",height:S.height!==void 0?S.height+"em":""})},[(O(!0),q(Ie,null,mn(S.srcs,R=>(O(),q("div",{key:R},[Z("img",{src:R},null,8,rf)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),Z("div",{ref_key:"autoNextEl",ref:i,class:"last","data-index":d.totalImgs},[_e(d.$slots,"end")],8,sf)]),_:3},8,["zoom","zooming","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style","onScroll"]))}}),[["styles",[`.rbod{--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){.rbod{transform:none}}.rbod--rtl{flex-direction:row-reverse}.rbod.rbod--vertical>div{padding:calc(var(--gap)/2) 0}.rbod:not(.rbod--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.rbod:not(.rbod--vertical)>div{padding:0 calc(var(--gap)/2)}.rbod--long-strip.rbod--vertical.rbod--1page>div:first-child{min-height:100vh}.rbod--long-strip.rbod--vertical>div:first-child{margin-top:var(--space-top);padding-top:0}.rbod--long-strip.rbod--vertical>div:last-child{padding-bottom:0}.rbod--long-strip.rbod--vertical>div{width:var(--max-size-em)}.rbod--long-strip.rbod--vertical .img--loading{height:75vh;max-width:100%;width:100vw}.rbod--long-strip.rbod--vertical .last{height:100vh}.rbod--long-strip:not(.rbod--vertical).rbod--1page>div:first-child{min-width:100vw}.rbod--long-strip:not(.rbod--vertical)>div{align-items:center;display:flex;height:var(--max-size-em)}.rbod--long-strip:not(.rbod--vertical) .img--loading{height:100vh;max-height:100%;max-width:100vw;width:680px}.rbod--long-strip:not(.rbod--vertical) .last{width:100vw}.rbod--long-strip>div>img{flex-shrink:0;margin:auto}.rbod--paging:not(.rbod--touch):after,.rbod--paging:not(.rbod--touch):before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.rbod--paging.rbod--first:before,.rbod--paging.rbod--last:after{cursor:default}.rbod--paging.rbod--idle:after,.rbod--paging.rbod--idle:before{cursor:none}.rbod--paging>div{align-items:center;display:grid;justify-content:center;min-height:100vh;min-width:100vw;scroll-snap-align:center;scroll-snap-stop:always}.rbod--paging.rbod--vertical{--tw-scroll-snap-strictness:mandatory;scroll-snap-type:y var(--tw-scroll-snap-strictness)}.rbod--paging.rbod--vertical:after,.rbod--paging.rbod--vertical:before{height:20vw;left:0;right:0}.rbod--paging.rbod--vertical:before{top:0}.rbod--paging.rbod--vertical:after{bottom:0}.rbod--paging.rbod--vertical>div{width:var(--screen-width-em)}.rbod--paging:not(.rbod--vertical){--tw-scroll-snap-strictness:mandatory;scroll-snap-type:x var(--tw-scroll-snap-strictness)}.rbod--paging:not(.rbod--vertical).rbod--rtl:before{right:0}.rbod--paging:not(.rbod--vertical).rbod--rtl:after,.rbod--paging:not(.rbod--vertical):not(.rbod--rtl):before{left:0}.rbod--paging:not(.rbod--vertical):not(.rbod--rtl):after{right:0}.rbod--paging:not(.rbod--vertical):after,.rbod--paging:not(.rbod--vertical):before{bottom:0;top:0;width:20vw}.rbod--paging:not(.rbod--vertical)>div{height:var(--screen-height-em)}.rbod--paging .img--loading{height:100vh;width:100vw}.rbod--paging .img--double{align-items:center;display:flex;gap:var(--gap);justify-content:center}.rbod--paging .img--double div{display:flex;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.rbod--paging .img--double div img{flex-shrink:0;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.rbod>div{flex-shrink:0;margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.rbod .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}.rbod .img--loading{align-items:center;display:flex;justify-content:center}
25
+ `]]]),lf=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),af={key:0,class:"fixed inset-0 h-[101%] flex justify-center items-center z-10 bg-black"},cf={class:"flex justify-between items-end"},uf={class:"inline-block children-pointer-events-auto w-1/3"},df={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},ff={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},pf={class:"inline-block z-20 relative"},hf={key:1,class:"fixed left-0 right-0 bottom-0 p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3 flex justify-center pointer-events-none children-pointer-events-auto"},Us=ge(ke({__name:"ReaderLayout",props:{loading:{type:Boolean},immediate:{type:Boolean},idle:{type:Boolean},fullScreen:{type:Boolean},zooming:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){return(t,n)=>(O(),q("div",{class:Te(["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?(O(),q("div",af,[Q(bi)])):Ce("",!0),_e(t.$slots,"default"),Z("div",{id:"controls",class:Te(["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}])},[Z("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`})},[_e(t.$slots,"back"),_e(t.$slots,"exit"),_e(t.$slots,"chapter-nav")],4),Z("div",cf,[Z("div",uf,[_e(t.$slots,"page-nav")]),Z("div",df,[t.fullScreen&&t.zooming?Ce("",!0):_e(t.$slots,"reset-zoom",{key:0})]),Z("div",ff,[_e(t.$slots,"entry"),Z("div",pf,[_e(t.$slots,"settings")]),_e(t.$slots,"full-screen"),_e(t.$slots,"play"),_e(t.$slots,"break-first")])]),Z("div",{class:Te(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[_e(t.$slots,"progress")],2)],2),t.fullScreen&&t.zooming?(O(),q("div",hf,[_e(t.$slots,"reset-zoom")])):Ce("",!0)],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
+ `]]]),gf=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"})),Ys=ge(ke({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=t,o=X(null),i=X(0),r=X([]),s=se(()=>r.value[i.value]),l=gs(a,500);Qe(()=>{const p=xs(o),d=Ae(()=>c({width:p.width.value,height:p.height.value}),50);d(),pe(p.width,d),pe(p.height,d)});function a(){i.value>=r.value.length-1?n("hide"):i.value++}function c(p){const d=u();r.value=d.map(({rect:b,text:S})=>{const I=b.top<p.height-b.bottom,B=b.left<p.width-b.right;return{text:S,style:{left:`${b.left}px`,top:`${b.top}px`,width:`${b.width}px`,height:`${b.height}px`},textStyle:{left:B?`${b.left-12}px`:void 0,right:B?void 0:`${p.width-b.left}px`,top:I?`${b.bottom+12}px`:`${b.top+20}px`,textAlign:I?void 0:"right",transform:I?void 0:"translateY(-50%)"}}}),i.value>=r.value.length&&(i.value=r.value.length-1)}function u(){var b;const p=(b=o.value)==null?void 0:b.parentElement;if(!p)return[];const d=[];return p.querySelectorAll("[data-tour]").forEach(S=>{var R;const I=(R=S.getAttribute("data-tour"))==null?void 0:R.trim();if(!(I!=null&&I.length))return;const B=S.getBoundingClientRect();d.push({rect:B,text:I})}),d}return(p,d)=>{var b,S;return O(),q(Ie,null,[Z("div",{class:Te(["fixed-screen bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),Z("div",{ref_key:"root",ref:o,class:"tour",onClick:d[0]||(d[0]=et((...I)=>Y(l)&&Y(l)(...I),["stop"]))},[s.value?(O(),q("div",{key:i.value,class:"tour__target",style:Oe(s.value.style)},null,4)):Ce("",!0),(O(),q("div",{key:i.value,class:"tour__text",style:Oe((b=s.value)==null?void 0:b.textStyle)},Xe(((S=s.value)==null?void 0:S.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
+ `]]]),mf=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),vf={},bf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},_f=[Z("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 yf(e,t){return O(),q("svg",bf,_f)}const Xs=ge(vf,[["render",yf]]),wf=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),xf={},Sf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},kf=[Z("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 If(e,t){return O(),q("svg",Sf,kf)}const Zs=ge(xf,[["render",If]]),Cf=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),Tf={},Ef={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},$f=[Z("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 Pf(e,t){return O(),q("svg",Ef,$f)}const Gs=ge(Tf,[["render",Pf]]),Mf=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),Of={},Lf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},zf=[Z("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Af(e,t){return O(),q("svg",Lf,zf)}const Qs=ge(Of,[["render",Af]]),jf=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),Df={},Bf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Rf=[Z("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Nf(e,t){return O(),q("svg",Bf,Rf)}const Js=ge(Df,[["render",Nf]]),Vf=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),Ff={},Hf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56"},Wf=[Z("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 Kf(e,t){return O(),q("svg",Hf,Wf)}const el=ge(Ff,[["render",Kf]]),qf=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),Uf={},Yf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Xf=[Z("g",{fill:"none"},[Z("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"}),Z("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 Zf(e,t){return O(),q("svg",Yf,Xf)}const tl=ge(Uf,[["render",Zf]]),Gf=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),Qf={},Jf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},ep=[Z("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function tp(e,t){return O(),q("svg",Jf,ep)}const nl=ge(Qf,[["render",tp]]),np=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),op={},ip={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},rp=[Z("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function sp(e,t){return O(),q("svg",ip,rp)}const ol=ge(op,[["render",sp]]),lp=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),ap={},cp={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},up=[Z("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 dp(e,t){return O(),q("svg",cp,up)}const il=ge(ap,[["render",dp]]),fp=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"}));function ln(e=0){return new Promise(t=>setTimeout(t,e))}function rl(e){return new Promise(t=>{const n=o=>{if(!o)return t(void 0);const i=URL.createObjectURL(o);t(i)};e.toBlob(n,"image/jpeg",1)})}async function pp(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),i=o.getContext("2d"),r=e.naturalWidth,s=e.naturalHeight;return o.width=r,o.height=s,i==null||i.drawImage(e,0,0,r,s),await rl(o)}function go(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 i=e.getAttribute(o);if(i)return o==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:i.replace(/(\n|\t)/g," ").trim()}}async function hp(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,i=setInterval(()=>{const{naturalWidth:r,naturalHeight:s}=o;s&&r&&(n({width:r,height:s}),clearInterval(i))},20);o.onerror=()=>{n(void 0),clearInterval(i)},o.src=e})}class gp{constructor({isIOS:t,onDownloaded:n,onDownloadError:o}){me(this,"reactiveResults",cn({}));me(this,"isIOS");me(this,"tkLoadId",Date.now());me(this,"isMounted",!0);me(this,"onDisposeCallbacks",[]);me(this,"onDownloaded");me(this,"onDownloadError");this.isIOS=t,this.onDownloaded=n,this.onDownloadError=o}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 i=n instanceof HTMLImageElement,r=n instanceof HTMLCanvasElement;if(n){if(n._tkLoadId===this.tkLoadId)return;if(n._tkLoadId=this.tkLoadId,i){const a=()=>this.onImgElLoaded(t,n,!0),c=()=>this.onImgElLoaded(t,n,!1);n.addEventListener("load",a),n.addEventListener("error",c),this.onDisposeCallbacks.push(()=>{n.removeEventListener("load",a),n.removeEventListener("error",c)})}}if(i&&!o){if(o=go(n),!o)return;n._tkSrc=o}else if(r&&!o){if(o=await rl(n),!o)return;n._tkSrc=o}if(!o||!this.isMounted)return;const s=i&&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,o){var r;if(!this.isMounted)return;const i=go(n);if(i&&!(!i.startsWith("blob:")&&t.computedSrc===i)){if(n._tkSrc=i,!o){this.reactiveResults[i]={src:i,isLoading:!1,hasError:!0},this.onDownloadError();return}(r=this.reactiveResults)[i]??(r[i]={src:i,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,i=o?await pp(o,n):n;if(!i||!this.isMounted)return;const r=await hp(i,o);this.isMounted&&(this.reactiveResults[n]={src:i,size:r,isLoading:!1,hasError:!r,invalid:!!r&&(r.width<200||r.height<200)},r?this.onDownloaded(t,r):this.onDownloadError())}}const mp=3;class vp{constructor({getItems:t,getActiveIndex:n,isCompleted:o,callback:i}){me(this,"isQueueStarted",!1);me(this,"debouncedEnqueue");me(this,"concurrentCount",0);me(this,"getItems");me(this,"getActiveIndex");me(this,"isCompleted");me(this,"callback");me(this,"activeIndex",0);me(this,"completedItems");me(this,"isMounted",!0);this.getItems=t,this.getActiveIndex=n,this.isCompleted=o,this.callback=i,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<mp&&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)),i=[];for(let r=o;r<t.length;r++){if(!this.canEnqueue)return;i.push(await this.invokeItemCallback(r,r==t.length-1))}for(let r=o-1;r>=0;r--){if(!this.canEnqueue)return;i.push(await this.invokeItemCallback(r,r==0))}this.getItems()===t&&i.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)}}class sl{constructor(){me(this,"elsPool",new Map)}check(t){if(!t||t===document.body)return!0;const n=this.elsPool.get(t);if(n!==void 0)return n;const o=getComputedStyle(t);if(!(o.display!=="none"&&+(o.opacity??"1")>.1))return this.elsPool.set(t,!1),!1;const r=this.check(t.parentElement);return this.elsPool.set(t,r),r}}function _i(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 bp(e){const{lstrip:t,lstripBtn:n}=e||{};if(!t||!n||!!document.querySelector(t))return!1;const i=await sn(50,30,()=>document.querySelector(n));return i?(_i(i),await ln(),!0):!1}class _p{constructor({spec:t,onChanged:n}){me(this,"spec");me(this,"onChanged");me(this,"rawImages",[]);me(this,"isMounted",!0);me(this,"loadRawImagesTs");me(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),i=(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(),i==null||i.disconnect()};let r=!1;this.loadContentEl(l=>{t!==l&&(t=l,o.disconnect(),i==null||i.disconnect(),o.observe(t,{childList:!0,subtree:!0}),i==null||i.observe(t),r?n():(r=!0,this.loadRawImages(t)))})}setRawImages(t){let n=!1;const o=t.map((i,r)=>{const s=this.rawImages[r];return s&&s.el===i.el&&s.parentEl===i.parentEl&&s.src===i.src?s:(n=!0,i)});(n||!o.length)&&(this.rawImages=o,this.onChanged(t))}async loadContentEl(t){var l;const n=await bp(this.spec),o=(l=this.spec)==null?void 0:l.content;if(!o){t(document.body);return}let i=await sn(n?100:1,10,()=>{for(const a of o.split(",")){const c=document.querySelector(a);if(c)return c}});if(!i)return;t(i);let r=0;const s=async()=>{if(this.isMounted&&!(i!=null&&i.isConnected)){if(r=0,i=await sn(50,20,()=>{const a=document.querySelector(o);return a!=null&&a.isConnected&&a!==i?a:void 0}),!i)return;t(i)}!this.isMounted||++r>=10||setTimeout(s,200)};setTimeout(s,200)}async loadRawImages(t){var r;if(!this.isMounted||!t.isConnected)return;const n=Date.now();this.loadRawImagesTs=n;const o=(r=this.spec)==null?void 0:r.imgDivs,i=o?await yp(t,o):ll(t);this.loadRawImagesTs!==n||!t.isConnected||!this.isMounted||this.setRawImages(i)}}async function yp(e,t){const n=Array.from(e.querySelectorAll(t));if(!n.length)return ll(e);const o=new sl;return n.map(r=>{const s=Array.from(r.querySelectorAll("img,canvas"));for(const l of s)if(o.check(l)){if(l instanceof HTMLCanvasElement){if(al(l))return new Ut(void 0,l,r)}else if(l instanceof HTMLImageElement&&cl(l)){const a=go(l);return new Ut(a,l,r)}}return new Ut(void 0,void 0,r)})}function ll(e){const t=[],n={},o=new sl;return Array.from(e.querySelectorAll("img,canvas")).forEach(r=>{if(o.check(r)){if(r instanceof HTMLCanvasElement)al(r)&&t.push(new Ut(void 0,r));else if(r instanceof HTMLImageElement&&cl(r)){const s=go(r);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,r))}}}),t}function al(e){return e.isConnected&&ul(e.width,e.height)}function cl(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||ul(t.width,t.height)}function ul(e,t){return e>=130&&t>=130&&(e>=200||t>=200)}function dl(e){var t,n;for(let o=0;o<e.length;o++){const i=((t=e[o])==null?void 0:t.el)??((n=e[o])==null?void 0:n.parentEl),r=i==null?void 0:i.getBoundingClientRect();if(!r||r.bottom<=0)continue;const s=r.top;return o+(s>=0?0:-s/r.height)}return 0}function wp(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 dl(n)}function mo({rawImages:e,page:t,smooth:n,skipIfVisible:o,isScrollDown:i}){const r=Math.floor(t),s=e[Math.min(e.length-1,r)];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=fl(l);if(!c)return;const u=t>=e.length?a.height:i?Math.max(0,a.height-window.innerHeight+100):t%1*a.height;c.el.scrollTo({top:c.top+u,behavior:n?"smooth":"instant"})}function fl(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 fl(e.parentElement,t);let r=0;return t.forEach((s,l)=>{r+=l===o?s-n:s}),{el:e,top:r}}function xp(e){var S,I,B,R;const t=X((S=e.raw.value)==null?void 0:S.isWebtoon),n=X((I=e.raw.value)==null?void 0:I.isWebtoon);let o=!1;const i=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android"),r=((R=(B=e.raw.value)==null?void 0:B.imgs)==null?void 0:R.filter(Boolean))??[];let s=e.isAutoShow!==!1?e.page.value:r.length?wp(r):void 0,l=r.map(W=>new Ut(W)),a,c;const u=new gp({isIOS:i,onDownloaded(W,E){let V=l.indexOf(W);if(V===-1){const _=W.computedSrc;V=l.findIndex(x=>x.computedSrc===_)}if(V!==-1){if(E&&!t.value&&V>Math.min(1,l.length-3)&&V<Math.max(l.length-2,3)){const _=E.height/E.width,x=_>2||_<.5,F=_>1.6||_<.6;t.value!==x&&(t.value=x),n.value!==F&&(n.value=F)}d()}},onDownloadError(){c||t.value!==void 0||(c=setTimeout(()=>{c=void 0,t.value===void 0&&e.onError("Failed to load images")},3e3))}}),p=new vp({getItems:()=>l,getActiveIndex:()=>Math.floor(e.page.value),isCompleted:W=>{const E=W.computedSrc;return!!(E&&u.reactiveResults[E])},callback:W=>u.download(W)});if(r.length)p.run();else{let W=!1;a=new _p({spec:e.spec,async onChanged(E){var V;if(l=E,!e.raw.value&&!E.length){e.onError("no_img");return}(V=e.spec)!=null&&V.imgDivs&&!W&&e.isAutoShow!==!1&&e.page.value&&(W=!0,mo({rawImages:E,page:e.page.value,skipIfVisible:!0}),await ln(1)),s===void 0&&e.isAutoShow===!1&&(s=dl(E)),p.run()}})}Wo(()=>{u.dispose(),p.dispose(),a==null||a.dispose(),c&&clearTimeout(c),o&&mo({rawImages:l,page:e.page.value})});function d(){var _,x,F;if(o||t.value===void 0||s===void 0)return;const W=Math.max(0,Math.min(s,l.length)),E=Math.min(Math.floor(W),l.length-1);if(E>=1){if(!((_=l[E])==null?void 0:_.computedSrc)){e.isAutoShow&&mo({rawImages:l,page:E});return}for(let $=E;$<l.length;$++){const j=(x=l[$])==null?void 0:x.computedSrc;if(!j)return;const U=u.reactiveResults[j];if(!U)return;if(!U.invalid){if(!U.size&&!U.hasError)return;break}}for(let $=E-1;$>=0;$--){const j=(F=l[$])==null?void 0:F.computedSrc;if(!j)break;const U=u.reactiveResults[j];if(!U)return;if(!U.invalid){if(!U.size&&!U.hasError)return;break}}}if(o)return;o=!0,e.onReady(W);let V=!0;pe(()=>Math.floor(e.page.value),(m,$)=>{mo({rawImages:l,page:m,smooth:i,isScrollDown:$===void 0||m>$||l.length===1,skipIfVisible:V&&l.length>1}),V=!1,$??($=-1),p.run()},{immediate:!0})}return{asyncImgs:se(()=>{Object.values(u.reactiveResults);const W=[];return l.forEach(E=>{const V=E.computedSrc,_=V?u.reactiveResults[V]:void 0;(V&&!(_!=null&&_.invalid)||E.parentEl)&&W.push(_)}),W}),isWebtoon:se(()=>t.value??!1),maybeWebtoon:se(()=>n.value??!1)}}function Sp(e,t,n){return se(()=>t.value?pl(e.value,n.value):e.value.map((o,i)=>[{img:o,index:i}]))}function pl(e,t,n=0){if(e.length===0)return[];const o=e.slice(0,2),i=o.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height),r=i||t?[o[0]]:o;return[r.map((s,l)=>({img:s,index:n+l})),...pl(e.slice(r.length),t&&i,n+r.length)]}function kp(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:i=>{o.value=i,sessionStorage.setItem("tk:page",i+"")}})}function Ip(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const yi=40;function Cp({page:e,direction:t,style:n,isLongStrip:o,isVertical:i,isRTL:r,spaceTop:s,scrollEl:l,isWebtoon:a,interferePlayer:c,onChangedPage:u,onInitialized:p,onFinished:d}){let b=!1,S=!1,I=!1,B;const R=Ae($,300),W=gs(()=>{$(),R()},300),E=Ae(x,50);async function V(){F(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function _(){var z;S=!0,p(),j(),(z=l.value)==null||z.addEventListener("scroll",W),setTimeout(()=>{const{width:L,height:ue}=Cs();pe(L,()=>{i.value&&E()}),pe(ue,()=>{i.value||E()}),pe(n,x),pe(t,x)},300)}async function x(){if(!S||b)return;b=!0,await wt();const z=e.value;if(h()===z){b=!1;return}F(z)}function F(z,{smooth:L,ensureLastImgVisibility:ue=!1}={smooth:!1}){const de=l.value;if(!de)return;b=!0;const ye=async()=>{await wt(),b=!1,S||_()},be=Math.floor(z),Re=de.querySelector(`[data-index="${be}"],[data-index2="${be}"]`);if(!Re){ye();return}c(async()=>{await m(de,!o.value&&L,async()=>{await ae(de,Re,{smooth:L,page:z,ensureLastImgVisibility:ue})}),await ye()})}async function m(z,L,ue){L&&z.style.setProperty("scroll-snap-type","none"),await ue(),L&&z.style.removeProperty("scroll-snap-type")}function $(){if(b)return;const z=h();z!==void 0&&z!==e.value&&u(z),j()}function j(){I||!I&&U()&&(I=!0,d())}function U(){const z=l.value;if(!z)return!1;const L=o.value?a.value?3:!i.value&&z.clientWidth>z.clientHeight?2.25:2.5:2;return i.value?z.scrollHeight-z.scrollTop<z.clientHeight*L:z.scrollWidth-(r.value?-z.scrollLeft:z.scrollLeft)<z.clientWidth*L}function h(){const z=w();return z?(+z.getAttribute("data-index")||0)+(o.value?K(z):0):void 0}function w(){var L;if(B??(B=l.value.getRootNode()),!B)return;const z=(L=B.elementsFromPoint)==null?void 0:L.call(B,i.value||!o.value?window.innerWidth/2:r.value?window.innerWidth-yi:yi,i.value&&o.value?s.value||yi:window.innerHeight/2);if(z)for(let ue=0;ue<z.length;ue++){const de=z[ue];if(de.hasAttribute("data-index"))return de;if(de===l.value)break}}function K(z){const L=z.getBoundingClientRect();return i.value?Math.abs(L.top-s.value)/L.height:r.value?Math.max(0,L.right-l.value.clientWidth)/L.width:Math.abs(L.left)/L.width}let oe=!1;async function ae(z,L,ue){if(oe)return;const de=L.getBoundingClientRect();if(!o.value){if(i.value){if(de.top<=0&&de.bottom>=z.clientHeight)return}else if(de.left<=0&&de.right>=z.clientWidth)return}oe=!0;const ye=i.value?z.scrollTop:z.scrollLeft,be=ue.page,Re=o.value?be%1:0,Xt=await sn(30,10,async()=>{await ln();let Pe;if(!(L.offsetHeight<10))return o.value?i.value?Pe=L.offsetTop+Re*L.offsetHeight-s.value:r.value?Pe=L.offsetLeft-z.clientWidth+L.offsetWidth-Re*L.offsetWidth:Pe=L.offsetLeft+Re*L.offsetWidth:i.value?Pe=L.offsetTop+(de.top>0?0:de.height-z.clientHeight):Pe=L.offsetLeft+(de.left>0?0:de.width-z.clientWidth),be>.5&&Math.abs(Pe)<100?void 0:Pe})??0,Ot=ue.ensureLastImgVisibility?i.value?Math.min(Xt,z.scrollHeight-z.clientHeight*2):r.value?Math.max(Xt,-(z.scrollWidth-z.clientWidth*2)):Math.min(Xt,z.scrollWidth-z.clientWidth*2):Xt;if(!ue.smooth){i.value?z.scrollTop=Ot:z.scrollLeft=Ot,oe=!1;return}const Ne=Ot-ye,ht=30;let gt=0;return new Promise(Pe=>{(function qe(){const Lt=Tp(gt,ye,Ne,ht);i.value?z.scrollTop=Lt:z.scrollLeft=Lt,gt++,gt<=ht?requestAnimationFrame(qe):(Pe(),oe=!1)})()})}return{init:V,goToPage:F}}function Tp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function Ep({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:i,isLongStrip:r,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=X(typeof l=="string"?l==="true":e),c=se({get:()=>a.value,set:m=>{a.value=m,sessionStorage.setItem("tk:playing",m?"true":"false")}}),u=X(!1);let p,d;const b=Ae(x,100),S=Ae(()=>{u.value=!0},t?2e3:1e3),I=()=>setTimeout(()=>{u.value=!1,S()},30);I(),t||Pt(window,"mousemove",I);const B=ys();Qe(()=>{pe(B,m=>{c.value&&(m==="visible"?x():d==null||d())}),pe(s,()=>R()),pe(r,m=>{m||E()})}),Rt(E);async function R(m){c.value&&(d==null||d()),m&&(await wt(),await m()),c.value&&b()}function W(){c.value?E():V()}function E(){c.value&&(c.value=!1,d==null||d(),I())}function V(){!c.value&&r.value&&(c.value=!0,x(),I())}function _(){d==null||d()}function x(){const m=n.value;if(!c.value||!m)return;const $=o.value?m.scrollHeight-m.clientHeight:m.scrollWidth-m.clientWidth,j=F();if($<=j){E();return}d=()=>{p=Date.now(),d=void 0};const U=Date.now();p=U;const h=.05*s.value,w=o.value?"scrollTop":"scrollLeft";let K=Date.now(),oe=0;const ae=()=>{if(p!==U)return;const z=Date.now(),L=z-K;K=z;const ue=h*L+oe;ue>=1?(oe=ue%1,m[w]+=(ue-oe)*(i.value?-1:1)):oe=ue,setTimeout(ae,1)};ae()}function F(){const m=n.value;return o.value?m.scrollTop:i.value?-m.scrollLeft:m.scrollLeft}return{isPlaying:c,isIdle:u,toggle:W,play:V,pause:_,resume:x,stop:E,interfere:R,awake:I}}function $p({raw:e,spec:t,siteMeta:n}){var j,U,h;const{vol:o,inferVol:i,chap:r,title:s,slug:l,basePath:a}=e,c=t==null?void 0:t.chapter;let u=-1;const p=c&&!c.url?document.querySelectorAll(c.sel):void 0;async function d(w,K){if(w.slug)b(w.slug,K);else if(w.elIndex!==void 0&&p&&p[w.elIndex]){let oe=null;c!=null&&c.trigger&&(oe=document.querySelector(c.trigger)),oe&&(oe.click(),await new Promise(ae=>setTimeout(()=>ae(),50))),_i(p[w.elIndex]),oe&&oe.click()}}function b(w,K){const oe=Pp(a,w,(n==null?void 0:n.trailing)??!0);K?window.open(oe,"_blank","noopener"):location.href=oe}function S(w){const K=E[w];return K?oe=>d(K,oe):void 0}function I(w,K,oe){if(w){const ae=document.querySelector(w);ae&&_i(ae);return}K&&b(K,oe)}const B=o??i,R=c==null?void 0:c.url,W=((j=s.chapters)==null?void 0:j.filter(w=>w.slug||!R&&w.elIndex!==void 0))??[],E=W.length>1?W:[],V=(U=e.prev)==null?void 0:U.slug,_=(h=e.next)==null?void 0:h.slug,{prevBtn:x,nextBtn:F}=t??{};let m=V||x&&!E.length?w=>I(x,V,w):void 0,$=_||F&&!E.length?w=>I(F,_,w):void 0;if(E.length){if(R&&(u=E.findIndex(w=>w.slug===e.slug)),u===-1&&(u=E.findIndex(w=>(w.vol??w.inferVol)===B&&w.chap===r)),R&&u===-1&&(u=E.findIndex(w=>w.slug&&l.startsWith(`${w.slug}-`)&&l.length-w.slug.length>3)),u!==-1)m??(m=S(u+1)),$??($=S(u-1));else if(!V&&!_){const w=E.findIndex(K=>{const oe=K.vol??K.inferVol;return B===void 0||oe===void 0||B===oe?K.chap<r:oe<B});w!==-1?(m=S(w),$=S(w-1)):$=S(E.length-1)}}return{activeIndex:u,activeLabel:hl({vol:o,chap:r}),prev:m,next:$,chapters:E.map(w=>({label:hl(w),select:K=>d(w,K)}))}}function hl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}function Pp(e,t,n){const o=!t||t.includes("//")||t.startsWith("/")?t:"/"+[...e.split("/"),...t.split("/")].filter(Boolean).join("/"),[i,r]=(o.includes("//")?o:location.origin+o).split("?");return[i.endsWith("/")===n?i:n?i+"/":i.substring(0,-1),r].filter(Boolean).join("?")}const Mp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},gl=ge(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","getHiddenChapters"],setup(e,{emit:t}){const n=e,o=t;let i=!1,r,s=-1;const l=X(!1),a=X(!1),c=hu({touchDevice:n.touchDevice}),u=kp(n.page,n.isAutoShow),p=se(()=>n.spaceTop??0),{asyncImgs:d,isWebtoon:b,maybeWebtoon:S}=xp({raw:se(()=>n.raw),spec:n.spec,page:u,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:p,async onReady(v){Ot(v),l.value=!0},onError:()=>{o("error"),N()}}),{direction:I,style:B,isRTL:R,isDouble:W,isVertical:E,isLongStrip:V,gap:_,speed:x,zoom:F,breakFirst:m,autoNextSeconds:$}=ed({titleName:se(()=>{var v;return(v=n.raw)==null?void 0:v.title.name}),isWebtoon:b,maybeWebtoon:S,defaultStyle:n.readerStyle,defaultDirection:n.direction}),j=X(!1),U=Sp(d,W,m),h=se(()=>u.value>=d.value.length),w=se(()=>n.raw?$p({raw:n.raw,spec:n.spec,siteMeta:n.siteMeta}):void 0),K=X(null),oe=X(null),ae=X(!1),z=X(!1),L=Ep({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:se(()=>{var v;return(v=K.value)==null?void 0:v.$el}),speed:x,isRTL:R,isVertical:E,isLongStrip:V}),ue=se(()=>!n.touchDevice&&L.isIdle.value&&!c.value&&!j.value),de=se({get(){return F.value},set(v){L.interfere(()=>{F.value=v})}}),ye=Cp({page:u,style:B,direction:I,isLongStrip:V,isVertical:E,isRTL:R,spaceTop:p,isWebtoon:b,scrollEl:se(()=>{var v;return(v=K.value)==null?void 0:v.$el}),interferePlayer:v=>L.interfere(v),onChangedPage:Ot,onInitialized(){o("ready"),a.value=!0,r=Ne()},onFinished:()=>o("finished")}),be=se(()=>Math.floor(u.value)),Re=()=>L.interfere(()=>ln(100));Su().addListener({onKeyDown:v=>{if(n.tourEnabled)return;const T=V.value&&E.value,J=V.value&&!E.value,ne=!V.value&&E.value,we=!V.value&&!E.value;switch(v.key){case" ":v.preventDefault(),V.value?(G(!1),L.toggle()):M();break;case"ArrowUp":case"PageUp":T?Re():ne&&be.value!==0&&(v.preventDefault(),k());break;case"ArrowDown":case"PageDown":T?Re():ne&&!h.value&&(v.preventDefault(),C());break;case"ArrowLeft":J?Re():we?(v.preventDefault(),g()):E.value&&qe();break;case"ArrowRight":J?Re():we?(v.preventDefault(),y()):E.value&&Pe();break}},onKeyUp:v=>{switch(v.key){case"b":m.value=!m.value;break;case"f":P();break;case"t":D();break;case"h":G();break}}}),Pt("fullscreenchange",()=>{ae.value=!!document.fullscreenElement}),pe(L.isPlaying,v=>{v||M(!1),o("playingChanged",v)}),pe(L.isIdle,v=>{L.isPlaying.value&&M(v)}),pe(c,v=>{!v&&L.isIdle.value?L.awake():v&&n.fullScreen&&M()});function Ot(v){if(u.value===v)return;const T=d.value.length;if(v<0||v>=T+1)return;const J=u.value;u.value=v;const ne=Math.floor(v*100)/100;ne!==s&&(s=ne,o("pageChanged",ne)),v>=T?(M(!1),L.stop()):v<.01&&J>v?(M(!1),L.awake()):i||(V.value?r!==void 0&&Ne()-r>300&&M(!0):Math.abs(J-v)===1&&M(!0))}function Ne(){var T;const v=(T=K.value)==null?void 0:T.$el;return v?E.value?v.scrollTop:R.value?-v.scrollLeft:v.scrollLeft:0}function ht(){!n.touchDevice&&!V.value&&ye.goToPage(be.value,{smooth:!0})}function gt(){if(L.isPlaying.value){!n.fullScreen||!n.touchDevice?L.stop():L.awake();return}M()}function Pe(v=!1){var T,J;(J=(T=w.value)==null?void 0:T.next)==null||J.call(T,v)}function qe(v=!1){var T,J;(J=(T=w.value)==null?void 0:T.prev)==null||J.call(T,v)}function Lt(v){R.value?Pe(f(v)):qe(f(v))}function Pn(v){R.value?qe(f(v)):Pe(f(v))}function f(v){return!n.touchDevice&&(v.ctrlKey||v.metaKey)}function g(){R.value?C():k()}function y(){R.value?k():C()}function k(){var J;const v=U.value,T=h.value?v[v.length-1][0].index:(J=v[A()-1])==null?void 0:J[0].index;T!==void 0?ye.goToPage(T):qe()}function C(){var v,T;if(h.value)Pe();else{const J=((T=(v=U.value[A()+1])==null?void 0:v[0])==null?void 0:T.index)??d.value.length;ye.goToPage(J)}}function A(){const v=be.value,T=U.value.findIndex(J=>J.some(({index:ne})=>ne===v));return T===-1?U.value.length-1:T}function N(){Ip(),o("dispose")}async function M(v){if(c.value&&!n.fullScreen)return;const T=typeof v=="boolean"?v:!n.fullScreen;T!==n.fullScreen&&(i=!0,o("fullScreenChanged",T),T&&setTimeout(()=>{n.fullScreen&&c.value&&o("fullScreenChanged",!1)},100))}function D(){n.entryId?te():H()}function P(){var v,T;document.fullscreenElement?document.exitFullscreen():(T=(v=oe.value)==null?void 0:v.$el)==null||T.requestFullscreen()}function H(){L.stop(),o("addEntry")}function te(){L.stop(),o("openEntry",n.entryId)}function G(v){z.value!==v&&(z.value=!z.value,z.value&&L.isPlaying.value&&L.stop())}return(v,T)=>v.immediate||l.value?(O(),he(Us,{key:0,ref_key:"root",ref:oe,loading:!a.value,immediate:!!v.immediate,"full-screen":!!v.fullScreen,zooming:j.value,idle:ue.value,"space-top":p.value,rtl:Y(R),onClick:T[14]||(T[14]=et(()=>{},["stop"]))},_r({settings:ie(()=>{var J;return[Q(Ls,{"reader-style":Y(B),"onUpdate:readerStyle":T[5]||(T[5]=ne=>Ee(B)?B.value=ne:null),direction:Y(I),"onUpdate:direction":T[6]||(T[6]=ne=>Ee(I)?I.value=ne:null),gap:Y(_),"onUpdate:gap":T[7]||(T[7]=ne=>Ee(_)?_.value=ne:null),speed:Y(x),"onUpdate:speed":T[8]||(T[8]=ne=>Ee(x)?x.value=ne:null),zoom:de.value,"onUpdate:zoom":T[9]||(T[9]=ne=>de.value=ne),"auto-next-seconds":Y($),"onUpdate:autoNextSeconds":T[10]||(T[10]=ne=>Ee($)?$.value=ne:null),name:(J=v.raw)==null?void 0:J.title.name,webtoon:Y(b),disabled:!l.value,onHelp:G},null,8,["reader-style","direction","gap","speed","zoom","auto-next-seconds","name","webtoon","disabled"])]}),"reset-zoom":ie(()=>[Q(nn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[j.value||Y(F)!==1?(O(),he(As,{key:0,zoom:de.value,onClick:T[13]||(T[13]=et(()=>de.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])):Ce("",!0)]),_:1})]),progress:ie(()=>[Z("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Oe({width:`${Y(u)/(Y(d).length-1)*100}%`})},null,4)]),default:ie(()=>{var J;return[l.value?(O(),he(qs,{key:0,ref_key:"body",ref:K,zoom:de.value,"onUpdate:zoom":T[0]||(T[0]=ne=>de.value=ne),zooming:j.value,"onUpdate:zooming":T[1]||(T[1]=ne=>j.value=ne),"page-index":be.value,pages:Y(U),"total-imgs":Y(d).length,direction:Y(I),gap:Y(_),"is-long-strip":Y(V),isRTL:Y(R),"is-vertical":Y(E),"space-top":p.value,busy:Y(c),idle:ue.value,"play-controller":Y(L),"touch-device":v.touchDevice,"has-next":!!((J=w.value)!=null&&J.next),onVnodeMounted:Y(ye).init,onPrev:k,onNext:C,onClick:gt,onDragEnd:ht,onWheelPassive:T[2]||(T[2]=()=>Y(L).interfere())},_r({_:2},[l.value&&Y(d).length?{name:"end",fn:ie(()=>{var ne;return[Q(Ts,{"has-next":!!((ne=w.value)!=null&&ne.next),seconds:Y($),onNext:Pe,onHide:N},null,8,["has-next","seconds"])]}),key:"0"}:void 0]),1032,["zoom","zooming","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","busy","idle","play-controller","touch-device","has-next","onVnodeMounted"])):Ce("",!0),a.value&&!h.value&&!v.tourEnabled?(O(),he(Ns,{key:1,direction:Y(I)},null,8,["direction"])):Ce("",!0),a.value&&!h.value?(O(),he(Hs,{key:2,playing:!!Y(L).isPlaying.value},null,8,["playing"])):Ce("",!0),z.value?(O(),he(Vs,{key:3,"touch-device":v.touchDevice,onHide:G},null,8,["touch-device"])):Ce("",!0),v.tourEnabled?(O(),he(Ys,{key:4,onHide:T[3]||(T[3]=()=>o("tourEnabledChanged",!1))})):Ce("",!0)]}),_:2},[v.raw?{name:"back",fn:ie(()=>[Q(tt,{href:v.raw.title.url,title:"Back to manga"},{default:ie(()=>[Q(Xs)]),_:1},8,["href"])]),key:"0"}:void 0,v.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:N},{default:ie(()=>[Q(il)]),_:1})]),key:"1"},w.value?{name:"chapter-nav",fn:ie(()=>{var J;return[Q(Bs,{"touch-device":v.touchDevice,"chapter-spec":(J=v.spec)==null?void 0:J.chapter,data:w.value,onGetHiddenChapters:T[4]||(T[4]=()=>o("getHiddenChapters"))},null,8,["touch-device","chapter-spec","data"]),w.value.next||w.value.prev?(O(),q("div",Mp,[Q(tt,{title:`${Y(R)?"Next":"Prev"} chapter (←)`,disabled:Y(R)?!w.value.next:!w.value.prev,class:"!rounded-r-none",onClick:Lt},{default:ie(()=>[Q(Qs)]),_:1},8,["title","disabled"]),Q(tt,{title:`${Y(R)?"Prev":"Next"} chapter (→)`,disabled:Y(R)?!w.value.prev:!w.value.next,class:"!rounded-l-none",onClick:Pn},{default:ie(()=>[Q(Js)]),_:1},8,["title","disabled"])])):Ce("",!0)]}),key:"2"}:void 0,Y(U).length?{name:"page-nav",fn:ie(()=>[Q(Fs,{"model-value":be.value,disabled:!a.value,pages:Y(U),"total-imgs":Y(d).length,"onUpdate:modelValue":Y(ye).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,v.raw?{name:"entry",fn:ie(()=>[Q(tt,{title:v.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:D},{default:ie(()=>[v.entryId?(O(),he(Gs,{key:0})):(O(),he(Zs,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,v.touchDevice?void 0:{name:"full-screen",fn:ie(()=>[Q(tt,{title:`${ae.value?"Exit":"Enter"} fullscreen (F)`,onClick:P},{default:ie(()=>[ae.value?(O(),he(ol,{key:0})):(O(),he(nl,{key:1}))]),_:1},8,["title"])]),key:"5"},Y(V)?{name:"play",fn:ie(()=>[Q(tt,{"data-tour":"Press here to play like a video",title:`${Y(L).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!a.value,onClick:T[11]||(T[11]=()=>Y(L).toggle())},{default:ie(()=>[Y(L).isPlaying.value?(O(),he(mi,{key:0})):(O(),he(vi,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0,Y(W)?{name:"break-first",fn:ie(()=>[Q(tt,{title:"Break 1st page (B)","data-tour":"Press here to separate the first page from double-page mode",disabled:!a.value,onClick:T[12]||(T[12]=()=>m.value=!Y(m))},{default:ie(()=>[Y(m)?(O(),he(tl,{key:0})):(O(),he(el,{key:1}))]),_:1},8,["disabled"])]),key:"7"}:void 0]),1032,["loading","immediate","full-screen","zooming","idle","space-top","rtl"])):Ce("",!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}.invisible{visibility:hidden}.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-\\[30rem\\]{height:480px}.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\\.8rem\\]{width:76.8px}.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}.select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}.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)}.snap-center{scroll-snap-align:center}.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
+ `]]]),Op=Object.freeze(Object.defineProperty({__proto__:null,default:gl},Symbol.toStringTag,{value:"Module"})),Lp={},zp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Ap=[Z("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 jp(e,t){return O(),q("svg",zp,Ap)}const Dp=Object.freeze(Object.defineProperty({__proto__:null,default:ge(Lp,[["render",jp]])},Symbol.toStringTag,{value:"Module"})),Bp=`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}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}html.gear-second body>:not(gear-second){visibility:hidden!important}
29
+ `,Yt="gear-second",wi={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},Ke={promise:void 0,data:cn({...wi})};async function Rp(e){return Ke.promise?(Ke.data.raw=e.raw,await Ke.promise):(Ke.promise=new Promise(t=>{let n=!1,o=!1,i,r;const s=!!e.spaceTop||!!e.isAutoShow&&!!e.page,l=()=>{n||(n=!0,clearInterval(i),i=void 0,r!=null&&r.isConnected&&document.body.removeChild(r),document.documentElement.classList.remove(Yt),Object.assign(Ke.data,wi),Ke.promise=void 0)},a=Ae(p=>{var d;return!n&&((d=e.onPageChanged)==null?void 0:d.call(e,p))},300);Object.assign(Ke.data,wi,e,{immediate:s,onReady(){s||(c(),document.documentElement.classList.add(Yt))},onError(){var p,d;l(),o?((p=e.onDispose)==null||p.call(e),(d=e.onError)==null||d.call(e)):u()},onDispose:()=>{var p;l(),(p=e==null?void 0:e.onDispose)==null||p.call(e)},onFullScreenChanged:p=>{var d;Ke.data.fullScreen=p,(d=e.onFullScreenChanged)==null||d.call(e,p)},onPageChanged:p=>{Ke.data.page=p,a(p)},onTourEnabledChanged:p=>{Ke.data.tourEnabled=p}}),Np().then(()=>{if(n){u();return}r=document.createElement(Yt),s?(document.documentElement.classList.add(Yt),document.body.appendChild(r),setTimeout(c)):document.body.appendChild(r);let p=0;i=setInterval(()=>{if(++p===30||n){clearInterval(i),i=void 0;return}r.isConnected||(document.documentElement.classList.add(Yt),document.body.appendChild(r))},100)});function c(){o||(o=!0,t({triggerDoubleTap(){},triggerTouchStart(){},updateArgs(p){Object.assign(Ke.data,p)},dispose:l}))}function u(){o||t(void 0)}}),await Ke.promise)}async function Np(){if(window.customElements.get(Yt))return;const e=document.createElement("style");e.appendChild(document.createTextNode(Bp)),document.head.appendChild(e);const t=Nc({styles:[await Vp()],data:()=>({readerData:Ke.data}),render(){return Ur(gl,this.readerData)}});window.customElements.define(Yt,t)}async function Vp(){const e=Object.assign({"./App.vue":Op,"./components/AutoNext.vue":pu,"./components/BottomSheet.vue":Tu,"./components/ButtonDropdown.vue":Cd,"./components/ButtonIcon.vue":mu,"./components/ButtonReaderSettings.vue":nd,"./components/ButtonResetZoom.vue":dd,"./components/ChapterNav.vue":Td,"./components/DirectionToast.vue":Ld,"./components/GesturesContainer.vue":Yd,"./components/HelpScreen.vue":Ad,"./components/InputPercentage.vue":Pu,"./components/InputSelect.vue":Ou,"./components/IntersectionWrapper.vue":Xd,"./components/LoadingIndicator.vue":ef,"./components/PageNav.vue":jd,"./components/PauseToast.vue":Ud,"./components/ReaderBody.vue":lf,"./components/ReaderLayout.vue":gf,"./components/ReaderTour.vue":mf,"./components/TableField.vue":Au,"./components/icons/IconBack.vue":wf,"./components/icons/IconBookmarkNew.vue":Cf,"./components/icons/IconBookmarked.vue":Mf,"./components/icons/IconChevronLeft.vue":jf,"./components/icons/IconChevronRight.vue":Vf,"./components/icons/IconClose.vue":wu,"./components/icons/IconDouble.vue":qf,"./components/icons/IconDoubleSkip.vue":Gf,"./components/icons/IconExclamationCircle.vue":Dp,"./components/icons/IconFullscreen.vue":np,"./components/icons/IconFullscreenExit.vue":lp,"./components/icons/IconHelp.vue":Nu,"./components/icons/IconLoading.vue":md,"./components/icons/IconNext.vue":Od,"./components/icons/IconPause.vue":Vd,"./components/icons/IconPlay.vue":qd,"./components/icons/IconReaderExit.vue":fp,"./components/icons/IconSettings.vue":Ku,"./components/icons/IconTriangle.vue":wd,"./components/icons/IconZoom.vue":ld}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return Rp});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gear-second",
3
3
  "author": "endyquang",
4
- "version": "1.12.0",
4
+ "version": "1.13.0",
5
5
  "license": "UNLICENSED",
6
6
  "description": "MP manga reader",
7
7
  "main": "index.js",