gear-second 1.2.0 → 1.2.1

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 +8 -8
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,9 +1,9 @@
1
- (function(De,se){typeof exports=="object"&&typeof module<"u"?module.exports=se():typeof define=="function"&&define.amd?define(se):(De=typeof globalThis<"u"?globalThis:De||self,De._gearSecond_=se())})(this,function(){"use strict";var Bp=Object.defineProperty;var Dp=(De,se,Ue)=>se in De?Bp(De,se,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):De[se]=Ue;var rl=(De,se,Ue)=>(Dp(De,typeof se!="symbol"?se+"":se,Ue),Ue);function De(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const se={},Ue=[],et=()=>{},sl=()=>!1,il=/^on[^a-z]/,kn=e=>il.test(e),ao=e=>e.startsWith("onUpdate:"),ve=Object.assign,co=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ll=Object.prototype.hasOwnProperty,ae=(e,t)=>ll.call(e,t),Q=Array.isArray,Vt=e=>Sn(e)==="[object Map]",vr=e=>Sn(e)==="[object Set]",ne=e=>typeof e=="function",be=e=>typeof e=="string",uo=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",_r=e=>pe(e)&&ne(e.then)&&ne(e.catch),br=Object.prototype.toString,Sn=e=>br.call(e),al=e=>Sn(e).slice(8,-1),yr=e=>Sn(e)==="[object Object]",fo=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$n=De(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Tn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},cl=/-(\w)/g,Re=Tn(e=>e.replace(cl,(t,n)=>n?n.toUpperCase():"")),ul=/\B([A-Z])/g,Ke=Tn(e=>e.replace(ul,"-$1").toLowerCase()),In=Tn(e=>e.charAt(0).toUpperCase()+e.slice(1)),po=Tn(e=>e?`on${In(e)}`:""),on=(e,t)=>!Object.is(e,t),Pn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},En=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ho=e=>{const t=parseFloat(e);return isNaN(t)?e:t},go=e=>{const t=be(e)?Number(e):NaN;return isNaN(t)?e:t};let wr;const mo=()=>wr||(wr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Me(e){if(Q(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=be(o)?hl(o):Me(o);if(r)for(const s in r)t[s]=r[s]}return t}else{if(be(e))return e;if(pe(e))return e}}const fl=/;(?![^(]*\))/g,dl=/:([^]+)/,pl=/\/\*[^]*?\*\//g;function hl(e){const t={};return e.replace(pl,"").split(fl).forEach(n=>{if(n){const o=n.split(dl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function xe(e){let t="";if(be(e))t=e;else if(Q(e))for(let n=0;n<e.length;n++){const o=xe(e[n]);o&&(t+=o+" ")}else if(pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const gl=De("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function xr(e){return!!e||e===""}const Ye=e=>be(e)?e:e==null?"":Q(e)||pe(e)&&(e.toString===br||!ne(e.toString))?JSON.stringify(e,Cr,2):String(e),Cr=(e,t)=>t&&t.__v_isRef?Cr(e,t.value):Vt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:vr(t)?{[`Set(${t.size})`]:[...t.values()]}:pe(t)&&!Q(t)&&!yr(t)?String(t):t;let Ne;class ml{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ne,!t&&Ne&&(this.index=(Ne.scopes||(Ne.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ne;try{return Ne=this,t()}finally{Ne=n}}}on(){Ne=this}off(){Ne=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 vl(e,t=Ne){t&&t.active&&t.effects.push(e)}function kr(){return Ne}function _l(e){Ne&&Ne.cleanups.push(e)}const vo=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Sr=e=>(e.w&_t)>0,$r=e=>(e.n&_t)>0,bl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=_t},yl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];Sr(r)&&!$r(r)?r.delete(e):t[n++]=r,r.w&=~_t,r.n&=~_t}t.length=n}},_o=new WeakMap;let rn=0,_t=1;const bo=30;let tt;const Et=Symbol(""),yo=Symbol("");class wo{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,vl(this,o)}run(){if(!this.active)return this.fn();let t=tt,n=bt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=tt,tt=this,bt=!0,_t=1<<++rn,rn<=bo?bl(this):Tr(this),this.fn()}finally{rn<=bo&&yl(this),_t=1<<--rn,tt=this.parent,bt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){tt===this?this.deferStop=!0:this.active&&(Tr(this),this.onStop&&this.onStop(),this.active=!1)}}function Tr(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let bt=!0;const Ir=[];function Wt(){Ir.push(bt),bt=!1}function Ut(){const e=Ir.pop();bt=e===void 0?!0:e}function Ae(e,t,n){if(bt&&tt){let o=_o.get(e);o||_o.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=vo()),Pr(r)}}function Pr(e,t){let n=!1;rn<=bo?$r(e)||(e.n|=_t,n=!Sr(e)):n=!e.has(tt),n&&(e.add(tt),tt.deps.push(e))}function ut(e,t,n,o,r,s){const i=_o.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&Q(e)){const l=Number(o);i.forEach((c,u)=>{(u==="length"||u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":Q(e)?fo(n)&&a.push(i.get("length")):(a.push(i.get(Et)),Vt(e)&&a.push(i.get(yo)));break;case"delete":Q(e)||(a.push(i.get(Et)),Vt(e)&&a.push(i.get(yo)));break;case"set":Vt(e)&&a.push(i.get(Et));break}if(a.length===1)a[0]&&xo(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);xo(vo(l))}}function xo(e,t){const n=Q(e)?e:[...e];for(const o of n)o.computed&&Er(o);for(const o of n)o.computed||Er(o)}function Er(e,t){(e!==tt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const wl=De("__proto__,__v_isRef,__isVue"),Or=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(uo)),xl=Co(),Cl=Co(!1,!0),kl=Co(!0),Mr=Sl();function Sl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ce(this);for(let s=0,i=this.length;s<i;s++)Ae(o,"get",s+"");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){Wt();const o=ce(this)[t].apply(this,n);return Ut(),o}}),e}function $l(e){const t=ce(this);return Ae(t,"has",e),t.hasOwnProperty(e)}function Co(e=!1,t=!1){return function(o,r,s){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&s===(e?t?Hl:Fr:t?Nr:Rr).get(o))return o;const i=Q(o);if(!e){if(i&&ae(Mr,r))return Reflect.get(Mr,r,s);if(r==="hasOwnProperty")return $l}const a=Reflect.get(o,r,s);return(uo(r)?Or.has(r):wl(r))||(e||Ae(o,"get",r),t)?a:ye(a)?i&&fo(r)?a:a.value:pe(a)?e?$o(a):sn(a):a}}const Tl=Lr(),Il=Lr(!0);function Lr(e=!1){return function(n,o,r,s){let i=n[o];if(Yt(i)&&ye(i)&&!ye(r))return!1;if(!e&&(!Bn(r)&&!Yt(r)&&(i=ce(i),r=ce(r)),!Q(n)&&ye(i)&&!ye(r)))return i.value=r,!0;const a=Q(n)&&fo(o)?Number(o)<n.length:ae(n,o),l=Reflect.set(n,o,r,s);return n===ce(s)&&(a?on(r,i)&&ut(n,"set",o,r):ut(n,"add",o,r)),l}}function Pl(e,t){const n=ae(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&ut(e,"delete",t,void 0),o}function El(e,t){const n=Reflect.has(e,t);return(!uo(t)||!Or.has(t))&&Ae(e,"has",t),n}function Ol(e){return Ae(e,"iterate",Q(e)?"length":Et),Reflect.ownKeys(e)}const zr={get:xl,set:Tl,deleteProperty:Pl,has:El,ownKeys:Ol},Ml={get:kl,set(e,t){return!0},deleteProperty(e,t){return!0}},Ll=ve({},zr,{get:Cl,set:Il}),ko=e=>e,On=e=>Reflect.getPrototypeOf(e);function Mn(e,t,n=!1,o=!1){e=e.__v_raw;const r=ce(e),s=ce(t);n||(t!==s&&Ae(r,"get",t),Ae(r,"get",s));const{has:i}=On(r),a=o?ko:n?Io:ln;if(i.call(r,t))return a(e.get(t));if(i.call(r,s))return a(e.get(s));e!==r&&e.get(t)}function Ln(e,t=!1){const n=this.__v_raw,o=ce(n),r=ce(e);return t||(e!==r&&Ae(o,"has",e),Ae(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function zn(e,t=!1){return e=e.__v_raw,!t&&Ae(ce(e),"iterate",Et),Reflect.get(e,"size",e)}function jr(e){e=ce(e);const t=ce(this);return On(t).has.call(t,e)||(t.add(e),ut(t,"add",e,e)),this}function Ar(e,t){t=ce(t);const n=ce(this),{has:o,get:r}=On(n);let s=o.call(n,e);s||(e=ce(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?on(t,i)&&ut(n,"set",e,t):ut(n,"add",e,t),this}function Br(e){const t=ce(this),{has:n,get:o}=On(t);let r=n.call(t,e);r||(e=ce(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&ut(t,"delete",e,void 0),s}function Dr(){const e=ce(this),t=e.size!==0,n=e.clear();return t&&ut(e,"clear",void 0,void 0),n}function jn(e,t){return function(o,r){const s=this,i=s.__v_raw,a=ce(i),l=t?ko:e?Io:ln;return!e&&Ae(a,"iterate",Et),i.forEach((c,u)=>o.call(r,l(c),l(u),s))}}function An(e,t,n){return function(...o){const r=this.__v_raw,s=ce(r),i=Vt(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=r[e](...o),u=n?ko:t?Io:ln;return!t&&Ae(s,"iterate",l?yo:Et),{next(){const{value:d,done:m}=c.next();return m?{value:d,done:m}:{value:a?[u(d[0]),u(d[1])]:u(d),done:m}},[Symbol.iterator](){return this}}}}function yt(e){return function(...t){return e==="delete"?!1:this}}function zl(){const e={get(s){return Mn(this,s)},get size(){return zn(this)},has:Ln,add:jr,set:Ar,delete:Br,clear:Dr,forEach:jn(!1,!1)},t={get(s){return Mn(this,s,!1,!0)},get size(){return zn(this)},has:Ln,add:jr,set:Ar,delete:Br,clear:Dr,forEach:jn(!1,!0)},n={get(s){return Mn(this,s,!0)},get size(){return zn(this,!0)},has(s){return Ln.call(this,s,!0)},add:yt("add"),set:yt("set"),delete:yt("delete"),clear:yt("clear"),forEach:jn(!0,!1)},o={get(s){return Mn(this,s,!0,!0)},get size(){return zn(this,!0)},has(s){return Ln.call(this,s,!0)},add:yt("add"),set:yt("set"),delete:yt("delete"),clear:yt("clear"),forEach:jn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=An(s,!1,!1),n[s]=An(s,!0,!1),t[s]=An(s,!1,!0),o[s]=An(s,!0,!0)}),[e,n,t,o]}const[jl,Al,Bl,Dl]=zl();function So(e,t){const n=t?e?Dl:Bl:e?Al:jl;return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ae(n,r)&&r in o?n:o,r,s)}const Rl={get:So(!1,!1)},Nl={get:So(!1,!0)},Fl={get:So(!0,!1)},Rr=new WeakMap,Nr=new WeakMap,Fr=new WeakMap,Hl=new WeakMap;function Vl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wl(e){return e.__v_skip||!Object.isExtensible(e)?0:Vl(al(e))}function sn(e){return Yt(e)?e:To(e,!1,zr,Rl,Rr)}function Ul(e){return To(e,!1,Ll,Nl,Nr)}function $o(e){return To(e,!0,Ml,Fl,Fr)}function To(e,t,n,o,r){if(!pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=Wl(e);if(i===0)return e;const a=new Proxy(e,i===2?o:n);return r.set(e,a),a}function Kt(e){return Yt(e)?Kt(e.__v_raw):!!(e&&e.__v_isReactive)}function Yt(e){return!!(e&&e.__v_isReadonly)}function Bn(e){return!!(e&&e.__v_isShallow)}function Hr(e){return Kt(e)||Yt(e)}function ce(e){const t=e&&e.__v_raw;return t?ce(t):e}function Vr(e){return En(e,"__v_skip",!0),e}const ln=e=>pe(e)?sn(e):e,Io=e=>pe(e)?$o(e):e;function Wr(e){bt&&tt&&(e=ce(e),Pr(e.dep||(e.dep=vo())))}function Ur(e,t){e=ce(e);const n=e.dep;n&&xo(n)}function ye(e){return!!(e&&e.__v_isRef===!0)}function Z(e){return Kr(e,!1)}function Kl(e){return Kr(e,!0)}function Kr(e,t){return ye(e)?e:new Yl(e,t)}class Yl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ce(t),this._value=n?t:ln(t)}get value(){return Wr(this),this._value}set value(t){const n=this.__v_isShallow||Bn(t)||Yt(t);t=n?t:ce(t),on(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ln(t),Ur(this))}}function K(e){return ye(e)?e.value:e}const Xl={get:(e,t,n)=>K(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return ye(r)&&!ye(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Yr(e){return Kt(e)?e:new Proxy(e,Xl)}class ql{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new wo(t,()=>{this._dirty||(this._dirty=!0,Ur(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=ce(this);return Wr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Zl(e,t,n=!1){let o,r;const s=ne(e);return s?(o=e,r=et):(o=e.get,r=e.set),new ql(o,r,s||!r,n)}function Np(e,...t){}function wt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){Dn(s,t,n)}return r}function Xe(e,t,n,o){if(ne(e)){const s=wt(e,t,n,o);return s&&_r(s)&&s.catch(i=>{Dn(i,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(Xe(e[s],t,n,o));return r}function Dn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const i=t.proxy,a=n;for(;s;){const c=s.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,i,a)===!1)return}s=s.parent}const l=t.appContext.config.errorHandler;if(l){wt(l,null,10,[e,i,a]);return}}Jl(e,n,r,o)}function Jl(e,t,n,o=!0){console.error(e)}let an=!1,Po=!1;const Pe=[];let it=0;const Xt=[];let ft=null,Ot=0;const Xr=Promise.resolve();let Eo=null;function qe(e){const t=Eo||Xr;return e?t.then(this?e.bind(this):e):t}function Ql(e){let t=it+1,n=Pe.length;for(;t<n;){const o=t+n>>>1;cn(Pe[o])<e?t=o+1:n=o}return t}function Oo(e){(!Pe.length||!Pe.includes(e,an&&e.allowRecurse?it+1:it))&&(e.id==null?Pe.push(e):Pe.splice(Ql(e.id),0,e),qr())}function qr(){!an&&!Po&&(Po=!0,Eo=Xr.then(Qr))}function Gl(e){const t=Pe.indexOf(e);t>it&&Pe.splice(t,1)}function ea(e){Q(e)?Xt.push(...e):(!ft||!ft.includes(e,e.allowRecurse?Ot+1:Ot))&&Xt.push(e),qr()}function Zr(e,t=an?it+1:0){for(;t<Pe.length;t++){const n=Pe[t];n&&n.pre&&(Pe.splice(t,1),t--,n())}}function Jr(e){if(Xt.length){const t=[...new Set(Xt)];if(Xt.length=0,ft){ft.push(...t);return}for(ft=t,ft.sort((n,o)=>cn(n)-cn(o)),Ot=0;Ot<ft.length;Ot++)ft[Ot]();ft=null,Ot=0}}const cn=e=>e.id==null?1/0:e.id,ta=(e,t)=>{const n=cn(e)-cn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Qr(e){Po=!1,an=!0,Pe.sort(ta);const t=et;try{for(it=0;it<Pe.length;it++){const n=Pe[it];n&&n.active!==!1&&wt(n,null,14)}}finally{it=0,Pe.length=0,Jr(),an=!1,Eo=null,(Pe.length||Xt.length)&&Qr()}}function na(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||se;let r=n;const s=t.startsWith("update:"),i=s&&t.slice(7);if(i&&i in o){const u=`${i==="modelValue"?"model":i}Modifiers`,{number:d,trim:m}=o[u]||se;m&&(r=n.map(S=>be(S)?S.trim():S)),d&&(r=n.map(ho))}let a,l=o[a=po(t)]||o[a=po(Re(t))];!l&&s&&(l=o[a=po(Ke(t))]),l&&Xe(l,e,6,r);const c=o[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Xe(c,e,6,r)}}function Gr(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const s=e.emits;let i={},a=!1;if(!ne(e)){const l=c=>{const u=Gr(c,t,!0);u&&(a=!0,ve(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(pe(e)&&o.set(e,null),null):(Q(s)?s.forEach(l=>i[l]=null):ve(i,s),pe(e)&&o.set(e,i),i)}function Rn(e,t){return!e||!kn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ae(e,t[0].toLowerCase()+t.slice(1))||ae(e,Ke(t))||ae(e,t))}let Te=null,es=null;function Nn(e){const t=Te;return Te=e,es=e&&e.type.__scopeId||null,t}function oe(e,t=Te,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Es(-1);const s=Nn(t);let i;try{i=e(...r)}finally{Nn(s),o._d&&Es(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function Fp(){}function Mo(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:a,attrs:l,emit:c,render:u,renderCache:d,data:m,setupState:S,ctx:y,inheritAttrs:C}=e;let j,N;const L=Nn(e);try{if(n.shapeFlag&4){const h=r||o;j=lt(u.call(h,h,d,s,S,m,y)),N=l}else{const h=t;j=lt(h.length>1?h(s,{attrs:l,slots:a,emit:c}):h(s,null)),N=t.props?l:oa(l)}}catch(h){hn.length=0,Dn(h,e,1),j=q(Je)}let H=j;if(N&&C!==!1){const h=Object.keys(N),{shapeFlag:M}=H;h.length&&M&7&&(i&&h.some(ao)&&(N=ra(N,i)),H=xt(H,N))}return n.dirs&&(H=xt(H),H.dirs=H.dirs?H.dirs.concat(n.dirs):n.dirs),n.transition&&(H.transition=n.transition),j=H,Nn(L),j}const oa=e=>{let t;for(const n in e)(n==="class"||n==="style"||kn(n))&&((t||(t={}))[n]=e[n]);return t},ra=(e,t)=>{const n={};for(const o in e)(!ao(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function sa(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?ts(o,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const m=u[d];if(i[m]!==o[m]&&!Rn(c,m))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:o===i?!1:o?i?ts(o,i,c):!0:!!i;return!1}function ts(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 s=o[r];if(t[s]!==e[s]&&!Rn(n,s))return!0}return!1}function ia({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const la=e=>e.__isSuspense;function aa(e,t){t&&t.pendingBranch?Q(e)?t.effects.push(...e):t.effects.push(e):ea(e)}function ca(e,t){return Lo(e,null,t)}const Fn={};function ue(e,t,n){return Lo(e,t,n)}function Lo(e,t,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:i}=se){var a;const l=kr()===((a=ke)==null?void 0:a.scope)?ke:null;let c,u=!1,d=!1;if(ye(e)?(c=()=>e.value,u=Bn(e)):Kt(e)?(c=()=>e,o=!0):Q(e)?(d=!0,u=e.some(h=>Kt(h)||Bn(h)),c=()=>e.map(h=>{if(ye(h))return h.value;if(Kt(h))return Mt(h);if(ne(h))return wt(h,l,2)})):ne(e)?t?c=()=>wt(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return m&&m(),Xe(e,l,3,[S])}:c=et,t&&o){const h=c;c=()=>Mt(h())}let m,S=h=>{m=L.onStop=()=>{wt(h,l,4)}},y;if(mn)if(S=et,t?n&&Xe(t,l,3,[c(),d?[]:void 0,S]):c(),r==="sync"){const h=tc();y=h.__watcherHandles||(h.__watcherHandles=[])}else return et;let C=d?new Array(e.length).fill(Fn):Fn;const j=()=>{if(L.active)if(t){const h=L.run();(o||u||(d?h.some((M,k)=>on(M,C[k])):on(h,C)))&&(m&&m(),Xe(t,l,3,[h,C===Fn?void 0:d&&C[0]===Fn?[]:C,S]),C=h)}else L.run()};j.allowRecurse=!!t;let N;r==="sync"?N=j:r==="post"?N=()=>Be(j,l&&l.suspense):(j.pre=!0,l&&(j.id=l.uid),N=()=>Oo(j));const L=new wo(c,N);t?n?j():C=L.run():r==="post"?Be(L.run.bind(L),l&&l.suspense):L.run();const H=()=>{L.stop(),l&&l.scope&&co(l.scope.effects,L)};return y&&y.push(H),H}function ua(e,t,n){const o=this.proxy,r=be(e)?e.includes(".")?ns(o,e):()=>o[e]:e.bind(o,o);let s;ne(t)?s=t:(s=t.handler,n=t);const i=ke;Zt(this);const a=Lo(r,s.bind(o),n);return i?Zt(i):Bt(),a}function ns(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 Mt(e,t){if(!pe(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),ye(e))Mt(e.value,t);else if(Q(e))for(let n=0;n<e.length;n++)Mt(e[n],t);else if(vr(e)||Vt(e))e.forEach(n=>{Mt(n,t)});else if(yr(e))for(const n in e)Mt(e[n],t);return e}function dt(e,t){const n=Te;if(n===null)return e;const o=Qn(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,a,l,c=se]=t[s];i&&(ne(i)&&(i={mounted:i,updated:i}),i.deep&&Mt(a),r.push({dir:i,instance:o,value:a,oldValue:void 0,arg:l,modifiers:c}))}return e}function Lt(e,t,n,o){const r=e.dirs,s=t&&t.dirs;for(let i=0;i<r.length;i++){const a=r[i];s&&(a.oldValue=s[i].value);let l=a.dir[o];l&&(Wt(),Xe(l,n,8,[e.el,a,e,t]),Ut())}}function fa(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Fe(()=>{e.isMounted=!0}),as(()=>{e.isUnmounting=!0}),e}const Ze=[Function,Array],os={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ze,onEnter:Ze,onAfterEnter:Ze,onEnterCancelled:Ze,onBeforeLeave:Ze,onLeave:Ze,onAfterLeave:Ze,onLeaveCancelled:Ze,onBeforeAppear:Ze,onAppear:Ze,onAfterAppear:Ze,onAppearCancelled:Ze},da={name:"BaseTransition",props:os,setup(e,{slots:t}){const n=Ls(),o=fa();let r;return()=>{const s=t.default&&is(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const C of s)if(C.type!==Je){i=C;break}}const a=ce(e),{mode:l}=a;if(o.isLeaving)return jo(i);const c=ss(i);if(!c)return jo(i);const u=zo(c,a,o,n);Ao(c,u);const d=n.subTree,m=d&&ss(d);let S=!1;const{getTransitionKey:y}=c.type;if(y){const C=y();r===void 0?r=C:C!==r&&(r=C,S=!0)}if(m&&m.type!==Je&&(!At(c,m)||S)){const C=zo(m,a,o,n);if(Ao(m,C),l==="out-in")return o.isLeaving=!0,C.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},jo(i);l==="in-out"&&c.type!==Je&&(C.delayLeave=(j,N,L)=>{const H=rs(o,m);H[String(m.key)]=m,j._leaveCb=()=>{N(),j._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=L})}return i}}};function rs(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 zo(e,t,n,o){const{appear:r,mode:s,persisted:i=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:m,onAfterLeave:S,onLeaveCancelled:y,onBeforeAppear:C,onAppear:j,onAfterAppear:N,onAppearCancelled:L}=t,H=String(e.key),h=rs(n,e),M=(_,v)=>{_&&Xe(_,o,9,v)},k=(_,v)=>{const x=v[1];M(_,v),Q(_)?_.every(D=>D.length<=1)&&x():_.length<=1&&x()},T={mode:s,persisted:i,beforeEnter(_){let v=a;if(!n.isMounted)if(r)v=C||a;else return;_._leaveCb&&_._leaveCb(!0);const x=h[H];x&&At(e,x)&&x.el._leaveCb&&x.el._leaveCb(),M(v,[_])},enter(_){let v=l,x=c,D=u;if(!n.isMounted)if(r)v=j||l,x=N||c,D=L||u;else return;let P=!1;const B=_._enterCb=ee=>{P||(P=!0,ee?M(D,[_]):M(x,[_]),T.delayedLeave&&T.delayedLeave(),_._enterCb=void 0)};v?k(v,[_,B]):B()},leave(_,v){const x=String(e.key);if(_._enterCb&&_._enterCb(!0),n.isUnmounting)return v();M(d,[_]);let D=!1;const P=_._leaveCb=B=>{D||(D=!0,v(),B?M(y,[_]):M(S,[_]),_._leaveCb=void 0,h[x]===e&&delete h[x])};h[x]=e,m?k(m,[_,P]):P()},clone(_){return zo(_,t,n,o)}};return T}function jo(e){if(Hn(e))return e=xt(e),e.children=null,e}function ss(e){return Hn(e)?e.children?e.children[0]:void 0:e}function Ao(e,t){e.shapeFlag&6&&e.component?Ao(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 is(e,t=!1,n){let o=[],r=0;for(let s=0;s<e.length;s++){let i=e[s];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===ge?(i.patchFlag&128&&r++,o=o.concat(is(i.children,t,a))):(t||i.type!==Je)&&o.push(a!=null?xt(i,{key:a}):i)}if(r>1)for(let s=0;s<o.length;s++)o[s].patchFlag=-2;return o}function we(e,t){return ne(e)?(()=>ve({name:e.name},t,{setup:e}))():e}const un=e=>!!e.type.__asyncLoader,Hn=e=>e.type.__isKeepAlive;function pa(e,t){ls(e,"a",t)}function ha(e,t){ls(e,"da",t)}function ls(e,t,n=ke){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Vn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Hn(r.parent.vnode)&&ga(o,t,n,r),r=r.parent}}function ga(e,t,n,o){const r=Vn(t,e,o,!0);He(()=>{co(o[t],r)},n)}function Vn(e,t,n=ke,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Wt(),Zt(n);const a=Xe(t,n,e,i);return Bt(),Ut(),a});return o?r.unshift(s):r.push(s),s}}const pt=e=>(t,n=ke)=>(!mn||e==="sp")&&Vn(e,(...o)=>t(...o),n),ma=pt("bm"),Fe=pt("m"),va=pt("bu"),_a=pt("u"),as=pt("bum"),He=pt("um"),ba=pt("sp"),ya=pt("rtg"),wa=pt("rtc");function xa(e,t=ke){Vn("ec",e,t)}const cs="components",us=Symbol.for("v-ndc");function Ca(e){return be(e)?ka(cs,e,!1)||e:e||us}function ka(e,t,n=!0,o=!1){const r=Te||ke;if(r){const s=r.type;if(e===cs){const a=Qa(s,!1);if(a&&(a===t||a===Re(t)||a===In(Re(t))))return s}const i=fs(r[e]||s[e],t)||fs(r.appContext[e],t);return!i&&o?s:i}}function fs(e,t){return e&&(e[t]||e[Re(t)]||e[In(Re(t))])}function fn(e,t,n,o){let r;const s=n&&n[o];if(Q(e)||be(e)){r=new Array(e.length);for(let i=0,a=e.length;i<a;i++)r[i]=t(e[i],i,void 0,s&&s[i])}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,s&&s[i])}else if(pe(e))if(e[Symbol.iterator])r=Array.from(e,(i,a)=>t(i,a,void 0,s&&s[a]));else{const i=Object.keys(e);r=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const c=i[a];r[a]=t(e[c],c,a,s&&s[a])}}else r=[];return n&&(n[o]=r),r}function ds(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(Q(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 s=o.fn(...r);return s&&(s.key=o.key),s}:o.fn)}return e}function Ce(e,t,n={},o,r){if(Te.isCE||Te.parent&&un(Te.parent)&&Te.parent.isCE)return t!=="default"&&(n.name=t),q("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),A();const i=s&&ps(s(n)),a=_e(ge,{key:n.key||i&&i.key||`_${t}`},i||(o?o():[]),i&&e._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function ps(e){return e.some(t=>Xn(t)?!(t.type===Je||t.type===ge&&!ps(t.children)):!0)?e:null}const Bo=e=>e?js(e)?Qn(e)||e.proxy:Bo(e.parent):null,dn=ve(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=>Bo(e.parent),$root:e=>Bo(e.root),$emit:e=>e.emit,$options:e=>No(e),$forceUpdate:e=>e.f||(e.f=()=>Oo(e.update)),$nextTick:e=>e.n||(e.n=qe.bind(e.proxy)),$watch:e=>ua.bind(e)}),Do=(e,t)=>e!==se&&!e.__isScriptSetup&&ae(e,t),Sa={get({_:e},t){const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const S=i[t];if(S!==void 0)switch(S){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(Do(o,t))return i[t]=1,o[t];if(r!==se&&ae(r,t))return i[t]=2,r[t];if((c=e.propsOptions[0])&&ae(c,t))return i[t]=3,s[t];if(n!==se&&ae(n,t))return i[t]=4,n[t];Ro&&(i[t]=0)}}const u=dn[t];let d,m;if(u)return t==="$attrs"&&Ae(e,"get",t),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==se&&ae(n,t))return i[t]=4,n[t];if(m=l.config.globalProperties,ae(m,t))return m[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return Do(r,t)?(r[t]=n,!0):o!==se&&ae(o,t)?(o[t]=n,!0):ae(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:s}},i){let a;return!!n[i]||e!==se&&ae(e,i)||Do(t,i)||(a=s[0])&&ae(a,i)||ae(o,i)||ae(dn,i)||ae(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ae(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hs(e){return Q(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ro=!0;function $a(e){const t=No(e),n=e.proxy,o=e.ctx;Ro=!1,t.beforeCreate&&gs(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:m,beforeUpdate:S,updated:y,activated:C,deactivated:j,beforeDestroy:N,beforeUnmount:L,destroyed:H,unmounted:h,render:M,renderTracked:k,renderTriggered:T,errorCaptured:_,serverPrefetch:v,expose:x,inheritAttrs:D,components:P,directives:B,filters:ee}=t;if(c&&Ta(c,o,null),i)for(const F in i){const U=i[F];ne(U)&&(o[F]=U.bind(n))}if(r){const F=r.call(n,n);pe(F)&&(e.data=sn(F))}if(Ro=!0,s)for(const F in s){const U=s[F],fe=ne(U)?U.bind(n,n):ne(U.get)?U.get.bind(n,n):et,$e=!ne(U)&&ne(U.set)?U.set.bind(n):et,Ve=ie({get:fe,set:$e});Object.defineProperty(o,F,{enumerable:!0,configurable:!0,get:()=>Ve.value,set:Ie=>Ve.value=Ie})}if(a)for(const F in a)ms(a[F],o,n,F);if(l){const F=ne(l)?l.call(n):l;Reflect.ownKeys(F).forEach(U=>{Kn(U,F[U])})}u&&gs(u,e,"c");function I(F,U){Q(U)?U.forEach(fe=>F(fe.bind(n))):U&&F(U.bind(n))}if(I(ma,d),I(Fe,m),I(va,S),I(_a,y),I(pa,C),I(ha,j),I(xa,_),I(wa,k),I(ya,T),I(as,L),I(He,h),I(ba,v),Q(x))if(x.length){const F=e.exposed||(e.exposed={});x.forEach(U=>{Object.defineProperty(F,U,{get:()=>n[U],set:fe=>n[U]=fe})})}else e.exposed||(e.exposed={});M&&e.render===et&&(e.render=M),D!=null&&(e.inheritAttrs=D),P&&(e.components=P),B&&(e.directives=B)}function Ta(e,t,n=et){Q(e)&&(e=Fo(e));for(const o in e){const r=e[o];let s;pe(r)?"default"in r?s=zt(r.from||o,r.default,!0):s=zt(r.from||o):s=zt(r),ye(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[o]=s}}function gs(e,t,n){Xe(Q(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function ms(e,t,n,o){const r=o.includes(".")?ns(n,o):()=>n[o];if(be(e)){const s=t[e];ne(s)&&ue(r,s)}else if(ne(e))ue(r,e.bind(n));else if(pe(e))if(Q(e))e.forEach(s=>ms(s,t,n,o));else{const s=ne(e.handler)?e.handler.bind(n):t[e.handler];ne(s)&&ue(r,s,e)}}function No(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!r.length&&!n&&!o?l=t:(l={},r.length&&r.forEach(c=>Wn(l,c,i,!0)),Wn(l,t,i)),pe(t)&&s.set(t,l),l}function Wn(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&Wn(e,s,n,!0),r&&r.forEach(i=>Wn(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const a=Ia[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Ia={data:vs,props:_s,emits:_s,methods:pn,computed:pn,beforeCreate:Le,created:Le,beforeMount:Le,mounted:Le,beforeUpdate:Le,updated:Le,beforeDestroy:Le,beforeUnmount:Le,destroyed:Le,unmounted:Le,activated:Le,deactivated:Le,errorCaptured:Le,serverPrefetch:Le,components:pn,directives:pn,watch:Ea,provide:vs,inject:Pa};function vs(e,t){return t?e?function(){return ve(ne(e)?e.call(this,this):e,ne(t)?t.call(this,this):t)}:t:e}function Pa(e,t){return pn(Fo(e),Fo(t))}function Fo(e){if(Q(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Le(e,t){return e?[...new Set([].concat(e,t))]:t}function pn(e,t){return e?ve(Object.create(null),e,t):t}function _s(e,t){return e?Q(e)&&Q(t)?[...new Set([...e,...t])]:ve(Object.create(null),hs(e),hs(t??{})):t}function Ea(e,t){if(!e)return t;if(!t)return e;const n=ve(Object.create(null),e);for(const o in t)n[o]=Le(e[o],t[o]);return n}function bs(){return{app:null,config:{isNativeTag:sl,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 Oa=0;function Ma(e,t){return function(o,r=null){ne(o)||(o=ve({},o)),r!=null&&!pe(r)&&(r=null);const s=bs(),i=new Set;let a=!1;const l=s.app={_uid:Oa++,_component:o,_props:r,_container:null,_context:s,_instance:null,version:nc,get config(){return s.config},set config(c){},use(c,...u){return i.has(c)||(c&&ne(c.install)?(i.add(c),c.install(l,...u)):ne(c)&&(i.add(c),c(l,...u))),l},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),l},component(c,u){return u?(s.components[c]=u,l):s.components[c]},directive(c,u){return u?(s.directives[c]=u,l):s.directives[c]},mount(c,u,d){if(!a){const m=q(o,r);return m.appContext=s,u&&t?t(m,c):e(m,c,d),a=!0,l._container=c,c.__vue_app__=l,Qn(m.component)||m.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(c,u){return s.provides[c]=u,l},runWithContext(c){Un=l;try{return c()}finally{Un=null}}};return l}}let Un=null;function Kn(e,t){if(ke){let n=ke.provides;const o=ke.parent&&ke.parent.provides;o===n&&(n=ke.provides=Object.create(o)),n[e]=t}}function zt(e,t,n=!1){const o=ke||Te;if(o||Un){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Un._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&ne(t)?t.call(o&&o.proxy):t}}function La(e,t,n,o=!1){const r={},s={};En(s,qn,1),e.propsDefaults=Object.create(null),ys(e,t,r,s);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:Ul(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function za(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,a=ce(r),[l]=e.propsOptions;let c=!1;if((o||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let m=u[d];if(Rn(e.emitsOptions,m))continue;const S=t[m];if(l)if(ae(s,m))S!==s[m]&&(s[m]=S,c=!0);else{const y=Re(m);r[y]=Ho(l,a,y,S,e,!1)}else S!==s[m]&&(s[m]=S,c=!0)}}}else{ys(e,t,r,s)&&(c=!0);let u;for(const d in a)(!t||!ae(t,d)&&((u=Ke(d))===d||!ae(t,u)))&&(l?n&&(n[d]!==void 0||n[u]!==void 0)&&(r[d]=Ho(l,a,d,void 0,e,!0)):delete r[d]);if(s!==a)for(const d in s)(!t||!ae(t,d))&&(delete s[d],c=!0)}c&&ut(e,"set","$attrs")}function ys(e,t,n,o){const[r,s]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if($n(l))continue;const c=t[l];let u;r&&ae(r,u=Re(l))?!s||!s.includes(u)?n[u]=c:(a||(a={}))[u]=c:Rn(e.emitsOptions,l)||(!(l in o)||c!==o[l])&&(o[l]=c,i=!0)}if(s){const l=ce(n),c=a||se;for(let u=0;u<s.length;u++){const d=s[u];n[d]=Ho(r,l,d,c[d],e,!ae(c,d))}}return i}function Ho(e,t,n,o,r,s){const i=e[n];if(i!=null){const a=ae(i,"default");if(a&&o===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&ne(l)){const{propsDefaults:c}=r;n in c?o=c[n]:(Zt(r),o=c[n]=l.call(null,t),Bt())}else o=l}i[0]&&(s&&!a?o=!1:i[1]&&(o===""||o===Ke(n))&&(o=!0))}return o}function ws(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const s=e.props,i={},a=[];let l=!1;if(!ne(e)){const u=d=>{l=!0;const[m,S]=ws(d,t,!0);ve(i,m),S&&a.push(...S)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!l)return pe(e)&&o.set(e,Ue),Ue;if(Q(s))for(let u=0;u<s.length;u++){const d=Re(s[u]);xs(d)&&(i[d]=se)}else if(s)for(const u in s){const d=Re(u);if(xs(d)){const m=s[u],S=i[d]=Q(m)||ne(m)?{type:m}:ve({},m);if(S){const y=Ss(Boolean,S.type),C=Ss(String,S.type);S[0]=y>-1,S[1]=C<0||y<C,(y>-1||ae(S,"default"))&&a.push(d)}}}const c=[i,a];return pe(e)&&o.set(e,c),c}function xs(e){return e[0]!=="$"}function Cs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ks(e,t){return Cs(e)===Cs(t)}function Ss(e,t){return Q(t)?t.findIndex(n=>ks(n,e)):ne(t)&&ks(t,e)?0:-1}const $s=e=>e[0]==="_"||e==="$stable",Vo=e=>Q(e)?e.map(lt):[lt(e)],ja=(e,t,n)=>{if(t._n)return t;const o=oe((...r)=>Vo(t(...r)),n);return o._c=!1,o},Ts=(e,t,n)=>{const o=e._ctx;for(const r in e){if($s(r))continue;const s=e[r];if(ne(s))t[r]=ja(r,s,o);else if(s!=null){const i=Vo(s);t[r]=()=>i}}},Is=(e,t)=>{const n=Vo(t);e.slots.default=()=>n},Aa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ce(t),En(t,"_",n)):Ts(t,e.slots={})}else e.slots={},t&&Is(e,t);En(e.slots,qn,1)},Ba=(e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,i=se;if(o.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:(ve(r,t),!n&&a===1&&delete r._):(s=!t.$stable,Ts(t,r)),i=t}else t&&(Is(e,t),i={default:1});if(s)for(const a in r)!$s(a)&&!(a in i)&&delete r[a]};function Wo(e,t,n,o,r=!1){if(Q(e)){e.forEach((m,S)=>Wo(m,t&&(Q(t)?t[S]:t),n,o,r));return}if(un(o)&&!r)return;const s=o.shapeFlag&4?Qn(o.component)||o.component.proxy:o.el,i=r?null:s,{i:a,r:l}=e,c=t&&t.r,u=a.refs===se?a.refs={}:a.refs,d=a.setupState;if(c!=null&&c!==l&&(be(c)?(u[c]=null,ae(d,c)&&(d[c]=null)):ye(c)&&(c.value=null)),ne(l))wt(l,a,12,[i,u]);else{const m=be(l),S=ye(l);if(m||S){const y=()=>{if(e.f){const C=m?ae(d,l)?d[l]:u[l]:l.value;r?Q(C)&&co(C,s):Q(C)?C.includes(s)||C.push(s):m?(u[l]=[s],ae(d,l)&&(d[l]=u[l])):(l.value=[s],e.k&&(u[e.k]=l.value))}else m?(u[l]=i,ae(d,l)&&(d[l]=i)):S&&(l.value=i,e.k&&(u[e.k]=i))};i?(y.id=-1,Be(y,n)):y()}}}const Be=aa;function Da(e){return Ra(e)}function Ra(e,t){const n=mo();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:m,setScopeId:S=et,insertStaticContent:y}=e,C=(f,p,w,E=null,O=null,z=null,R=!1,g=null,b=!!p.dynamicChildren)=>{if(f===p)return;f&&!At(f,p)&&(E=tn(f),Ie(f,O,z,!0),f=null),p.patchFlag===-2&&(b=!1,p.dynamicChildren=null);const{type:$,ref:W,shapeFlag:V}=p;switch($){case Yn:j(f,p,w,E);break;case Je:N(f,p,w,E);break;case Uo:f==null&&L(p,w,E,R);break;case ge:P(f,p,w,E,O,z,R,g,b);break;default:V&1?M(f,p,w,E,O,z,R,g,b):V&6?B(f,p,w,E,O,z,R,g,b):(V&64||V&128)&&$.process(f,p,w,E,O,z,R,g,b,st)}W!=null&&O&&Wo(W,f&&f.ref,z,p||f,!p)},j=(f,p,w,E)=>{if(f==null)o(p.el=a(p.children),w,E);else{const O=p.el=f.el;p.children!==f.children&&c(O,p.children)}},N=(f,p,w,E)=>{f==null?o(p.el=l(p.children||""),w,E):p.el=f.el},L=(f,p,w,E)=>{[f.el,f.anchor]=y(f.children,p,w,E,f.el,f.anchor)},H=({el:f,anchor:p},w,E)=>{let O;for(;f&&f!==p;)O=m(f),o(f,w,E),f=O;o(p,w,E)},h=({el:f,anchor:p})=>{let w;for(;f&&f!==p;)w=m(f),r(f),f=w;r(p)},M=(f,p,w,E,O,z,R,g,b)=>{R=R||p.type==="svg",f==null?k(p,w,E,O,z,R,g,b):v(f,p,O,z,R,g,b)},k=(f,p,w,E,O,z,R,g)=>{let b,$;const{type:W,props:V,shapeFlag:J,transition:te,dirs:re}=f;if(b=f.el=i(f.type,z,V&&V.is,V),J&8?u(b,f.children):J&16&&_(f.children,b,null,E,O,z&&W!=="foreignObject",R,g),re&&Lt(f,null,E,"created"),T(b,f,f.scopeId,R,E),V){for(const de in V)de!=="value"&&!$n(de)&&s(b,de,null,V[de],z,f.children,E,O,Oe);"value"in V&&s(b,"value",null,V.value),($=V.onVnodeBeforeMount)&&at($,E,f)}re&&Lt(f,null,E,"beforeMount");const le=(!O||O&&!O.pendingBranch)&&te&&!te.persisted;le&&te.beforeEnter(b),o(b,p,w),(($=V&&V.onVnodeMounted)||le||re)&&Be(()=>{$&&at($,E,f),le&&te.enter(b),re&&Lt(f,null,E,"mounted")},O)},T=(f,p,w,E,O)=>{if(w&&S(f,w),E)for(let z=0;z<E.length;z++)S(f,E[z]);if(O){let z=O.subTree;if(p===z){const R=O.vnode;T(f,R,R.scopeId,R.slotScopeIds,O.parent)}}},_=(f,p,w,E,O,z,R,g,b=0)=>{for(let $=b;$<f.length;$++){const W=f[$]=g?kt(f[$]):lt(f[$]);C(null,W,p,w,E,O,z,R,g)}},v=(f,p,w,E,O,z,R)=>{const g=p.el=f.el;let{patchFlag:b,dynamicChildren:$,dirs:W}=p;b|=f.patchFlag&16;const V=f.props||se,J=p.props||se;let te;w&&jt(w,!1),(te=J.onVnodeBeforeUpdate)&&at(te,w,p,f),W&&Lt(p,f,w,"beforeUpdate"),w&&jt(w,!0);const re=O&&p.type!=="foreignObject";if($?x(f.dynamicChildren,$,g,w,E,re,z):R||U(f,p,g,null,w,E,re,z,!1),b>0){if(b&16)D(g,p,V,J,w,E,O);else if(b&2&&V.class!==J.class&&s(g,"class",null,J.class,O),b&4&&s(g,"style",V.style,J.style,O),b&8){const le=p.dynamicProps;for(let de=0;de<le.length;de++){const me=le[de],We=V[me],Pt=J[me];(Pt!==We||me==="value")&&s(g,me,We,Pt,O,f.children,w,E,Oe)}}b&1&&f.children!==p.children&&u(g,p.children)}else!R&&$==null&&D(g,p,V,J,w,E,O);((te=J.onVnodeUpdated)||W)&&Be(()=>{te&&at(te,w,p,f),W&&Lt(p,f,w,"updated")},E)},x=(f,p,w,E,O,z,R)=>{for(let g=0;g<p.length;g++){const b=f[g],$=p[g],W=b.el&&(b.type===ge||!At(b,$)||b.shapeFlag&70)?d(b.el):w;C(b,$,W,null,E,O,z,R,!0)}},D=(f,p,w,E,O,z,R)=>{if(w!==E){if(w!==se)for(const g in w)!$n(g)&&!(g in E)&&s(f,g,w[g],null,R,p.children,O,z,Oe);for(const g in E){if($n(g))continue;const b=E[g],$=w[g];b!==$&&g!=="value"&&s(f,g,$,b,R,p.children,O,z,Oe)}"value"in E&&s(f,"value",w.value,E.value)}},P=(f,p,w,E,O,z,R,g,b)=>{const $=p.el=f?f.el:a(""),W=p.anchor=f?f.anchor:a("");let{patchFlag:V,dynamicChildren:J,slotScopeIds:te}=p;te&&(g=g?g.concat(te):te),f==null?(o($,w,E),o(W,w,E),_(p.children,w,W,O,z,R,g,b)):V>0&&V&64&&J&&f.dynamicChildren?(x(f.dynamicChildren,J,w,O,z,R,g),(p.key!=null||O&&p===O.subTree)&&Ps(f,p,!0)):U(f,p,w,W,O,z,R,g,b)},B=(f,p,w,E,O,z,R,g,b)=>{p.slotScopeIds=g,f==null?p.shapeFlag&512?O.ctx.activate(p,w,E,R,b):ee(p,w,E,O,z,R,b):G(f,p,b)},ee=(f,p,w,E,O,z,R)=>{const g=f.component=Ya(f,E,O);if(Hn(f)&&(g.ctx.renderer=st),Xa(g),g.asyncDep){if(O&&O.registerDep(g,I),!f.el){const b=g.subTree=q(Je);N(null,b,p,w)}return}I(g,f,p,w,O,z,R)},G=(f,p,w)=>{const E=p.component=f.component;if(sa(f,p,w))if(E.asyncDep&&!E.asyncResolved){F(E,p,w);return}else E.next=p,Gl(E.update),E.update();else p.el=f.el,E.vnode=p},I=(f,p,w,E,O,z,R)=>{const g=()=>{if(f.isMounted){let{next:W,bu:V,u:J,parent:te,vnode:re}=f,le=W,de;jt(f,!1),W?(W.el=re.el,F(f,W,R)):W=re,V&&Pn(V),(de=W.props&&W.props.onVnodeBeforeUpdate)&&at(de,te,W,re),jt(f,!0);const me=Mo(f),We=f.subTree;f.subTree=me,C(We,me,d(We.el),tn(We),f,O,z),W.el=me.el,le===null&&ia(f,me.el),J&&Be(J,O),(de=W.props&&W.props.onVnodeUpdated)&&Be(()=>at(de,te,W,re),O)}else{let W;const{el:V,props:J}=p,{bm:te,m:re,parent:le}=f,de=un(p);if(jt(f,!1),te&&Pn(te),!de&&(W=J&&J.onVnodeBeforeMount)&&at(W,le,p),jt(f,!0),V&&nn){const me=()=>{f.subTree=Mo(f),nn(V,f.subTree,f,O,null)};de?p.type.__asyncLoader().then(()=>!f.isUnmounted&&me()):me()}else{const me=f.subTree=Mo(f);C(null,me,w,E,f,O,z),p.el=me.el}if(re&&Be(re,O),!de&&(W=J&&J.onVnodeMounted)){const me=p;Be(()=>at(W,le,me),O)}(p.shapeFlag&256||le&&un(le.vnode)&&le.vnode.shapeFlag&256)&&f.a&&Be(f.a,O),f.isMounted=!0,p=w=E=null}},b=f.effect=new wo(g,()=>Oo($),f.scope),$=f.update=()=>b.run();$.id=f.uid,jt(f,!0),$()},F=(f,p,w)=>{p.component=f;const E=f.vnode.props;f.vnode=p,f.next=null,za(f,p.props,E,w),Ba(f,p.children,w),Wt(),Zr(),Ut()},U=(f,p,w,E,O,z,R,g,b=!1)=>{const $=f&&f.children,W=f?f.shapeFlag:0,V=p.children,{patchFlag:J,shapeFlag:te}=p;if(J>0){if(J&128){$e($,V,w,E,O,z,R,g,b);return}else if(J&256){fe($,V,w,E,O,z,R,g,b);return}}te&8?(W&16&&Oe($,O,z),V!==$&&u(w,V)):W&16?te&16?$e($,V,w,E,O,z,R,g,b):Oe($,O,z,!0):(W&8&&u(w,""),te&16&&_(V,w,E,O,z,R,g,b))},fe=(f,p,w,E,O,z,R,g,b)=>{f=f||Ue,p=p||Ue;const $=f.length,W=p.length,V=Math.min($,W);let J;for(J=0;J<V;J++){const te=p[J]=b?kt(p[J]):lt(p[J]);C(f[J],te,w,null,O,z,R,g,b)}$>W?Oe(f,O,z,!0,!1,V):_(p,w,E,O,z,R,g,b,V)},$e=(f,p,w,E,O,z,R,g,b)=>{let $=0;const W=p.length;let V=f.length-1,J=W-1;for(;$<=V&&$<=J;){const te=f[$],re=p[$]=b?kt(p[$]):lt(p[$]);if(At(te,re))C(te,re,w,null,O,z,R,g,b);else break;$++}for(;$<=V&&$<=J;){const te=f[V],re=p[J]=b?kt(p[J]):lt(p[J]);if(At(te,re))C(te,re,w,null,O,z,R,g,b);else break;V--,J--}if($>V){if($<=J){const te=J+1,re=te<W?p[te].el:E;for(;$<=J;)C(null,p[$]=b?kt(p[$]):lt(p[$]),w,re,O,z,R,g,b),$++}}else if($>J)for(;$<=V;)Ie(f[$],O,z,!0),$++;else{const te=$,re=$,le=new Map;for($=re;$<=J;$++){const ze=p[$]=b?kt(p[$]):lt(p[$]);ze.key!=null&&le.set(ze.key,$)}let de,me=0;const We=J-re+1;let Pt=!1,so=0;const Ht=new Array(We);for($=0;$<We;$++)Ht[$]=0;for($=te;$<=V;$++){const ze=f[$];if(me>=We){Ie(ze,O,z,!0);continue}let Ge;if(ze.key!=null)Ge=le.get(ze.key);else for(de=re;de<=J;de++)if(Ht[de-re]===0&&At(ze,p[de])){Ge=de;break}Ge===void 0?Ie(ze,O,z,!0):(Ht[Ge-re]=$+1,Ge>=so?so=Ge:Pt=!0,C(ze,p[Ge],w,null,O,z,R,g,b),me++)}const io=Pt?Na(Ht):Ue;for(de=io.length-1,$=We-1;$>=0;$--){const ze=re+$,Ge=p[ze],lo=ze+1<W?p[ze+1].el:E;Ht[$]===0?C(null,Ge,w,lo,O,z,R,g,b):Pt&&(de<0||$!==io[de]?Ve(Ge,w,lo,2):de--)}}},Ve=(f,p,w,E,O=null)=>{const{el:z,type:R,transition:g,children:b,shapeFlag:$}=f;if($&6){Ve(f.component.subTree,p,w,E);return}if($&128){f.suspense.move(p,w,E);return}if($&64){R.move(f,p,w,st);return}if(R===ge){o(z,p,w);for(let V=0;V<b.length;V++)Ve(b[V],p,w,E);o(f.anchor,p,w);return}if(R===Uo){H(f,p,w);return}if(E!==2&&$&1&&g)if(E===0)g.beforeEnter(z),o(z,p,w),Be(()=>g.enter(z),O);else{const{leave:V,delayLeave:J,afterLeave:te}=g,re=()=>o(z,p,w),le=()=>{V(z,()=>{re(),te&&te()})};J?J(z,re,le):le()}else o(z,p,w)},Ie=(f,p,w,E=!1,O=!1)=>{const{type:z,props:R,ref:g,children:b,dynamicChildren:$,shapeFlag:W,patchFlag:V,dirs:J}=f;if(g!=null&&Wo(g,null,w,f,!0),W&256){p.ctx.deactivate(f);return}const te=W&1&&J,re=!un(f);let le;if(re&&(le=R&&R.onVnodeBeforeUnmount)&&at(le,p,f),W&6)en(f.component,w,E);else{if(W&128){f.suspense.unmount(w,E);return}te&&Lt(f,null,p,"beforeUnmount"),W&64?f.type.remove(f,p,w,O,st,E):$&&(z!==ge||V>0&&V&64)?Oe($,p,w,!1,!0):(z===ge&&V&384||!O&&W&16)&&Oe(b,p,w),E&&ct(f)}(re&&(le=R&&R.onVnodeUnmounted)||te)&&Be(()=>{le&&at(le,p,f),te&&Lt(f,null,p,"unmounted")},w)},ct=f=>{const{type:p,el:w,anchor:E,transition:O}=f;if(p===ge){mt(w,E);return}if(p===Uo){h(f);return}const z=()=>{r(w),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(f.shapeFlag&1&&O&&!O.persisted){const{leave:R,delayLeave:g}=O,b=()=>R(w,z);g?g(f.el,z,b):b()}else z()},mt=(f,p)=>{let w;for(;f!==p;)w=m(f),r(f),f=w;r(p)},en=(f,p,w)=>{const{bum:E,scope:O,update:z,subTree:R,um:g}=f;E&&Pn(E),O.stop(),z&&(z.active=!1,Ie(R,f,p,w)),g&&Be(g,p),Be(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},Oe=(f,p,w,E=!1,O=!1,z=0)=>{for(let R=z;R<f.length;R++)Ie(f[R],p,w,E,O)},tn=f=>f.shapeFlag&6?tn(f.component.subTree):f.shapeFlag&128?f.suspense.next():m(f.anchor||f.el),ro=(f,p,w)=>{f==null?p._vnode&&Ie(p._vnode,null,null,!0):C(p._vnode||null,f,p,null,null,null,w),Zr(),Jr(),p._vnode=f},st={p:C,um:Ie,m:Ve,r:ct,mt:ee,mc:_,pc:U,pbc:x,n:tn,o:e};let vt,nn;return t&&([vt,nn]=t(st)),{render:ro,hydrate:vt,createApp:Ma(ro,vt)}}function jt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ps(e,t,n=!1){const o=e.children,r=t.children;if(Q(o)&&Q(r))for(let s=0;s<o.length;s++){const i=o[s];let a=r[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[s]=kt(r[s]),a.el=i.el),n||Ps(i,a)),a.type===Yn&&(a.el=i.el)}}function Na(e){const t=e.slice(),n=[0];let o,r,s,i,a;const l=e.length;for(o=0;o<l;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(s=0,i=n.length-1;s<i;)a=s+i>>1,e[n[a]]<c?s=a+1:i=a;c<e[n[s]]&&(s>0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}const Fa=e=>e.__isTeleport,ge=Symbol.for("v-fgt"),Yn=Symbol.for("v-txt"),Je=Symbol.for("v-cmt"),Uo=Symbol.for("v-stc"),hn=[];let nt=null;function A(e=!1){hn.push(nt=e?null:[])}function Ha(){hn.pop(),nt=hn[hn.length-1]||null}let gn=1;function Es(e){gn+=e}function Os(e){return e.dynamicChildren=gn>0?nt||Ue:null,Ha(),gn>0&&nt&&nt.push(e),e}function Y(e,t,n,o,r,s){return Os(X(e,t,n,o,r,s,!0))}function _e(e,t,n,o,r){return Os(q(e,t,n,o,r,!0))}function Xn(e){return e?e.__v_isVNode===!0:!1}function At(e,t){return e.type===t.type&&e.key===t.key}const qn="__vInternal",Ms=({key:e})=>e??null,Zn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||ye(e)||ne(e)?{i:Te,r:e,k:t,f:!!n}:e:null);function X(e,t=null,n=null,o=0,r=null,s=e===ge?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ms(t),ref:t&&Zn(t),scopeId:es,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:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Te};return a?(Ko(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=be(n)?8:16),gn>0&&!i&&nt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&nt.push(l),l}const q=Va;function Va(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===us)&&(e=Je),Xn(e)){const a=xt(e,t,!0);return n&&Ko(a,n),gn>0&&!s&&nt&&(a.shapeFlag&6?nt[nt.indexOf(e)]=a:nt.push(a)),a.patchFlag|=-2,a}if(Ga(e)&&(e=e.__vccOpts),t){t=Wa(t);let{class:a,style:l}=t;a&&!be(a)&&(t.class=xe(a)),pe(l)&&(Hr(l)&&!Q(l)&&(l=ve({},l)),t.style=Me(l))}const i=be(e)?1:la(e)?128:Fa(e)?64:pe(e)?4:ne(e)?2:0;return X(e,t,n,o,r,i,s,!0)}function Wa(e){return e?Hr(e)||qn in e?ve({},e):e:null}function xt(e,t,n=!1){const{props:o,ref:r,patchFlag:s,children:i}=e,a=t?Jn(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Ms(a),ref:t&&t.ref?n&&r?Q(r)?r.concat(Zn(t)):[r,Zn(t)]:Zn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ge?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xt(e.ssContent),ssFallback:e.ssFallback&&xt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ct(e=" ",t=0){return q(Yn,null,e,t)}function Ee(e="",t=!1){return t?(A(),_e(Je,null,e)):q(Je,null,e)}function lt(e){return e==null||typeof e=="boolean"?q(Je):Q(e)?q(ge,null,e.slice()):typeof e=="object"?kt(e):q(Yn,null,String(e))}function kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xt(e)}function Ko(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Q(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Ko(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(qn in t)?t._ctx=Te:r===3&&Te&&(Te.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ne(t)?(t={default:t,_ctx:Te},n=32):(t=String(t),o&64?(n=16,t=[Ct(t)]):n=8);e.children=t,e.shapeFlag|=n}function Jn(...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=xe([t.class,o.class]));else if(r==="style")t.style=Me([t.style,o.style]);else if(kn(r)){const s=t[r],i=o[r];i&&s!==i&&!(Q(s)&&s.includes(i))&&(t[r]=s?[].concat(s,i):i)}else r!==""&&(t[r]=o[r])}return t}function at(e,t,n,o=null){Xe(e,t,7,[n,o])}const Ua=bs();let Ka=0;function Ya(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Ua,s={uid:Ka++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new ml(!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:ws(o,r),emitsOptions:Gr(o,r),emit:null,emitted:null,propsDefaults:se,inheritAttrs:o.inheritAttrs,ctx:se,data:se,props:se,attrs:se,slots:se,refs:se,setupState:se,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 s.ctx={_:s},s.root=t?t.root:s,s.emit=na.bind(null,s),e.ce&&e.ce(s),s}let ke=null;const Ls=()=>ke||Te;let Yo,qt,zs="__VUE_INSTANCE_SETTERS__";(qt=mo()[zs])||(qt=mo()[zs]=[]),qt.push(e=>ke=e),Yo=e=>{qt.length>1?qt.forEach(t=>t(e)):qt[0](e)};const Zt=e=>{Yo(e),e.scope.on()},Bt=()=>{ke&&ke.scope.off(),Yo(null)};function js(e){return e.vnode.shapeFlag&4}let mn=!1;function Xa(e,t=!1){mn=t;const{props:n,children:o}=e.vnode,r=js(e);La(e,n,r,t),Aa(e,o);const s=r?qa(e,t):void 0;return mn=!1,s}function qa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Vr(new Proxy(e.ctx,Sa));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?Ja(e):null;Zt(e),Wt();const s=wt(o,e,0,[e.props,r]);if(Ut(),Bt(),_r(s)){if(s.then(Bt,Bt),t)return s.then(i=>{As(e,i,t)}).catch(i=>{Dn(i,e,0)});e.asyncDep=s}else As(e,s,t)}else Ds(e,t)}function As(e,t,n){ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=Yr(t)),Ds(e,n)}let Bs;function Ds(e,t,n){const o=e.type;if(!e.render){if(!t&&Bs&&!o.render){const r=o.template||No(e).template;if(r){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=o,c=ve(ve({isCustomElement:s,delimiters:a},i),l);o.render=Bs(r,c)}}e.render=o.render||et}Zt(e),Wt(),$a(e),Ut(),Bt()}function Za(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ae(e,"get","$attrs"),t[n]}}))}function Ja(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Za(e)},slots:e.slots,emit:e.emit,expose:t}}function Qn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Yr(Vr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in dn)return dn[n](e)},has(t,n){return n in t||n in dn}}))}function Qa(e,t=!0){return ne(e)?e.displayName||e.name:e.name||t&&e.__name}function Ga(e){return ne(e)&&"__vccOpts"in e}const ie=(e,t)=>Zl(e,t,mn);function Rs(e,t,n){const o=arguments.length;return o===2?pe(t)&&!Q(t)?Xn(t)?q(e,null,[t]):q(e,t):q(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Xn(n)&&(n=[n]),q(e,t,n))}const ec=Symbol.for("v-scx"),tc=()=>zt(ec),nc="3.3.4",oc="http://www.w3.org/2000/svg",Dt=typeof document<"u"?document:null,Ns=Dt&&Dt.createElement("template"),rc={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?Dt.createElementNS(oc,e):Dt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Dt.createTextNode(e),createComment:e=>Dt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Dt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,s){const i=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{Ns.innerHTML=o?`<svg>${e}</svg>`:e;const a=Ns.content;if(o){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function sc(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function ic(e,t,n){const o=e.style,r=be(n);if(n&&!r){if(t&&!be(t))for(const s in t)n[s]==null&&Xo(o,s,"");for(const s in n)Xo(o,s,n[s])}else{const s=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=s)}}const Fs=/\s*!important$/;function Xo(e,t,n){if(Q(n))n.forEach(o=>Xo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=lc(e,t);Fs.test(n)?e.setProperty(Ke(o),n.replace(Fs,""),"important"):e[o]=n}}const Hs=["Webkit","Moz","ms"],qo={};function lc(e,t){const n=qo[t];if(n)return n;let o=Re(t);if(o!=="filter"&&o in e)return qo[t]=o;o=In(o);for(let r=0;r<Hs.length;r++){const s=Hs[r]+o;if(s in e)return qo[t]=s}return t}const Vs="http://www.w3.org/1999/xlink";function ac(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Vs,t.slice(6,t.length)):e.setAttributeNS(Vs,t,n);else{const s=gl(t);n==null||s&&!xr(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function cc(e,t,n,o,r,s,i){if(t==="innerHTML"||t==="textContent"){o&&i(o,r,s),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){e._value=n;const c=a==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=xr(n):n==null&&c==="string"?(n="",l=!0):c==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function Jt(e,t,n,o){e.addEventListener(t,n,o)}function uc(e,t,n,o){e.removeEventListener(t,n,o)}function fc(e,t,n,o,r=null){const s=e._vei||(e._vei={}),i=s[t];if(o&&i)i.value=o;else{const[a,l]=dc(t);if(o){const c=s[t]=gc(o,r);Jt(e,a,c,l)}else i&&(uc(e,a,i,l),s[t]=void 0)}}const Ws=/(?:Once|Passive|Capture)$/;function dc(e){let t;if(Ws.test(e)){t={};let o;for(;o=e.match(Ws);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ke(e.slice(2)),t]}let Zo=0;const pc=Promise.resolve(),hc=()=>Zo||(pc.then(()=>Zo=0),Zo=Date.now());function gc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Xe(mc(o,n.value),t,5,[o])};return n.value=e,n.attached=hc(),n}function mc(e,t){if(Q(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 Us=/^on[a-z]/,vc=(e,t,n,o,r=!1,s,i,a,l)=>{t==="class"?sc(e,o,r):t==="style"?ic(e,n,o):kn(t)?ao(t)||fc(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):_c(e,t,o,r))?cc(e,t,o,s,i,a,l):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),ac(e,t,o,r))};function _c(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Us.test(t)&&ne(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Us.test(t)&&be(n)?!1:t in e}function bc(e,t){const n=we(e);class o extends Jo{constructor(s){super(n,s,t)}}return o.def=n,o}const yc=typeof HTMLElement<"u"?HTMLElement:class{};class Jo extends yc{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=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,qe(()=>{this._connected||(oi(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);new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}).observe(this,{attributes:!0});const t=(o,r=!1)=>{const{props:s,styles:i}=o;let a;if(s&&!Q(s))for(const l in s){const c=s[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=go(this._props[l])),(a||(a=Object.create(null)))[Re(l)]=!0)}this._numberProps=a,r&&this._resolveProps(o),this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=Q(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(Re))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(s){this._setProp(r,s)}})}_setAttr(t){let n=this.getAttribute(t);const o=Re(t);this._numberProps&&this._numberProps[o]&&(n=go(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(Ke(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ke(t),n+""):n||this.removeAttribute(Ke(t))))}_update(){oi(this._createVNode(),this.shadowRoot)}_createVNode(){const t=q(this._def,ve({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(s,i)=>{this.dispatchEvent(new CustomEvent(s,{detail:i}))};n.emit=(s,...i)=>{o(s,i),Ke(s)!==s&&o(Ke(s),i)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Jo){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 St="transition",vn="animation",Qt=(e,{slots:t})=>Rs(da,wc(e),t);Qt.displayName="Transition";const Ks={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};Qt.props=ve({},os,Ks);const Rt=(e,t=[])=>{Q(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ys=e=>e?Q(e)?e.some(t=>t.length>1):e.length>1:!1;function wc(e){const t={};for(const P in e)P in Ks||(t[P]=e[P]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:S=`${n}-leave-to`}=e,y=xc(r),C=y&&y[0],j=y&&y[1],{onBeforeEnter:N,onEnter:L,onEnterCancelled:H,onLeave:h,onLeaveCancelled:M,onBeforeAppear:k=N,onAppear:T=L,onAppearCancelled:_=H}=t,v=(P,B,ee)=>{Nt(P,B?u:a),Nt(P,B?c:i),ee&&ee()},x=(P,B)=>{P._isLeaving=!1,Nt(P,d),Nt(P,S),Nt(P,m),B&&B()},D=P=>(B,ee)=>{const G=P?T:L,I=()=>v(B,P,ee);Rt(G,[B,I]),Xs(()=>{Nt(B,P?l:s),$t(B,P?u:a),Ys(G)||qs(B,o,C,I)})};return ve(t,{onBeforeEnter(P){Rt(N,[P]),$t(P,s),$t(P,i)},onBeforeAppear(P){Rt(k,[P]),$t(P,l),$t(P,c)},onEnter:D(!1),onAppear:D(!0),onLeave(P,B){P._isLeaving=!0;const ee=()=>x(P,B);$t(P,d),Sc(),$t(P,m),Xs(()=>{P._isLeaving&&(Nt(P,d),$t(P,S),Ys(h)||qs(P,o,j,ee))}),Rt(h,[P,ee])},onEnterCancelled(P){v(P,!1),Rt(H,[P])},onAppearCancelled(P){v(P,!0),Rt(_,[P])},onLeaveCancelled(P){x(P),Rt(M,[P])}})}function xc(e){if(e==null)return null;if(pe(e))return[Qo(e.enter),Qo(e.leave)];{const t=Qo(e);return[t,t]}}function Qo(e){return go(e)}function $t(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Nt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Xs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Cc=0;function qs(e,t,n,o){const r=e._endId=++Cc,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=kc(e,t);if(!i)return o();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,m),s()},m=S=>{S.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),e.addEventListener(c,m)}function kc(e,t){const n=window.getComputedStyle(e),o=y=>(n[y]||"").split(", "),r=o(`${St}Delay`),s=o(`${St}Duration`),i=Zs(r,s),a=o(`${vn}Delay`),l=o(`${vn}Duration`),c=Zs(a,l);let u=null,d=0,m=0;t===St?i>0&&(u=St,d=i,m=s.length):t===vn?c>0&&(u=vn,d=c,m=l.length):(d=Math.max(i,c),u=d>0?i>c?St:vn:null,m=u?u===St?s.length:l.length:0);const S=u===St&&/\b(transform|all)(,|$)/.test(o(`${St}Property`).toString());return{type:u,timeout:d,propCount:m,hasTransform:S}}function Zs(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Js(n)+Js(e[o])))}function Js(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Sc(){return document.body.offsetHeight}const Qs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Q(t)?n=>Pn(t,n):t};function $c(e){e.target.composing=!0}function Gs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Tc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=Qs(r);const s=o||r.props&&r.props.type==="number";Jt(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=ho(a)),e._assign(a)}),n&&Jt(e,"change",()=>{e.value=e.value.trim()}),t||(Jt(e,"compositionstart",$c),Jt(e,"compositionend",Gs),Jt(e,"change",Gs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},s){if(e._assign=Qs(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&ho(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},Ic=["ctrl","shift","alt","meta"],Pc={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)=>Ic.some(n=>e[`${n}Key`]&&!t.includes(n))},ot=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const s=Pc[t[r]];if(s&&s(n,t))return}return e(n,...o)},Ec={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ei=(e,t)=>n=>{if(!("key"in n))return;const o=Ke(n.key);if(t.some(r=>r===o||Ec[r]===o))return e(n)},ti={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):_n(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),_n(e,!0),o.enter(e)):o.leave(e,()=>{_n(e,!1)}):_n(e,t))},beforeUnmount(e,{value:t}){_n(e,t)}};function _n(e,t){e.style.display=t?e._vod:"none"}const Oc=ve({patchProp:vc},rc);let ni;function Mc(){return ni||(ni=Da(Oc))}const oi=(...e)=>{Mc().render(...e)},Lc={class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3"},zc={class:"flex justify-between items-end"},jc={class:"inline-block children-pointer-events-auto w-1/3"},Ac={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Bc={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},Dc={class:"inline-block z-20 relative"},ri=we({__name:"ReaderLayout",props:{idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{},spaceBottom:{}},setup(e){return(t,n)=>(A(),Y("div",{class:xe(["fixed inset-0 bg-black visible z-[9999999999] text-stone-100 font-sans text-base",{"cursor-none":t.idle}])},[Ce(t.$slots,"default"),X("div",{id:"controls",class:xe(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear inset-2 sm:inset-3 flex flex-col justify-between pb-4 sm:pb-2 md:pb-0",{"opacity-100 z-10":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}]),style:Me({paddingTop:`${t.spaceTop||0}px`,paddingBottom:t.spaceBottom?`${t.spaceBottom}px`:""})},[X("div",Lc,[Ce(t.$slots,"back"),Ce(t.$slots,"exit"),Ce(t.$slots,"chapter-nav")]),X("div",zc,[X("div",jc,[Ce(t.$slots,"page-nav")]),X("div",Ac,[Ce(t.$slots,"reset-zoom")]),X("div",Bc,[Ce(t.$slots,"entry"),X("div",Dc,[Ce(t.$slots,"settings")]),Ce(t.$slots,"full-screen"),Ce(t.$slots,"play")])]),X("div",{class:xe(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[Ce(t.$slots,"progress")],2)],6)],2))}}),Rc=Object.freeze(Object.defineProperty({__proto__:null,default:ri},Symbol.toStringTag,{value:"Module"}));var si;const Go=typeof window<"u",Nc=e=>typeof e=="function",Fc=e=>typeof e=="string",Tt=()=>{};Go&&((si=window==null?void 0:window.navigator)!=null&&si.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function bn(e){return typeof e=="function"?e():K(e)}function er(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}const ii=e=>e();function Hc(e,t={}){let n,o,r=Tt;const s=a=>{clearTimeout(a),r(),r=Tt};return a=>{const l=bn(e),c=bn(t.maxWait);return n&&s(n),l<=0||c!==void 0&&c<=0?(o&&(s(o),o=null),Promise.resolve(a())):new Promise((u,d)=>{r=t.rejectOnCancel?d:u,c&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,u(a())},c)),n=setTimeout(()=>{o&&s(o),o=null,u(a())},l)})}}function Vc(e,t=!0,n=!0,o=!1){let r=0,s,i=!0,a=Tt,l;const c=()=>{s&&(clearTimeout(s),s=void 0,a(),a=Tt)};return d=>{const m=bn(e),S=Date.now()-r,y=()=>l=d();if(c(),m<=0)return r=Date.now(),y();if(S>m&&(n||!i))r=Date.now(),y();else if(t)return new Promise((C,j)=>{a=o?j:C,s=setTimeout(()=>{r=Date.now(),i=!0,C(y()),c()},m-S)});return!n&&!s&&(s=setTimeout(()=>i=!0,m)),i=!1,l}}function Wc(e=ii){const t=Z(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...s)=>{t.value&&e(...s)};return{isActive:$o(t),pause:n,resume:o,eventFilter:r}}function Uc(e){return e}function tr(e){return kr()?(_l(e),!0):!1}function Qe(e,t=200,n={}){return er(Hc(t,n),e)}function li(e,t=200,n=!1,o=!0,r=!1){return er(Vc(t,n,o,r),e)}function ai(e,t=!0){Ls()?Fe(e):t?e():qe(e)}var ci=Object.getOwnPropertySymbols,Kc=Object.prototype.hasOwnProperty,Yc=Object.prototype.propertyIsEnumerable,Xc=(e,t)=>{var n={};for(var o in e)Kc.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&ci)for(var o of ci(e))t.indexOf(o)<0&&Yc.call(e,o)&&(n[o]=e[o]);return n};function qc(e,t,n={}){const o=n,{eventFilter:r=ii}=o,s=Xc(o,["eventFilter"]);return ue(e,er(r,t),s)}var Zc=Object.defineProperty,Jc=Object.defineProperties,Qc=Object.getOwnPropertyDescriptors,Gn=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,fi=Object.prototype.propertyIsEnumerable,di=(e,t,n)=>t in e?Zc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gc=(e,t)=>{for(var n in t||(t={}))ui.call(t,n)&&di(e,n,t[n]);if(Gn)for(var n of Gn(t))fi.call(t,n)&&di(e,n,t[n]);return e},eu=(e,t)=>Jc(e,Qc(t)),tu=(e,t)=>{var n={};for(var o in e)ui.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Gn)for(var o of Gn(e))t.indexOf(o)<0&&fi.call(e,o)&&(n[o]=e[o]);return n};function nu(e,t,n={}){const o=n,{eventFilter:r}=o,s=tu(o,["eventFilter"]),{eventFilter:i,pause:a,resume:l,isActive:c}=Wc(r);return{stop:qc(e,t,eu(Gc({},s),{eventFilter:i})),pause:a,resume:l,isActive:c}}function Ft(e){var t;const n=bn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ht=Go?window:void 0,ou=Go?window.document:void 0;function It(...e){let t,n,o,r;if(Fc(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=ht):[t,n,o,r]=e,!t)return Tt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},a=(u,d,m)=>(u.addEventListener(d,m,r),()=>u.removeEventListener(d,m,r)),l=ue(()=>Ft(t),u=>{i(),u&&s.push(...n.flatMap(d=>o.map(m=>a(u,d,m))))},{immediate:!0,flush:"post"}),c=()=>{l(),i()};return tr(c),c}function pi(e,t=!1){const n=Z(),o=()=>n.value=!!e();return o(),ai(o,t),n}const nr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},or="__vueuse_ssr_handlers__";nr[or]=nr[or]||{};const ru=nr[or];function su(e,t){return ru[e]||t}function iu(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var lu=Object.defineProperty,hi=Object.getOwnPropertySymbols,au=Object.prototype.hasOwnProperty,cu=Object.prototype.propertyIsEnumerable,gi=(e,t,n)=>t in e?lu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mi=(e,t)=>{for(var n in t||(t={}))au.call(t,n)&&gi(e,n,t[n]);if(hi)for(var n of hi(t))cu.call(t,n)&&gi(e,n,t[n]);return e};const uu={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function vi(e,t,n,o={}){var r;const{flush:s="pre",deep:i=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:d=ht,eventFilter:m,onError:S=T=>{console.error(T)}}=o,y=(u?Kl:Z)(t);if(!n)try{n=su("getDefaultStorage",()=>{var T;return(T=ht)==null?void 0:T.localStorage})()}catch(T){S(T)}if(!n)return y;const C=bn(t),j=iu(C),N=(r=o.serializer)!=null?r:uu[j],{pause:L,resume:H}=nu(y,()=>h(y.value),{flush:s,deep:i,eventFilter:m});return d&&a&&It(d,"storage",k),k(),y;function h(T){try{if(T==null)n.removeItem(e);else{const _=N.write(T),v=n.getItem(e);v!==_&&(n.setItem(e,_),d&&(d==null||d.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:v,newValue:_,storageArea:n}))))}}catch(_){S(_)}}function M(T){const _=T?T.newValue:n.getItem(e);if(_==null)return l&&C!==null&&n.setItem(e,N.write(C)),C;if(!T&&c){const v=N.read(_);return Nc(c)?c(v,C):j==="object"&&!Array.isArray(v)?mi(mi({},C),v):v}else return typeof _!="string"?_:N.read(_)}function k(T){if(!(T&&T.storageArea!==n)){if(T&&T.key==null){y.value=C;return}if(!(T&&T.key!==e)){L();try{y.value=M(T)}catch(_){S(_)}finally{T?qe(H):H()}}}}}function _i({document:e=ou}={}){if(!e)return Z("visible");const t=Z(e.visibilityState);return It(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var bi=Object.getOwnPropertySymbols,fu=Object.prototype.hasOwnProperty,du=Object.prototype.propertyIsEnumerable,pu=(e,t)=>{var n={};for(var o in e)fu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&bi)for(var o of bi(e))t.indexOf(o)<0&&du.call(e,o)&&(n[o]=e[o]);return n};function hu(e,t,n={}){const o=n,{window:r=ht}=o,s=pu(o,["window"]);let i;const a=pi(()=>r&&"ResizeObserver"in r),l=()=>{i&&(i.disconnect(),i=void 0)},c=ue(()=>Ft(e),d=>{l(),a.value&&r&&d&&(i=new ResizeObserver(t),i.observe(d,s))},{immediate:!0,flush:"post"}),u=()=>{l(),c()};return tr(u),{isSupported:a,stop:u}}function rr(e,t={width:0,height:0},n={}){const{window:o=ht,box:r="content-box"}=n,s=ie(()=>{var l,c;return(c=(l=Ft(e))==null?void 0:l.namespaceURI)==null?void 0:c.includes("svg")}),i=Z(t.width),a=Z(t.height);return hu(e,([l])=>{const c=r==="border-box"?l.borderBoxSize:r==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(o&&s.value){const u=Ft(e);if(u){const d=o.getComputedStyle(u);i.value=parseFloat(d.width),a.value=parseFloat(d.height)}}else if(c){const u=Array.isArray(c)?c:[c];i.value=u.reduce((d,{inlineSize:m})=>d+m,0),a.value=u.reduce((d,{blockSize:m})=>d+m,0)}else i.value=l.contentRect.width,a.value=l.contentRect.height},n),ue(()=>Ft(e),l=>{i.value=l?t.width:0,a.value=l?t.height:0}),{width:i,height:a}}function sr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:i=ht}=n,a=pi(()=>i&&"IntersectionObserver"in i);let l=Tt;const c=a.value?ue(()=>({el:Ft(e),root:Ft(o)}),({el:d,root:m})=>{if(l(),!d)return;const S=new IntersectionObserver(t,{root:m,rootMargin:r,threshold:s});S.observe(d),l=()=>{S.disconnect(),l=Tt}},{immediate:!0,flush:"post"}):Tt,u=()=>{l(),c()};return tr(u),{isSupported:a,stop:u}}function gu(e,t,n={}){const{window:o=ht}=n;return vi(e,t,o==null?void 0:o.localStorage,n)}var yi;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(yi||(yi={}));function ir(e,t,n={}){const{window:o=ht}=n;return vi(e,t,o==null?void 0:o.sessionStorage,n)}var mu=Object.defineProperty,wi=Object.getOwnPropertySymbols,vu=Object.prototype.hasOwnProperty,_u=Object.prototype.propertyIsEnumerable,xi=(e,t,n)=>t in e?mu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bu=(e,t)=>{for(var n in t||(t={}))vu.call(t,n)&&xi(e,n,t[n]);if(wi)for(var n of wi(t))_u.call(t,n)&&xi(e,n,t[n]);return e};bu({linear:Uc},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function yu(e={}){const{window:t=ht,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:s=!0}=e,i=Z(n),a=Z(o),l=()=>{t&&(s?(i.value=t.innerWidth,a.value=t.innerHeight):(i.value=t.document.documentElement.clientWidth,a.value=t.document.documentElement.clientHeight))};return l(),ai(l),It("resize",l,{passive:!0}),r&&It("orientationchange",l,{passive:!0}),{width:i,height:a}}const wu=we({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=Z(null),o=Z(0),r=Z([]),s=ie(()=>r.value[o.value]),i=li(a,500);Fe(()=>{const u=rr(n),d=Qe(()=>l({width:u.width.value,height:u.height.value}),50);d(),ue(u.width,d),ue(u.height,d)});function a(){o.value>=r.value.length-1?t("hide"):o.value++}function l(u){const d=c();r.value=d.map(({rect:m,text:S})=>{const y=m.top<u.height-m.bottom,C=m.left<u.width-m.right;return{text:S,style:{left:`${m.left}px`,top:`${m.top}px`,width:`${m.width}px`,height:`${m.height}px`},textStyle:{left:C?`${m.left-12}px`:void 0,right:C?void 0:`${u.width-m.left}px`,top:y?`${m.bottom+12}px`:`${m.top+20}px`,textAlign:y?void 0:"right",transform:y?void 0:"translateY(-50%)"}}}),o.value>=r.value.length&&(o.value=r.value.length-1)}function c(){var m;const u=(m=n.value)==null?void 0:m.parentElement;if(!u)return[];const d=[];return u.querySelectorAll("[data-tour]").forEach(S=>{var j;const y=(j=S.getAttribute("data-tour"))==null?void 0:j.trim();if(!(y!=null&&y.length))return;const C=S.getBoundingClientRect();d.push({rect:C,text:y})}),d}return(u,d)=>{var m,S;return A(),Y(ge,null,[X("div",{class:xe(["fixed inset-0 bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),X("div",{ref_key:"root",ref:n,class:"tour",onClick:d[0]||(d[0]=ot((...y)=>K(i)&&K(i)(...y),["stop"]))},[s.value?(A(),Y("div",{key:o.value,class:"tour__target",style:Me(s.value.style)},null,4)):Ee("",!0),(A(),Y("div",{key:o.value,class:"tour__text",style:Me((m=s.value)==null?void 0:m.textStyle)},Ye(((S=s.value)==null?void 0:S.text)??""),5))],512)],64)}}}),xu=`.tour{bottom:0;left:0;overflow:hidden;position:fixed;right:0;top:0;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}}
2
- `,he=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ci=he(wu,[["styles",[xu]]]),Cu=Object.freeze(Object.defineProperty({__proto__:null,default:Ci},Symbol.toStringTag,{value:"Module"})),ku=X("div",{class:"fixed inset-0 bg-black bg-opacity-90"},null,-1),ki=we({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=Z(null),r=Z([]);Fe(async()=>{const l=rr(o),c=Qe(()=>{s({width:l.width.value,height:l.height.value})},50);c(),ue(l.width,c),ue(l.height,c)});function s(l){var d;const c=(d=o.value)==null?void 0:d.parentElement;if(!c)return;const u=Array.from(c.querySelectorAll("#controls [title]"));u.length&&(r.value=i(u,l))}function i(l,c){const u=[],d=[];let m=0,S=0;const y=50,C=25;l.forEach(h=>{var v;const M=(v=h.getAttribute("title"))==null?void 0:v.trim(),k=h.getBoundingClientRect();if(!M||!k.height||!k.width)return;const T=Math.ceil((k.top-10)/y),_=Math.ceil((k.left-10)/y);d.push({isTour:!1,title:M,rect:k,fromX:_,toX:Math.max(_+1,Math.ceil((k.right+10)/y)),fromY:T,toY:Math.max(T+1,Math.ceil((k.bottom+10)/y))})}),d.forEach(h=>{for(let M=h.fromY;M<h.toY;M++){u[M]??(u[M]=[]);for(let k=h.fromX;k<h.toX;k++)u[M][k]=h;h.toY>m+1&&(m=h.toY-1),h.toX>S+1&&(S=h.toX-1)}});let j=S/2;d.forEach(h=>{h.isAlignRight=h.fromX>j});const N=(h,M)=>{u[M]??(u[M]=[]);const k=M>=h.toY;if(h.isTour)for(let T=h.fromX;T<h.toX;T++)delete u[h.fromY][T],h.fromY=M,h.toY=M+(k?1:-1),u[M][T]=h;else{const T=h.isAlignRight?h.fromX-3:h.fromX,_=T+3;h.helpItem={fromX:T,toX:_,fromY:M,toY:M+1,isTour:!0,isAlignRight:h.isAlignRight};for(let v=T;v<_;v++)u[M][v]=h.helpItem}},L=(h,M)=>{if(M>m||M<0)return!1;const k=M>=h.toY,T=u[M];if(!T)return N(h,M),!0;const _=T[h.fromX];if(_&&!_.isTour)return!1;if(_&&_.isTour)return L(_,k?M+1:M-1)?(N(h,M),!0):!1;if(!_){const v=h.isAlignRight?-1:1;return T[h.fromX+v]||T[h.fromX+v*2]?L(h,k?M+1:M-1):(N(h,M),!0)}return!1};d.forEach(h=>{if(!L(h,h.toY)){if(h.isAlignRight){const M=u[h.fromY]??[];if(!M.slice(h.fromX-3,h.fromX).filter(Boolean).length){const T=h.fromX-3,_=h.fromX;h.helpItem={isTour:!0,isAlignRight:!0,fromX:T,toX:_,fromY:h.fromY,toY:h.toY};for(let v=h.fromX-3;v<h.fromX;v++)M[v]=h.helpItem;return}}L(h,h.fromY-1)}});const H=[];return d.forEach(h=>{const{title:M,helpItem:k,rect:T,isAlignRight:_,fromX:v,fromY:x,toY:D}=h;if(!M||!k||!T)return;const P=k.fromY>=D,B=k.toY<=x;H.push({title:a(M),style:{top:P?`${T.bottom+(k.fromY-D)*y+C}px`:B?void 0:`${T.top+8}px`,bottom:B?`${c.height-T.top+(k.toY-x)*y+C}px`:void 0,left:_?void 0:`${T.left}px`,right:_?P?`${c.width-T.right}px`:`${c.width-T.right+T.width+C}px`:void 0},arrowStyle:{width:B||P?"2px":`${Math.abs(k.toX-v)*y+C-5}px`,height:B||P?`${(P?k.fromY-D:x-k.toY)*y+C}px`:"2px",top:P?`${T.bottom}px`:B?void 0:`${T.top+20}px`,bottom:B?`${c.height-T.top}px`:void 0,left:_?void 0:`${T.left+T.width/2}px`,right:_?P?`${c.width-T.right+T.width/2}px`:`${c.width-T.right+T.width}px`:void 0}})}),H}function a(l){return n.touchDevice?l.split("(")[0].trim():l}return(l,c)=>(A(),Y(ge,null,[ku,X("div",{ref_key:"root",ref:o,class:"fixed inset-0 z-20 overscroll-contain select-none",onClick:c[0]||(c[0]=ot(u=>t("hide"),["stop"]))},[(A(!0),Y(ge,null,fn(r.value,u=>(A(),Y(ge,{key:u.title},[X("div",{class:"absolute",style:Me(u.style)},Ye(u.title),5),X("div",{class:"absolute bg-stone-300 rounded-lg",style:Me(u.arrowStyle)},null,4)],64))),128))],512)],64))}}),Su=Object.freeze(Object.defineProperty({__proto__:null,default:ki},Symbol.toStringTag,{value:"Module"})),$u={},Tu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Iu=[X("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[X("circle",{cx:"14",cy:"14",r:"12"}),X("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function Pu(e,t){return A(),Y("svg",Tu,Iu)}const Si=he($u,[["render",Pu]]),Eu=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"})),Ou={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"},Mu={class:"block w-4 h-4"},Lu={class:"w-12"},$i=we({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=Si;return t.zoom!==1?(A(),Y("button",Ou,[X("div",Mu,[q(o)]),X("div",Lu,Ye(Math.ceil(t.zoom*100))+"%",1)])):Ee("",!0)}}}),zu=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"})),ju={},Au={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Bu=[X("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function Du(e,t){return A(),Y("svg",Au,Bu)}const lr=he(ju,[["render",Du]]),Ru=Object.freeze(Object.defineProperty({__proto__:null,default:lr},Symbol.toStringTag,{value:"Module"})),Nu={},Fu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Hu=[X("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),X("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function Vu(e,t){return A(),Y("svg",Fu,Hu)}const ar=he(Nu,[["render",Vu]]),Wu=Object.freeze(Object.defineProperty({__proto__:null,default:ar},Symbol.toStringTag,{value:"Module"}));function Uu({touchDevice:e}){const t=Z(!1);let n=0;return Kn("busy:touchDevice",e),Kn("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function cr(){const e=zt("busy:touchDevice"),t=zt("setBusyState");let n=!1;return He(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const Ku=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,s=.65;const i=setInterval(l,20);a();function a(){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 l(){const c=+n||50;r<=c?(r++,s-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${s}`):(o.remove(),clearInterval(i))}},Gt={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>Ku(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},Yu={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"},eo=we({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=cr();let r=!1;function s(){r||(r=!0,o(!0,{desktopOnly:!0}))}function i(){r&&(r=!1,o(!1,{desktopOnly:!0}))}function a(l){n.disabled?l.preventDefault():t("click")}return(l,c)=>dt((A(),_e(Ca(l.href?"a":"button"),Jn(l.href?{href:l.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":l.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!l.disabled,"bg-black bg-opacity-50":!l.transparent}],onClick:ot(a,["stop"]),onMouseenter:s,onMouseleave:i}),{default:oe(()=>[X("div",Yu,[Ce(l.$slots,"default")])]),_:3},16,["class","onClick"])),[[K(Gt),l.disabled?0:15]])}}),Xu=Object.freeze(Object.defineProperty({__proto__:null,default:eo},Symbol.toStringTag,{value:"Module"})),qu={},Zu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ju=[X("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)];function Qu(e,t){return A(),Y("svg",Zu,Ju)}const Ti=he(qu,[["render",Qu]]),Gu=Object.freeze(Object.defineProperty({__proto__:null,default:Ti},Symbol.toStringTag,{value:"Module"}));class ef{constructor(){rl(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 tf(){const e=new ef;return He(()=>e.dispose()),Kn("keyController",e),e}function to(e){const t=zt("keyController");Fe(()=>t.addListener(e)),He(()=>t.removeListener(e))}const nf={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},of={class:"text-xl font-medium text-ellipsis overflow-hidden whitespace-nowrap px-3"},rf={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},Ii=we({__name:"BottomSheet",props:{modelValue:{type:Boolean},name:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;to({onKeyDown:r});const o=cr();ue(()=>n.modelValue,s=>o(s));function r(s){n.modelValue&&s.key==="Escape"&&(t("update:modelValue",!1),s.preventDefault())}return(s,i)=>{const a=Ti,l=eo;return A(),Y("div",{class:xe(["fixed inset-0 flex flex-col items-center justify-end select-none",{"!pointer-events-none":!n.modelValue}]),onClick:i[2]||(i[2]=()=>t("update:modelValue",!1))},[q(Qt,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:oe(()=>[n.modelValue?(A(),Y("div",{key:0,class:"inline-flex flex-col h-[27rem] w-full sm:w-[32rem] max-h-[80vh] bg-stone-800 bg-opacity-90 backdrop-blur-md rounded-t-xl max-w-full overflow-hidden duration-200",onClick:i[1]||(i[1]=ot(()=>{},["stop"]))},[X("div",nf,[q(l,{transparent:"",onClick:i[0]||(i[0]=()=>t("update:modelValue",!1))},{default:oe(()=>[q(a)]),_:1}),X("div",of,Ye(s.name),1),Ce(s.$slots,"actions")]),X("div",rf,[Ce(s.$slots,"default")])])):Ee("",!0)]),_:3})],2)}}}),sf=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"})),lf=["min","max","step"],af={class:"flex-shrink-0"},Pi=he(we({__name:"InputPercentage",props:{modelValue:{},min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ie({get(){return n.modelValue},set(r){t("update:modelValue",+r)}});return(r,s)=>(A(),Y("div",{class:xe(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:Me({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[dt(X("input",{"onUpdate:modelValue":s[0]||(s[0]=i=>o.value=i),type:"range",min:r.min,max:r.max,step:r.step??1,class:"flex-grow"},null,8,lf),[[Tc,o.value]]),X("p",af,[Ce(r.$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}
3
- `]]]),cf=Object.freeze(Object.defineProperty({__proto__:null,default:Pi},Symbol.toStringTag,{value:"Module"})),uf={class:"flex items-center mb-8 last:mb-0"},ff={class:"flex-grow overflow-hidden"},Ei=we({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(A(),Y("div",uf,[X("div",{class:xe(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Ye(t.label),3),X("div",ff,[Ce(t.$slots,"default")])]))}}),df=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),pf=["onClick","onKeyup"],Oi=we({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Z(null),r=Z({width:"",left:""});Fe(()=>{let i=!1;ue(()=>n.modelValue,a=>{var c;const l=(c=o.value)==null?void 0:c.children[a+1];l&&(r.value={width:l.offsetWidth+"px",left:l.offsetLeft+"px"},l.scrollIntoView({behavior:i?"smooth":"auto",block:"center",inline:"center"}),i=!0)},{immediate:!0})});function s(i){t("update:modelValue",i)}return(i,a)=>(A(),Y("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[X("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Me(r.value)},null,4),(A(!0),Y(ge,null,fn(n.items,(l,c)=>dt((A(),Y("div",{key:c,tabindex:"0",class:xe(["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.modelValue,"text-stone-400":c!=n.modelValue}]),onClick:()=>s(c),onKeyup:[ei(()=>s(c),["enter"]),ei(()=>s(c),["space"])]},[Ct(Ye(l),1)],42,pf)),[[K(Gt),30]])),128))],512))}}),hf=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),gf={},mf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},vf=[X("path",{fill:"currentColor",d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"},null,-1)];function _f(e,t){return A(),Y("svg",mf,vf)}const Mi=he(gf,[["render",_f]]),bf=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"})),yf={},wf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},xf=[X("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),X("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Cf(e,t){return A(),Y("svg",wf,xf)}const Li=he(yf,[["render",Cf]]),kf=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"}));function Sf(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var rt=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(rt||{}),gt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(gt||{});const $f=.25,Tf=5,If=.25,yn=.25,wn=5,Pf=.05,Ef=0,Of=4;function Mf(e){var N,L,H,h,M;const{titleName:t,isWebtoon:n}=e,r=`tkr:${t?Sf(t):location.pathname}`,s=gu(r,{},{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(k){const T={};return k?(k.style!==void 0&&Object.values(gt).includes(k.style)&&(T.style=k.style),k.direction!==void 0&&Object.values(rt).includes(k.direction)&&(T.direction=k.direction),k.gap!==void 0&&k.gap>=Ef&&k.gap<=Of&&(T.gap=k.gap),k.speed!==void 0&&k.speed>=yn&&k.speed<=wn&&(T.speed=k.speed),k.zoom!==void 0&&k.zoom>=yn&&k.zoom<=wn&&(T.zoom=k.zoom),Object.keys(T).length?T:void 0):T}}),i=k=>{if(!s.value){s.value=k;return}const T={...s.value};Object.entries(k).forEach(([_,v])=>{v===void 0?delete T[_]:T[_]=v}),Object.keys(T).length?s.value=T:(s.value=void 0,localStorage.removeItem(r))},a=Z(((N=s.value)==null?void 0:N.style)??gt.longStrip),l=Z(((L=s.value)==null?void 0:L.direction)??rt.vertical),c=Z((H=s.value)==null?void 0:H.gap),u=Z(((h=s.value)==null?void 0:h.speed)??1),d=Z(((M=s.value)==null?void 0:M.zoom)??1),m=ie({get(){return n.value?gt.longStrip:a.value??gt.longStrip},set:k=>{a.value=k,i({style:k===gt.longStrip?void 0:k}),k!==gt.longStrip&&l.value===rt.vertical&&(S.value=rt.rtl)}}),S=ie({get:()=>n.value?rt.vertical:l.value,set:k=>{l.value=k,i({direction:k===rt.vertical?void 0:k})}}),y=ie({get:()=>c.value??(n.value?0:1),set(k){c.value=k,i({gap:k})}}),C=ie({get:()=>u.value,set(k){u.value=k,i({speed:k===1?void 0:k})}}),j=ie({get:()=>d.value,set(k){d.value=k,i({zoom:k===1?void 0:k})}});return{direction:S,style:m,gap:y,speed:C,zoom:j,isLongStrip:ie(()=>m.value===gt.longStrip),isDouble:ie(()=>m.value===gt.double),isRTL:ie(()=>S.value===rt.rtl),isVertical:ie(()=>S.value===rt.vertical)}}const zi=we({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=Z(!1);to({onKeyUp:s=>{s.key==="s"&&!s.metaKey&&!s.ctrlKey&&(n.value=!n.value)}});function o(s){t("update:zoom",Math.round(s)/100)}function r(){n.value=!1,t("help")}return(s,i)=>{const a=Li,l=eo,c=Mi,u=Oi,d=Ei,m=Pi,S=Ii;return A(),Y(ge,null,[q(l,{title:"Reader settings (S)",disabled:s.disabled,onClick:i[0]||(i[0]=()=>n.value=!0)},{default:oe(()=>[q(a)]),_:1},8,["disabled"]),q(S,{modelValue:n.value,"onUpdate:modelValue":i[5]||(i[5]=y=>n.value=y),name:s.name},{actions:oe(()=>[q(l,{transparent:"",onClick:r},{default:oe(()=>[q(c)]),_:1})]),default:oe(()=>[q(d,{label:"Style"},{default:oe(()=>[q(u,{"model-value":s.readerStyle,items:s.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":i[1]||(i[1]=y=>t("update:reader-style",y))},null,8,["model-value","items"])]),_:1}),q(d,{label:"Direction"},{default:oe(()=>[q(u,{"model-value":s.direction,items:s.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":i[2]||(i[2]=y=>t("update:direction",y))},null,8,["model-value","items"])]),_:1}),q(d,{label:"Gap"},{default:oe(()=>[q(u,{"model-value":s.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":i[3]||(i[3]=y=>t("update:gap",y))},null,8,["model-value"])]),_:1}),q(d,{label:"Speed"},{default:oe(()=>[q(m,{"model-value":s.speed,min:K($f),max:K(Tf),step:K(If),suffix:"x","onUpdate:modelValue":i[4]||(i[4]=y=>t("update:speed",y))},{suffix:oe(()=>[Ct(Ye(s.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),q(d,{label:"Zoom"},{default:oe(()=>[q(m,{"model-value":Math.ceil(s.zoom*100),min:K(yn)*100,max:K(wn)*100,step:K(Pf)*100,"onUpdate:modelValue":o},{suffix:oe(()=>[Ct(Ye(Math.ceil(s.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),Lf=Object.freeze(Object.defineProperty({__proto__:null,default:zi},Symbol.toStringTag,{value:"Module"})),zf={},jf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Af=[X("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function Bf(e,t){return A(),Y("svg",jf,Af)}const ji=he(zf,[["render",Bf]]),Df=Object.freeze(Object.defineProperty({__proto__:null,default:ji},Symbol.toStringTag,{value:"Module"})),Rf={},Nf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Ff=[X("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function Hf(e,t){return A(),Y("svg",Nf,Ff)}const Ai=he(Rf,[["render",Hf]]),Vf=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),Wf={},Uf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Kf=[X("path",{d:"M18.652 3C18.0277 3 17.5216 3.5061 17.5216 4.13042V5.26083H16.3912C15.7669 5.26083 15.2608 5.76693 15.2608 6.39125C15.2608 7.01556 15.7669 7.52166 16.3912 7.52166H17.5216V8.65208C17.5216 9.27639 18.0277 9.78249 18.652 9.78249C19.2764 9.78249 19.7825 9.27639 19.7825 8.65208V7.52166H20.9129C21.5372 7.52166 22.0433 7.01556 22.0433 6.39125C22.0433 5.76693 21.5372 5.26083 20.9129 5.26083H19.7825V4.13042C19.7825 3.5061 19.2764 3 18.652 3Z",fill:"currentColor"},null,-1),X("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.0183 5.92413L8.24658 7.18954C7.65717 7.34584 7.24677 7.87926 7.24677 8.48905V18.0483C7.24677 18.4887 7.72075 18.7663 8.10482 18.5509L11.4937 16.65C11.7272 16.519 12.012 16.519 12.2454 16.65L18.6384 20.2363C19.1505 20.5235 19.7825 20.1534 19.7825 19.5663L19.7825 12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 6.23454 13.0067 6.07783 13.0183 5.92413Z",fill:"currentColor"},null,-1),X("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.49315 4.13042C4.64457 4.13042 3.95667 4.81833 3.95667 5.6669V19.5663C3.95667 20.1535 4.58867 20.5236 5.10077 20.2363L11.4937 16.6501C11.7272 16.5191 12.012 16.5191 12.2454 16.6501L18.6384 20.2363C19.1505 20.5236 19.7825 20.1535 19.7825 19.5663V12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 5.26083 13.3507 4.13042 13.3507 4.13042H5.49315Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function Yf(e,t){return A(),Y("svg",Uf,Kf)}const Bi=he(Wf,[["render",Yf]]),Xf=Object.freeze(Object.defineProperty({__proto__:null,default:Bi},Symbol.toStringTag,{value:"Module"})),qf={},Zf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Jf=[X("path",{d:"M17.1026 8.89862C17.1114 8.90798 17.1203 8.91723 17.1295 8.92636C17.5709 9.36781 18.2866 9.36781 18.7281 8.92636L22.7247 4.92974C23.1662 4.48828 23.1662 3.77255 22.7247 3.33109C22.2833 2.88964 21.5675 2.88964 21.1261 3.33109L17.9292 6.52793L17.1286 5.72729C16.6871 5.28583 15.9714 5.28583 15.5299 5.72729C15.0885 6.16874 15.0885 6.88448 15.5299 7.32593L17.1026 8.89862Z",fill:"currentColor"},null,-1),X("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9564 5.92413L8.18463 7.18954C7.59522 7.34584 7.18481 7.87926 7.18481 8.48905V18.0483C7.18481 18.4887 7.65879 18.7663 8.04287 18.5509L11.4318 16.65C11.6652 16.519 11.95 16.519 12.1835 16.65L18.5764 20.2363C19.0885 20.5235 19.7205 20.1534 19.7205 19.5663L19.7205 12.0433H18.5901C15.4686 12.0433 12.938 9.5128 12.938 6.39125C12.938 6.23454 12.9448 6.07783 12.9564 5.92413Z",fill:"currentColor"},null,-1),X("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.4312 4.13042C4.58262 4.13042 3.89471 4.81833 3.89471 5.6669V19.5663C3.89471 20.1535 4.52672 20.5236 5.03882 20.2363L11.4318 16.6501C11.6652 16.5191 11.95 16.5191 12.1835 16.6501L18.5764 20.2363C19.0885 20.5236 19.7205 20.1535 19.7205 19.5663V5.6669C19.7205 5.6646 19.7205 5.66229 19.7205 5.65998V12.0433H18.5901C15.4685 12.0433 12.938 9.5128 12.938 6.39125C12.938 5.26083 13.2887 4.13042 13.2887 4.13042H5.4312Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function Qf(e,t){return A(),Y("svg",Zf,Jf)}const Di=he(qf,[["render",Qf]]),Gf=Object.freeze(Object.defineProperty({__proto__:null,default:Di},Symbol.toStringTag,{value:"Module"})),ed={},td={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},nd=[X("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function od(e,t){return A(),Y("svg",td,nd)}const Ri=he(ed,[["render",od]]),rd=Object.freeze(Object.defineProperty({__proto__:null,default:Ri},Symbol.toStringTag,{value:"Module"})),sd=["aria-hidden"],id=["onClick"],ld=["onClick"],ad={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"},cd={class:"whitespace-nowrap"},ur=we({__name:"ButtonDropdown",props:{modelValue:{},label:{},title:{},items:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Z(null),r=Z(!1),s=Z(null),i=Z(!1),a=Z(!1),l=Z(!1);to({onKeyDown:S});const c=cr();function u(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(d(),qe(()=>setTimeout(()=>{var h,M;(M=(h=s.value)==null?void 0:h.children[n.modelValue])==null||M.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),C(o.value)):setTimeout(j,250)}function d(){const h=o.value;if(h){const M=h.getBoundingClientRect(),k=M.x+M.width/2;i.value=M.y>window.innerHeight/2,a.value=k<window.innerWidth/3,l.value=k>window.innerWidth/3*2}}function m(h){h!=n.modelValue&&t("update:modelValue",h),u()}function S(h){r.value&&h.key==="Escape"&&(u(),h.preventDefault())}let y=[];function C(h){const M=window.getComputedStyle(h).zIndex,k=h.style.zIndex;(!M||!(+M>0))&&((!h.parentElement||h.parentElement.childElementCount>1)&&(h.style.zIndex="1",y.push({el:h,zIndex:k})),h.parentElement&&C(h.parentElement))}function j(){y.forEach(({el:h,zIndex:M})=>{h.style.zIndex=M??""}),y=[]}let N=!1;function L(){N||(N=!0,c(!0,{desktopOnly:!0}))}function H(){N&&(N=!1,c(!1,{desktopOnly:!0}))}return(h,M)=>{const k=Ri;return A(),Y("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(A(),Y("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:u})):Ee("",!0),h.items.length?(A(),_e(Qt,{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:oe(()=>[r.value?(A(),Y("ul",{key:0,ref_key:"list",ref:s,"aria-hidden":!r.value,class:xe(["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":i.value,"origin-top top-full translate-y-1.5":!i.value,"left-1/2 -ml-20 text-center":!a.value&&!l.value,"right-0 text-right":l.value}]),onWheelPassive:M[0]||(M[0]=ot(()=>{},["stop"]))},[(A(!0),Y(ge,null,fn(h.items,(T,_)=>dt((A(),Y("li",{key:_,tabindex:"-1",class:xe(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":_===h.modelValue}]),onClick:()=>m(_)},[X("div",{class:xe(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":_>0}])},[Ce(h.$slots,"item",{item:T},()=>[Ct(Ye(T),1)])],2)],10,id)),[[K(Gt),30]])),128))],42,sd)):Ee("",!0)]),_:3})):Ee("",!0),dt((A(),Y("button",Jn({type:"button",tabindex:"-1",class:["w-full h-10 max-h-full bg-transparent rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":h.disabled}]},h.title?{title:h.title}:{},{onClick:ot(u,["stop"]),onMouseenter:L,onMouseleave:H}),[X("div",ad,[X("span",cd,Ye(h.label),1),h.items.length?(A(),Y("span",{key:0,class:xe(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":i.value}]),"aria-hidden":"true"},[q(k)],2)):Ee("",!0)])],16,ld)),[[K(Gt),30]])],512)}}}),ud=Object.freeze(Object.defineProperty({__proto__:null,default:ur},Symbol.toStringTag,{value:"Module"})),Ni=we({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ie(()=>Math.floor(n.modelValue)),r=ie(()=>n.pages.map(c=>c.map(({index:u})=>`${u+1}`).join("-"))),s=ie(()=>{const c=o.value,u=n.pages.findIndex(d=>d.some(({index:m})=>m===c));return u===-1?n.pages.length-1:u}),i=ie(()=>n.pages.length?`${r.value[s.value]}/${n.totalImgs}`:"--");function a(c){const u=n.pages[c][0].index;l(u)}function l(c){t("update:modelValue",c)}return(c,u)=>{const d=ur;return A(),_e(d,{"model-value":s.value,label:i.value,title:"Current page",items:r.value,disabled:c.disabled,"onUpdate:modelValue":a},null,8,["model-value","label","items","disabled"])}}}),fd=Object.freeze(Object.defineProperty({__proto__:null,default:Ni},Symbol.toStringTag,{value:"Module"})),dd={},pd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},hd=[X("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function gd(e,t){return A(),Y("svg",pd,hd)}const Fi=he(dd,[["render",gd]]),md=Object.freeze(Object.defineProperty({__proto__:null,default:Fi},Symbol.toStringTag,{value:"Module"})),vd={},_d={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},bd=[X("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function yd(e,t){return A(),Y("svg",_d,bd)}const Hi=he(vd,[["render",yd]]),wd=Object.freeze(Object.defineProperty({__proto__:null,default:Hi},Symbol.toStringTag,{value:"Module"})),xd={},Cd={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},kd=[X("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function Sd(e,t){return A(),Y("svg",Cd,kd)}const Vi=he(xd,[["render",Sd]]),$d=Object.freeze(Object.defineProperty({__proto__:null,default:Vi},Symbol.toStringTag,{value:"Module"})),Td={},Id={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Pd=[X("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function Ed(e,t){return A(),Y("svg",Id,Pd)}const Wi=he(Td,[["render",Ed]]),Od=Object.freeze(Object.defineProperty({__proto__:null,default:Wi},Symbol.toStringTag,{value:"Module"})),Ui=he(we({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=Z(0);return ue(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const s=lr,i=ar;return n.value?(A(),Y("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(A(),_e(s,{key:0})):(A(),_e(i,{key:1}))])):Ee("",!0)}}}),[["styles",[`.animate-pause-fade{animation:pause-fade .4s linear forwards;transform-origin:center}@keyframes pause-fade{0%{opacity:0;transform:scale(.3)}10%{opacity:1;transform:scale(.35)}55%{opacity:1;transform:scale(.65)}to{opacity:0;transform:scale(1)}}
4
- `]]]),Md=Object.freeze(Object.defineProperty({__proto__:null,default:Ui},Symbol.toStringTag,{value:"Module"})),Ld={},zd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},jd=[X("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function Ad(e,t){return A(),Y("svg",zd,jd)}const Ki=he(Ld,[["render",Ad]]),Bd=Object.freeze(Object.defineProperty({__proto__:null,default:Ki},Symbol.toStringTag,{value:"Module"})),Yi=we({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=ir("tk:dir",!0),o=Qe(()=>n.value=!1,1250);return ue(()=>t.direction,()=>{n.value=!0,o()}),Fe(()=>{o();let r;const s=_i();ue(s,i=>{i!=="visible"?r=Date.now():Date.now()-r>3e4&&(n.value=!0,o())})}),(r,s)=>{const i=Ki;return A(),_e(Qt,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:oe(()=>[K(n)?(A(),Y("div",{key:0,class:xe(["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":r.direction===K(rt).vertical,"rotate-180":r.direction===K(rt).rtl}])},[q(i)],2)):Ee("",!0)]),_:1})}}}),Dd=Object.freeze(Object.defineProperty({__proto__:null,default:Yi},Symbol.toStringTag,{value:"Module"})),no=[];function Rd(e){no.push(e),He(()=>{const t=no.indexOf(e);t!==-1&&no.splice(t,1)})}function Nd(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,s=t*o;no.forEach(i=>i(r,s))}const Fd=["onClick"],Xi=we({__name:"ZoomWrapper",props:{modelValue:{},pageIndex:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},emits:["update:modelValue","dragEnd","click"],setup(e,{emit:t}){const n=e,o=Z(null),r=Z(Math.min(wn,Math.max(yn,n.modelValue))),s=Z(!1),i=Z(!1),a=Z(!1),l=Z(!1);ue(()=>n.modelValue,I=>G(I)),Fe(()=>{n.touchDevice?(It(window,"touchstart",L),Rd(D)):(It(o,"mousedown",y),ue(()=>n.horizontal,I=>{I?window.addEventListener("wheel",k,{passive:!1}):window.removeEventListener("wheel",k)},{immediate:!0}))}),He(()=>{window.removeEventListener("wheel",k)});let c;to({onKeyDown:I=>{var fe;if(n.busy)return;(fe=o.value)==null||fe.focus();const F=I.key==="Meta",U=I.key==="Control";if(F||U)s.value=!0,window.addEventListener("wheel",d,{passive:!1}),c=()=>{s.value=!1,window.removeEventListener("wheel",d),window.removeEventListener("blur",c),c=void 0},window.addEventListener("blur",c);else if(I.ctrlKey||I.metaKey)switch(I.key){case"0":G(1);break;case"-":G(r.value-.2),I.preventDefault();break;case"=":case"+":G(r.value+.2),I.preventDefault();break}},onKeyUp:()=>{s.value==!0&&(c==null||c())}});function u(I){a.value!==I&&(a.value=I,I?n.playController.pause():(t("dragEnd"),n.playController.resume()))}function d(I){I.stopPropagation(),I.preventDefault();const F=Math.ceil((r.value+I.deltaY*-.01)*100)/100;G(F,{x:I.clientX,y:I.clientY})}let m={x:0,y:0},S={x:0,y:0};function y(I){I.button===0&&(m={x:I.clientX,y:I.clientY},S={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",C),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",C),setTimeout(()=>u(!1))},{once:!0}),I.preventDefault(),I.stopPropagation())}function C(I){u(!0);const F=I.clientX-m.x,U=I.clientY-m.y,fe=o.value;fe.scrollLeft=S.x-F,fe.scrollTop=S.y-U}let j=!1,N={distance:0,zoom:r.value,x:0,y:0};function L(I){n.busy||(j=I.touches.length===2,j&&(u(!0),I.stopPropagation(),I.preventDefault(),N={distance:T(I),zoom:r.value,x:(I.touches[0].clientX+I.touches[1].clientX)/2,y:(I.touches[0].clientY+I.touches[1].clientY)/2}),(j||n.playController.isPlaying&&n.longStrip)&&(window.addEventListener("touchmove",h),window.addEventListener("touchend",H,{once:!0})))}function H(){if(window.removeEventListener("touchmove",h),j){u(!1),j=!1;return}if(!a.value)return;const I=Qe(()=>{u(!1),o.value.removeEventListener("scroll",U)},100),F=setTimeout(I,100);o.value.addEventListener("scroll",U);function U(){clearTimeout(F),I()}}function h(I){if(u(!0),j){I.stopPropagation(),I.preventDefault();const U=T(I)/N.distance;G(Math.ceil(U*N.zoom*100)/100,N)}}const M=Qe(()=>i.value=!1,100);function k(I){n.busy||(i.value||(i.value=!0),M(),I.deltaY&&(!s.value&&o.value&&(o.value.scrollLeft+=I.deltaY*(n.rtl?-1:1)),I.preventDefault()))}function T(I){return Math.hypot(I.touches[0].clientX-I.touches[1].clientX,I.touches[0].clientY-I.touches[1].clientY)}let _=0,v;function x(I){if(!a.value){if(!n.touchDevice){t("click",I);return}_++,v&&clearTimeout(v),_===2&&D(I.clientX,I.clientY),v=setTimeout(()=>{!a.value&&_===1&&t("click",I),v=void 0,_=0},300)}}function D(I,F){if(!_)return;_=0;const U=r.value===1?2:1;G(U,{x:I,y:F})}let P;const B=Qe(()=>{l.value=!1,P=void 0},150);function ee(){if(!l.value){const I=o.value;if(!I)return;const F=I.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;F&&(P={el:F,rect:F.getBoundingClientRect()},l.value=!0)}if(P)return B(),P}async function G(I,F){const U=o.value,fe=Math.min(wn,Math.max(yn,I));if(!U||r.value===fe)return;const $e=ee();if(!$e)return;const Ve=(F==null?void 0:F.x)??U.clientWidth/2,Ie=(F==null?void 0:F.y)??U.clientHeight/2;r.value=fe,t("update:modelValue",fe),await qe();const{el:ct,rect:mt}=$e,en=ct.offsetWidth/mt.width,Oe=ct.offsetHeight/mt.height;U.scrollLeft=ct.offsetLeft-mt.left*en+Ve*(en-1),U.scrollTop=ct.offsetTop-mt.top*Oe+Ie*(Oe-1)}return(I,F)=>(A(),Y("div",{ref_key:"root",ref:o,tabindex:"0",class:xe(["w-full h-full overflow-auto overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":a.value||i.value||l.value,"cursor-grabbing":a.value,"overflow-hidden":l.value}]),style:Me({"font-size":`${r.value}px`}),onClick:ot(x,["stop"])},[Ce(I.$slots,"default")],14,Fd))}}),Hd=Object.freeze(Object.defineProperty({__proto__:null,default:Xi},Symbol.toStringTag,{value:"Module"})),Vd=`.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}}
5
- `,Wd={},Ud={class:"loading-indicator"};function Kd(e,t){return A(),Y("div",Ud)}const fr=he(Wd,[["render",Kd],["styles",[Vd]]]),Yd=Object.freeze(Object.defineProperty({__proto__:null,default:fr},Symbol.toStringTag,{value:"Module"})),qi=we({__name:"LoadingPlaceholder",setup(e){const t=Z(null),n=Z(!1);return Fe(async()=>{await qe(),sr(t,o=>{n.value=o.some(r=>r.isIntersecting)})}),(o,r)=>{const s=fr;return A(),Y("div",{ref_key:"root",ref:t,class:"flex justify-center items-center"},[n.value?(A(),_e(s,{key:0})):Ee("",!0)],512)}}}),Xd=Object.freeze(Object.defineProperty({__proto__:null,default:qi},Symbol.toStringTag,{value:"Module"})),qd=["data-index"],Zd=["src"],Jd=["src"],Qd=["data-index"],Zi=he(we({__name:"ReaderBody",props:{pageIndex:{},direction:{},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isRTL:{type:Boolean},pages:{},totalImgs:{},gap:{},zoom:{},spaceTop:{},spaceBottom:{},touchDevice:{type:Boolean},playController:{},busy:{type:Boolean},idle:{type:Boolean}},emits:["update:zoom","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=Z(null),r=ie(()=>{var y;return(y=o.value)==null?void 0:y.$el}),s=Z(null),i=rr(r),a=ie(()=>{const{width:y,height:C}=i,j=n.isLongStrip?n.isVertical?y.value:C.value:Math.min(y.value,C.value);return Math.min(4,Math.max(1,Math.ceil(j/400-1)))*n.gap}),l=Z(n.pageIndex),c=Z(n.pageIndex),u=Qe(()=>{const y=n.pageIndex;l.value>y&&(l.value=y),c.value<y&&(c.value=y)},50);ue(()=>n.pageIndex,u);const d=ie(()=>{const{width:{value:y},height:{value:C}}=i;return n.pages.map(j=>{var v;const N=j.some(x=>{var D;return(D=x.img)==null?void 0:D.isLoading}),L=j.map(x=>x.index),H={isLoading:N,indexes:L};if(N||L[L.length-1]<l.value-1||L[0]>c.value+3)return H;const h=j.map(({img:x})=>x).filter(Boolean);if(!h.length||(H.srcs=h.map(({src:x})=>x),h.every(x=>x.hasError)))return H;const k=(v=h.find(x=>!x.hasError))==null?void 0:v.size,T=h.reduce((x,D)=>{var P;return x+(((P=D.size)==null?void 0:P.width)??k.width)},0),_=h.reduce((x,D)=>{var P;return x+(((P=D.size)==null?void 0:P.height)??k.height)},0)/h.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&y/T<C/_?(H.width=Math.min(y,T),H.height=_*H.width/T):H.height=Math.min(C,_),H})}),m=ie(()=>{const y=n.isVertical?"width":"height";return d.value.map(C=>C[y]).filter(Boolean).sort((C,j)=>j-C)[0]});function S(y){if(!n.isLongStrip){const C=n.isVertical?i.height.value:i.width.value,N=(n.isVertical?y.clientY:n.isRTL?C-y.clientX:y.clientX)/C;if(N<=.2){t("prev");return}else if(N>=.8){t("next");return}}t("click")}return(y,C)=>{const j=qi,N=Xi;return A(),_e(N,{ref_key:"root",ref:o,"model-value":y.zoom,"page-index":y.pageIndex,class:xe(["reader-body",{"reader-body--long-strip":y.isLongStrip,"reader-body--pages":!y.isLongStrip,"reader-body--vertical":y.isVertical,"reader-body--rtl":y.isRTL,"reader-body--idle":y.idle}]),"play-controller":y.playController,horizontal:!y.isVertical,rtl:y.isRTL,"touch-device":y.touchDevice,busy:y.busy,"long-strip":y.isLongStrip,style:Me({"--gap":`${a.value}em`,"--space-top":(y.spaceTop||0)+"em","--screen-width-em":K(i).width.value+"em","--screen-height-em":K(i).height.value+"em",...y.isLongStrip?{"--max-size-em":m.value+"em"}:{}}),"onUpdate:modelValue":C[0]||(C[0]=L=>t("update:zoom",L)),onDragEnd:C[1]||(C[1]=()=>t("dragEnd")),onClick:S,onScroll:K(u)},{default:oe(()=>[(A(!0),Y(ge,null,fn(d.value,L=>{var H;return A(),Y("div",Jn({key:y.direction+"_"+L.indexes[0],"data-index":L.indexes[0]},L.indexes.length>1?{"data-index2":L.indexes[1]}:{}),[!((H=L.srcs)!=null&&H.length)||L.isLoading?(A(),_e(j,{key:0,class:"page--loading"})):L.srcs.length==1?(A(),Y("img",{key:1,src:L.srcs[0],style:Me({height:L.height!==void 0?L.height+"em":""})},null,12,Zd)):(A(),Y("div",{key:2,class:xe(["page--double",{"flex-row-reverse":y.isRTL}]),style:Me({width:L.width!==void 0?L.width+"em":"",height:L.height!==void 0?L.height+"em":""})},[(A(!0),Y(ge,null,fn(L.srcs,h=>(A(),Y("div",{key:h},[X("img",{src:h},null,8,Jd)]))),128))],6))],16,qd)}),128)),X("div",{ref_key:"autoNextEl",ref:s,class:"last","data-index":y.totalImgs},[Ce(y.$slots,"end")],8,Qd)]),_:3},8,["model-value","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style","onScroll"])}}}),[["styles",[`.reader-body{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width:1024px){.reader-body{transform:none}}.reader-body--rtl{flex-direction:row-reverse}.reader-body.reader-body--vertical>div{padding:calc(var(--gap)/2) 0}.reader-body:not(.reader-body--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.reader-body:not(.reader-body--vertical)>div{padding:0 calc(var(--gap)/2)}.reader-body--long-strip.reader-body--vertical>div:first-child{margin-top:var(--space-top);padding-top:0}.reader-body--long-strip.reader-body--vertical>div:last-child{padding-bottom:0}.reader-body--long-strip.reader-body--vertical>div{width:var(--max-size-em)}.reader-body--long-strip.reader-body--vertical .page--loading{height:75vh;width:100vw}.reader-body--long-strip.reader-body--vertical .last{height:var(--screen-height-em)}.reader-body--long-strip:not(.reader-body--vertical)>div{align-items:center;display:flex;height:var(--max-size-em)}.reader-body--long-strip:not(.reader-body--vertical) .page--loading{height:100vh;max-width:100vw;width:680px}.reader-body--long-strip:not(.reader-body--vertical) .last{width:var(--screen-width-em)}.reader-body--long-strip>div>img{flex-shrink:0;margin:auto}.reader-body--pages:after,.reader-body--pages:before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.reader-body--pages.reader-body--idle:after,.reader-body--pages.reader-body--idle:before{cursor:none}.reader-body--pages>div{align-items:center;display:grid;justify-content:center;min-height:100vh;min-width:100vw;scroll-snap-align:center}.reader-body--pages.reader-body--vertical{--tw-scroll-snap-strictness:mandatory;scroll-snap-type:y var(--tw-scroll-snap-strictness)}.reader-body--pages.reader-body--vertical:after,.reader-body--pages.reader-body--vertical:before{height:20vw;left:0;right:0}.reader-body--pages.reader-body--vertical:before{top:0}.reader-body--pages.reader-body--vertical:after{bottom:0}.reader-body--pages.reader-body--vertical>div{width:var(--screen-width-em)}.reader-body--pages:not(.reader-body--vertical){--tw-scroll-snap-strictness:mandatory;scroll-snap-type:x var(--tw-scroll-snap-strictness)}.reader-body--pages:not(.reader-body--vertical):after,.reader-body--pages:not(.reader-body--vertical):before{bottom:0;top:0;width:20vw}.reader-body--pages:not(.reader-body--vertical):before{left:0}.reader-body--pages:not(.reader-body--vertical):after{right:0}.reader-body--pages:not(.reader-body--vertical)>div{height:var(--screen-height-em)}.reader-body--pages .page--loading{height:100vh;width:100vw}.reader-body--pages .page--double{align-items:center;display:flex;gap:var(--gap);justify-content:center}.reader-body--pages .page--double div{display:flex;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body--pages .page--double div img{flex-shrink:0;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.reader-body>div{flex-shrink:0;margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body 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}
1
+ (function(De,se){typeof exports=="object"&&typeof module<"u"?module.exports=se():typeof define=="function"&&define.amd?define(se):(De=typeof globalThis<"u"?globalThis:De||self,De._gearSecond_=se())})(this,function(){"use strict";var Bp=Object.defineProperty;var Dp=(De,se,Ue)=>se in De?Bp(De,se,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):De[se]=Ue;var rl=(De,se,Ue)=>(Dp(De,typeof se!="symbol"?se+"":se,Ue),Ue);function De(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const se={},Ue=[],et=()=>{},sl=()=>!1,il=/^on[^a-z]/,kn=e=>il.test(e),ao=e=>e.startsWith("onUpdate:"),ve=Object.assign,co=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ll=Object.prototype.hasOwnProperty,ae=(e,t)=>ll.call(e,t),Q=Array.isArray,Vt=e=>Sn(e)==="[object Map]",vr=e=>Sn(e)==="[object Set]",ne=e=>typeof e=="function",be=e=>typeof e=="string",uo=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",_r=e=>pe(e)&&ne(e.then)&&ne(e.catch),br=Object.prototype.toString,Sn=e=>br.call(e),al=e=>Sn(e).slice(8,-1),yr=e=>Sn(e)==="[object Object]",fo=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Tn=De(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),$n=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},cl=/-(\w)/g,Re=$n(e=>e.replace(cl,(t,n)=>n?n.toUpperCase():"")),ul=/\B([A-Z])/g,Ke=$n(e=>e.replace(ul,"-$1").toLowerCase()),In=$n(e=>e.charAt(0).toUpperCase()+e.slice(1)),po=$n(e=>e?`on${In(e)}`:""),on=(e,t)=>!Object.is(e,t),Pn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},En=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ho=e=>{const t=parseFloat(e);return isNaN(t)?e:t},go=e=>{const t=be(e)?Number(e):NaN;return isNaN(t)?e:t};let wr;const mo=()=>wr||(wr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Me(e){if(Q(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=be(o)?hl(o):Me(o);if(r)for(const s in r)t[s]=r[s]}return t}else{if(be(e))return e;if(pe(e))return e}}const fl=/;(?![^(]*\))/g,dl=/:([^]+)/,pl=/\/\*[^]*?\*\//g;function hl(e){const t={};return e.replace(pl,"").split(fl).forEach(n=>{if(n){const o=n.split(dl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function xe(e){let t="";if(be(e))t=e;else if(Q(e))for(let n=0;n<e.length;n++){const o=xe(e[n]);o&&(t+=o+" ")}else if(pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const gl=De("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function xr(e){return!!e||e===""}const Ye=e=>be(e)?e:e==null?"":Q(e)||pe(e)&&(e.toString===br||!ne(e.toString))?JSON.stringify(e,Cr,2):String(e),Cr=(e,t)=>t&&t.__v_isRef?Cr(e,t.value):Vt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:vr(t)?{[`Set(${t.size})`]:[...t.values()]}:pe(t)&&!Q(t)&&!yr(t)?String(t):t;let Ne;class ml{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ne,!t&&Ne&&(this.index=(Ne.scopes||(Ne.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ne;try{return Ne=this,t()}finally{Ne=n}}}on(){Ne=this}off(){Ne=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 vl(e,t=Ne){t&&t.active&&t.effects.push(e)}function kr(){return Ne}function _l(e){Ne&&Ne.cleanups.push(e)}const vo=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Sr=e=>(e.w&_t)>0,Tr=e=>(e.n&_t)>0,bl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=_t},yl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];Sr(r)&&!Tr(r)?r.delete(e):t[n++]=r,r.w&=~_t,r.n&=~_t}t.length=n}},_o=new WeakMap;let rn=0,_t=1;const bo=30;let tt;const Et=Symbol(""),yo=Symbol("");class wo{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,vl(this,o)}run(){if(!this.active)return this.fn();let t=tt,n=bt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=tt,tt=this,bt=!0,_t=1<<++rn,rn<=bo?bl(this):$r(this),this.fn()}finally{rn<=bo&&yl(this),_t=1<<--rn,tt=this.parent,bt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){tt===this?this.deferStop=!0:this.active&&($r(this),this.onStop&&this.onStop(),this.active=!1)}}function $r(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let bt=!0;const Ir=[];function Wt(){Ir.push(bt),bt=!1}function Ut(){const e=Ir.pop();bt=e===void 0?!0:e}function Ae(e,t,n){if(bt&&tt){let o=_o.get(e);o||_o.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=vo()),Pr(r)}}function Pr(e,t){let n=!1;rn<=bo?Tr(e)||(e.n|=_t,n=!Sr(e)):n=!e.has(tt),n&&(e.add(tt),tt.deps.push(e))}function ut(e,t,n,o,r,s){const i=_o.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&Q(e)){const l=Number(o);i.forEach((c,u)=>{(u==="length"||u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":Q(e)?fo(n)&&a.push(i.get("length")):(a.push(i.get(Et)),Vt(e)&&a.push(i.get(yo)));break;case"delete":Q(e)||(a.push(i.get(Et)),Vt(e)&&a.push(i.get(yo)));break;case"set":Vt(e)&&a.push(i.get(Et));break}if(a.length===1)a[0]&&xo(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);xo(vo(l))}}function xo(e,t){const n=Q(e)?e:[...e];for(const o of n)o.computed&&Er(o);for(const o of n)o.computed||Er(o)}function Er(e,t){(e!==tt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const wl=De("__proto__,__v_isRef,__isVue"),Or=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(uo)),xl=Co(),Cl=Co(!1,!0),kl=Co(!0),Mr=Sl();function Sl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ce(this);for(let s=0,i=this.length;s<i;s++)Ae(o,"get",s+"");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){Wt();const o=ce(this)[t].apply(this,n);return Ut(),o}}),e}function Tl(e){const t=ce(this);return Ae(t,"has",e),t.hasOwnProperty(e)}function Co(e=!1,t=!1){return function(o,r,s){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&s===(e?t?Hl:Fr:t?Nr:Rr).get(o))return o;const i=Q(o);if(!e){if(i&&ae(Mr,r))return Reflect.get(Mr,r,s);if(r==="hasOwnProperty")return Tl}const a=Reflect.get(o,r,s);return(uo(r)?Or.has(r):wl(r))||(e||Ae(o,"get",r),t)?a:ye(a)?i&&fo(r)?a:a.value:pe(a)?e?To(a):sn(a):a}}const $l=Lr(),Il=Lr(!0);function Lr(e=!1){return function(n,o,r,s){let i=n[o];if(Yt(i)&&ye(i)&&!ye(r))return!1;if(!e&&(!Bn(r)&&!Yt(r)&&(i=ce(i),r=ce(r)),!Q(n)&&ye(i)&&!ye(r)))return i.value=r,!0;const a=Q(n)&&fo(o)?Number(o)<n.length:ae(n,o),l=Reflect.set(n,o,r,s);return n===ce(s)&&(a?on(r,i)&&ut(n,"set",o,r):ut(n,"add",o,r)),l}}function Pl(e,t){const n=ae(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&ut(e,"delete",t,void 0),o}function El(e,t){const n=Reflect.has(e,t);return(!uo(t)||!Or.has(t))&&Ae(e,"has",t),n}function Ol(e){return Ae(e,"iterate",Q(e)?"length":Et),Reflect.ownKeys(e)}const zr={get:xl,set:$l,deleteProperty:Pl,has:El,ownKeys:Ol},Ml={get:kl,set(e,t){return!0},deleteProperty(e,t){return!0}},Ll=ve({},zr,{get:Cl,set:Il}),ko=e=>e,On=e=>Reflect.getPrototypeOf(e);function Mn(e,t,n=!1,o=!1){e=e.__v_raw;const r=ce(e),s=ce(t);n||(t!==s&&Ae(r,"get",t),Ae(r,"get",s));const{has:i}=On(r),a=o?ko:n?Io:ln;if(i.call(r,t))return a(e.get(t));if(i.call(r,s))return a(e.get(s));e!==r&&e.get(t)}function Ln(e,t=!1){const n=this.__v_raw,o=ce(n),r=ce(e);return t||(e!==r&&Ae(o,"has",e),Ae(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function zn(e,t=!1){return e=e.__v_raw,!t&&Ae(ce(e),"iterate",Et),Reflect.get(e,"size",e)}function jr(e){e=ce(e);const t=ce(this);return On(t).has.call(t,e)||(t.add(e),ut(t,"add",e,e)),this}function Ar(e,t){t=ce(t);const n=ce(this),{has:o,get:r}=On(n);let s=o.call(n,e);s||(e=ce(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?on(t,i)&&ut(n,"set",e,t):ut(n,"add",e,t),this}function Br(e){const t=ce(this),{has:n,get:o}=On(t);let r=n.call(t,e);r||(e=ce(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&ut(t,"delete",e,void 0),s}function Dr(){const e=ce(this),t=e.size!==0,n=e.clear();return t&&ut(e,"clear",void 0,void 0),n}function jn(e,t){return function(o,r){const s=this,i=s.__v_raw,a=ce(i),l=t?ko:e?Io:ln;return!e&&Ae(a,"iterate",Et),i.forEach((c,u)=>o.call(r,l(c),l(u),s))}}function An(e,t,n){return function(...o){const r=this.__v_raw,s=ce(r),i=Vt(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=r[e](...o),u=n?ko:t?Io:ln;return!t&&Ae(s,"iterate",l?yo:Et),{next(){const{value:d,done:m}=c.next();return m?{value:d,done:m}:{value:a?[u(d[0]),u(d[1])]:u(d),done:m}},[Symbol.iterator](){return this}}}}function yt(e){return function(...t){return e==="delete"?!1:this}}function zl(){const e={get(s){return Mn(this,s)},get size(){return zn(this)},has:Ln,add:jr,set:Ar,delete:Br,clear:Dr,forEach:jn(!1,!1)},t={get(s){return Mn(this,s,!1,!0)},get size(){return zn(this)},has:Ln,add:jr,set:Ar,delete:Br,clear:Dr,forEach:jn(!1,!0)},n={get(s){return Mn(this,s,!0)},get size(){return zn(this,!0)},has(s){return Ln.call(this,s,!0)},add:yt("add"),set:yt("set"),delete:yt("delete"),clear:yt("clear"),forEach:jn(!0,!1)},o={get(s){return Mn(this,s,!0,!0)},get size(){return zn(this,!0)},has(s){return Ln.call(this,s,!0)},add:yt("add"),set:yt("set"),delete:yt("delete"),clear:yt("clear"),forEach:jn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=An(s,!1,!1),n[s]=An(s,!0,!1),t[s]=An(s,!1,!0),o[s]=An(s,!0,!0)}),[e,n,t,o]}const[jl,Al,Bl,Dl]=zl();function So(e,t){const n=t?e?Dl:Bl:e?Al:jl;return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ae(n,r)&&r in o?n:o,r,s)}const Rl={get:So(!1,!1)},Nl={get:So(!1,!0)},Fl={get:So(!0,!1)},Rr=new WeakMap,Nr=new WeakMap,Fr=new WeakMap,Hl=new WeakMap;function Vl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wl(e){return e.__v_skip||!Object.isExtensible(e)?0:Vl(al(e))}function sn(e){return Yt(e)?e:$o(e,!1,zr,Rl,Rr)}function Ul(e){return $o(e,!1,Ll,Nl,Nr)}function To(e){return $o(e,!0,Ml,Fl,Fr)}function $o(e,t,n,o,r){if(!pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=Wl(e);if(i===0)return e;const a=new Proxy(e,i===2?o:n);return r.set(e,a),a}function Kt(e){return Yt(e)?Kt(e.__v_raw):!!(e&&e.__v_isReactive)}function Yt(e){return!!(e&&e.__v_isReadonly)}function Bn(e){return!!(e&&e.__v_isShallow)}function Hr(e){return Kt(e)||Yt(e)}function ce(e){const t=e&&e.__v_raw;return t?ce(t):e}function Vr(e){return En(e,"__v_skip",!0),e}const ln=e=>pe(e)?sn(e):e,Io=e=>pe(e)?To(e):e;function Wr(e){bt&&tt&&(e=ce(e),Pr(e.dep||(e.dep=vo())))}function Ur(e,t){e=ce(e);const n=e.dep;n&&xo(n)}function ye(e){return!!(e&&e.__v_isRef===!0)}function Z(e){return Kr(e,!1)}function Kl(e){return Kr(e,!0)}function Kr(e,t){return ye(e)?e:new Yl(e,t)}class Yl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ce(t),this._value=n?t:ln(t)}get value(){return Wr(this),this._value}set value(t){const n=this.__v_isShallow||Bn(t)||Yt(t);t=n?t:ce(t),on(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ln(t),Ur(this))}}function K(e){return ye(e)?e.value:e}const Xl={get:(e,t,n)=>K(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return ye(r)&&!ye(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Yr(e){return Kt(e)?e:new Proxy(e,Xl)}class ql{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new wo(t,()=>{this._dirty||(this._dirty=!0,Ur(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=ce(this);return Wr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Zl(e,t,n=!1){let o,r;const s=ne(e);return s?(o=e,r=et):(o=e.get,r=e.set),new ql(o,r,s||!r,n)}function Np(e,...t){}function wt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){Dn(s,t,n)}return r}function Xe(e,t,n,o){if(ne(e)){const s=wt(e,t,n,o);return s&&_r(s)&&s.catch(i=>{Dn(i,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(Xe(e[s],t,n,o));return r}function Dn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const i=t.proxy,a=n;for(;s;){const c=s.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,i,a)===!1)return}s=s.parent}const l=t.appContext.config.errorHandler;if(l){wt(l,null,10,[e,i,a]);return}}Jl(e,n,r,o)}function Jl(e,t,n,o=!0){console.error(e)}let an=!1,Po=!1;const Pe=[];let it=0;const Xt=[];let ft=null,Ot=0;const Xr=Promise.resolve();let Eo=null;function qe(e){const t=Eo||Xr;return e?t.then(this?e.bind(this):e):t}function Ql(e){let t=it+1,n=Pe.length;for(;t<n;){const o=t+n>>>1;cn(Pe[o])<e?t=o+1:n=o}return t}function Oo(e){(!Pe.length||!Pe.includes(e,an&&e.allowRecurse?it+1:it))&&(e.id==null?Pe.push(e):Pe.splice(Ql(e.id),0,e),qr())}function qr(){!an&&!Po&&(Po=!0,Eo=Xr.then(Qr))}function Gl(e){const t=Pe.indexOf(e);t>it&&Pe.splice(t,1)}function ea(e){Q(e)?Xt.push(...e):(!ft||!ft.includes(e,e.allowRecurse?Ot+1:Ot))&&Xt.push(e),qr()}function Zr(e,t=an?it+1:0){for(;t<Pe.length;t++){const n=Pe[t];n&&n.pre&&(Pe.splice(t,1),t--,n())}}function Jr(e){if(Xt.length){const t=[...new Set(Xt)];if(Xt.length=0,ft){ft.push(...t);return}for(ft=t,ft.sort((n,o)=>cn(n)-cn(o)),Ot=0;Ot<ft.length;Ot++)ft[Ot]();ft=null,Ot=0}}const cn=e=>e.id==null?1/0:e.id,ta=(e,t)=>{const n=cn(e)-cn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Qr(e){Po=!1,an=!0,Pe.sort(ta);const t=et;try{for(it=0;it<Pe.length;it++){const n=Pe[it];n&&n.active!==!1&&wt(n,null,14)}}finally{it=0,Pe.length=0,Jr(),an=!1,Eo=null,(Pe.length||Xt.length)&&Qr()}}function na(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||se;let r=n;const s=t.startsWith("update:"),i=s&&t.slice(7);if(i&&i in o){const u=`${i==="modelValue"?"model":i}Modifiers`,{number:d,trim:m}=o[u]||se;m&&(r=n.map(S=>be(S)?S.trim():S)),d&&(r=n.map(ho))}let a,l=o[a=po(t)]||o[a=po(Re(t))];!l&&s&&(l=o[a=po(Ke(t))]),l&&Xe(l,e,6,r);const c=o[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Xe(c,e,6,r)}}function Gr(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const s=e.emits;let i={},a=!1;if(!ne(e)){const l=c=>{const u=Gr(c,t,!0);u&&(a=!0,ve(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(pe(e)&&o.set(e,null),null):(Q(s)?s.forEach(l=>i[l]=null):ve(i,s),pe(e)&&o.set(e,i),i)}function Rn(e,t){return!e||!kn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ae(e,t[0].toLowerCase()+t.slice(1))||ae(e,Ke(t))||ae(e,t))}let $e=null,es=null;function Nn(e){const t=$e;return $e=e,es=e&&e.type.__scopeId||null,t}function oe(e,t=$e,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Es(-1);const s=Nn(t);let i;try{i=e(...r)}finally{Nn(s),o._d&&Es(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function Fp(){}function Mo(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:a,attrs:l,emit:c,render:u,renderCache:d,data:m,setupState:S,ctx:y,inheritAttrs:C}=e;let j,N;const L=Nn(e);try{if(n.shapeFlag&4){const h=r||o;j=lt(u.call(h,h,d,s,S,m,y)),N=l}else{const h=t;j=lt(h.length>1?h(s,{attrs:l,slots:a,emit:c}):h(s,null)),N=t.props?l:oa(l)}}catch(h){hn.length=0,Dn(h,e,1),j=q(Je)}let H=j;if(N&&C!==!1){const h=Object.keys(N),{shapeFlag:M}=H;h.length&&M&7&&(i&&h.some(ao)&&(N=ra(N,i)),H=xt(H,N))}return n.dirs&&(H=xt(H),H.dirs=H.dirs?H.dirs.concat(n.dirs):n.dirs),n.transition&&(H.transition=n.transition),j=H,Nn(L),j}const oa=e=>{let t;for(const n in e)(n==="class"||n==="style"||kn(n))&&((t||(t={}))[n]=e[n]);return t},ra=(e,t)=>{const n={};for(const o in e)(!ao(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function sa(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?ts(o,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const m=u[d];if(i[m]!==o[m]&&!Rn(c,m))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:o===i?!1:o?i?ts(o,i,c):!0:!!i;return!1}function ts(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 s=o[r];if(t[s]!==e[s]&&!Rn(n,s))return!0}return!1}function ia({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const la=e=>e.__isSuspense;function aa(e,t){t&&t.pendingBranch?Q(e)?t.effects.push(...e):t.effects.push(e):ea(e)}function ca(e,t){return Lo(e,null,t)}const Fn={};function ue(e,t,n){return Lo(e,t,n)}function Lo(e,t,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:i}=se){var a;const l=kr()===((a=ke)==null?void 0:a.scope)?ke:null;let c,u=!1,d=!1;if(ye(e)?(c=()=>e.value,u=Bn(e)):Kt(e)?(c=()=>e,o=!0):Q(e)?(d=!0,u=e.some(h=>Kt(h)||Bn(h)),c=()=>e.map(h=>{if(ye(h))return h.value;if(Kt(h))return Mt(h);if(ne(h))return wt(h,l,2)})):ne(e)?t?c=()=>wt(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return m&&m(),Xe(e,l,3,[S])}:c=et,t&&o){const h=c;c=()=>Mt(h())}let m,S=h=>{m=L.onStop=()=>{wt(h,l,4)}},y;if(mn)if(S=et,t?n&&Xe(t,l,3,[c(),d?[]:void 0,S]):c(),r==="sync"){const h=tc();y=h.__watcherHandles||(h.__watcherHandles=[])}else return et;let C=d?new Array(e.length).fill(Fn):Fn;const j=()=>{if(L.active)if(t){const h=L.run();(o||u||(d?h.some((M,k)=>on(M,C[k])):on(h,C)))&&(m&&m(),Xe(t,l,3,[h,C===Fn?void 0:d&&C[0]===Fn?[]:C,S]),C=h)}else L.run()};j.allowRecurse=!!t;let N;r==="sync"?N=j:r==="post"?N=()=>Be(j,l&&l.suspense):(j.pre=!0,l&&(j.id=l.uid),N=()=>Oo(j));const L=new wo(c,N);t?n?j():C=L.run():r==="post"?Be(L.run.bind(L),l&&l.suspense):L.run();const H=()=>{L.stop(),l&&l.scope&&co(l.scope.effects,L)};return y&&y.push(H),H}function ua(e,t,n){const o=this.proxy,r=be(e)?e.includes(".")?ns(o,e):()=>o[e]:e.bind(o,o);let s;ne(t)?s=t:(s=t.handler,n=t);const i=ke;Zt(this);const a=Lo(r,s.bind(o),n);return i?Zt(i):Bt(),a}function ns(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 Mt(e,t){if(!pe(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),ye(e))Mt(e.value,t);else if(Q(e))for(let n=0;n<e.length;n++)Mt(e[n],t);else if(vr(e)||Vt(e))e.forEach(n=>{Mt(n,t)});else if(yr(e))for(const n in e)Mt(e[n],t);return e}function dt(e,t){const n=$e;if(n===null)return e;const o=Qn(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,a,l,c=se]=t[s];i&&(ne(i)&&(i={mounted:i,updated:i}),i.deep&&Mt(a),r.push({dir:i,instance:o,value:a,oldValue:void 0,arg:l,modifiers:c}))}return e}function Lt(e,t,n,o){const r=e.dirs,s=t&&t.dirs;for(let i=0;i<r.length;i++){const a=r[i];s&&(a.oldValue=s[i].value);let l=a.dir[o];l&&(Wt(),Xe(l,n,8,[e.el,a,e,t]),Ut())}}function fa(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Fe(()=>{e.isMounted=!0}),as(()=>{e.isUnmounting=!0}),e}const Ze=[Function,Array],os={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ze,onEnter:Ze,onAfterEnter:Ze,onEnterCancelled:Ze,onBeforeLeave:Ze,onLeave:Ze,onAfterLeave:Ze,onLeaveCancelled:Ze,onBeforeAppear:Ze,onAppear:Ze,onAfterAppear:Ze,onAppearCancelled:Ze},da={name:"BaseTransition",props:os,setup(e,{slots:t}){const n=Ls(),o=fa();let r;return()=>{const s=t.default&&is(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const C of s)if(C.type!==Je){i=C;break}}const a=ce(e),{mode:l}=a;if(o.isLeaving)return jo(i);const c=ss(i);if(!c)return jo(i);const u=zo(c,a,o,n);Ao(c,u);const d=n.subTree,m=d&&ss(d);let S=!1;const{getTransitionKey:y}=c.type;if(y){const C=y();r===void 0?r=C:C!==r&&(r=C,S=!0)}if(m&&m.type!==Je&&(!At(c,m)||S)){const C=zo(m,a,o,n);if(Ao(m,C),l==="out-in")return o.isLeaving=!0,C.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},jo(i);l==="in-out"&&c.type!==Je&&(C.delayLeave=(j,N,L)=>{const H=rs(o,m);H[String(m.key)]=m,j._leaveCb=()=>{N(),j._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=L})}return i}}};function rs(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 zo(e,t,n,o){const{appear:r,mode:s,persisted:i=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:m,onAfterLeave:S,onLeaveCancelled:y,onBeforeAppear:C,onAppear:j,onAfterAppear:N,onAppearCancelled:L}=t,H=String(e.key),h=rs(n,e),M=(_,v)=>{_&&Xe(_,o,9,v)},k=(_,v)=>{const x=v[1];M(_,v),Q(_)?_.every(D=>D.length<=1)&&x():_.length<=1&&x()},$={mode:s,persisted:i,beforeEnter(_){let v=a;if(!n.isMounted)if(r)v=C||a;else return;_._leaveCb&&_._leaveCb(!0);const x=h[H];x&&At(e,x)&&x.el._leaveCb&&x.el._leaveCb(),M(v,[_])},enter(_){let v=l,x=c,D=u;if(!n.isMounted)if(r)v=j||l,x=N||c,D=L||u;else return;let P=!1;const B=_._enterCb=ee=>{P||(P=!0,ee?M(D,[_]):M(x,[_]),$.delayedLeave&&$.delayedLeave(),_._enterCb=void 0)};v?k(v,[_,B]):B()},leave(_,v){const x=String(e.key);if(_._enterCb&&_._enterCb(!0),n.isUnmounting)return v();M(d,[_]);let D=!1;const P=_._leaveCb=B=>{D||(D=!0,v(),B?M(y,[_]):M(S,[_]),_._leaveCb=void 0,h[x]===e&&delete h[x])};h[x]=e,m?k(m,[_,P]):P()},clone(_){return zo(_,t,n,o)}};return $}function jo(e){if(Hn(e))return e=xt(e),e.children=null,e}function ss(e){return Hn(e)?e.children?e.children[0]:void 0:e}function Ao(e,t){e.shapeFlag&6&&e.component?Ao(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 is(e,t=!1,n){let o=[],r=0;for(let s=0;s<e.length;s++){let i=e[s];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===ge?(i.patchFlag&128&&r++,o=o.concat(is(i.children,t,a))):(t||i.type!==Je)&&o.push(a!=null?xt(i,{key:a}):i)}if(r>1)for(let s=0;s<o.length;s++)o[s].patchFlag=-2;return o}function we(e,t){return ne(e)?(()=>ve({name:e.name},t,{setup:e}))():e}const un=e=>!!e.type.__asyncLoader,Hn=e=>e.type.__isKeepAlive;function pa(e,t){ls(e,"a",t)}function ha(e,t){ls(e,"da",t)}function ls(e,t,n=ke){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Vn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Hn(r.parent.vnode)&&ga(o,t,n,r),r=r.parent}}function ga(e,t,n,o){const r=Vn(t,e,o,!0);He(()=>{co(o[t],r)},n)}function Vn(e,t,n=ke,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Wt(),Zt(n);const a=Xe(t,n,e,i);return Bt(),Ut(),a});return o?r.unshift(s):r.push(s),s}}const pt=e=>(t,n=ke)=>(!mn||e==="sp")&&Vn(e,(...o)=>t(...o),n),ma=pt("bm"),Fe=pt("m"),va=pt("bu"),_a=pt("u"),as=pt("bum"),He=pt("um"),ba=pt("sp"),ya=pt("rtg"),wa=pt("rtc");function xa(e,t=ke){Vn("ec",e,t)}const cs="components",us=Symbol.for("v-ndc");function Ca(e){return be(e)?ka(cs,e,!1)||e:e||us}function ka(e,t,n=!0,o=!1){const r=$e||ke;if(r){const s=r.type;if(e===cs){const a=Qa(s,!1);if(a&&(a===t||a===Re(t)||a===In(Re(t))))return s}const i=fs(r[e]||s[e],t)||fs(r.appContext[e],t);return!i&&o?s:i}}function fs(e,t){return e&&(e[t]||e[Re(t)]||e[In(Re(t))])}function fn(e,t,n,o){let r;const s=n&&n[o];if(Q(e)||be(e)){r=new Array(e.length);for(let i=0,a=e.length;i<a;i++)r[i]=t(e[i],i,void 0,s&&s[i])}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,s&&s[i])}else if(pe(e))if(e[Symbol.iterator])r=Array.from(e,(i,a)=>t(i,a,void 0,s&&s[a]));else{const i=Object.keys(e);r=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const c=i[a];r[a]=t(e[c],c,a,s&&s[a])}}else r=[];return n&&(n[o]=r),r}function ds(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(Q(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 s=o.fn(...r);return s&&(s.key=o.key),s}:o.fn)}return e}function Ce(e,t,n={},o,r){if($e.isCE||$e.parent&&un($e.parent)&&$e.parent.isCE)return t!=="default"&&(n.name=t),q("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),A();const i=s&&ps(s(n)),a=_e(ge,{key:n.key||i&&i.key||`_${t}`},i||(o?o():[]),i&&e._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function ps(e){return e.some(t=>Xn(t)?!(t.type===Je||t.type===ge&&!ps(t.children)):!0)?e:null}const Bo=e=>e?js(e)?Qn(e)||e.proxy:Bo(e.parent):null,dn=ve(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=>Bo(e.parent),$root:e=>Bo(e.root),$emit:e=>e.emit,$options:e=>No(e),$forceUpdate:e=>e.f||(e.f=()=>Oo(e.update)),$nextTick:e=>e.n||(e.n=qe.bind(e.proxy)),$watch:e=>ua.bind(e)}),Do=(e,t)=>e!==se&&!e.__isScriptSetup&&ae(e,t),Sa={get({_:e},t){const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const S=i[t];if(S!==void 0)switch(S){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(Do(o,t))return i[t]=1,o[t];if(r!==se&&ae(r,t))return i[t]=2,r[t];if((c=e.propsOptions[0])&&ae(c,t))return i[t]=3,s[t];if(n!==se&&ae(n,t))return i[t]=4,n[t];Ro&&(i[t]=0)}}const u=dn[t];let d,m;if(u)return t==="$attrs"&&Ae(e,"get",t),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==se&&ae(n,t))return i[t]=4,n[t];if(m=l.config.globalProperties,ae(m,t))return m[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return Do(r,t)?(r[t]=n,!0):o!==se&&ae(o,t)?(o[t]=n,!0):ae(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:s}},i){let a;return!!n[i]||e!==se&&ae(e,i)||Do(t,i)||(a=s[0])&&ae(a,i)||ae(o,i)||ae(dn,i)||ae(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ae(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hs(e){return Q(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ro=!0;function Ta(e){const t=No(e),n=e.proxy,o=e.ctx;Ro=!1,t.beforeCreate&&gs(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:m,beforeUpdate:S,updated:y,activated:C,deactivated:j,beforeDestroy:N,beforeUnmount:L,destroyed:H,unmounted:h,render:M,renderTracked:k,renderTriggered:$,errorCaptured:_,serverPrefetch:v,expose:x,inheritAttrs:D,components:P,directives:B,filters:ee}=t;if(c&&$a(c,o,null),i)for(const F in i){const U=i[F];ne(U)&&(o[F]=U.bind(n))}if(r){const F=r.call(n,n);pe(F)&&(e.data=sn(F))}if(Ro=!0,s)for(const F in s){const U=s[F],fe=ne(U)?U.bind(n,n):ne(U.get)?U.get.bind(n,n):et,Te=!ne(U)&&ne(U.set)?U.set.bind(n):et,Ve=ie({get:fe,set:Te});Object.defineProperty(o,F,{enumerable:!0,configurable:!0,get:()=>Ve.value,set:Ie=>Ve.value=Ie})}if(a)for(const F in a)ms(a[F],o,n,F);if(l){const F=ne(l)?l.call(n):l;Reflect.ownKeys(F).forEach(U=>{Kn(U,F[U])})}u&&gs(u,e,"c");function I(F,U){Q(U)?U.forEach(fe=>F(fe.bind(n))):U&&F(U.bind(n))}if(I(ma,d),I(Fe,m),I(va,S),I(_a,y),I(pa,C),I(ha,j),I(xa,_),I(wa,k),I(ya,$),I(as,L),I(He,h),I(ba,v),Q(x))if(x.length){const F=e.exposed||(e.exposed={});x.forEach(U=>{Object.defineProperty(F,U,{get:()=>n[U],set:fe=>n[U]=fe})})}else e.exposed||(e.exposed={});M&&e.render===et&&(e.render=M),D!=null&&(e.inheritAttrs=D),P&&(e.components=P),B&&(e.directives=B)}function $a(e,t,n=et){Q(e)&&(e=Fo(e));for(const o in e){const r=e[o];let s;pe(r)?"default"in r?s=zt(r.from||o,r.default,!0):s=zt(r.from||o):s=zt(r),ye(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[o]=s}}function gs(e,t,n){Xe(Q(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function ms(e,t,n,o){const r=o.includes(".")?ns(n,o):()=>n[o];if(be(e)){const s=t[e];ne(s)&&ue(r,s)}else if(ne(e))ue(r,e.bind(n));else if(pe(e))if(Q(e))e.forEach(s=>ms(s,t,n,o));else{const s=ne(e.handler)?e.handler.bind(n):t[e.handler];ne(s)&&ue(r,s,e)}}function No(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!r.length&&!n&&!o?l=t:(l={},r.length&&r.forEach(c=>Wn(l,c,i,!0)),Wn(l,t,i)),pe(t)&&s.set(t,l),l}function Wn(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&Wn(e,s,n,!0),r&&r.forEach(i=>Wn(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const a=Ia[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Ia={data:vs,props:_s,emits:_s,methods:pn,computed:pn,beforeCreate:Le,created:Le,beforeMount:Le,mounted:Le,beforeUpdate:Le,updated:Le,beforeDestroy:Le,beforeUnmount:Le,destroyed:Le,unmounted:Le,activated:Le,deactivated:Le,errorCaptured:Le,serverPrefetch:Le,components:pn,directives:pn,watch:Ea,provide:vs,inject:Pa};function vs(e,t){return t?e?function(){return ve(ne(e)?e.call(this,this):e,ne(t)?t.call(this,this):t)}:t:e}function Pa(e,t){return pn(Fo(e),Fo(t))}function Fo(e){if(Q(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Le(e,t){return e?[...new Set([].concat(e,t))]:t}function pn(e,t){return e?ve(Object.create(null),e,t):t}function _s(e,t){return e?Q(e)&&Q(t)?[...new Set([...e,...t])]:ve(Object.create(null),hs(e),hs(t??{})):t}function Ea(e,t){if(!e)return t;if(!t)return e;const n=ve(Object.create(null),e);for(const o in t)n[o]=Le(e[o],t[o]);return n}function bs(){return{app:null,config:{isNativeTag:sl,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 Oa=0;function Ma(e,t){return function(o,r=null){ne(o)||(o=ve({},o)),r!=null&&!pe(r)&&(r=null);const s=bs(),i=new Set;let a=!1;const l=s.app={_uid:Oa++,_component:o,_props:r,_container:null,_context:s,_instance:null,version:nc,get config(){return s.config},set config(c){},use(c,...u){return i.has(c)||(c&&ne(c.install)?(i.add(c),c.install(l,...u)):ne(c)&&(i.add(c),c(l,...u))),l},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),l},component(c,u){return u?(s.components[c]=u,l):s.components[c]},directive(c,u){return u?(s.directives[c]=u,l):s.directives[c]},mount(c,u,d){if(!a){const m=q(o,r);return m.appContext=s,u&&t?t(m,c):e(m,c,d),a=!0,l._container=c,c.__vue_app__=l,Qn(m.component)||m.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(c,u){return s.provides[c]=u,l},runWithContext(c){Un=l;try{return c()}finally{Un=null}}};return l}}let Un=null;function Kn(e,t){if(ke){let n=ke.provides;const o=ke.parent&&ke.parent.provides;o===n&&(n=ke.provides=Object.create(o)),n[e]=t}}function zt(e,t,n=!1){const o=ke||$e;if(o||Un){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Un._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&ne(t)?t.call(o&&o.proxy):t}}function La(e,t,n,o=!1){const r={},s={};En(s,qn,1),e.propsDefaults=Object.create(null),ys(e,t,r,s);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:Ul(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function za(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,a=ce(r),[l]=e.propsOptions;let c=!1;if((o||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let m=u[d];if(Rn(e.emitsOptions,m))continue;const S=t[m];if(l)if(ae(s,m))S!==s[m]&&(s[m]=S,c=!0);else{const y=Re(m);r[y]=Ho(l,a,y,S,e,!1)}else S!==s[m]&&(s[m]=S,c=!0)}}}else{ys(e,t,r,s)&&(c=!0);let u;for(const d in a)(!t||!ae(t,d)&&((u=Ke(d))===d||!ae(t,u)))&&(l?n&&(n[d]!==void 0||n[u]!==void 0)&&(r[d]=Ho(l,a,d,void 0,e,!0)):delete r[d]);if(s!==a)for(const d in s)(!t||!ae(t,d))&&(delete s[d],c=!0)}c&&ut(e,"set","$attrs")}function ys(e,t,n,o){const[r,s]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Tn(l))continue;const c=t[l];let u;r&&ae(r,u=Re(l))?!s||!s.includes(u)?n[u]=c:(a||(a={}))[u]=c:Rn(e.emitsOptions,l)||(!(l in o)||c!==o[l])&&(o[l]=c,i=!0)}if(s){const l=ce(n),c=a||se;for(let u=0;u<s.length;u++){const d=s[u];n[d]=Ho(r,l,d,c[d],e,!ae(c,d))}}return i}function Ho(e,t,n,o,r,s){const i=e[n];if(i!=null){const a=ae(i,"default");if(a&&o===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&ne(l)){const{propsDefaults:c}=r;n in c?o=c[n]:(Zt(r),o=c[n]=l.call(null,t),Bt())}else o=l}i[0]&&(s&&!a?o=!1:i[1]&&(o===""||o===Ke(n))&&(o=!0))}return o}function ws(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const s=e.props,i={},a=[];let l=!1;if(!ne(e)){const u=d=>{l=!0;const[m,S]=ws(d,t,!0);ve(i,m),S&&a.push(...S)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!l)return pe(e)&&o.set(e,Ue),Ue;if(Q(s))for(let u=0;u<s.length;u++){const d=Re(s[u]);xs(d)&&(i[d]=se)}else if(s)for(const u in s){const d=Re(u);if(xs(d)){const m=s[u],S=i[d]=Q(m)||ne(m)?{type:m}:ve({},m);if(S){const y=Ss(Boolean,S.type),C=Ss(String,S.type);S[0]=y>-1,S[1]=C<0||y<C,(y>-1||ae(S,"default"))&&a.push(d)}}}const c=[i,a];return pe(e)&&o.set(e,c),c}function xs(e){return e[0]!=="$"}function Cs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ks(e,t){return Cs(e)===Cs(t)}function Ss(e,t){return Q(t)?t.findIndex(n=>ks(n,e)):ne(t)&&ks(t,e)?0:-1}const Ts=e=>e[0]==="_"||e==="$stable",Vo=e=>Q(e)?e.map(lt):[lt(e)],ja=(e,t,n)=>{if(t._n)return t;const o=oe((...r)=>Vo(t(...r)),n);return o._c=!1,o},$s=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Ts(r))continue;const s=e[r];if(ne(s))t[r]=ja(r,s,o);else if(s!=null){const i=Vo(s);t[r]=()=>i}}},Is=(e,t)=>{const n=Vo(t);e.slots.default=()=>n},Aa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ce(t),En(t,"_",n)):$s(t,e.slots={})}else e.slots={},t&&Is(e,t);En(e.slots,qn,1)},Ba=(e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,i=se;if(o.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:(ve(r,t),!n&&a===1&&delete r._):(s=!t.$stable,$s(t,r)),i=t}else t&&(Is(e,t),i={default:1});if(s)for(const a in r)!Ts(a)&&!(a in i)&&delete r[a]};function Wo(e,t,n,o,r=!1){if(Q(e)){e.forEach((m,S)=>Wo(m,t&&(Q(t)?t[S]:t),n,o,r));return}if(un(o)&&!r)return;const s=o.shapeFlag&4?Qn(o.component)||o.component.proxy:o.el,i=r?null:s,{i:a,r:l}=e,c=t&&t.r,u=a.refs===se?a.refs={}:a.refs,d=a.setupState;if(c!=null&&c!==l&&(be(c)?(u[c]=null,ae(d,c)&&(d[c]=null)):ye(c)&&(c.value=null)),ne(l))wt(l,a,12,[i,u]);else{const m=be(l),S=ye(l);if(m||S){const y=()=>{if(e.f){const C=m?ae(d,l)?d[l]:u[l]:l.value;r?Q(C)&&co(C,s):Q(C)?C.includes(s)||C.push(s):m?(u[l]=[s],ae(d,l)&&(d[l]=u[l])):(l.value=[s],e.k&&(u[e.k]=l.value))}else m?(u[l]=i,ae(d,l)&&(d[l]=i)):S&&(l.value=i,e.k&&(u[e.k]=i))};i?(y.id=-1,Be(y,n)):y()}}}const Be=aa;function Da(e){return Ra(e)}function Ra(e,t){const n=mo();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:m,setScopeId:S=et,insertStaticContent:y}=e,C=(f,p,w,E=null,O=null,z=null,R=!1,g=null,b=!!p.dynamicChildren)=>{if(f===p)return;f&&!At(f,p)&&(E=tn(f),Ie(f,O,z,!0),f=null),p.patchFlag===-2&&(b=!1,p.dynamicChildren=null);const{type:T,ref:W,shapeFlag:V}=p;switch(T){case Yn:j(f,p,w,E);break;case Je:N(f,p,w,E);break;case Uo:f==null&&L(p,w,E,R);break;case ge:P(f,p,w,E,O,z,R,g,b);break;default:V&1?M(f,p,w,E,O,z,R,g,b):V&6?B(f,p,w,E,O,z,R,g,b):(V&64||V&128)&&T.process(f,p,w,E,O,z,R,g,b,st)}W!=null&&O&&Wo(W,f&&f.ref,z,p||f,!p)},j=(f,p,w,E)=>{if(f==null)o(p.el=a(p.children),w,E);else{const O=p.el=f.el;p.children!==f.children&&c(O,p.children)}},N=(f,p,w,E)=>{f==null?o(p.el=l(p.children||""),w,E):p.el=f.el},L=(f,p,w,E)=>{[f.el,f.anchor]=y(f.children,p,w,E,f.el,f.anchor)},H=({el:f,anchor:p},w,E)=>{let O;for(;f&&f!==p;)O=m(f),o(f,w,E),f=O;o(p,w,E)},h=({el:f,anchor:p})=>{let w;for(;f&&f!==p;)w=m(f),r(f),f=w;r(p)},M=(f,p,w,E,O,z,R,g,b)=>{R=R||p.type==="svg",f==null?k(p,w,E,O,z,R,g,b):v(f,p,O,z,R,g,b)},k=(f,p,w,E,O,z,R,g)=>{let b,T;const{type:W,props:V,shapeFlag:J,transition:te,dirs:re}=f;if(b=f.el=i(f.type,z,V&&V.is,V),J&8?u(b,f.children):J&16&&_(f.children,b,null,E,O,z&&W!=="foreignObject",R,g),re&&Lt(f,null,E,"created"),$(b,f,f.scopeId,R,E),V){for(const de in V)de!=="value"&&!Tn(de)&&s(b,de,null,V[de],z,f.children,E,O,Oe);"value"in V&&s(b,"value",null,V.value),(T=V.onVnodeBeforeMount)&&at(T,E,f)}re&&Lt(f,null,E,"beforeMount");const le=(!O||O&&!O.pendingBranch)&&te&&!te.persisted;le&&te.beforeEnter(b),o(b,p,w),((T=V&&V.onVnodeMounted)||le||re)&&Be(()=>{T&&at(T,E,f),le&&te.enter(b),re&&Lt(f,null,E,"mounted")},O)},$=(f,p,w,E,O)=>{if(w&&S(f,w),E)for(let z=0;z<E.length;z++)S(f,E[z]);if(O){let z=O.subTree;if(p===z){const R=O.vnode;$(f,R,R.scopeId,R.slotScopeIds,O.parent)}}},_=(f,p,w,E,O,z,R,g,b=0)=>{for(let T=b;T<f.length;T++){const W=f[T]=g?kt(f[T]):lt(f[T]);C(null,W,p,w,E,O,z,R,g)}},v=(f,p,w,E,O,z,R)=>{const g=p.el=f.el;let{patchFlag:b,dynamicChildren:T,dirs:W}=p;b|=f.patchFlag&16;const V=f.props||se,J=p.props||se;let te;w&&jt(w,!1),(te=J.onVnodeBeforeUpdate)&&at(te,w,p,f),W&&Lt(p,f,w,"beforeUpdate"),w&&jt(w,!0);const re=O&&p.type!=="foreignObject";if(T?x(f.dynamicChildren,T,g,w,E,re,z):R||U(f,p,g,null,w,E,re,z,!1),b>0){if(b&16)D(g,p,V,J,w,E,O);else if(b&2&&V.class!==J.class&&s(g,"class",null,J.class,O),b&4&&s(g,"style",V.style,J.style,O),b&8){const le=p.dynamicProps;for(let de=0;de<le.length;de++){const me=le[de],We=V[me],Pt=J[me];(Pt!==We||me==="value")&&s(g,me,We,Pt,O,f.children,w,E,Oe)}}b&1&&f.children!==p.children&&u(g,p.children)}else!R&&T==null&&D(g,p,V,J,w,E,O);((te=J.onVnodeUpdated)||W)&&Be(()=>{te&&at(te,w,p,f),W&&Lt(p,f,w,"updated")},E)},x=(f,p,w,E,O,z,R)=>{for(let g=0;g<p.length;g++){const b=f[g],T=p[g],W=b.el&&(b.type===ge||!At(b,T)||b.shapeFlag&70)?d(b.el):w;C(b,T,W,null,E,O,z,R,!0)}},D=(f,p,w,E,O,z,R)=>{if(w!==E){if(w!==se)for(const g in w)!Tn(g)&&!(g in E)&&s(f,g,w[g],null,R,p.children,O,z,Oe);for(const g in E){if(Tn(g))continue;const b=E[g],T=w[g];b!==T&&g!=="value"&&s(f,g,T,b,R,p.children,O,z,Oe)}"value"in E&&s(f,"value",w.value,E.value)}},P=(f,p,w,E,O,z,R,g,b)=>{const T=p.el=f?f.el:a(""),W=p.anchor=f?f.anchor:a("");let{patchFlag:V,dynamicChildren:J,slotScopeIds:te}=p;te&&(g=g?g.concat(te):te),f==null?(o(T,w,E),o(W,w,E),_(p.children,w,W,O,z,R,g,b)):V>0&&V&64&&J&&f.dynamicChildren?(x(f.dynamicChildren,J,w,O,z,R,g),(p.key!=null||O&&p===O.subTree)&&Ps(f,p,!0)):U(f,p,w,W,O,z,R,g,b)},B=(f,p,w,E,O,z,R,g,b)=>{p.slotScopeIds=g,f==null?p.shapeFlag&512?O.ctx.activate(p,w,E,R,b):ee(p,w,E,O,z,R,b):G(f,p,b)},ee=(f,p,w,E,O,z,R)=>{const g=f.component=Ya(f,E,O);if(Hn(f)&&(g.ctx.renderer=st),Xa(g),g.asyncDep){if(O&&O.registerDep(g,I),!f.el){const b=g.subTree=q(Je);N(null,b,p,w)}return}I(g,f,p,w,O,z,R)},G=(f,p,w)=>{const E=p.component=f.component;if(sa(f,p,w))if(E.asyncDep&&!E.asyncResolved){F(E,p,w);return}else E.next=p,Gl(E.update),E.update();else p.el=f.el,E.vnode=p},I=(f,p,w,E,O,z,R)=>{const g=()=>{if(f.isMounted){let{next:W,bu:V,u:J,parent:te,vnode:re}=f,le=W,de;jt(f,!1),W?(W.el=re.el,F(f,W,R)):W=re,V&&Pn(V),(de=W.props&&W.props.onVnodeBeforeUpdate)&&at(de,te,W,re),jt(f,!0);const me=Mo(f),We=f.subTree;f.subTree=me,C(We,me,d(We.el),tn(We),f,O,z),W.el=me.el,le===null&&ia(f,me.el),J&&Be(J,O),(de=W.props&&W.props.onVnodeUpdated)&&Be(()=>at(de,te,W,re),O)}else{let W;const{el:V,props:J}=p,{bm:te,m:re,parent:le}=f,de=un(p);if(jt(f,!1),te&&Pn(te),!de&&(W=J&&J.onVnodeBeforeMount)&&at(W,le,p),jt(f,!0),V&&nn){const me=()=>{f.subTree=Mo(f),nn(V,f.subTree,f,O,null)};de?p.type.__asyncLoader().then(()=>!f.isUnmounted&&me()):me()}else{const me=f.subTree=Mo(f);C(null,me,w,E,f,O,z),p.el=me.el}if(re&&Be(re,O),!de&&(W=J&&J.onVnodeMounted)){const me=p;Be(()=>at(W,le,me),O)}(p.shapeFlag&256||le&&un(le.vnode)&&le.vnode.shapeFlag&256)&&f.a&&Be(f.a,O),f.isMounted=!0,p=w=E=null}},b=f.effect=new wo(g,()=>Oo(T),f.scope),T=f.update=()=>b.run();T.id=f.uid,jt(f,!0),T()},F=(f,p,w)=>{p.component=f;const E=f.vnode.props;f.vnode=p,f.next=null,za(f,p.props,E,w),Ba(f,p.children,w),Wt(),Zr(),Ut()},U=(f,p,w,E,O,z,R,g,b=!1)=>{const T=f&&f.children,W=f?f.shapeFlag:0,V=p.children,{patchFlag:J,shapeFlag:te}=p;if(J>0){if(J&128){Te(T,V,w,E,O,z,R,g,b);return}else if(J&256){fe(T,V,w,E,O,z,R,g,b);return}}te&8?(W&16&&Oe(T,O,z),V!==T&&u(w,V)):W&16?te&16?Te(T,V,w,E,O,z,R,g,b):Oe(T,O,z,!0):(W&8&&u(w,""),te&16&&_(V,w,E,O,z,R,g,b))},fe=(f,p,w,E,O,z,R,g,b)=>{f=f||Ue,p=p||Ue;const T=f.length,W=p.length,V=Math.min(T,W);let J;for(J=0;J<V;J++){const te=p[J]=b?kt(p[J]):lt(p[J]);C(f[J],te,w,null,O,z,R,g,b)}T>W?Oe(f,O,z,!0,!1,V):_(p,w,E,O,z,R,g,b,V)},Te=(f,p,w,E,O,z,R,g,b)=>{let T=0;const W=p.length;let V=f.length-1,J=W-1;for(;T<=V&&T<=J;){const te=f[T],re=p[T]=b?kt(p[T]):lt(p[T]);if(At(te,re))C(te,re,w,null,O,z,R,g,b);else break;T++}for(;T<=V&&T<=J;){const te=f[V],re=p[J]=b?kt(p[J]):lt(p[J]);if(At(te,re))C(te,re,w,null,O,z,R,g,b);else break;V--,J--}if(T>V){if(T<=J){const te=J+1,re=te<W?p[te].el:E;for(;T<=J;)C(null,p[T]=b?kt(p[T]):lt(p[T]),w,re,O,z,R,g,b),T++}}else if(T>J)for(;T<=V;)Ie(f[T],O,z,!0),T++;else{const te=T,re=T,le=new Map;for(T=re;T<=J;T++){const ze=p[T]=b?kt(p[T]):lt(p[T]);ze.key!=null&&le.set(ze.key,T)}let de,me=0;const We=J-re+1;let Pt=!1,so=0;const Ht=new Array(We);for(T=0;T<We;T++)Ht[T]=0;for(T=te;T<=V;T++){const ze=f[T];if(me>=We){Ie(ze,O,z,!0);continue}let Ge;if(ze.key!=null)Ge=le.get(ze.key);else for(de=re;de<=J;de++)if(Ht[de-re]===0&&At(ze,p[de])){Ge=de;break}Ge===void 0?Ie(ze,O,z,!0):(Ht[Ge-re]=T+1,Ge>=so?so=Ge:Pt=!0,C(ze,p[Ge],w,null,O,z,R,g,b),me++)}const io=Pt?Na(Ht):Ue;for(de=io.length-1,T=We-1;T>=0;T--){const ze=re+T,Ge=p[ze],lo=ze+1<W?p[ze+1].el:E;Ht[T]===0?C(null,Ge,w,lo,O,z,R,g,b):Pt&&(de<0||T!==io[de]?Ve(Ge,w,lo,2):de--)}}},Ve=(f,p,w,E,O=null)=>{const{el:z,type:R,transition:g,children:b,shapeFlag:T}=f;if(T&6){Ve(f.component.subTree,p,w,E);return}if(T&128){f.suspense.move(p,w,E);return}if(T&64){R.move(f,p,w,st);return}if(R===ge){o(z,p,w);for(let V=0;V<b.length;V++)Ve(b[V],p,w,E);o(f.anchor,p,w);return}if(R===Uo){H(f,p,w);return}if(E!==2&&T&1&&g)if(E===0)g.beforeEnter(z),o(z,p,w),Be(()=>g.enter(z),O);else{const{leave:V,delayLeave:J,afterLeave:te}=g,re=()=>o(z,p,w),le=()=>{V(z,()=>{re(),te&&te()})};J?J(z,re,le):le()}else o(z,p,w)},Ie=(f,p,w,E=!1,O=!1)=>{const{type:z,props:R,ref:g,children:b,dynamicChildren:T,shapeFlag:W,patchFlag:V,dirs:J}=f;if(g!=null&&Wo(g,null,w,f,!0),W&256){p.ctx.deactivate(f);return}const te=W&1&&J,re=!un(f);let le;if(re&&(le=R&&R.onVnodeBeforeUnmount)&&at(le,p,f),W&6)en(f.component,w,E);else{if(W&128){f.suspense.unmount(w,E);return}te&&Lt(f,null,p,"beforeUnmount"),W&64?f.type.remove(f,p,w,O,st,E):T&&(z!==ge||V>0&&V&64)?Oe(T,p,w,!1,!0):(z===ge&&V&384||!O&&W&16)&&Oe(b,p,w),E&&ct(f)}(re&&(le=R&&R.onVnodeUnmounted)||te)&&Be(()=>{le&&at(le,p,f),te&&Lt(f,null,p,"unmounted")},w)},ct=f=>{const{type:p,el:w,anchor:E,transition:O}=f;if(p===ge){mt(w,E);return}if(p===Uo){h(f);return}const z=()=>{r(w),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(f.shapeFlag&1&&O&&!O.persisted){const{leave:R,delayLeave:g}=O,b=()=>R(w,z);g?g(f.el,z,b):b()}else z()},mt=(f,p)=>{let w;for(;f!==p;)w=m(f),r(f),f=w;r(p)},en=(f,p,w)=>{const{bum:E,scope:O,update:z,subTree:R,um:g}=f;E&&Pn(E),O.stop(),z&&(z.active=!1,Ie(R,f,p,w)),g&&Be(g,p),Be(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},Oe=(f,p,w,E=!1,O=!1,z=0)=>{for(let R=z;R<f.length;R++)Ie(f[R],p,w,E,O)},tn=f=>f.shapeFlag&6?tn(f.component.subTree):f.shapeFlag&128?f.suspense.next():m(f.anchor||f.el),ro=(f,p,w)=>{f==null?p._vnode&&Ie(p._vnode,null,null,!0):C(p._vnode||null,f,p,null,null,null,w),Zr(),Jr(),p._vnode=f},st={p:C,um:Ie,m:Ve,r:ct,mt:ee,mc:_,pc:U,pbc:x,n:tn,o:e};let vt,nn;return t&&([vt,nn]=t(st)),{render:ro,hydrate:vt,createApp:Ma(ro,vt)}}function jt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ps(e,t,n=!1){const o=e.children,r=t.children;if(Q(o)&&Q(r))for(let s=0;s<o.length;s++){const i=o[s];let a=r[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[s]=kt(r[s]),a.el=i.el),n||Ps(i,a)),a.type===Yn&&(a.el=i.el)}}function Na(e){const t=e.slice(),n=[0];let o,r,s,i,a;const l=e.length;for(o=0;o<l;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(s=0,i=n.length-1;s<i;)a=s+i>>1,e[n[a]]<c?s=a+1:i=a;c<e[n[s]]&&(s>0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}const Fa=e=>e.__isTeleport,ge=Symbol.for("v-fgt"),Yn=Symbol.for("v-txt"),Je=Symbol.for("v-cmt"),Uo=Symbol.for("v-stc"),hn=[];let nt=null;function A(e=!1){hn.push(nt=e?null:[])}function Ha(){hn.pop(),nt=hn[hn.length-1]||null}let gn=1;function Es(e){gn+=e}function Os(e){return e.dynamicChildren=gn>0?nt||Ue:null,Ha(),gn>0&&nt&&nt.push(e),e}function Y(e,t,n,o,r,s){return Os(X(e,t,n,o,r,s,!0))}function _e(e,t,n,o,r){return Os(q(e,t,n,o,r,!0))}function Xn(e){return e?e.__v_isVNode===!0:!1}function At(e,t){return e.type===t.type&&e.key===t.key}const qn="__vInternal",Ms=({key:e})=>e??null,Zn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||ye(e)||ne(e)?{i:$e,r:e,k:t,f:!!n}:e:null);function X(e,t=null,n=null,o=0,r=null,s=e===ge?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ms(t),ref:t&&Zn(t),scopeId:es,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:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:$e};return a?(Ko(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=be(n)?8:16),gn>0&&!i&&nt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&nt.push(l),l}const q=Va;function Va(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===us)&&(e=Je),Xn(e)){const a=xt(e,t,!0);return n&&Ko(a,n),gn>0&&!s&&nt&&(a.shapeFlag&6?nt[nt.indexOf(e)]=a:nt.push(a)),a.patchFlag|=-2,a}if(Ga(e)&&(e=e.__vccOpts),t){t=Wa(t);let{class:a,style:l}=t;a&&!be(a)&&(t.class=xe(a)),pe(l)&&(Hr(l)&&!Q(l)&&(l=ve({},l)),t.style=Me(l))}const i=be(e)?1:la(e)?128:Fa(e)?64:pe(e)?4:ne(e)?2:0;return X(e,t,n,o,r,i,s,!0)}function Wa(e){return e?Hr(e)||qn in e?ve({},e):e:null}function xt(e,t,n=!1){const{props:o,ref:r,patchFlag:s,children:i}=e,a=t?Jn(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Ms(a),ref:t&&t.ref?n&&r?Q(r)?r.concat(Zn(t)):[r,Zn(t)]:Zn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ge?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xt(e.ssContent),ssFallback:e.ssFallback&&xt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ct(e=" ",t=0){return q(Yn,null,e,t)}function Ee(e="",t=!1){return t?(A(),_e(Je,null,e)):q(Je,null,e)}function lt(e){return e==null||typeof e=="boolean"?q(Je):Q(e)?q(ge,null,e.slice()):typeof e=="object"?kt(e):q(Yn,null,String(e))}function kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xt(e)}function Ko(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Q(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Ko(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(qn in t)?t._ctx=$e:r===3&&$e&&($e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ne(t)?(t={default:t,_ctx:$e},n=32):(t=String(t),o&64?(n=16,t=[Ct(t)]):n=8);e.children=t,e.shapeFlag|=n}function Jn(...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=xe([t.class,o.class]));else if(r==="style")t.style=Me([t.style,o.style]);else if(kn(r)){const s=t[r],i=o[r];i&&s!==i&&!(Q(s)&&s.includes(i))&&(t[r]=s?[].concat(s,i):i)}else r!==""&&(t[r]=o[r])}return t}function at(e,t,n,o=null){Xe(e,t,7,[n,o])}const Ua=bs();let Ka=0;function Ya(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Ua,s={uid:Ka++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new ml(!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:ws(o,r),emitsOptions:Gr(o,r),emit:null,emitted:null,propsDefaults:se,inheritAttrs:o.inheritAttrs,ctx:se,data:se,props:se,attrs:se,slots:se,refs:se,setupState:se,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 s.ctx={_:s},s.root=t?t.root:s,s.emit=na.bind(null,s),e.ce&&e.ce(s),s}let ke=null;const Ls=()=>ke||$e;let Yo,qt,zs="__VUE_INSTANCE_SETTERS__";(qt=mo()[zs])||(qt=mo()[zs]=[]),qt.push(e=>ke=e),Yo=e=>{qt.length>1?qt.forEach(t=>t(e)):qt[0](e)};const Zt=e=>{Yo(e),e.scope.on()},Bt=()=>{ke&&ke.scope.off(),Yo(null)};function js(e){return e.vnode.shapeFlag&4}let mn=!1;function Xa(e,t=!1){mn=t;const{props:n,children:o}=e.vnode,r=js(e);La(e,n,r,t),Aa(e,o);const s=r?qa(e,t):void 0;return mn=!1,s}function qa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Vr(new Proxy(e.ctx,Sa));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?Ja(e):null;Zt(e),Wt();const s=wt(o,e,0,[e.props,r]);if(Ut(),Bt(),_r(s)){if(s.then(Bt,Bt),t)return s.then(i=>{As(e,i,t)}).catch(i=>{Dn(i,e,0)});e.asyncDep=s}else As(e,s,t)}else Ds(e,t)}function As(e,t,n){ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=Yr(t)),Ds(e,n)}let Bs;function Ds(e,t,n){const o=e.type;if(!e.render){if(!t&&Bs&&!o.render){const r=o.template||No(e).template;if(r){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=o,c=ve(ve({isCustomElement:s,delimiters:a},i),l);o.render=Bs(r,c)}}e.render=o.render||et}Zt(e),Wt(),Ta(e),Ut(),Bt()}function Za(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ae(e,"get","$attrs"),t[n]}}))}function Ja(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Za(e)},slots:e.slots,emit:e.emit,expose:t}}function Qn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Yr(Vr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in dn)return dn[n](e)},has(t,n){return n in t||n in dn}}))}function Qa(e,t=!0){return ne(e)?e.displayName||e.name:e.name||t&&e.__name}function Ga(e){return ne(e)&&"__vccOpts"in e}const ie=(e,t)=>Zl(e,t,mn);function Rs(e,t,n){const o=arguments.length;return o===2?pe(t)&&!Q(t)?Xn(t)?q(e,null,[t]):q(e,t):q(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Xn(n)&&(n=[n]),q(e,t,n))}const ec=Symbol.for("v-scx"),tc=()=>zt(ec),nc="3.3.4",oc="http://www.w3.org/2000/svg",Dt=typeof document<"u"?document:null,Ns=Dt&&Dt.createElement("template"),rc={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?Dt.createElementNS(oc,e):Dt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Dt.createTextNode(e),createComment:e=>Dt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Dt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,s){const i=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{Ns.innerHTML=o?`<svg>${e}</svg>`:e;const a=Ns.content;if(o){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function sc(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function ic(e,t,n){const o=e.style,r=be(n);if(n&&!r){if(t&&!be(t))for(const s in t)n[s]==null&&Xo(o,s,"");for(const s in n)Xo(o,s,n[s])}else{const s=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=s)}}const Fs=/\s*!important$/;function Xo(e,t,n){if(Q(n))n.forEach(o=>Xo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=lc(e,t);Fs.test(n)?e.setProperty(Ke(o),n.replace(Fs,""),"important"):e[o]=n}}const Hs=["Webkit","Moz","ms"],qo={};function lc(e,t){const n=qo[t];if(n)return n;let o=Re(t);if(o!=="filter"&&o in e)return qo[t]=o;o=In(o);for(let r=0;r<Hs.length;r++){const s=Hs[r]+o;if(s in e)return qo[t]=s}return t}const Vs="http://www.w3.org/1999/xlink";function ac(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Vs,t.slice(6,t.length)):e.setAttributeNS(Vs,t,n);else{const s=gl(t);n==null||s&&!xr(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function cc(e,t,n,o,r,s,i){if(t==="innerHTML"||t==="textContent"){o&&i(o,r,s),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){e._value=n;const c=a==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=xr(n):n==null&&c==="string"?(n="",l=!0):c==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function Jt(e,t,n,o){e.addEventListener(t,n,o)}function uc(e,t,n,o){e.removeEventListener(t,n,o)}function fc(e,t,n,o,r=null){const s=e._vei||(e._vei={}),i=s[t];if(o&&i)i.value=o;else{const[a,l]=dc(t);if(o){const c=s[t]=gc(o,r);Jt(e,a,c,l)}else i&&(uc(e,a,i,l),s[t]=void 0)}}const Ws=/(?:Once|Passive|Capture)$/;function dc(e){let t;if(Ws.test(e)){t={};let o;for(;o=e.match(Ws);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ke(e.slice(2)),t]}let Zo=0;const pc=Promise.resolve(),hc=()=>Zo||(pc.then(()=>Zo=0),Zo=Date.now());function gc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Xe(mc(o,n.value),t,5,[o])};return n.value=e,n.attached=hc(),n}function mc(e,t){if(Q(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 Us=/^on[a-z]/,vc=(e,t,n,o,r=!1,s,i,a,l)=>{t==="class"?sc(e,o,r):t==="style"?ic(e,n,o):kn(t)?ao(t)||fc(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):_c(e,t,o,r))?cc(e,t,o,s,i,a,l):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),ac(e,t,o,r))};function _c(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Us.test(t)&&ne(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Us.test(t)&&be(n)?!1:t in e}function bc(e,t){const n=we(e);class o extends Jo{constructor(s){super(n,s,t)}}return o.def=n,o}const yc=typeof HTMLElement<"u"?HTMLElement:class{};class Jo extends yc{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=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,qe(()=>{this._connected||(oi(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);new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}).observe(this,{attributes:!0});const t=(o,r=!1)=>{const{props:s,styles:i}=o;let a;if(s&&!Q(s))for(const l in s){const c=s[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=go(this._props[l])),(a||(a=Object.create(null)))[Re(l)]=!0)}this._numberProps=a,r&&this._resolveProps(o),this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=Q(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(Re))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(s){this._setProp(r,s)}})}_setAttr(t){let n=this.getAttribute(t);const o=Re(t);this._numberProps&&this._numberProps[o]&&(n=go(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(Ke(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ke(t),n+""):n||this.removeAttribute(Ke(t))))}_update(){oi(this._createVNode(),this.shadowRoot)}_createVNode(){const t=q(this._def,ve({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(s,i)=>{this.dispatchEvent(new CustomEvent(s,{detail:i}))};n.emit=(s,...i)=>{o(s,i),Ke(s)!==s&&o(Ke(s),i)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Jo){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 St="transition",vn="animation",Qt=(e,{slots:t})=>Rs(da,wc(e),t);Qt.displayName="Transition";const Ks={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};Qt.props=ve({},os,Ks);const Rt=(e,t=[])=>{Q(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ys=e=>e?Q(e)?e.some(t=>t.length>1):e.length>1:!1;function wc(e){const t={};for(const P in e)P in Ks||(t[P]=e[P]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:S=`${n}-leave-to`}=e,y=xc(r),C=y&&y[0],j=y&&y[1],{onBeforeEnter:N,onEnter:L,onEnterCancelled:H,onLeave:h,onLeaveCancelled:M,onBeforeAppear:k=N,onAppear:$=L,onAppearCancelled:_=H}=t,v=(P,B,ee)=>{Nt(P,B?u:a),Nt(P,B?c:i),ee&&ee()},x=(P,B)=>{P._isLeaving=!1,Nt(P,d),Nt(P,S),Nt(P,m),B&&B()},D=P=>(B,ee)=>{const G=P?$:L,I=()=>v(B,P,ee);Rt(G,[B,I]),Xs(()=>{Nt(B,P?l:s),Tt(B,P?u:a),Ys(G)||qs(B,o,C,I)})};return ve(t,{onBeforeEnter(P){Rt(N,[P]),Tt(P,s),Tt(P,i)},onBeforeAppear(P){Rt(k,[P]),Tt(P,l),Tt(P,c)},onEnter:D(!1),onAppear:D(!0),onLeave(P,B){P._isLeaving=!0;const ee=()=>x(P,B);Tt(P,d),Sc(),Tt(P,m),Xs(()=>{P._isLeaving&&(Nt(P,d),Tt(P,S),Ys(h)||qs(P,o,j,ee))}),Rt(h,[P,ee])},onEnterCancelled(P){v(P,!1),Rt(H,[P])},onAppearCancelled(P){v(P,!0),Rt(_,[P])},onLeaveCancelled(P){x(P),Rt(M,[P])}})}function xc(e){if(e==null)return null;if(pe(e))return[Qo(e.enter),Qo(e.leave)];{const t=Qo(e);return[t,t]}}function Qo(e){return go(e)}function Tt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Nt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Xs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Cc=0;function qs(e,t,n,o){const r=e._endId=++Cc,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=kc(e,t);if(!i)return o();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,m),s()},m=S=>{S.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),e.addEventListener(c,m)}function kc(e,t){const n=window.getComputedStyle(e),o=y=>(n[y]||"").split(", "),r=o(`${St}Delay`),s=o(`${St}Duration`),i=Zs(r,s),a=o(`${vn}Delay`),l=o(`${vn}Duration`),c=Zs(a,l);let u=null,d=0,m=0;t===St?i>0&&(u=St,d=i,m=s.length):t===vn?c>0&&(u=vn,d=c,m=l.length):(d=Math.max(i,c),u=d>0?i>c?St:vn:null,m=u?u===St?s.length:l.length:0);const S=u===St&&/\b(transform|all)(,|$)/.test(o(`${St}Property`).toString());return{type:u,timeout:d,propCount:m,hasTransform:S}}function Zs(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Js(n)+Js(e[o])))}function Js(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Sc(){return document.body.offsetHeight}const Qs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Q(t)?n=>Pn(t,n):t};function Tc(e){e.target.composing=!0}function Gs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const $c={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=Qs(r);const s=o||r.props&&r.props.type==="number";Jt(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=ho(a)),e._assign(a)}),n&&Jt(e,"change",()=>{e.value=e.value.trim()}),t||(Jt(e,"compositionstart",Tc),Jt(e,"compositionend",Gs),Jt(e,"change",Gs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},s){if(e._assign=Qs(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&ho(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},Ic=["ctrl","shift","alt","meta"],Pc={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)=>Ic.some(n=>e[`${n}Key`]&&!t.includes(n))},ot=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const s=Pc[t[r]];if(s&&s(n,t))return}return e(n,...o)},Ec={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ei=(e,t)=>n=>{if(!("key"in n))return;const o=Ke(n.key);if(t.some(r=>r===o||Ec[r]===o))return e(n)},ti={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):_n(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),_n(e,!0),o.enter(e)):o.leave(e,()=>{_n(e,!1)}):_n(e,t))},beforeUnmount(e,{value:t}){_n(e,t)}};function _n(e,t){e.style.display=t?e._vod:"none"}const Oc=ve({patchProp:vc},rc);let ni;function Mc(){return ni||(ni=Da(Oc))}const oi=(...e)=>{Mc().render(...e)},Lc={class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3"},zc={class:"flex justify-between items-end"},jc={class:"inline-block children-pointer-events-auto w-1/3"},Ac={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Bc={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},Dc={class:"inline-block z-20 relative"},ri=we({__name:"ReaderLayout",props:{idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){return(t,n)=>(A(),Y("div",{class:xe(["fixed inset-0 bg-black visible z-[9999999999] text-stone-100 font-sans text-base",{"cursor-none":t.idle}])},[Ce(t.$slots,"default"),X("div",{id:"controls",class:xe(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear inset-2 sm:inset-3 flex flex-col justify-between pb-4 sm:pb-3 md:pb-2 lg:pb-0",{"opacity-100 z-10":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}]),style:Me({paddingTop:`${t.spaceTop||0}px`})},[X("div",Lc,[Ce(t.$slots,"back"),Ce(t.$slots,"exit"),Ce(t.$slots,"chapter-nav")]),X("div",zc,[X("div",jc,[Ce(t.$slots,"page-nav")]),X("div",Ac,[Ce(t.$slots,"reset-zoom")]),X("div",Bc,[Ce(t.$slots,"entry"),X("div",Dc,[Ce(t.$slots,"settings")]),Ce(t.$slots,"full-screen"),Ce(t.$slots,"play")])]),X("div",{class:xe(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[Ce(t.$slots,"progress")],2)],6)],2))}}),Rc=Object.freeze(Object.defineProperty({__proto__:null,default:ri},Symbol.toStringTag,{value:"Module"}));var si;const Go=typeof window<"u",Nc=e=>typeof e=="function",Fc=e=>typeof e=="string",$t=()=>{};Go&&((si=window==null?void 0:window.navigator)!=null&&si.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function bn(e){return typeof e=="function"?e():K(e)}function er(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}const ii=e=>e();function Hc(e,t={}){let n,o,r=$t;const s=a=>{clearTimeout(a),r(),r=$t};return a=>{const l=bn(e),c=bn(t.maxWait);return n&&s(n),l<=0||c!==void 0&&c<=0?(o&&(s(o),o=null),Promise.resolve(a())):new Promise((u,d)=>{r=t.rejectOnCancel?d:u,c&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,u(a())},c)),n=setTimeout(()=>{o&&s(o),o=null,u(a())},l)})}}function Vc(e,t=!0,n=!0,o=!1){let r=0,s,i=!0,a=$t,l;const c=()=>{s&&(clearTimeout(s),s=void 0,a(),a=$t)};return d=>{const m=bn(e),S=Date.now()-r,y=()=>l=d();if(c(),m<=0)return r=Date.now(),y();if(S>m&&(n||!i))r=Date.now(),y();else if(t)return new Promise((C,j)=>{a=o?j:C,s=setTimeout(()=>{r=Date.now(),i=!0,C(y()),c()},m-S)});return!n&&!s&&(s=setTimeout(()=>i=!0,m)),i=!1,l}}function Wc(e=ii){const t=Z(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...s)=>{t.value&&e(...s)};return{isActive:To(t),pause:n,resume:o,eventFilter:r}}function Uc(e){return e}function tr(e){return kr()?(_l(e),!0):!1}function Qe(e,t=200,n={}){return er(Hc(t,n),e)}function li(e,t=200,n=!1,o=!0,r=!1){return er(Vc(t,n,o,r),e)}function ai(e,t=!0){Ls()?Fe(e):t?e():qe(e)}var ci=Object.getOwnPropertySymbols,Kc=Object.prototype.hasOwnProperty,Yc=Object.prototype.propertyIsEnumerable,Xc=(e,t)=>{var n={};for(var o in e)Kc.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&ci)for(var o of ci(e))t.indexOf(o)<0&&Yc.call(e,o)&&(n[o]=e[o]);return n};function qc(e,t,n={}){const o=n,{eventFilter:r=ii}=o,s=Xc(o,["eventFilter"]);return ue(e,er(r,t),s)}var Zc=Object.defineProperty,Jc=Object.defineProperties,Qc=Object.getOwnPropertyDescriptors,Gn=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,fi=Object.prototype.propertyIsEnumerable,di=(e,t,n)=>t in e?Zc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gc=(e,t)=>{for(var n in t||(t={}))ui.call(t,n)&&di(e,n,t[n]);if(Gn)for(var n of Gn(t))fi.call(t,n)&&di(e,n,t[n]);return e},eu=(e,t)=>Jc(e,Qc(t)),tu=(e,t)=>{var n={};for(var o in e)ui.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Gn)for(var o of Gn(e))t.indexOf(o)<0&&fi.call(e,o)&&(n[o]=e[o]);return n};function nu(e,t,n={}){const o=n,{eventFilter:r}=o,s=tu(o,["eventFilter"]),{eventFilter:i,pause:a,resume:l,isActive:c}=Wc(r);return{stop:qc(e,t,eu(Gc({},s),{eventFilter:i})),pause:a,resume:l,isActive:c}}function Ft(e){var t;const n=bn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ht=Go?window:void 0,ou=Go?window.document:void 0;function It(...e){let t,n,o,r;if(Fc(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=ht):[t,n,o,r]=e,!t)return $t;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},a=(u,d,m)=>(u.addEventListener(d,m,r),()=>u.removeEventListener(d,m,r)),l=ue(()=>Ft(t),u=>{i(),u&&s.push(...n.flatMap(d=>o.map(m=>a(u,d,m))))},{immediate:!0,flush:"post"}),c=()=>{l(),i()};return tr(c),c}function pi(e,t=!1){const n=Z(),o=()=>n.value=!!e();return o(),ai(o,t),n}const nr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},or="__vueuse_ssr_handlers__";nr[or]=nr[or]||{};const ru=nr[or];function su(e,t){return ru[e]||t}function iu(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var lu=Object.defineProperty,hi=Object.getOwnPropertySymbols,au=Object.prototype.hasOwnProperty,cu=Object.prototype.propertyIsEnumerable,gi=(e,t,n)=>t in e?lu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mi=(e,t)=>{for(var n in t||(t={}))au.call(t,n)&&gi(e,n,t[n]);if(hi)for(var n of hi(t))cu.call(t,n)&&gi(e,n,t[n]);return e};const uu={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function vi(e,t,n,o={}){var r;const{flush:s="pre",deep:i=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:d=ht,eventFilter:m,onError:S=$=>{console.error($)}}=o,y=(u?Kl:Z)(t);if(!n)try{n=su("getDefaultStorage",()=>{var $;return($=ht)==null?void 0:$.localStorage})()}catch($){S($)}if(!n)return y;const C=bn(t),j=iu(C),N=(r=o.serializer)!=null?r:uu[j],{pause:L,resume:H}=nu(y,()=>h(y.value),{flush:s,deep:i,eventFilter:m});return d&&a&&It(d,"storage",k),k(),y;function h($){try{if($==null)n.removeItem(e);else{const _=N.write($),v=n.getItem(e);v!==_&&(n.setItem(e,_),d&&(d==null||d.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:v,newValue:_,storageArea:n}))))}}catch(_){S(_)}}function M($){const _=$?$.newValue:n.getItem(e);if(_==null)return l&&C!==null&&n.setItem(e,N.write(C)),C;if(!$&&c){const v=N.read(_);return Nc(c)?c(v,C):j==="object"&&!Array.isArray(v)?mi(mi({},C),v):v}else return typeof _!="string"?_:N.read(_)}function k($){if(!($&&$.storageArea!==n)){if($&&$.key==null){y.value=C;return}if(!($&&$.key!==e)){L();try{y.value=M($)}catch(_){S(_)}finally{$?qe(H):H()}}}}}function _i({document:e=ou}={}){if(!e)return Z("visible");const t=Z(e.visibilityState);return It(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var bi=Object.getOwnPropertySymbols,fu=Object.prototype.hasOwnProperty,du=Object.prototype.propertyIsEnumerable,pu=(e,t)=>{var n={};for(var o in e)fu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&bi)for(var o of bi(e))t.indexOf(o)<0&&du.call(e,o)&&(n[o]=e[o]);return n};function hu(e,t,n={}){const o=n,{window:r=ht}=o,s=pu(o,["window"]);let i;const a=pi(()=>r&&"ResizeObserver"in r),l=()=>{i&&(i.disconnect(),i=void 0)},c=ue(()=>Ft(e),d=>{l(),a.value&&r&&d&&(i=new ResizeObserver(t),i.observe(d,s))},{immediate:!0,flush:"post"}),u=()=>{l(),c()};return tr(u),{isSupported:a,stop:u}}function rr(e,t={width:0,height:0},n={}){const{window:o=ht,box:r="content-box"}=n,s=ie(()=>{var l,c;return(c=(l=Ft(e))==null?void 0:l.namespaceURI)==null?void 0:c.includes("svg")}),i=Z(t.width),a=Z(t.height);return hu(e,([l])=>{const c=r==="border-box"?l.borderBoxSize:r==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(o&&s.value){const u=Ft(e);if(u){const d=o.getComputedStyle(u);i.value=parseFloat(d.width),a.value=parseFloat(d.height)}}else if(c){const u=Array.isArray(c)?c:[c];i.value=u.reduce((d,{inlineSize:m})=>d+m,0),a.value=u.reduce((d,{blockSize:m})=>d+m,0)}else i.value=l.contentRect.width,a.value=l.contentRect.height},n),ue(()=>Ft(e),l=>{i.value=l?t.width:0,a.value=l?t.height:0}),{width:i,height:a}}function sr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:i=ht}=n,a=pi(()=>i&&"IntersectionObserver"in i);let l=$t;const c=a.value?ue(()=>({el:Ft(e),root:Ft(o)}),({el:d,root:m})=>{if(l(),!d)return;const S=new IntersectionObserver(t,{root:m,rootMargin:r,threshold:s});S.observe(d),l=()=>{S.disconnect(),l=$t}},{immediate:!0,flush:"post"}):$t,u=()=>{l(),c()};return tr(u),{isSupported:a,stop:u}}function gu(e,t,n={}){const{window:o=ht}=n;return vi(e,t,o==null?void 0:o.localStorage,n)}var yi;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(yi||(yi={}));function ir(e,t,n={}){const{window:o=ht}=n;return vi(e,t,o==null?void 0:o.sessionStorage,n)}var mu=Object.defineProperty,wi=Object.getOwnPropertySymbols,vu=Object.prototype.hasOwnProperty,_u=Object.prototype.propertyIsEnumerable,xi=(e,t,n)=>t in e?mu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bu=(e,t)=>{for(var n in t||(t={}))vu.call(t,n)&&xi(e,n,t[n]);if(wi)for(var n of wi(t))_u.call(t,n)&&xi(e,n,t[n]);return e};bu({linear:Uc},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function yu(e={}){const{window:t=ht,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:s=!0}=e,i=Z(n),a=Z(o),l=()=>{t&&(s?(i.value=t.innerWidth,a.value=t.innerHeight):(i.value=t.document.documentElement.clientWidth,a.value=t.document.documentElement.clientHeight))};return l(),ai(l),It("resize",l,{passive:!0}),r&&It("orientationchange",l,{passive:!0}),{width:i,height:a}}const wu=we({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=Z(null),o=Z(0),r=Z([]),s=ie(()=>r.value[o.value]),i=li(a,500);Fe(()=>{const u=rr(n),d=Qe(()=>l({width:u.width.value,height:u.height.value}),50);d(),ue(u.width,d),ue(u.height,d)});function a(){o.value>=r.value.length-1?t("hide"):o.value++}function l(u){const d=c();r.value=d.map(({rect:m,text:S})=>{const y=m.top<u.height-m.bottom,C=m.left<u.width-m.right;return{text:S,style:{left:`${m.left}px`,top:`${m.top}px`,width:`${m.width}px`,height:`${m.height}px`},textStyle:{left:C?`${m.left-12}px`:void 0,right:C?void 0:`${u.width-m.left}px`,top:y?`${m.bottom+12}px`:`${m.top+20}px`,textAlign:y?void 0:"right",transform:y?void 0:"translateY(-50%)"}}}),o.value>=r.value.length&&(o.value=r.value.length-1)}function c(){var m;const u=(m=n.value)==null?void 0:m.parentElement;if(!u)return[];const d=[];return u.querySelectorAll("[data-tour]").forEach(S=>{var j;const y=(j=S.getAttribute("data-tour"))==null?void 0:j.trim();if(!(y!=null&&y.length))return;const C=S.getBoundingClientRect();d.push({rect:C,text:y})}),d}return(u,d)=>{var m,S;return A(),Y(ge,null,[X("div",{class:xe(["fixed inset-0 bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),X("div",{ref_key:"root",ref:n,class:"tour",onClick:d[0]||(d[0]=ot((...y)=>K(i)&&K(i)(...y),["stop"]))},[s.value?(A(),Y("div",{key:o.value,class:"tour__target",style:Me(s.value.style)},null,4)):Ee("",!0),(A(),Y("div",{key:o.value,class:"tour__text",style:Me((m=s.value)==null?void 0:m.textStyle)},Ye(((S=s.value)==null?void 0:S.text)??""),5))],512)],64)}}}),xu=`.tour{bottom:0;left:0;overflow:hidden;position:fixed;right:0;top:0;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}}
2
+ `,he=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ci=he(wu,[["styles",[xu]]]),Cu=Object.freeze(Object.defineProperty({__proto__:null,default:Ci},Symbol.toStringTag,{value:"Module"})),ku=X("div",{class:"fixed inset-0 bg-black bg-opacity-90"},null,-1),ki=we({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=Z(null),r=Z([]);Fe(async()=>{const l=rr(o),c=Qe(()=>{s({width:l.width.value,height:l.height.value})},50);c(),ue(l.width,c),ue(l.height,c)});function s(l){var d;const c=(d=o.value)==null?void 0:d.parentElement;if(!c)return;const u=Array.from(c.querySelectorAll("#controls [title]"));u.length&&(r.value=i(u,l))}function i(l,c){const u=[],d=[];let m=0,S=0;const y=50,C=25;l.forEach(h=>{var v;const M=(v=h.getAttribute("title"))==null?void 0:v.trim(),k=h.getBoundingClientRect();if(!M||!k.height||!k.width)return;const $=Math.ceil((k.top-10)/y),_=Math.ceil((k.left-10)/y);d.push({isTour:!1,title:M,rect:k,fromX:_,toX:Math.max(_+1,Math.ceil((k.right+10)/y)),fromY:$,toY:Math.max($+1,Math.ceil((k.bottom+10)/y))})}),d.forEach(h=>{for(let M=h.fromY;M<h.toY;M++){u[M]??(u[M]=[]);for(let k=h.fromX;k<h.toX;k++)u[M][k]=h;h.toY>m+1&&(m=h.toY-1),h.toX>S+1&&(S=h.toX-1)}});let j=S/2;d.forEach(h=>{h.isAlignRight=h.fromX>j});const N=(h,M)=>{u[M]??(u[M]=[]);const k=M>=h.toY;if(h.isTour)for(let $=h.fromX;$<h.toX;$++)delete u[h.fromY][$],h.fromY=M,h.toY=M+(k?1:-1),u[M][$]=h;else{const $=h.isAlignRight?h.fromX-3:h.fromX,_=$+3;h.helpItem={fromX:$,toX:_,fromY:M,toY:M+1,isTour:!0,isAlignRight:h.isAlignRight};for(let v=$;v<_;v++)u[M][v]=h.helpItem}},L=(h,M)=>{if(M>m||M<0)return!1;const k=M>=h.toY,$=u[M];if(!$)return N(h,M),!0;const _=$[h.fromX];if(_&&!_.isTour)return!1;if(_&&_.isTour)return L(_,k?M+1:M-1)?(N(h,M),!0):!1;if(!_){const v=h.isAlignRight?-1:1;return $[h.fromX+v]||$[h.fromX+v*2]?L(h,k?M+1:M-1):(N(h,M),!0)}return!1};d.forEach(h=>{if(!L(h,h.toY)){if(h.isAlignRight){const M=u[h.fromY]??[];if(!M.slice(h.fromX-3,h.fromX).filter(Boolean).length){const $=h.fromX-3,_=h.fromX;h.helpItem={isTour:!0,isAlignRight:!0,fromX:$,toX:_,fromY:h.fromY,toY:h.toY};for(let v=h.fromX-3;v<h.fromX;v++)M[v]=h.helpItem;return}}L(h,h.fromY-1)}});const H=[];return d.forEach(h=>{const{title:M,helpItem:k,rect:$,isAlignRight:_,fromX:v,fromY:x,toY:D}=h;if(!M||!k||!$)return;const P=k.fromY>=D,B=k.toY<=x;H.push({title:a(M),style:{top:P?`${$.bottom+(k.fromY-D)*y+C}px`:B?void 0:`${$.top+8}px`,bottom:B?`${c.height-$.top+(k.toY-x)*y+C}px`:void 0,left:_?void 0:`${$.left}px`,right:_?P?`${c.width-$.right}px`:`${c.width-$.right+$.width+C}px`:void 0},arrowStyle:{width:B||P?"2px":`${Math.abs(k.toX-v)*y+C-5}px`,height:B||P?`${(P?k.fromY-D:x-k.toY)*y+C}px`:"2px",top:P?`${$.bottom}px`:B?void 0:`${$.top+20}px`,bottom:B?`${c.height-$.top}px`:void 0,left:_?void 0:`${$.left+$.width/2}px`,right:_?P?`${c.width-$.right+$.width/2}px`:`${c.width-$.right+$.width}px`:void 0}})}),H}function a(l){return n.touchDevice?l.split("(")[0].trim():l}return(l,c)=>(A(),Y(ge,null,[ku,X("div",{ref_key:"root",ref:o,class:"fixed inset-0 z-20 overscroll-contain select-none",onClick:c[0]||(c[0]=ot(u=>t("hide"),["stop"]))},[(A(!0),Y(ge,null,fn(r.value,u=>(A(),Y(ge,{key:u.title},[X("div",{class:"absolute",style:Me(u.style)},Ye(u.title),5),X("div",{class:"absolute bg-stone-300 rounded-lg",style:Me(u.arrowStyle)},null,4)],64))),128))],512)],64))}}),Su=Object.freeze(Object.defineProperty({__proto__:null,default:ki},Symbol.toStringTag,{value:"Module"})),Tu={},$u={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Iu=[X("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[X("circle",{cx:"14",cy:"14",r:"12"}),X("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function Pu(e,t){return A(),Y("svg",$u,Iu)}const Si=he(Tu,[["render",Pu]]),Eu=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"})),Ou={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"},Mu={class:"block w-4 h-4"},Lu={class:"w-12"},Ti=we({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=Si;return t.zoom!==1?(A(),Y("button",Ou,[X("div",Mu,[q(o)]),X("div",Lu,Ye(Math.ceil(t.zoom*100))+"%",1)])):Ee("",!0)}}}),zu=Object.freeze(Object.defineProperty({__proto__:null,default:Ti},Symbol.toStringTag,{value:"Module"})),ju={},Au={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Bu=[X("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function Du(e,t){return A(),Y("svg",Au,Bu)}const lr=he(ju,[["render",Du]]),Ru=Object.freeze(Object.defineProperty({__proto__:null,default:lr},Symbol.toStringTag,{value:"Module"})),Nu={},Fu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Hu=[X("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),X("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function Vu(e,t){return A(),Y("svg",Fu,Hu)}const ar=he(Nu,[["render",Vu]]),Wu=Object.freeze(Object.defineProperty({__proto__:null,default:ar},Symbol.toStringTag,{value:"Module"}));function Uu({touchDevice:e}){const t=Z(!1);let n=0;return Kn("busy:touchDevice",e),Kn("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function cr(){const e=zt("busy:touchDevice"),t=zt("setBusyState");let n=!1;return He(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const Ku=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,s=.65;const i=setInterval(l,20);a();function a(){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 l(){const c=+n||50;r<=c?(r++,s-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${s}`):(o.remove(),clearInterval(i))}},Gt={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>Ku(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},Yu={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"},eo=we({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=cr();let r=!1;function s(){r||(r=!0,o(!0,{desktopOnly:!0}))}function i(){r&&(r=!1,o(!1,{desktopOnly:!0}))}function a(l){n.disabled?l.preventDefault():t("click")}return(l,c)=>dt((A(),_e(Ca(l.href?"a":"button"),Jn(l.href?{href:l.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":l.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!l.disabled,"bg-black bg-opacity-50":!l.transparent}],onClick:ot(a,["stop"]),onMouseenter:s,onMouseleave:i}),{default:oe(()=>[X("div",Yu,[Ce(l.$slots,"default")])]),_:3},16,["class","onClick"])),[[K(Gt),l.disabled?0:15]])}}),Xu=Object.freeze(Object.defineProperty({__proto__:null,default:eo},Symbol.toStringTag,{value:"Module"})),qu={},Zu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ju=[X("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)];function Qu(e,t){return A(),Y("svg",Zu,Ju)}const $i=he(qu,[["render",Qu]]),Gu=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"}));class ef{constructor(){rl(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 tf(){const e=new ef;return He(()=>e.dispose()),Kn("keyController",e),e}function to(e){const t=zt("keyController");Fe(()=>t.addListener(e)),He(()=>t.removeListener(e))}const nf={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},of={class:"text-xl font-medium text-ellipsis overflow-hidden whitespace-nowrap px-3"},rf={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},Ii=we({__name:"BottomSheet",props:{modelValue:{type:Boolean},name:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;to({onKeyDown:r});const o=cr();ue(()=>n.modelValue,s=>o(s));function r(s){n.modelValue&&s.key==="Escape"&&(t("update:modelValue",!1),s.preventDefault())}return(s,i)=>{const a=$i,l=eo;return A(),Y("div",{class:xe(["fixed inset-0 flex flex-col items-center justify-end select-none",{"!pointer-events-none":!n.modelValue}]),onClick:i[2]||(i[2]=()=>t("update:modelValue",!1))},[q(Qt,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:oe(()=>[n.modelValue?(A(),Y("div",{key:0,class:"inline-flex flex-col h-[27rem] w-full sm:w-[32rem] max-h-[80vh] bg-stone-800 bg-opacity-90 backdrop-blur-md rounded-t-xl max-w-full overflow-hidden duration-200",onClick:i[1]||(i[1]=ot(()=>{},["stop"]))},[X("div",nf,[q(l,{transparent:"",onClick:i[0]||(i[0]=()=>t("update:modelValue",!1))},{default:oe(()=>[q(a)]),_:1}),X("div",of,Ye(s.name),1),Ce(s.$slots,"actions")]),X("div",rf,[Ce(s.$slots,"default")])])):Ee("",!0)]),_:3})],2)}}}),sf=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"})),lf=["min","max","step"],af={class:"flex-shrink-0"},Pi=he(we({__name:"InputPercentage",props:{modelValue:{},min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ie({get(){return n.modelValue},set(r){t("update:modelValue",+r)}});return(r,s)=>(A(),Y("div",{class:xe(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:Me({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[dt(X("input",{"onUpdate:modelValue":s[0]||(s[0]=i=>o.value=i),type:"range",min:r.min,max:r.max,step:r.step??1,class:"flex-grow"},null,8,lf),[[$c,o.value]]),X("p",af,[Ce(r.$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}
3
+ `]]]),cf=Object.freeze(Object.defineProperty({__proto__:null,default:Pi},Symbol.toStringTag,{value:"Module"})),uf={class:"flex items-center mb-8 last:mb-0"},ff={class:"flex-grow overflow-hidden"},Ei=we({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(A(),Y("div",uf,[X("div",{class:xe(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Ye(t.label),3),X("div",ff,[Ce(t.$slots,"default")])]))}}),df=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),pf=["onClick","onKeyup"],Oi=we({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Z(null),r=Z({width:"",left:""});Fe(()=>{let i=!1;ue(()=>n.modelValue,a=>{var c;const l=(c=o.value)==null?void 0:c.children[a+1];l&&(r.value={width:l.offsetWidth+"px",left:l.offsetLeft+"px"},l.scrollIntoView({behavior:i?"smooth":"auto",block:"center",inline:"center"}),i=!0)},{immediate:!0})});function s(i){t("update:modelValue",i)}return(i,a)=>(A(),Y("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[X("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Me(r.value)},null,4),(A(!0),Y(ge,null,fn(n.items,(l,c)=>dt((A(),Y("div",{key:c,tabindex:"0",class:xe(["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.modelValue,"text-stone-400":c!=n.modelValue}]),onClick:()=>s(c),onKeyup:[ei(()=>s(c),["enter"]),ei(()=>s(c),["space"])]},[Ct(Ye(l),1)],42,pf)),[[K(Gt),30]])),128))],512))}}),hf=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),gf={},mf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},vf=[X("path",{fill:"currentColor",d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"},null,-1)];function _f(e,t){return A(),Y("svg",mf,vf)}const Mi=he(gf,[["render",_f]]),bf=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"})),yf={},wf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},xf=[X("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),X("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Cf(e,t){return A(),Y("svg",wf,xf)}const Li=he(yf,[["render",Cf]]),kf=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"}));function Sf(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var rt=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(rt||{}),gt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(gt||{});const Tf=.25,$f=5,If=.25,yn=.25,wn=5,Pf=.05,Ef=0,Of=4;function Mf(e){var N,L,H,h,M;const{titleName:t,isWebtoon:n}=e,r=`tkr:${t?Sf(t):location.pathname}`,s=gu(r,{},{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(k){const $={};return k?(k.style!==void 0&&Object.values(gt).includes(k.style)&&($.style=k.style),k.direction!==void 0&&Object.values(rt).includes(k.direction)&&($.direction=k.direction),k.gap!==void 0&&k.gap>=Ef&&k.gap<=Of&&($.gap=k.gap),k.speed!==void 0&&k.speed>=yn&&k.speed<=wn&&($.speed=k.speed),k.zoom!==void 0&&k.zoom>=yn&&k.zoom<=wn&&($.zoom=k.zoom),Object.keys($).length?$:void 0):$}}),i=k=>{if(!s.value){s.value=k;return}const $={...s.value};Object.entries(k).forEach(([_,v])=>{v===void 0?delete $[_]:$[_]=v}),Object.keys($).length?s.value=$:(s.value=void 0,localStorage.removeItem(r))},a=Z(((N=s.value)==null?void 0:N.style)??gt.longStrip),l=Z(((L=s.value)==null?void 0:L.direction)??rt.vertical),c=Z((H=s.value)==null?void 0:H.gap),u=Z(((h=s.value)==null?void 0:h.speed)??1),d=Z(((M=s.value)==null?void 0:M.zoom)??1),m=ie({get(){return n.value?gt.longStrip:a.value??gt.longStrip},set:k=>{a.value=k,i({style:k===gt.longStrip?void 0:k}),k!==gt.longStrip&&l.value===rt.vertical&&(S.value=rt.rtl)}}),S=ie({get:()=>n.value?rt.vertical:l.value,set:k=>{l.value=k,i({direction:k===rt.vertical?void 0:k})}}),y=ie({get:()=>c.value??(n.value?0:1),set(k){c.value=k,i({gap:k})}}),C=ie({get:()=>u.value,set(k){u.value=k,i({speed:k===1?void 0:k})}}),j=ie({get:()=>d.value,set(k){d.value=k,i({zoom:k===1?void 0:k})}});return{direction:S,style:m,gap:y,speed:C,zoom:j,isLongStrip:ie(()=>m.value===gt.longStrip),isDouble:ie(()=>m.value===gt.double),isRTL:ie(()=>S.value===rt.rtl),isVertical:ie(()=>S.value===rt.vertical)}}const zi=we({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=Z(!1);to({onKeyUp:s=>{s.key==="s"&&!s.metaKey&&!s.ctrlKey&&(n.value=!n.value)}});function o(s){t("update:zoom",Math.round(s)/100)}function r(){n.value=!1,t("help")}return(s,i)=>{const a=Li,l=eo,c=Mi,u=Oi,d=Ei,m=Pi,S=Ii;return A(),Y(ge,null,[q(l,{title:"Reader settings (S)",disabled:s.disabled,onClick:i[0]||(i[0]=()=>n.value=!0)},{default:oe(()=>[q(a)]),_:1},8,["disabled"]),q(S,{modelValue:n.value,"onUpdate:modelValue":i[5]||(i[5]=y=>n.value=y),name:s.name},{actions:oe(()=>[q(l,{transparent:"",onClick:r},{default:oe(()=>[q(c)]),_:1})]),default:oe(()=>[q(d,{label:"Style"},{default:oe(()=>[q(u,{"model-value":s.readerStyle,items:s.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":i[1]||(i[1]=y=>t("update:reader-style",y))},null,8,["model-value","items"])]),_:1}),q(d,{label:"Direction"},{default:oe(()=>[q(u,{"model-value":s.direction,items:s.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":i[2]||(i[2]=y=>t("update:direction",y))},null,8,["model-value","items"])]),_:1}),q(d,{label:"Gap"},{default:oe(()=>[q(u,{"model-value":s.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":i[3]||(i[3]=y=>t("update:gap",y))},null,8,["model-value"])]),_:1}),q(d,{label:"Speed"},{default:oe(()=>[q(m,{"model-value":s.speed,min:K(Tf),max:K($f),step:K(If),suffix:"x","onUpdate:modelValue":i[4]||(i[4]=y=>t("update:speed",y))},{suffix:oe(()=>[Ct(Ye(s.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),q(d,{label:"Zoom"},{default:oe(()=>[q(m,{"model-value":Math.ceil(s.zoom*100),min:K(yn)*100,max:K(wn)*100,step:K(Pf)*100,"onUpdate:modelValue":o},{suffix:oe(()=>[Ct(Ye(Math.ceil(s.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),Lf=Object.freeze(Object.defineProperty({__proto__:null,default:zi},Symbol.toStringTag,{value:"Module"})),zf={},jf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Af=[X("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function Bf(e,t){return A(),Y("svg",jf,Af)}const ji=he(zf,[["render",Bf]]),Df=Object.freeze(Object.defineProperty({__proto__:null,default:ji},Symbol.toStringTag,{value:"Module"})),Rf={},Nf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Ff=[X("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function Hf(e,t){return A(),Y("svg",Nf,Ff)}const Ai=he(Rf,[["render",Hf]]),Vf=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),Wf={},Uf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Kf=[X("path",{d:"M18.652 3C18.0277 3 17.5216 3.5061 17.5216 4.13042V5.26083H16.3912C15.7669 5.26083 15.2608 5.76693 15.2608 6.39125C15.2608 7.01556 15.7669 7.52166 16.3912 7.52166H17.5216V8.65208C17.5216 9.27639 18.0277 9.78249 18.652 9.78249C19.2764 9.78249 19.7825 9.27639 19.7825 8.65208V7.52166H20.9129C21.5372 7.52166 22.0433 7.01556 22.0433 6.39125C22.0433 5.76693 21.5372 5.26083 20.9129 5.26083H19.7825V4.13042C19.7825 3.5061 19.2764 3 18.652 3Z",fill:"currentColor"},null,-1),X("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.0183 5.92413L8.24658 7.18954C7.65717 7.34584 7.24677 7.87926 7.24677 8.48905V18.0483C7.24677 18.4887 7.72075 18.7663 8.10482 18.5509L11.4937 16.65C11.7272 16.519 12.012 16.519 12.2454 16.65L18.6384 20.2363C19.1505 20.5235 19.7825 20.1534 19.7825 19.5663L19.7825 12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 6.23454 13.0067 6.07783 13.0183 5.92413Z",fill:"currentColor"},null,-1),X("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.49315 4.13042C4.64457 4.13042 3.95667 4.81833 3.95667 5.6669V19.5663C3.95667 20.1535 4.58867 20.5236 5.10077 20.2363L11.4937 16.6501C11.7272 16.5191 12.012 16.5191 12.2454 16.6501L18.6384 20.2363C19.1505 20.5236 19.7825 20.1535 19.7825 19.5663V12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 5.26083 13.3507 4.13042 13.3507 4.13042H5.49315Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function Yf(e,t){return A(),Y("svg",Uf,Kf)}const Bi=he(Wf,[["render",Yf]]),Xf=Object.freeze(Object.defineProperty({__proto__:null,default:Bi},Symbol.toStringTag,{value:"Module"})),qf={},Zf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Jf=[X("path",{d:"M17.1026 8.89862C17.1114 8.90798 17.1203 8.91723 17.1295 8.92636C17.5709 9.36781 18.2866 9.36781 18.7281 8.92636L22.7247 4.92974C23.1662 4.48828 23.1662 3.77255 22.7247 3.33109C22.2833 2.88964 21.5675 2.88964 21.1261 3.33109L17.9292 6.52793L17.1286 5.72729C16.6871 5.28583 15.9714 5.28583 15.5299 5.72729C15.0885 6.16874 15.0885 6.88448 15.5299 7.32593L17.1026 8.89862Z",fill:"currentColor"},null,-1),X("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9564 5.92413L8.18463 7.18954C7.59522 7.34584 7.18481 7.87926 7.18481 8.48905V18.0483C7.18481 18.4887 7.65879 18.7663 8.04287 18.5509L11.4318 16.65C11.6652 16.519 11.95 16.519 12.1835 16.65L18.5764 20.2363C19.0885 20.5235 19.7205 20.1534 19.7205 19.5663L19.7205 12.0433H18.5901C15.4686 12.0433 12.938 9.5128 12.938 6.39125C12.938 6.23454 12.9448 6.07783 12.9564 5.92413Z",fill:"currentColor"},null,-1),X("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.4312 4.13042C4.58262 4.13042 3.89471 4.81833 3.89471 5.6669V19.5663C3.89471 20.1535 4.52672 20.5236 5.03882 20.2363L11.4318 16.6501C11.6652 16.5191 11.95 16.5191 12.1835 16.6501L18.5764 20.2363C19.0885 20.5236 19.7205 20.1535 19.7205 19.5663V5.6669C19.7205 5.6646 19.7205 5.66229 19.7205 5.65998V12.0433H18.5901C15.4685 12.0433 12.938 9.5128 12.938 6.39125C12.938 5.26083 13.2887 4.13042 13.2887 4.13042H5.4312Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function Qf(e,t){return A(),Y("svg",Zf,Jf)}const Di=he(qf,[["render",Qf]]),Gf=Object.freeze(Object.defineProperty({__proto__:null,default:Di},Symbol.toStringTag,{value:"Module"})),ed={},td={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},nd=[X("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function od(e,t){return A(),Y("svg",td,nd)}const Ri=he(ed,[["render",od]]),rd=Object.freeze(Object.defineProperty({__proto__:null,default:Ri},Symbol.toStringTag,{value:"Module"})),sd=["aria-hidden"],id=["onClick"],ld=["onClick"],ad={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"},cd={class:"whitespace-nowrap"},ur=we({__name:"ButtonDropdown",props:{modelValue:{},label:{},title:{},items:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Z(null),r=Z(!1),s=Z(null),i=Z(!1),a=Z(!1),l=Z(!1);to({onKeyDown:S});const c=cr();function u(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(d(),qe(()=>setTimeout(()=>{var h,M;(M=(h=s.value)==null?void 0:h.children[n.modelValue])==null||M.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),C(o.value)):setTimeout(j,250)}function d(){const h=o.value;if(h){const M=h.getBoundingClientRect(),k=M.x+M.width/2;i.value=M.y>window.innerHeight/2,a.value=k<window.innerWidth/3,l.value=k>window.innerWidth/3*2}}function m(h){h!=n.modelValue&&t("update:modelValue",h),u()}function S(h){r.value&&h.key==="Escape"&&(u(),h.preventDefault())}let y=[];function C(h){const M=window.getComputedStyle(h).zIndex,k=h.style.zIndex;(!M||!(+M>0))&&((!h.parentElement||h.parentElement.childElementCount>1)&&(h.style.zIndex="1",y.push({el:h,zIndex:k})),h.parentElement&&C(h.parentElement))}function j(){y.forEach(({el:h,zIndex:M})=>{h.style.zIndex=M??""}),y=[]}let N=!1;function L(){N||(N=!0,c(!0,{desktopOnly:!0}))}function H(){N&&(N=!1,c(!1,{desktopOnly:!0}))}return(h,M)=>{const k=Ri;return A(),Y("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(A(),Y("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:u})):Ee("",!0),h.items.length?(A(),_e(Qt,{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:oe(()=>[r.value?(A(),Y("ul",{key:0,ref_key:"list",ref:s,"aria-hidden":!r.value,class:xe(["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":i.value,"origin-top top-full translate-y-1.5":!i.value,"left-1/2 -ml-20 text-center":!a.value&&!l.value,"right-0 text-right":l.value}]),onWheelPassive:M[0]||(M[0]=ot(()=>{},["stop"]))},[(A(!0),Y(ge,null,fn(h.items,($,_)=>dt((A(),Y("li",{key:_,tabindex:"-1",class:xe(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":_===h.modelValue}]),onClick:()=>m(_)},[X("div",{class:xe(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":_>0}])},[Ce(h.$slots,"item",{item:$},()=>[Ct(Ye($),1)])],2)],10,id)),[[K(Gt),30]])),128))],42,sd)):Ee("",!0)]),_:3})):Ee("",!0),dt((A(),Y("button",Jn({type:"button",tabindex:"-1",class:["w-full h-10 max-h-full bg-transparent rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":h.disabled}]},h.title?{title:h.title}:{},{onClick:ot(u,["stop"]),onMouseenter:L,onMouseleave:H}),[X("div",ad,[X("span",cd,Ye(h.label),1),h.items.length?(A(),Y("span",{key:0,class:xe(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":i.value}]),"aria-hidden":"true"},[q(k)],2)):Ee("",!0)])],16,ld)),[[K(Gt),30]])],512)}}}),ud=Object.freeze(Object.defineProperty({__proto__:null,default:ur},Symbol.toStringTag,{value:"Module"})),Ni=we({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ie(()=>Math.floor(n.modelValue)),r=ie(()=>n.pages.map(c=>c.map(({index:u})=>`${u+1}`).join("-"))),s=ie(()=>{const c=o.value,u=n.pages.findIndex(d=>d.some(({index:m})=>m===c));return u===-1?n.pages.length-1:u}),i=ie(()=>n.pages.length?`${r.value[s.value]}/${n.totalImgs}`:"--");function a(c){const u=n.pages[c][0].index;l(u)}function l(c){t("update:modelValue",c)}return(c,u)=>{const d=ur;return A(),_e(d,{"model-value":s.value,label:i.value,title:"Current page",items:r.value,disabled:c.disabled,"onUpdate:modelValue":a},null,8,["model-value","label","items","disabled"])}}}),fd=Object.freeze(Object.defineProperty({__proto__:null,default:Ni},Symbol.toStringTag,{value:"Module"})),dd={},pd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},hd=[X("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function gd(e,t){return A(),Y("svg",pd,hd)}const Fi=he(dd,[["render",gd]]),md=Object.freeze(Object.defineProperty({__proto__:null,default:Fi},Symbol.toStringTag,{value:"Module"})),vd={},_d={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},bd=[X("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function yd(e,t){return A(),Y("svg",_d,bd)}const Hi=he(vd,[["render",yd]]),wd=Object.freeze(Object.defineProperty({__proto__:null,default:Hi},Symbol.toStringTag,{value:"Module"})),xd={},Cd={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},kd=[X("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function Sd(e,t){return A(),Y("svg",Cd,kd)}const Vi=he(xd,[["render",Sd]]),Td=Object.freeze(Object.defineProperty({__proto__:null,default:Vi},Symbol.toStringTag,{value:"Module"})),$d={},Id={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Pd=[X("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function Ed(e,t){return A(),Y("svg",Id,Pd)}const Wi=he($d,[["render",Ed]]),Od=Object.freeze(Object.defineProperty({__proto__:null,default:Wi},Symbol.toStringTag,{value:"Module"})),Ui=he(we({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=Z(0);return ue(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const s=lr,i=ar;return n.value?(A(),Y("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(A(),_e(s,{key:0})):(A(),_e(i,{key:1}))])):Ee("",!0)}}}),[["styles",[`.animate-pause-fade{animation:pause-fade .4s linear forwards;transform-origin:center}@keyframes pause-fade{0%{opacity:0;transform:scale(.3)}10%{opacity:1;transform:scale(.35)}55%{opacity:1;transform:scale(.65)}to{opacity:0;transform:scale(1)}}
4
+ `]]]),Md=Object.freeze(Object.defineProperty({__proto__:null,default:Ui},Symbol.toStringTag,{value:"Module"})),Ld={},zd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},jd=[X("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function Ad(e,t){return A(),Y("svg",zd,jd)}const Ki=he(Ld,[["render",Ad]]),Bd=Object.freeze(Object.defineProperty({__proto__:null,default:Ki},Symbol.toStringTag,{value:"Module"})),Yi=we({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=ir("tk:dir",!0),o=Qe(()=>n.value=!1,1250);return ue(()=>t.direction,()=>{n.value=!0,o()}),Fe(()=>{o();let r;const s=_i();ue(s,i=>{i!=="visible"?r=Date.now():Date.now()-r>3e4&&(n.value=!0,o())})}),(r,s)=>{const i=Ki;return A(),_e(Qt,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:oe(()=>[K(n)?(A(),Y("div",{key:0,class:xe(["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":r.direction===K(rt).vertical,"rotate-180":r.direction===K(rt).rtl}])},[q(i)],2)):Ee("",!0)]),_:1})}}}),Dd=Object.freeze(Object.defineProperty({__proto__:null,default:Yi},Symbol.toStringTag,{value:"Module"})),no=[];function Rd(e){no.push(e),He(()=>{const t=no.indexOf(e);t!==-1&&no.splice(t,1)})}function Nd(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,s=t*o;no.forEach(i=>i(r,s))}const Fd=["onClick"],Xi=we({__name:"ZoomWrapper",props:{modelValue:{},pageIndex:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},emits:["update:modelValue","dragEnd","click"],setup(e,{emit:t}){const n=e,o=Z(null),r=Z(Math.min(wn,Math.max(yn,n.modelValue))),s=Z(!1),i=Z(!1),a=Z(!1),l=Z(!1);ue(()=>n.modelValue,I=>G(I)),Fe(()=>{n.touchDevice?(It(window,"touchstart",L),Rd(D)):(It(o,"mousedown",y),ue(()=>n.horizontal,I=>{I?window.addEventListener("wheel",k,{passive:!1}):window.removeEventListener("wheel",k)},{immediate:!0}))}),He(()=>{window.removeEventListener("wheel",k)});let c;to({onKeyDown:I=>{var fe;if(n.busy)return;(fe=o.value)==null||fe.focus();const F=I.key==="Meta",U=I.key==="Control";if(F||U)s.value=!0,window.addEventListener("wheel",d,{passive:!1}),c=()=>{s.value=!1,window.removeEventListener("wheel",d),window.removeEventListener("blur",c),c=void 0},window.addEventListener("blur",c);else if(I.ctrlKey||I.metaKey)switch(I.key){case"0":G(1);break;case"-":G(r.value-.2),I.preventDefault();break;case"=":case"+":G(r.value+.2),I.preventDefault();break}},onKeyUp:()=>{s.value==!0&&(c==null||c())}});function u(I){a.value!==I&&(a.value=I,I?n.playController.pause():(t("dragEnd"),n.playController.resume()))}function d(I){I.stopPropagation(),I.preventDefault();const F=Math.ceil((r.value+I.deltaY*-.01)*100)/100;G(F,{x:I.clientX,y:I.clientY})}let m={x:0,y:0},S={x:0,y:0};function y(I){I.button===0&&(m={x:I.clientX,y:I.clientY},S={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",C),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",C),setTimeout(()=>u(!1))},{once:!0}),I.preventDefault(),I.stopPropagation())}function C(I){u(!0);const F=I.clientX-m.x,U=I.clientY-m.y,fe=o.value;fe.scrollLeft=S.x-F,fe.scrollTop=S.y-U}let j=!1,N={distance:0,zoom:r.value,x:0,y:0};function L(I){n.busy||(j=I.touches.length===2,j&&(u(!0),I.stopPropagation(),I.preventDefault(),N={distance:$(I),zoom:r.value,x:(I.touches[0].clientX+I.touches[1].clientX)/2,y:(I.touches[0].clientY+I.touches[1].clientY)/2}),(j||n.playController.isPlaying&&n.longStrip)&&(window.addEventListener("touchmove",h),window.addEventListener("touchend",H,{once:!0})))}function H(){if(window.removeEventListener("touchmove",h),j){u(!1),j=!1;return}if(!a.value)return;const I=Qe(()=>{u(!1),o.value.removeEventListener("scroll",U)},100),F=setTimeout(I,100);o.value.addEventListener("scroll",U);function U(){clearTimeout(F),I()}}function h(I){if(u(!0),j){I.stopPropagation(),I.preventDefault();const U=$(I)/N.distance;G(Math.ceil(U*N.zoom*100)/100,N)}}const M=Qe(()=>i.value=!1,100);function k(I){n.busy||(i.value||(i.value=!0),M(),I.deltaY&&(!s.value&&o.value&&(o.value.scrollLeft+=I.deltaY*(n.rtl?-1:1)),I.preventDefault()))}function $(I){return Math.hypot(I.touches[0].clientX-I.touches[1].clientX,I.touches[0].clientY-I.touches[1].clientY)}let _=0,v;function x(I){if(!a.value){if(!n.touchDevice){t("click",I);return}_++,v&&clearTimeout(v),_===2&&D(I.clientX,I.clientY),v=setTimeout(()=>{!a.value&&_===1&&t("click",I),v=void 0,_=0},300)}}function D(I,F){if(!_)return;_=0;const U=r.value===1?2:1;G(U,{x:I,y:F})}let P;const B=Qe(()=>{l.value=!1,P=void 0},150);function ee(){if(!l.value){const I=o.value;if(!I)return;const F=I.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;F&&(P={el:F,rect:F.getBoundingClientRect()},l.value=!0)}if(P)return B(),P}async function G(I,F){const U=o.value,fe=Math.min(wn,Math.max(yn,I));if(!U||r.value===fe)return;const Te=ee();if(!Te)return;const Ve=(F==null?void 0:F.x)??U.clientWidth/2,Ie=(F==null?void 0:F.y)??U.clientHeight/2;r.value=fe,t("update:modelValue",fe),await qe();const{el:ct,rect:mt}=Te,en=ct.offsetWidth/mt.width,Oe=ct.offsetHeight/mt.height;U.scrollLeft=ct.offsetLeft-mt.left*en+Ve*(en-1),U.scrollTop=ct.offsetTop-mt.top*Oe+Ie*(Oe-1)}return(I,F)=>(A(),Y("div",{ref_key:"root",ref:o,tabindex:"0",class:xe(["w-full h-full overflow-auto overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":a.value||i.value||l.value,"cursor-grabbing":a.value,"overflow-hidden":l.value}]),style:Me({"font-size":`${r.value}px`}),onClick:ot(x,["stop"])},[Ce(I.$slots,"default")],14,Fd))}}),Hd=Object.freeze(Object.defineProperty({__proto__:null,default:Xi},Symbol.toStringTag,{value:"Module"})),Vd=`.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}}
5
+ `,Wd={},Ud={class:"loading-indicator"};function Kd(e,t){return A(),Y("div",Ud)}const fr=he(Wd,[["render",Kd],["styles",[Vd]]]),Yd=Object.freeze(Object.defineProperty({__proto__:null,default:fr},Symbol.toStringTag,{value:"Module"})),qi=we({__name:"LoadingPlaceholder",setup(e){const t=Z(null),n=Z(!1);return Fe(async()=>{await qe(),sr(t,o=>{n.value=o.some(r=>r.isIntersecting)})}),(o,r)=>{const s=fr;return A(),Y("div",{ref_key:"root",ref:t,class:"flex justify-center items-center"},[n.value?(A(),_e(s,{key:0})):Ee("",!0)],512)}}}),Xd=Object.freeze(Object.defineProperty({__proto__:null,default:qi},Symbol.toStringTag,{value:"Module"})),qd=["data-index"],Zd=["src"],Jd=["src"],Qd=["data-index"],Zi=he(we({__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}},emits:["update:zoom","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=Z(null),r=ie(()=>{var y;return(y=o.value)==null?void 0:y.$el}),s=Z(null),i=rr(r),a=ie(()=>{const{width:y,height:C}=i,j=n.isLongStrip?n.isVertical?y.value:C.value:Math.min(y.value,C.value);return Math.min(4,Math.max(1,Math.ceil(j/400-1)))*n.gap}),l=Z(n.pageIndex),c=Z(n.pageIndex),u=Qe(()=>{const y=n.pageIndex;l.value>y&&(l.value=y),c.value<y&&(c.value=y)},50);ue(()=>n.pageIndex,u);const d=ie(()=>{const{width:{value:y},height:{value:C}}=i;return n.pages.map(j=>{var v;const N=j.some(x=>{var D;return(D=x.img)==null?void 0:D.isLoading}),L=j.map(x=>x.index),H={isLoading:N,indexes:L};if(N||L[L.length-1]<l.value-1||L[0]>c.value+3)return H;const h=j.map(({img:x})=>x).filter(Boolean);if(!h.length||(H.srcs=h.map(({src:x})=>x),h.every(x=>x.hasError)))return H;const k=(v=h.find(x=>!x.hasError))==null?void 0:v.size,$=h.reduce((x,D)=>{var P;return x+(((P=D.size)==null?void 0:P.width)??k.width)},0),_=h.reduce((x,D)=>{var P;return x+(((P=D.size)==null?void 0:P.height)??k.height)},0)/h.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&y/$<C/_?(H.width=Math.min(y,$),H.height=_*H.width/$):H.height=Math.min(C,_),H})}),m=ie(()=>{const y=n.isVertical?"width":"height";return d.value.map(C=>C[y]).filter(Boolean).sort((C,j)=>j-C)[0]});function S(y){if(!n.isLongStrip){const C=n.isVertical?i.height.value:i.width.value,N=(n.isVertical?y.clientY:n.isRTL?C-y.clientX:y.clientX)/C;if(N<=.2){t("prev");return}else if(N>=.8){t("next");return}}t("click")}return(y,C)=>{const j=qi,N=Xi;return A(),_e(N,{ref_key:"root",ref:o,"model-value":y.zoom,"page-index":y.pageIndex,class:xe(["reader-body",{"reader-body--long-strip":y.isLongStrip,"reader-body--pages":!y.isLongStrip,"reader-body--vertical":y.isVertical,"reader-body--rtl":y.isRTL,"reader-body--idle":y.idle}]),"play-controller":y.playController,horizontal:!y.isVertical,rtl:y.isRTL,"touch-device":y.touchDevice,busy:y.busy,"long-strip":y.isLongStrip,style:Me({"--gap":`${a.value}em`,"--space-top":(y.spaceTop||0)+"em","--screen-width-em":K(i).width.value+"em","--screen-height-em":K(i).height.value+"em",...y.isLongStrip?{"--max-size-em":m.value+"em"}:{}}),"onUpdate:modelValue":C[0]||(C[0]=L=>t("update:zoom",L)),onDragEnd:C[1]||(C[1]=()=>t("dragEnd")),onClick:S,onScroll:K(u)},{default:oe(()=>[(A(!0),Y(ge,null,fn(d.value,L=>{var H;return A(),Y("div",Jn({key:y.direction+"_"+L.indexes[0],"data-index":L.indexes[0]},L.indexes.length>1?{"data-index2":L.indexes[1]}:{}),[!((H=L.srcs)!=null&&H.length)||L.isLoading?(A(),_e(j,{key:0,class:"page--loading"})):L.srcs.length==1?(A(),Y("img",{key:1,src:L.srcs[0],style:Me({height:L.height!==void 0?L.height+"em":""})},null,12,Zd)):(A(),Y("div",{key:2,class:xe(["page--double",{"flex-row-reverse":y.isRTL}]),style:Me({width:L.width!==void 0?L.width+"em":"",height:L.height!==void 0?L.height+"em":""})},[(A(!0),Y(ge,null,fn(L.srcs,h=>(A(),Y("div",{key:h},[X("img",{src:h},null,8,Jd)]))),128))],6))],16,qd)}),128)),X("div",{ref_key:"autoNextEl",ref:s,class:"last","data-index":y.totalImgs},[Ce(y.$slots,"end")],8,Qd)]),_:3},8,["model-value","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style","onScroll"])}}}),[["styles",[`.reader-body{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width:1024px){.reader-body{transform:none}}.reader-body--rtl{flex-direction:row-reverse}.reader-body.reader-body--vertical>div{padding:calc(var(--gap)/2) 0}.reader-body:not(.reader-body--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.reader-body:not(.reader-body--vertical)>div{padding:0 calc(var(--gap)/2)}.reader-body--long-strip.reader-body--vertical>div:first-child{margin-top:var(--space-top);padding-top:0}.reader-body--long-strip.reader-body--vertical>div:last-child{padding-bottom:0}.reader-body--long-strip.reader-body--vertical>div{width:var(--max-size-em)}.reader-body--long-strip.reader-body--vertical .page--loading{height:75vh;max-width:100%;width:100vw}.reader-body--long-strip.reader-body--vertical .last{height:var(--screen-height-em)}.reader-body--long-strip:not(.reader-body--vertical)>div{align-items:center;display:flex;height:var(--max-size-em)}.reader-body--long-strip:not(.reader-body--vertical) .page--loading{height:100vh;max-height:100%;max-width:100vw;width:680px}.reader-body--long-strip:not(.reader-body--vertical) .last{width:var(--screen-width-em)}.reader-body--long-strip>div>img{flex-shrink:0;margin:auto}.reader-body--pages:after,.reader-body--pages:before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.reader-body--pages.reader-body--idle:after,.reader-body--pages.reader-body--idle:before{cursor:none}.reader-body--pages>div{align-items:center;display:grid;justify-content:center;min-height:100vh;min-width:100vw;scroll-snap-align:center}.reader-body--pages.reader-body--vertical{--tw-scroll-snap-strictness:mandatory;scroll-snap-type:y var(--tw-scroll-snap-strictness)}.reader-body--pages.reader-body--vertical:after,.reader-body--pages.reader-body--vertical:before{height:20vw;left:0;right:0}.reader-body--pages.reader-body--vertical:before{top:0}.reader-body--pages.reader-body--vertical:after{bottom:0}.reader-body--pages.reader-body--vertical>div{width:var(--screen-width-em)}.reader-body--pages:not(.reader-body--vertical){--tw-scroll-snap-strictness:mandatory;scroll-snap-type:x var(--tw-scroll-snap-strictness)}.reader-body--pages:not(.reader-body--vertical):after,.reader-body--pages:not(.reader-body--vertical):before{bottom:0;top:0;width:20vw}.reader-body--pages:not(.reader-body--vertical):before{left:0}.reader-body--pages:not(.reader-body--vertical):after{right:0}.reader-body--pages:not(.reader-body--vertical)>div{height:var(--screen-height-em)}.reader-body--pages .page--loading{height:100vh;width:100vw}.reader-body--pages .page--double{align-items:center;display:flex;gap:var(--gap);justify-content:center}.reader-body--pages .page--double div{display:flex;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body--pages .page--double div img{flex-shrink:0;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.reader-body>div{flex-shrink:0;margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body 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}
6
6
  `]]]),Gd=Object.freeze(Object.defineProperty({__proto__:null,default:Zi},Symbol.toStringTag,{value:"Module"})),ep={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},tp={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},np={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},Ji=he(we({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=Z(null),o=Z(null),r=Z(!1),s=Z(!1),i=Z(3);return Fe(()=>{let a;sr(o,l=>{s.value=l.some(c=>c.isIntersecting),i.value=5,a&&(clearInterval(a),a=void 0),s.value&&(a=setInterval(()=>{i.value-=1,i.value<=0&&(clearInterval(a),a=void 0,t("next"))},1e3))}),sr(n,l=>{r.value=l.some(c=>c.isIntersecting)}),He(()=>a&&clearInterval(a))}),(a,l)=>(A(),Y("div",{ref_key:"root",ref:n,class:"h-full w-full flex justify-center items-center"},[dt(X("div",ep,[a.hasNext?(A(),Y("div",tp,[s.value?(A(),Y("div",np)):Ee("",!0),dt((A(),Y("button",{ref_key:"nextButton",ref:o,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:l[0]||(l[0]=ot(()=>t("next"),["stop"]))},[Ct(" Next in "+Ye(i.value),1)])),[[K(Gt)]])])):Ee("",!0),dt((A(),Y("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:l[1]||(l[1]=ot(()=>t("hide"),["stop"]))},[Ct(" Hide ")])),[[K(Gt)]])],512),[[ti,r.value||!a.hasNext]])],512))}}),[["styles",[`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
7
- `]]]),op=Object.freeze(Object.defineProperty({__proto__:null,default:Ji},Symbol.toStringTag,{value:"Module"}));async function xn(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 s=await xn(e-1,t,n);r(s)},t)})}function oo(e=0){return new Promise(t=>setTimeout(t,e))}const rp=3;function sp(e){var T;let t=[];const n=Z(((T=e.raw.imgs)==null?void 0:T.filter(Boolean))??[]),o=sn({}),r=[],s=new WeakMap;let i=!0,a=0,l,c=n.value.length?cp(n.value):void 0;const u=Z(e.raw.isWebtoon),d=Z(u.value===void 0||c===void 0),m=Qe(h,100),S=Qe(C,50);d.value?n.value.length?C():N():qe(()=>setTimeout(()=>y(c),10)),He(()=>{i=!1,r.forEach(_=>URL.revokeObjectURL(_))});async function y(_){d.value=!1,await qe(),e.onReady(_),ue(()=>Math.floor(e.page.value),async(v,x)=>{el({contentEl:l,imgEls:t,page:v,smooth:!0}),x??(x=-1),v!==x&&(a=Math.max(0,a-Math.abs(v-x))),S()},{immediate:!0})}function C(){const _=Math.floor(e.page.value),v=x=>{a>rp||j(x)};for(let x=_;x<n.value.length;x++)v(x);for(let x=_-1;x>=0;x--)v(x)}async function j(_){const v=n.value[_];if(!(!i||!v||o[v])){if(!o[v]){o[v]={src:v,isLoading:!0,hasError:!1},a++;const x=await ap(v);if(o[v]={src:v,size:x,isLoading:!1,hasError:!x},a=Math.max(0,a-1),x&&!u.value&&_>Math.min(1,n.value.length-2)){const D=x.height/x.width>2.5;u.value!==D&&(u.value=D)}d.value&&u.value!==void 0&&c!==void 0&&y(c)}S()}}function N(){let _=!1;const v=new MutationObserver(()=>{l&&m(l)});He(async()=>{v.disconnect();const x=e.page.value;await oo(),el({contentEl:l,imgEls:t,page:x})}),L(x=>{l!==x&&(l=x,v.disconnect(),v.observe(l,{childList:!0,subtree:!0}),_?m(l):(_=!0,h(l)))})}async function L(_){var ee;const v=(ee=e.spec)==null?void 0:ee.content;if(!v)return;const x=await ip(e.spec);let D=v?await xn(x?100:1,10,()=>document.querySelector(v)):void 0;if(!D)return;_(D);let P=0;const B=async()=>{if(i&&!(D!=null&&D.isConnected)){if(P=0,D=await xn(50,20,()=>{const G=document.querySelector(v);return G!=null&&G.isConnected&&G!==D?G:void 0}),!D)return;_(D)}!i||++P>=10||setTimeout(B,200)};setTimeout(B,200)}let H=0;async function h(_){var B;if(!i||!_.isConnected)return;const v=Date.now();H=v;let x,D;const P=(B=e.spec)==null?void 0:B.imgDivs;if(P){if(D=Array.from(_.querySelectorAll(P)),x=await Promise.all(D.map(async(ee,G)=>{const I=Array.from(ee.querySelectorAll("img,canvas"));for(const F of I){const U=await k({ts:v,el:F,index:G,total:D.length,onImgLoad:()=>m(_)});if(U)return U}})),!i||!_.isConnected||H!==v)return}else{const ee=Array.from(_.querySelectorAll("img,canvas")),G=await Promise.all(ee.map((F,U)=>k({ts:v,el:F,index:U,total:ee.length,onImgLoad:()=>m(_)})));if(!i||!_.isConnected||H!==v)return;D=ee.filter((F,U)=>G[U]),x=G.filter(Boolean);const I=x.filter((F,U)=>F&&U!==x.lastIndexOf(F));I.length&&(x=x.filter(F=>F&&!I.includes(F)))}c??(c=Gi(D)),(x.length!==n.value.length||x.some((ee,G)=>n.value[G]!==ee))&&(t=D,n.value=x,S(),c!==void 0&&d.value&&u.value!==void 0&&n.value.some(Boolean)&&y(c))}const M=Date.now();async function k({ts:_,el:v,index:x,total:D,onImgLoad:P}){const B=s.get(v);let ee,G;if(v.tagName.toLowerCase()==="canvas"){if(B)return B.src;ee=await Qi(v)}else{if(v._tkLoadId_!==M&&(v._tkLoadId_=M,v.addEventListener("load",P),He(()=>{v._tkLoadId_===M&&delete v._tkLoadId_,v.removeEventListener("load",P)})),G=up(v),!G)return;if(G===(B==null?void 0:B.originalSrc))return B.src;if(ee=await lp(v,G),!i||H!==_)return;if(u.value===void 0&&x>Math.min(1,D-2)){const F=+(v.getAttribute("width")??0),U=+(v.getAttribute("height")??0);F&&U&&(u.value=U/F>2.5)}}return ee&&(s.set(v,{src:ee,originalSrc:G}),ee.startsWith("blob:")&&r.push(ee)),ee}return{isLoading:ie(()=>d.value),asyncImgs:ie(()=>n.value.map(_=>_?o[_]:void 0)),isWebtoon:ie(()=>u.value??!1)}}async function ip(e){const{lstrip:t,lstripBtn:n}=e||{};if(!n||!!t&&!!document.querySelector(t))return!1;const r=await xn(50,30,()=>document.querySelector(n));if(!r)return!1;if(r.tagName.toLowerCase()==="a"&&!r._tkDirty_){r._tkDirty_=!0;const s=i=>i.preventDefault();r.addEventListener("click",s),He(()=>{delete r._tkDirty_,r.removeEventListener("click",s)})}return r.click(),await oo(),!0}function Qi(e){return new Promise(t=>{if(e.isConnected&&(e.width<200||e.height<200))return t(void 0);const n=o=>{if(!o)return t(void 0);const r=URL.createObjectURL(o);t(r)};e.toBlob(n,"image/png",1)})}async function lp(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),r=o.getContext("2d"),s=e.naturalWidth,i=e.naturalHeight;return o.width=s,o.height=i,r==null||r.drawImage(e,0,0,s,i),await Qi(o)}function ap(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{const{naturalWidth:r,naturalHeight:s}=n;s&&r&&(t({width:r,height:s}),clearInterval(o))},20);n.onerror=()=>{t(void 0),clearInterval(o)},n.src=e})}function cp(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src));return Gi(n)}function Gi(e){for(let t=0;t<e.length;t++){const n=e[t].getBoundingClientRect();if(n.bottom<=0)continue;const o=n.top;return t+(o>=0?0:Math.floor(-o/n.height*100)/100)}return 0}function up(e){const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden")return;const n=e.getBoundingClientRect();if(n.width&&n.height&&(n.width<200||n.height<200))return;const o=e.getAttributeNames(),r=o.indexOf("src");r!==-1&&(o.splice(r,1),o.push("src"));for(const s of o){if(s!=="data-url"&&s!=="data-original"&&!s.includes("src"))continue;const i=e.getAttribute(s);if(i)return s==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:i.replace(/(\n|\t)/g," ").trim()}}function el({contentEl:e,imgEls:t,page:n,smooth:o}){var a;const r=n>=t.length,s=o?"smooth":"instant";if(r){(a=t[t.length-1])==null||a.scrollIntoView({block:"end",behavior:s});return}const i=t[Math.floor(n)];i&&setTimeout(()=>{const l=dr(e??document.documentElement),c=i.offsetTop+(r?1:n%1)*i.getBoundingClientRect().height;l==null||l.scrollTo({top:c,behavior:s})})}function dr(e){if(e)return e.scrollHeight>e.clientHeight?e===document.body?dr(document.documentElement)??e:e:dr(e.parentElement??void 0)}function fp(e,t){return ie(()=>t.value?tl(e.value):e.value.map((n,o)=>[{img:n,index:o}]))}function tl(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height)?[n[0]]:n;return[r.map((s,i)=>({img:s,index:t+i})),...tl(e.slice(r.length),t+r.length)]}function dp(e){const t=typeof e=="number"?Math.max(0,e):0,n=sessionStorage.getItem("tk:page:path");return n!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),n&&sessionStorage.removeItem("tk:page")),ir("tk:page",t,{writeDefaults:!1,mergeDefaults(o){return typeof o=="number"?Math.max(0,o):t}})}function pp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const pr=40;function hp({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:s,spaceTop:i,scrollEl:a,interferePlayer:l,onChangedPage:c}){let u=!1,d=!1,m;const S=li(H,300),y=Qe(()=>d=!0,100);function C(){let v=null;ca(async()=>{a.value&&a.value!==v&&(v=a.value,N(e.value),v==null||v.removeEventListener("scroll",S),a.value.addEventListener("scroll",S))});const{width:x,height:D}=yu();ue(x,j),ue(D,j),ue(n,j),ue(t,j)}async function j(){u=!0;const v=e.value;if(await qe(),h()===v){u=!1;return}N(v)}function N(v,{smooth:x}={smooth:!1}){const D=a.value;if(!D)return;u=!0;const P=async()=>{await qe(),u=!1,y()},B=Math.floor(v),ee=D.querySelector(`[data-index="${B}"],[data-index2="${B}"]`);if(!ee){P();return}l(async()=>{await L(D,!o.value&&x,async()=>{await _(D,ee,{smooth:x,page:v})}),await P()})}async function L(v,x,D){x&&v.style.setProperty("scroll-snap-type","none"),await D(),x&&v.style.removeProperty("scroll-snap-type")}function H(){if(!a.value||u||!d)return;const v=h();v!==void 0&&v!==e.value&&c(v)}function h(){const v=M();if(!v)return;const x=+v.getAttribute("data-index")||0;return o.value?Math.floor((x+k(v))*100)/100:x}function M(){m??(m=a.value.getRootNode());const v=m.elementsFromPoint(r.value||!o.value?window.innerWidth/2:s.value?window.innerWidth-pr:pr,r.value&&o.value?i.value||pr:window.innerHeight/2);for(let x=0;x<v.length;x++){const D=v[x];if(D.hasAttribute("data-index"))return D;if(D===a.value)break}}function k(v){const x=v.getBoundingClientRect();return r.value?Math.abs(x.top-(i.value||0))/x.height:s.value?Math.max(0,x.right-a.value.clientWidth)/x.width:Math.abs(x.left)/x.width}let T=!1;async function _(v,x,D){if(T)return;const P=x.getBoundingClientRect();if(!o.value){if(r.value){if(P.top<=0&&P.bottom>=v.clientHeight)return}else if(P.left<=0&&P.right>=v.clientWidth)return}T=!0;const B=r.value?v.scrollTop:v.scrollLeft,ee=D.page,G=o.value?ee%1:0,I=await xn(30,10,async()=>{await oo();let $e;return o.value?r.value?$e=x.offsetTop+G*x.offsetHeight-(i.value??0):s.value?$e=x.offsetLeft-v.clientWidth+x.offsetWidth-G*x.offsetWidth:$e=x.offsetLeft+G*x.offsetWidth:r.value?$e=x.offsetTop+(P.top>0?0:P.height-v.clientHeight):$e=x.offsetLeft+(P.left>0?0:P.width-v.clientWidth),ee>.5&&Math.abs($e)<100?void 0:$e})??0;if(!D.smooth){r.value?v.scrollTop=I:v.scrollLeft=I,T=!1;return}const F=I-B,U=30;let fe=0;return new Promise($e=>{(function Ve(){const Ie=gp(fe,B,F,U);r.value?v.scrollTop=Ie:v.scrollLeft=Ie,fe++,fe<=U?requestAnimationFrame(Ve):($e(),T=!1)})()})}return{init:C,goToPage:N}}function gp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function mp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:s,speed:i,onLongIdle:a}){const l=ir("tk:isPlaying",e,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults:(_,v)=>_===void 0?v:_===!0||_==="true"}),c=Z(!1);let u,d;const m=Qe(k,100);let S;const y=Qe(()=>{c.value=!0,clearTimeout(S),S=l.value?void 0:setTimeout(a,s.value?3e4:6e4)},t?2e3:1e3),C=()=>setTimeout(()=>{c.value=!1,y(),S&&(clearTimeout(S),S=void 0)},30);C(),t||It(window,"mousemove",C);const j=_i();Fe(()=>{ue(j,_=>{l.value&&(_==="visible"?k():d==null||d())}),ue(i,()=>N()),ue(s,_=>{_||H()})}),He(()=>{clearTimeout(S),S=void 0});async function N(_){l.value&&(d==null||d()),_&&(await qe(),await _()),l.value&&m()}function L(){l.value?H():h()}function H(){l.value&&(l.value=!1,d==null||d(),C())}function h(){!l.value&&s.value&&(l.value=!0,k(),C())}function M(){d==null||d()}function k(){const _=n.value;if(!l.value||!_)return;const v=o.value?_.scrollHeight-_.clientHeight:_.scrollWidth-_.clientWidth,x=T();if(v<=x){H();return}d=()=>{u=Date.now(),d=void 0};const D=Date.now();u=D;const P=.05*i.value,B=o.value?"scrollTop":"scrollLeft";let ee=Date.now(),G=0;const I=()=>{if(u!==D)return;const F=Date.now(),U=F-ee;ee=F;const fe=P*U+G;fe>=1?(G=fe%1,_[B]+=(fe-G)*(r.value?-1:1)):G=fe,setTimeout(I,1)};I()}function T(){const _=n.value;return o.value?_.scrollTop:r.value?-_.scrollLeft:_.scrollLeft}return{isPlaying:l,isIdle:c,toggle:L,play:h,pause:M,resume:k,stop:H,interfere:N,awake:C}}function vp(e){var S,y,C,j,N;let t=-1,n=(S=e.prev)==null?void 0:S.slug,o=(y=e.next)==null?void 0:y.slug;const{vol:r,inferVol:s,chap:i,title:a,slug:l,basePath:c}=e,u=r??s,d=a.chapters??[],m=(d==null?void 0:d.length)>1?d:[];if(m.length){if(t=m.findIndex(L=>L.slug===e.slug),t===-1&&(t=m.findIndex(L=>(L.vol??L.inferVol)===u&&L.chap===i)),t===-1&&(t=m.findIndex(L=>l.startsWith(`${L.slug}-`)&&l.length-L.slug.length>3)),t!==-1)n??(n=(C=m[t+1])==null?void 0:C.slug),o??(o=(j=m[t-1])==null?void 0:j.slug);else if(!n&&!o){const L=m.findIndex(H=>{const h=H.vol??H.inferVol;return u===void 0||h===void 0||u===h?H.chap<i:h<u});L!==-1?(n=m[L].slug,o=(N=m[L-1])==null?void 0:N.slug):o=m[m.length-1].slug}}return{activeIndex:t,activeLabel:nl({vol:r,chap:i}),chapters:m.map(L=>({label:nl(L),path:hr(c,L.slug)})),prevPath:hr(c,n),nextPath:hr(c,o)}}function hr(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function nl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const _p={key:0,class:"flex justify-center items-center w-full h-full"},bp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},yp=we({...{inheritAttrs:!1},__name:"TrackkunReader",props:{raw:{},spec:{},page:{},spaceTop:{},spaceBottom:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},isGuest:{type:Boolean},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean}},emits:["pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","longIdle","finished"],setup(e,{emit:t}){const n=e;let o=!1,r=!1,s;const i=Uu({touchDevice:n.touchDevice}),a=dp(n.page),{asyncImgs:l,isLoading:c,isWebtoon:u}=sp({raw:n.raw,spec:n.spec,page:a,onReady(g){n.isAutoShow===!1?a.value=g:a.value>l.value.length&&(a.value=Math.max(0,l.value.length-1)),I.init(),setTimeout(()=>{s=U()},50)},onError:()=>{}}),{direction:d,style:m,isRTL:S,isDouble:y,isVertical:C,isLongStrip:j,gap:N,speed:L,zoom:H}=Mf({titleName:n.raw.title.name,isWebtoon:u}),h=fp(l,y),M=ie(()=>a.value>=l.value.length),k=ie(()=>vp(n.raw)),T=ie(()=>{var g,b;return S.value?(g=k.value)==null?void 0:g.nextPath:(b=k.value)==null?void 0:b.prevPath}),_=ie(()=>{var g,b;return S.value?(g=k.value)==null?void 0:g.prevPath:(b=k.value)==null?void 0:b.nextPath}),v=Z(null),x=Z(null),D=Z(!1),P=Z(!1),B=mp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:ie(()=>{var g;return(g=v.value)==null?void 0:g.$el}),speed:L,isRTL:S,isVertical:C,isLongStrip:j,onLongIdle:()=>t("longIdle")});ue(B.isPlaying,g=>{g||p(!1),t("playingChanged",g)}),ue(B.isIdle,g=>{B.isPlaying.value&&p(g)}),ue(i,g=>{!g&&B.isIdle.value?B.awake():g&&n.fullScreen&&p()});const ee=ie(()=>!n.touchDevice&&B.isIdle.value&&!i.value),G=ie({get(){return H.value},set(g){B.interfere(()=>{H.value=g})}}),I=hp({page:a,style:m,direction:d,isLongStrip:j,isVertical:C,isRTL:S,spaceTop:ie(()=>n.spaceTop),scrollEl:ie(()=>{var g;return(g=v.value)==null?void 0:g.$el}),interferePlayer:g=>B.interfere(g),onChangedPage(g){const b=l.value.length;if(g<0||g>=b+1)return;const $=a.value;a.value=g,t("pageChanged",g),g>=b?(p(!1),B.stop()):g===0?p(!1):r||(j.value?s!==void 0&&U()-s>300&&p(!0):Math.abs($-g)===1&&p(!0)),!o&&g>=b-2&&(o=!0,t("finished"))}}),F=ie(()=>Math.floor(a.value));function U(){var b;const g=(b=v.value)==null?void 0:b.$el;return g?C.value?g.scrollTop:S.value?-g.scrollLeft:g.scrollLeft:0}const fe=()=>B.interfere(()=>oo(100));tf().addListener({onKeyDown:g=>{if(n.tourEnabled)return;const b=j.value&&C.value,$=j.value&&!C.value,W=!j.value&&C.value,V=!j.value&&!C.value;switch(g.key){case" ":g.preventDefault(),j.value?(R(!1),B.toggle()):vt();break;case"ArrowUp":case"PageUp":b?fe():W&&(g.preventDefault(),st());break;case"ArrowDown":case"PageDown":b?fe():W&&(g.preventDefault(),vt());break;case"ArrowLeft":$?fe():V?(g.preventDefault(),tn()):C.value&&mt();break;case"ArrowRight":$?fe():V?(g.preventDefault(),ro()):C.value&&ct();break}},onKeyUp:g=>{switch(g.key){case"f":E();break;case"t":w();break;case"h":R();break}}}),Fe(()=>{It("fullscreenchange",()=>{D.value=!!document.fullscreenElement})});function Ve(){!n.touchDevice&&!j.value&&I.goToPage(F.value,{smooth:!0})}function Ie(){if(B.isPlaying.value){!n.fullScreen||!n.touchDevice?B.stop():B.awake();return}p()}function ct(){var g;Oe((g=k.value)==null?void 0:g.nextPath)}function mt(){var g;Oe((g=k.value)==null?void 0:g.prevPath)}function en(g){var $,W,V;const b=(V=(W=($=k.value)==null?void 0:$.chapters)==null?void 0:W[g])==null?void 0:V.path;b&&Oe(b)}function Oe(g){g&&(location.href=g.includes("://")?g:location.origin+g)}function tn(){S.value?vt():st()}function ro(){S.value?st():vt()}function st(){var $;const g=h.value,b=M.value?g[g.length-1][0].index:($=g[nn()-1])==null?void 0:$[0].index;b!==void 0?I.goToPage(b):mt()}function vt(){var b;const g=M.value?F.value+1:((b=h.value[nn()+1])==null?void 0:b[0].index)??l.value.length;I.goToPage(g)}function nn(){const g=F.value,b=h.value.findIndex($=>$.some(({index:W})=>W===g));return b===-1?h.value.length-1:b}function f(){pp(),B.stop(),t("dispose")}async function p(g){if(i.value&&!n.fullScreen)return;r=!0;const b=typeof g=="boolean"?g:!n.fullScreen;t("fullScreenChanged",b),b&&setTimeout(()=>{n.fullScreen&&i.value&&t("fullScreenChanged",!1)},100)}function w(){n.entryId?z():O()}function E(){var g,b;document.fullscreenElement?document.exitFullscreen():(b=(g=x.value)==null?void 0:g.$el)==null||b.requestFullscreen()}function O(){B.stop(),t("addEntry")}function z(){B.stop(),t("openEntry",n.entryId)}function R(g){P.value!==g&&(P.value=!P.value,P.value&&B.isPlaying&&B.stop())}return(g,b)=>{const $=fr,W=Ji,V=Zi,J=Yi,te=Ui,re=Wi,le=eo,de=Vi,me=ur,We=Hi,Pt=Fi,so=Ni,Ht=Di,io=Bi,ze=Ai,Ge=ji,lo=zi,Op=ar,Mp=lr,Lp=$i,zp=ki,jp=Ci,Ap=ri;return A(),_e(Ap,{ref_key:"root",ref:x,"full-screen":!!g.fullScreen,idle:ee.value,"space-top":n.spaceTop,"space-bottom":n.spaceBottom,"touch-device":g.touchDevice,rtl:K(S),onClick:b[11]||(b[11]=ot(()=>{},["stop"]))},ds({back:oe(()=>[q(le,{href:g.raw.title.url,title:"Back to manga"},{default:oe(()=>[q(re)]),_:1},8,["href"])]),"chapter-nav":oe(()=>[q(me,{modelValue:k.value.activeIndex,label:k.value.activeLabel,title:"Select chapter",items:k.value.chapters,"onUpdate:modelValue":en},{item:oe(({item:je})=>[Ct(Ye(je.label),1)]),_:1},8,["modelValue","label","items"]),T.value||_.value?(A(),Y("div",bp,[q(le,{title:`${K(S)?"Next":"Prev"} chapter (←)`,href:T.value,disabled:!T.value,class:"!rounded-r-none"},{default:oe(()=>[q(We)]),_:1},8,["title","href","disabled"]),q(le,{title:`${K(S)?"Prev":"Next"} chapter (→)`,href:_.value,disabled:!_.value,class:"!rounded-l-none"},{default:oe(()=>[q(Pt)]),_:1},8,["title","href","disabled"])])):Ee("",!0)]),entry:oe(()=>[q(le,{title:g.entryId?"View entry (T)":"Add to Trackkun (T)","data-tour":"Press here to add this manga to your Trackkun collection",onClick:w},{default:oe(()=>[g.entryId?(A(),_e(Ht,{key:0})):(A(),_e(io,{key:1}))]),_:1},8,["title"])]),settings:oe(()=>[q(lo,{"reader-style":K(m),"onUpdate:readerStyle":b[3]||(b[3]=je=>ye(m)?m.value=je:null),direction:K(d),"onUpdate:direction":b[4]||(b[4]=je=>ye(d)?d.value=je:null),gap:K(N),"onUpdate:gap":b[5]||(b[5]=je=>ye(N)?N.value=je:null),speed:K(L),"onUpdate:speed":b[6]||(b[6]=je=>ye(L)?L.value=je:null),zoom:G.value,"onUpdate:zoom":b[7]||(b[7]=je=>G.value=je),name:g.raw.title.name,webtoon:K(u),disabled:K(c),onHelp:R},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]),"reset-zoom":oe(()=>[q(Qt,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:oe(()=>[q(Lp,{zoom:G.value,onClick:b[9]||(b[9]=ot(()=>G.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:oe(()=>[X("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Me({width:`${K(a)/(K(l).length-1)*100}%`})},null,4)]),default:oe(()=>[K(c)||!K(l).length?(A(),Y("div",_p,[q($)])):(A(),Y(ge,{key:1},[q(V,{ref_key:"body",ref:v,zoom:G.value,"onUpdate:zoom":b[0]||(b[0]=je=>G.value=je),"page-index":F.value,pages:K(h),"total-imgs":K(l).length,direction:K(d),gap:K(N),"is-long-strip":K(j),isRTL:K(S),"is-vertical":K(C),"space-top":g.spaceTop,"space-bottom":n.spaceBottom,busy:K(i),idle:ee.value,"play-controller":K(B),"touch-device":g.touchDevice,onPrev:st,onNext:vt,onClick:Ie,onDragEnd:Ve,onWheelPassive:b[1]||(b[1]=()=>K(B).interfere())},ds({_:2},[!K(c)&&K(l).length?{name:"end",fn:oe(()=>[q(W,{"has-next":!!k.value.nextPath,onNext:ct,onHide:f},null,8,["has-next"])]),key:"0"}:void 0]),1032,["zoom","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","space-bottom","busy","idle","play-controller","touch-device"]),dt(q(J,{direction:K(d)},null,8,["direction"]),[[ti,!M.value&&!g.tourEnabled&&!P.value]]),M.value?Ee("",!0):(A(),_e(te,{key:0,playing:!!K(B).isPlaying.value},null,8,["playing"]))],64)),P.value?(A(),_e(zp,{key:2,"touch-device":g.touchDevice,onHide:R},null,8,["touch-device"])):Ee("",!0),g.tourEnabled?(A(),_e(jp,{key:3,onHide:b[10]||(b[10]=()=>t("tourEnabledChanged",!1))})):Ee("",!0)]),_:2},[g.touchDevice?void 0:{name:"exit",fn:oe(()=>[q(le,{title:"Hide reader","data-tour":"You have entered Trackkun reader mode, press here to return to the original page",onClick:f},{default:oe(()=>[q(de)]),_:1})]),key:"0"},K(h).length?{name:"page-nav",fn:oe(()=>[q(so,{"model-value":K(a),disabled:K(c),pages:K(h),"total-imgs":K(l).length,"onUpdate:modelValue":b[2]||(b[2]=je=>K(I).goToPage(je))},null,8,["model-value","disabled","pages","total-imgs"])]),key:"1"}:void 0,g.touchDevice?void 0:{name:"full-screen",fn:oe(()=>[q(le,{title:`${D.value?"Exit":"Enter"} fullscreen (F)`,onClick:E},{default:oe(()=>[D.value?(A(),_e(ze,{key:0})):(A(),_e(Ge,{key:1}))]),_:1},8,["title"])]),key:"2"},K(j)?{name:"play",fn:oe(()=>[q(le,{"data-tour":"Press here to play like a video",title:`${K(B).isPlaying.value?"Pause":"Play"} (Space)`,disabled:K(c),onClick:b[8]||(b[8]=()=>K(B).toggle())},{default:oe(()=>[K(B).isPlaying.value?(A(),_e(Op,{key:0})):(A(),_e(Mp,{key:1}))]),_:1},8,["title","disabled"])]),key:"3"}:void 0]),1032,["full-screen","idle","space-top","space-bottom","touch-device","rtl"])}}}),ol=he(yp,[["styles",[`/*! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:Helvetica,sans-serif;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-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}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{color:inherit;font-family:inherit;font-size:100%;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}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-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-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}}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.inset-2{bottom:8px;left:8px;right:8px;top:8px}.left-0{left:0}.top-0{top:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.top-full{top:100%}.left-1\\/2{left:50%}.right-0{right:0}.top-1\\/2{top:50%}.top-1{top:4px}.z-50{z-index:50}.z-20{z-index:20}.z-10{z-index:10}.z-\\[9999999999\\]{z-index:9999999999}.-z-10{z-index:-10}.z-30{z-index:30}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.ml-auto{margin-left:auto}.-ml-20{margin-left:-80px}.ml-1{margin-left:4px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.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-full{height:100%}.h-0\\.5{height:2px}.h-0{height:0}.h-12{height:48px}.h-\\[27rem\\]{height:432px}.h-16{height:64px}.h-10{height:40px}.h-4{height:16px}.h-9{height:36px}.h-24{height:96px}.h-1\\.5{height:6px}.h-1{height:4px}.h-7{height:28px}.h-8{height:32px}.h-6{height:24px}.h-20{height:80px}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-full{max-height:100%}.w-full{width:100%}.w-28{width:112px}.w-40{width:160px}.w-4{width:16px}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-screen{width:100vw}.w-1\\/3{width:33.333333%}.w-\\[4\\.5rem\\]{width:72px}.max-w-full{max-width:100%}.max-w-xs{max-width:320px}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-right{transform-origin:right}.origin-bottom{transform-origin:bottom}.origin-top{transform-origin:top}.translate-y-full{--tw-translate-y:100%}.-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-1\\.5{--tw-translate-y:-6px}.-translate-y-1{--tw-translate-y:-4px}.-translate-y-1,.translate-y-1\\.5{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\\.5{--tw-translate-y:6px}.translate-y-1{--tw-translate-y:4px}.-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-x-1\\/2{--tw-translate-x:-50%}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.translate-y-0{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-0{--tw-translate-y:0px}.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-pointer{cursor:pointer}.cursor-default{cursor:default}.cursor-none{cursor:none}.cursor-auto{cursor:auto}.cursor-grabbing{cursor:grabbing}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.\\!snap-none{scroll-snap-type:none!important}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-\\[1px\\]{gap:1px}.gap-6{gap:24px}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-2xl{border-radius:16px}.rounded-sm{border-radius:2px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-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-2{border-width:2px}.border{border-width:1px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/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-opacity-50{--tw-bg-opacity:.5}.bg-opacity-90{--tw-bg-opacity:.9}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-40{--tw-bg-opacity:.4}.object-contain{-o-object-fit:contain;object-fit:contain}.p-6{padding:24px}.p-2{padding:8px}.p-4{padding:16px}.p-1{padding:4px}.px-6{padding-left:24px;padding-right:24px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.py-2{padding-bottom:8px;padding-top:8px}.py-1{padding-bottom:4px;padding-top:4px}.pt-3{padding-top:12px}.pb-12{padding-bottom:48px}.pl-1{padding-left:4px}.pb-4{padding-bottom:16px}.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-xl{font-size:20px;line-height:28px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/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-50{opacity:.5}.opacity-100{opacity:1}.opacity-90{opacity:.9}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur:blur(8px)}.blur,.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-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.duration-150{transition-duration:.15s}.duration-100{transition-duration:.1s}.ease-linear{transition-timing-function:linear}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.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}.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-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/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-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/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-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/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\\:inset-3{bottom:12px;left:12px;right:12px;top:12px}.sm\\:w-\\[32rem\\]{width:512px}.sm\\:pb-2{padding-bottom:8px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-0{padding-bottom:0}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
8
- `]]]),wp=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),xp={},Cp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},kp=[X("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46s46-20.595 46-46s-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];function Sp(e,t){return A(),Y("svg",Cp,kp)}const $p=Object.freeze(Object.defineProperty({__proto__:null,default:he(xp,[["render",Sp]])},Symbol.toStringTag,{value:"Module"})),Tp=`html.gear-second,html.gear-second *{scrollbar-width:none!important}html.gear-second ::-webkit-scrollbar,html.gear-second::-webkit-scrollbar{display:none!important}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;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 iframe,html.gear-second body>footer,html.gear-second body>header,html.gear-second body>nav{display:none!important;height:0!important;min-height:0!important;min-width:0!important;visibility:hidden!important;width:0!important}html.gear-second body :not(gear-second){opacity:0!important;pointer-events:none!important}html.gear-second body gear-second{bottom:0!important;display:block!important;filter:none!important;left:0!important;opacity:1!important;pointer-events:auto!important;position:fixed!important;right:0!important;top:0!important;transform:none!important;visibility:visible!important;z-index:10000000000000000}
9
- `,Cn="gear-second",gr={raw:{},spec:void 0,page:0,spaceTop:void 0,spaceBottom:void 0,fullScreen:void 0,touchDevice:void 0,entryId:void 0,autoPlay:void 0,adBlock:void 0,isAutoShow:void 0,textScaleFactor:void 0,isGuest:void 0,tourEnabled:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPlayingChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onLongIdle:void 0,onFinished:void 0},Se={el:void 0,controller:void 0,data:sn({...gr})};async function Ip(e){if(Se.controller)return Se.data.raw=e.raw,Se.controller;const t=()=>{Se.el&&(document.body.removeChild(Se.el),Se.el=void 0),document.documentElement.classList.remove(Cn),Object.assign(Se.data,gr),Se.controller=void 0};return Se.controller={triggerDoubleTap:(n,o)=>Nd(n,o),updateArgs(n){Object.assign(Se.data,n),mr()},dispose:t},document.documentElement.classList.add(Cn),await Pp(),Object.assign(Se.data,gr,e,{onDispose:()=>{var n;t(),(n=e==null?void 0:e.onDispose)==null||n.call(e)}}),mr(),Se.el||(Se.el=document.createElement(Cn),document.body.appendChild(Se.el)),Se.controller}async function Pp(){if(window.customElements.get(Cn))return;const e=document.createElement("style");e.appendChild(document.createTextNode(Tp)),document.head.appendChild(e);const t=bc({styles:[await Ep()],data:()=>({readerData:Se.data}),render(){return Rs(ol,{...this.readerData,onFullScreenChanged:n=>{var o,r;this.readerData.fullScreen=n,(r=(o=this.readerData).onFullScreenChanged)==null||r.call(o,n),mr()},onPageChanged:n=>{var o,r;this.readerData.page=n,(r=(o=this.readerData).onPageChanged)==null||r.call(o,n)},onTourEnabledChanged:n=>{this.readerData.tourEnabled=n}})}});window.customElements.define(Cn,t)}async function Ep(){const e=Object.assign({"./TrackkunReader.vue":wp,"./components/AutoNext.vue":op,"./components/BottomSheet.vue":sf,"./components/ButtonDropdown.vue":ud,"./components/ButtonIcon.vue":Xu,"./components/ButtonReaderSettings.vue":Lf,"./components/ButtonResetZoom.vue":zu,"./components/DirectionToast.vue":Dd,"./components/HelpScreen.vue":Su,"./components/InputPercentage.vue":cf,"./components/InputSelect.vue":hf,"./components/LoadingIndicator.vue":Yd,"./components/LoadingPlaceholder.vue":Xd,"./components/PageNav.vue":fd,"./components/PauseToast.vue":Md,"./components/ReaderBody.vue":Gd,"./components/ReaderLayout.vue":Rc,"./components/ReaderTour.vue":Cu,"./components/TableField.vue":df,"./components/ZoomWrapper.vue":Hd,"./components/icons/IconBack.vue":Od,"./components/icons/IconBookmarkNew.vue":Xf,"./components/icons/IconBookmarked.vue":Gf,"./components/icons/IconChevronLeft.vue":wd,"./components/icons/IconChevronRight.vue":md,"./components/icons/IconClose.vue":Gu,"./components/icons/IconExclamationCircle.vue":$p,"./components/icons/IconFullscreen.vue":Df,"./components/icons/IconFullscreenExit.vue":Vf,"./components/icons/IconHelp.vue":bf,"./components/icons/IconNext.vue":Bd,"./components/icons/IconPause.vue":Wu,"./components/icons/IconPlay.vue":Ru,"./components/icons/IconReaderExit.vue":$d,"./components/icons/IconSettings.vue":kf,"./components/icons/IconTriangle.vue":rd,"./components/icons/IconZoom.vue":Eu}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}function mr(){if(Se.data.adBlock)return;const{spaceTop:e,fullScreen:t}=Se.data,n=document.querySelector(":root");n==null||n.style.setProperty("--tk-safe-top",`${t?0:(e||0)+56}px`)}return Ip});
7
+ `]]]),op=Object.freeze(Object.defineProperty({__proto__:null,default:Ji},Symbol.toStringTag,{value:"Module"}));async function xn(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 s=await xn(e-1,t,n);r(s)},t)})}function oo(e=0){return new Promise(t=>setTimeout(t,e))}const rp=3;function sp(e){var $;let t=[];const n=Z((($=e.raw.imgs)==null?void 0:$.filter(Boolean))??[]),o=sn({}),r=[],s=new WeakMap;let i=!0,a=0,l,c=n.value.length?cp(n.value):void 0;const u=Z(e.raw.isWebtoon),d=Z(u.value===void 0||c===void 0),m=Qe(h,100),S=Qe(C,50);d.value?n.value.length?C():N():qe(()=>setTimeout(()=>y(c),10)),He(()=>{i=!1,r.forEach(_=>URL.revokeObjectURL(_))});async function y(_){d.value=!1,await qe(),e.onReady(_),ue(()=>Math.floor(e.page.value),async(v,x)=>{el({contentEl:l,imgEls:t,page:v,smooth:!0}),x??(x=-1),v!==x&&(a=Math.max(0,a-Math.abs(v-x))),S()},{immediate:!0})}function C(){const _=Math.floor(e.page.value),v=x=>{a>rp||j(x)};for(let x=_;x<n.value.length;x++)v(x);for(let x=_-1;x>=0;x--)v(x)}async function j(_){const v=n.value[_];if(!(!i||!v||o[v])){if(!o[v]){o[v]={src:v,isLoading:!0,hasError:!1},a++;const x=await ap(v);if(o[v]={src:v,size:x,isLoading:!1,hasError:!x},a=Math.max(0,a-1),x&&!u.value&&_>Math.min(1,n.value.length-2)){const D=x.height/x.width>2.5;u.value!==D&&(u.value=D)}d.value&&u.value!==void 0&&c!==void 0&&y(c)}S()}}function N(){let _=!1;const v=new MutationObserver(()=>{l&&m(l)});He(async()=>{v.disconnect();const x=e.page.value;await oo(),el({contentEl:l,imgEls:t,page:x})}),L(x=>{l!==x&&(l=x,v.disconnect(),v.observe(l,{childList:!0,subtree:!0}),_?m(l):(_=!0,h(l)))})}async function L(_){var ee;const v=(ee=e.spec)==null?void 0:ee.content;if(!v)return;const x=await ip(e.spec);let D=v?await xn(x?100:1,10,()=>document.querySelector(v)):void 0;if(!D)return;_(D);let P=0;const B=async()=>{if(i&&!(D!=null&&D.isConnected)){if(P=0,D=await xn(50,20,()=>{const G=document.querySelector(v);return G!=null&&G.isConnected&&G!==D?G:void 0}),!D)return;_(D)}!i||++P>=10||setTimeout(B,200)};setTimeout(B,200)}let H=0;async function h(_){var B;if(!i||!_.isConnected)return;const v=Date.now();H=v;let x,D;const P=(B=e.spec)==null?void 0:B.imgDivs;if(P){if(D=Array.from(_.querySelectorAll(P)),x=await Promise.all(D.map(async(ee,G)=>{const I=Array.from(ee.querySelectorAll("img,canvas"));for(const F of I){const U=await k({ts:v,el:F,index:G,total:D.length,onImgLoad:()=>m(_)});if(U)return U}})),!i||!_.isConnected||H!==v)return}else{const ee=Array.from(_.querySelectorAll("img,canvas")),G=await Promise.all(ee.map((F,U)=>k({ts:v,el:F,index:U,total:ee.length,onImgLoad:()=>m(_)})));if(!i||!_.isConnected||H!==v)return;D=ee.filter((F,U)=>G[U]),x=G.filter(Boolean);const I=x.filter((F,U)=>F&&U!==x.lastIndexOf(F));I.length&&(x=x.filter(F=>F&&!I.includes(F)))}c??(c=Gi(D)),(x.length!==n.value.length||x.some((ee,G)=>n.value[G]!==ee))&&(t=D,n.value=x,S(),c!==void 0&&d.value&&u.value!==void 0&&n.value.some(Boolean)&&y(c))}const M=Date.now();async function k({ts:_,el:v,index:x,total:D,onImgLoad:P}){const B=s.get(v);let ee,G;if(v.tagName.toLowerCase()==="canvas"){if(B)return B.src;ee=await Qi(v)}else{if(v._tkLoadId_!==M&&(v._tkLoadId_=M,v.addEventListener("load",P),He(()=>{v._tkLoadId_===M&&delete v._tkLoadId_,v.removeEventListener("load",P)})),G=up(v),!G)return;if(G===(B==null?void 0:B.originalSrc))return B.src;if(ee=await lp(v,G),!i||H!==_)return;if(u.value===void 0&&x>Math.min(1,D-2)){const F=+(v.getAttribute("width")??0),U=+(v.getAttribute("height")??0);F&&U&&(u.value=U/F>2.5)}}return ee&&(s.set(v,{src:ee,originalSrc:G}),ee.startsWith("blob:")&&r.push(ee)),ee}return{isLoading:ie(()=>d.value),asyncImgs:ie(()=>n.value.map(_=>_?o[_]:void 0)),isWebtoon:ie(()=>u.value??!1)}}async function ip(e){const{lstrip:t,lstripBtn:n}=e||{};if(!n||!!t&&!!document.querySelector(t))return!1;const r=await xn(50,30,()=>document.querySelector(n));if(!r)return!1;if(r.tagName.toLowerCase()==="a"&&!r._tkDirty_){r._tkDirty_=!0;const s=i=>i.preventDefault();r.addEventListener("click",s),He(()=>{delete r._tkDirty_,r.removeEventListener("click",s)})}return r.click(),await oo(),!0}function Qi(e){return new Promise(t=>{if(e.isConnected&&(e.width<200||e.height<200))return t(void 0);const n=o=>{if(!o)return t(void 0);const r=URL.createObjectURL(o);t(r)};e.toBlob(n,"image/png",1)})}async function lp(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),r=o.getContext("2d"),s=e.naturalWidth,i=e.naturalHeight;return o.width=s,o.height=i,r==null||r.drawImage(e,0,0,s,i),await Qi(o)}function ap(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{const{naturalWidth:r,naturalHeight:s}=n;s&&r&&(t({width:r,height:s}),clearInterval(o))},20);n.onerror=()=>{t(void 0),clearInterval(o)},n.src=e})}function cp(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src));return Gi(n)}function Gi(e){for(let t=0;t<e.length;t++){const n=e[t].getBoundingClientRect();if(n.bottom<=0)continue;const o=n.top;return t+(o>=0?0:Math.floor(-o/n.height*100)/100)}return 0}function up(e){const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden")return;const n=e.getBoundingClientRect();if(n.width&&n.height&&(n.width<200||n.height<200))return;const o=e.getAttributeNames(),r=o.indexOf("src");r!==-1&&(o.splice(r,1),o.push("src"));for(const s of o){if(s!=="data-url"&&s!=="data-original"&&!s.includes("src"))continue;const i=e.getAttribute(s);if(i)return s==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:i.replace(/(\n|\t)/g," ").trim()}}function el({contentEl:e,imgEls:t,page:n,smooth:o}){var a;const r=n>=t.length,s=o?"smooth":"instant";if(r){(a=t[t.length-1])==null||a.scrollIntoView({block:"end",behavior:s});return}const i=t[Math.floor(n)];i&&setTimeout(()=>{const l=dr(e??document.documentElement),c=i.offsetTop+(r?1:n%1)*i.getBoundingClientRect().height;l==null||l.scrollTo({top:c,behavior:s})})}function dr(e){if(e)return e.scrollHeight>e.clientHeight?e===document.body?dr(document.documentElement)??e:e:dr(e.parentElement??void 0)}function fp(e,t){return ie(()=>t.value?tl(e.value):e.value.map((n,o)=>[{img:n,index:o}]))}function tl(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height)?[n[0]]:n;return[r.map((s,i)=>({img:s,index:t+i})),...tl(e.slice(r.length),t+r.length)]}function dp(e){const t=typeof e=="number"?Math.max(0,e):0,n=sessionStorage.getItem("tk:page:path");return n!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),n&&sessionStorage.removeItem("tk:page")),ir("tk:page",t,{writeDefaults:!1,mergeDefaults(o){return typeof o=="number"?Math.max(0,o):t}})}function pp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const pr=40;function hp({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:s,spaceTop:i,scrollEl:a,interferePlayer:l,onChangedPage:c}){let u=!1,d=!1,m;const S=li(H,300),y=Qe(()=>d=!0,100);function C(){let v=null;ca(async()=>{a.value&&a.value!==v&&(v=a.value,N(e.value),v==null||v.removeEventListener("scroll",S),a.value.addEventListener("scroll",S))});const{width:x,height:D}=yu();ue(x,j),ue(D,j),ue(n,j),ue(t,j)}async function j(){u=!0;const v=e.value;if(await qe(),h()===v){u=!1;return}N(v)}function N(v,{smooth:x}={smooth:!1}){const D=a.value;if(!D)return;u=!0;const P=async()=>{await qe(),u=!1,y()},B=Math.floor(v),ee=D.querySelector(`[data-index="${B}"],[data-index2="${B}"]`);if(!ee){P();return}l(async()=>{await L(D,!o.value&&x,async()=>{await _(D,ee,{smooth:x,page:v})}),await P()})}async function L(v,x,D){x&&v.style.setProperty("scroll-snap-type","none"),await D(),x&&v.style.removeProperty("scroll-snap-type")}function H(){if(!a.value||u||!d)return;const v=h();v!==void 0&&v!==e.value&&c(v)}function h(){const v=M();if(!v)return;const x=+v.getAttribute("data-index")||0;return o.value?Math.floor((x+k(v))*100)/100:x}function M(){m??(m=a.value.getRootNode());const v=m.elementsFromPoint(r.value||!o.value?window.innerWidth/2:s.value?window.innerWidth-pr:pr,r.value&&o.value?i.value||pr:window.innerHeight/2);for(let x=0;x<v.length;x++){const D=v[x];if(D.hasAttribute("data-index"))return D;if(D===a.value)break}}function k(v){const x=v.getBoundingClientRect();return r.value?Math.abs(x.top-(i.value||0))/x.height:s.value?Math.max(0,x.right-a.value.clientWidth)/x.width:Math.abs(x.left)/x.width}let $=!1;async function _(v,x,D){if($)return;const P=x.getBoundingClientRect();if(!o.value){if(r.value){if(P.top<=0&&P.bottom>=v.clientHeight)return}else if(P.left<=0&&P.right>=v.clientWidth)return}$=!0;const B=r.value?v.scrollTop:v.scrollLeft,ee=D.page,G=o.value?ee%1:0,I=await xn(30,10,async()=>{await oo();let Te;return o.value?r.value?Te=x.offsetTop+G*x.offsetHeight-(i.value??0):s.value?Te=x.offsetLeft-v.clientWidth+x.offsetWidth-G*x.offsetWidth:Te=x.offsetLeft+G*x.offsetWidth:r.value?Te=x.offsetTop+(P.top>0?0:P.height-v.clientHeight):Te=x.offsetLeft+(P.left>0?0:P.width-v.clientWidth),ee>.5&&Math.abs(Te)<100?void 0:Te})??0;if(!D.smooth){r.value?v.scrollTop=I:v.scrollLeft=I,$=!1;return}const F=I-B,U=30;let fe=0;return new Promise(Te=>{(function Ve(){const Ie=gp(fe,B,F,U);r.value?v.scrollTop=Ie:v.scrollLeft=Ie,fe++,fe<=U?requestAnimationFrame(Ve):(Te(),$=!1)})()})}return{init:C,goToPage:N}}function gp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function mp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:s,speed:i,onLongIdle:a}){const l=ir("tk:isPlaying",e,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults:(_,v)=>_===void 0?v:_===!0||_==="true"}),c=Z(!1);let u,d;const m=Qe(k,100);let S;const y=Qe(()=>{c.value=!0,clearTimeout(S),S=l.value?void 0:setTimeout(a,s.value?3e4:6e4)},t?2e3:1e3),C=()=>setTimeout(()=>{c.value=!1,y(),S&&(clearTimeout(S),S=void 0)},30);C(),t||It(window,"mousemove",C);const j=_i();Fe(()=>{ue(j,_=>{l.value&&(_==="visible"?k():d==null||d())}),ue(i,()=>N()),ue(s,_=>{_||H()})}),He(()=>{clearTimeout(S),S=void 0});async function N(_){l.value&&(d==null||d()),_&&(await qe(),await _()),l.value&&m()}function L(){l.value?H():h()}function H(){l.value&&(l.value=!1,d==null||d(),C())}function h(){!l.value&&s.value&&(l.value=!0,k(),C())}function M(){d==null||d()}function k(){const _=n.value;if(!l.value||!_)return;const v=o.value?_.scrollHeight-_.clientHeight:_.scrollWidth-_.clientWidth,x=$();if(v<=x){H();return}d=()=>{u=Date.now(),d=void 0};const D=Date.now();u=D;const P=.05*i.value,B=o.value?"scrollTop":"scrollLeft";let ee=Date.now(),G=0;const I=()=>{if(u!==D)return;const F=Date.now(),U=F-ee;ee=F;const fe=P*U+G;fe>=1?(G=fe%1,_[B]+=(fe-G)*(r.value?-1:1)):G=fe,setTimeout(I,1)};I()}function $(){const _=n.value;return o.value?_.scrollTop:r.value?-_.scrollLeft:_.scrollLeft}return{isPlaying:l,isIdle:c,toggle:L,play:h,pause:M,resume:k,stop:H,interfere:N,awake:C}}function vp(e){var S,y,C,j,N;let t=-1,n=(S=e.prev)==null?void 0:S.slug,o=(y=e.next)==null?void 0:y.slug;const{vol:r,inferVol:s,chap:i,title:a,slug:l,basePath:c}=e,u=r??s,d=a.chapters??[],m=(d==null?void 0:d.length)>1?d:[];if(m.length){if(t=m.findIndex(L=>L.slug===e.slug),t===-1&&(t=m.findIndex(L=>(L.vol??L.inferVol)===u&&L.chap===i)),t===-1&&(t=m.findIndex(L=>l.startsWith(`${L.slug}-`)&&l.length-L.slug.length>3)),t!==-1)n??(n=(C=m[t+1])==null?void 0:C.slug),o??(o=(j=m[t-1])==null?void 0:j.slug);else if(!n&&!o){const L=m.findIndex(H=>{const h=H.vol??H.inferVol;return u===void 0||h===void 0||u===h?H.chap<i:h<u});L!==-1?(n=m[L].slug,o=(N=m[L-1])==null?void 0:N.slug):o=m[m.length-1].slug}}return{activeIndex:t,activeLabel:nl({vol:r,chap:i}),chapters:m.map(L=>({label:nl(L),path:hr(c,L.slug)})),prevPath:hr(c,n),nextPath:hr(c,o)}}function hr(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function nl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const _p={key:0,class:"flex justify-center items-center w-full h-full"},bp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},yp=we({...{inheritAttrs:!1},__name:"TrackkunReader",props:{raw:{},spec:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},isGuest:{type:Boolean},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean}},emits:["pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","longIdle","finished"],setup(e,{emit:t}){const n=e;let o=!1,r=!1,s;const i=Uu({touchDevice:n.touchDevice}),a=dp(n.page),{asyncImgs:l,isLoading:c,isWebtoon:u}=sp({raw:n.raw,spec:n.spec,page:a,onReady(g){n.isAutoShow===!1?a.value=g:a.value>l.value.length&&(a.value=Math.max(0,l.value.length-1)),I.init(),setTimeout(()=>{s=U()},50)},onError:()=>{}}),{direction:d,style:m,isRTL:S,isDouble:y,isVertical:C,isLongStrip:j,gap:N,speed:L,zoom:H}=Mf({titleName:n.raw.title.name,isWebtoon:u}),h=fp(l,y),M=ie(()=>a.value>=l.value.length),k=ie(()=>vp(n.raw)),$=ie(()=>{var g,b;return S.value?(g=k.value)==null?void 0:g.nextPath:(b=k.value)==null?void 0:b.prevPath}),_=ie(()=>{var g,b;return S.value?(g=k.value)==null?void 0:g.prevPath:(b=k.value)==null?void 0:b.nextPath}),v=Z(null),x=Z(null),D=Z(!1),P=Z(!1),B=mp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:ie(()=>{var g;return(g=v.value)==null?void 0:g.$el}),speed:L,isRTL:S,isVertical:C,isLongStrip:j,onLongIdle:()=>t("longIdle")});ue(B.isPlaying,g=>{g||p(!1),t("playingChanged",g)}),ue(B.isIdle,g=>{B.isPlaying.value&&p(g)}),ue(i,g=>{!g&&B.isIdle.value?B.awake():g&&n.fullScreen&&p()});const ee=ie(()=>!n.touchDevice&&B.isIdle.value&&!i.value),G=ie({get(){return H.value},set(g){B.interfere(()=>{H.value=g})}}),I=hp({page:a,style:m,direction:d,isLongStrip:j,isVertical:C,isRTL:S,spaceTop:ie(()=>n.spaceTop),scrollEl:ie(()=>{var g;return(g=v.value)==null?void 0:g.$el}),interferePlayer:g=>B.interfere(g),onChangedPage(g){const b=l.value.length;if(g<0||g>=b+1)return;const T=a.value;a.value=g,t("pageChanged",g),g>=b?(p(!1),B.stop()):g===0?p(!1):r||(j.value?s!==void 0&&U()-s>300&&p(!0):Math.abs(T-g)===1&&p(!0)),!o&&g>=b-2&&(o=!0,t("finished"))}}),F=ie(()=>Math.floor(a.value));function U(){var b;const g=(b=v.value)==null?void 0:b.$el;return g?C.value?g.scrollTop:S.value?-g.scrollLeft:g.scrollLeft:0}const fe=()=>B.interfere(()=>oo(100));tf().addListener({onKeyDown:g=>{if(n.tourEnabled)return;const b=j.value&&C.value,T=j.value&&!C.value,W=!j.value&&C.value,V=!j.value&&!C.value;switch(g.key){case" ":g.preventDefault(),j.value?(R(!1),B.toggle()):vt();break;case"ArrowUp":case"PageUp":b?fe():W&&(g.preventDefault(),st());break;case"ArrowDown":case"PageDown":b?fe():W&&(g.preventDefault(),vt());break;case"ArrowLeft":T?fe():V?(g.preventDefault(),tn()):C.value&&mt();break;case"ArrowRight":T?fe():V?(g.preventDefault(),ro()):C.value&&ct();break}},onKeyUp:g=>{switch(g.key){case"f":E();break;case"t":w();break;case"h":R();break}}}),Fe(()=>{It("fullscreenchange",()=>{D.value=!!document.fullscreenElement})});function Ve(){!n.touchDevice&&!j.value&&I.goToPage(F.value,{smooth:!0})}function Ie(){if(B.isPlaying.value){!n.fullScreen||!n.touchDevice?B.stop():B.awake();return}p()}function ct(){var g;Oe((g=k.value)==null?void 0:g.nextPath)}function mt(){var g;Oe((g=k.value)==null?void 0:g.prevPath)}function en(g){var T,W,V;const b=(V=(W=(T=k.value)==null?void 0:T.chapters)==null?void 0:W[g])==null?void 0:V.path;b&&Oe(b)}function Oe(g){g&&(location.href=g.includes("://")?g:location.origin+g)}function tn(){S.value?vt():st()}function ro(){S.value?st():vt()}function st(){var T;const g=h.value,b=M.value?g[g.length-1][0].index:(T=g[nn()-1])==null?void 0:T[0].index;b!==void 0?I.goToPage(b):mt()}function vt(){var b;const g=M.value?F.value+1:((b=h.value[nn()+1])==null?void 0:b[0].index)??l.value.length;I.goToPage(g)}function nn(){const g=F.value,b=h.value.findIndex(T=>T.some(({index:W})=>W===g));return b===-1?h.value.length-1:b}function f(){pp(),B.stop(),t("dispose")}async function p(g){if(i.value&&!n.fullScreen)return;r=!0;const b=typeof g=="boolean"?g:!n.fullScreen;t("fullScreenChanged",b),b&&setTimeout(()=>{n.fullScreen&&i.value&&t("fullScreenChanged",!1)},100)}function w(){n.entryId?z():O()}function E(){var g,b;document.fullscreenElement?document.exitFullscreen():(b=(g=x.value)==null?void 0:g.$el)==null||b.requestFullscreen()}function O(){B.stop(),t("addEntry")}function z(){B.stop(),t("openEntry",n.entryId)}function R(g){P.value!==g&&(P.value=!P.value,P.value&&B.isPlaying&&B.stop())}return(g,b)=>{const T=fr,W=Ji,V=Zi,J=Yi,te=Ui,re=Wi,le=eo,de=Vi,me=ur,We=Hi,Pt=Fi,so=Ni,Ht=Di,io=Bi,ze=Ai,Ge=ji,lo=zi,Op=ar,Mp=lr,Lp=Ti,zp=ki,jp=Ci,Ap=ri;return A(),_e(Ap,{ref_key:"root",ref:x,"full-screen":!!g.fullScreen,idle:ee.value,"space-top":n.spaceTop,"touch-device":g.touchDevice,rtl:K(S),onClick:b[11]||(b[11]=ot(()=>{},["stop"]))},ds({back:oe(()=>[q(le,{href:g.raw.title.url,title:"Back to manga"},{default:oe(()=>[q(re)]),_:1},8,["href"])]),"chapter-nav":oe(()=>[q(me,{modelValue:k.value.activeIndex,label:k.value.activeLabel,title:"Select chapter",items:k.value.chapters,"onUpdate:modelValue":en},{item:oe(({item:je})=>[Ct(Ye(je.label),1)]),_:1},8,["modelValue","label","items"]),$.value||_.value?(A(),Y("div",bp,[q(le,{title:`${K(S)?"Next":"Prev"} chapter (←)`,href:$.value,disabled:!$.value,class:"!rounded-r-none"},{default:oe(()=>[q(We)]),_:1},8,["title","href","disabled"]),q(le,{title:`${K(S)?"Prev":"Next"} chapter (→)`,href:_.value,disabled:!_.value,class:"!rounded-l-none"},{default:oe(()=>[q(Pt)]),_:1},8,["title","href","disabled"])])):Ee("",!0)]),entry:oe(()=>[q(le,{title:g.entryId?"View entry (T)":"Add to Trackkun (T)","data-tour":"Press here to add this manga to your Trackkun collection",onClick:w},{default:oe(()=>[g.entryId?(A(),_e(Ht,{key:0})):(A(),_e(io,{key:1}))]),_:1},8,["title"])]),settings:oe(()=>[q(lo,{"reader-style":K(m),"onUpdate:readerStyle":b[3]||(b[3]=je=>ye(m)?m.value=je:null),direction:K(d),"onUpdate:direction":b[4]||(b[4]=je=>ye(d)?d.value=je:null),gap:K(N),"onUpdate:gap":b[5]||(b[5]=je=>ye(N)?N.value=je:null),speed:K(L),"onUpdate:speed":b[6]||(b[6]=je=>ye(L)?L.value=je:null),zoom:G.value,"onUpdate:zoom":b[7]||(b[7]=je=>G.value=je),name:g.raw.title.name,webtoon:K(u),disabled:K(c),onHelp:R},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]),"reset-zoom":oe(()=>[q(Qt,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:oe(()=>[q(Lp,{zoom:G.value,onClick:b[9]||(b[9]=ot(()=>G.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:oe(()=>[X("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Me({width:`${K(a)/(K(l).length-1)*100}%`})},null,4)]),default:oe(()=>[K(c)||!K(l).length?(A(),Y("div",_p,[q(T)])):(A(),Y(ge,{key:1},[q(V,{ref_key:"body",ref:v,zoom:G.value,"onUpdate:zoom":b[0]||(b[0]=je=>G.value=je),"page-index":F.value,pages:K(h),"total-imgs":K(l).length,direction:K(d),gap:K(N),"is-long-strip":K(j),isRTL:K(S),"is-vertical":K(C),"space-top":g.spaceTop,busy:K(i),idle:ee.value,"play-controller":K(B),"touch-device":g.touchDevice,onPrev:st,onNext:vt,onClick:Ie,onDragEnd:Ve,onWheelPassive:b[1]||(b[1]=()=>K(B).interfere())},ds({_:2},[!K(c)&&K(l).length?{name:"end",fn:oe(()=>[q(W,{"has-next":!!k.value.nextPath,onNext:ct,onHide:f},null,8,["has-next"])]),key:"0"}:void 0]),1032,["zoom","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","busy","idle","play-controller","touch-device"]),dt(q(J,{direction:K(d)},null,8,["direction"]),[[ti,!M.value&&!g.tourEnabled&&!P.value]]),M.value?Ee("",!0):(A(),_e(te,{key:0,playing:!!K(B).isPlaying.value},null,8,["playing"]))],64)),P.value?(A(),_e(zp,{key:2,"touch-device":g.touchDevice,onHide:R},null,8,["touch-device"])):Ee("",!0),g.tourEnabled?(A(),_e(jp,{key:3,onHide:b[10]||(b[10]=()=>t("tourEnabledChanged",!1))})):Ee("",!0)]),_:2},[g.touchDevice?void 0:{name:"exit",fn:oe(()=>[q(le,{title:"Hide reader","data-tour":"You have entered Trackkun reader mode, press here to return to the original page",onClick:f},{default:oe(()=>[q(de)]),_:1})]),key:"0"},K(h).length?{name:"page-nav",fn:oe(()=>[q(so,{"model-value":K(a),disabled:K(c),pages:K(h),"total-imgs":K(l).length,"onUpdate:modelValue":b[2]||(b[2]=je=>K(I).goToPage(je))},null,8,["model-value","disabled","pages","total-imgs"])]),key:"1"}:void 0,g.touchDevice?void 0:{name:"full-screen",fn:oe(()=>[q(le,{title:`${D.value?"Exit":"Enter"} fullscreen (F)`,onClick:E},{default:oe(()=>[D.value?(A(),_e(ze,{key:0})):(A(),_e(Ge,{key:1}))]),_:1},8,["title"])]),key:"2"},K(j)?{name:"play",fn:oe(()=>[q(le,{"data-tour":"Press here to play like a video",title:`${K(B).isPlaying.value?"Pause":"Play"} (Space)`,disabled:K(c),onClick:b[8]||(b[8]=()=>K(B).toggle())},{default:oe(()=>[K(B).isPlaying.value?(A(),_e(Op,{key:0})):(A(),_e(Mp,{key:1}))]),_:1},8,["title","disabled"])]),key:"3"}:void 0]),1032,["full-screen","idle","space-top","touch-device","rtl"])}}}),ol=he(yp,[["styles",[`/*! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:Helvetica,sans-serif;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-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}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{color:inherit;font-family:inherit;font-size:100%;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}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-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-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}}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.inset-2{bottom:8px;left:8px;right:8px;top:8px}.left-0{left:0}.top-0{top:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.top-full{top:100%}.left-1\\/2{left:50%}.right-0{right:0}.top-1\\/2{top:50%}.top-1{top:4px}.z-50{z-index:50}.z-20{z-index:20}.z-10{z-index:10}.z-\\[9999999999\\]{z-index:9999999999}.-z-10{z-index:-10}.z-30{z-index:30}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.ml-auto{margin-left:auto}.-ml-20{margin-left:-80px}.ml-1{margin-left:4px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.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-full{height:100%}.h-0\\.5{height:2px}.h-0{height:0}.h-12{height:48px}.h-\\[27rem\\]{height:432px}.h-16{height:64px}.h-10{height:40px}.h-4{height:16px}.h-9{height:36px}.h-24{height:96px}.h-1\\.5{height:6px}.h-1{height:4px}.h-7{height:28px}.h-8{height:32px}.h-6{height:24px}.h-20{height:80px}.h-screen{height:100vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-full{max-height:100%}.w-full{width:100%}.w-28{width:112px}.w-40{width:160px}.w-4{width:16px}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-screen{width:100vw}.w-1\\/3{width:33.333333%}.w-\\[4\\.5rem\\]{width:72px}.max-w-full{max-width:100%}.max-w-xs{max-width:320px}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-right{transform-origin:right}.origin-bottom{transform-origin:bottom}.origin-top{transform-origin:top}.translate-y-full{--tw-translate-y:100%}.-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-1\\.5{--tw-translate-y:-6px}.-translate-y-1{--tw-translate-y:-4px}.-translate-y-1,.translate-y-1\\.5{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\\.5{--tw-translate-y:6px}.translate-y-1{--tw-translate-y:4px}.-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-x-1\\/2{--tw-translate-x:-50%}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.translate-y-0{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-0{--tw-translate-y:0px}.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-pointer{cursor:pointer}.cursor-default{cursor:default}.cursor-none{cursor:none}.cursor-auto{cursor:auto}.cursor-grabbing{cursor:grabbing}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.\\!snap-none{scroll-snap-type:none!important}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-\\[1px\\]{gap:1px}.gap-6{gap:24px}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-2xl{border-radius:16px}.rounded-sm{border-radius:2px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-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-2{border-width:2px}.border{border-width:1px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/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-opacity-50{--tw-bg-opacity:.5}.bg-opacity-90{--tw-bg-opacity:.9}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-40{--tw-bg-opacity:.4}.object-contain{-o-object-fit:contain;object-fit:contain}.p-6{padding:24px}.p-2{padding:8px}.p-4{padding:16px}.p-1{padding:4px}.px-6{padding-left:24px;padding-right:24px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.py-2{padding-bottom:8px;padding-top:8px}.py-1{padding-bottom:4px;padding-top:4px}.pt-3{padding-top:12px}.pb-12{padding-bottom:48px}.pl-1{padding-left:4px}.pb-4{padding-bottom:16px}.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-xl{font-size:20px;line-height:28px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/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-50{opacity:.5}.opacity-100{opacity:1}.opacity-90{opacity:.9}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur:blur(8px)}.blur,.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-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.duration-150{transition-duration:.15s}.duration-100{transition-duration:.1s}.ease-linear{transition-timing-function:linear}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.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}.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-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/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-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/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-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/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\\:inset-3{bottom:12px;left:12px;right:12px;top:12px}.sm\\:w-\\[32rem\\]{width:512px}.sm\\:pb-3{padding-bottom:12px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-2{padding-bottom:8px}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}.lg\\:pb-0{padding-bottom:0}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
8
+ `]]]),wp=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),xp={},Cp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},kp=[X("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46s46-20.595 46-46s-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];function Sp(e,t){return A(),Y("svg",Cp,kp)}const Tp=Object.freeze(Object.defineProperty({__proto__:null,default:he(xp,[["render",Sp]])},Symbol.toStringTag,{value:"Module"})),$p=`html.gear-second,html.gear-second *{scrollbar-width:none!important}html.gear-second ::-webkit-scrollbar,html.gear-second::-webkit-scrollbar{display:none!important}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;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 iframe,html.gear-second body>footer,html.gear-second body>header,html.gear-second body>nav{display:none!important;height:0!important;min-height:0!important;min-width:0!important;visibility:hidden!important;width:0!important}html.gear-second body :not(gear-second){opacity:0!important;pointer-events:none!important}html.gear-second body gear-second{bottom:0!important;display:block!important;filter:none!important;left:0!important;opacity:1!important;pointer-events:auto!important;position:fixed!important;right:0!important;top:0!important;transform:none!important;visibility:visible!important;z-index:10000000000000000}
9
+ `,Cn="gear-second",gr={raw:{},spec:void 0,page:0,spaceTop:void 0,fullScreen:void 0,touchDevice:void 0,entryId:void 0,autoPlay:void 0,adBlock:void 0,isAutoShow:void 0,textScaleFactor:void 0,isGuest:void 0,tourEnabled:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPlayingChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onLongIdle:void 0,onFinished:void 0},Se={el:void 0,controller:void 0,data:sn({...gr})};async function Ip(e){if(Se.controller)return Se.data.raw=e.raw,Se.controller;const t=()=>{Se.el&&(document.body.removeChild(Se.el),Se.el=void 0),document.documentElement.classList.remove(Cn),Object.assign(Se.data,gr),Se.controller=void 0};return Se.controller={triggerDoubleTap:(n,o)=>Nd(n,o),updateArgs(n){Object.assign(Se.data,n),mr()},dispose:t},document.documentElement.classList.add(Cn),await Pp(),Object.assign(Se.data,gr,e,{onDispose:()=>{var n;t(),(n=e==null?void 0:e.onDispose)==null||n.call(e)}}),mr(),Se.el||(Se.el=document.createElement(Cn),document.body.appendChild(Se.el)),Se.controller}async function Pp(){if(window.customElements.get(Cn))return;const e=document.createElement("style");e.appendChild(document.createTextNode($p)),document.head.appendChild(e);const t=bc({styles:[await Ep()],data:()=>({readerData:Se.data}),render(){return Rs(ol,{...this.readerData,onFullScreenChanged:n=>{var o,r;this.readerData.fullScreen=n,(r=(o=this.readerData).onFullScreenChanged)==null||r.call(o,n),mr()},onPageChanged:n=>{var o,r;this.readerData.page=n,(r=(o=this.readerData).onPageChanged)==null||r.call(o,n)},onTourEnabledChanged:n=>{this.readerData.tourEnabled=n}})}});window.customElements.define(Cn,t)}async function Ep(){const e=Object.assign({"./TrackkunReader.vue":wp,"./components/AutoNext.vue":op,"./components/BottomSheet.vue":sf,"./components/ButtonDropdown.vue":ud,"./components/ButtonIcon.vue":Xu,"./components/ButtonReaderSettings.vue":Lf,"./components/ButtonResetZoom.vue":zu,"./components/DirectionToast.vue":Dd,"./components/HelpScreen.vue":Su,"./components/InputPercentage.vue":cf,"./components/InputSelect.vue":hf,"./components/LoadingIndicator.vue":Yd,"./components/LoadingPlaceholder.vue":Xd,"./components/PageNav.vue":fd,"./components/PauseToast.vue":Md,"./components/ReaderBody.vue":Gd,"./components/ReaderLayout.vue":Rc,"./components/ReaderTour.vue":Cu,"./components/TableField.vue":df,"./components/ZoomWrapper.vue":Hd,"./components/icons/IconBack.vue":Od,"./components/icons/IconBookmarkNew.vue":Xf,"./components/icons/IconBookmarked.vue":Gf,"./components/icons/IconChevronLeft.vue":wd,"./components/icons/IconChevronRight.vue":md,"./components/icons/IconClose.vue":Gu,"./components/icons/IconExclamationCircle.vue":Tp,"./components/icons/IconFullscreen.vue":Df,"./components/icons/IconFullscreenExit.vue":Vf,"./components/icons/IconHelp.vue":bf,"./components/icons/IconNext.vue":Bd,"./components/icons/IconPause.vue":Wu,"./components/icons/IconPlay.vue":Ru,"./components/icons/IconReaderExit.vue":Td,"./components/icons/IconSettings.vue":kf,"./components/icons/IconTriangle.vue":rd,"./components/icons/IconZoom.vue":Eu}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}function mr(){if(Se.data.adBlock)return;const{spaceTop:e,fullScreen:t}=Se.data,n=document.querySelector(":root");n==null||n.style.setProperty("--tk-safe-top",`${t?0:(e||0)+56}px`)}return Ip});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gear-second",
3
3
  "author": "endyquang",
4
- "version": "1.2.0",
4
+ "version": "1.2.1",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Trkun manga reader",
7
7
  "main": "index.js",