gear-second 1.2.2 → 1.2.4

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 +9 -9
  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,Ke)=>se in De?Bp(De,se,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):De[se]=Ke;var rl=(De,se,Ke)=>(Dp(De,typeof se!="symbol"?se+"":se,Ke),Ke);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={},Ke=[],tt=()=>{},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,Ht=e=>Sn(e)==="[object Map]",_r=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",br=e=>pe(e)&&ne(e.then)&&ne(e.catch),yr=Object.prototype.toString,Sn=e=>yr.call(e),al=e=>Sn(e).slice(8,-1),wr=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,Ye=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 xr;const mo=()=>xr||(xr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Oe(e){if(Q(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=be(o)?hl(o):Oe(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 ke(e){let t="";if(be(e))t=e;else if(Q(e))for(let n=0;n<e.length;n++){const o=ke(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 Cr(e){return!!e||e===""}const Xe=e=>be(e)?e:e==null?"":Q(e)||pe(e)&&(e.toString===yr||!ne(e.toString))?JSON.stringify(e,kr,2):String(e),kr=(e,t)=>t&&t.__v_isRef?kr(e,t.value):Ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:_r(t)?{[`Set(${t.size})`]:[...t.values()]}:pe(t)&&!Q(t)&&!wr(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 Sr(){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},$r=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];$r(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 nt;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=nt,n=bt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=nt,nt=this,bt=!0,_t=1<<++rn,rn<=bo?bl(this):Ir(this),this.fn()}finally{rn<=bo&&yl(this),_t=1<<--rn,nt=this.parent,bt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){nt===this?this.deferStop=!0:this.active&&(Ir(this),this.onStop&&this.onStop(),this.active=!1)}}function Ir(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 Pr=[];function Wt(){Pr.push(bt),bt=!1}function Ut(){const e=Pr.pop();bt=e===void 0?!0:e}function Ae(e,t,n){if(bt&&nt){let o=_o.get(e);o||_o.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=vo()),Er(r)}}function Er(e,t){let n=!1;rn<=bo?Tr(e)||(e.n|=_t,n=!$r(e)):n=!e.has(nt),n&&(e.add(nt),nt.deps.push(e))}function ft(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)),Ht(e)&&a.push(i.get(yo)));break;case"delete":Q(e)||(a.push(i.get(Et)),Ht(e)&&a.push(i.get(yo)));break;case"set":Ht(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&&Or(o);for(const o of n)o.computed||Or(o)}function Or(e,t){(e!==nt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const wl=De("__proto__,__v_isRef,__isVue"),Mr=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),Lr=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?Vl:Vr:t?Fr:Nr).get(o))return o;const i=Q(o);if(!e){if(i&&ae(Lr,r))return Reflect.get(Lr,r,s);if(r==="hasOwnProperty")return $l}const a=Reflect.get(o,r,s);return(uo(r)?Mr.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=zr(),Il=zr(!0);function zr(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)&&ft(n,"set",o,r):ft(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&&ft(e,"delete",t,void 0),o}function El(e,t){const n=Reflect.has(e,t);return(!uo(t)||!Mr.has(t))&&Ae(e,"has",t),n}function Ol(e){return Ae(e,"iterate",Q(e)?"length":Et),Reflect.ownKeys(e)}const jr={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({},jr,{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 Ar(e){e=ce(e);const t=ce(this);return On(t).has.call(t,e)||(t.add(e),ft(t,"add",e,e)),this}function Br(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)&&ft(n,"set",e,t):ft(n,"add",e,t),this}function Dr(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&&ft(t,"delete",e,void 0),s}function Rr(){const e=ce(this),t=e.size!==0,n=e.clear();return t&&ft(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=Ht(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:p,done:m}=c.next();return m?{value:p,done:m}:{value:a?[u(p[0]),u(p[1])]:u(p),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:Ar,set:Br,delete:Dr,clear:Rr,forEach:jn(!1,!1)},t={get(s){return Mn(this,s,!1,!0)},get size(){return zn(this)},has:Ln,add:Ar,set:Br,delete:Dr,clear:Rr,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)},Nr=new WeakMap,Fr=new WeakMap,Vr=new WeakMap,Vl=new WeakMap;function Hl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wl(e){return e.__v_skip||!Object.isExtensible(e)?0:Hl(al(e))}function sn(e){return Yt(e)?e:To(e,!1,jr,Rl,Nr)}function Ul(e){return To(e,!1,Ll,Nl,Fr)}function $o(e){return To(e,!0,Ml,Fl,Vr)}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 Wr(e){return En(e,"__v_skip",!0),e}const ln=e=>pe(e)?sn(e):e,Io=e=>pe(e)?$o(e):e;function Ur(e){bt&&nt&&(e=ce(e),Er(e.dep||(e.dep=vo())))}function Kr(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 Yr(e,!1)}function Kl(e){return Yr(e,!0)}function Yr(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 Ur(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),Kr(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 Xr(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,Kr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=ce(this);return Ur(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=tt):(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 qe(e,t,n,o){if(ne(e)){const s=wt(e,t,n,o);return s&&br(s)&&s.catch(i=>{Dn(i,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(qe(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 Ie=[];let lt=0;const Xt=[];let dt=null,Ot=0;const qr=Promise.resolve();let Eo=null;function Ze(e){const t=Eo||qr;return e?t.then(this?e.bind(this):e):t}function Ql(e){let t=lt+1,n=Ie.length;for(;t<n;){const o=t+n>>>1;cn(Ie[o])<e?t=o+1:n=o}return t}function Oo(e){(!Ie.length||!Ie.includes(e,an&&e.allowRecurse?lt+1:lt))&&(e.id==null?Ie.push(e):Ie.splice(Ql(e.id),0,e),Zr())}function Zr(){!an&&!Po&&(Po=!0,Eo=qr.then(Gr))}function Gl(e){const t=Ie.indexOf(e);t>lt&&Ie.splice(t,1)}function ea(e){Q(e)?Xt.push(...e):(!dt||!dt.includes(e,e.allowRecurse?Ot+1:Ot))&&Xt.push(e),Zr()}function Jr(e,t=an?lt+1:0){for(;t<Ie.length;t++){const n=Ie[t];n&&n.pre&&(Ie.splice(t,1),t--,n())}}function Qr(e){if(Xt.length){const t=[...new Set(Xt)];if(Xt.length=0,dt){dt.push(...t);return}for(dt=t,dt.sort((n,o)=>cn(n)-cn(o)),Ot=0;Ot<dt.length;Ot++)dt[Ot]();dt=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 Gr(e){Po=!1,an=!0,Ie.sort(ta);const t=tt;try{for(lt=0;lt<Ie.length;lt++){const n=Ie[lt];n&&n.active!==!1&&wt(n,null,14)}}finally{lt=0,Ie.length=0,Qr(),an=!1,Eo=null,(Ie.length||Xt.length)&&Gr()}}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:p,trim:m}=o[u]||se;m&&(r=n.map(C=>be(C)?C.trim():C)),p&&(r=n.map(ho))}let a,l=o[a=po(t)]||o[a=po(Re(t))];!l&&s&&(l=o[a=po(Ye(t))]),l&&qe(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,qe(c,e,6,r)}}function es(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=es(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,Ye(t))||ae(e,t))}let Te=null,ts=null;function Nn(e){const t=Te;return Te=e,ts=e&&e.type.__scopeId||null,t}function oe(e,t=Te,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Os(-1);const s=Nn(t);let i;try{i=e(...r)}finally{Nn(s),o._d&&Os(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:p,data:m,setupState:C,ctx:L,inheritAttrs:_}=e;let j,R;const N=Nn(e);try{if(n.shapeFlag&4){const d=r||o;j=ct(u.call(d,d,p,s,C,m,L)),R=l}else{const d=t;j=ct(d.length>1?d(s,{attrs:l,slots:a,emit:c}):d(s,null)),R=t.props?l:oa(l)}}catch(d){hn.length=0,Dn(d,e,1),j=q(Qe)}let W=j;if(R&&_!==!1){const d=Object.keys(R),{shapeFlag:P}=W;d.length&&P&7&&(i&&d.some(ao)&&(R=ra(R,i)),W=xt(W,R))}return n.dirs&&(W=xt(W),W.dirs=W.dirs?W.dirs.concat(n.dirs):n.dirs),n.transition&&(W.transition=n.transition),j=W,Nn(N),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?ns(o,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let p=0;p<u.length;p++){const m=u[p];if(i[m]!==o[m]&&!Rn(c,m))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:o===i?!1:o?i?ns(o,i,c):!0:!!i;return!1}function ns(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=Sr()===((a=Se)==null?void 0:a.scope)?Se:null;let c,u=!1,p=!1;if(ye(e)?(c=()=>e.value,u=Bn(e)):Kt(e)?(c=()=>e,o=!0):Q(e)?(p=!0,u=e.some(d=>Kt(d)||Bn(d)),c=()=>e.map(d=>{if(ye(d))return d.value;if(Kt(d))return Mt(d);if(ne(d))return wt(d,l,2)})):ne(e)?t?c=()=>wt(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return m&&m(),qe(e,l,3,[C])}:c=tt,t&&o){const d=c;c=()=>Mt(d())}let m,C=d=>{m=N.onStop=()=>{wt(d,l,4)}},L;if(mn)if(C=tt,t?n&&qe(t,l,3,[c(),p?[]:void 0,C]):c(),r==="sync"){const d=tc();L=d.__watcherHandles||(d.__watcherHandles=[])}else return tt;let _=p?new Array(e.length).fill(Fn):Fn;const j=()=>{if(N.active)if(t){const d=N.run();(o||u||(p?d.some((P,w)=>on(P,_[w])):on(d,_)))&&(m&&m(),qe(t,l,3,[d,_===Fn?void 0:p&&_[0]===Fn?[]:_,C]),_=d)}else N.run()};j.allowRecurse=!!t;let R;r==="sync"?R=j:r==="post"?R=()=>Be(j,l&&l.suspense):(j.pre=!0,l&&(j.id=l.uid),R=()=>Oo(j));const N=new wo(c,R);t?n?j():_=N.run():r==="post"?Be(N.run.bind(N),l&&l.suspense):N.run();const W=()=>{N.stop(),l&&l.scope&&co(l.scope.effects,N)};return L&&L.push(W),W}function ua(e,t,n){const o=this.proxy,r=be(e)?e.includes(".")?os(o,e):()=>o[e]:e.bind(o,o);let s;ne(t)?s=t:(s=t.handler,n=t);const i=Se;Zt(this);const a=Lo(r,s.bind(o),n);return i?Zt(i):Bt(),a}function os(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(_r(e)||Ht(e))e.forEach(n=>{Mt(n,t)});else if(wr(e))for(const n in e)Mt(e[n],t);return e}function at(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(),qe(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}),cs(()=>{e.isUnmounting=!0}),e}const Je=[Function,Array],rs={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Je,onEnter:Je,onAfterEnter:Je,onEnterCancelled:Je,onBeforeLeave:Je,onLeave:Je,onAfterLeave:Je,onLeaveCancelled:Je,onBeforeAppear:Je,onAppear:Je,onAfterAppear:Je,onAppearCancelled:Je},da={name:"BaseTransition",props:rs,setup(e,{slots:t}){const n=zs(),o=fa();let r;return()=>{const s=t.default&&ls(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const _ of s)if(_.type!==Qe){i=_;break}}const a=ce(e),{mode:l}=a;if(o.isLeaving)return jo(i);const c=is(i);if(!c)return jo(i);const u=zo(c,a,o,n);Ao(c,u);const p=n.subTree,m=p&&is(p);let C=!1;const{getTransitionKey:L}=c.type;if(L){const _=L();r===void 0?r=_:_!==r&&(r=_,C=!0)}if(m&&m.type!==Qe&&(!At(c,m)||C)){const _=zo(m,a,o,n);if(Ao(m,_),l==="out-in")return o.isLeaving=!0,_.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},jo(i);l==="in-out"&&c.type!==Qe&&(_.delayLeave=(j,R,N)=>{const W=ss(o,m);W[String(m.key)]=m,j._leaveCb=()=>{R(),j._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=N})}return i}}};function ss(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:p,onLeave:m,onAfterLeave:C,onLeaveCancelled:L,onBeforeAppear:_,onAppear:j,onAfterAppear:R,onAppearCancelled:N}=t,W=String(e.key),d=ss(n,e),P=(v,k)=>{v&&qe(v,o,9,k)},w=(v,k)=>{const x=k[1];P(v,k),Q(v)?v.every(M=>M.length<=1)&&x():v.length<=1&&x()},I={mode:s,persisted:i,beforeEnter(v){let k=a;if(!n.isMounted)if(r)k=_||a;else return;v._leaveCb&&v._leaveCb(!0);const x=d[W];x&&At(e,x)&&x.el._leaveCb&&x.el._leaveCb(),P(k,[v])},enter(v){let k=l,x=c,M=u;if(!n.isMounted)if(r)k=j||l,x=R||c,M=N||u;else return;let $=!1;const z=v._enterCb=ee=>{$||($=!0,ee?P(M,[v]):P(x,[v]),I.delayedLeave&&I.delayedLeave(),v._enterCb=void 0)};k?w(k,[v,z]):z()},leave(v,k){const x=String(e.key);if(v._enterCb&&v._enterCb(!0),n.isUnmounting)return k();P(p,[v]);let M=!1;const $=v._leaveCb=z=>{M||(M=!0,k(),z?P(L,[v]):P(C,[v]),v._leaveCb=void 0,d[x]===e&&delete d[x])};d[x]=e,m?w(m,[v,$]):$()},clone(v){return zo(v,t,n,o)}};return I}function jo(e){if(Vn(e))return e=xt(e),e.children=null,e}function is(e){return Vn(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 ls(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(ls(i.children,t,a))):(t||i.type!==Qe)&&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,Vn=e=>e.type.__isKeepAlive;function pa(e,t){as(e,"a",t)}function ha(e,t){as(e,"da",t)}function as(e,t,n=Se){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Hn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Vn(r.parent.vnode)&&ga(o,t,n,r),r=r.parent}}function ga(e,t,n,o){const r=Hn(t,e,o,!0);Ve(()=>{co(o[t],r)},n)}function Hn(e,t,n=Se,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=qe(t,n,e,i);return Bt(),Ut(),a});return o?r.unshift(s):r.push(s),s}}const pt=e=>(t,n=Se)=>(!mn||e==="sp")&&Hn(e,(...o)=>t(...o),n),ma=pt("bm"),Fe=pt("m"),va=pt("bu"),_a=pt("u"),cs=pt("bum"),Ve=pt("um"),ba=pt("sp"),ya=pt("rtg"),wa=pt("rtc");function xa(e,t=Se){Hn("ec",e,t)}const us="components",fs=Symbol.for("v-ndc");function Ca(e){return be(e)?ka(us,e,!1)||e:e||fs}function ka(e,t,n=!0,o=!1){const r=Te||Se;if(r){const s=r.type;if(e===us){const a=Qa(s,!1);if(a&&(a===t||a===Re(t)||a===In(Re(t))))return s}const i=ds(r[e]||s[e],t)||ds(r.appContext[e],t);return!i&&o?s:i}}function ds(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 ps(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 xe(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),B();const i=s&&hs(s(n)),a=Ce(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 hs(e){return e.some(t=>Xn(t)?!(t.type===Qe||t.type===ge&&!hs(t.children)):!0)?e:null}const Bo=e=>e?As(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=Ze.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 C=i[t];if(C!==void 0)switch(C){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 p,m;if(u)return t==="$attrs"&&Ae(e,"get",t),u(e);if((p=a.__cssModules)&&(p=p[t]))return p;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 gs(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&&ms(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:p,mounted:m,beforeUpdate:C,updated:L,activated:_,deactivated:j,beforeDestroy:R,beforeUnmount:N,destroyed:W,unmounted:d,render:P,renderTracked:w,renderTriggered:I,errorCaptured:v,serverPrefetch:k,expose:x,inheritAttrs:M,components:$,directives:z,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):tt,Ge=!ne(U)&&ne(U.set)?U.set.bind(n):tt,_e=ie({get:fe,set:Ge});Object.defineProperty(o,F,{enumerable:!0,configurable:!0,get:()=>_e.value,set:Pe=>_e.value=Pe})}if(a)for(const F in a)vs(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&&ms(u,e,"c");function T(F,U){Q(U)?U.forEach(fe=>F(fe.bind(n))):U&&F(U.bind(n))}if(T(ma,p),T(Fe,m),T(va,C),T(_a,L),T(pa,_),T(ha,j),T(xa,v),T(wa,w),T(ya,I),T(cs,N),T(Ve,d),T(ba,k),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={});P&&e.render===tt&&(e.render=P),M!=null&&(e.inheritAttrs=M),$&&(e.components=$),z&&(e.directives=z)}function Ta(e,t,n=tt){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 ms(e,t,n){qe(Q(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function vs(e,t,n,o){const r=o.includes(".")?os(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=>vs(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:_s,props:bs,emits:bs,methods:pn,computed:pn,beforeCreate:Me,created:Me,beforeMount:Me,mounted:Me,beforeUpdate:Me,updated:Me,beforeDestroy:Me,beforeUnmount:Me,destroyed:Me,unmounted:Me,activated:Me,deactivated:Me,errorCaptured:Me,serverPrefetch:Me,components:pn,directives:pn,watch:Ea,provide:_s,inject:Pa};function _s(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 Me(e,t){return e?[...new Set([].concat(e,t))]:t}function pn(e,t){return e?ve(Object.create(null),e,t):t}function bs(e,t){return e?Q(e)&&Q(t)?[...new Set([...e,...t])]:ve(Object.create(null),gs(e),gs(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]=Me(e[o],t[o]);return n}function ys(){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=ys(),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,p){if(!a){const m=q(o,r);return m.appContext=s,u&&t?t(m,c):e(m,c,p),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(Se){let n=Se.provides;const o=Se.parent&&Se.parent.provides;o===n&&(n=Se.provides=Object.create(o)),n[e]=t}}function zt(e,t,n=!1){const o=Se||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),ws(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 p=0;p<u.length;p++){let m=u[p];if(Rn(e.emitsOptions,m))continue;const C=t[m];if(l)if(ae(s,m))C!==s[m]&&(s[m]=C,c=!0);else{const L=Re(m);r[L]=Vo(l,a,L,C,e,!1)}else C!==s[m]&&(s[m]=C,c=!0)}}}else{ws(e,t,r,s)&&(c=!0);let u;for(const p in a)(!t||!ae(t,p)&&((u=Ye(p))===p||!ae(t,u)))&&(l?n&&(n[p]!==void 0||n[u]!==void 0)&&(r[p]=Vo(l,a,p,void 0,e,!0)):delete r[p]);if(s!==a)for(const p in s)(!t||!ae(t,p))&&(delete s[p],c=!0)}c&&ft(e,"set","$attrs")}function ws(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 p=s[u];n[p]=Vo(r,l,p,c[p],e,!ae(c,p))}}return i}function Vo(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===Ye(n))&&(o=!0))}return o}function xs(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=p=>{l=!0;const[m,C]=xs(p,t,!0);ve(i,m),C&&a.push(...C)};!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,Ke),Ke;if(Q(s))for(let u=0;u<s.length;u++){const p=Re(s[u]);Cs(p)&&(i[p]=se)}else if(s)for(const u in s){const p=Re(u);if(Cs(p)){const m=s[u],C=i[p]=Q(m)||ne(m)?{type:m}:ve({},m);if(C){const L=$s(Boolean,C.type),_=$s(String,C.type);C[0]=L>-1,C[1]=_<0||L<_,(L>-1||ae(C,"default"))&&a.push(p)}}}const c=[i,a];return pe(e)&&o.set(e,c),c}function Cs(e){return e[0]!=="$"}function ks(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ss(e,t){return ks(e)===ks(t)}function $s(e,t){return Q(t)?t.findIndex(n=>Ss(n,e)):ne(t)&&Ss(t,e)?0:-1}const Ts=e=>e[0]==="_"||e==="$stable",Ho=e=>Q(e)?e.map(ct):[ct(e)],ja=(e,t,n)=>{if(t._n)return t;const o=oe((...r)=>Ho(t(...r)),n);return o._c=!1,o},Is=(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=Ho(s);t[r]=()=>i}}},Ps=(e,t)=>{const n=Ho(t);e.slots.default=()=>n},Aa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ce(t),En(t,"_",n)):Is(t,e.slots={})}else e.slots={},t&&Ps(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,Is(t,r)),i=t}else t&&(Ps(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,C)=>Wo(m,t&&(Q(t)?t[C]: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,p=a.setupState;if(c!=null&&c!==l&&(be(c)?(u[c]=null,ae(p,c)&&(p[c]=null)):ye(c)&&(c.value=null)),ne(l))wt(l,a,12,[i,u]);else{const m=be(l),C=ye(l);if(m||C){const L=()=>{if(e.f){const _=m?ae(p,l)?p[l]:u[l]:l.value;r?Q(_)&&co(_,s):Q(_)?_.includes(s)||_.push(s):m?(u[l]=[s],ae(p,l)&&(p[l]=u[l])):(l.value=[s],e.k&&(u[e.k]=l.value))}else m?(u[l]=i,ae(p,l)&&(p[l]=i)):C&&(l.value=i,e.k&&(u[e.k]=i))};i?(L.id=-1,Be(L,n)):L()}}}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:p,nextSibling:m,setScopeId:C=tt,insertStaticContent:L}=e,_=(f,h,y,E=null,O=null,A=null,D=!1,g=null,b=!!h.dynamicChildren)=>{if(f===h)return;f&&!At(f,h)&&(E=tn(f),Pe(f,O,A,!0),f=null),h.patchFlag===-2&&(b=!1,h.dynamicChildren=null);const{type:S,ref:H,shapeFlag:V}=h;switch(S){case Yn:j(f,h,y,E);break;case Qe:R(f,h,y,E);break;case Uo:f==null&&N(h,y,E,D);break;case ge:$(f,h,y,E,O,A,D,g,b);break;default:V&1?P(f,h,y,E,O,A,D,g,b):V&6?z(f,h,y,E,O,A,D,g,b):(V&64||V&128)&&S.process(f,h,y,E,O,A,D,g,b,it)}H!=null&&O&&Wo(H,f&&f.ref,A,h||f,!h)},j=(f,h,y,E)=>{if(f==null)o(h.el=a(h.children),y,E);else{const O=h.el=f.el;h.children!==f.children&&c(O,h.children)}},R=(f,h,y,E)=>{f==null?o(h.el=l(h.children||""),y,E):h.el=f.el},N=(f,h,y,E)=>{[f.el,f.anchor]=L(f.children,h,y,E,f.el,f.anchor)},W=({el:f,anchor:h},y,E)=>{let O;for(;f&&f!==h;)O=m(f),o(f,y,E),f=O;o(h,y,E)},d=({el:f,anchor:h})=>{let y;for(;f&&f!==h;)y=m(f),r(f),f=y;r(h)},P=(f,h,y,E,O,A,D,g,b)=>{D=D||h.type==="svg",f==null?w(h,y,E,O,A,D,g,b):k(f,h,O,A,D,g,b)},w=(f,h,y,E,O,A,D,g)=>{let b,S;const{type:H,props:V,shapeFlag:J,transition:te,dirs:re}=f;if(b=f.el=i(f.type,A,V&&V.is,V),J&8?u(b,f.children):J&16&&v(f.children,b,null,E,O,A&&H!=="foreignObject",D,g),re&&Lt(f,null,E,"created"),I(b,f,f.scopeId,D,E),V){for(const de in V)de!=="value"&&!$n(de)&&s(b,de,null,V[de],A,f.children,E,O,Ee);"value"in V&&s(b,"value",null,V.value),(S=V.onVnodeBeforeMount)&&ut(S,E,f)}re&&Lt(f,null,E,"beforeMount");const le=(!O||O&&!O.pendingBranch)&&te&&!te.persisted;le&&te.beforeEnter(b),o(b,h,y),((S=V&&V.onVnodeMounted)||le||re)&&Be(()=>{S&&ut(S,E,f),le&&te.enter(b),re&&Lt(f,null,E,"mounted")},O)},I=(f,h,y,E,O)=>{if(y&&C(f,y),E)for(let A=0;A<E.length;A++)C(f,E[A]);if(O){let A=O.subTree;if(h===A){const D=O.vnode;I(f,D,D.scopeId,D.slotScopeIds,O.parent)}}},v=(f,h,y,E,O,A,D,g,b=0)=>{for(let S=b;S<f.length;S++){const H=f[S]=g?kt(f[S]):ct(f[S]);_(null,H,h,y,E,O,A,D,g)}},k=(f,h,y,E,O,A,D)=>{const g=h.el=f.el;let{patchFlag:b,dynamicChildren:S,dirs:H}=h;b|=f.patchFlag&16;const V=f.props||se,J=h.props||se;let te;y&&jt(y,!1),(te=J.onVnodeBeforeUpdate)&&ut(te,y,h,f),H&&Lt(h,f,y,"beforeUpdate"),y&&jt(y,!0);const re=O&&h.type!=="foreignObject";if(S?x(f.dynamicChildren,S,g,y,E,re,A):D||U(f,h,g,null,y,E,re,A,!1),b>0){if(b&16)M(g,h,V,J,y,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=h.dynamicProps;for(let de=0;de<le.length;de++){const me=le[de],Ue=V[me],Pt=J[me];(Pt!==Ue||me==="value")&&s(g,me,Ue,Pt,O,f.children,y,E,Ee)}}b&1&&f.children!==h.children&&u(g,h.children)}else!D&&S==null&&M(g,h,V,J,y,E,O);((te=J.onVnodeUpdated)||H)&&Be(()=>{te&&ut(te,y,h,f),H&&Lt(h,f,y,"updated")},E)},x=(f,h,y,E,O,A,D)=>{for(let g=0;g<h.length;g++){const b=f[g],S=h[g],H=b.el&&(b.type===ge||!At(b,S)||b.shapeFlag&70)?p(b.el):y;_(b,S,H,null,E,O,A,D,!0)}},M=(f,h,y,E,O,A,D)=>{if(y!==E){if(y!==se)for(const g in y)!$n(g)&&!(g in E)&&s(f,g,y[g],null,D,h.children,O,A,Ee);for(const g in E){if($n(g))continue;const b=E[g],S=y[g];b!==S&&g!=="value"&&s(f,g,S,b,D,h.children,O,A,Ee)}"value"in E&&s(f,"value",y.value,E.value)}},$=(f,h,y,E,O,A,D,g,b)=>{const S=h.el=f?f.el:a(""),H=h.anchor=f?f.anchor:a("");let{patchFlag:V,dynamicChildren:J,slotScopeIds:te}=h;te&&(g=g?g.concat(te):te),f==null?(o(S,y,E),o(H,y,E),v(h.children,y,H,O,A,D,g,b)):V>0&&V&64&&J&&f.dynamicChildren?(x(f.dynamicChildren,J,y,O,A,D,g),(h.key!=null||O&&h===O.subTree)&&Es(f,h,!0)):U(f,h,y,H,O,A,D,g,b)},z=(f,h,y,E,O,A,D,g,b)=>{h.slotScopeIds=g,f==null?h.shapeFlag&512?O.ctx.activate(h,y,E,D,b):ee(h,y,E,O,A,D,b):G(f,h,b)},ee=(f,h,y,E,O,A,D)=>{const g=f.component=Ya(f,E,O);if(Vn(f)&&(g.ctx.renderer=it),Xa(g),g.asyncDep){if(O&&O.registerDep(g,T),!f.el){const b=g.subTree=q(Qe);R(null,b,h,y)}return}T(g,f,h,y,O,A,D)},G=(f,h,y)=>{const E=h.component=f.component;if(sa(f,h,y))if(E.asyncDep&&!E.asyncResolved){F(E,h,y);return}else E.next=h,Gl(E.update),E.update();else h.el=f.el,E.vnode=h},T=(f,h,y,E,O,A,D)=>{const g=()=>{if(f.isMounted){let{next:H,bu:V,u:J,parent:te,vnode:re}=f,le=H,de;jt(f,!1),H?(H.el=re.el,F(f,H,D)):H=re,V&&Pn(V),(de=H.props&&H.props.onVnodeBeforeUpdate)&&ut(de,te,H,re),jt(f,!0);const me=Mo(f),Ue=f.subTree;f.subTree=me,_(Ue,me,p(Ue.el),tn(Ue),f,O,A),H.el=me.el,le===null&&ia(f,me.el),J&&Be(J,O),(de=H.props&&H.props.onVnodeUpdated)&&Be(()=>ut(de,te,H,re),O)}else{let H;const{el:V,props:J}=h,{bm:te,m:re,parent:le}=f,de=un(h);if(jt(f,!1),te&&Pn(te),!de&&(H=J&&J.onVnodeBeforeMount)&&ut(H,le,h),jt(f,!0),V&&nn){const me=()=>{f.subTree=Mo(f),nn(V,f.subTree,f,O,null)};de?h.type.__asyncLoader().then(()=>!f.isUnmounted&&me()):me()}else{const me=f.subTree=Mo(f);_(null,me,y,E,f,O,A),h.el=me.el}if(re&&Be(re,O),!de&&(H=J&&J.onVnodeMounted)){const me=h;Be(()=>ut(H,le,me),O)}(h.shapeFlag&256||le&&un(le.vnode)&&le.vnode.shapeFlag&256)&&f.a&&Be(f.a,O),f.isMounted=!0,h=y=E=null}},b=f.effect=new wo(g,()=>Oo(S),f.scope),S=f.update=()=>b.run();S.id=f.uid,jt(f,!0),S()},F=(f,h,y)=>{h.component=f;const E=f.vnode.props;f.vnode=h,f.next=null,za(f,h.props,E,y),Ba(f,h.children,y),Wt(),Jr(),Ut()},U=(f,h,y,E,O,A,D,g,b=!1)=>{const S=f&&f.children,H=f?f.shapeFlag:0,V=h.children,{patchFlag:J,shapeFlag:te}=h;if(J>0){if(J&128){Ge(S,V,y,E,O,A,D,g,b);return}else if(J&256){fe(S,V,y,E,O,A,D,g,b);return}}te&8?(H&16&&Ee(S,O,A),V!==S&&u(y,V)):H&16?te&16?Ge(S,V,y,E,O,A,D,g,b):Ee(S,O,A,!0):(H&8&&u(y,""),te&16&&v(V,y,E,O,A,D,g,b))},fe=(f,h,y,E,O,A,D,g,b)=>{f=f||Ke,h=h||Ke;const S=f.length,H=h.length,V=Math.min(S,H);let J;for(J=0;J<V;J++){const te=h[J]=b?kt(h[J]):ct(h[J]);_(f[J],te,y,null,O,A,D,g,b)}S>H?Ee(f,O,A,!0,!1,V):v(h,y,E,O,A,D,g,b,V)},Ge=(f,h,y,E,O,A,D,g,b)=>{let S=0;const H=h.length;let V=f.length-1,J=H-1;for(;S<=V&&S<=J;){const te=f[S],re=h[S]=b?kt(h[S]):ct(h[S]);if(At(te,re))_(te,re,y,null,O,A,D,g,b);else break;S++}for(;S<=V&&S<=J;){const te=f[V],re=h[J]=b?kt(h[J]):ct(h[J]);if(At(te,re))_(te,re,y,null,O,A,D,g,b);else break;V--,J--}if(S>V){if(S<=J){const te=J+1,re=te<H?h[te].el:E;for(;S<=J;)_(null,h[S]=b?kt(h[S]):ct(h[S]),y,re,O,A,D,g,b),S++}}else if(S>J)for(;S<=V;)Pe(f[S],O,A,!0),S++;else{const te=S,re=S,le=new Map;for(S=re;S<=J;S++){const ze=h[S]=b?kt(h[S]):ct(h[S]);ze.key!=null&&le.set(ze.key,S)}let de,me=0;const Ue=J-re+1;let Pt=!1,so=0;const Vt=new Array(Ue);for(S=0;S<Ue;S++)Vt[S]=0;for(S=te;S<=V;S++){const ze=f[S];if(me>=Ue){Pe(ze,O,A,!0);continue}let et;if(ze.key!=null)et=le.get(ze.key);else for(de=re;de<=J;de++)if(Vt[de-re]===0&&At(ze,h[de])){et=de;break}et===void 0?Pe(ze,O,A,!0):(Vt[et-re]=S+1,et>=so?so=et:Pt=!0,_(ze,h[et],y,null,O,A,D,g,b),me++)}const io=Pt?Na(Vt):Ke;for(de=io.length-1,S=Ue-1;S>=0;S--){const ze=re+S,et=h[ze],lo=ze+1<H?h[ze+1].el:E;Vt[S]===0?_(null,et,y,lo,O,A,D,g,b):Pt&&(de<0||S!==io[de]?_e(et,y,lo,2):de--)}}},_e=(f,h,y,E,O=null)=>{const{el:A,type:D,transition:g,children:b,shapeFlag:S}=f;if(S&6){_e(f.component.subTree,h,y,E);return}if(S&128){f.suspense.move(h,y,E);return}if(S&64){D.move(f,h,y,it);return}if(D===ge){o(A,h,y);for(let V=0;V<b.length;V++)_e(b[V],h,y,E);o(f.anchor,h,y);return}if(D===Uo){W(f,h,y);return}if(E!==2&&S&1&&g)if(E===0)g.beforeEnter(A),o(A,h,y),Be(()=>g.enter(A),O);else{const{leave:V,delayLeave:J,afterLeave:te}=g,re=()=>o(A,h,y),le=()=>{V(A,()=>{re(),te&&te()})};J?J(A,re,le):le()}else o(A,h,y)},Pe=(f,h,y,E=!1,O=!1)=>{const{type:A,props:D,ref:g,children:b,dynamicChildren:S,shapeFlag:H,patchFlag:V,dirs:J}=f;if(g!=null&&Wo(g,null,y,f,!0),H&256){h.ctx.deactivate(f);return}const te=H&1&&J,re=!un(f);let le;if(re&&(le=D&&D.onVnodeBeforeUnmount)&&ut(le,h,f),H&6)en(f.component,y,E);else{if(H&128){f.suspense.unmount(y,E);return}te&&Lt(f,null,h,"beforeUnmount"),H&64?f.type.remove(f,h,y,O,it,E):S&&(A!==ge||V>0&&V&64)?Ee(S,h,y,!1,!0):(A===ge&&V&384||!O&&H&16)&&Ee(b,h,y),E&&We(f)}(re&&(le=D&&D.onVnodeUnmounted)||te)&&Be(()=>{le&&ut(le,h,f),te&&Lt(f,null,h,"unmounted")},y)},We=f=>{const{type:h,el:y,anchor:E,transition:O}=f;if(h===ge){mt(y,E);return}if(h===Uo){d(f);return}const A=()=>{r(y),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(f.shapeFlag&1&&O&&!O.persisted){const{leave:D,delayLeave:g}=O,b=()=>D(y,A);g?g(f.el,A,b):b()}else A()},mt=(f,h)=>{let y;for(;f!==h;)y=m(f),r(f),f=y;r(h)},en=(f,h,y)=>{const{bum:E,scope:O,update:A,subTree:D,um:g}=f;E&&Pn(E),O.stop(),A&&(A.active=!1,Pe(D,f,h,y)),g&&Be(g,h),Be(()=>{f.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},Ee=(f,h,y,E=!1,O=!1,A=0)=>{for(let D=A;D<f.length;D++)Pe(f[D],h,y,E,O)},tn=f=>f.shapeFlag&6?tn(f.component.subTree):f.shapeFlag&128?f.suspense.next():m(f.anchor||f.el),ro=(f,h,y)=>{f==null?h._vnode&&Pe(h._vnode,null,null,!0):_(h._vnode||null,f,h,null,null,null,y),Jr(),Qr(),h._vnode=f},it={p:_,um:Pe,m:_e,r:We,mt:ee,mc:v,pc:U,pbc:x,n:tn,o:e};let vt,nn;return t&&([vt,nn]=t(it)),{render:ro,hydrate:vt,createApp:Ma(ro,vt)}}function jt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Es(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||Es(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"),Qe=Symbol.for("v-cmt"),Uo=Symbol.for("v-stc"),hn=[];let ot=null;function B(e=!1){hn.push(ot=e?null:[])}function Va(){hn.pop(),ot=hn[hn.length-1]||null}let gn=1;function Os(e){gn+=e}function Ms(e){return e.dynamicChildren=gn>0?ot||Ke:null,Va(),gn>0&&ot&&ot.push(e),e}function Y(e,t,n,o,r,s){return Ms(X(e,t,n,o,r,s,!0))}function Ce(e,t,n,o,r){return Ms(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",Ls=({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&&Ls(t),ref:t&&Zn(t),scopeId:ts,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&&ot&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&ot.push(l),l}const q=Ha;function Ha(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===fs)&&(e=Qe),Xn(e)){const a=xt(e,t,!0);return n&&Ko(a,n),gn>0&&!s&&ot&&(a.shapeFlag&6?ot[ot.indexOf(e)]=a:ot.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=ke(a)),pe(l)&&(Hr(l)&&!Q(l)&&(l=ve({},l)),t.style=Oe(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&&Ls(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 Le(e="",t=!1){return t?(B(),Ce(Qe,null,e)):q(Qe,null,e)}function ct(e){return e==null||typeof e=="boolean"?q(Qe):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=ke([t.class,o.class]));else if(r==="style")t.style=Oe([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 ut(e,t,n,o=null){qe(e,t,7,[n,o])}const Ua=ys();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:xs(o,r),emitsOptions:es(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 Se=null;const zs=()=>Se||Te;let Yo,qt,js="__VUE_INSTANCE_SETTERS__";(qt=mo()[js])||(qt=mo()[js]=[]),qt.push(e=>Se=e),Yo=e=>{qt.length>1?qt.forEach(t=>t(e)):qt[0](e)};const Zt=e=>{Yo(e),e.scope.on()},Bt=()=>{Se&&Se.scope.off(),Yo(null)};function As(e){return e.vnode.shapeFlag&4}let mn=!1;function Xa(e,t=!1){mn=t;const{props:n,children:o}=e.vnode,r=As(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=Wr(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(),br(s)){if(s.then(Bt,Bt),t)return s.then(i=>{Bs(e,i,t)}).catch(i=>{Dn(i,e,0)});e.asyncDep=s}else Bs(e,s,t)}else Rs(e,t)}function Bs(e,t,n){ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=Xr(t)),Rs(e,n)}let Ds;function Rs(e,t,n){const o=e.type;if(!e.render){if(!t&&Ds&&!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=Ds(r,c)}}e.render=o.render||tt}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(Xr(Wr(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 Ns(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,Fs=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{Fs.innerHTML=o?`<svg>${e}</svg>`:e;const a=Fs.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 Vs=/\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);Vs.test(n)?e.setProperty(Ye(o),n.replace(Vs,""),"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 Ws="http://www.w3.org/1999/xlink";function ac(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Ws,t.slice(6,t.length)):e.setAttributeNS(Ws,t,n);else{const s=gl(t);n==null||s&&!Cr(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=Cr(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 Us=/(?:Once|Passive|Capture)$/;function dc(e){let t;if(Us.test(e)){t={};let o;for(;o=e.match(Us);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ye(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;qe(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 Ks=/^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&&Ks.test(t)&&ne(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ks.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,Ze(()=>{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(Ye(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ye(t),n+""):n||this.removeAttribute(Ye(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),Ye(s)!==s&&o(Ye(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})=>Ns(da,wc(e),t);Qt.displayName="Transition";const Ys={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({},rs,Ys);const Rt=(e,t=[])=>{Q(e)?e.forEach(n=>n(...t)):e&&e(...t)},Xs=e=>e?Q(e)?e.some(t=>t.length>1):e.length>1:!1;function wc(e){const t={};for(const $ in e)$ in Ys||(t[$]=e[$]);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:p=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:C=`${n}-leave-to`}=e,L=xc(r),_=L&&L[0],j=L&&L[1],{onBeforeEnter:R,onEnter:N,onEnterCancelled:W,onLeave:d,onLeaveCancelled:P,onBeforeAppear:w=R,onAppear:I=N,onAppearCancelled:v=W}=t,k=($,z,ee)=>{Nt($,z?u:a),Nt($,z?c:i),ee&&ee()},x=($,z)=>{$._isLeaving=!1,Nt($,p),Nt($,C),Nt($,m),z&&z()},M=$=>(z,ee)=>{const G=$?I:N,T=()=>k(z,$,ee);Rt(G,[z,T]),qs(()=>{Nt(z,$?l:s),$t(z,$?u:a),Xs(G)||Zs(z,o,_,T)})};return ve(t,{onBeforeEnter($){Rt(R,[$]),$t($,s),$t($,i)},onBeforeAppear($){Rt(w,[$]),$t($,l),$t($,c)},onEnter:M(!1),onAppear:M(!0),onLeave($,z){$._isLeaving=!0;const ee=()=>x($,z);$t($,p),Sc(),$t($,m),qs(()=>{$._isLeaving&&(Nt($,p),$t($,C),Xs(d)||Zs($,o,j,ee))}),Rt(d,[$,ee])},onEnterCancelled($){k($,!1),Rt(W,[$])},onAppearCancelled($){k($,!0),Rt(v,[$])},onLeaveCancelled($){x($),Rt(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 qs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Cc=0;function Zs(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 p=()=>{e.removeEventListener(c,m),s()},m=C=>{C.target===e&&++u>=l&&p()};setTimeout(()=>{u<l&&p()},a+1),e.addEventListener(c,m)}function kc(e,t){const n=window.getComputedStyle(e),o=L=>(n[L]||"").split(", "),r=o(`${St}Delay`),s=o(`${St}Duration`),i=Js(r,s),a=o(`${vn}Delay`),l=o(`${vn}Duration`),c=Js(a,l);let u=null,p=0,m=0;t===St?i>0&&(u=St,p=i,m=s.length):t===vn?c>0&&(u=vn,p=c,m=l.length):(p=Math.max(i,c),u=p>0?i>c?St:vn:null,m=u?u===St?s.length:l.length:0);const C=u===St&&/\b(transform|all)(,|$)/.test(o(`${St}Property`).toString());return{type:u,timeout:p,propCount:m,hasTransform:C}}function Js(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Qs(n)+Qs(e[o])))}function Qs(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Sc(){return document.body.offsetHeight}const Gs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Q(t)?n=>Pn(t,n):t};function $c(e){e.target.composing=!0}function ei(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=Gs(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",ei),Jt(e,"change",ei))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},s){if(e._assign=Gs(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))},rt=(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"},ti=(e,t)=>n=>{if(!("key"in n))return;const o=Ye(n.key);if(t.some(r=>r===o||Ec[r]===o))return e(n)},Go={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)=>(B(),Y("div",{class:ke(["fixed inset-0 bg-black visible z-[9999999999] text-stone-100 font-sans text-base",{"cursor-none":t.idle}])},[xe(t.$slots,"default"),X("div",{id:"controls",class:ke(["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:Oe({paddingTop:`${t.spaceTop||0}px`})},[X("div",Lc,[xe(t.$slots,"back"),xe(t.$slots,"exit"),xe(t.$slots,"chapter-nav")]),X("div",zc,[X("div",jc,[xe(t.$slots,"page-nav")]),X("div",Ac,[xe(t.$slots,"reset-zoom")]),X("div",Bc,[xe(t.$slots,"entry"),X("div",Dc,[xe(t.$slots,"settings")]),xe(t.$slots,"full-screen"),xe(t.$slots,"play")])]),X("div",{class:ke(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[xe(t.$slots,"progress")],2)],6)],2))}}),Rc=Object.freeze(Object.defineProperty({__proto__:null,default:ri},Symbol.toStringTag,{value:"Module"}));var si;const er=typeof window<"u",Nc=e=>typeof e=="function",Fc=e=>typeof e=="string",Tt=()=>{};er&&((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 tr(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 Vc(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,p)=>{r=t.rejectOnCancel?p:u,c&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,u(a())},c)),n=setTimeout(()=>{o&&s(o),o=null,u(a())},l)})}}function Hc(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 p=>{const m=bn(e),C=Date.now()-r,L=()=>l=p();if(c(),m<=0)return r=Date.now(),L();if(C>m&&(n||!i))r=Date.now(),L();else if(t)return new Promise((_,j)=>{a=o?j:_,s=setTimeout(()=>{r=Date.now(),i=!0,_(L()),c()},m-C)});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 nr(e){return Sr()?(_l(e),!0):!1}function He(e,t=200,n={}){return tr(Vc(t,n),e)}function li(e,t=200,n=!1,o=!0,r=!1){return tr(Hc(t,n,o,r),e)}function ai(e,t=!0){zs()?Fe(e):t?e():Ze(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,tr(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=er?window:void 0,ou=er?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,p,m)=>(u.addEventListener(p,m,r),()=>u.removeEventListener(p,m,r)),l=ue(()=>Ft(t),u=>{i(),u&&s.push(...n.flatMap(p=>o.map(m=>a(u,p,m))))},{immediate:!0,flush:"post"}),c=()=>{l(),i()};return nr(c),c}function pi(e,t=!1){const n=Z(),o=()=>n.value=!!e();return o(),ai(o,t),n}const or=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},rr="__vueuse_ssr_handlers__";or[rr]=or[rr]||{};const ru=or[rr];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:p=ht,eventFilter:m,onError:C=I=>{console.error(I)}}=o,L=(u?Kl:Z)(t);if(!n)try{n=su("getDefaultStorage",()=>{var I;return(I=ht)==null?void 0:I.localStorage})()}catch(I){C(I)}if(!n)return L;const _=bn(t),j=iu(_),R=(r=o.serializer)!=null?r:uu[j],{pause:N,resume:W}=nu(L,()=>d(L.value),{flush:s,deep:i,eventFilter:m});return p&&a&&It(p,"storage",w),w(),L;function d(I){try{if(I==null)n.removeItem(e);else{const v=R.write(I),k=n.getItem(e);k!==v&&(n.setItem(e,v),p&&(p==null||p.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:k,newValue:v,storageArea:n}))))}}catch(v){C(v)}}function P(I){const v=I?I.newValue:n.getItem(e);if(v==null)return l&&_!==null&&n.setItem(e,R.write(_)),_;if(!I&&c){const k=R.read(v);return Nc(c)?c(k,_):j==="object"&&!Array.isArray(k)?mi(mi({},_),k):k}else return typeof v!="string"?v:R.read(v)}function w(I){if(!(I&&I.storageArea!==n)){if(I&&I.key==null){L.value=_;return}if(!(I&&I.key!==e)){N();try{L.value=P(I)}catch(v){C(v)}finally{I?Ze(W):W()}}}}}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),p=>{l(),a.value&&r&&p&&(i=new ResizeObserver(t),i.observe(p,s))},{immediate:!0,flush:"post"}),u=()=>{l(),c()};return nr(u),{isSupported:a,stop:u}}function sr(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 p=o.getComputedStyle(u);i.value=parseFloat(p.width),a.value=parseFloat(p.height)}}else if(c){const u=Array.isArray(c)?c:[c];i.value=u.reduce((p,{inlineSize:m})=>p+m,0),a.value=u.reduce((p,{blockSize:m})=>p+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 ir(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:p,root:m})=>{if(l(),!p)return;const C=new IntersectionObserver(t,{root:m,rootMargin:r,threshold:s});C.observe(p),l=()=>{C.disconnect(),l=Tt}},{immediate:!0,flush:"post"}):Tt,u=()=>{l(),c()};return nr(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 lr(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=sr(n),p=He(()=>l({width:u.width.value,height:u.height.value}),50);p(),ue(u.width,p),ue(u.height,p)});function a(){o.value>=r.value.length-1?t("hide"):o.value++}function l(u){const p=c();r.value=p.map(({rect:m,text:C})=>{const L=m.top<u.height-m.bottom,_=m.left<u.width-m.right;return{text:C,style:{left:`${m.left}px`,top:`${m.top}px`,width:`${m.width}px`,height:`${m.height}px`},textStyle:{left:_?`${m.left-12}px`:void 0,right:_?void 0:`${u.width-m.left}px`,top:L?`${m.bottom+12}px`:`${m.top+20}px`,textAlign:L?void 0:"right",transform:L?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 p=[];return u.querySelectorAll("[data-tour]").forEach(C=>{var j;const L=(j=C.getAttribute("data-tour"))==null?void 0:j.trim();if(!(L!=null&&L.length))return;const _=C.getBoundingClientRect();p.push({rect:_,text:L})}),p}return(u,p)=>{var m,C;return B(),Y(ge,null,[X("div",{class:ke(["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:p[0]||(p[0]=rt((...L)=>K(i)&&K(i)(...L),["stop"]))},[s.value?(B(),Y("div",{key:o.value,class:"tour__target",style:Oe(s.value.style)},null,4)):Le("",!0),(B(),Y("div",{key:o.value,class:"tour__text",style:Oe((m=s.value)==null?void 0:m.textStyle)},Xe(((C=s.value)==null?void 0:C.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=sr(o),c=He(()=>{s({width:l.width.value,height:l.height.value})},50);c(),ue(l.width,c),ue(l.height,c)});function s(l){var p;const c=(p=o.value)==null?void 0:p.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=[],p=[];let m=0,C=0;const L=50,_=25;l.forEach(d=>{var k;const P=(k=d.getAttribute("title"))==null?void 0:k.trim(),w=d.getBoundingClientRect();if(!P||!w.height||!w.width)return;const I=Math.ceil((w.top-10)/L),v=Math.ceil((w.left-10)/L);p.push({isTour:!1,title:P,rect:w,fromX:v,toX:Math.max(v+1,Math.ceil((w.right+10)/L)),fromY:I,toY:Math.max(I+1,Math.ceil((w.bottom+10)/L))})}),p.forEach(d=>{for(let P=d.fromY;P<d.toY;P++){u[P]??(u[P]=[]);for(let w=d.fromX;w<d.toX;w++)u[P][w]=d;d.toY>m+1&&(m=d.toY-1),d.toX>C+1&&(C=d.toX-1)}});let j=C/2;p.forEach(d=>{d.isAlignRight=d.fromX>j});const R=(d,P)=>{u[P]??(u[P]=[]);const w=P>=d.toY;if(d.isTour)for(let I=d.fromX;I<d.toX;I++)delete u[d.fromY][I],d.fromY=P,d.toY=P+(w?1:-1),u[P][I]=d;else{const I=d.isAlignRight?d.fromX-3:d.fromX,v=I+3;d.helpItem={fromX:I,toX:v,fromY:P,toY:P+1,isTour:!0,isAlignRight:d.isAlignRight};for(let k=I;k<v;k++)u[P][k]=d.helpItem}},N=(d,P)=>{if(P>m||P<0)return!1;const w=P>=d.toY,I=u[P];if(!I)return R(d,P),!0;const v=I[d.fromX];if(v&&!v.isTour)return!1;if(v&&v.isTour)return N(v,w?P+1:P-1)?(R(d,P),!0):!1;if(!v){const k=d.isAlignRight?-1:1;return I[d.fromX+k]||I[d.fromX+k*2]?N(d,w?P+1:P-1):(R(d,P),!0)}return!1};p.forEach(d=>{if(!N(d,d.toY)){if(d.isAlignRight){const P=u[d.fromY]??[];if(!P.slice(d.fromX-3,d.fromX).filter(Boolean).length){const I=d.fromX-3,v=d.fromX;d.helpItem={isTour:!0,isAlignRight:!0,fromX:I,toX:v,fromY:d.fromY,toY:d.toY};for(let k=d.fromX-3;k<d.fromX;k++)P[k]=d.helpItem;return}}N(d,d.fromY-1)}});const W=[];return p.forEach(d=>{const{title:P,helpItem:w,rect:I,isAlignRight:v,fromX:k,fromY:x,toY:M}=d;if(!P||!w||!I)return;const $=w.fromY>=M,z=w.toY<=x;W.push({title:a(P),style:{top:$?`${I.bottom+(w.fromY-M)*L+_}px`:z?void 0:`${I.top+8}px`,bottom:z?`${c.height-I.top+(w.toY-x)*L+_}px`:void 0,left:v?void 0:`${I.left}px`,right:v?$?`${c.width-I.right}px`:`${c.width-I.right+I.width+_}px`:void 0},arrowStyle:{width:z||$?"2px":`${Math.abs(w.toX-k)*L+_-5}px`,height:z||$?`${($?w.fromY-M:x-w.toY)*L+_}px`:"2px",top:$?`${I.bottom}px`:z?void 0:`${I.top+20}px`,bottom:z?`${c.height-I.top}px`:void 0,left:v?void 0:`${I.left+I.width/2}px`,right:v?$?`${c.width-I.right+I.width/2}px`:`${c.width-I.right+I.width}px`:void 0}})}),W}function a(l){return n.touchDevice?l.split("(")[0].trim():l}return(l,c)=>(B(),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]=rt(u=>t("hide"),["stop"]))},[(B(!0),Y(ge,null,fn(r.value,u=>(B(),Y(ge,{key:u.title},[X("div",{class:"absolute",style:Oe(u.style)},Xe(u.title),5),X("div",{class:"absolute bg-stone-300 rounded-lg",style:Oe(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 B(),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?(B(),Y("button",Ou,[X("div",Mu,[q(o)]),X("div",Lu,Xe(Math.ceil(t.zoom*100))+"%",1)])):Le("",!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 B(),Y("svg",Au,Bu)}const ar=he(ju,[["render",Du]]),Ru=Object.freeze(Object.defineProperty({__proto__:null,default:ar},Symbol.toStringTag,{value:"Module"})),Nu={},Fu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Vu=[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 Hu(e,t){return B(),Y("svg",Fu,Vu)}const cr=he(Nu,[["render",Hu]]),Wu=Object.freeze(Object.defineProperty({__proto__:null,default:cr},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 ur(){const e=zt("busy:touchDevice"),t=zt("setBusyState");let n=!1;return Ve(()=>{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=ur();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)=>at((B(),Ce(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:rt(a,["stop"]),onMouseenter:s,onMouseleave:i}),{default:oe(()=>[X("div",Yu,[xe(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 B(),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 Ve(()=>e.dispose()),Kn("keyController",e),e}function to(e){const t=zt("keyController");Fe(()=>t.addListener(e)),Ve(()=>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=ur();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 B(),Y("div",{class:ke(["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?(B(),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]=rt(()=>{},["stop"]))},[X("div",nf,[q(l,{transparent:"",onClick:i[0]||(i[0]=()=>t("update:modelValue",!1))},{default:oe(()=>[q(a)]),_:1}),X("div",of,Xe(s.name),1),xe(s.$slots,"actions")]),X("div",rf,[xe(s.$slots,"default")])])):Le("",!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)=>(B(),Y("div",{class:ke(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:Oe({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[at(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,[xe(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)=>(B(),Y("div",uf,[X("div",{class:ke(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Xe(t.label),3),X("div",ff,[xe(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)=>(B(),Y("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[X("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Oe(r.value)},null,4),(B(!0),Y(ge,null,fn(n.items,(l,c)=>at((B(),Y("div",{key:c,tabindex:"0",class:ke(["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:[ti(()=>s(c),["enter"]),ti(()=>s(c),["space"])]},[Ct(Xe(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 B(),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 B(),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 st=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(st||{}),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 R,N,W,d,P;const{titleName:t,isWebtoon:n}=e,r=`tkr:${t?Sf(t):location.pathname}`,s=gu(r,{},{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(w){const I={};return w?(w.style!==void 0&&Object.values(gt).includes(w.style)&&(I.style=w.style),w.direction!==void 0&&Object.values(st).includes(w.direction)&&(I.direction=w.direction),w.gap!==void 0&&w.gap>=Ef&&w.gap<=Of&&(I.gap=w.gap),w.speed!==void 0&&w.speed>=yn&&w.speed<=wn&&(I.speed=w.speed),w.zoom!==void 0&&w.zoom>=yn&&w.zoom<=wn&&(I.zoom=w.zoom),Object.keys(I).length?I:void 0):I}}),i=w=>{if(!s.value){s.value=w;return}const I={...s.value};Object.entries(w).forEach(([v,k])=>{k===void 0?delete I[v]:I[v]=k}),Object.keys(I).length?s.value=I:(s.value=void 0,localStorage.removeItem(r))},a=Z(((R=s.value)==null?void 0:R.style)??gt.longStrip),l=Z(((N=s.value)==null?void 0:N.direction)??st.vertical),c=Z((W=s.value)==null?void 0:W.gap),u=Z(((d=s.value)==null?void 0:d.speed)??1),p=Z(((P=s.value)==null?void 0:P.zoom)??1),m=ie({get(){return n.value?gt.longStrip:a.value??gt.longStrip},set:w=>{a.value=w,i({style:w===gt.longStrip?void 0:w}),w!==gt.longStrip&&l.value===st.vertical&&(C.value=st.rtl)}}),C=ie({get:()=>n.value?st.vertical:l.value,set:w=>{l.value=w,i({direction:w===st.vertical?void 0:w})}}),L=ie({get:()=>c.value??(n.value?0:1),set(w){c.value=w,i({gap:w})}}),_=ie({get:()=>u.value,set(w){u.value=w,i({speed:w===1?void 0:w})}}),j=ie({get:()=>p.value,set(w){p.value=w,i({zoom:w===1?void 0:w})}});return{direction:C,style:m,gap:L,speed:_,zoom:j,isLongStrip:ie(()=>m.value===gt.longStrip),isDouble:ie(()=>m.value===gt.double),isRTL:ie(()=>C.value===st.rtl),isVertical:ie(()=>C.value===st.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,p=Ei,m=Pi,C=Ii;return B(),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(C,{modelValue:n.value,"onUpdate:modelValue":i[5]||(i[5]=L=>n.value=L),name:s.name},{actions:oe(()=>[q(l,{transparent:"",onClick:r},{default:oe(()=>[q(c)]),_:1})]),default:oe(()=>[q(p,{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]=L=>t("update:reader-style",L))},null,8,["model-value","items"])]),_:1}),q(p,{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]=L=>t("update:direction",L))},null,8,["model-value","items"])]),_:1}),q(p,{label:"Gap"},{default:oe(()=>[q(u,{"model-value":s.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":i[3]||(i[3]=L=>t("update:gap",L))},null,8,["model-value"])]),_:1}),q(p,{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]=L=>t("update:speed",L))},{suffix:oe(()=>[Ct(Xe(s.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),q(p,{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(Xe(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 B(),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 Vf(e,t){return B(),Y("svg",Nf,Ff)}const Ai=he(Rf,[["render",Vf]]),Hf=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 B(),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 B(),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 B(),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"},fr=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:C});const c=ur();function u(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(p(),Ze(()=>setTimeout(()=>{var d,P;(P=(d=s.value)==null?void 0:d.children[n.modelValue])==null||P.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),_(o.value)):setTimeout(j,250)}function p(){const d=o.value;if(d){const P=d.getBoundingClientRect(),w=P.x+P.width/2;i.value=P.y>window.innerHeight/2,a.value=w<window.innerWidth/3,l.value=w>window.innerWidth/3*2}}function m(d){d!=n.modelValue&&t("update:modelValue",d),u()}function C(d){r.value&&d.key==="Escape"&&(u(),d.preventDefault())}let L=[];function _(d){const P=window.getComputedStyle(d).zIndex,w=d.style.zIndex;(!P||!(+P>0))&&((!d.parentElement||d.parentElement.childElementCount>1)&&(d.style.zIndex="1",L.push({el:d,zIndex:w})),d.parentElement&&_(d.parentElement))}function j(){L.forEach(({el:d,zIndex:P})=>{d.style.zIndex=P??""}),L=[]}let R=!1;function N(){R||(R=!0,c(!0,{desktopOnly:!0}))}function W(){R&&(R=!1,c(!1,{desktopOnly:!0}))}return(d,P)=>{const w=Ri;return B(),Y("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(B(),Y("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:u})):Le("",!0),d.items.length?(B(),Ce(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?(B(),Y("ul",{key:0,ref_key:"list",ref:s,"aria-hidden":!r.value,class:ke(["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:P[0]||(P[0]=rt(()=>{},["stop"]))},[(B(!0),Y(ge,null,fn(d.items,(I,v)=>at((B(),Y("li",{key:v,tabindex:"-1",class:ke(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":v===d.modelValue}]),onClick:()=>m(v)},[X("div",{class:ke(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":v>0}])},[xe(d.$slots,"item",{item:I},()=>[Ct(Xe(I),1)])],2)],10,id)),[[K(Gt),30]])),128))],42,sd)):Le("",!0)]),_:3})):Le("",!0),at((B(),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":d.disabled}]},d.title?{title:d.title}:{},{onClick:rt(u,["stop"]),onMouseenter:N,onMouseleave:W}),[X("div",ad,[X("span",cd,Xe(d.label),1),d.items.length?(B(),Y("span",{key:0,class:ke(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":i.value}]),"aria-hidden":"true"},[q(w)],2)):Le("",!0)])],16,ld)),[[K(Gt),30]])],512)}}}),ud=Object.freeze(Object.defineProperty({__proto__:null,default:fr},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(p=>p.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 p=fr;return B(),Ce(p,{"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 B(),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 B(),Y("svg",_d,bd)}const Vi=he(vd,[["render",yd]]),wd=Object.freeze(Object.defineProperty({__proto__:null,default:Vi},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 B(),Y("svg",Cd,kd)}const Hi=he(xd,[["render",Sd]]),$d=Object.freeze(Object.defineProperty({__proto__:null,default:Hi},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 B(),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=ar,i=cr;return n.value?(B(),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?(B(),Ce(s,{key:0})):(B(),Ce(i,{key:1}))])):Le("",!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 B(),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=lr("tk:dir",null,{writeDefaults:!1,serializer:{read(r){return r===""||+r!==t.direction},write(r){return r?"":t.direction+""}}}),o=He(()=>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 B(),Ce(Qt,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:oe(()=>[K(n)?(B(),Y("div",{key:0,class:ke(["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(st).vertical,"rotate-180":r.direction===K(st).rtl}])},[q(i)],2)):Le("",!0)]),_:1})}}}),Dd=Object.freeze(Object.defineProperty({__proto__:null,default:Yi},Symbol.toStringTag,{value:"Module"})),no=[];function Rd(e){no.push(e),Ve(()=>{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,T=>G(T)),Fe(()=>{n.touchDevice?(It(window,"touchstart",N),Rd(M)):(It(o,"mousedown",L),ue(()=>n.horizontal,T=>{T?window.addEventListener("wheel",w,{passive:!1}):window.removeEventListener("wheel",w)},{immediate:!0}))}),Ve(()=>{window.removeEventListener("wheel",w)});let c;to({onKeyDown:T=>{var fe;if(n.busy)return;(fe=o.value)==null||fe.focus();const F=T.key==="Meta",U=T.key==="Control";if(F||U)s.value=!0,window.addEventListener("wheel",p,{passive:!1}),c=()=>{s.value=!1,window.removeEventListener("wheel",p),window.removeEventListener("blur",c),c=void 0},window.addEventListener("blur",c);else if(T.ctrlKey||T.metaKey)switch(T.key){case"0":G(1);break;case"-":G(r.value-.2),T.preventDefault();break;case"=":case"+":G(r.value+.2),T.preventDefault();break}},onKeyUp:()=>{s.value==!0&&(c==null||c())}});function u(T){a.value!==T&&(a.value=T,T?n.playController.pause():(t("dragEnd"),n.playController.resume()))}function p(T){T.stopPropagation(),T.preventDefault();const F=Math.ceil((r.value+T.deltaY*-.01)*100)/100;G(F,{x:T.clientX,y:T.clientY})}let m={x:0,y:0},C={x:0,y:0};function L(T){T.button===0&&(m={x:T.clientX,y:T.clientY},C={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",_),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",_),setTimeout(()=>u(!1))},{once:!0}),T.preventDefault(),T.stopPropagation())}function _(T){u(!0);const F=T.clientX-m.x,U=T.clientY-m.y,fe=o.value;fe.scrollLeft=C.x-F,fe.scrollTop=C.y-U}let j=!1,R={distance:0,zoom:r.value,x:0,y:0};function N(T){n.busy||(j=T.touches.length===2,j&&(u(!0),T.stopPropagation(),T.preventDefault(),R={distance:I(T),zoom:r.value,x:(T.touches[0].clientX+T.touches[1].clientX)/2,y:(T.touches[0].clientY+T.touches[1].clientY)/2}),(j||n.playController.isPlaying&&n.longStrip)&&(window.addEventListener("touchmove",d),window.addEventListener("touchend",W,{once:!0})))}function W(){if(window.removeEventListener("touchmove",d),j){u(!1),j=!1;return}if(!a.value)return;const T=He(()=>{u(!1),o.value.removeEventListener("scroll",U)},100),F=setTimeout(T,100);o.value.addEventListener("scroll",U);function U(){clearTimeout(F),T()}}function d(T){if(u(!0),j){T.stopPropagation(),T.preventDefault();const U=I(T)/R.distance;G(Math.ceil(U*R.zoom*100)/100,R)}}const P=He(()=>i.value=!1,100);function w(T){n.busy||(i.value||(i.value=!0),P(),T.deltaY&&(!s.value&&o.value&&(o.value.scrollLeft+=T.deltaY*(n.rtl?-1:1)),T.preventDefault()))}function I(T){return Math.hypot(T.touches[0].clientX-T.touches[1].clientX,T.touches[0].clientY-T.touches[1].clientY)}let v=0,k;function x(T){if(!a.value){if(!n.touchDevice){t("click",T);return}v++,k&&clearTimeout(k),v===2&&M(T.clientX,T.clientY),k=setTimeout(()=>{!a.value&&v===1&&t("click",T),k=void 0,v=0},300)}}function M(T,F){if(!v)return;v=0;const U=r.value===1?2:1;G(U,{x:T,y:F})}let $;const z=He(()=>{l.value=!1,$=void 0},150);function ee(){if(!l.value){const T=o.value;if(!T)return;const F=T.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;F&&($={el:F,rect:F.getBoundingClientRect()},l.value=!0)}if($)return z(),$}async function G(T,F){const U=o.value,fe=Math.min(wn,Math.max(yn,T));if(!U||r.value===fe)return;const Ge=ee();if(!Ge)return;const _e=(F==null?void 0:F.x)??U.clientWidth/2,Pe=(F==null?void 0:F.y)??U.clientHeight/2;r.value=fe,t("update:modelValue",fe),await Ze();const{el:We,rect:mt}=Ge,en=We.offsetWidth/mt.width,Ee=We.offsetHeight/mt.height;U.scrollLeft=We.offsetLeft-mt.left*en+_e*(en-1),U.scrollTop=We.offsetTop-mt.top*Ee+Pe*(Ee-1)}return(T,F)=>(B(),Y("div",{ref_key:"root",ref:o,tabindex:"0",class:ke(["w-full h-full overflow-auto overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!T.longStrip&&(a.value||i.value||l.value),"cursor-grabbing":a.value,"overflow-hidden":l.value}]),style:Oe({"font-size":`${r.value}px`}),onClick:rt(x,["stop"])},[xe(T.$slots,"default")],14,Fd))}}),Vd=Object.freeze(Object.defineProperty({__proto__:null,default:Xi},Symbol.toStringTag,{value:"Module"})),qi=we({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=Z(null),o=Z(!1);return Fe(async()=>{await Ze();let r=!1;ir(n,s=>{o.value=s.some(i=>i.isIntersecting),o.value&&!r&&t("visible")})}),(r,s)=>(B(),Y("div",{ref_key:"root",ref:n},[xe(r.$slots,"default",{visible:o.value})],512))}}),Hd=Object.freeze(Object.defineProperty({__proto__:null,default:qi},Symbol.toStringTag,{value:"Module"})),Wd=`.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
- `,Ud={},Kd={class:"loading-indicator"};function Yd(e,t){return B(),Y("div",Kd)}const dr=he(Ud,[["render",Yd],["styles",[Wd]]]),Xd=Object.freeze(Object.defineProperty({__proto__:null,default:dr},Symbol.toStringTag,{value:"Module"})),qd={key:0,class:"page--loading"},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 _;return(_=o.value)==null?void 0:_.$el}),s=Z(null),i=sr(r),a=ie(()=>{const{width:_,height:j}=i,R=n.isLongStrip?n.isVertical?_.value:j.value:Math.min(_.value,j.value);return Math.min(4,Math.max(1,Math.ceil(R/400-1)))*n.gap}),l=Z(n.pageIndex),c=Z(n.pageIndex),u=He(()=>{const _=n.pageIndex;l.value>_&&(l.value=_)},50);ue(()=>n.pageIndex,u);const p=ie(()=>{const{width:{value:_},height:{value:j}}=i;return n.pages.map(R=>{var x;const N=R.some(M=>{var $;return($=M.img)==null?void 0:$.isLoading}),W=R.map(M=>M.index),d={isLoading:N,indexes:W};if(N||W[W.length-1]<l.value-1||W[0]>c.value+2)return d;const P=R.map(({img:M})=>M).filter(Boolean);if(!P.length||(d.srcs=P.map(({src:M})=>M),P.every(M=>M.hasError)))return d;const I=(x=P.find(M=>!M.hasError))==null?void 0:x.size,v=P.reduce((M,$)=>{var z;return M+(((z=$.size)==null?void 0:z.width)??I.width)},0),k=P.reduce((M,$)=>{var z;return M+(((z=$.size)==null?void 0:z.height)??I.height)},0)/P.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&_/v<j/k?(d.width=Math.min(_,v),d.height=k*d.width/v):d.height=Math.min(j,k),d})}),m=ie(()=>{const _=n.isVertical?"width":"height";return p.value.map(j=>j[_]).filter(Boolean).sort((j,R)=>R-j)[0]});function C(_){const j=_.indexes[_.indexes.length-1];j!==void 0&&c.value<j&&(c.value=j)}function L(_){if(!n.isLongStrip){const j=n.isVertical?i.height.value:i.width.value,N=(n.isVertical?_.clientY:n.isRTL?j-_.clientX:_.clientX)/j;if(N<=.2){t("prev");return}else if(N>=.8){t("next");return}}t("click")}return(_,j)=>{const R=dr,N=qi,W=Xi;return B(),Ce(W,{ref_key:"root",ref:o,"model-value":_.zoom,"page-index":_.pageIndex,class:ke(["reader-body",{"reader-body--long-strip":_.isLongStrip,"reader-body--pages":!_.isLongStrip,"reader-body--vertical":_.isVertical,"reader-body--rtl":_.isRTL,"reader-body--idle":_.idle}]),"play-controller":_.playController,horizontal:!_.isVertical,rtl:_.isRTL,"touch-device":_.touchDevice,busy:_.busy,"long-strip":_.isLongStrip,style:Oe({"--gap":`${a.value}em`,"--space-top":(_.spaceTop||0)+"em","--screen-width-em":K(i).width.value+"em","--screen-height-em":K(i).height.value+"em",..._.isLongStrip?{"--max-size-em":m.value+"em"}:{}}),"onUpdate:modelValue":j[0]||(j[0]=d=>t("update:zoom",d)),onDragEnd:j[1]||(j[1]=()=>t("dragEnd")),onClick:L},{default:oe(()=>[(B(!0),Y(ge,null,fn(p.value,d=>(B(),Ce(N,Jn({key:_.direction+"_"+d.indexes[0],"data-index":d.indexes[0]},d.indexes.length>1?{"data-index2":d.indexes[1]}:{},{onVisible:()=>C(d)}),{default:oe(({visible:P})=>{var w;return[!((w=d.srcs)!=null&&w.length)||d.isLoading?(B(),Y("div",qd,[at(q(R,null,null,512),[[Go,P]])])):d.srcs.length==1?(B(),Y("img",{key:1,src:d.srcs[0],style:Oe({height:d.height!==void 0?d.height+"em":""})},null,12,Zd)):(B(),Y("div",{key:2,class:ke(["page--double",{"flex-row-reverse":_.isRTL}]),style:Oe({width:d.width!==void 0?d.width+"em":"",height:d.height!==void 0?d.height+"em":""})},[(B(!0),Y(ge,null,fn(d.srcs,I=>(B(),Y("div",{key:I},[X("img",{src:I},null,8,Jd)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),X("div",{ref_key:"autoNextEl",ref:s,class:"last","data-index":_.totalImgs},[xe(_.$slots,"end")],8,Qd)]),_:3},8,["model-value","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style"])}}}),[["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 .page--loading{align-items:center;display:flex;justify-content:center}.reader-body img{--tw-bg-opacity:1!important;background-color:rgb(41 37 36/var(--tw-bg-opacity))!important;-o-object-fit:contain!important;object-fit:contain!important;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}
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;ir(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))}),ir(n,l=>{r.value=l.some(c=>c.isIntersecting)}),Ve(()=>a&&clearInterval(a))}),(a,l)=>(B(),Y("div",{ref_key:"root",ref:n,class:"h-full w-full flex justify-center items-center"},[at(X("div",ep,[a.hasNext?(B(),Y("div",tp,[s.value?(B(),Y("div",np)):Le("",!0),at((B(),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]=rt(()=>t("next"),["stop"]))},[Ct(" Next in "+Xe(i.value),1)])),[[K(Gt)]])])):Le("",!0),at((B(),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]=rt(()=>t("hide"),["stop"]))},[Ct(" Hide ")])),[[K(Gt)]])],512),[[Go,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 I;let t=[];const n=Z(((I=e.raw.imgs)==null?void 0:I.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),p=Z(u.value===void 0||c===void 0),m=He(d,100),C=He(_,50);p.value?n.value.length?_():R():Ze(()=>setTimeout(()=>L(c),10)),Ve(()=>{i=!1,r.forEach(v=>URL.revokeObjectURL(v))});async function L(v){p.value=!1,await Ze(),e.onReady(v),ue(()=>Math.floor(e.page.value),async(k,x)=>{el({contentEl:l,imgEls:t,page:k,smooth:!0}),x??(x=-1),k!==x&&(a=Math.max(0,a-Math.abs(k-x))),C()},{immediate:!0})}function _(){const v=Math.floor(e.page.value),k=x=>{a>rp||j(x)};for(let x=v;x<n.value.length;x++)k(x);for(let x=v-1;x>=0;x--)k(x)}async function j(v){const k=n.value[v];if(!(!i||!k||o[k])){if(!o[k]){o[k]={src:k,isLoading:!0,hasError:!1},a++;const x=await ap(k);if(o[k]={src:k,size:x,isLoading:!1,hasError:!x},a=Math.max(0,a-1),x&&!u.value&&v>Math.min(1,n.value.length-2)){const M=x.height/x.width>2.5;u.value!==M&&(u.value=M)}p.value&&u.value!==void 0&&c!==void 0&&L(c)}C()}}function R(){let v=!1;const k=new MutationObserver(()=>{l&&m(l)});Ve(async()=>{k.disconnect();const x=e.page.value;await oo(),el({contentEl:l,imgEls:t,page:x})}),N(x=>{l!==x&&(l=x,k.disconnect(),k.observe(l,{childList:!0,subtree:!0}),v?m(l):(v=!0,d(l)))})}async function N(v){var ee;const k=(ee=e.spec)==null?void 0:ee.content;if(!k)return;const x=await ip(e.spec);let M=k?await xn(x?100:1,10,()=>document.querySelector(k)):void 0;if(!M)return;v(M);let $=0;const z=async()=>{if(i&&!(M!=null&&M.isConnected)){if($=0,M=await xn(50,20,()=>{const G=document.querySelector(k);return G!=null&&G.isConnected&&G!==M?G:void 0}),!M)return;v(M)}!i||++$>=10||setTimeout(z,200)};setTimeout(z,200)}let W=0;async function d(v){var z;if(!i||!v.isConnected)return;const k=Date.now();W=k;let x,M;const $=(z=e.spec)==null?void 0:z.imgDivs;if($){if(M=Array.from(v.querySelectorAll($)),x=await Promise.all(M.map(async(ee,G)=>{const T=Array.from(ee.querySelectorAll("img,canvas"));for(const F of T){const U=await w({ts:k,el:F,index:G,total:M.length,onImgLoad:()=>m(v)});if(U)return U}})),!i||!v.isConnected||W!==k)return}else{const ee=Array.from(v.querySelectorAll("img,canvas")),G=await Promise.all(ee.map((F,U)=>w({ts:k,el:F,index:U,total:ee.length,onImgLoad:()=>m(v)})));if(!i||!v.isConnected||W!==k)return;M=ee.filter((F,U)=>G[U]),x=G.filter(Boolean);const T=x.filter((F,U)=>F&&U!==x.lastIndexOf(F));T.length&&(x=x.filter(F=>F&&!T.includes(F)))}c??(c=Gi(M)),(x.length!==n.value.length||x.some((ee,G)=>n.value[G]!==ee))&&(t=M,n.value=x,C(),c!==void 0&&p.value&&u.value!==void 0&&n.value.some(Boolean)&&L(c))}const P=Date.now();async function w({ts:v,el:k,index:x,total:M,onImgLoad:$}){const z=s.get(k);let ee,G;if(k.tagName.toLowerCase()==="canvas"){if(z)return z.src;ee=await Qi(k)}else{if(k._tkLoadId_!==P&&(k._tkLoadId_=P,k.addEventListener("load",$),Ve(()=>{k._tkLoadId_===P&&delete k._tkLoadId_,k.removeEventListener("load",$)})),G=up(k),!G)return;if(G===(z==null?void 0:z.originalSrc))return z.src;if(ee=await lp(k,G),!i||W!==v)return;if(u.value===void 0&&x>Math.min(1,M-2)){const F=+(k.getAttribute("width")??0),U=+(k.getAttribute("height")??0);F&&U&&(u.value=U/F>2.5)}}return ee&&(s.set(k,{src:ee,originalSrc:G}),ee.startsWith("blob:")&&r.push(ee)),ee}return{isLoading:ie(()=>p.value),asyncImgs:ie(()=>n.value.map(v=>v?o[v]: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),Ve(()=>{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=pr(e??document.documentElement),c=i.offsetTop+(r?1:n%1)*i.getBoundingClientRect().height;l==null||l.scrollTo({top:c,behavior:s})})}function pr(e){if(e)return e.scrollHeight>e.clientHeight?e===document.body?pr(document.documentElement)??e:e:pr(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")),lr("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 hr=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,p=!1,m;const C=He(d,300),L=li(()=>{d(),C()},300),_=He(()=>p=!0,100);function j(){let x=null;ca(async()=>{a.value&&a.value!==x&&(x=a.value,N(e.value),x==null||x.removeEventListener("scroll",L),a.value.addEventListener("scroll",L))});const{width:M,height:$}=yu();ue(M,R),ue($,R),ue(n,R),ue(t,R)}async function R(){u=!0;const x=e.value;if(await Ze(),P()===x){u=!1;return}N(x)}function N(x,{smooth:M}={smooth:!1}){const $=a.value;if(!$)return;u=!0;const z=async()=>{await Ze(),u=!1,_()},ee=Math.floor(x),G=$.querySelector(`[data-index="${ee}"],[data-index2="${ee}"]`);if(!G){z();return}l(async()=>{await W($,!o.value&&M,async()=>{await k($,G,{smooth:M,page:x})}),await z()})}async function W(x,M,$){M&&x.style.setProperty("scroll-snap-type","none"),await $(),M&&x.style.removeProperty("scroll-snap-type")}function d(){if(!a.value||u||!p)return;const x=P();x!==void 0&&x!==e.value&&c(x)}function P(){const x=w();if(!x)return;const M=+x.getAttribute("data-index")||0;return o.value?Math.floor((M+I(x))*100)/100:M}function w(){m??(m=a.value.getRootNode());const x=m.elementsFromPoint(r.value||!o.value?window.innerWidth/2:s.value?window.innerWidth-hr:hr,r.value&&o.value?i.value||hr:window.innerHeight/2);for(let M=0;M<x.length;M++){const $=x[M];if($.hasAttribute("data-index"))return $;if($===a.value)break}}function I(x){const M=x.getBoundingClientRect();return r.value?Math.abs(M.top-(i.value||0))/M.height:s.value?Math.max(0,M.right-a.value.clientWidth)/M.width:Math.abs(M.left)/M.width}let v=!1;async function k(x,M,$){if(v)return;const z=M.getBoundingClientRect();if(!o.value){if(r.value){if(z.top<=0&&z.bottom>=x.clientHeight)return}else if(z.left<=0&&z.right>=x.clientWidth)return}v=!0;const ee=r.value?x.scrollTop:x.scrollLeft,G=$.page,T=o.value?G%1:0,F=await xn(30,10,async()=>{await oo();let _e;return o.value?r.value?_e=M.offsetTop+T*M.offsetHeight-(i.value??0):s.value?_e=M.offsetLeft-x.clientWidth+M.offsetWidth-T*M.offsetWidth:_e=M.offsetLeft+T*M.offsetWidth:r.value?_e=M.offsetTop+(z.top>0?0:z.height-x.clientHeight):_e=M.offsetLeft+(z.left>0?0:z.width-x.clientWidth),G>.5&&Math.abs(_e)<100?void 0:_e})??0;if(!$.smooth){r.value?x.scrollTop=F:x.scrollLeft=F,v=!1;return}const U=F-ee,fe=30;let Ge=0;return new Promise(_e=>{(function Pe(){const We=gp(Ge,ee,U,fe);r.value?x.scrollTop=We:x.scrollLeft=We,Ge++,Ge<=fe?requestAnimationFrame(Pe):(_e(),v=!1)})()})}return{init:j,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=lr("tk:isPlaying",e,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults:(v,k)=>v===void 0?k:v===!0||v==="true"}),c=Z(!1);let u,p;const m=He(w,100);let C;const L=He(()=>{c.value=!0,clearTimeout(C),C=l.value?void 0:setTimeout(a,s.value?3e4:6e4)},t?2e3:1e3),_=()=>setTimeout(()=>{c.value=!1,L(),C&&(clearTimeout(C),C=void 0)},30);_(),t||It(window,"mousemove",_);const j=_i();Fe(()=>{ue(j,v=>{l.value&&(v==="visible"?w():p==null||p())}),ue(i,()=>R()),ue(s,v=>{v||W()})}),Ve(()=>{clearTimeout(C),C=void 0});async function R(v){l.value&&(p==null||p()),v&&(await Ze(),await v()),l.value&&m()}function N(){l.value?W():d()}function W(){l.value&&(l.value=!1,p==null||p(),_())}function d(){!l.value&&s.value&&(l.value=!0,w(),_())}function P(){p==null||p()}function w(){const v=n.value;if(!l.value||!v)return;const k=o.value?v.scrollHeight-v.clientHeight:v.scrollWidth-v.clientWidth,x=I();if(k<=x){W();return}p=()=>{u=Date.now(),p=void 0};const M=Date.now();u=M;const $=.05*i.value,z=o.value?"scrollTop":"scrollLeft";let ee=Date.now(),G=0;const T=()=>{if(u!==M)return;const F=Date.now(),U=F-ee;ee=F;const fe=$*U+G;fe>=1?(G=fe%1,v[z]+=(fe-G)*(r.value?-1:1)):G=fe,setTimeout(T,1)};T()}function I(){const v=n.value;return o.value?v.scrollTop:r.value?-v.scrollLeft:v.scrollLeft}return{isPlaying:l,isIdle:c,toggle:N,play:d,pause:P,resume:w,stop:W,interfere:R,awake:_}}function vp(e){var C,L,_,j,R;let t=-1,n=(C=e.prev)==null?void 0:C.slug,o=(L=e.next)==null?void 0:L.slug;const{vol:r,inferVol:s,chap:i,title:a,slug:l,basePath:c}=e,u=r??s,p=a.chapters??[],m=(p==null?void 0:p.length)>1?p:[];if(m.length){if(t=m.findIndex(N=>N.slug===e.slug),t===-1&&(t=m.findIndex(N=>(N.vol??N.inferVol)===u&&N.chap===i)),t===-1&&(t=m.findIndex(N=>l.startsWith(`${N.slug}-`)&&l.length-N.slug.length>3)),t!==-1)n??(n=(_=m[t+1])==null?void 0:_.slug),o??(o=(j=m[t-1])==null?void 0:j.slug);else if(!n&&!o){const N=m.findIndex(W=>{const d=W.vol??W.inferVol;return u===void 0||d===void 0||u===d?W.chap<i:d<u});N!==-1?(n=m[N].slug,o=(R=m[N-1])==null?void 0:R.slug):o=m[m.length-1].slug}}return{activeIndex:t,activeLabel:nl({vol:r,chap:i}),chapters:m.map(N=>({label:nl(N),path:gr(c,N.slug)})),prevPath:gr(c,n),nextPath:gr(c,o)}}function gr(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)),T.init(),setTimeout(()=>{s=U()},50)},onError:()=>{}}),{direction:p,style:m,isRTL:C,isDouble:L,isVertical:_,isLongStrip:j,gap:R,speed:N,zoom:W}=Mf({titleName:n.raw.title.name,isWebtoon:u}),d=fp(l,L),P=ie(()=>a.value>=l.value.length),w=ie(()=>vp(n.raw)),I=ie(()=>{var g,b;return C.value?(g=w.value)==null?void 0:g.nextPath:(b=w.value)==null?void 0:b.prevPath}),v=ie(()=>{var g,b;return C.value?(g=w.value)==null?void 0:g.prevPath:(b=w.value)==null?void 0:b.nextPath}),k=Z(null),x=Z(null),M=Z(!1),$=Z(!1),z=mp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:ie(()=>{var g;return(g=k.value)==null?void 0:g.$el}),speed:N,isRTL:C,isVertical:_,isLongStrip:j,onLongIdle:()=>t("longIdle")});ue(z.isPlaying,g=>{g||h(!1),t("playingChanged",g)}),ue(z.isIdle,g=>{z.isPlaying.value&&h(g)}),ue(i,g=>{!g&&z.isIdle.value?z.awake():g&&n.fullScreen&&h()});const ee=ie(()=>!n.touchDevice&&z.isIdle.value&&!i.value),G=ie({get(){return W.value},set(g){z.interfere(()=>{W.value=g})}}),T=hp({page:a,style:m,direction:p,isLongStrip:j,isVertical:_,isRTL:C,spaceTop:ie(()=>n.spaceTop),scrollEl:ie(()=>{var g;return(g=k.value)==null?void 0:g.$el}),interferePlayer:g=>z.interfere(g),onChangedPage(g){const b=l.value.length;if(g<0||g>=b+1)return;const S=a.value;a.value=g,t("pageChanged",g),g>=b?(h(!1),z.stop()):g===0?h(!1):r||(j.value?s!==void 0&&U()-s>300&&h(!0):Math.abs(S-g)===1&&h(!0)),!o&&g>=b-2&&(o=!0,t("finished"))}}),F=ie(()=>Math.floor(a.value));function U(){var b;const g=(b=k.value)==null?void 0:b.$el;return g?_.value?g.scrollTop:C.value?-g.scrollLeft:g.scrollLeft:0}const fe=()=>z.interfere(()=>oo(100));tf().addListener({onKeyDown:g=>{if(n.tourEnabled)return;const b=j.value&&_.value,S=j.value&&!_.value,H=!j.value&&_.value,V=!j.value&&!_.value;switch(g.key){case" ":g.preventDefault(),j.value?(D(!1),z.toggle()):vt();break;case"ArrowUp":case"PageUp":b?fe():H&&(g.preventDefault(),it());break;case"ArrowDown":case"PageDown":b?fe():H&&(g.preventDefault(),vt());break;case"ArrowLeft":S?fe():V?(g.preventDefault(),tn()):_.value&&mt();break;case"ArrowRight":S?fe():V?(g.preventDefault(),ro()):_.value&&We();break}},onKeyUp:g=>{switch(g.key){case"f":E();break;case"t":y();break;case"h":D();break}}}),Fe(()=>{It("fullscreenchange",()=>{M.value=!!document.fullscreenElement})});function _e(){!n.touchDevice&&!j.value&&T.goToPage(F.value,{smooth:!0})}function Pe(){if(z.isPlaying.value){!n.fullScreen||!n.touchDevice?z.stop():z.awake();return}h()}function We(){var g;Ee((g=w.value)==null?void 0:g.nextPath)}function mt(){var g;Ee((g=w.value)==null?void 0:g.prevPath)}function en(g){var S,H,V;const b=(V=(H=(S=w.value)==null?void 0:S.chapters)==null?void 0:H[g])==null?void 0:V.path;b&&Ee(b)}function Ee(g){g&&(location.href=g.includes("://")?g:location.origin+g)}function tn(){C.value?vt():it()}function ro(){C.value?it():vt()}function it(){var S;const g=d.value,b=P.value?g[g.length-1][0].index:(S=g[nn()-1])==null?void 0:S[0].index;b!==void 0?T.goToPage(b):mt()}function vt(){var b;const g=P.value?F.value+1:((b=d.value[nn()+1])==null?void 0:b[0].index)??l.value.length;T.goToPage(g)}function nn(){const g=F.value,b=d.value.findIndex(S=>S.some(({index:H})=>H===g));return b===-1?d.value.length-1:b}function f(){pp(),z.stop(),t("dispose")}async function h(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 y(){n.entryId?A():O()}function E(){var g,b;document.fullscreenElement?document.exitFullscreen():(b=(g=x.value)==null?void 0:g.$el)==null||b.requestFullscreen()}function O(){z.stop(),t("addEntry")}function A(){z.stop(),t("openEntry",n.entryId)}function D(g){$.value!==g&&($.value=!$.value,$.value&&z.isPlaying&&z.stop())}return(g,b)=>{const S=dr,H=Ji,V=Zi,J=Yi,te=Ui,re=Wi,le=eo,de=Hi,me=fr,Ue=Vi,Pt=Fi,so=Ni,Vt=Di,io=Bi,ze=Ai,et=ji,lo=zi,Op=cr,Mp=ar,Lp=$i,zp=ki,jp=Ci,Ap=ri;return B(),Ce(Ap,{ref_key:"root",ref:x,"full-screen":!!g.fullScreen,idle:ee.value,"space-top":n.spaceTop,"touch-device":g.touchDevice,rtl:K(C),onClick:b[11]||(b[11]=rt(()=>{},["stop"]))},ps({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:w.value.activeIndex,label:w.value.activeLabel,title:"Select chapter",items:w.value.chapters,"onUpdate:modelValue":en},{item:oe(({item:je})=>[Ct(Xe(je.label),1)]),_:1},8,["modelValue","label","items"]),I.value||v.value?(B(),Y("div",bp,[q(le,{title:`${K(C)?"Next":"Prev"} chapter (←)`,href:I.value,disabled:!I.value,class:"!rounded-r-none"},{default:oe(()=>[q(Ue)]),_:1},8,["title","href","disabled"]),q(le,{title:`${K(C)?"Prev":"Next"} chapter (→)`,href:v.value,disabled:!v.value,class:"!rounded-l-none"},{default:oe(()=>[q(Pt)]),_:1},8,["title","href","disabled"])])):Le("",!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:y},{default:oe(()=>[g.entryId?(B(),Ce(Vt,{key:0})):(B(),Ce(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(p),"onUpdate:direction":b[4]||(b[4]=je=>ye(p)?p.value=je:null),gap:K(R),"onUpdate:gap":b[5]||(b[5]=je=>ye(R)?R.value=je:null),speed:K(N),"onUpdate:speed":b[6]||(b[6]=je=>ye(N)?N.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:D},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]=rt(()=>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:Oe({width:`${K(a)/(K(l).length-1)*100}%`})},null,4)]),default:oe(()=>[K(c)||!K(l).length?(B(),Y("div",_p,[q(S)])):(B(),Y(ge,{key:1},[q(V,{ref_key:"body",ref:k,zoom:G.value,"onUpdate:zoom":b[0]||(b[0]=je=>G.value=je),"page-index":F.value,pages:K(d),"total-imgs":K(l).length,direction:K(p),gap:K(R),"is-long-strip":K(j),isRTL:K(C),"is-vertical":K(_),"space-top":g.spaceTop,busy:K(i),idle:ee.value,"play-controller":K(z),"touch-device":g.touchDevice,onPrev:it,onNext:vt,onClick:Pe,onDragEnd:_e,onWheelPassive:b[1]||(b[1]=()=>K(z).interfere())},ps({_:2},[!K(c)&&K(l).length?{name:"end",fn:oe(()=>[q(H,{"has-next":!!w.value.nextPath,onNext:We,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"]),at(q(J,{direction:K(p)},null,8,["direction"]),[[Go,!P.value&&!g.tourEnabled&&!$.value]]),P.value?Le("",!0):(B(),Ce(te,{key:0,playing:!!K(z).isPlaying.value},null,8,["playing"]))],64)),$.value?(B(),Ce(zp,{key:2,"touch-device":g.touchDevice,onHide:D},null,8,["touch-device"])):Le("",!0),g.tourEnabled?(B(),Ce(jp,{key:3,onHide:b[10]||(b[10]=()=>t("tourEnabledChanged",!1))})):Le("",!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(d).length?{name:"page-nav",fn:oe(()=>[q(so,{"model-value":K(a),disabled:K(c),pages:K(d),"total-imgs":K(l).length,"onUpdate:modelValue":b[2]||(b[2]=je=>K(T).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:`${M.value?"Exit":"Enter"} fullscreen (F)`,onClick:E},{default:oe(()=>[M.value?(B(),Ce(ze,{key:0})):(B(),Ce(et,{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(z).isPlaying.value?"Pause":"Play"} (Space)`,disabled:K(c),onClick:b[8]||(b[8]=()=>K(z).toggle())},{default:oe(()=>[K(z).isPlaying.value?(B(),Ce(Op,{key:0})):(B(),Ce(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 B(),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",mr={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},$e={el:void 0,controller:void 0,data:sn({...mr})};async function Ip(e){if($e.controller)return $e.data.raw=e.raw,$e.controller;const t=()=>{$e.el&&(document.body.removeChild($e.el),$e.el=void 0),document.documentElement.classList.remove(Cn),Object.assign($e.data,mr),$e.controller=void 0};return $e.controller={triggerDoubleTap:(n,o)=>Nd(n,o),updateArgs(n){Object.assign($e.data,n),vr()},dispose:t},document.documentElement.classList.add(Cn),await Pp(),Object.assign($e.data,mr,e,{onDispose:()=>{var n;t(),(n=e==null?void 0:e.onDispose)==null||n.call(e)}}),vr(),$e.el||($e.el=document.createElement(Cn),document.body.appendChild($e.el)),$e.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:$e.data}),render(){return Ns(ol,{...this.readerData,onFullScreenChanged:n=>{var o,r;this.readerData.fullScreen=n,(r=(o=this.readerData).onFullScreenChanged)==null||r.call(o,n),vr()},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/IntersectionWrapper.vue":Hd,"./components/LoadingIndicator.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":Vd,"./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":Hf,"./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 vr(){if($e.data.adBlock)return;const{spaceTop:e,fullScreen:t}=$e.data,n=document.querySelector(":root");n==null||n.style.setProperty("--tk-safe-top",`${t?0:(e||0)+56}px`)}return Ip});
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,Ke)=>se in De?Bp(De,se,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):De[se]=Ke;var rl=(De,se,Ke)=>(Dp(De,typeof se!="symbol"?se+"":se,Ke),Ke);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={},Ke=[],tt=()=>{},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),G=Array.isArray,Ht=e=>Sn(e)==="[object Map]",_r=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",br=e=>pe(e)&&ne(e.then)&&ne(e.catch),yr=Object.prototype.toString,Sn=e=>yr.call(e),al=e=>Sn(e).slice(8,-1),wr=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"),In=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},cl=/-(\w)/g,Re=In(e=>e.replace(cl,(t,n)=>n?n.toUpperCase():"")),ul=/\B([A-Z])/g,Ye=In(e=>e.replace(ul,"-$1").toLowerCase()),Tn=In(e=>e.charAt(0).toUpperCase()+e.slice(1)),po=In(e=>e?`on${Tn(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 xr;const mo=()=>xr||(xr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Oe(e){if(G(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=be(o)?hl(o):Oe(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 ke(e){let t="";if(be(e))t=e;else if(G(e))for(let n=0;n<e.length;n++){const o=ke(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 Cr(e){return!!e||e===""}const Xe=e=>be(e)?e:e==null?"":G(e)||pe(e)&&(e.toString===yr||!ne(e.toString))?JSON.stringify(e,kr,2):String(e),kr=(e,t)=>t&&t.__v_isRef?kr(e,t.value):Ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:_r(t)?{[`Set(${t.size})`]:[...t.values()]}:pe(t)&&!G(t)&&!wr(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 Sr(){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},$r=e=>(e.w&_t)>0,Ir=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];$r(r)&&!Ir(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 nt;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=nt,n=bt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=nt,nt=this,bt=!0,_t=1<<++rn,rn<=bo?bl(this):Tr(this),this.fn()}finally{rn<=bo&&yl(this),_t=1<<--rn,nt=this.parent,bt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){nt===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 Pr=[];function Wt(){Pr.push(bt),bt=!1}function Ut(){const e=Pr.pop();bt=e===void 0?!0:e}function Ae(e,t,n){if(bt&&nt){let o=_o.get(e);o||_o.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=vo()),Er(r)}}function Er(e,t){let n=!1;rn<=bo?Ir(e)||(e.n|=_t,n=!$r(e)):n=!e.has(nt),n&&(e.add(nt),nt.deps.push(e))}function ft(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"&&G(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":G(e)?fo(n)&&a.push(i.get("length")):(a.push(i.get(Et)),Ht(e)&&a.push(i.get(yo)));break;case"delete":G(e)||(a.push(i.get(Et)),Ht(e)&&a.push(i.get(yo)));break;case"set":Ht(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=G(e)?e:[...e];for(const o of n)o.computed&&Or(o);for(const o of n)o.computed||Or(o)}function Or(e,t){(e!==nt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const wl=De("__proto__,__v_isRef,__isVue"),Mr=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),Lr=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?Vl:Vr:t?Fr:Nr).get(o))return o;const i=G(o);if(!e){if(i&&ae(Lr,r))return Reflect.get(Lr,r,s);if(r==="hasOwnProperty")return $l}const a=Reflect.get(o,r,s);return(uo(r)?Mr.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 Il=zr(),Tl=zr(!0);function zr(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)),!G(n)&&ye(i)&&!ye(r)))return i.value=r,!0;const a=G(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)&&ft(n,"set",o,r):ft(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&&ft(e,"delete",t,void 0),o}function El(e,t){const n=Reflect.has(e,t);return(!uo(t)||!Mr.has(t))&&Ae(e,"has",t),n}function Ol(e){return Ae(e,"iterate",G(e)?"length":Et),Reflect.ownKeys(e)}const jr={get:xl,set:Il,deleteProperty:Pl,has:El,ownKeys:Ol},Ml={get:kl,set(e,t){return!0},deleteProperty(e,t){return!0}},Ll=ve({},jr,{get:Cl,set:Tl}),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?To: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 Ar(e){e=ce(e);const t=ce(this);return On(t).has.call(t,e)||(t.add(e),ft(t,"add",e,e)),this}function Br(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)&&ft(n,"set",e,t):ft(n,"add",e,t),this}function Dr(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&&ft(t,"delete",e,void 0),s}function Rr(){const e=ce(this),t=e.size!==0,n=e.clear();return t&&ft(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?To: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=Ht(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=r[e](...o),u=n?ko:t?To:ln;return!t&&Ae(s,"iterate",l?yo:Et),{next(){const{value:d,done:v}=c.next();return v?{value:d,done:v}:{value:a?[u(d[0]),u(d[1])]:u(d),done:v}},[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:Ar,set:Br,delete:Dr,clear:Rr,forEach:jn(!1,!1)},t={get(s){return Mn(this,s,!1,!0)},get size(){return zn(this)},has:Ln,add:Ar,set:Br,delete:Dr,clear:Rr,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)},Nr=new WeakMap,Fr=new WeakMap,Vr=new WeakMap,Vl=new WeakMap;function Hl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wl(e){return e.__v_skip||!Object.isExtensible(e)?0:Hl(al(e))}function sn(e){return Yt(e)?e:Io(e,!1,jr,Rl,Nr)}function Ul(e){return Io(e,!1,Ll,Nl,Fr)}function $o(e){return Io(e,!0,Ml,Fl,Vr)}function Io(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 Wr(e){return En(e,"__v_skip",!0),e}const ln=e=>pe(e)?sn(e):e,To=e=>pe(e)?$o(e):e;function Ur(e){bt&&nt&&(e=ce(e),Er(e.dep||(e.dep=vo())))}function Kr(e,t){e=ce(e);const n=e.dep;n&&xo(n)}function ye(e){return!!(e&&e.__v_isRef===!0)}function J(e){return Yr(e,!1)}function Kl(e){return Yr(e,!0)}function Yr(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 Ur(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),Kr(this))}}function q(e){return ye(e)?e.value:e}const Xl={get:(e,t,n)=>q(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 Xr(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,Kr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=ce(this);return Ur(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=tt):(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 qe(e,t,n,o){if(ne(e)){const s=wt(e,t,n,o);return s&&br(s)&&s.catch(i=>{Dn(i,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(qe(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 Te=[];let lt=0;const Xt=[];let dt=null,Ot=0;const qr=Promise.resolve();let Eo=null;function Ze(e){const t=Eo||qr;return e?t.then(this?e.bind(this):e):t}function Ql(e){let t=lt+1,n=Te.length;for(;t<n;){const o=t+n>>>1;cn(Te[o])<e?t=o+1:n=o}return t}function Oo(e){(!Te.length||!Te.includes(e,an&&e.allowRecurse?lt+1:lt))&&(e.id==null?Te.push(e):Te.splice(Ql(e.id),0,e),Zr())}function Zr(){!an&&!Po&&(Po=!0,Eo=qr.then(Gr))}function Gl(e){const t=Te.indexOf(e);t>lt&&Te.splice(t,1)}function ea(e){G(e)?Xt.push(...e):(!dt||!dt.includes(e,e.allowRecurse?Ot+1:Ot))&&Xt.push(e),Zr()}function Jr(e,t=an?lt+1:0){for(;t<Te.length;t++){const n=Te[t];n&&n.pre&&(Te.splice(t,1),t--,n())}}function Qr(e){if(Xt.length){const t=[...new Set(Xt)];if(Xt.length=0,dt){dt.push(...t);return}for(dt=t,dt.sort((n,o)=>cn(n)-cn(o)),Ot=0;Ot<dt.length;Ot++)dt[Ot]();dt=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 Gr(e){Po=!1,an=!0,Te.sort(ta);const t=tt;try{for(lt=0;lt<Te.length;lt++){const n=Te[lt];n&&n.active!==!1&&wt(n,null,14)}}finally{lt=0,Te.length=0,Qr(),an=!1,Eo=null,(Te.length||Xt.length)&&Gr()}}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:v}=o[u]||se;v&&(r=n.map(C=>be(C)?C.trim():C)),d&&(r=n.map(ho))}let a,l=o[a=po(t)]||o[a=po(Re(t))];!l&&s&&(l=o[a=po(Ye(t))]),l&&qe(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,qe(c,e,6,r)}}function es(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=es(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):(G(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,Ye(t))||ae(e,t))}let Ie=null,ts=null;function Nn(e){const t=Ie;return Ie=e,ts=e&&e.type.__scopeId||null,t}function oe(e,t=Ie,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Os(-1);const s=Nn(t);let i;try{i=e(...r)}finally{Nn(s),o._d&&Os(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:v,setupState:C,ctx:M,inheritAttrs:I}=e;let N,W;const F=Nn(e);try{if(n.shapeFlag&4){const p=r||o;N=ct(u.call(p,p,d,s,C,v,M)),W=l}else{const p=t;N=ct(p.length>1?p(s,{attrs:l,slots:a,emit:c}):p(s,null)),W=t.props?l:oa(l)}}catch(p){hn.length=0,Dn(p,e,1),N=Z(Qe)}let L=N;if(W&&I!==!1){const p=Object.keys(W),{shapeFlag:P}=L;p.length&&P&7&&(i&&p.some(ao)&&(W=ra(W,i)),L=xt(L,W))}return n.dirs&&(L=xt(L),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition&&(L.transition=n.transition),N=L,Nn(F),N}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?ns(o,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const v=u[d];if(i[v]!==o[v]&&!Rn(c,v))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:o===i?!1:o?i?ns(o,i,c):!0:!!i;return!1}function ns(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?G(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=Sr()===((a=Se)==null?void 0:a.scope)?Se:null;let c,u=!1,d=!1;if(ye(e)?(c=()=>e.value,u=Bn(e)):Kt(e)?(c=()=>e,o=!0):G(e)?(d=!0,u=e.some(p=>Kt(p)||Bn(p)),c=()=>e.map(p=>{if(ye(p))return p.value;if(Kt(p))return Mt(p);if(ne(p))return wt(p,l,2)})):ne(e)?t?c=()=>wt(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return v&&v(),qe(e,l,3,[C])}:c=tt,t&&o){const p=c;c=()=>Mt(p())}let v,C=p=>{v=F.onStop=()=>{wt(p,l,4)}},M;if(mn)if(C=tt,t?n&&qe(t,l,3,[c(),d?[]:void 0,C]):c(),r==="sync"){const p=tc();M=p.__watcherHandles||(p.__watcherHandles=[])}else return tt;let I=d?new Array(e.length).fill(Fn):Fn;const N=()=>{if(F.active)if(t){const p=F.run();(o||u||(d?p.some((P,y)=>on(P,I[y])):on(p,I)))&&(v&&v(),qe(t,l,3,[p,I===Fn?void 0:d&&I[0]===Fn?[]:I,C]),I=p)}else F.run()};N.allowRecurse=!!t;let W;r==="sync"?W=N:r==="post"?W=()=>Be(N,l&&l.suspense):(N.pre=!0,l&&(N.id=l.uid),W=()=>Oo(N));const F=new wo(c,W);t?n?N():I=F.run():r==="post"?Be(F.run.bind(F),l&&l.suspense):F.run();const L=()=>{F.stop(),l&&l.scope&&co(l.scope.effects,F)};return M&&M.push(L),L}function ua(e,t,n){const o=this.proxy,r=be(e)?e.includes(".")?os(o,e):()=>o[e]:e.bind(o,o);let s;ne(t)?s=t:(s=t.handler,n=t);const i=Se;Zt(this);const a=Lo(r,s.bind(o),n);return i?Zt(i):Bt(),a}function os(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(G(e))for(let n=0;n<e.length;n++)Mt(e[n],t);else if(_r(e)||Ht(e))e.forEach(n=>{Mt(n,t)});else if(wr(e))for(const n in e)Mt(e[n],t);return e}function at(e,t){const n=Ie;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(),qe(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}),cs(()=>{e.isUnmounting=!0}),e}const Je=[Function,Array],rs={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Je,onEnter:Je,onAfterEnter:Je,onEnterCancelled:Je,onBeforeLeave:Je,onLeave:Je,onAfterLeave:Je,onLeaveCancelled:Je,onBeforeAppear:Je,onAppear:Je,onAfterAppear:Je,onAppearCancelled:Je},da={name:"BaseTransition",props:rs,setup(e,{slots:t}){const n=zs(),o=fa();let r;return()=>{const s=t.default&&ls(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const I of s)if(I.type!==Qe){i=I;break}}const a=ce(e),{mode:l}=a;if(o.isLeaving)return jo(i);const c=is(i);if(!c)return jo(i);const u=zo(c,a,o,n);Ao(c,u);const d=n.subTree,v=d&&is(d);let C=!1;const{getTransitionKey:M}=c.type;if(M){const I=M();r===void 0?r=I:I!==r&&(r=I,C=!0)}if(v&&v.type!==Qe&&(!At(c,v)||C)){const I=zo(v,a,o,n);if(Ao(v,I),l==="out-in")return o.isLeaving=!0,I.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},jo(i);l==="in-out"&&c.type!==Qe&&(I.delayLeave=(N,W,F)=>{const L=ss(o,v);L[String(v.key)]=v,N._leaveCb=()=>{W(),N._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=F})}return i}}};function ss(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:v,onAfterLeave:C,onLeaveCancelled:M,onBeforeAppear:I,onAppear:N,onAfterAppear:W,onAppearCancelled:F}=t,L=String(e.key),p=ss(n,e),P=(g,w)=>{g&&qe(g,o,9,w)},y=(g,w)=>{const x=w[1];P(g,w),G(g)?g.every(z=>z.length<=1)&&x():g.length<=1&&x()},$={mode:s,persisted:i,beforeEnter(g){let w=a;if(!n.isMounted)if(r)w=I||a;else return;g._leaveCb&&g._leaveCb(!0);const x=p[L];x&&At(e,x)&&x.el._leaveCb&&x.el._leaveCb(),P(w,[g])},enter(g){let w=l,x=c,z=u;if(!n.isMounted)if(r)w=N||l,x=W||c,z=F||u;else return;let T=!1;const j=g._enterCb=ee=>{T||(T=!0,ee?P(z,[g]):P(x,[g]),$.delayedLeave&&$.delayedLeave(),g._enterCb=void 0)};w?y(w,[g,j]):j()},leave(g,w){const x=String(e.key);if(g._enterCb&&g._enterCb(!0),n.isUnmounting)return w();P(d,[g]);let z=!1;const T=g._leaveCb=j=>{z||(z=!0,w(),j?P(M,[g]):P(C,[g]),g._leaveCb=void 0,p[x]===e&&delete p[x])};p[x]=e,v?y(v,[g,T]):T()},clone(g){return zo(g,t,n,o)}};return $}function jo(e){if(Vn(e))return e=xt(e),e.children=null,e}function is(e){return Vn(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 ls(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(ls(i.children,t,a))):(t||i.type!==Qe)&&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,Vn=e=>e.type.__isKeepAlive;function pa(e,t){as(e,"a",t)}function ha(e,t){as(e,"da",t)}function as(e,t,n=Se){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Hn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Vn(r.parent.vnode)&&ga(o,t,n,r),r=r.parent}}function ga(e,t,n,o){const r=Hn(t,e,o,!0);Ve(()=>{co(o[t],r)},n)}function Hn(e,t,n=Se,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=qe(t,n,e,i);return Bt(),Ut(),a});return o?r.unshift(s):r.push(s),s}}const pt=e=>(t,n=Se)=>(!mn||e==="sp")&&Hn(e,(...o)=>t(...o),n),ma=pt("bm"),Fe=pt("m"),va=pt("bu"),_a=pt("u"),cs=pt("bum"),Ve=pt("um"),ba=pt("sp"),ya=pt("rtg"),wa=pt("rtc");function xa(e,t=Se){Hn("ec",e,t)}const us="components",fs=Symbol.for("v-ndc");function Ca(e){return be(e)?ka(us,e,!1)||e:e||fs}function ka(e,t,n=!0,o=!1){const r=Ie||Se;if(r){const s=r.type;if(e===us){const a=Qa(s,!1);if(a&&(a===t||a===Re(t)||a===Tn(Re(t))))return s}const i=ds(r[e]||s[e],t)||ds(r.appContext[e],t);return!i&&o?s:i}}function ds(e,t){return e&&(e[t]||e[Re(t)]||e[Tn(Re(t))])}function fn(e,t,n,o){let r;const s=n&&n[o];if(G(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 ps(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(G(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 xe(e,t,n={},o,r){if(Ie.isCE||Ie.parent&&un(Ie.parent)&&Ie.parent.isCE)return t!=="default"&&(n.name=t),Z("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),B();const i=s&&hs(s(n)),a=Ce(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 hs(e){return e.some(t=>Xn(t)?!(t.type===Qe||t.type===ge&&!hs(t.children)):!0)?e:null}const Bo=e=>e?As(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=Ze.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 C=i[t];if(C!==void 0)switch(C){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,v;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(v=l.config.globalProperties,ae(v,t))return v[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 gs(e){return G(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&&ms(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:v,beforeUpdate:C,updated:M,activated:I,deactivated:N,beforeDestroy:W,beforeUnmount:F,destroyed:L,unmounted:p,render:P,renderTracked:y,renderTriggered:$,errorCaptured:g,serverPrefetch:w,expose:x,inheritAttrs:z,components:T,directives:j,filters:ee}=t;if(c&&Ia(c,o,null),i)for(const D in i){const K=i[D];ne(K)&&(o[D]=K.bind(n))}if(r){const D=r.call(n,n);pe(D)&&(e.data=sn(D))}if(Ro=!0,s)for(const D in s){const K=s[D],fe=ne(K)?K.bind(n,n):ne(K.get)?K.get.bind(n,n):tt,Ge=!ne(K)&&ne(K.set)?K.set.bind(n):tt,_e=ie({get:fe,set:Ge});Object.defineProperty(o,D,{enumerable:!0,configurable:!0,get:()=>_e.value,set:Pe=>_e.value=Pe})}if(a)for(const D in a)vs(a[D],o,n,D);if(l){const D=ne(l)?l.call(n):l;Reflect.ownKeys(D).forEach(K=>{Kn(K,D[K])})}u&&ms(u,e,"c");function k(D,K){G(K)?K.forEach(fe=>D(fe.bind(n))):K&&D(K.bind(n))}if(k(ma,d),k(Fe,v),k(va,C),k(_a,M),k(pa,I),k(ha,N),k(xa,g),k(wa,y),k(ya,$),k(cs,F),k(Ve,p),k(ba,w),G(x))if(x.length){const D=e.exposed||(e.exposed={});x.forEach(K=>{Object.defineProperty(D,K,{get:()=>n[K],set:fe=>n[K]=fe})})}else e.exposed||(e.exposed={});P&&e.render===tt&&(e.render=P),z!=null&&(e.inheritAttrs=z),T&&(e.components=T),j&&(e.directives=j)}function Ia(e,t,n=tt){G(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 ms(e,t,n){qe(G(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function vs(e,t,n,o){const r=o.includes(".")?os(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(G(e))e.forEach(s=>vs(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=Ta[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Ta={data:_s,props:bs,emits:bs,methods:pn,computed:pn,beforeCreate:Me,created:Me,beforeMount:Me,mounted:Me,beforeUpdate:Me,updated:Me,beforeDestroy:Me,beforeUnmount:Me,destroyed:Me,unmounted:Me,activated:Me,deactivated:Me,errorCaptured:Me,serverPrefetch:Me,components:pn,directives:pn,watch:Ea,provide:_s,inject:Pa};function _s(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(G(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Me(e,t){return e?[...new Set([].concat(e,t))]:t}function pn(e,t){return e?ve(Object.create(null),e,t):t}function bs(e,t){return e?G(e)&&G(t)?[...new Set([...e,...t])]:ve(Object.create(null),gs(e),gs(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]=Me(e[o],t[o]);return n}function ys(){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=ys(),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 v=Z(o,r);return v.appContext=s,u&&t?t(v,c):e(v,c,d),a=!0,l._container=c,c.__vue_app__=l,Qn(v.component)||v.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(Se){let n=Se.provides;const o=Se.parent&&Se.parent.provides;o===n&&(n=Se.provides=Object.create(o)),n[e]=t}}function zt(e,t,n=!1){const o=Se||Ie;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),ws(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 v=u[d];if(Rn(e.emitsOptions,v))continue;const C=t[v];if(l)if(ae(s,v))C!==s[v]&&(s[v]=C,c=!0);else{const M=Re(v);r[M]=Vo(l,a,M,C,e,!1)}else C!==s[v]&&(s[v]=C,c=!0)}}}else{ws(e,t,r,s)&&(c=!0);let u;for(const d in a)(!t||!ae(t,d)&&((u=Ye(d))===d||!ae(t,u)))&&(l?n&&(n[d]!==void 0||n[u]!==void 0)&&(r[d]=Vo(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&&ft(e,"set","$attrs")}function ws(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]=Vo(r,l,d,c[d],e,!ae(c,d))}}return i}function Vo(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===Ye(n))&&(o=!0))}return o}function xs(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[v,C]=xs(d,t,!0);ve(i,v),C&&a.push(...C)};!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,Ke),Ke;if(G(s))for(let u=0;u<s.length;u++){const d=Re(s[u]);Cs(d)&&(i[d]=se)}else if(s)for(const u in s){const d=Re(u);if(Cs(d)){const v=s[u],C=i[d]=G(v)||ne(v)?{type:v}:ve({},v);if(C){const M=$s(Boolean,C.type),I=$s(String,C.type);C[0]=M>-1,C[1]=I<0||M<I,(M>-1||ae(C,"default"))&&a.push(d)}}}const c=[i,a];return pe(e)&&o.set(e,c),c}function Cs(e){return e[0]!=="$"}function ks(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ss(e,t){return ks(e)===ks(t)}function $s(e,t){return G(t)?t.findIndex(n=>Ss(n,e)):ne(t)&&Ss(t,e)?0:-1}const Is=e=>e[0]==="_"||e==="$stable",Ho=e=>G(e)?e.map(ct):[ct(e)],ja=(e,t,n)=>{if(t._n)return t;const o=oe((...r)=>Ho(t(...r)),n);return o._c=!1,o},Ts=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Is(r))continue;const s=e[r];if(ne(s))t[r]=ja(r,s,o);else if(s!=null){const i=Ho(s);t[r]=()=>i}}},Ps=(e,t)=>{const n=Ho(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&&Ps(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&&(Ps(e,t),i={default:1});if(s)for(const a in r)!Is(a)&&!(a in i)&&delete r[a]};function Wo(e,t,n,o,r=!1){if(G(e)){e.forEach((v,C)=>Wo(v,t&&(G(t)?t[C]: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 v=be(l),C=ye(l);if(v||C){const M=()=>{if(e.f){const I=v?ae(d,l)?d[l]:u[l]:l.value;r?G(I)&&co(I,s):G(I)?I.includes(s)||I.push(s):v?(u[l]=[s],ae(d,l)&&(d[l]=u[l])):(l.value=[s],e.k&&(u[e.k]=l.value))}else v?(u[l]=i,ae(d,l)&&(d[l]=i)):C&&(l.value=i,e.k&&(u[e.k]=i))};i?(M.id=-1,Be(M,n)):M()}}}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:v,setScopeId:C=tt,insertStaticContent:M}=e,I=(f,h,b,E=null,O=null,A=null,R=!1,m=null,_=!!h.dynamicChildren)=>{if(f===h)return;f&&!At(f,h)&&(E=tn(f),Pe(f,O,A,!0),f=null),h.patchFlag===-2&&(_=!1,h.dynamicChildren=null);const{type:S,ref:U,shapeFlag:V}=h;switch(S){case Yn:N(f,h,b,E);break;case Qe:W(f,h,b,E);break;case Uo:f==null&&F(h,b,E,R);break;case ge:T(f,h,b,E,O,A,R,m,_);break;default:V&1?P(f,h,b,E,O,A,R,m,_):V&6?j(f,h,b,E,O,A,R,m,_):(V&64||V&128)&&S.process(f,h,b,E,O,A,R,m,_,it)}U!=null&&O&&Wo(U,f&&f.ref,A,h||f,!h)},N=(f,h,b,E)=>{if(f==null)o(h.el=a(h.children),b,E);else{const O=h.el=f.el;h.children!==f.children&&c(O,h.children)}},W=(f,h,b,E)=>{f==null?o(h.el=l(h.children||""),b,E):h.el=f.el},F=(f,h,b,E)=>{[f.el,f.anchor]=M(f.children,h,b,E,f.el,f.anchor)},L=({el:f,anchor:h},b,E)=>{let O;for(;f&&f!==h;)O=v(f),o(f,b,E),f=O;o(h,b,E)},p=({el:f,anchor:h})=>{let b;for(;f&&f!==h;)b=v(f),r(f),f=b;r(h)},P=(f,h,b,E,O,A,R,m,_)=>{R=R||h.type==="svg",f==null?y(h,b,E,O,A,R,m,_):w(f,h,O,A,R,m,_)},y=(f,h,b,E,O,A,R,m)=>{let _,S;const{type:U,props:V,shapeFlag:Q,transition:te,dirs:re}=f;if(_=f.el=i(f.type,A,V&&V.is,V),Q&8?u(_,f.children):Q&16&&g(f.children,_,null,E,O,A&&U!=="foreignObject",R,m),re&&Lt(f,null,E,"created"),$(_,f,f.scopeId,R,E),V){for(const de in V)de!=="value"&&!$n(de)&&s(_,de,null,V[de],A,f.children,E,O,Ee);"value"in V&&s(_,"value",null,V.value),(S=V.onVnodeBeforeMount)&&ut(S,E,f)}re&&Lt(f,null,E,"beforeMount");const le=(!O||O&&!O.pendingBranch)&&te&&!te.persisted;le&&te.beforeEnter(_),o(_,h,b),((S=V&&V.onVnodeMounted)||le||re)&&Be(()=>{S&&ut(S,E,f),le&&te.enter(_),re&&Lt(f,null,E,"mounted")},O)},$=(f,h,b,E,O)=>{if(b&&C(f,b),E)for(let A=0;A<E.length;A++)C(f,E[A]);if(O){let A=O.subTree;if(h===A){const R=O.vnode;$(f,R,R.scopeId,R.slotScopeIds,O.parent)}}},g=(f,h,b,E,O,A,R,m,_=0)=>{for(let S=_;S<f.length;S++){const U=f[S]=m?kt(f[S]):ct(f[S]);I(null,U,h,b,E,O,A,R,m)}},w=(f,h,b,E,O,A,R)=>{const m=h.el=f.el;let{patchFlag:_,dynamicChildren:S,dirs:U}=h;_|=f.patchFlag&16;const V=f.props||se,Q=h.props||se;let te;b&&jt(b,!1),(te=Q.onVnodeBeforeUpdate)&&ut(te,b,h,f),U&&Lt(h,f,b,"beforeUpdate"),b&&jt(b,!0);const re=O&&h.type!=="foreignObject";if(S?x(f.dynamicChildren,S,m,b,E,re,A):R||K(f,h,m,null,b,E,re,A,!1),_>0){if(_&16)z(m,h,V,Q,b,E,O);else if(_&2&&V.class!==Q.class&&s(m,"class",null,Q.class,O),_&4&&s(m,"style",V.style,Q.style,O),_&8){const le=h.dynamicProps;for(let de=0;de<le.length;de++){const me=le[de],Ue=V[me],Pt=Q[me];(Pt!==Ue||me==="value")&&s(m,me,Ue,Pt,O,f.children,b,E,Ee)}}_&1&&f.children!==h.children&&u(m,h.children)}else!R&&S==null&&z(m,h,V,Q,b,E,O);((te=Q.onVnodeUpdated)||U)&&Be(()=>{te&&ut(te,b,h,f),U&&Lt(h,f,b,"updated")},E)},x=(f,h,b,E,O,A,R)=>{for(let m=0;m<h.length;m++){const _=f[m],S=h[m],U=_.el&&(_.type===ge||!At(_,S)||_.shapeFlag&70)?d(_.el):b;I(_,S,U,null,E,O,A,R,!0)}},z=(f,h,b,E,O,A,R)=>{if(b!==E){if(b!==se)for(const m in b)!$n(m)&&!(m in E)&&s(f,m,b[m],null,R,h.children,O,A,Ee);for(const m in E){if($n(m))continue;const _=E[m],S=b[m];_!==S&&m!=="value"&&s(f,m,S,_,R,h.children,O,A,Ee)}"value"in E&&s(f,"value",b.value,E.value)}},T=(f,h,b,E,O,A,R,m,_)=>{const S=h.el=f?f.el:a(""),U=h.anchor=f?f.anchor:a("");let{patchFlag:V,dynamicChildren:Q,slotScopeIds:te}=h;te&&(m=m?m.concat(te):te),f==null?(o(S,b,E),o(U,b,E),g(h.children,b,U,O,A,R,m,_)):V>0&&V&64&&Q&&f.dynamicChildren?(x(f.dynamicChildren,Q,b,O,A,R,m),(h.key!=null||O&&h===O.subTree)&&Es(f,h,!0)):K(f,h,b,U,O,A,R,m,_)},j=(f,h,b,E,O,A,R,m,_)=>{h.slotScopeIds=m,f==null?h.shapeFlag&512?O.ctx.activate(h,b,E,R,_):ee(h,b,E,O,A,R,_):H(f,h,_)},ee=(f,h,b,E,O,A,R)=>{const m=f.component=Ya(f,E,O);if(Vn(f)&&(m.ctx.renderer=it),Xa(m),m.asyncDep){if(O&&O.registerDep(m,k),!f.el){const _=m.subTree=Z(Qe);W(null,_,h,b)}return}k(m,f,h,b,O,A,R)},H=(f,h,b)=>{const E=h.component=f.component;if(sa(f,h,b))if(E.asyncDep&&!E.asyncResolved){D(E,h,b);return}else E.next=h,Gl(E.update),E.update();else h.el=f.el,E.vnode=h},k=(f,h,b,E,O,A,R)=>{const m=()=>{if(f.isMounted){let{next:U,bu:V,u:Q,parent:te,vnode:re}=f,le=U,de;jt(f,!1),U?(U.el=re.el,D(f,U,R)):U=re,V&&Pn(V),(de=U.props&&U.props.onVnodeBeforeUpdate)&&ut(de,te,U,re),jt(f,!0);const me=Mo(f),Ue=f.subTree;f.subTree=me,I(Ue,me,d(Ue.el),tn(Ue),f,O,A),U.el=me.el,le===null&&ia(f,me.el),Q&&Be(Q,O),(de=U.props&&U.props.onVnodeUpdated)&&Be(()=>ut(de,te,U,re),O)}else{let U;const{el:V,props:Q}=h,{bm:te,m:re,parent:le}=f,de=un(h);if(jt(f,!1),te&&Pn(te),!de&&(U=Q&&Q.onVnodeBeforeMount)&&ut(U,le,h),jt(f,!0),V&&nn){const me=()=>{f.subTree=Mo(f),nn(V,f.subTree,f,O,null)};de?h.type.__asyncLoader().then(()=>!f.isUnmounted&&me()):me()}else{const me=f.subTree=Mo(f);I(null,me,b,E,f,O,A),h.el=me.el}if(re&&Be(re,O),!de&&(U=Q&&Q.onVnodeMounted)){const me=h;Be(()=>ut(U,le,me),O)}(h.shapeFlag&256||le&&un(le.vnode)&&le.vnode.shapeFlag&256)&&f.a&&Be(f.a,O),f.isMounted=!0,h=b=E=null}},_=f.effect=new wo(m,()=>Oo(S),f.scope),S=f.update=()=>_.run();S.id=f.uid,jt(f,!0),S()},D=(f,h,b)=>{h.component=f;const E=f.vnode.props;f.vnode=h,f.next=null,za(f,h.props,E,b),Ba(f,h.children,b),Wt(),Jr(),Ut()},K=(f,h,b,E,O,A,R,m,_=!1)=>{const S=f&&f.children,U=f?f.shapeFlag:0,V=h.children,{patchFlag:Q,shapeFlag:te}=h;if(Q>0){if(Q&128){Ge(S,V,b,E,O,A,R,m,_);return}else if(Q&256){fe(S,V,b,E,O,A,R,m,_);return}}te&8?(U&16&&Ee(S,O,A),V!==S&&u(b,V)):U&16?te&16?Ge(S,V,b,E,O,A,R,m,_):Ee(S,O,A,!0):(U&8&&u(b,""),te&16&&g(V,b,E,O,A,R,m,_))},fe=(f,h,b,E,O,A,R,m,_)=>{f=f||Ke,h=h||Ke;const S=f.length,U=h.length,V=Math.min(S,U);let Q;for(Q=0;Q<V;Q++){const te=h[Q]=_?kt(h[Q]):ct(h[Q]);I(f[Q],te,b,null,O,A,R,m,_)}S>U?Ee(f,O,A,!0,!1,V):g(h,b,E,O,A,R,m,_,V)},Ge=(f,h,b,E,O,A,R,m,_)=>{let S=0;const U=h.length;let V=f.length-1,Q=U-1;for(;S<=V&&S<=Q;){const te=f[S],re=h[S]=_?kt(h[S]):ct(h[S]);if(At(te,re))I(te,re,b,null,O,A,R,m,_);else break;S++}for(;S<=V&&S<=Q;){const te=f[V],re=h[Q]=_?kt(h[Q]):ct(h[Q]);if(At(te,re))I(te,re,b,null,O,A,R,m,_);else break;V--,Q--}if(S>V){if(S<=Q){const te=Q+1,re=te<U?h[te].el:E;for(;S<=Q;)I(null,h[S]=_?kt(h[S]):ct(h[S]),b,re,O,A,R,m,_),S++}}else if(S>Q)for(;S<=V;)Pe(f[S],O,A,!0),S++;else{const te=S,re=S,le=new Map;for(S=re;S<=Q;S++){const ze=h[S]=_?kt(h[S]):ct(h[S]);ze.key!=null&&le.set(ze.key,S)}let de,me=0;const Ue=Q-re+1;let Pt=!1,so=0;const Vt=new Array(Ue);for(S=0;S<Ue;S++)Vt[S]=0;for(S=te;S<=V;S++){const ze=f[S];if(me>=Ue){Pe(ze,O,A,!0);continue}let et;if(ze.key!=null)et=le.get(ze.key);else for(de=re;de<=Q;de++)if(Vt[de-re]===0&&At(ze,h[de])){et=de;break}et===void 0?Pe(ze,O,A,!0):(Vt[et-re]=S+1,et>=so?so=et:Pt=!0,I(ze,h[et],b,null,O,A,R,m,_),me++)}const io=Pt?Na(Vt):Ke;for(de=io.length-1,S=Ue-1;S>=0;S--){const ze=re+S,et=h[ze],lo=ze+1<U?h[ze+1].el:E;Vt[S]===0?I(null,et,b,lo,O,A,R,m,_):Pt&&(de<0||S!==io[de]?_e(et,b,lo,2):de--)}}},_e=(f,h,b,E,O=null)=>{const{el:A,type:R,transition:m,children:_,shapeFlag:S}=f;if(S&6){_e(f.component.subTree,h,b,E);return}if(S&128){f.suspense.move(h,b,E);return}if(S&64){R.move(f,h,b,it);return}if(R===ge){o(A,h,b);for(let V=0;V<_.length;V++)_e(_[V],h,b,E);o(f.anchor,h,b);return}if(R===Uo){L(f,h,b);return}if(E!==2&&S&1&&m)if(E===0)m.beforeEnter(A),o(A,h,b),Be(()=>m.enter(A),O);else{const{leave:V,delayLeave:Q,afterLeave:te}=m,re=()=>o(A,h,b),le=()=>{V(A,()=>{re(),te&&te()})};Q?Q(A,re,le):le()}else o(A,h,b)},Pe=(f,h,b,E=!1,O=!1)=>{const{type:A,props:R,ref:m,children:_,dynamicChildren:S,shapeFlag:U,patchFlag:V,dirs:Q}=f;if(m!=null&&Wo(m,null,b,f,!0),U&256){h.ctx.deactivate(f);return}const te=U&1&&Q,re=!un(f);let le;if(re&&(le=R&&R.onVnodeBeforeUnmount)&&ut(le,h,f),U&6)en(f.component,b,E);else{if(U&128){f.suspense.unmount(b,E);return}te&&Lt(f,null,h,"beforeUnmount"),U&64?f.type.remove(f,h,b,O,it,E):S&&(A!==ge||V>0&&V&64)?Ee(S,h,b,!1,!0):(A===ge&&V&384||!O&&U&16)&&Ee(_,h,b),E&&We(f)}(re&&(le=R&&R.onVnodeUnmounted)||te)&&Be(()=>{le&&ut(le,h,f),te&&Lt(f,null,h,"unmounted")},b)},We=f=>{const{type:h,el:b,anchor:E,transition:O}=f;if(h===ge){mt(b,E);return}if(h===Uo){p(f);return}const A=()=>{r(b),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(f.shapeFlag&1&&O&&!O.persisted){const{leave:R,delayLeave:m}=O,_=()=>R(b,A);m?m(f.el,A,_):_()}else A()},mt=(f,h)=>{let b;for(;f!==h;)b=v(f),r(f),f=b;r(h)},en=(f,h,b)=>{const{bum:E,scope:O,update:A,subTree:R,um:m}=f;E&&Pn(E),O.stop(),A&&(A.active=!1,Pe(R,f,h,b)),m&&Be(m,h),Be(()=>{f.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},Ee=(f,h,b,E=!1,O=!1,A=0)=>{for(let R=A;R<f.length;R++)Pe(f[R],h,b,E,O)},tn=f=>f.shapeFlag&6?tn(f.component.subTree):f.shapeFlag&128?f.suspense.next():v(f.anchor||f.el),ro=(f,h,b)=>{f==null?h._vnode&&Pe(h._vnode,null,null,!0):I(h._vnode||null,f,h,null,null,null,b),Jr(),Qr(),h._vnode=f},it={p:I,um:Pe,m:_e,r:We,mt:ee,mc:g,pc:K,pbc:x,n:tn,o:e};let vt,nn;return t&&([vt,nn]=t(it)),{render:ro,hydrate:vt,createApp:Ma(ro,vt)}}function jt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Es(e,t,n=!1){const o=e.children,r=t.children;if(G(o)&&G(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||Es(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"),Qe=Symbol.for("v-cmt"),Uo=Symbol.for("v-stc"),hn=[];let ot=null;function B(e=!1){hn.push(ot=e?null:[])}function Va(){hn.pop(),ot=hn[hn.length-1]||null}let gn=1;function Os(e){gn+=e}function Ms(e){return e.dynamicChildren=gn>0?ot||Ke:null,Va(),gn>0&&ot&&ot.push(e),e}function Y(e,t,n,o,r,s){return Ms(X(e,t,n,o,r,s,!0))}function Ce(e,t,n,o,r){return Ms(Z(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",Ls=({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:Ie,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&&Ls(t),ref:t&&Zn(t),scopeId:ts,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:Ie};return a?(Ko(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=be(n)?8:16),gn>0&&!i&&ot&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&ot.push(l),l}const Z=Ha;function Ha(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===fs)&&(e=Qe),Xn(e)){const a=xt(e,t,!0);return n&&Ko(a,n),gn>0&&!s&&ot&&(a.shapeFlag&6?ot[ot.indexOf(e)]=a:ot.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=ke(a)),pe(l)&&(Hr(l)&&!G(l)&&(l=ve({},l)),t.style=Oe(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&&Ls(a),ref:t&&t.ref?n&&r?G(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 Z(Yn,null,e,t)}function Le(e="",t=!1){return t?(B(),Ce(Qe,null,e)):Z(Qe,null,e)}function ct(e){return e==null||typeof e=="boolean"?Z(Qe):G(e)?Z(ge,null,e.slice()):typeof e=="object"?kt(e):Z(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(G(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=Ie:r===3&&Ie&&(Ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ne(t)?(t={default:t,_ctx:Ie},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=ke([t.class,o.class]));else if(r==="style")t.style=Oe([t.style,o.style]);else if(kn(r)){const s=t[r],i=o[r];i&&s!==i&&!(G(s)&&s.includes(i))&&(t[r]=s?[].concat(s,i):i)}else r!==""&&(t[r]=o[r])}return t}function ut(e,t,n,o=null){qe(e,t,7,[n,o])}const Ua=ys();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:xs(o,r),emitsOptions:es(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 Se=null;const zs=()=>Se||Ie;let Yo,qt,js="__VUE_INSTANCE_SETTERS__";(qt=mo()[js])||(qt=mo()[js]=[]),qt.push(e=>Se=e),Yo=e=>{qt.length>1?qt.forEach(t=>t(e)):qt[0](e)};const Zt=e=>{Yo(e),e.scope.on()},Bt=()=>{Se&&Se.scope.off(),Yo(null)};function As(e){return e.vnode.shapeFlag&4}let mn=!1;function Xa(e,t=!1){mn=t;const{props:n,children:o}=e.vnode,r=As(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=Wr(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(),br(s)){if(s.then(Bt,Bt),t)return s.then(i=>{Bs(e,i,t)}).catch(i=>{Dn(i,e,0)});e.asyncDep=s}else Bs(e,s,t)}else Rs(e,t)}function Bs(e,t,n){ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=Xr(t)),Rs(e,n)}let Ds;function Rs(e,t,n){const o=e.type;if(!e.render){if(!t&&Ds&&!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=Ds(r,c)}}e.render=o.render||tt}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(Xr(Wr(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 Ns(e,t,n){const o=arguments.length;return o===2?pe(t)&&!G(t)?Xn(t)?Z(e,null,[t]):Z(e,t):Z(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Xn(n)&&(n=[n]),Z(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,Fs=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{Fs.innerHTML=o?`<svg>${e}</svg>`:e;const a=Fs.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 Vs=/\s*!important$/;function Xo(e,t,n){if(G(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);Vs.test(n)?e.setProperty(Ye(o),n.replace(Vs,""),"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=Tn(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 Ws="http://www.w3.org/1999/xlink";function ac(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Ws,t.slice(6,t.length)):e.setAttributeNS(Ws,t,n);else{const s=gl(t);n==null||s&&!Cr(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=Cr(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 Us=/(?:Once|Passive|Capture)$/;function dc(e){let t;if(Us.test(e)){t={};let o;for(;o=e.match(Us);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ye(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;qe(mc(o,n.value),t,5,[o])};return n.value=e,n.attached=hc(),n}function mc(e,t){if(G(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 Ks=/^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&&Ks.test(t)&&ne(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ks.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,Ze(()=>{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&&!G(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=G(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(Ye(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ye(t),n+""):n||this.removeAttribute(Ye(t))))}_update(){oi(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Z(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),Ye(s)!==s&&o(Ye(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})=>Ns(da,wc(e),t);Qt.displayName="Transition";const Ys={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({},rs,Ys);const Rt=(e,t=[])=>{G(e)?e.forEach(n=>n(...t)):e&&e(...t)},Xs=e=>e?G(e)?e.some(t=>t.length>1):e.length>1:!1;function wc(e){const t={};for(const T in e)T in Ys||(t[T]=e[T]);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:v=`${n}-leave-active`,leaveToClass:C=`${n}-leave-to`}=e,M=xc(r),I=M&&M[0],N=M&&M[1],{onBeforeEnter:W,onEnter:F,onEnterCancelled:L,onLeave:p,onLeaveCancelled:P,onBeforeAppear:y=W,onAppear:$=F,onAppearCancelled:g=L}=t,w=(T,j,ee)=>{Nt(T,j?u:a),Nt(T,j?c:i),ee&&ee()},x=(T,j)=>{T._isLeaving=!1,Nt(T,d),Nt(T,C),Nt(T,v),j&&j()},z=T=>(j,ee)=>{const H=T?$:F,k=()=>w(j,T,ee);Rt(H,[j,k]),qs(()=>{Nt(j,T?l:s),$t(j,T?u:a),Xs(H)||Zs(j,o,I,k)})};return ve(t,{onBeforeEnter(T){Rt(W,[T]),$t(T,s),$t(T,i)},onBeforeAppear(T){Rt(y,[T]),$t(T,l),$t(T,c)},onEnter:z(!1),onAppear:z(!0),onLeave(T,j){T._isLeaving=!0;const ee=()=>x(T,j);$t(T,d),Sc(),$t(T,v),qs(()=>{T._isLeaving&&(Nt(T,d),$t(T,C),Xs(p)||Zs(T,o,N,ee))}),Rt(p,[T,ee])},onEnterCancelled(T){w(T,!1),Rt(L,[T])},onAppearCancelled(T){w(T,!0),Rt(g,[T])},onLeaveCancelled(T){x(T),Rt(P,[T])}})}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 qs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Cc=0;function Zs(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,v),s()},v=C=>{C.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),e.addEventListener(c,v)}function kc(e,t){const n=window.getComputedStyle(e),o=M=>(n[M]||"").split(", "),r=o(`${St}Delay`),s=o(`${St}Duration`),i=Js(r,s),a=o(`${vn}Delay`),l=o(`${vn}Duration`),c=Js(a,l);let u=null,d=0,v=0;t===St?i>0&&(u=St,d=i,v=s.length):t===vn?c>0&&(u=vn,d=c,v=l.length):(d=Math.max(i,c),u=d>0?i>c?St:vn:null,v=u?u===St?s.length:l.length:0);const C=u===St&&/\b(transform|all)(,|$)/.test(o(`${St}Property`).toString());return{type:u,timeout:d,propCount:v,hasTransform:C}}function Js(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Qs(n)+Qs(e[o])))}function Qs(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Sc(){return document.body.offsetHeight}const Gs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return G(t)?n=>Pn(t,n):t};function $c(e){e.target.composing=!0}function ei(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ic={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=Gs(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",ei),Jt(e,"change",ei))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},s){if(e._assign=Gs(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)}},Tc=["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)=>Tc.some(n=>e[`${n}Key`]&&!t.includes(n))},rt=(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"},ti=(e,t)=>n=>{if(!("key"in n))return;const o=Ye(n.key);if(t.some(r=>r===o||Ec[r]===o))return e(n)},Go={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)=>(B(),Y("div",{class:ke(["fixed inset-0 bg-black visible z-[9999999999] text-stone-100 font-sans text-base",{"cursor-none":t.idle}])},[xe(t.$slots,"default"),X("div",{id:"controls",class:ke(["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:Oe({paddingTop:`${t.spaceTop||0}px`})},[X("div",Lc,[xe(t.$slots,"back"),xe(t.$slots,"exit"),xe(t.$slots,"chapter-nav")]),X("div",zc,[X("div",jc,[xe(t.$slots,"page-nav")]),X("div",Ac,[xe(t.$slots,"reset-zoom")]),X("div",Bc,[xe(t.$slots,"entry"),X("div",Dc,[xe(t.$slots,"settings")]),xe(t.$slots,"full-screen"),xe(t.$slots,"play")])]),X("div",{class:ke(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[xe(t.$slots,"progress")],2)],6)],2))}}),Rc=Object.freeze(Object.defineProperty({__proto__:null,default:ri},Symbol.toStringTag,{value:"Module"}));var si;const er=typeof window<"u",Nc=e=>typeof e=="function",Fc=e=>typeof e=="string",It=()=>{};er&&((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():q(e)}function tr(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 Vc(e,t={}){let n,o,r=It;const s=a=>{clearTimeout(a),r(),r=It};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 Hc(e,t=!0,n=!0,o=!1){let r=0,s,i=!0,a=It,l;const c=()=>{s&&(clearTimeout(s),s=void 0,a(),a=It)};return d=>{const v=bn(e),C=Date.now()-r,M=()=>l=d();if(c(),v<=0)return r=Date.now(),M();if(C>v&&(n||!i))r=Date.now(),M();else if(t)return new Promise((I,N)=>{a=o?N:I,s=setTimeout(()=>{r=Date.now(),i=!0,I(M()),c()},v-C)});return!n&&!s&&(s=setTimeout(()=>i=!0,v)),i=!1,l}}function Wc(e=ii){const t=J(!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 nr(e){return Sr()?(_l(e),!0):!1}function He(e,t=200,n={}){return tr(Vc(t,n),e)}function li(e,t=200,n=!1,o=!0,r=!1){return tr(Hc(t,n,o,r),e)}function ai(e,t=!0){zs()?Fe(e):t?e():Ze(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,tr(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=er?window:void 0,ou=er?window.document:void 0;function Tt(...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 It;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},a=(u,d,v)=>(u.addEventListener(d,v,r),()=>u.removeEventListener(d,v,r)),l=ue(()=>Ft(t),u=>{i(),u&&s.push(...n.flatMap(d=>o.map(v=>a(u,d,v))))},{immediate:!0,flush:"post"}),c=()=>{l(),i()};return nr(c),c}function pi(e,t=!1){const n=J(),o=()=>n.value=!!e();return o(),ai(o,t),n}const or=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},rr="__vueuse_ssr_handlers__";or[rr]=or[rr]||{};const ru=or[rr];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:v,onError:C=$=>{console.error($)}}=o,M=(u?Kl:J)(t);if(!n)try{n=su("getDefaultStorage",()=>{var $;return($=ht)==null?void 0:$.localStorage})()}catch($){C($)}if(!n)return M;const I=bn(t),N=iu(I),W=(r=o.serializer)!=null?r:uu[N],{pause:F,resume:L}=nu(M,()=>p(M.value),{flush:s,deep:i,eventFilter:v});return d&&a&&Tt(d,"storage",y),y(),M;function p($){try{if($==null)n.removeItem(e);else{const g=W.write($),w=n.getItem(e);w!==g&&(n.setItem(e,g),d&&(d==null||d.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:w,newValue:g,storageArea:n}))))}}catch(g){C(g)}}function P($){const g=$?$.newValue:n.getItem(e);if(g==null)return l&&I!==null&&n.setItem(e,W.write(I)),I;if(!$&&c){const w=W.read(g);return Nc(c)?c(w,I):N==="object"&&!Array.isArray(w)?mi(mi({},I),w):w}else return typeof g!="string"?g:W.read(g)}function y($){if(!($&&$.storageArea!==n)){if($&&$.key==null){M.value=I;return}if(!($&&$.key!==e)){F();try{M.value=P($)}catch(g){C(g)}finally{$?Ze(L):L()}}}}}function _i({document:e=ou}={}){if(!e)return J("visible");const t=J(e.visibilityState);return Tt(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 nr(u),{isSupported:a,stop:u}}function sr(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=J(t.width),a=J(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:v})=>d+v,0),a.value=u.reduce((d,{blockSize:v})=>d+v,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 ir(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:i=ht}=n,a=pi(()=>i&&"IntersectionObserver"in i);let l=It;const c=a.value?ue(()=>({el:Ft(e),root:Ft(o)}),({el:d,root:v})=>{if(l(),!d)return;const C=new IntersectionObserver(t,{root:v,rootMargin:r,threshold:s});C.observe(d),l=()=>{C.disconnect(),l=It}},{immediate:!0,flush:"post"}):It,u=()=>{l(),c()};return nr(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 lr(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=J(n),a=J(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),Tt("resize",l,{passive:!0}),r&&Tt("orientationchange",l,{passive:!0}),{width:i,height:a}}const wu=we({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=J(null),o=J(0),r=J([]),s=ie(()=>r.value[o.value]),i=li(a,500);Fe(()=>{const u=sr(n),d=He(()=>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:v,text:C})=>{const M=v.top<u.height-v.bottom,I=v.left<u.width-v.right;return{text:C,style:{left:`${v.left}px`,top:`${v.top}px`,width:`${v.width}px`,height:`${v.height}px`},textStyle:{left:I?`${v.left-12}px`:void 0,right:I?void 0:`${u.width-v.left}px`,top:M?`${v.bottom+12}px`:`${v.top+20}px`,textAlign:M?void 0:"right",transform:M?void 0:"translateY(-50%)"}}}),o.value>=r.value.length&&(o.value=r.value.length-1)}function c(){var v;const u=(v=n.value)==null?void 0:v.parentElement;if(!u)return[];const d=[];return u.querySelectorAll("[data-tour]").forEach(C=>{var N;const M=(N=C.getAttribute("data-tour"))==null?void 0:N.trim();if(!(M!=null&&M.length))return;const I=C.getBoundingClientRect();d.push({rect:I,text:M})}),d}return(u,d)=>{var v,C;return B(),Y(ge,null,[X("div",{class:ke(["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]=rt((...M)=>q(i)&&q(i)(...M),["stop"]))},[s.value?(B(),Y("div",{key:o.value,class:"tour__target",style:Oe(s.value.style)},null,4)):Le("",!0),(B(),Y("div",{key:o.value,class:"tour__text",style:Oe((v=s.value)==null?void 0:v.textStyle)},Xe(((C=s.value)==null?void 0:C.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=J(null),r=J([]);Fe(async()=>{const l=sr(o),c=He(()=>{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 v=0,C=0;const M=50,I=25;l.forEach(p=>{var w;const P=(w=p.getAttribute("title"))==null?void 0:w.trim(),y=p.getBoundingClientRect();if(!P||!y.height||!y.width)return;const $=Math.ceil((y.top-10)/M),g=Math.ceil((y.left-10)/M);d.push({isTour:!1,title:P,rect:y,fromX:g,toX:Math.max(g+1,Math.ceil((y.right+10)/M)),fromY:$,toY:Math.max($+1,Math.ceil((y.bottom+10)/M))})}),d.forEach(p=>{for(let P=p.fromY;P<p.toY;P++){u[P]??(u[P]=[]);for(let y=p.fromX;y<p.toX;y++)u[P][y]=p;p.toY>v+1&&(v=p.toY-1),p.toX>C+1&&(C=p.toX-1)}});let N=C/2;d.forEach(p=>{p.isAlignRight=p.fromX>N});const W=(p,P)=>{u[P]??(u[P]=[]);const y=P>=p.toY;if(p.isTour)for(let $=p.fromX;$<p.toX;$++)delete u[p.fromY][$],p.fromY=P,p.toY=P+(y?1:-1),u[P][$]=p;else{const $=p.isAlignRight?p.fromX-3:p.fromX,g=$+3;p.helpItem={fromX:$,toX:g,fromY:P,toY:P+1,isTour:!0,isAlignRight:p.isAlignRight};for(let w=$;w<g;w++)u[P][w]=p.helpItem}},F=(p,P)=>{if(P>v||P<0)return!1;const y=P>=p.toY,$=u[P];if(!$)return W(p,P),!0;const g=$[p.fromX];if(g&&!g.isTour)return!1;if(g&&g.isTour)return F(g,y?P+1:P-1)?(W(p,P),!0):!1;if(!g){const w=p.isAlignRight?-1:1;return $[p.fromX+w]||$[p.fromX+w*2]?F(p,y?P+1:P-1):(W(p,P),!0)}return!1};d.forEach(p=>{if(!F(p,p.toY)){if(p.isAlignRight){const P=u[p.fromY]??[];if(!P.slice(p.fromX-3,p.fromX).filter(Boolean).length){const $=p.fromX-3,g=p.fromX;p.helpItem={isTour:!0,isAlignRight:!0,fromX:$,toX:g,fromY:p.fromY,toY:p.toY};for(let w=p.fromX-3;w<p.fromX;w++)P[w]=p.helpItem;return}}F(p,p.fromY-1)}});const L=[];return d.forEach(p=>{const{title:P,helpItem:y,rect:$,isAlignRight:g,fromX:w,fromY:x,toY:z}=p;if(!P||!y||!$)return;const T=y.fromY>=z,j=y.toY<=x;L.push({title:a(P),style:{top:T?`${$.bottom+(y.fromY-z)*M+I}px`:j?void 0:`${$.top+8}px`,bottom:j?`${c.height-$.top+(y.toY-x)*M+I}px`:void 0,left:g?void 0:`${$.left}px`,right:g?T?`${c.width-$.right}px`:`${c.width-$.right+$.width+I}px`:void 0},arrowStyle:{width:j||T?"2px":`${Math.abs(y.toX-w)*M+I-5}px`,height:j||T?`${(T?y.fromY-z:x-y.toY)*M+I}px`:"2px",top:T?`${$.bottom}px`:j?void 0:`${$.top+20}px`,bottom:j?`${c.height-$.top}px`:void 0,left:g?void 0:`${$.left+$.width/2}px`,right:g?T?`${c.width-$.right+$.width/2}px`:`${c.width-$.right+$.width}px`:void 0}})}),L}function a(l){return n.touchDevice?l.split("(")[0].trim():l}return(l,c)=>(B(),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]=rt(u=>t("hide"),["stop"]))},[(B(!0),Y(ge,null,fn(r.value,u=>(B(),Y(ge,{key:u.title},[X("div",{class:"absolute",style:Oe(u.style)},Xe(u.title),5),X("div",{class:"absolute bg-stone-300 rounded-lg",style:Oe(u.arrowStyle)},null,4)],64))),128))],512)],64))}}),Su=Object.freeze(Object.defineProperty({__proto__:null,default:ki},Symbol.toStringTag,{value:"Module"})),$u={},Iu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Tu=[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 B(),Y("svg",Iu,Tu)}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?(B(),Y("button",Ou,[X("div",Mu,[Z(o)]),X("div",Lu,Xe(Math.ceil(t.zoom*100))+"%",1)])):Le("",!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 B(),Y("svg",Au,Bu)}const ar=he(ju,[["render",Du]]),Ru=Object.freeze(Object.defineProperty({__proto__:null,default:ar},Symbol.toStringTag,{value:"Module"})),Nu={},Fu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Vu=[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 Hu(e,t){return B(),Y("svg",Fu,Vu)}const cr=he(Nu,[["render",Hu]]),Wu=Object.freeze(Object.defineProperty({__proto__:null,default:cr},Symbol.toStringTag,{value:"Module"}));function Uu({touchDevice:e}){const t=J(!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 ur(){const e=zt("busy:touchDevice"),t=zt("setBusyState");let n=!1;return Ve(()=>{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=ur();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)=>at((B(),Ce(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:rt(a,["stop"]),onMouseenter:s,onMouseleave:i}),{default:oe(()=>[X("div",Yu,[xe(l.$slots,"default")])]),_:3},16,["class","onClick"])),[[q(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 B(),Y("svg",Zu,Ju)}const Ii=he(qu,[["render",Qu]]),Gu=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},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 Ve(()=>e.dispose()),Kn("keyController",e),e}function to(e){const t=zt("keyController");Fe(()=>t.addListener(e)),Ve(()=>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"},Ti=we({__name:"BottomSheet",props:{modelValue:{type:Boolean},name:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;to({onKeyDown:r});const o=ur();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=Ii,l=eo;return B(),Y("div",{class:ke(["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))},[Z(Qt,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:oe(()=>[n.modelValue?(B(),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]=rt(()=>{},["stop"]))},[X("div",nf,[Z(l,{transparent:"",onClick:i[0]||(i[0]=()=>t("update:modelValue",!1))},{default:oe(()=>[Z(a)]),_:1}),X("div",of,Xe(s.name),1),xe(s.$slots,"actions")]),X("div",rf,[xe(s.$slots,"default")])])):Le("",!0)]),_:3})],2)}}}),sf=Object.freeze(Object.defineProperty({__proto__:null,default:Ti},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)=>(B(),Y("div",{class:ke(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:Oe({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[at(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),[[Ic,o.value]]),X("p",af,[xe(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)=>(B(),Y("div",uf,[X("div",{class:ke(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Xe(t.label),3),X("div",ff,[xe(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=J(null),r=J({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)=>(B(),Y("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[X("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Oe(r.value)},null,4),(B(!0),Y(ge,null,fn(n.items,(l,c)=>at((B(),Y("div",{key:c,tabindex:"0",class:ke(["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:[ti(()=>s(c),["enter"]),ti(()=>s(c),["space"])]},[Ct(Xe(l),1)],42,pf)),[[q(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 B(),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 B(),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 st=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(st||{}),gt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(gt||{});const $f=.25,If=5,Tf=.25,yn=.25,wn=5,Pf=.05,Ef=0,Of=4;function Mf(e){var W,F,L,p,P;const{titleName:t,isWebtoon:n}=e,r=`tkr:${t?Sf(t):location.pathname}`,s=gu(r,{},{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(y){const $={};return y?(y.style!==void 0&&Object.values(gt).includes(y.style)&&($.style=y.style),y.direction!==void 0&&Object.values(st).includes(y.direction)&&($.direction=y.direction),y.gap!==void 0&&y.gap>=Ef&&y.gap<=Of&&($.gap=y.gap),y.speed!==void 0&&y.speed>=yn&&y.speed<=wn&&($.speed=y.speed),y.zoom!==void 0&&y.zoom>=yn&&y.zoom<=wn&&($.zoom=y.zoom),Object.keys($).length?$:void 0):$}}),i=y=>{if(!s.value){s.value=y;return}const $={...s.value};Object.entries(y).forEach(([g,w])=>{w===void 0?delete $[g]:$[g]=w}),Object.keys($).length?s.value=$:(s.value=void 0,localStorage.removeItem(r))},a=J(((W=s.value)==null?void 0:W.style)??gt.longStrip),l=J(((F=s.value)==null?void 0:F.direction)??st.vertical),c=J((L=s.value)==null?void 0:L.gap),u=J(((p=s.value)==null?void 0:p.speed)??1),d=J(((P=s.value)==null?void 0:P.zoom)??1),v=ie({get(){return n.value?gt.longStrip:a.value??gt.longStrip},set:y=>{a.value=y,i({style:y===gt.longStrip?void 0:y}),y!==gt.longStrip&&l.value===st.vertical&&(C.value=st.rtl)}}),C=ie({get:()=>n.value?st.vertical:l.value,set:y=>{l.value=y,i({direction:y===st.vertical?void 0:y})}}),M=ie({get:()=>c.value??(n.value?0:1),set(y){c.value=y,i({gap:y})}}),I=ie({get:()=>u.value,set(y){u.value=y,i({speed:y===1?void 0:y})}}),N=ie({get:()=>d.value,set(y){d.value=y,i({zoom:y===1?void 0:y})}});return{direction:C,style:v,gap:M,speed:I,zoom:N,isLongStrip:ie(()=>v.value===gt.longStrip),isDouble:ie(()=>v.value===gt.double),isRTL:ie(()=>C.value===st.rtl),isVertical:ie(()=>C.value===st.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=J(!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,v=Pi,C=Ti;return B(),Y(ge,null,[Z(l,{title:"Reader settings (S)",disabled:s.disabled,onClick:i[0]||(i[0]=()=>n.value=!0)},{default:oe(()=>[Z(a)]),_:1},8,["disabled"]),Z(C,{modelValue:n.value,"onUpdate:modelValue":i[5]||(i[5]=M=>n.value=M),name:s.name},{actions:oe(()=>[Z(l,{transparent:"",onClick:r},{default:oe(()=>[Z(c)]),_:1})]),default:oe(()=>[Z(d,{label:"Style"},{default:oe(()=>[Z(u,{"model-value":s.readerStyle,items:s.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":i[1]||(i[1]=M=>t("update:reader-style",M))},null,8,["model-value","items"])]),_:1}),Z(d,{label:"Direction"},{default:oe(()=>[Z(u,{"model-value":s.direction,items:s.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":i[2]||(i[2]=M=>t("update:direction",M))},null,8,["model-value","items"])]),_:1}),Z(d,{label:"Gap"},{default:oe(()=>[Z(u,{"model-value":s.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":i[3]||(i[3]=M=>t("update:gap",M))},null,8,["model-value"])]),_:1}),Z(d,{label:"Speed"},{default:oe(()=>[Z(v,{"model-value":s.speed,min:q($f),max:q(If),step:q(Tf),suffix:"x","onUpdate:modelValue":i[4]||(i[4]=M=>t("update:speed",M))},{suffix:oe(()=>[Ct(Xe(s.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),Z(d,{label:"Zoom"},{default:oe(()=>[Z(v,{"model-value":Math.ceil(s.zoom*100),min:q(yn)*100,max:q(wn)*100,step:q(Pf)*100,"onUpdate:modelValue":o},{suffix:oe(()=>[Ct(Xe(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 B(),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 Vf(e,t){return B(),Y("svg",Nf,Ff)}const Ai=he(Rf,[["render",Vf]]),Hf=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 B(),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 B(),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 B(),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"},fr=we({__name:"ButtonDropdown",props:{modelValue:{},label:{},title:{},items:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=J(null),r=J(!1),s=J(null),i=J(!1),a=J(!1),l=J(!1);to({onKeyDown:C});const c=ur();function u(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(d(),Ze(()=>setTimeout(()=>{var p,P;(P=(p=s.value)==null?void 0:p.children[n.modelValue])==null||P.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),I(o.value)):setTimeout(N,250)}function d(){const p=o.value;if(p){const P=p.getBoundingClientRect(),y=P.x+P.width/2;i.value=P.y>window.innerHeight/2,a.value=y<window.innerWidth/3,l.value=y>window.innerWidth/3*2}}function v(p){p!=n.modelValue&&t("update:modelValue",p),u()}function C(p){r.value&&p.key==="Escape"&&(u(),p.preventDefault())}let M=[];function I(p){const P=window.getComputedStyle(p).zIndex,y=p.style.zIndex;(!P||!(+P>0))&&((!p.parentElement||p.parentElement.childElementCount>1)&&(p.style.zIndex="1",M.push({el:p,zIndex:y})),p.parentElement&&I(p.parentElement))}function N(){M.forEach(({el:p,zIndex:P})=>{p.style.zIndex=P??""}),M=[]}let W=!1;function F(){W||(W=!0,c(!0,{desktopOnly:!0}))}function L(){W&&(W=!1,c(!1,{desktopOnly:!0}))}return(p,P)=>{const y=Ri;return B(),Y("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(B(),Y("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:u})):Le("",!0),p.items.length?(B(),Ce(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?(B(),Y("ul",{key:0,ref_key:"list",ref:s,"aria-hidden":!r.value,class:ke(["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:P[0]||(P[0]=rt(()=>{},["stop"]))},[(B(!0),Y(ge,null,fn(p.items,($,g)=>at((B(),Y("li",{key:g,tabindex:"-1",class:ke(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":g===p.modelValue}]),onClick:()=>v(g)},[X("div",{class:ke(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":g>0}])},[xe(p.$slots,"item",{item:$},()=>[Ct(Xe($),1)])],2)],10,id)),[[q(Gt),30]])),128))],42,sd)):Le("",!0)]),_:3})):Le("",!0),at((B(),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":p.disabled}]},p.title?{title:p.title}:{},{onClick:rt(u,["stop"]),onMouseenter:F,onMouseleave:L}),[X("div",ad,[X("span",cd,Xe(p.label),1),p.items.length?(B(),Y("span",{key:0,class:ke(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":i.value}]),"aria-hidden":"true"},[Z(y)],2)):Le("",!0)])],16,ld)),[[q(Gt),30]])],512)}}}),ud=Object.freeze(Object.defineProperty({__proto__:null,default:fr},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(()=>n.pages.map(l=>l.map(({index:c})=>`${c+1}`).join("-"))),r=ie(()=>{const l=n.modelValue,c=n.pages.findIndex(u=>u.some(({index:d})=>d===l));return c===-1?n.pages.length-1:c}),s=ie(()=>n.pages.length?`${o.value[r.value]}/${n.totalImgs}`:"--");function i(l){const c=n.pages[l][0].index;a(c)}function a(l){t("update:modelValue",l)}return(l,c)=>{const u=fr;return B(),Ce(u,{"model-value":r.value,label:s.value,title:"Current page",items:o.value,disabled:l.disabled,"onUpdate:modelValue":i},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 B(),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 B(),Y("svg",_d,bd)}const Vi=he(vd,[["render",yd]]),wd=Object.freeze(Object.defineProperty({__proto__:null,default:Vi},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 B(),Y("svg",Cd,kd)}const Hi=he(xd,[["render",Sd]]),$d=Object.freeze(Object.defineProperty({__proto__:null,default:Hi},Symbol.toStringTag,{value:"Module"})),Id={},Td={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 B(),Y("svg",Td,Pd)}const Wi=he(Id,[["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=J(0);return ue(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const s=ar,i=cr;return n.value?(B(),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?(B(),Ce(s,{key:0})):(B(),Ce(i,{key:1}))])):Le("",!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 B(),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=lr("tk:dir",null,{writeDefaults:!1,serializer:{read(r){return r===""||+r!==t.direction},write(r){return r?"":t.direction+""}}}),o=He(()=>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 B(),Ce(Qt,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:oe(()=>[q(n)?(B(),Y("div",{key:0,class:ke(["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===q(st).vertical,"rotate-180":r.direction===q(st).rtl}])},[Z(i)],2)):Le("",!0)]),_:1})}}}),Dd=Object.freeze(Object.defineProperty({__proto__:null,default:Yi},Symbol.toStringTag,{value:"Module"})),no=[];function Rd(e){no.push(e),Ve(()=>{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=J(null),r=J(Math.min(wn,Math.max(yn,n.modelValue))),s=J(!1),i=J(!1),a=J(!1),l=J(!1);ue(()=>n.modelValue,k=>H(k)),Fe(()=>{n.touchDevice?(Tt(window,"touchstart",F),Rd(z)):(Tt(o,"mousedown",M),ue(()=>n.horizontal,k=>{k?window.addEventListener("wheel",y,{passive:!1}):window.removeEventListener("wheel",y)},{immediate:!0}))}),Ve(()=>{window.removeEventListener("wheel",y)});let c;to({onKeyDown:k=>{var fe;if(n.busy)return;(fe=o.value)==null||fe.focus();const D=k.key==="Meta",K=k.key==="Control";if(D||K)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(k.ctrlKey||k.metaKey)switch(k.key){case"0":H(1);break;case"-":H(r.value-.2),k.preventDefault();break;case"=":case"+":H(r.value+.2),k.preventDefault();break}},onKeyUp:()=>{s.value==!0&&(c==null||c())}});function u(k){a.value!==k&&(a.value=k,k?n.playController.pause():(t("dragEnd"),n.playController.resume()))}function d(k){k.stopPropagation(),k.preventDefault();const D=Math.ceil((r.value+k.deltaY*-.01)*100)/100;H(D,{x:k.clientX,y:k.clientY})}let v={x:0,y:0},C={x:0,y:0};function M(k){k.button===0&&(v={x:k.clientX,y:k.clientY},C={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",I),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",I),setTimeout(()=>u(!1))},{once:!0}),k.preventDefault(),k.stopPropagation())}function I(k){u(!0);const D=k.clientX-v.x,K=k.clientY-v.y,fe=o.value;fe.scrollLeft=C.x-D,fe.scrollTop=C.y-K}let N=!1,W={distance:0,zoom:r.value,x:0,y:0};function F(k){n.busy||(N=k.touches.length===2,N&&(u(!0),k.stopPropagation(),k.preventDefault(),W={distance:$(k),zoom:r.value,x:(k.touches[0].clientX+k.touches[1].clientX)/2,y:(k.touches[0].clientY+k.touches[1].clientY)/2}),(N||n.playController.isPlaying&&n.longStrip)&&(window.addEventListener("touchmove",p),window.addEventListener("touchend",L,{once:!0})))}function L(){if(window.removeEventListener("touchmove",p),N){u(!1),N=!1;return}if(!a.value)return;const k=He(()=>{u(!1),o.value.removeEventListener("scroll",K)},100),D=setTimeout(k,100);o.value.addEventListener("scroll",K);function K(){clearTimeout(D),k()}}function p(k){if(u(!0),N){k.stopPropagation(),k.preventDefault();const K=$(k)/W.distance;H(Math.ceil(K*W.zoom*100)/100,W)}}const P=He(()=>i.value=!1,100);function y(k){n.busy||(i.value||(i.value=!0),P(),k.deltaY&&(!s.value&&o.value&&(o.value.scrollLeft+=k.deltaY*(n.rtl?-1:1)),k.preventDefault()))}function $(k){return Math.hypot(k.touches[0].clientX-k.touches[1].clientX,k.touches[0].clientY-k.touches[1].clientY)}let g=0,w;function x(k){if(!a.value){if(!n.touchDevice){t("click",k);return}g++,w&&clearTimeout(w),g===2&&z(k.clientX,k.clientY),w=setTimeout(()=>{!a.value&&g===1&&t("click",k),w=void 0,g=0},300)}}function z(k,D){if(!g)return;g=0;const K=r.value===1?2:1;H(K,{x:k,y:D})}let T;const j=He(()=>{l.value=!1,T=void 0},150);function ee(){if(!l.value){const k=o.value;if(!k)return;const D=k.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;D&&(T={el:D,rect:D.getBoundingClientRect()},l.value=!0)}if(T)return j(),T}async function H(k,D){const K=o.value,fe=Math.min(wn,Math.max(yn,k));if(!K||r.value===fe)return;const Ge=ee();if(!Ge)return;const _e=(D==null?void 0:D.x)??K.clientWidth/2,Pe=(D==null?void 0:D.y)??K.clientHeight/2;r.value=fe,t("update:modelValue",fe),await Ze();const{el:We,rect:mt}=Ge,en=We.offsetWidth/mt.width,Ee=We.offsetHeight/mt.height;K.scrollLeft=We.offsetLeft-mt.left*en+_e*(en-1),K.scrollTop=We.offsetTop-mt.top*Ee+Pe*(Ee-1)}return(k,D)=>(B(),Y("div",{ref_key:"root",ref:o,tabindex:"0",class:ke(["w-full h-full overflow-auto overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!k.longStrip&&(a.value||i.value||l.value),"cursor-grabbing":a.value,"overflow-hidden":l.value}]),style:Oe({"font-size":`${r.value}px`}),onClick:rt(x,["stop"])},[xe(k.$slots,"default")],14,Fd))}}),Vd=Object.freeze(Object.defineProperty({__proto__:null,default:Xi},Symbol.toStringTag,{value:"Module"})),qi=we({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=J(null),o=J(!1);return Fe(async()=>{await Ze();let r=!1;ir(n,s=>{o.value=s.some(i=>i.isIntersecting),o.value&&!r&&t("visible")})}),(r,s)=>(B(),Y("div",{ref_key:"root",ref:n},[xe(r.$slots,"default",{visible:o.value})],512))}}),Hd=Object.freeze(Object.defineProperty({__proto__:null,default:qi},Symbol.toStringTag,{value:"Module"})),Wd=`.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
+ `,Ud={},Kd={class:"loading-indicator"};function Yd(e,t){return B(),Y("div",Kd)}const dr=he(Ud,[["render",Yd],["styles",[Wd]]]),Xd=Object.freeze(Object.defineProperty({__proto__:null,default:dr},Symbol.toStringTag,{value:"Module"})),qd={key:0,class:"page--loading"},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=J(null),r=ie(()=>{var L;return(L=o.value)==null?void 0:L.$el}),s=J(null),i=sr(r),a=ie(()=>{const{width:L,height:p}=i,P=n.isLongStrip?n.isVertical?L.value:p.value:Math.min(L.value,p.value);return Math.min(4,Math.max(1,Math.ceil(P/400-1)))*n.gap}),l=J(n.pageIndex),c=J(n.pageIndex);let u=n.pageIndex,d=n.pageIndex;const v=He(N,50);ue(()=>n.pageIndex,()=>{u>n.pageIndex&&(u=n.pageIndex)});const C=ie(()=>{const{width:{value:L},height:{value:p}}=i;return n.pages.map(P=>{var ee;const y=P.some(H=>{var k;return(k=H.img)==null?void 0:k.isLoading}),$=P.map(H=>H.index),g={isLoading:y,indexes:$};if(y||$[$.length-1]<l.value-1||$[0]>c.value+2)return g;const w=P.map(({img:H})=>H).filter(Boolean);if(!w.length||(g.srcs=w.map(({src:H})=>H),w.every(H=>H.hasError)))return g;const z=(ee=w.find(H=>!H.hasError))==null?void 0:ee.size,T=w.reduce((H,k)=>{var D;return H+(((D=k.size)==null?void 0:D.width)??z.width)},0),j=w.reduce((H,k)=>{var D;return H+(((D=k.size)==null?void 0:D.height)??z.height)},0)/w.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&L/T<p/j?(g.width=Math.min(L,T),g.height=j*g.width/T):g.height=Math.min(p,j),g})}),M=ie(()=>{const L=n.isVertical?"width":"height";return C.value.map(p=>p[L]).filter(Boolean).sort((p,P)=>P-p)[0]});function I(L){const p=L.indexes[L.indexes.length-1];p!==void 0&&d<p&&(d=p)}function N(){l.value=u,c.value=d}function W(){n.isLongStrip?N():v()}function F(L){if(!n.isLongStrip){const p=n.isVertical?i.height.value:i.width.value,y=(n.isVertical?L.clientY:n.isRTL?p-L.clientX:L.clientX)/p;if(y<=.2){t("prev");return}else if(y>=.8){t("next");return}}t("click")}return(L,p)=>{const P=dr,y=qi,$=Xi;return B(),Ce($,{ref_key:"root",ref:o,"model-value":L.zoom,"page-index":L.pageIndex,class:ke(["reader-body",{"reader-body--long-strip":L.isLongStrip,"reader-body--pages":!L.isLongStrip,"reader-body--vertical":L.isVertical,"reader-body--rtl":L.isRTL,"reader-body--idle":L.idle}]),"play-controller":L.playController,horizontal:!L.isVertical,rtl:L.isRTL,"touch-device":L.touchDevice,busy:L.busy,"long-strip":L.isLongStrip,style:Oe({"--gap":`${a.value}em`,"--space-top":(L.spaceTop||0)+"em","--screen-width-em":q(i).width.value+"em","--screen-height-em":q(i).height.value+"em",...L.isLongStrip?{"--max-size-em":M.value+"em"}:{}}),"onUpdate:modelValue":p[0]||(p[0]=g=>t("update:zoom",g)),onDragEnd:p[1]||(p[1]=()=>t("dragEnd")),onClick:F,onScroll:W},{default:oe(()=>[(B(!0),Y(ge,null,fn(C.value,g=>(B(),Ce(y,Jn({key:L.direction+"_"+g.indexes[0],"data-index":g.indexes[0]},g.indexes.length>1?{"data-index2":g.indexes[1]}:{},{onVisible:()=>I(g)}),{default:oe(({visible:w})=>{var x;return[!((x=g.srcs)!=null&&x.length)||g.isLoading?(B(),Y("div",qd,[at(Z(P,null,null,512),[[Go,w]])])):g.srcs.length==1?(B(),Y("img",{key:1,src:g.srcs[0],style:Oe({height:g.height!==void 0?g.height+"em":""})},null,12,Zd)):(B(),Y("div",{key:2,class:ke(["page--double",{"flex-row-reverse":L.isRTL}]),style:Oe({width:g.width!==void 0?g.width+"em":"",height:g.height!==void 0?g.height+"em":""})},[(B(!0),Y(ge,null,fn(g.srcs,z=>(B(),Y("div",{key:z},[X("img",{src:z},null,8,Jd)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),X("div",{ref_key:"autoNextEl",ref:s,class:"last","data-index":L.totalImgs},[xe(L.$slots,"end")],8,Qd)]),_:3},8,["model-value","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style"])}}}),[["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 .page--loading{align-items:center;display:flex;justify-content:center}.reader-body img{--tw-bg-opacity:1!important;background-color:rgb(41 37 36/var(--tw-bg-opacity))!important;-o-object-fit:contain!important;object-fit:contain!important;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}
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=J(null),o=J(null),r=J(!1),s=J(!1),i=J(3);return Fe(()=>{let a;ir(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))}),ir(n,l=>{r.value=l.some(c=>c.isIntersecting)}),Ve(()=>a&&clearInterval(a))}),(a,l)=>(B(),Y("div",{ref_key:"root",ref:n,class:"h-full w-full flex justify-center items-center"},[at(X("div",ep,[a.hasNext?(B(),Y("div",tp,[s.value?(B(),Y("div",np)):Le("",!0),at((B(),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]=rt(()=>t("next"),["stop"]))},[Ct(" Next in "+Xe(i.value),1)])),[[q(Gt)]])])):Le("",!0),at((B(),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]=rt(()=>t("hide"),["stop"]))},[Ct(" Hide ")])),[[q(Gt)]])],512),[[Go,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 $;let t=[];const n=J((($=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=J(e.raw.isWebtoon),d=J(u.value===void 0||c===void 0),v=He(p,100),C=He(I,50);d.value?n.value.length?I():W():Ze(()=>setTimeout(()=>M(c),10)),Ve(()=>{i=!1,r.forEach(g=>URL.revokeObjectURL(g))});async function M(g){d.value=!1,await Ze(),e.onReady(g),ue(()=>Math.floor(e.page.value),async(w,x)=>{el({contentEl:l,imgEls:t,page:w,smooth:!0}),x??(x=-1),w!==x&&(a=Math.max(0,a-Math.abs(w-x))),C()},{immediate:!0})}function I(){const g=Math.floor(e.page.value),w=x=>{a>rp||N(x)};for(let x=g;x<n.value.length;x++)w(x);for(let x=g-1;x>=0;x--)w(x)}async function N(g){const w=n.value[g];if(!(!i||!w||o[w])){if(!o[w]){o[w]={src:w,isLoading:!0,hasError:!1},a++;const x=await ap(w);if(o[w]={src:w,size:x,isLoading:!1,hasError:!x},a=Math.max(0,a-1),x&&!u.value&&g>Math.min(1,n.value.length-2)){const z=x.height/x.width>2.5;u.value!==z&&(u.value=z)}d.value&&u.value!==void 0&&c!==void 0&&M(c)}C()}}function W(){let g=!1;const w=new MutationObserver(()=>{l&&v(l)});Ve(async()=>{w.disconnect();const x=e.page.value;await oo(),el({contentEl:l,imgEls:t,page:x})}),F(x=>{l!==x&&(l=x,w.disconnect(),w.observe(l,{childList:!0,subtree:!0}),g?v(l):(g=!0,p(l)))})}async function F(g){var ee;const w=(ee=e.spec)==null?void 0:ee.content;if(!w)return;const x=await ip(e.spec);let z=w?await xn(x?100:1,10,()=>document.querySelector(w)):void 0;if(!z)return;g(z);let T=0;const j=async()=>{if(i&&!(z!=null&&z.isConnected)){if(T=0,z=await xn(50,20,()=>{const H=document.querySelector(w);return H!=null&&H.isConnected&&H!==z?H:void 0}),!z)return;g(z)}!i||++T>=10||setTimeout(j,200)};setTimeout(j,200)}let L=0;async function p(g){var j;if(!i||!g.isConnected)return;const w=Date.now();L=w;let x,z;const T=(j=e.spec)==null?void 0:j.imgDivs;if(T){if(z=Array.from(g.querySelectorAll(T)),x=await Promise.all(z.map(async(ee,H)=>{const k=Array.from(ee.querySelectorAll("img,canvas"));for(const D of k){const K=await y({ts:w,el:D,index:H,total:z.length,onImgLoad:()=>v(g)});if(K)return K}})),!i||!g.isConnected||L!==w)return}else{const ee=Array.from(g.querySelectorAll("img,canvas")),H=await Promise.all(ee.map((D,K)=>y({ts:w,el:D,index:K,total:ee.length,onImgLoad:()=>v(g)})));if(!i||!g.isConnected||L!==w)return;z=ee.filter((D,K)=>H[K]),x=H.filter(Boolean);const k=x.filter((D,K)=>D&&K!==x.lastIndexOf(D));k.length&&(x=x.filter(D=>D&&!k.includes(D)))}c??(c=Gi(z)),(x.length!==n.value.length||x.some((ee,H)=>n.value[H]!==ee))&&(t=z,n.value=x,C(),c!==void 0&&d.value&&u.value!==void 0&&n.value.some(Boolean)&&M(c))}const P=Date.now();async function y({ts:g,el:w,index:x,total:z,onImgLoad:T}){const j=s.get(w);let ee,H;if(w.tagName.toLowerCase()==="canvas"){if(j)return j.src;ee=await Qi(w)}else{if(w._tkLoadId_!==P&&(w._tkLoadId_=P,w.addEventListener("load",T),Ve(()=>{w._tkLoadId_===P&&delete w._tkLoadId_,w.removeEventListener("load",T)})),H=up(w),!H)return;if(H===(j==null?void 0:j.originalSrc))return j.src;if(ee=await lp(w,H),!i||L!==g)return;if(u.value===void 0&&x>Math.min(1,z-2)){const D=+(w.getAttribute("width")??0),K=+(w.getAttribute("height")??0);D&&K&&(u.value=K/D>2.5)}}return ee&&(s.set(w,{src:ee,originalSrc:H}),ee.startsWith("blob:")&&r.push(ee)),ee}return{isLoading:ie(()=>d.value),asyncImgs:ie(()=>n.value.map(g=>g?o[g]: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),Ve(()=>{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=pr(e??document.documentElement),c=i.offsetTop+(r?1:n%1)*i.getBoundingClientRect().height;l==null||l.scrollTo({top:c,behavior:s})})}function pr(e){if(e)return e.scrollHeight>e.clientHeight?e===document.body?pr(document.documentElement)??e:e:pr(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")),lr("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 hr=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,v;const C=He(p,300),M=li(()=>{p(),C()},300),I=He(()=>d=!0,100);function N(){let x=null;ca(async()=>{a.value&&a.value!==x&&(x=a.value,F(e.value),x==null||x.removeEventListener("scroll",M),a.value.addEventListener("scroll",M))});const{width:z,height:T}=yu();ue(z,W),ue(T,W),ue(n,W),ue(t,W)}async function W(){u=!0;const x=e.value;if(await Ze(),P()===x){u=!1;return}F(x)}function F(x,{smooth:z}={smooth:!1}){const T=a.value;if(!T)return;u=!0;const j=async()=>{await Ze(),u=!1,I()},ee=Math.floor(x),H=T.querySelector(`[data-index="${ee}"],[data-index2="${ee}"]`);if(!H){j();return}l(async()=>{await L(T,!o.value&&z,async()=>{await w(T,H,{smooth:z,page:x})}),await j()})}async function L(x,z,T){z&&x.style.setProperty("scroll-snap-type","none"),await T(),z&&x.style.removeProperty("scroll-snap-type")}function p(){if(!a.value||u||!d)return;const x=P();x!==void 0&&x!==e.value&&c(x)}function P(){const x=y();return x?(+x.getAttribute("data-index")||0)+(o.value?$(x):0):void 0}function y(){v??(v=a.value.getRootNode());const x=v.elementsFromPoint(r.value||!o.value?window.innerWidth/2:s.value?window.innerWidth-hr:hr,r.value&&o.value?i.value||hr:window.innerHeight/2);for(let z=0;z<x.length;z++){const T=x[z];if(T.hasAttribute("data-index"))return T;if(T===a.value)break}}function $(x){const z=x.getBoundingClientRect();return r.value?Math.abs(z.top-(i.value||0))/z.height:s.value?Math.max(0,z.right-a.value.clientWidth)/z.width:Math.abs(z.left)/z.width}let g=!1;async function w(x,z,T){if(g)return;const j=z.getBoundingClientRect();if(!o.value){if(r.value){if(j.top<=0&&j.bottom>=x.clientHeight)return}else if(j.left<=0&&j.right>=x.clientWidth)return}g=!0;const ee=r.value?x.scrollTop:x.scrollLeft,H=T.page,k=o.value?H%1:0,D=await xn(30,10,async()=>{await oo();let _e;return o.value?r.value?_e=z.offsetTop+k*z.offsetHeight-(i.value??0):s.value?_e=z.offsetLeft-x.clientWidth+z.offsetWidth-k*z.offsetWidth:_e=z.offsetLeft+k*z.offsetWidth:r.value?_e=z.offsetTop+(j.top>0?0:j.height-x.clientHeight):_e=z.offsetLeft+(j.left>0?0:j.width-x.clientWidth),H>.5&&Math.abs(_e)<100?void 0:_e})??0;if(!T.smooth){r.value?x.scrollTop=D:x.scrollLeft=D,g=!1;return}const K=D-ee,fe=30;let Ge=0;return new Promise(_e=>{(function Pe(){const We=gp(Ge,ee,K,fe);r.value?x.scrollTop=We:x.scrollLeft=We,Ge++,Ge<=fe?requestAnimationFrame(Pe):(_e(),g=!1)})()})}return{init:N,goToPage:F}}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=lr("tk:isPlaying",e,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults:(g,w)=>g===void 0?w:g===!0||g==="true"}),c=J(!1);let u,d;const v=He(y,100);let C;const M=He(()=>{c.value=!0,clearTimeout(C),C=l.value?void 0:setTimeout(a,s.value?3e4:6e4)},t?2e3:1e3),I=()=>setTimeout(()=>{c.value=!1,M(),C&&(clearTimeout(C),C=void 0)},30);I(),t||Tt(window,"mousemove",I);const N=_i();Fe(()=>{ue(N,g=>{l.value&&(g==="visible"?y():d==null||d())}),ue(i,()=>W()),ue(s,g=>{g||L()})}),Ve(()=>{clearTimeout(C),C=void 0});async function W(g){l.value&&(d==null||d()),g&&(await Ze(),await g()),l.value&&v()}function F(){l.value?L():p()}function L(){l.value&&(l.value=!1,d==null||d(),I())}function p(){!l.value&&s.value&&(l.value=!0,y(),I())}function P(){d==null||d()}function y(){const g=n.value;if(!l.value||!g)return;const w=o.value?g.scrollHeight-g.clientHeight:g.scrollWidth-g.clientWidth,x=$();if(w<=x){L();return}d=()=>{u=Date.now(),d=void 0};const z=Date.now();u=z;const T=.05*i.value,j=o.value?"scrollTop":"scrollLeft";let ee=Date.now(),H=0;const k=()=>{if(u!==z)return;const D=Date.now(),K=D-ee;ee=D;const fe=T*K+H;fe>=1?(H=fe%1,g[j]+=(fe-H)*(r.value?-1:1)):H=fe,setTimeout(k,1)};k()}function $(){const g=n.value;return o.value?g.scrollTop:r.value?-g.scrollLeft:g.scrollLeft}return{isPlaying:l,isIdle:c,toggle:F,play:p,pause:P,resume:y,stop:L,interfere:W,awake:I}}function vp(e){var C,M,I,N,W;let t=-1,n=(C=e.prev)==null?void 0:C.slug,o=(M=e.next)==null?void 0:M.slug;const{vol:r,inferVol:s,chap:i,title:a,slug:l,basePath:c}=e,u=r??s,d=a.chapters??[],v=(d==null?void 0:d.length)>1?d:[];if(v.length){if(t=v.findIndex(F=>F.slug===e.slug),t===-1&&(t=v.findIndex(F=>(F.vol??F.inferVol)===u&&F.chap===i)),t===-1&&(t=v.findIndex(F=>l.startsWith(`${F.slug}-`)&&l.length-F.slug.length>3)),t!==-1)n??(n=(I=v[t+1])==null?void 0:I.slug),o??(o=(N=v[t-1])==null?void 0:N.slug);else if(!n&&!o){const F=v.findIndex(L=>{const p=L.vol??L.inferVol;return u===void 0||p===void 0||u===p?L.chap<i:p<u});F!==-1?(n=v[F].slug,o=(W=v[F-1])==null?void 0:W.slug):o=v[v.length-1].slug}}return{activeIndex:t,activeLabel:nl({vol:r,chap:i}),chapters:v.map(F=>({label:nl(F),path:gr(c,F.slug)})),prevPath:gr(c,n),nextPath:gr(c,o)}}function gr(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(m){n.isAutoShow===!1?a.value=m:a.value>l.value.length&&(a.value=Math.max(0,l.value.length-1)),k.init(),setTimeout(()=>{s=K()},50)},onError:()=>{}}),{direction:d,style:v,isRTL:C,isDouble:M,isVertical:I,isLongStrip:N,gap:W,speed:F,zoom:L}=Mf({titleName:n.raw.title.name,isWebtoon:u}),p=fp(l,M),P=ie(()=>a.value>=l.value.length),y=ie(()=>vp(n.raw)),$=ie(()=>{var m,_;return C.value?(m=y.value)==null?void 0:m.nextPath:(_=y.value)==null?void 0:_.prevPath}),g=ie(()=>{var m,_;return C.value?(m=y.value)==null?void 0:m.prevPath:(_=y.value)==null?void 0:_.nextPath}),w=J(null),x=J(null),z=J(!1),T=J(!1),j=mp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:ie(()=>{var m;return(m=w.value)==null?void 0:m.$el}),speed:F,isRTL:C,isVertical:I,isLongStrip:N,onLongIdle:()=>t("longIdle")});ue(j.isPlaying,m=>{m||h(!1),t("playingChanged",m)}),ue(j.isIdle,m=>{j.isPlaying.value&&h(m)}),ue(i,m=>{!m&&j.isIdle.value?j.awake():m&&n.fullScreen&&h()});const ee=ie(()=>!n.touchDevice&&j.isIdle.value&&!i.value),H=ie({get(){return L.value},set(m){j.interfere(()=>{L.value=m})}}),k=hp({page:a,style:v,direction:d,isLongStrip:N,isVertical:I,isRTL:C,spaceTop:ie(()=>n.spaceTop),scrollEl:ie(()=>{var m;return(m=w.value)==null?void 0:m.$el}),interferePlayer:m=>j.interfere(m),onChangedPage(m){const _=l.value.length;if(m<0||m>=_+1)return;const S=a.value;a.value=m,t("pageChanged",Math.floor(m*100)/100),m>=_?(h(!1),j.stop()):m===0?h(!1):r||(N.value?s!==void 0&&K()-s>300&&h(!0):Math.abs(S-m)===1&&h(!0)),!o&&m>=_-2&&(o=!0,t("finished"))}}),D=ie(()=>Math.floor(a.value));function K(){var _;const m=(_=w.value)==null?void 0:_.$el;return m?I.value?m.scrollTop:C.value?-m.scrollLeft:m.scrollLeft:0}const fe=()=>j.interfere(()=>oo(100));tf().addListener({onKeyDown:m=>{if(n.tourEnabled)return;const _=N.value&&I.value,S=N.value&&!I.value,U=!N.value&&I.value,V=!N.value&&!I.value;switch(m.key){case" ":m.preventDefault(),N.value?(R(!1),j.toggle()):vt();break;case"ArrowUp":case"PageUp":_?fe():U&&(m.preventDefault(),it());break;case"ArrowDown":case"PageDown":_?fe():U&&(m.preventDefault(),vt());break;case"ArrowLeft":S?fe():V?(m.preventDefault(),tn()):I.value&&mt();break;case"ArrowRight":S?fe():V?(m.preventDefault(),ro()):I.value&&We();break}},onKeyUp:m=>{switch(m.key){case"f":E();break;case"t":b();break;case"h":R();break}}}),Fe(()=>{Tt("fullscreenchange",()=>{z.value=!!document.fullscreenElement})});function _e(){!n.touchDevice&&!N.value&&k.goToPage(D.value,{smooth:!0})}function Pe(){if(j.isPlaying.value){!n.fullScreen||!n.touchDevice?j.stop():j.awake();return}h()}function We(){var m;Ee((m=y.value)==null?void 0:m.nextPath)}function mt(){var m;Ee((m=y.value)==null?void 0:m.prevPath)}function en(m){var S,U,V;const _=(V=(U=(S=y.value)==null?void 0:S.chapters)==null?void 0:U[m])==null?void 0:V.path;_&&Ee(_)}function Ee(m){m&&(location.href=m.includes("://")?m:location.origin+m)}function tn(){C.value?vt():it()}function ro(){C.value?it():vt()}function it(){var S;const m=p.value,_=P.value?m[m.length-1][0].index:(S=m[nn()-1])==null?void 0:S[0].index;_!==void 0?k.goToPage(_):mt()}function vt(){var _;const m=P.value?D.value+1:((_=p.value[nn()+1])==null?void 0:_[0].index)??l.value.length;k.goToPage(m)}function nn(){const m=D.value,_=p.value.findIndex(S=>S.some(({index:U})=>U===m));return _===-1?p.value.length-1:_}function f(){pp(),j.stop(),t("dispose")}async function h(m){if(i.value&&!n.fullScreen)return;r=!0;const _=typeof m=="boolean"?m:!n.fullScreen;t("fullScreenChanged",_),_&&setTimeout(()=>{n.fullScreen&&i.value&&t("fullScreenChanged",!1)},100)}function b(){n.entryId?A():O()}function E(){var m,_;document.fullscreenElement?document.exitFullscreen():(_=(m=x.value)==null?void 0:m.$el)==null||_.requestFullscreen()}function O(){j.stop(),t("addEntry")}function A(){j.stop(),t("openEntry",n.entryId)}function R(m){T.value!==m&&(T.value=!T.value,T.value&&j.isPlaying&&j.stop())}return(m,_)=>{const S=dr,U=Ji,V=Zi,Q=Yi,te=Ui,re=Wi,le=eo,de=Hi,me=fr,Ue=Vi,Pt=Fi,so=Ni,Vt=Di,io=Bi,ze=Ai,et=ji,lo=zi,Op=cr,Mp=ar,Lp=$i,zp=ki,jp=Ci,Ap=ri;return B(),Ce(Ap,{ref_key:"root",ref:x,"full-screen":!!m.fullScreen,idle:ee.value,"space-top":n.spaceTop,"touch-device":m.touchDevice,rtl:q(C),onClick:_[11]||(_[11]=rt(()=>{},["stop"]))},ps({back:oe(()=>[Z(le,{href:m.raw.title.url,title:"Back to manga"},{default:oe(()=>[Z(re)]),_:1},8,["href"])]),"chapter-nav":oe(()=>[Z(me,{modelValue:y.value.activeIndex,label:y.value.activeLabel,title:"Select chapter",items:y.value.chapters,"onUpdate:modelValue":en},{item:oe(({item:je})=>[Ct(Xe(je.label),1)]),_:1},8,["modelValue","label","items"]),$.value||g.value?(B(),Y("div",bp,[Z(le,{title:`${q(C)?"Next":"Prev"} chapter (←)`,href:$.value,disabled:!$.value,class:"!rounded-r-none"},{default:oe(()=>[Z(Ue)]),_:1},8,["title","href","disabled"]),Z(le,{title:`${q(C)?"Prev":"Next"} chapter (→)`,href:g.value,disabled:!g.value,class:"!rounded-l-none"},{default:oe(()=>[Z(Pt)]),_:1},8,["title","href","disabled"])])):Le("",!0)]),entry:oe(()=>[Z(le,{title:m.entryId?"View entry (T)":"Add to Trackkun (T)","data-tour":"Press here to add this manga to your Trackkun collection",onClick:b},{default:oe(()=>[m.entryId?(B(),Ce(Vt,{key:0})):(B(),Ce(io,{key:1}))]),_:1},8,["title"])]),settings:oe(()=>[Z(lo,{"reader-style":q(v),"onUpdate:readerStyle":_[3]||(_[3]=je=>ye(v)?v.value=je:null),direction:q(d),"onUpdate:direction":_[4]||(_[4]=je=>ye(d)?d.value=je:null),gap:q(W),"onUpdate:gap":_[5]||(_[5]=je=>ye(W)?W.value=je:null),speed:q(F),"onUpdate:speed":_[6]||(_[6]=je=>ye(F)?F.value=je:null),zoom:H.value,"onUpdate:zoom":_[7]||(_[7]=je=>H.value=je),name:m.raw.title.name,webtoon:q(u),disabled:q(c),onHelp:R},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]),"reset-zoom":oe(()=>[Z(Qt,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:oe(()=>[Z(Lp,{zoom:H.value,onClick:_[9]||(_[9]=rt(()=>H.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:Oe({width:`${q(a)/(q(l).length-1)*100}%`})},null,4)]),default:oe(()=>[q(c)||!q(l).length?(B(),Y("div",_p,[Z(S)])):(B(),Y(ge,{key:1},[Z(V,{ref_key:"body",ref:w,zoom:H.value,"onUpdate:zoom":_[0]||(_[0]=je=>H.value=je),"page-index":D.value,pages:q(p),"total-imgs":q(l).length,direction:q(d),gap:q(W),"is-long-strip":q(N),isRTL:q(C),"is-vertical":q(I),"space-top":m.spaceTop,busy:q(i),idle:ee.value,"play-controller":q(j),"touch-device":m.touchDevice,onPrev:it,onNext:vt,onClick:Pe,onDragEnd:_e,onWheelPassive:_[1]||(_[1]=()=>q(j).interfere())},ps({_:2},[!q(c)&&q(l).length?{name:"end",fn:oe(()=>[Z(U,{"has-next":!!y.value.nextPath,onNext:We,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"]),at(Z(Q,{direction:q(d)},null,8,["direction"]),[[Go,!P.value&&!m.tourEnabled&&!T.value]]),P.value?Le("",!0):(B(),Ce(te,{key:0,playing:!!q(j).isPlaying.value},null,8,["playing"]))],64)),T.value?(B(),Ce(zp,{key:2,"touch-device":m.touchDevice,onHide:R},null,8,["touch-device"])):Le("",!0),m.tourEnabled?(B(),Ce(jp,{key:3,onHide:_[10]||(_[10]=()=>t("tourEnabledChanged",!1))})):Le("",!0)]),_:2},[m.touchDevice?void 0:{name:"exit",fn:oe(()=>[Z(le,{title:"Hide reader","data-tour":"You have entered Trackkun reader mode, press here to return to the original page",onClick:f},{default:oe(()=>[Z(de)]),_:1})]),key:"0"},q(p).length?{name:"page-nav",fn:oe(()=>[Z(so,{"model-value":D.value,disabled:q(c),pages:q(p),"total-imgs":q(l).length,"onUpdate:modelValue":_[2]||(_[2]=je=>q(k).goToPage(je))},null,8,["model-value","disabled","pages","total-imgs"])]),key:"1"}:void 0,m.touchDevice?void 0:{name:"full-screen",fn:oe(()=>[Z(le,{title:`${z.value?"Exit":"Enter"} fullscreen (F)`,onClick:E},{default:oe(()=>[z.value?(B(),Ce(ze,{key:0})):(B(),Ce(et,{key:1}))]),_:1},8,["title"])]),key:"2"},q(N)?{name:"play",fn:oe(()=>[Z(le,{"data-tour":"Press here to play like a video",title:`${q(j).isPlaying.value?"Pause":"Play"} (Space)`,disabled:q(c),onClick:_[8]||(_[8]=()=>q(j).toggle())},{default:oe(()=>[q(j).isPlaying.value?(B(),Ce(Op,{key:0})):(B(),Ce(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 B(),Y("svg",Cp,kp)}const $p=Object.freeze(Object.defineProperty({__proto__:null,default:he(xp,[["render",Sp]])},Symbol.toStringTag,{value:"Module"})),Ip=`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",mr={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},$e={el:void 0,controller:void 0,data:sn({...mr})};async function Tp(e){if($e.controller)return $e.data.raw=e.raw,$e.controller;const t=()=>{$e.el&&(document.body.removeChild($e.el),$e.el=void 0),document.documentElement.classList.remove(Cn),Object.assign($e.data,mr),$e.controller=void 0};return $e.controller={triggerDoubleTap:(n,o)=>Nd(n,o),updateArgs(n){Object.assign($e.data,n),vr()},dispose:t},document.documentElement.classList.add(Cn),await Pp(),Object.assign($e.data,mr,e,{onDispose:()=>{var n;t(),(n=e==null?void 0:e.onDispose)==null||n.call(e)}}),vr(),$e.el||($e.el=document.createElement(Cn),document.body.appendChild($e.el)),$e.controller}async function Pp(){if(window.customElements.get(Cn))return;const e=document.createElement("style");e.appendChild(document.createTextNode(Ip)),document.head.appendChild(e);const t=bc({styles:[await Ep()],data:()=>({readerData:$e.data}),render(){return Ns(ol,{...this.readerData,onFullScreenChanged:n=>{var o,r;this.readerData.fullScreen=n,(r=(o=this.readerData).onFullScreenChanged)==null||r.call(o,n),vr()},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/IntersectionWrapper.vue":Hd,"./components/LoadingIndicator.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":Vd,"./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":Hf,"./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 vr(){if($e.data.adBlock)return;const{spaceTop:e,fullScreen:t}=$e.data,n=document.querySelector(":root");n==null||n.style.setProperty("--tk-safe-top",`${t?0:(e||0)+56}px`)}return Tp});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gear-second",
3
3
  "author": "endyquang",
4
- "version": "1.2.2",
4
+ "version": "1.2.4",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Trkun manga reader",
7
7
  "main": "index.js",