gear-second 1.5.1 → 1.5.2

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 +28 -9
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,9 +1,28 @@
1
- (function(He,fe){typeof exports=="object"&&typeof module<"u"?module.exports=fe():typeof define=="function"&&define.amd?define(fe):(He=typeof globalThis<"u"?globalThis:He||self,He._gearSecond_=fe())})(this,function(){"use strict";var cp=Object.defineProperty;var up=(He,fe,qe)=>fe in He?cp(He,fe,{enumerable:!0,configurable:!0,writable:!0,value:qe}):He[fe]=qe;var Qs=(He,fe,qe)=>(up(He,typeof fe!="symbol"?fe+"":fe,qe),qe);function He(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 fe={},qe=[],rt=()=>{},Js=()=>!1,Gs=/^on[^a-z]/,Tn=e=>Gs.test(e),fo=e=>e.startsWith("onUpdate:"),Se=Object.assign,po=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},el=Object.prototype.hasOwnProperty,ge=(e,t)=>el.call(e,t),ee=Array.isArray,Yt=e=>$n(e)==="[object Map]",hr=e=>$n(e)==="[object Set]",le=e=>typeof e=="function",Te=e=>typeof e=="string",ho=e=>typeof e=="symbol",we=e=>e!==null&&typeof e=="object",gr=e=>we(e)&&le(e.then)&&le(e.catch),mr=Object.prototype.toString,$n=e=>mr.call(e),tl=e=>$n(e).slice(8,-1),vr=e=>$n(e)==="[object Object]",go=e=>Te(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,En=He(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},nl=/-(\w)/g,We=Pn(e=>e.replace(nl,(t,n)=>n?n.toUpperCase():"")),ol=/\B([A-Z])/g,Ze=Pn(e=>e.replace(ol,"-$1").toLowerCase()),On=Pn(e=>e.charAt(0).toUpperCase()+e.slice(1)),mo=Pn(e=>e?`on${On(e)}`:""),sn=(e,t)=>!Object.is(e,t),Mn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ln=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},vo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},bo=e=>{const t=Te(e)?Number(e):NaN;return isNaN(t)?e:t};let br;const _o=()=>br||(br=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Be(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=Te(o)?ll(o):Be(o);if(r)for(const i in r)t[i]=r[i]}return t}else{if(Te(e))return e;if(we(e))return e}}const rl=/;(?![^(]*\))/g,il=/:([^]+)/,sl=/\/\*[^]*?\*\//g;function ll(e){const t={};return e.replace(sl,"").split(rl).forEach(n=>{if(n){const o=n.split(il);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Oe(e){let t="";if(Te(e))t=e;else if(ee(e))for(let n=0;n<e.length;n++){const o=Oe(e[n]);o&&(t+=o+" ")}else if(we(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const al=He("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function _r(e){return!!e||e===""}const Qe=e=>Te(e)?e:e==null?"":ee(e)||we(e)&&(e.toString===mr||!le(e.toString))?JSON.stringify(e,yr,2):String(e),yr=(e,t)=>t&&t.__v_isRef?yr(e,t.value):Yt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:hr(t)?{[`Set(${t.size})`]:[...t.values()]}:we(t)&&!ee(t)&&!vr(t)?String(t):t;let Ue;class cl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ue,!t&&Ue&&(this.index=(Ue.scopes||(Ue.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ue;try{return Ue=this,t()}finally{Ue=n}}}on(){Ue=this}off(){Ue=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 ul(e,t=Ue){t&&t.active&&t.effects.push(e)}function wr(){return Ue}function fl(e){Ue&&Ue.cleanups.push(e)}const yo=e=>{const t=new Set(e);return t.w=0,t.n=0,t},xr=e=>(e.w&yt)>0,kr=e=>(e.n&yt)>0,dl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=yt},pl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];xr(r)&&!kr(r)?r.delete(e):t[n++]=r,r.w&=~yt,r.n&=~yt}t.length=n}},wo=new WeakMap;let ln=0,yt=1;const xo=30;let it;const Mt=Symbol(""),ko=Symbol("");class Co{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,ul(this,o)}run(){if(!this.active)return this.fn();let t=it,n=wt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=it,it=this,wt=!0,yt=1<<++ln,ln<=xo?dl(this):Cr(this),this.fn()}finally{ln<=xo&&pl(this),yt=1<<--ln,it=this.parent,wt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){it===this?this.deferStop=!0:this.active&&(Cr(this),this.onStop&&this.onStop(),this.active=!1)}}function Cr(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let wt=!0;const Sr=[];function Xt(){Sr.push(wt),wt=!1}function qt(){const e=Sr.pop();wt=e===void 0?!0:e}function Fe(e,t,n){if(wt&&it){let o=wo.get(e);o||wo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=yo()),Ir(r)}}function Ir(e,t){let n=!1;ln<=xo?kr(e)||(e.n|=yt,n=!xr(e)):n=!e.has(it),n&&(e.add(it),it.deps.push(e))}function pt(e,t,n,o,r,i){const s=wo.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&ee(e)){const a=Number(o);s.forEach((c,u)=>{(u==="length"||u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":ee(e)?go(n)&&l.push(s.get("length")):(l.push(s.get(Mt)),Yt(e)&&l.push(s.get(ko)));break;case"delete":ee(e)||(l.push(s.get(Mt)),Yt(e)&&l.push(s.get(ko)));break;case"set":Yt(e)&&l.push(s.get(Mt));break}if(l.length===1)l[0]&&So(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);So(yo(a))}}function So(e,t){const n=ee(e)?e:[...e];for(const o of n)o.computed&&Tr(o);for(const o of n)o.computed||Tr(o)}function Tr(e,t){(e!==it||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const hl=He("__proto__,__v_isRef,__isVue"),$r=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ho)),gl=Io(),ml=Io(!1,!0),vl=Io(!0),Er=bl();function bl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=me(this);for(let i=0,s=this.length;i<s;i++)Fe(o,"get",i+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(me)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Xt();const o=me(this)[t].apply(this,n);return qt(),o}}),e}function _l(e){const t=me(this);return Fe(t,"has",e),t.hasOwnProperty(e)}function Io(e=!1,t=!1){return function(o,r,i){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&i===(e?t?Al:Dr:t?Br:jr).get(o))return o;const s=ee(o);if(!e){if(s&&ge(Er,r))return Reflect.get(Er,r,i);if(r==="hasOwnProperty")return _l}const l=Reflect.get(o,r,i);return(ho(r)?$r.has(r):hl(r))||(e||Fe(o,"get",r),t)?l:$e(l)?s&&go(r)?l:l.value:we(l)?e?Rr(l):an(l):l}}const yl=Pr(),wl=Pr(!0);function Pr(e=!1){return function(n,o,r,i){let s=n[o];if(Qt(s)&&$e(s)&&!$e(r))return!1;if(!e&&(!Nn(r)&&!Qt(r)&&(s=me(s),r=me(r)),!ee(n)&&$e(s)&&!$e(r)))return s.value=r,!0;const l=ee(n)&&go(o)?Number(o)<n.length:ge(n,o),a=Reflect.set(n,o,r,i);return n===me(i)&&(l?sn(r,s)&&pt(n,"set",o,r):pt(n,"add",o,r)),a}}function xl(e,t){const n=ge(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&pt(e,"delete",t,void 0),o}function kl(e,t){const n=Reflect.has(e,t);return(!ho(t)||!$r.has(t))&&Fe(e,"has",t),n}function Cl(e){return Fe(e,"iterate",ee(e)?"length":Mt),Reflect.ownKeys(e)}const Or={get:gl,set:yl,deleteProperty:xl,has:kl,ownKeys:Cl},Sl={get:vl,set(e,t){return!0},deleteProperty(e,t){return!0}},Il=Se({},Or,{get:ml,set:wl}),To=e=>e,zn=e=>Reflect.getPrototypeOf(e);function An(e,t,n=!1,o=!1){e=e.__v_raw;const r=me(e),i=me(t);n||(t!==i&&Fe(r,"get",t),Fe(r,"get",i));const{has:s}=zn(r),l=o?To:n?Po:cn;if(s.call(r,t))return l(e.get(t));if(s.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function jn(e,t=!1){const n=this.__v_raw,o=me(n),r=me(e);return t||(e!==r&&Fe(o,"has",e),Fe(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Bn(e,t=!1){return e=e.__v_raw,!t&&Fe(me(e),"iterate",Mt),Reflect.get(e,"size",e)}function Mr(e){e=me(e);const t=me(this);return zn(t).has.call(t,e)||(t.add(e),pt(t,"add",e,e)),this}function Lr(e,t){t=me(t);const n=me(this),{has:o,get:r}=zn(n);let i=o.call(n,e);i||(e=me(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?sn(t,s)&&pt(n,"set",e,t):pt(n,"add",e,t),this}function zr(e){const t=me(this),{has:n,get:o}=zn(t);let r=n.call(t,e);r||(e=me(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&pt(t,"delete",e,void 0),i}function Ar(){const e=me(this),t=e.size!==0,n=e.clear();return t&&pt(e,"clear",void 0,void 0),n}function Dn(e,t){return function(o,r){const i=this,s=i.__v_raw,l=me(s),a=t?To:e?Po:cn;return!e&&Fe(l,"iterate",Mt),s.forEach((c,u)=>o.call(r,a(c),a(u),i))}}function Rn(e,t,n){return function(...o){const r=this.__v_raw,i=me(r),s=Yt(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...o),u=n?To:t?Po:cn;return!t&&Fe(i,"iterate",a?ko:Mt),{next(){const{value:p,done:h}=c.next();return h?{value:p,done:h}:{value:l?[u(p[0]),u(p[1])]:u(p),done:h}},[Symbol.iterator](){return this}}}}function xt(e){return function(...t){return e==="delete"?!1:this}}function Tl(){const e={get(i){return An(this,i)},get size(){return Bn(this)},has:jn,add:Mr,set:Lr,delete:zr,clear:Ar,forEach:Dn(!1,!1)},t={get(i){return An(this,i,!1,!0)},get size(){return Bn(this)},has:jn,add:Mr,set:Lr,delete:zr,clear:Ar,forEach:Dn(!1,!0)},n={get(i){return An(this,i,!0)},get size(){return Bn(this,!0)},has(i){return jn.call(this,i,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:Dn(!0,!1)},o={get(i){return An(this,i,!0,!0)},get size(){return Bn(this,!0)},has(i){return jn.call(this,i,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:Dn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Rn(i,!1,!1),n[i]=Rn(i,!0,!1),t[i]=Rn(i,!1,!0),o[i]=Rn(i,!0,!0)}),[e,n,t,o]}const[$l,El,Pl,Ol]=Tl();function $o(e,t){const n=t?e?Ol:Pl:e?El:$l;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ge(n,r)&&r in o?n:o,r,i)}const Ml={get:$o(!1,!1)},Ll={get:$o(!1,!0)},zl={get:$o(!0,!1)},jr=new WeakMap,Br=new WeakMap,Dr=new WeakMap,Al=new WeakMap;function jl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Bl(e){return e.__v_skip||!Object.isExtensible(e)?0:jl(tl(e))}function an(e){return Qt(e)?e:Eo(e,!1,Or,Ml,jr)}function Dl(e){return Eo(e,!1,Il,Ll,Br)}function Rr(e){return Eo(e,!0,Sl,zl,Dr)}function Eo(e,t,n,o,r){if(!we(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Bl(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return r.set(e,l),l}function Zt(e){return Qt(e)?Zt(e.__v_raw):!!(e&&e.__v_isReactive)}function Qt(e){return!!(e&&e.__v_isReadonly)}function Nn(e){return!!(e&&e.__v_isShallow)}function Nr(e){return Zt(e)||Qt(e)}function me(e){const t=e&&e.__v_raw;return t?me(t):e}function Fr(e){return Ln(e,"__v_skip",!0),e}const cn=e=>we(e)?an(e):e,Po=e=>we(e)?Rr(e):e;function Vr(e){wt&&it&&(e=me(e),Ir(e.dep||(e.dep=yo())))}function Hr(e,t){e=me(e);const n=e.dep;n&&So(n)}function $e(e){return!!(e&&e.__v_isRef===!0)}function Q(e){return Rl(e,!1)}function Rl(e,t){return $e(e)?e:new Nl(e,t)}class Nl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:me(t),this._value=n?t:cn(t)}get value(){return Vr(this),this._value}set value(t){const n=this.__v_isShallow||Nn(t)||Qt(t);t=n?t:me(t),sn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:cn(t),Hr(this))}}function G(e){return $e(e)?e.value:e}const Fl={get:(e,t,n)=>G(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return $e(r)&&!$e(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Wr(e){return Zt(e)?e:new Proxy(e,Fl)}class Vl{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 Co(t,()=>{this._dirty||(this._dirty=!0,Hr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=me(this);return Vr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Hl(e,t,n=!1){let o,r;const i=le(e);return i?(o=e,r=rt):(o=e.get,r=e.set),new Vl(o,r,i||!r,n)}function dp(e,...t){}function kt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){Fn(i,t,n)}return r}function Je(e,t,n,o){if(le(e)){const i=kt(e,t,n,o);return i&&gr(i)&&i.catch(s=>{Fn(s,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(Je(e[i],t,n,o));return r}function Fn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,l=n;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,l)===!1)return}i=i.parent}const a=t.appContext.config.errorHandler;if(a){kt(a,null,10,[e,s,l]);return}}Wl(e,n,r,o)}function Wl(e,t,n,o=!0){console.error(e)}let un=!1,Oo=!1;const je=[];let lt=0;const Jt=[];let ht=null,Lt=0;const Ur=Promise.resolve();let Mo=null;function gt(e){const t=Mo||Ur;return e?t.then(this?e.bind(this):e):t}function Ul(e){let t=lt+1,n=je.length;for(;t<n;){const o=t+n>>>1;fn(je[o])<e?t=o+1:n=o}return t}function Lo(e){(!je.length||!je.includes(e,un&&e.allowRecurse?lt+1:lt))&&(e.id==null?je.push(e):je.splice(Ul(e.id),0,e),Kr())}function Kr(){!un&&!Oo&&(Oo=!0,Mo=Ur.then(qr))}function Kl(e){const t=je.indexOf(e);t>lt&&je.splice(t,1)}function Yl(e){ee(e)?Jt.push(...e):(!ht||!ht.includes(e,e.allowRecurse?Lt+1:Lt))&&Jt.push(e),Kr()}function Yr(e,t=un?lt+1:0){for(;t<je.length;t++){const n=je[t];n&&n.pre&&(je.splice(t,1),t--,n())}}function Xr(e){if(Jt.length){const t=[...new Set(Jt)];if(Jt.length=0,ht){ht.push(...t);return}for(ht=t,ht.sort((n,o)=>fn(n)-fn(o)),Lt=0;Lt<ht.length;Lt++)ht[Lt]();ht=null,Lt=0}}const fn=e=>e.id==null?1/0:e.id,Xl=(e,t)=>{const n=fn(e)-fn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function qr(e){Oo=!1,un=!0,je.sort(Xl);const t=rt;try{for(lt=0;lt<je.length;lt++){const n=je[lt];n&&n.active!==!1&&kt(n,null,14)}}finally{lt=0,je.length=0,Xr(),un=!1,Mo=null,(je.length||Jt.length)&&qr()}}function ql(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||fe;let r=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in o){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:p,trim:h}=o[u]||fe;h&&(r=n.map(v=>Te(v)?v.trim():v)),p&&(r=n.map(vo))}let l,a=o[l=mo(t)]||o[l=mo(We(t))];!a&&i&&(a=o[l=mo(Ze(t))]),a&&Je(a,e,6,r);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Je(c,e,6,r)}}function Zr(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let s={},l=!1;if(!le(e)){const a=c=>{const u=Zr(c,t,!0);u&&(l=!0,Se(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(we(e)&&o.set(e,null),null):(ee(i)?i.forEach(a=>s[a]=null):Se(s,i),we(e)&&o.set(e,s),s)}function Vn(e,t){return!e||!Tn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ge(e,t[0].toLowerCase()+t.slice(1))||ge(e,Ze(t))||ge(e,t))}let ze=null,Qr=null;function Hn(e){const t=ze;return ze=e,Qr=e&&e.type.__scopeId||null,t}function ae(e,t=ze,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Ti(-1);const i=Hn(t);let s;try{s=e(...r)}finally{Hn(i),o._d&&Ti(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function pp(){}function zo(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:p,data:h,setupState:v,ctx:x,inheritAttrs:k}=e;let A,q;const $=Hn(e);try{if(n.shapeFlag&4){const g=r||o;A=ct(u.call(g,g,p,i,v,h,x)),q=a}else{const g=t;A=ct(g.length>1?g(i,{attrs:a,slots:l,emit:c}):g(i,null)),q=t.props?a:Zl(a)}}catch(g){mn.length=0,Fn(g,e,1),A=J(tt)}let F=A;if(q&&k!==!1){const g=Object.keys(q),{shapeFlag:T}=F;g.length&&T&7&&(s&&g.some(fo)&&(q=Ql(q,s)),F=Ct(F,q))}return n.dirs&&(F=Ct(F),F.dirs=F.dirs?F.dirs.concat(n.dirs):n.dirs),n.transition&&(F.transition=n.transition),A=F,Hn($),A}const Zl=e=>{let t;for(const n in e)(n==="class"||n==="style"||Tn(n))&&((t||(t={}))[n]=e[n]);return t},Ql=(e,t)=>{const n={};for(const o in e)(!fo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Jl(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?Jr(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let p=0;p<u.length;p++){const h=u[p];if(s[h]!==o[h]&&!Vn(c,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?Jr(o,s,c):!0:!!s;return!1}function Jr(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const i=o[r];if(t[i]!==e[i]&&!Vn(n,i))return!0}return!1}function Gl({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const ea=e=>e.__isSuspense;function ta(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):Yl(e)}const Wn={};function ve(e,t,n){return Gr(e,t,n)}function Gr(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:s}=fe){var l;const a=wr()===((l=Le)==null?void 0:l.scope)?Le:null;let c,u=!1,p=!1;if($e(e)?(c=()=>e.value,u=Nn(e)):Zt(e)?(c=()=>e,o=!0):ee(e)?(p=!0,u=e.some(g=>Zt(g)||Nn(g)),c=()=>e.map(g=>{if($e(g))return g.value;if(Zt(g))return zt(g);if(le(g))return kt(g,a,2)})):le(e)?t?c=()=>kt(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),Je(e,a,3,[v])}:c=rt,t&&o){const g=c;c=()=>zt(g())}let h,v=g=>{h=$.onStop=()=>{kt(g,a,4)}},x;if(bn)if(v=rt,t?n&&Je(t,a,3,[c(),p?[]:void 0,v]):c(),r==="sync"){const g=Ya();x=g.__watcherHandles||(g.__watcherHandles=[])}else return rt;let k=p?new Array(e.length).fill(Wn):Wn;const A=()=>{if($.active)if(t){const g=$.run();(o||u||(p?g.some((T,P)=>sn(T,k[P])):sn(g,k)))&&(h&&h(),Je(t,a,3,[g,k===Wn?void 0:p&&k[0]===Wn?[]:k,v]),k=g)}else $.run()};A.allowRecurse=!!t;let q;r==="sync"?q=A:r==="post"?q=()=>Ve(A,a&&a.suspense):(A.pre=!0,a&&(A.id=a.uid),q=()=>Lo(A));const $=new Co(c,q);t?n?A():k=$.run():r==="post"?Ve($.run.bind($),a&&a.suspense):$.run();const F=()=>{$.stop(),a&&a.scope&&po(a.scope.effects,$)};return x&&x.push(F),F}function na(e,t,n){const o=this.proxy,r=Te(e)?e.includes(".")?ei(o,e):()=>o[e]:e.bind(o,o);let i;le(t)?i=t:(i=t.handler,n=t);const s=Le;en(this);const l=Gr(r,i.bind(o),n);return s?en(s):Rt(),l}function ei(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 zt(e,t){if(!we(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),$e(e))zt(e.value,t);else if(ee(e))for(let n=0;n<e.length;n++)zt(e[n],t);else if(hr(e)||Yt(e))e.forEach(n=>{zt(n,t)});else if(vr(e))for(const n in e)zt(e[n],t);return e}function mt(e,t){const n=ze;if(n===null)return e;const o=no(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,l,a,c=fe]=t[i];s&&(le(s)&&(s={mounted:s,updated:s}),s.deep&&zt(l),r.push({dir:s,instance:o,value:l,oldValue:void 0,arg:a,modifiers:c}))}return e}function At(e,t,n,o){const r=e.dirs,i=t&&t.dirs;for(let s=0;s<r.length;s++){const l=r[s];i&&(l.oldValue=i[s].value);let a=l.dir[o];a&&(Xt(),Je(a,n,8,[e.el,l,e,t]),qt())}}function oa(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return et(()=>{e.isMounted=!0}),Yn(()=>{e.isUnmounting=!0}),e}const Ge=[Function,Array],ti={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ge,onEnter:Ge,onAfterEnter:Ge,onEnterCancelled:Ge,onBeforeLeave:Ge,onLeave:Ge,onAfterLeave:Ge,onLeaveCancelled:Ge,onBeforeAppear:Ge,onAppear:Ge,onAfterAppear:Ge,onAppearCancelled:Ge},ra={name:"BaseTransition",props:ti,setup(e,{slots:t}){const n=Pi(),o=oa();let r;return()=>{const i=t.default&&ri(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const k of i)if(k.type!==tt){s=k;break}}const l=me(e),{mode:a}=l;if(o.isLeaving)return jo(s);const c=oi(s);if(!c)return jo(s);const u=Ao(c,l,o,n);Bo(c,u);const p=n.subTree,h=p&&oi(p);let v=!1;const{getTransitionKey:x}=c.type;if(x){const k=x();r===void 0?r=k:k!==r&&(r=k,v=!0)}if(h&&h.type!==tt&&(!Dt(c,h)||v)){const k=Ao(h,l,o,n);if(Bo(h,k),a==="out-in")return o.isLeaving=!0,k.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},jo(s);a==="in-out"&&c.type!==tt&&(k.delayLeave=(A,q,$)=>{const F=ni(o,h);F[String(h.key)]=h,A._leaveCb=()=>{q(),A._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=$})}return s}}};function ni(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 Ao(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:p,onLeave:h,onAfterLeave:v,onLeaveCancelled:x,onBeforeAppear:k,onAppear:A,onAfterAppear:q,onAppearCancelled:$}=t,F=String(e.key),g=ni(n,e),T=(S,L)=>{S&&Je(S,o,9,L)},P=(S,L)=>{const te=L[1];T(S,L),ee(S)?S.every(ue=>ue.length<=1)&&te():S.length<=1&&te()},B={mode:i,persisted:s,beforeEnter(S){let L=l;if(!n.isMounted)if(r)L=k||l;else return;S._leaveCb&&S._leaveCb(!0);const te=g[F];te&&Dt(e,te)&&te.el._leaveCb&&te.el._leaveCb(),T(L,[S])},enter(S){let L=a,te=c,ue=u;if(!n.isMounted)if(r)L=A||a,te=q||c,ue=$||u;else return;let y=!1;const b=S._enterCb=K=>{y||(y=!0,K?T(ue,[S]):T(te,[S]),B.delayedLeave&&B.delayedLeave(),S._enterCb=void 0)};L?P(L,[S,b]):b()},leave(S,L){const te=String(e.key);if(S._enterCb&&S._enterCb(!0),n.isUnmounting)return L();T(p,[S]);let ue=!1;const y=S._leaveCb=b=>{ue||(ue=!0,L(),b?T(x,[S]):T(v,[S]),S._leaveCb=void 0,g[te]===e&&delete g[te])};g[te]=e,h?P(h,[S,y]):y()},clone(S){return Ao(S,t,n,o)}};return B}function jo(e){if(Un(e))return e=Ct(e),e.children=null,e}function oi(e){return Un(e)?e.children?e.children[0]:void 0:e}function Bo(e,t){e.shapeFlag&6&&e.component?Bo(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 ri(e,t=!1,n){let o=[],r=0;for(let i=0;i<e.length;i++){let s=e[i];const l=n==null?s.key:String(n)+String(s.key!=null?s.key:i);s.type===Ie?(s.patchFlag&128&&r++,o=o.concat(ri(s.children,t,l))):(t||s.type!==tt)&&o.push(l!=null?Ct(s,{key:l}):s)}if(r>1)for(let i=0;i<o.length;i++)o[i].patchFlag=-2;return o}function Ee(e,t){return le(e)?(()=>Se({name:e.name},t,{setup:e}))():e}const dn=e=>!!e.type.__asyncLoader,Un=e=>e.type.__isKeepAlive;function ia(e,t){ii(e,"a",t)}function sa(e,t){ii(e,"da",t)}function ii(e,t,n=Le){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Kn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Un(r.parent.vnode)&&la(o,t,n,r),r=r.parent}}function la(e,t,n,o){const r=Kn(t,e,o,!0);at(()=>{po(o[t],r)},n)}function Kn(e,t,n=Le,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Xt(),en(n);const l=Je(t,n,e,s);return Rt(),qt(),l});return o?r.unshift(i):r.push(i),i}}const vt=e=>(t,n=Le)=>(!bn||e==="sp")&&Kn(e,(...o)=>t(...o),n),aa=vt("bm"),et=vt("m"),ca=vt("bu"),ua=vt("u"),Yn=vt("bum"),at=vt("um"),fa=vt("sp"),da=vt("rtg"),pa=vt("rtc");function ha(e,t=Le){Kn("ec",e,t)}const si="components",li=Symbol.for("v-ndc");function ga(e){return Te(e)?ma(si,e,!1)||e:e||li}function ma(e,t,n=!0,o=!1){const r=ze||Le;if(r){const i=r.type;if(e===si){const l=Wa(i,!1);if(l&&(l===t||l===We(t)||l===On(We(t))))return i}const s=ai(r[e]||i[e],t)||ai(r.appContext[e],t);return!s&&o?i:s}}function ai(e,t){return e&&(e[t]||e[We(t)]||e[On(We(t))])}function pn(e,t,n,o){let r;const i=n&&n[o];if(ee(e)||Te(e)){r=new Array(e.length);for(let s=0,l=e.length;s<l;s++)r[s]=t(e[s],s,void 0,i&&i[s])}else if(typeof e=="number"){r=new Array(e);for(let s=0;s<e;s++)r[s]=t(s+1,s,void 0,i&&i[s])}else if(we(e))if(e[Symbol.iterator])r=Array.from(e,(s,l)=>t(s,l,void 0,i&&i[l]));else{const s=Object.keys(e);r=new Array(s.length);for(let l=0,a=s.length;l<a;l++){const c=s[l];r[l]=t(e[c],c,l,i&&i[l])}}else r=[];return n&&(n[o]=r),r}function ci(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(ee(o))for(let r=0;r<o.length;r++)e[o[r].name]=o[r].fn;else o&&(e[o.name]=o.key?(...r)=>{const i=o.fn(...r);return i&&(i.key=o.key),i}:o.fn)}return e}function Pe(e,t,n={},o,r){if(ze.isCE||ze.parent&&dn(ze.parent)&&ze.parent.isCE)return t!=="default"&&(n.name=t),J("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),j();const s=i&&ui(i(n)),l=ke(Ie,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function ui(e){return e.some(t=>Jn(t)?!(t.type===tt||t.type===Ie&&!ui(t.children)):!0)?e:null}const Do=e=>e?Mi(e)?no(e)||e.proxy:Do(e.parent):null,hn=Se(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=>Do(e.parent),$root:e=>Do(e.root),$emit:e=>e.emit,$options:e=>Fo(e),$forceUpdate:e=>e.f||(e.f=()=>Lo(e.update)),$nextTick:e=>e.n||(e.n=gt.bind(e.proxy)),$watch:e=>na.bind(e)}),Ro=(e,t)=>e!==fe&&!e.__isScriptSetup&&ge(e,t),va={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const v=s[t];if(v!==void 0)switch(v){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Ro(o,t))return s[t]=1,o[t];if(r!==fe&&ge(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&ge(c,t))return s[t]=3,i[t];if(n!==fe&&ge(n,t))return s[t]=4,n[t];No&&(s[t]=0)}}const u=hn[t];let p,h;if(u)return t==="$attrs"&&Fe(e,"get",t),u(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==fe&&ge(n,t))return s[t]=4,n[t];if(h=a.config.globalProperties,ge(h,t))return h[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return Ro(r,t)?(r[t]=n,!0):o!==fe&&ge(o,t)?(o[t]=n,!0):ge(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let l;return!!n[s]||e!==fe&&ge(e,s)||Ro(t,s)||(l=i[0])&&ge(l,s)||ge(o,s)||ge(hn,s)||ge(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ge(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function fi(e){return ee(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let No=!0;function ba(e){const t=Fo(e),n=e.proxy,o=e.ctx;No=!1,t.beforeCreate&&di(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:p,mounted:h,beforeUpdate:v,updated:x,activated:k,deactivated:A,beforeDestroy:q,beforeUnmount:$,destroyed:F,unmounted:g,render:T,renderTracked:P,renderTriggered:B,errorCaptured:S,serverPrefetch:L,expose:te,inheritAttrs:ue,components:y,directives:b,filters:K}=t;if(c&&_a(c,o,null),s)for(const ce in s){const re=s[ce];le(re)&&(o[ce]=re.bind(n))}if(r){const ce=r.call(n,n);we(ce)&&(e.data=an(ce))}if(No=!0,i)for(const ce in i){const re=i[ce],ye=le(re)?re.bind(n,n):le(re.get)?re.get.bind(n,n):rt,R=!le(re)&&le(re.set)?re.set.bind(n):rt,W=se({get:ye,set:R});Object.defineProperty(o,ce,{enumerable:!0,configurable:!0,get:()=>W.value,set:z=>W.value=z})}if(l)for(const ce in l)pi(l[ce],o,n,ce);if(a){const ce=le(a)?a.call(n):a;Reflect.ownKeys(ce).forEach(re=>{Zn(re,ce[re])})}u&&di(u,e,"c");function H(ce,re){ee(re)?re.forEach(ye=>ce(ye.bind(n))):re&&ce(re.bind(n))}if(H(aa,p),H(et,h),H(ca,v),H(ua,x),H(ia,k),H(sa,A),H(ha,S),H(pa,P),H(da,B),H(Yn,$),H(at,g),H(fa,L),ee(te))if(te.length){const ce=e.exposed||(e.exposed={});te.forEach(re=>{Object.defineProperty(ce,re,{get:()=>n[re],set:ye=>n[re]=ye})})}else e.exposed||(e.exposed={});T&&e.render===rt&&(e.render=T),ue!=null&&(e.inheritAttrs=ue),y&&(e.components=y),b&&(e.directives=b)}function _a(e,t,n=rt){ee(e)&&(e=Vo(e));for(const o in e){const r=e[o];let i;we(r)?"default"in r?i=jt(r.from||o,r.default,!0):i=jt(r.from||o):i=jt(r),$e(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function di(e,t,n){Je(ee(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function pi(e,t,n,o){const r=o.includes(".")?ei(n,o):()=>n[o];if(Te(e)){const i=t[e];le(i)&&ve(r,i)}else if(le(e))ve(r,e.bind(n));else if(we(e))if(ee(e))e.forEach(i=>pi(i,t,n,o));else{const i=le(e.handler)?e.handler.bind(n):t[e.handler];le(i)&&ve(r,i,e)}}function Fo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let a;return l?a=l:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(c=>Xn(a,c,s,!0)),Xn(a,t,s)),we(t)&&i.set(t,a),a}function Xn(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Xn(e,i,n,!0),r&&r.forEach(s=>Xn(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=ya[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const ya={data:hi,props:gi,emits:gi,methods:gn,computed:gn,beforeCreate:De,created:De,beforeMount:De,mounted:De,beforeUpdate:De,updated:De,beforeDestroy:De,beforeUnmount:De,destroyed:De,unmounted:De,activated:De,deactivated:De,errorCaptured:De,serverPrefetch:De,components:gn,directives:gn,watch:xa,provide:hi,inject:wa};function hi(e,t){return t?e?function(){return Se(le(e)?e.call(this,this):e,le(t)?t.call(this,this):t)}:t:e}function wa(e,t){return gn(Vo(e),Vo(t))}function Vo(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function De(e,t){return e?[...new Set([].concat(e,t))]:t}function gn(e,t){return e?Se(Object.create(null),e,t):t}function gi(e,t){return e?ee(e)&&ee(t)?[...new Set([...e,...t])]:Se(Object.create(null),fi(e),fi(t??{})):t}function xa(e,t){if(!e)return t;if(!t)return e;const n=Se(Object.create(null),e);for(const o in t)n[o]=De(e[o],t[o]);return n}function mi(){return{app:null,config:{isNativeTag:Js,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 ka=0;function Ca(e,t){return function(o,r=null){le(o)||(o=Se({},o)),r!=null&&!we(r)&&(r=null);const i=mi(),s=new Set;let l=!1;const a=i.app={_uid:ka++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:Xa,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&le(c.install)?(s.add(c),c.install(a,...u)):le(c)&&(s.add(c),c(a,...u))),a},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),a},component(c,u){return u?(i.components[c]=u,a):i.components[c]},directive(c,u){return u?(i.directives[c]=u,a):i.directives[c]},mount(c,u,p){if(!l){const h=J(o,r);return h.appContext=i,u&&t?t(h,c):e(h,c,p),l=!0,a._container=c,c.__vue_app__=a,no(h.component)||h.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return i.provides[c]=u,a},runWithContext(c){qn=a;try{return c()}finally{qn=null}}};return a}}let qn=null;function Zn(e,t){if(Le){let n=Le.provides;const o=Le.parent&&Le.parent.provides;o===n&&(n=Le.provides=Object.create(o)),n[e]=t}}function jt(e,t,n=!1){const o=Le||ze;if(o||qn){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:qn._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&le(t)?t.call(o&&o.proxy):t}}function Sa(e,t,n,o=!1){const r={},i={};Ln(i,Gn,1),e.propsDefaults=Object.create(null),vi(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:Dl(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Ia(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=me(r),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let p=0;p<u.length;p++){let h=u[p];if(Vn(e.emitsOptions,h))continue;const v=t[h];if(a)if(ge(i,h))v!==i[h]&&(i[h]=v,c=!0);else{const x=We(h);r[x]=Ho(a,l,x,v,e,!1)}else v!==i[h]&&(i[h]=v,c=!0)}}}else{vi(e,t,r,i)&&(c=!0);let u;for(const p in l)(!t||!ge(t,p)&&((u=Ze(p))===p||!ge(t,u)))&&(a?n&&(n[p]!==void 0||n[u]!==void 0)&&(r[p]=Ho(a,l,p,void 0,e,!0)):delete r[p]);if(i!==l)for(const p in i)(!t||!ge(t,p))&&(delete i[p],c=!0)}c&&pt(e,"set","$attrs")}function vi(e,t,n,o){const[r,i]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(En(a))continue;const c=t[a];let u;r&&ge(r,u=We(a))?!i||!i.includes(u)?n[u]=c:(l||(l={}))[u]=c:Vn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(i){const a=me(n),c=l||fe;for(let u=0;u<i.length;u++){const p=i[u];n[p]=Ho(r,a,p,c[p],e,!ge(c,p))}}return s}function Ho(e,t,n,o,r,i){const s=e[n];if(s!=null){const l=ge(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&le(a)){const{propsDefaults:c}=r;n in c?o=c[n]:(en(r),o=c[n]=a.call(null,t),Rt())}else o=a}s[0]&&(i&&!l?o=!1:s[1]&&(o===""||o===Ze(n))&&(o=!0))}return o}function bi(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const i=e.props,s={},l=[];let a=!1;if(!le(e)){const u=p=>{a=!0;const[h,v]=bi(p,t,!0);Se(s,h),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return we(e)&&o.set(e,qe),qe;if(ee(i))for(let u=0;u<i.length;u++){const p=We(i[u]);_i(p)&&(s[p]=fe)}else if(i)for(const u in i){const p=We(u);if(_i(p)){const h=i[u],v=s[p]=ee(h)||le(h)?{type:h}:Se({},h);if(v){const x=xi(Boolean,v.type),k=xi(String,v.type);v[0]=x>-1,v[1]=k<0||x<k,(x>-1||ge(v,"default"))&&l.push(p)}}}const c=[s,l];return we(e)&&o.set(e,c),c}function _i(e){return e[0]!=="$"}function yi(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function wi(e,t){return yi(e)===yi(t)}function xi(e,t){return ee(t)?t.findIndex(n=>wi(n,e)):le(t)&&wi(t,e)?0:-1}const ki=e=>e[0]==="_"||e==="$stable",Wo=e=>ee(e)?e.map(ct):[ct(e)],Ta=(e,t,n)=>{if(t._n)return t;const o=ae((...r)=>Wo(t(...r)),n);return o._c=!1,o},Ci=(e,t,n)=>{const o=e._ctx;for(const r in e){if(ki(r))continue;const i=e[r];if(le(i))t[r]=Ta(r,i,o);else if(i!=null){const s=Wo(i);t[r]=()=>s}}},Si=(e,t)=>{const n=Wo(t);e.slots.default=()=>n},$a=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=me(t),Ln(t,"_",n)):Ci(t,e.slots={})}else e.slots={},t&&Si(e,t);Ln(e.slots,Gn,1)},Ea=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=fe;if(o.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(Se(r,t),!n&&l===1&&delete r._):(i=!t.$stable,Ci(t,r)),s=t}else t&&(Si(e,t),s={default:1});if(i)for(const l in r)!ki(l)&&!(l in s)&&delete r[l]};function Uo(e,t,n,o,r=!1){if(ee(e)){e.forEach((h,v)=>Uo(h,t&&(ee(t)?t[v]:t),n,o,r));return}if(dn(o)&&!r)return;const i=o.shapeFlag&4?no(o.component)||o.component.proxy:o.el,s=r?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===fe?l.refs={}:l.refs,p=l.setupState;if(c!=null&&c!==a&&(Te(c)?(u[c]=null,ge(p,c)&&(p[c]=null)):$e(c)&&(c.value=null)),le(a))kt(a,l,12,[s,u]);else{const h=Te(a),v=$e(a);if(h||v){const x=()=>{if(e.f){const k=h?ge(p,a)?p[a]:u[a]:a.value;r?ee(k)&&po(k,i):ee(k)?k.includes(i)||k.push(i):h?(u[a]=[i],ge(p,a)&&(p[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else h?(u[a]=s,ge(p,a)&&(p[a]=s)):v&&(a.value=s,e.k&&(u[e.k]=s))};s?(x.id=-1,Ve(x,n)):x()}}}const Ve=ta;function Pa(e){return Oa(e)}function Oa(e,t){const n=_o();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:p,nextSibling:h,setScopeId:v=rt,insertStaticContent:x}=e,k=(f,d,_,I=null,C=null,O=null,N=!1,M=null,D=!!d.dynamicChildren)=>{if(f===d)return;f&&!Dt(f,d)&&(I=de(f),z(f,C,O,!0),f=null),d.patchFlag===-2&&(D=!1,d.dynamicChildren=null);const{type:E,ref:Z,shapeFlag:m}=d;switch(E){case Qn:A(f,d,_,I);break;case tt:q(f,d,_,I);break;case Ko:f==null&&$(d,_,I,N);break;case Ie:y(f,d,_,I,C,O,N,M,D);break;default:m&1?T(f,d,_,I,C,O,N,M,D):m&6?b(f,d,_,I,C,O,N,M,D):(m&64||m&128)&&E.process(f,d,_,I,C,O,N,M,D,Re)}Z!=null&&C&&Uo(Z,f&&f.ref,O,d||f,!d)},A=(f,d,_,I)=>{if(f==null)o(d.el=l(d.children),_,I);else{const C=d.el=f.el;d.children!==f.children&&c(C,d.children)}},q=(f,d,_,I)=>{f==null?o(d.el=a(d.children||""),_,I):d.el=f.el},$=(f,d,_,I)=>{[f.el,f.anchor]=x(f.children,d,_,I,f.el,f.anchor)},F=({el:f,anchor:d},_,I)=>{let C;for(;f&&f!==d;)C=h(f),o(f,_,I),f=C;o(d,_,I)},g=({el:f,anchor:d})=>{let _;for(;f&&f!==d;)_=h(f),r(f),f=_;r(d)},T=(f,d,_,I,C,O,N,M,D)=>{N=N||d.type==="svg",f==null?P(d,_,I,C,O,N,M,D):L(f,d,C,O,N,M,D)},P=(f,d,_,I,C,O,N,M)=>{let D,E;const{type:Z,props:m,shapeFlag:w,transition:U,dirs:ie}=f;if(D=f.el=s(f.type,O,m&&m.is,m),w&8?u(D,f.children):w&16&&S(f.children,D,null,I,C,O&&Z!=="foreignObject",N,M),ie&&At(f,null,I,"created"),B(D,f,f.scopeId,N,I),m){for(const be in m)be!=="value"&&!En(be)&&i(D,be,null,m[be],O,f.children,I,C,pe);"value"in m&&i(D,"value",null,m.value),(E=m.onVnodeBeforeMount)&&ut(E,I,f)}ie&&At(f,null,I,"beforeMount");const he=(!C||C&&!C.pendingBranch)&&U&&!U.persisted;he&&U.beforeEnter(D),o(D,d,_),((E=m&&m.onVnodeMounted)||he||ie)&&Ve(()=>{E&&ut(E,I,f),he&&U.enter(D),ie&&At(f,null,I,"mounted")},C)},B=(f,d,_,I,C)=>{if(_&&v(f,_),I)for(let O=0;O<I.length;O++)v(f,I[O]);if(C){let O=C.subTree;if(d===O){const N=C.vnode;B(f,N,N.scopeId,N.slotScopeIds,C.parent)}}},S=(f,d,_,I,C,O,N,M,D=0)=>{for(let E=D;E<f.length;E++){const Z=f[E]=M?It(f[E]):ct(f[E]);k(null,Z,d,_,I,C,O,N,M)}},L=(f,d,_,I,C,O,N)=>{const M=d.el=f.el;let{patchFlag:D,dynamicChildren:E,dirs:Z}=d;D|=f.patchFlag&16;const m=f.props||fe,w=d.props||fe;let U;_&&Bt(_,!1),(U=w.onVnodeBeforeUpdate)&&ut(U,_,d,f),Z&&At(d,f,_,"beforeUpdate"),_&&Bt(_,!0);const ie=C&&d.type!=="foreignObject";if(E?te(f.dynamicChildren,E,M,_,I,ie,O):N||re(f,d,M,null,_,I,ie,O,!1),D>0){if(D&16)ue(M,d,m,w,_,I,C);else if(D&2&&m.class!==w.class&&i(M,"class",null,w.class,C),D&4&&i(M,"style",m.style,w.style,C),D&8){const he=d.dynamicProps;for(let be=0;be<he.length;be++){const Ce=he[be],Xe=m[Ce],Ot=w[Ce];(Ot!==Xe||Ce==="value")&&i(M,Ce,Xe,Ot,C,f.children,_,I,pe)}}D&1&&f.children!==d.children&&u(M,d.children)}else!N&&E==null&&ue(M,d,m,w,_,I,C);((U=w.onVnodeUpdated)||Z)&&Ve(()=>{U&&ut(U,_,d,f),Z&&At(d,f,_,"updated")},I)},te=(f,d,_,I,C,O,N)=>{for(let M=0;M<d.length;M++){const D=f[M],E=d[M],Z=D.el&&(D.type===Ie||!Dt(D,E)||D.shapeFlag&70)?p(D.el):_;k(D,E,Z,null,I,C,O,N,!0)}},ue=(f,d,_,I,C,O,N)=>{if(_!==I){if(_!==fe)for(const M in _)!En(M)&&!(M in I)&&i(f,M,_[M],null,N,d.children,C,O,pe);for(const M in I){if(En(M))continue;const D=I[M],E=_[M];D!==E&&M!=="value"&&i(f,M,E,D,N,d.children,C,O,pe)}"value"in I&&i(f,"value",_.value,I.value)}},y=(f,d,_,I,C,O,N,M,D)=>{const E=d.el=f?f.el:l(""),Z=d.anchor=f?f.anchor:l("");let{patchFlag:m,dynamicChildren:w,slotScopeIds:U}=d;U&&(M=M?M.concat(U):U),f==null?(o(E,_,I),o(Z,_,I),S(d.children,_,Z,C,O,N,M,D)):m>0&&m&64&&w&&f.dynamicChildren?(te(f.dynamicChildren,w,_,C,O,N,M),(d.key!=null||C&&d===C.subTree)&&Ii(f,d,!0)):re(f,d,_,Z,C,O,N,M,D)},b=(f,d,_,I,C,O,N,M,D)=>{d.slotScopeIds=M,f==null?d.shapeFlag&512?C.ctx.activate(d,_,I,N,D):K(d,_,I,C,O,N,D):ne(f,d,D)},K=(f,d,_,I,C,O,N)=>{const M=f.component=Ra(f,I,C);if(Un(f)&&(M.ctx.renderer=Re),Na(M),M.asyncDep){if(C&&C.registerDep(M,H),!f.el){const D=M.subTree=J(tt);q(null,D,d,_)}return}H(M,f,d,_,C,O,N)},ne=(f,d,_)=>{const I=d.component=f.component;if(Jl(f,d,_))if(I.asyncDep&&!I.asyncResolved){ce(I,d,_);return}else I.next=d,Kl(I.update),I.update();else d.el=f.el,I.vnode=d},H=(f,d,_,I,C,O,N)=>{const M=()=>{if(f.isMounted){let{next:Z,bu:m,u:w,parent:U,vnode:ie}=f,he=Z,be;Bt(f,!1),Z?(Z.el=ie.el,ce(f,Z,N)):Z=ie,m&&Mn(m),(be=Z.props&&Z.props.onVnodeBeforeUpdate)&&ut(be,U,Z,ie),Bt(f,!0);const Ce=zo(f),Xe=f.subTree;f.subTree=Ce,k(Xe,Ce,p(Xe.el),de(Xe),f,C,O),Z.el=Ce.el,he===null&&Gl(f,Ce.el),w&&Ve(w,C),(be=Z.props&&Z.props.onVnodeUpdated)&&Ve(()=>ut(be,U,Z,ie),C)}else{let Z;const{el:m,props:w}=d,{bm:U,m:ie,parent:he}=f,be=dn(d);if(Bt(f,!1),U&&Mn(U),!be&&(Z=w&&w.onVnodeBeforeMount)&&ut(Z,he,d),Bt(f,!0),m&&In){const Ce=()=>{f.subTree=zo(f),In(m,f.subTree,f,C,null)};be?d.type.__asyncLoader().then(()=>!f.isUnmounted&&Ce()):Ce()}else{const Ce=f.subTree=zo(f);k(null,Ce,_,I,f,C,O),d.el=Ce.el}if(ie&&Ve(ie,C),!be&&(Z=w&&w.onVnodeMounted)){const Ce=d;Ve(()=>ut(Z,he,Ce),C)}(d.shapeFlag&256||he&&dn(he.vnode)&&he.vnode.shapeFlag&256)&&f.a&&Ve(f.a,C),f.isMounted=!0,d=_=I=null}},D=f.effect=new Co(M,()=>Lo(E),f.scope),E=f.update=()=>D.run();E.id=f.uid,Bt(f,!0),E()},ce=(f,d,_)=>{d.component=f;const I=f.vnode.props;f.vnode=d,f.next=null,Ia(f,d.props,I,_),Ea(f,d.children,_),Xt(),Yr(),qt()},re=(f,d,_,I,C,O,N,M,D=!1)=>{const E=f&&f.children,Z=f?f.shapeFlag:0,m=d.children,{patchFlag:w,shapeFlag:U}=d;if(w>0){if(w&128){R(E,m,_,I,C,O,N,M,D);return}else if(w&256){ye(E,m,_,I,C,O,N,M,D);return}}U&8?(Z&16&&pe(E,C,O),m!==E&&u(_,m)):Z&16?U&16?R(E,m,_,I,C,O,N,M,D):pe(E,C,O,!0):(Z&8&&u(_,""),U&16&&S(m,_,I,C,O,N,M,D))},ye=(f,d,_,I,C,O,N,M,D)=>{f=f||qe,d=d||qe;const E=f.length,Z=d.length,m=Math.min(E,Z);let w;for(w=0;w<m;w++){const U=d[w]=D?It(d[w]):ct(d[w]);k(f[w],U,_,null,C,O,N,M,D)}E>Z?pe(f,C,O,!0,!1,m):S(d,_,I,C,O,N,M,D,m)},R=(f,d,_,I,C,O,N,M,D)=>{let E=0;const Z=d.length;let m=f.length-1,w=Z-1;for(;E<=m&&E<=w;){const U=f[E],ie=d[E]=D?It(d[E]):ct(d[E]);if(Dt(U,ie))k(U,ie,_,null,C,O,N,M,D);else break;E++}for(;E<=m&&E<=w;){const U=f[m],ie=d[w]=D?It(d[w]):ct(d[w]);if(Dt(U,ie))k(U,ie,_,null,C,O,N,M,D);else break;m--,w--}if(E>m){if(E<=w){const U=w+1,ie=U<Z?d[U].el:I;for(;E<=w;)k(null,d[E]=D?It(d[E]):ct(d[E]),_,ie,C,O,N,M,D),E++}}else if(E>w)for(;E<=m;)z(f[E],C,O,!0),E++;else{const U=E,ie=E,he=new Map;for(E=ie;E<=w;E++){const Ne=d[E]=D?It(d[E]):ct(d[E]);Ne.key!=null&&he.set(Ne.key,E)}let be,Ce=0;const Xe=w-ie+1;let Ot=!1,dt=0;const Kt=new Array(Xe);for(E=0;E<Xe;E++)Kt[E]=0;for(E=U;E<=m;E++){const Ne=f[E];if(Ce>=Xe){z(Ne,C,O,!0);continue}let ot;if(Ne.key!=null)ot=he.get(Ne.key);else for(be=ie;be<=w;be++)if(Kt[be-ie]===0&&Dt(Ne,d[be])){ot=be;break}ot===void 0?z(Ne,C,O,!0):(Kt[ot-ie]=E+1,ot>=dt?dt=ot:Ot=!0,k(Ne,d[ot],_,null,C,O,N,M,D),Ce++)}const co=Ot?Ma(Kt):qe;for(be=co.length-1,E=Xe-1;E>=0;E--){const Ne=ie+E,ot=d[Ne],uo=Ne+1<Z?d[Ne+1].el:I;Kt[E]===0?k(null,ot,_,uo,C,O,N,M,D):Ot&&(be<0||E!==co[be]?W(ot,_,uo,2):be--)}}},W=(f,d,_,I,C=null)=>{const{el:O,type:N,transition:M,children:D,shapeFlag:E}=f;if(E&6){W(f.component.subTree,d,_,I);return}if(E&128){f.suspense.move(d,_,I);return}if(E&64){N.move(f,d,_,Re);return}if(N===Ie){o(O,d,_);for(let m=0;m<D.length;m++)W(D[m],d,_,I);o(f.anchor,d,_);return}if(N===Ko){F(f,d,_);return}if(I!==2&&E&1&&M)if(I===0)M.beforeEnter(O),o(O,d,_),Ve(()=>M.enter(O),C);else{const{leave:m,delayLeave:w,afterLeave:U}=M,ie=()=>o(O,d,_),he=()=>{m(O,()=>{ie(),U&&U()})};w?w(O,ie,he):he()}else o(O,d,_)},z=(f,d,_,I=!1,C=!1)=>{const{type:O,props:N,ref:M,children:D,dynamicChildren:E,shapeFlag:Z,patchFlag:m,dirs:w}=f;if(M!=null&&Uo(M,null,_,f,!0),Z&256){d.ctx.deactivate(f);return}const U=Z&1&&w,ie=!dn(f);let he;if(ie&&(he=N&&N.onVnodeBeforeUnmount)&&ut(he,d,f),Z&6)_e(f.component,_,I);else{if(Z&128){f.suspense.unmount(_,I);return}U&&At(f,null,d,"beforeUnmount"),Z&64?f.type.remove(f,d,_,C,Re,I):E&&(O!==Ie||m>0&&m&64)?pe(E,d,_,!1,!0):(O===Ie&&m&384||!C&&Z&16)&&pe(D,d,_),I&&V(f)}(ie&&(he=N&&N.onVnodeUnmounted)||U)&&Ve(()=>{he&&ut(he,d,f),U&&At(f,null,d,"unmounted")},_)},V=f=>{const{type:d,el:_,anchor:I,transition:C}=f;if(d===Ie){oe(_,I);return}if(d===Ko){g(f);return}const O=()=>{r(_),C&&!C.persisted&&C.afterLeave&&C.afterLeave()};if(f.shapeFlag&1&&C&&!C.persisted){const{leave:N,delayLeave:M}=C,D=()=>N(_,O);M?M(f.el,O,D):D()}else O()},oe=(f,d)=>{let _;for(;f!==d;)_=h(f),r(f),f=_;r(d)},_e=(f,d,_)=>{const{bum:I,scope:C,update:O,subTree:N,um:M}=f;I&&Mn(I),C.stop(),O&&(O.active=!1,z(N,f,d,_)),M&&Ve(M,d),Ve(()=>{f.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},pe=(f,d,_,I=!1,C=!1,O=0)=>{for(let N=O;N<f.length;N++)z(f[N],d,_,I,C)},de=f=>f.shapeFlag&6?de(f.component.subTree):f.shapeFlag&128?f.suspense.next():h(f.anchor||f.el),Ae=(f,d,_)=>{f==null?d._vnode&&z(d._vnode,null,null,!0):k(d._vnode||null,f,d,null,null,null,_),Yr(),Xr(),d._vnode=f},Re={p:k,um:z,m:W,r:V,mt:K,mc:S,pc:re,pbc:te,n:de,o:e};let Ut,In;return t&&([Ut,In]=t(Re)),{render:Ae,hydrate:Ut,createApp:Ca(Ae,Ut)}}function Bt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ii(e,t,n=!1){const o=e.children,r=t.children;if(ee(o)&&ee(r))for(let i=0;i<o.length;i++){const s=o[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=It(r[i]),l.el=s.el),n||Ii(s,l)),l.type===Qn&&(l.el=s.el)}}function Ma(e){const t=e.slice(),n=[0];let o,r,i,s,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(r=n[n.length-1],e[r]<c){t[o]=r,n.push(o);continue}for(i=0,s=n.length-1;i<s;)l=i+s>>1,e[n[l]]<c?i=l+1:s=l;c<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}const La=e=>e.__isTeleport,Ie=Symbol.for("v-fgt"),Qn=Symbol.for("v-txt"),tt=Symbol.for("v-cmt"),Ko=Symbol.for("v-stc"),mn=[];let st=null;function j(e=!1){mn.push(st=e?null:[])}function za(){mn.pop(),st=mn[mn.length-1]||null}let vn=1;function Ti(e){vn+=e}function $i(e){return e.dynamicChildren=vn>0?st||qe:null,za(),vn>0&&st&&st.push(e),e}function X(e,t,n,o,r,i){return $i(Y(e,t,n,o,r,i,!0))}function ke(e,t,n,o,r){return $i(J(e,t,n,o,r,!0))}function Jn(e){return e?e.__v_isVNode===!0:!1}function Dt(e,t){return e.type===t.type&&e.key===t.key}const Gn="__vInternal",Ei=({key:e})=>e??null,eo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Te(e)||$e(e)||le(e)?{i:ze,r:e,k:t,f:!!n}:e:null);function Y(e,t=null,n=null,o=0,r=null,i=e===Ie?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ei(t),ref:t&&eo(t),scopeId:Qr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ze};return l?(Yo(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=Te(n)?8:16),vn>0&&!s&&st&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&st.push(a),a}const J=Aa;function Aa(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===li)&&(e=tt),Jn(e)){const l=Ct(e,t,!0);return n&&Yo(l,n),vn>0&&!i&&st&&(l.shapeFlag&6?st[st.indexOf(e)]=l:st.push(l)),l.patchFlag|=-2,l}if(Ua(e)&&(e=e.__vccOpts),t){t=ja(t);let{class:l,style:a}=t;l&&!Te(l)&&(t.class=Oe(l)),we(a)&&(Nr(a)&&!ee(a)&&(a=Se({},a)),t.style=Be(a))}const s=Te(e)?1:ea(e)?128:La(e)?64:we(e)?4:le(e)?2:0;return Y(e,t,n,o,r,s,i,!0)}function ja(e){return e?Nr(e)||Gn in e?Se({},e):e:null}function Ct(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,l=t?to(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ei(l),ref:t&&t.ref?n&&r?ee(r)?r.concat(eo(t)):[r,eo(t)]:eo(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ie?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ct(e.ssContent),ssFallback:e.ssFallback&&Ct(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function St(e=" ",t=0){return J(Qn,null,e,t)}function Me(e="",t=!1){return t?(j(),ke(tt,null,e)):J(tt,null,e)}function ct(e){return e==null||typeof e=="boolean"?J(tt):ee(e)?J(Ie,null,e.slice()):typeof e=="object"?It(e):J(Qn,null,String(e))}function It(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ct(e)}function Yo(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ee(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Yo(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Gn in t)?t._ctx=ze:r===3&&ze&&(ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else le(t)?(t={default:t,_ctx:ze},n=32):(t=String(t),o&64?(n=16,t=[St(t)]):n=8);e.children=t,e.shapeFlag|=n}function to(...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=Oe([t.class,o.class]));else if(r==="style")t.style=Be([t.style,o.style]);else if(Tn(r)){const i=t[r],s=o[r];s&&i!==s&&!(ee(i)&&i.includes(s))&&(t[r]=i?[].concat(i,s):s)}else r!==""&&(t[r]=o[r])}return t}function ut(e,t,n,o=null){Je(e,t,7,[n,o])}const Ba=mi();let Da=0;function Ra(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Ba,i={uid:Da++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new cl(!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:bi(o,r),emitsOptions:Zr(o,r),emit:null,emitted:null,propsDefaults:fe,inheritAttrs:o.inheritAttrs,ctx:fe,data:fe,props:fe,attrs:fe,slots:fe,refs:fe,setupState:fe,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=ql.bind(null,i),e.ce&&e.ce(i),i}let Le=null;const Pi=()=>Le||ze;let Xo,Gt,Oi="__VUE_INSTANCE_SETTERS__";(Gt=_o()[Oi])||(Gt=_o()[Oi]=[]),Gt.push(e=>Le=e),Xo=e=>{Gt.length>1?Gt.forEach(t=>t(e)):Gt[0](e)};const en=e=>{Xo(e),e.scope.on()},Rt=()=>{Le&&Le.scope.off(),Xo(null)};function Mi(e){return e.vnode.shapeFlag&4}let bn=!1;function Na(e,t=!1){bn=t;const{props:n,children:o}=e.vnode,r=Mi(e);Sa(e,n,r,t),$a(e,o);const i=r?Fa(e,t):void 0;return bn=!1,i}function Fa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Fr(new Proxy(e.ctx,va));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?Ha(e):null;en(e),Xt();const i=kt(o,e,0,[e.props,r]);if(qt(),Rt(),gr(i)){if(i.then(Rt,Rt),t)return i.then(s=>{Li(e,s,t)}).catch(s=>{Fn(s,e,0)});e.asyncDep=i}else Li(e,i,t)}else Ai(e,t)}function Li(e,t,n){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:we(t)&&(e.setupState=Wr(t)),Ai(e,n)}let zi;function Ai(e,t,n){const o=e.type;if(!e.render){if(!t&&zi&&!o.render){const r=o.template||Fo(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=Se(Se({isCustomElement:i,delimiters:l},s),a);o.render=zi(r,c)}}e.render=o.render||rt}en(e),Xt(),ba(e),qt(),Rt()}function Va(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Fe(e,"get","$attrs"),t[n]}}))}function Ha(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Va(e)},slots:e.slots,emit:e.emit,expose:t}}function no(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Wr(Fr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in hn)return hn[n](e)},has(t,n){return n in t||n in hn}}))}function Wa(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}function Ua(e){return le(e)&&"__vccOpts"in e}const se=(e,t)=>Hl(e,t,bn);function ji(e,t,n){const o=arguments.length;return o===2?we(t)&&!ee(t)?Jn(t)?J(e,null,[t]):J(e,t):J(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Jn(n)&&(n=[n]),J(e,t,n))}const Ka=Symbol.for("v-scx"),Ya=()=>jt(Ka),Xa="3.3.4",qa="http://www.w3.org/2000/svg",Nt=typeof document<"u"?document:null,Bi=Nt&&Nt.createElement("template"),Za={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?Nt.createElementNS(qa,e):Nt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Nt.createTextNode(e),createComment:e=>Nt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Nt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Bi.innerHTML=o?`<svg>${e}</svg>`:e;const l=Bi.content;if(o){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Qa(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 Ja(e,t,n){const o=e.style,r=Te(n);if(n&&!r){if(t&&!Te(t))for(const i in t)n[i]==null&&qo(o,i,"");for(const i in n)qo(o,i,n[i])}else{const i=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=i)}}const Di=/\s*!important$/;function qo(e,t,n){if(ee(n))n.forEach(o=>qo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Ga(e,t);Di.test(n)?e.setProperty(Ze(o),n.replace(Di,""),"important"):e[o]=n}}const Ri=["Webkit","Moz","ms"],Zo={};function Ga(e,t){const n=Zo[t];if(n)return n;let o=We(t);if(o!=="filter"&&o in e)return Zo[t]=o;o=On(o);for(let r=0;r<Ri.length;r++){const i=Ri[r]+o;if(i in e)return Zo[t]=i}return t}const Ni="http://www.w3.org/1999/xlink";function ec(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Ni,t.slice(6,t.length)):e.setAttributeNS(Ni,t,n);else{const i=al(t);n==null||i&&!_r(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function tc(e,t,n,o,r,i,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,r,i),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const c=l==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=_r(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function tn(e,t,n,o){e.addEventListener(t,n,o)}function nc(e,t,n,o){e.removeEventListener(t,n,o)}function oc(e,t,n,o,r=null){const i=e._vei||(e._vei={}),s=i[t];if(o&&s)s.value=o;else{const[l,a]=rc(t);if(o){const c=i[t]=lc(o,r);tn(e,l,c,a)}else s&&(nc(e,l,s,a),i[t]=void 0)}}const Fi=/(?:Once|Passive|Capture)$/;function rc(e){let t;if(Fi.test(e)){t={};let o;for(;o=e.match(Fi);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ze(e.slice(2)),t]}let Qo=0;const ic=Promise.resolve(),sc=()=>Qo||(ic.then(()=>Qo=0),Qo=Date.now());function lc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Je(ac(o,n.value),t,5,[o])};return n.value=e,n.attached=sc(),n}function ac(e,t){if(ee(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const Vi=/^on[a-z]/,cc=(e,t,n,o,r=!1,i,s,l,a)=>{t==="class"?Qa(e,o,r):t==="style"?Ja(e,n,o):Tn(t)?fo(t)||oc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):uc(e,t,o,r))?tc(e,t,o,i,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),ec(e,t,o,r))};function uc(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Vi.test(t)&&le(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Vi.test(t)&&Te(n)?!1:t in e}function fc(e,t){const n=Ee(e);class o extends Jo{constructor(i){super(n,i,t)}}return o.def=n,o}const dc=typeof HTMLElement<"u"?HTMLElement:class{};class Jo extends dc{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,gt(()=>{this._connected||(es(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:i,styles:s}=o;let l;if(i&&!ee(i))for(const a in i){const c=i[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=bo(this._props[a])),(l||(l=Object.create(null)))[We(a)]=!0)}this._numberProps=l,r&&this._resolveProps(o),this._applyStyles(s),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=ee(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(We))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i)}})}_setAttr(t){let n=this.getAttribute(t);const o=We(t);this._numberProps&&this._numberProps[o]&&(n=bo(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(Ze(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ze(t),n+""):n||this.removeAttribute(Ze(t))))}_update(){es(this._createVNode(),this.shadowRoot)}_createVNode(){const t=J(this._def,Se({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(i,s)=>{this.dispatchEvent(new CustomEvent(i,{detail:s}))};n.emit=(i,...s)=>{o(i,s),Ze(i)!==i&&o(Ze(i),s)};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 Tt="transition",_n="animation",nn=(e,{slots:t})=>ji(ra,pc(e),t);nn.displayName="Transition";const Hi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};nn.props=Se({},ti,Hi);const Ft=(e,t=[])=>{ee(e)?e.forEach(n=>n(...t)):e&&e(...t)},Wi=e=>e?ee(e)?e.some(t=>t.length>1):e.length>1:!1;function pc(e){const t={};for(const y in e)y in Hi||(t[y]=e[y]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,x=hc(r),k=x&&x[0],A=x&&x[1],{onBeforeEnter:q,onEnter:$,onEnterCancelled:F,onLeave:g,onLeaveCancelled:T,onBeforeAppear:P=q,onAppear:B=$,onAppearCancelled:S=F}=t,L=(y,b,K)=>{Vt(y,b?u:l),Vt(y,b?c:s),K&&K()},te=(y,b)=>{y._isLeaving=!1,Vt(y,p),Vt(y,v),Vt(y,h),b&&b()},ue=y=>(b,K)=>{const ne=y?B:$,H=()=>L(b,y,K);Ft(ne,[b,H]),Ui(()=>{Vt(b,y?a:i),$t(b,y?u:l),Wi(ne)||Ki(b,o,k,H)})};return Se(t,{onBeforeEnter(y){Ft(q,[y]),$t(y,i),$t(y,s)},onBeforeAppear(y){Ft(P,[y]),$t(y,a),$t(y,c)},onEnter:ue(!1),onAppear:ue(!0),onLeave(y,b){y._isLeaving=!0;const K=()=>te(y,b);$t(y,p),vc(),$t(y,h),Ui(()=>{y._isLeaving&&(Vt(y,p),$t(y,v),Wi(g)||Ki(y,o,A,K))}),Ft(g,[y,K])},onEnterCancelled(y){L(y,!1),Ft(F,[y])},onAppearCancelled(y){L(y,!0),Ft(S,[y])},onLeaveCancelled(y){te(y),Ft(T,[y])}})}function hc(e){if(e==null)return null;if(we(e))return[Go(e.enter),Go(e.leave)];{const t=Go(e);return[t,t]}}function Go(e){return bo(e)}function $t(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Vt(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 Ui(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let gc=0;function Ki(e,t,n,o){const r=e._endId=++gc,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=mc(e,t);if(!s)return o();const c=s+"end";let u=0;const p=()=>{e.removeEventListener(c,h),i()},h=v=>{v.target===e&&++u>=a&&p()};setTimeout(()=>{u<a&&p()},l+1),e.addEventListener(c,h)}function mc(e,t){const n=window.getComputedStyle(e),o=x=>(n[x]||"").split(", "),r=o(`${Tt}Delay`),i=o(`${Tt}Duration`),s=Yi(r,i),l=o(`${_n}Delay`),a=o(`${_n}Duration`),c=Yi(l,a);let u=null,p=0,h=0;t===Tt?s>0&&(u=Tt,p=s,h=i.length):t===_n?c>0&&(u=_n,p=c,h=a.length):(p=Math.max(s,c),u=p>0?s>c?Tt:_n:null,h=u?u===Tt?i.length:a.length:0);const v=u===Tt&&/\b(transform|all)(,|$)/.test(o(`${Tt}Property`).toString());return{type:u,timeout:p,propCount:h,hasTransform:v}}function Yi(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Xi(n)+Xi(e[o])))}function Xi(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function vc(){return document.body.offsetHeight}const qi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?n=>Mn(t,n):t};function bc(e){e.target.composing=!0}function Zi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const _c={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=qi(r);const i=o||r.props&&r.props.type==="number";tn(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=vo(l)),e._assign(l)}),n&&tn(e,"change",()=>{e.value=e.value.trim()}),t||(tn(e,"compositionstart",bc),tn(e,"compositionend",Zi),tn(e,"change",Zi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e._assign=qi(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&vo(e.value)===t))return;const s=t??"";e.value!==s&&(e.value=s)}},yc=["ctrl","shift","alt","meta"],wc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>yc.some(n=>e[`${n}Key`]&&!t.includes(n))},nt=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const i=wc[t[r]];if(i&&i(n,t))return}return e(n,...o)},xc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Qi=(e,t)=>n=>{if(!("key"in n))return;const o=Ze(n.key);if(t.some(r=>r===o||xc[r]===o))return e(n)},Ji={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):yn(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),yn(e,!0),o.enter(e)):o.leave(e,()=>{yn(e,!1)}):yn(e,t))},beforeUnmount(e,{value:t}){yn(e,t)}};function yn(e,t){e.style.display=t?e._vod:"none"}const kc=Se({patchProp:cc},Za);let Gi;function Cc(){return Gi||(Gi=Pa(kc))}const es=(...e)=>{Cc().render(...e)},Sc=`.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}}
2
- `,xe=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ic={},Tc={class:"loading-indicator"};function $c(e,t){return j(),X("div",Tc)}const er=xe(Ic,[["render",$c],["styles",[Sc]]]),Ec=Object.freeze(Object.defineProperty({__proto__:null,default:er},Symbol.toStringTag,{value:"Module"})),Pc={key:0,class:"fixed inset-0 h-[101%] overflow-auto scrollbar-none flex justify-center items-center z-10 bg-black"},Oc={class:"flex justify-between items-end"},Mc={class:"inline-block children-pointer-events-auto w-1/3"},Lc={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},zc={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},Ac={class:"inline-block z-20 relative"},ts=Ee({__name:"ReaderLayout",props:{loading:{type:Boolean},immediate:{type:Boolean},idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){return(t,n)=>{const o=er;return j(),X("div",{class:Oe(["fixed top-0 left-0 w-screen h-screen text-stone-100 font-sans text-base overflow-auto scrollbar-none overscroll-contain",{"cursor-none":t.idle,"bg-black":t.immediate||!t.loading,"opacity-0":!t.immediate&&t.loading,"duration-200 transition-colors":!t.immediate}])},[t.loading&&t.immediate?(j(),X("div",Pc,[J(o)])):Me("",!0),Pe(t.$slots,"default"),Y("div",{id:"controls",class:Oe(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear left-0 top-0 w-screen h-screen flex flex-col justify-between p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3",{"opacity-100 z-20":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}])},[Y("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:Be({paddingTop:`${t.spaceTop||0}px`})},[Pe(t.$slots,"back"),Pe(t.$slots,"exit"),Pe(t.$slots,"chapter-nav")],4),Y("div",Oc,[Y("div",Mc,[Pe(t.$slots,"page-nav")]),Y("div",Lc,[Pe(t.$slots,"reset-zoom")]),Y("div",zc,[Pe(t.$slots,"entry"),Y("div",Ac,[Pe(t.$slots,"settings")]),Pe(t.$slots,"full-screen"),Pe(t.$slots,"play")])]),Y("div",{class:Oe(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[Pe(t.$slots,"progress")],2)],2)],2)}}}),jc=Object.freeze(Object.defineProperty({__proto__:null,default:ts},Symbol.toStringTag,{value:"Module"})),Bc={},Dc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Rc=[Y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[Y("circle",{cx:"14",cy:"14",r:"12"}),Y("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function Nc(e,t){return j(),X("svg",Dc,Rc)}const ns=xe(Bc,[["render",Nc]]),Fc=Object.freeze(Object.defineProperty({__proto__:null,default:ns},Symbol.toStringTag,{value:"Module"})),Vc={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"},Hc={class:"block w-4 h-4"},Wc={class:"w-12"},os=Ee({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=ns;return t.zoom!==1?(j(),X("button",Vc,[Y("div",Hc,[J(o)]),Y("div",Wc,Qe(Math.ceil(t.zoom*100))+"%",1)])):Me("",!0)}}}),Uc=Object.freeze(Object.defineProperty({__proto__:null,default:os},Symbol.toStringTag,{value:"Module"})),Kc={},Yc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Xc=[Y("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function qc(e,t){return j(),X("svg",Yc,Xc)}const tr=xe(Kc,[["render",qc]]),Zc=Object.freeze(Object.defineProperty({__proto__:null,default:tr},Symbol.toStringTag,{value:"Module"})),Qc={},Jc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Gc=[Y("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),Y("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function eu(e,t){return j(),X("svg",Jc,Gc)}const nr=xe(Qc,[["render",eu]]),tu=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"}));function nu({touchDevice:e}){const t=Q(!1);let n=0;return Zn("busy:touchDevice",e),Zn("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function or(){const e=jt("busy:touchDevice"),t=jt("setBusyState");let n=!1;return at(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const ou=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,i=.65;const s=setInterval(a,20);l();function l(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function a(){const c=+n||50;r<=c?(r++,i-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${i}`):(o.remove(),clearInterval(s))}},on={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>ou(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},ru={class:"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"},oo=Ee({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=or();let r=!1;function i(){r||(r=!0,o(!0,{desktopOnly:!0}))}function s(){r&&(r=!1,o(!1,{desktopOnly:!0}))}function l(a){n.disabled?a.preventDefault():t("click")}return(a,c)=>mt((j(),ke(ga(a.href?"a":"button"),to(a.href?{href:a.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":a.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!a.disabled,"bg-black bg-opacity-50":!a.transparent}],onClick:nt(l,["stop"]),onMouseenter:i,onMouseleave:s}),{default:ae(()=>[Y("div",ru,[Pe(a.$slots,"default")])]),_:3},16,["class","onClick"])),[[G(on),a.disabled?0:15]])}}),iu=Object.freeze(Object.defineProperty({__proto__:null,default:oo},Symbol.toStringTag,{value:"Module"})),su={},lu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},au=[Y("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 cu(e,t){return j(),X("svg",lu,au)}const rs=xe(su,[["render",cu]]),uu=Object.freeze(Object.defineProperty({__proto__:null,default:rs},Symbol.toStringTag,{value:"Module"}));class fu{constructor(){Qs(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 du(){const e=new fu;return at(()=>e.dispose()),Zn("keyController",e),e}function ro(e){const t=jt("keyController");et(()=>t.addListener(e)),at(()=>t.removeListener(e))}const pu={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},hu={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3"},gu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},is=Ee({__name:"BottomSheet",props:{modelValue:{type:Boolean},name:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;ro({onKeyDown:r});const o=or();ve(()=>n.modelValue,i=>o(i));function r(i){n.modelValue&&i.key==="Escape"&&(t("update:modelValue",!1),i.preventDefault())}return(i,s)=>{const l=rs,a=oo;return j(),X("div",{class:Oe(["fixed-screen flex flex-col items-center justify-end select-none",{"!pointer-events-none":!n.modelValue}]),onClick:s[3]||(s[3]=()=>t("update:modelValue",!1))},[J(nn,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:ae(()=>[n.modelValue?(j(),X("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:s[1]||(s[1]=nt(()=>{},["stop"])),onWheelPassive:s[2]||(s[2]=nt(()=>{},["stop"]))},[Y("div",pu,[J(a,{transparent:"",onClick:s[0]||(s[0]=()=>t("update:modelValue",!1))},{default:ae(()=>[J(l)]),_:1}),Y("div",hu,Qe(i.name),1),Pe(i.$slots,"actions")]),Y("div",gu,[Pe(i.$slots,"default")])],32)):Me("",!0)]),_:3})],2)}}}),mu=Object.freeze(Object.defineProperty({__proto__:null,default:is},Symbol.toStringTag,{value:"Module"})),vu=["min","max","step"],bu={class:"flex-shrink-0"},ss=xe(Ee({__name:"InputPercentage",props:{modelValue:{},min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=se({get(){return n.modelValue},set(r){t("update:modelValue",+r)}});return(r,i)=>(j(),X("div",{class:Oe(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:Be({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[mt(Y("input",{"onUpdate:modelValue":i[0]||(i[0]=s=>o.value=s),type:"range",min:r.min,max:r.max,step:r.step??1,class:"flex-grow"},null,8,vu),[[_c,o.value]]),Y("p",bu,[Pe(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
- `]]]),_u=Object.freeze(Object.defineProperty({__proto__:null,default:ss},Symbol.toStringTag,{value:"Module"})),yu={class:"flex items-center mb-8 last:mb-0"},wu={class:"flex-grow overflow-hidden"},ls=Ee({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(j(),X("div",yu,[Y("div",{class:Oe(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Qe(t.label),3),Y("div",wu,[Pe(t.$slots,"default")])]))}}),xu=Object.freeze(Object.defineProperty({__proto__:null,default:ls},Symbol.toStringTag,{value:"Module"})),ku=["onClick","onKeyup"],as=Ee({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Q(null),r=Q({width:"",left:""});et(()=>{let s=!1;ve(()=>n.modelValue,l=>{var c;const a=(c=o.value)==null?void 0:c.children[l+1];a&&(r.value={width:a.offsetWidth+"px",left:a.offsetLeft+"px"},a.scrollIntoView({behavior:s?"smooth":"auto",block:"center",inline:"center"}),s=!0)},{immediate:!0})});function i(s){t("update:modelValue",s)}return(s,l)=>(j(),X("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[Y("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Be(r.value)},null,4),(j(!0),X(Ie,null,pn(n.items,(a,c)=>mt((j(),X("div",{key:c,tabindex:"0",class:Oe(["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:()=>i(c),onKeyup:[Qi(()=>i(c),["enter"]),Qi(()=>i(c),["space"])]},[St(Qe(a),1)],42,ku)),[[G(on),30]])),128))],512))}}),Cu=Object.freeze(Object.defineProperty({__proto__:null,default:as},Symbol.toStringTag,{value:"Module"})),Su={},Iu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Tu=[Y("path",{fill:"currentColor",d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"},null,-1)];function $u(e,t){return j(),X("svg",Iu,Tu)}const cs=xe(Su,[["render",$u]]),Eu=Object.freeze(Object.defineProperty({__proto__:null,default:cs},Symbol.toStringTag,{value:"Module"})),Pu={},Ou={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Mu=[Y("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),Y("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Lu(e,t){return j(),X("svg",Ou,Mu)}const us=xe(Pu,[["render",Lu]]),zu=Object.freeze(Object.defineProperty({__proto__:null,default:us},Symbol.toStringTag,{value:"Module"}));function Au(e){if(e)try{return JSON.parse(e)}catch{return}}function ju(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var ft=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(ft||{}),Ht=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Ht||{});const Bu=.25,Du=5,Ru=.25,wn=.25,xn=5,Nu=.05,Fu=0,Vu=4;function Hu(e){var q,$,F,g,T;const{titleName:t,isWebtoon:n}=e,o=se(()=>t.value?ju(t.value):location.hostname),r=Q(Wu(`tkr:${o.value}`)),i=P=>{r.value=P;const B=`tkr:${o.value}`;!P||!Object.keys(P).length?localStorage.removeItem(B):localStorage.setItem(B,JSON.stringify(P))},s=P=>{if(!r.value){i(P);return}const B={...r.value};Object.entries(P).forEach(([S,L])=>{L===void 0?delete B[S]:B[S]=L}),i(B)},l=Q(((q=r.value)==null?void 0:q.style)??e.defaultStyle??Ht.longStrip),a=Q((($=r.value)==null?void 0:$.direction)??e.defaultDirection??ft.vertical),c=Q((F=r.value)==null?void 0:F.gap),u=Q(((g=r.value)==null?void 0:g.speed)??1),p=Q(((T=r.value)==null?void 0:T.zoom)??1),h=se({get(){return n.value?Ht.longStrip:l.value},set:P=>{l.value=P,s({style:P}),P!==Ht.longStrip&&a.value===ft.vertical&&(v.value=ft.rtl)}}),v=se({get:()=>n.value?ft.vertical:a.value,set:P=>{a.value=P,s({direction:P})}}),x=se({get:()=>c.value??(e.maybeWebtoon.value?0:1),set(P){c.value=P,s({gap:P})}}),k=se({get:()=>u.value,set(P){u.value=P,s({speed:P===1?void 0:P})}}),A=se({get:()=>p.value,set(P){p.value=P,s({zoom:P===1?void 0:P})}});return{direction:v,style:h,gap:x,speed:k,zoom:A,isLongStrip:se(()=>h.value===Ht.longStrip),isDouble:se(()=>h.value===Ht.double),isRTL:se(()=>v.value===ft.rtl),isVertical:se(()=>v.value===ft.vertical)}}function Wu(e){const t=localStorage.getItem(e),n=Au(t),o={};return n?(n.style!==void 0&&Object.values(Ht).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(ft).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=Fu&&n.gap<=Vu&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=wn&&n.speed<=xn&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=wn&&n.zoom<=xn&&(o.zoom=n.zoom),Object.keys(o).length?o:void 0):o}const fs=Ee({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=e,o=Q(!1),r=se(()=>n.name??location.hostname);ro({onKeyUp:l=>{l.key==="s"&&!l.metaKey&&!l.ctrlKey&&(o.value=!o.value)}});function i(l){t("update:zoom",Math.round(l)/100)}function s(){o.value=!1,t("help")}return(l,a)=>{const c=us,u=oo,p=cs,h=as,v=ls,x=ss,k=is;return j(),X(Ie,null,[J(u,{title:"Reader settings (S)",disabled:l.disabled,onClick:a[0]||(a[0]=()=>o.value=!0)},{default:ae(()=>[J(c)]),_:1},8,["disabled"]),J(k,{modelValue:o.value,"onUpdate:modelValue":a[5]||(a[5]=A=>o.value=A),name:r.value},{actions:ae(()=>[J(u,{transparent:"",onClick:s},{default:ae(()=>[J(p)]),_:1})]),default:ae(()=>[J(v,{label:"Style"},{default:ae(()=>[J(h,{"model-value":l.readerStyle,items:l.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":a[1]||(a[1]=A=>t("update:reader-style",A))},null,8,["model-value","items"])]),_:1}),J(v,{label:"Direction"},{default:ae(()=>[J(h,{"model-value":l.direction,items:l.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":a[2]||(a[2]=A=>t("update:direction",A))},null,8,["model-value","items"])]),_:1}),J(v,{label:"Gap"},{default:ae(()=>[J(h,{"model-value":l.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":a[3]||(a[3]=A=>t("update:gap",A))},null,8,["model-value"])]),_:1}),J(v,{label:"Speed"},{default:ae(()=>[J(x,{"model-value":l.speed,min:G(Bu),max:G(Du),step:G(Ru),suffix:"x","onUpdate:modelValue":a[4]||(a[4]=A=>t("update:speed",A))},{suffix:ae(()=>[St(Qe(l.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),J(v,{label:"Zoom"},{default:ae(()=>[J(x,{"model-value":Math.ceil(l.zoom*100),min:G(wn)*100,max:G(xn)*100,step:G(Nu)*100,"onUpdate:modelValue":i},{suffix:ae(()=>[St(Qe(Math.ceil(l.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),Uu=Object.freeze(Object.defineProperty({__proto__:null,default:fs},Symbol.toStringTag,{value:"Module"})),Ku={},Yu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Xu=[Y("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function qu(e,t){return j(),X("svg",Yu,Xu)}const ds=xe(Ku,[["render",qu]]),Zu=Object.freeze(Object.defineProperty({__proto__:null,default:ds},Symbol.toStringTag,{value:"Module"})),Qu={},Ju={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Gu=[Y("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function ef(e,t){return j(),X("svg",Ju,Gu)}const ps=xe(Qu,[["render",ef]]),tf=Object.freeze(Object.defineProperty({__proto__:null,default:ps},Symbol.toStringTag,{value:"Module"})),nf={},of={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rf=[Y("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),Y("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),Y("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 sf(e,t){return j(),X("svg",of,rf)}const hs=xe(nf,[["render",sf]]),lf=Object.freeze(Object.defineProperty({__proto__:null,default:hs},Symbol.toStringTag,{value:"Module"})),af={},cf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},uf=[Y("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),Y("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),Y("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 ff(e,t){return j(),X("svg",cf,uf)}const gs=xe(af,[["render",ff]]),df=Object.freeze(Object.defineProperty({__proto__:null,default:gs},Symbol.toStringTag,{value:"Module"})),pf={},hf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},gf=[Y("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function mf(e,t){return j(),X("svg",hf,gf)}const ms=xe(pf,[["render",mf]]),vf=Object.freeze(Object.defineProperty({__proto__:null,default:ms},Symbol.toStringTag,{value:"Module"})),bf=["aria-hidden"],_f=["onClick"],yf=["onClick"],wf={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"},xf={class:"whitespace-nowrap"},rr=Ee({__name:"ButtonDropdown",props:{modelValue:{},label:{},title:{},items:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Q(null),r=Q(!1),i=Q(null),s=Q(!1),l=Q(!1),a=Q(!1);ro({onKeyDown:v});const c=or();function u(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(p(),gt(()=>setTimeout(()=>{var g,T;(T=(g=i.value)==null?void 0:g.children[n.modelValue])==null||T.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),k(o.value)):setTimeout(A,250)}function p(){const g=o.value;if(g){const T=g.getBoundingClientRect(),P=T.x+T.width/2;s.value=T.y>window.innerHeight/2,l.value=P<window.innerWidth/3,a.value=P>window.innerWidth/3*2}}function h(g){g!=n.modelValue&&t("update:modelValue",g),u()}function v(g){r.value&&g.key==="Escape"&&(u(),g.preventDefault())}let x=[];function k(g){const T=window.getComputedStyle(g).zIndex,P=g.style.zIndex;(!T||!(+T>0))&&((!g.parentElement||g.parentElement.childElementCount>1)&&(g.style.zIndex="1",x.push({el:g,zIndex:P})),g.parentElement&&k(g.parentElement))}function A(){x.forEach(({el:g,zIndex:T})=>{g.style.zIndex=T??""}),x=[]}let q=!1;function $(){q||(q=!0,c(!0,{desktopOnly:!0}))}function F(){q&&(q=!1,c(!1,{desktopOnly:!0}))}return(g,T)=>{const P=ms;return j(),X("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(j(),X("div",{key:0,class:"fixed-screen bg-transparent",onClick:u})):Me("",!0),g.items.length?(j(),ke(nn,{key:1,name:"slide-fade","enter-from-class":"scale-y-90 opacity-0 pointer-events-none","leave-to-class":"scale-y-90 opacity-0 pointer-events-none"},{default:ae(()=>[r.value?(j(),X("ul",{key:0,ref_key:"list",ref:i,"aria-hidden":!r.value,class:Oe(["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":s.value,"origin-top top-full translate-y-1.5":!s.value,"left-1/2 -ml-20 text-center":!l.value&&!a.value,"right-0 text-right":a.value}]),onWheelPassive:T[0]||(T[0]=nt(()=>{},["stop"]))},[(j(!0),X(Ie,null,pn(g.items,(B,S)=>mt((j(),X("li",{key:S,tabindex:"-1",class:Oe(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":S===g.modelValue}]),onClick:()=>h(S)},[Y("div",{class:Oe(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":S>0}])},[Pe(g.$slots,"item",{item:B},()=>[St(Qe(B),1)])],2)],10,_f)),[[G(on),30]])),128))],42,bf)):Me("",!0)]),_:3})):Me("",!0),mt((j(),X("button",to({type:"button",tabindex:"-1",class:["w-full h-10 max-h-full rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":g.disabled}]},g.title?{title:g.title}:{},{onClick:nt(u,["stop"]),onMouseenter:$,onMouseleave:F}),[Y("div",wf,[Y("span",xf,Qe(g.label),1),g.items.length?(j(),X("span",{key:0,class:Oe(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":s.value}]),"aria-hidden":"true"},[J(P)],2)):Me("",!0)])],16,yf)),[[G(on),30]])],512)}}}),kf=Object.freeze(Object.defineProperty({__proto__:null,default:rr},Symbol.toStringTag,{value:"Module"})),vs=Ee({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=se(()=>n.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),r=se(()=>{const a=n.modelValue,c=n.pages.findIndex(u=>u.some(({index:p})=>p===a));return c===-1?n.pages.length-1:c}),i=se(()=>n.pages.length?`${o.value[r.value]}/${n.totalImgs}`:"--");function s(a){const c=n.pages[a][0].index;l(c)}function l(a){t("update:modelValue",a)}return(a,c)=>{const u=rr;return j(),ke(u,{"model-value":r.value,label:i.value,title:"Current page",items:o.value,disabled:a.disabled,"onUpdate:modelValue":s},null,8,["model-value","label","items","disabled"])}}}),Cf=Object.freeze(Object.defineProperty({__proto__:null,default:vs},Symbol.toStringTag,{value:"Module"})),Sf={},If={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Tf=[Y("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function $f(e,t){return j(),X("svg",If,Tf)}const bs=xe(Sf,[["render",$f]]),Ef=Object.freeze(Object.defineProperty({__proto__:null,default:bs},Symbol.toStringTag,{value:"Module"})),Pf={},Of={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Mf=[Y("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Lf(e,t){return j(),X("svg",Of,Mf)}const _s=xe(Pf,[["render",Lf]]),zf=Object.freeze(Object.defineProperty({__proto__:null,default:_s},Symbol.toStringTag,{value:"Module"})),Af={},jf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Bf=[Y("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function Df(e,t){return j(),X("svg",jf,Bf)}const ys=xe(Af,[["render",Df]]),Rf=Object.freeze(Object.defineProperty({__proto__:null,default:ys},Symbol.toStringTag,{value:"Module"})),Nf={},Ff={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Vf=[Y("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function Hf(e,t){return j(),X("svg",Ff,Vf)}const ws=xe(Nf,[["render",Hf]]),Wf=Object.freeze(Object.defineProperty({__proto__:null,default:ws},Symbol.toStringTag,{value:"Module"}));var xs;const ir=typeof window<"u",Uf=e=>typeof e=="string",Et=()=>{};ir&&((xs=window==null?void 0:window.navigator)!=null&&xs.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function io(e){return typeof e=="function"?e():G(e)}function ks(e,t){function n(...o){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(i)})}return n}function Kf(e,t={}){let n,o,r=Et;const i=l=>{clearTimeout(l),r(),r=Et};return l=>{const a=io(e),c=io(t.maxWait);return n&&i(n),a<=0||c!==void 0&&c<=0?(o&&(i(o),o=null),Promise.resolve(l())):new Promise((u,p)=>{r=t.rejectOnCancel?p:u,c&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&i(o),o=null,u(l())},a)})}}function Yf(e,t=!0,n=!0,o=!1){let r=0,i,s=!0,l=Et,a;const c=()=>{i&&(clearTimeout(i),i=void 0,l(),l=Et)};return p=>{const h=io(e),v=Date.now()-r,x=()=>a=p();if(c(),h<=0)return r=Date.now(),x();if(v>h&&(n||!s))r=Date.now(),x();else if(t)return new Promise((k,A)=>{l=o?A:k,i=setTimeout(()=>{r=Date.now(),s=!0,k(x()),c()},h-v)});return!n&&!i&&(i=setTimeout(()=>s=!0,h)),s=!1,a}}function Xf(e){return e}function sr(e){return wr()?(fl(e),!0):!1}function Ke(e,t=200,n={}){return ks(Kf(t,n),e)}function Cs(e,t=200,n=!1,o=!0,r=!1){return ks(Yf(t,n,o,r),e)}function Ss(e,t=!0){Pi()?et(e):t?e():gt(e)}function Wt(e){var t;const n=io(e);return(t=n==null?void 0:n.$el)!=null?t:n}const kn=ir?window:void 0,qf=ir?window.document:void 0;function Pt(...e){let t,n,o,r;if(Uf(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=kn):[t,n,o,r]=e,!t)return Et;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,p,h)=>(u.addEventListener(p,h,r),()=>u.removeEventListener(p,h,r)),a=ve(()=>Wt(t),u=>{s(),u&&i.push(...n.flatMap(p=>o.map(h=>l(u,p,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return sr(c),c}function Is(e,t=!1){const n=Q(),o=()=>n.value=!!e();return o(),Ss(o,t),n}const Ts=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},$s="__vueuse_ssr_handlers__";Ts[$s]=Ts[$s]||{};function Es({document:e=qf}={}){if(!e)return Q("visible");const t=Q(e.visibilityState);return Pt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Ps=Object.getOwnPropertySymbols,Zf=Object.prototype.hasOwnProperty,Qf=Object.prototype.propertyIsEnumerable,Jf=(e,t)=>{var n={};for(var o in e)Zf.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Ps)for(var o of Ps(e))t.indexOf(o)<0&&Qf.call(e,o)&&(n[o]=e[o]);return n};function Gf(e,t,n={}){const o=n,{window:r=kn}=o,i=Jf(o,["window"]);let s;const l=Is(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},c=ve(()=>Wt(e),p=>{a(),l.value&&r&&p&&(s=new ResizeObserver(t),s.observe(p,i))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return sr(u),{isSupported:l,stop:u}}function lr(e,t={width:0,height:0},n={}){const{window:o=kn,box:r="content-box"}=n,i=se(()=>{var a,c;return(c=(a=Wt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=Q(t.width),l=Q(t.height);return Gf(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&i.value){const u=Wt(e);if(u){const p=o.getComputedStyle(u);s.value=parseFloat(p.width),l.value=parseFloat(p.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((p,{inlineSize:h})=>p+h,0),l.value=u.reduce((p,{blockSize:h})=>p+h,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),ve(()=>Wt(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function ar(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=kn}=n,l=Is(()=>s&&"IntersectionObserver"in s);let a=Et;const c=l.value?ve(()=>({el:Wt(e),root:Wt(o)}),({el:p,root:h})=>{if(a(),!p)return;const v=new IntersectionObserver(t,{root:h,rootMargin:r,threshold:i});v.observe(p),a=()=>{v.disconnect(),a=Et}},{immediate:!0,flush:"post"}):Et,u=()=>{a(),c()};return sr(u),{isSupported:l,stop:u}}var Os;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Os||(Os={}));var ed=Object.defineProperty,Ms=Object.getOwnPropertySymbols,td=Object.prototype.hasOwnProperty,nd=Object.prototype.propertyIsEnumerable,Ls=(e,t,n)=>t in e?ed(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,od=(e,t)=>{for(var n in t||(t={}))td.call(t,n)&&Ls(e,n,t[n]);if(Ms)for(var n of Ms(t))nd.call(t,n)&&Ls(e,n,t[n]);return e};od({linear:Xf},{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 rd(e={}){const{window:t=kn,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,s=Q(n),l=Q(o),a=()=>{t&&(i?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),Ss(a),Pt("resize",a,{passive:!0}),r&&Pt("orientationchange",a,{passive:!0}),{width:s,height:l}}const zs=xe(Ee({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=Q(null),o=Q(0),r=Q([]),i=se(()=>r.value[o.value]),s=Cs(l,500);et(()=>{const u=lr(n),p=Ke(()=>a({width:u.width.value,height:u.height.value}),50);p(),ve(u.width,p),ve(u.height,p)});function l(){o.value>=r.value.length-1?t("hide"):o.value++}function a(u){const p=c();r.value=p.map(({rect:h,text:v})=>{const x=h.top<u.height-h.bottom,k=h.left<u.width-h.right;return{text:v,style:{left:`${h.left}px`,top:`${h.top}px`,width:`${h.width}px`,height:`${h.height}px`},textStyle:{left:k?`${h.left-12}px`:void 0,right:k?void 0:`${u.width-h.left}px`,top:x?`${h.bottom+12}px`:`${h.top+20}px`,textAlign:x?void 0:"right",transform:x?void 0:"translateY(-50%)"}}}),o.value>=r.value.length&&(o.value=r.value.length-1)}function c(){var h;const u=(h=n.value)==null?void 0:h.parentElement;if(!u)return[];const p=[];return u.querySelectorAll("[data-tour]").forEach(v=>{var A;const x=(A=v.getAttribute("data-tour"))==null?void 0:A.trim();if(!(x!=null&&x.length))return;const k=v.getBoundingClientRect();p.push({rect:k,text:x})}),p}return(u,p)=>{var h,v;return j(),X(Ie,null,[Y("div",{class:Oe(["fixed-screen bg-black bg-opacity-50 duration-500",{"opacity-0":!i.value,"opacity-100":!!i.value}])},null,2),Y("div",{ref_key:"root",ref:n,class:"tour",onClick:p[0]||(p[0]=nt((...x)=>G(s)&&G(s)(...x),["stop"]))},[i.value?(j(),X("div",{key:o.value,class:"tour__target",style:Be(i.value.style)},null,4)):Me("",!0),(j(),X("div",{key:o.value,class:"tour__text",style:Be((h=i.value)==null?void 0:h.textStyle)},Qe(((v=i.value)==null?void 0:v.text)??""),5))],512)],64)}}}),[["styles",[`.tour{height:100vh;left:0;overflow:hidden;position:fixed;top:0;width:100vw;z-index:20}.tour__target{--tw-border-opacity:1;animation:tour-target-anim .5s forwards;border-color:rgb(120 113 108/var(--tw-border-opacity));border-radius:9999px;border-width:2px;box-shadow:0 0 0 99999px #000000e6}.tour__target,.tour__text{position:absolute}.tour__text{animation:tour-text-anim 1s forwards,tour-text-bounce .75s ease-in-out infinite alternate;max-width:320px;padding-left:12px;padding-right:12px;transition-duration:1s}@keyframes tour-target-anim{0%{--tw-border-opacity:0;opacity:0;transform:scale(3)}to{--tw-border-opacity:1;opacity:.9;transform:scale(1)}}@keyframes tour-text-anim{0%{opacity:0}to{opacity:1}}@keyframes tour-text-bounce{0%{margin-top:0}to{margin-top:10px}}
4
- `]]]),id=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),sd=Y("div",{class:"fixed-screen bg-black bg-opacity-90"},null,-1),As=Ee({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=Q(null),r=Q([]);et(async()=>{const a=lr(o),c=Ke(()=>{i({width:a.width.value,height:a.height.value})},50);c(),ve(a.width,c),ve(a.height,c)});function i(a){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=s(u,a))}function s(a,c){const u=[],p=[];let h=0,v=0;const x=50,k=25;a.forEach(g=>{var L;const T=(L=g.getAttribute("title"))==null?void 0:L.trim(),P=g.getBoundingClientRect();if(!T||!P.height||!P.width)return;const B=Math.ceil((P.top-10)/x),S=Math.ceil((P.left-10)/x);p.push({isTour:!1,title:T,rect:P,fromX:S,toX:Math.max(S+1,Math.ceil((P.right+10)/x)),fromY:B,toY:Math.max(B+1,Math.ceil((P.bottom+10)/x))})}),p.forEach(g=>{for(let T=g.fromY;T<g.toY;T++){u[T]??(u[T]=[]);for(let P=g.fromX;P<g.toX;P++)u[T][P]=g;g.toY>h+1&&(h=g.toY-1),g.toX>v+1&&(v=g.toX-1)}});let A=v/2;p.forEach(g=>{g.isAlignRight=g.fromX>A});const q=(g,T)=>{u[T]??(u[T]=[]);const P=T>=g.toY;if(g.isTour)for(let B=g.fromX;B<g.toX;B++)delete u[g.fromY][B],g.fromY=T,g.toY=T+(P?1:-1),u[T][B]=g;else{const B=g.isAlignRight?g.fromX-3:g.fromX,S=B+3;g.helpItem={fromX:B,toX:S,fromY:T,toY:T+1,isTour:!0,isAlignRight:g.isAlignRight};for(let L=B;L<S;L++)u[T][L]=g.helpItem}},$=(g,T)=>{if(T>h||T<0)return!1;const P=T>=g.toY,B=u[T];if(!B)return q(g,T),!0;const S=B[g.fromX];if(S&&!S.isTour)return!1;if(S&&S.isTour)return $(S,P?T+1:T-1)?(q(g,T),!0):!1;if(!S){const L=g.isAlignRight?-1:1;return B[g.fromX+L]||B[g.fromX+L*2]?$(g,P?T+1:T-1):(q(g,T),!0)}return!1};p.forEach(g=>{if(!$(g,g.toY)){if(g.isAlignRight){const T=u[g.fromY]??[];if(!T.slice(g.fromX-3,g.fromX).filter(Boolean).length){const B=g.fromX-3,S=g.fromX;g.helpItem={isTour:!0,isAlignRight:!0,fromX:B,toX:S,fromY:g.fromY,toY:g.toY};for(let L=g.fromX-3;L<g.fromX;L++)T[L]=g.helpItem;return}}$(g,g.fromY-1)}});const F=[];return p.forEach(g=>{const{title:T,helpItem:P,rect:B,isAlignRight:S,fromX:L,fromY:te,toY:ue}=g;if(!T||!P||!B)return;const y=P.fromY>=ue,b=P.toY<=te;F.push({title:l(T),style:{top:y?`${B.bottom+(P.fromY-ue)*x+k}px`:b?void 0:`${B.top+8}px`,bottom:b?`${c.height-B.top+(P.toY-te)*x+k}px`:void 0,left:S?void 0:`${B.left}px`,right:S?y?`${c.width-B.right}px`:`${c.width-B.right+B.width+k}px`:void 0},arrowStyle:{width:b||y?"2px":`${Math.abs(P.toX-L)*x+k-5}px`,height:b||y?`${(y?P.fromY-ue:te-P.toY)*x+k}px`:"2px",top:y?`${B.bottom}px`:b?void 0:`${B.top+20}px`,bottom:b?`${c.height-B.top}px`:void 0,left:S?void 0:`${B.left+B.width/2}px`,right:S?y?`${c.width-B.right+B.width/2}px`:`${c.width-B.right+B.width}px`:void 0}})}),F}function l(a){return n.touchDevice?a.split("(")[0].trim():a}return(a,c)=>(j(),X(Ie,null,[sd,Y("div",{ref_key:"root",ref:o,class:"fixed-screen z-20 overscroll-contain select-none",onClick:c[0]||(c[0]=nt(u=>t("hide"),["stop"]))},[(j(!0),X(Ie,null,pn(r.value,u=>(j(),X(Ie,{key:u.title},[Y("div",{class:"absolute",style:Be(u.style)},Qe(u.title),5),Y("div",{class:"absolute bg-stone-300 rounded-lg",style:Be(u.arrowStyle)},null,4)],64))),128))],512)],64))}}),ld=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"})),js=xe(Ee({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=Q(0);return ve(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const i=tr,s=nr;return n.value?(j(),X("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?(j(),ke(i,{key:0})):(j(),ke(s,{key:1}))])):Me("",!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)}}
5
- `]]]),ad=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),cd={},ud={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},fd=[Y("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function dd(e,t){return j(),X("svg",ud,fd)}const Bs=xe(cd,[["render",dd]]),pd=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"})),Ds=Ee({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=Q(typeof n!="string"||+n!==t.direction),r=Ke(()=>o.value=!1,1250);ve(()=>t.direction,()=>{i(),o.value=!0,r()}),et(()=>{i(),r();let s;const l=Es();ve(l,a=>{a!=="visible"?s=Date.now():Date.now()-s>3e4&&(o.value=!0,r())})});function i(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,l)=>{const a=Bs;return j(),ke(nn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ae(()=>[o.value?(j(),X("div",{key:0,class:Oe(["fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none w-28 h-24 p-4 bg-black bg-opacity-40 rounded-2xl duration-500",{"rotate-90":s.direction===G(ft).vertical,"rotate-180":s.direction===G(ft).rtl}])},[J(a)],2)):Me("",!0)]),_:1})}}}),hd=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),so=[];function gd(e){so.push(e),at(()=>{const t=so.indexOf(e);t!==-1&&so.splice(t,1)})}function md(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,i=t*o;so.forEach(s=>s(r,i))}const vd=["onClick"],Rs=Ee({__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=Q(null),r=Q(Math.min(xn,Math.max(wn,n.modelValue))),i=Q(!1),s=Q(!1),l=Q(!1);ve(()=>n.modelValue,b=>y(b)),et(()=>{n.touchDevice?(Pt(window,"touchstart",k),gd(S)):(Pt(o,"mousedown",p),Pt(window,"wheel",F))}),ro({onKeyDown:b=>{var K;if(!n.busy&&((K=o.value)==null||K.focus(),!(b.key==="Meta"||b.key==="Control")&&(b.ctrlKey||b.metaKey)))switch(b.key){case"0":y(1);break;case"-":y(r.value-.2),b.preventDefault();break;case"=":case"+":y(r.value+.2),b.preventDefault();break}}});function a(b){s.value!==b&&(s.value=b,b?n.playController.pause():(t("dragEnd"),n.playController.resume()))}let c={x:0,y:0},u={x:0,y:0};function p(b){b.button===0&&(c={x:b.clientX,y:b.clientY},u={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",h),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",h),setTimeout(()=>a(!1))},{once:!0}),b.preventDefault(),b.stopPropagation())}function h(b){a(!0);const K=b.clientX-c.x,ne=b.clientY-c.y,H=o.value;H.scrollLeft=u.x-K,H.scrollTop=u.y-ne}let v=!1,x={distance:0,zoom:r.value,x:0,y:0};function k(b){n.busy||(v=b.touches.length===2,v&&(a(!0),b.stopPropagation(),b.preventDefault(),x={distance:g(b),zoom:r.value,x:(b.touches[0].clientX+b.touches[1].clientX)/2,y:(b.touches[0].clientY+b.touches[1].clientY)/2}),(v||n.playController.isPlaying&&n.longStrip)&&(window.addEventListener("touchmove",q),window.addEventListener("touchend",A,{once:!0})))}function A(){if(window.removeEventListener("touchmove",q),v){a(!1),v=!1;return}if(!s.value)return;const b=Ke(()=>{a(!1),o.value.removeEventListener("scroll",ne)},100),K=setTimeout(b,100);o.value.addEventListener("scroll",ne);function ne(){clearTimeout(K),b()}}function q(b){if(a(!0),v){b.stopPropagation(),b.preventDefault();const ne=g(b)/x.distance;y(Math.ceil(ne*x.zoom*100)/100,x)}}const $=Ke(()=>i.value=!1,100);function F(b){if(!n.busy){if(b.ctrlKey||b.metaKey){b.stopPropagation(),b.preventDefault();const K=Math.ceil((r.value+b.deltaY*-.01)*100)/100;y(K,{x:b.clientX,y:b.clientY});return}n.horizontal&&(i.value||(i.value=!0),$(),b.deltaY&&(o.value&&(o.value.scrollLeft+=b.deltaY*(n.rtl?-1:1)),b.stopPropagation(),b.preventDefault()))}}function g(b){return Math.hypot(b.touches[0].clientX-b.touches[1].clientX,b.touches[0].clientY-b.touches[1].clientY)}let T=0,P;function B(b){if(!s.value){if(!n.touchDevice){t("click",b);return}T++,P&&clearTimeout(P),T===2&&S(b.clientX,b.clientY),P=setTimeout(()=>{!s.value&&T===1&&t("click",b),P=void 0,T=0},300)}}function S(b,K){if(!T)return;T=0;const ne=r.value===1?2:1;y(ne,{x:b,y:K})}let L;const te=Ke(()=>{l.value=!1,L=void 0},150);function ue(){if(!l.value){const b=o.value;if(!b)return;const K=b.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;K&&(L={el:K,rect:K.getBoundingClientRect()},l.value=!0)}if(L)return te(),L}async function y(b,K){const ne=o.value,H=Math.min(xn,Math.max(wn,b));if(!ne||r.value===H)return;const ce=ue();if(!ce)return;const re=(K==null?void 0:K.x)??ne.clientWidth/2,ye=(K==null?void 0:K.y)??ne.clientHeight/2;r.value=H,t("update:modelValue",H),await gt();const{el:R,rect:W}=ce,z=R.offsetWidth/W.width,V=R.offsetHeight/W.height;ne.scrollLeft=R.offsetLeft-W.left*z+re*(z-1),ne.scrollTop=R.offsetTop-W.top*V+ye*(V-1)}return(b,K)=>(j(),X("div",{ref_key:"root",ref:o,tabindex:"0",class:Oe(["w-full h-full overflow-auto overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!b.longStrip&&(s.value||i.value||l.value),"cursor-grabbing":s.value,"overflow-hidden":l.value}]),style:Be({"font-size":`${r.value}px`}),onClick:nt(B,["stop"])},[Pe(b.$slots,"default")],14,vd))}}),bd=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"})),Ns=Ee({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=Q(null),o=Q(!1);return et(async()=>{await gt();let r=!1;ar(n,i=>{o.value=i.some(s=>s.isIntersecting),o.value&&!r&&t("visible")})}),(r,i)=>(j(),X("div",{ref_key:"root",ref:n},[Pe(r.$slots,"default",{visible:o.value})],512))}}),_d=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"}));function yd({pageIndex:e,isLongStrip:t}){let n=e.value,o=e.value+3;const r=Q(n),i=Q(o),s=Ke(l,50);ve(e,a=>{n>a&&(n=a)});function l(){r.value!==n&&(r.value=n),i.value!==o&&(i.value=o)}return{min:r,max:i,onPageVisible(a){o<a&&(o=a),s()},onScroll(){t.value?l():s()}}}const wd={key:0,class:"page--loading"},xd=["src"],kd=["src"],Cd=["data-index"],Fs=xe(Ee({__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=Q(null),r=se(()=>{var v;return(v=o.value)==null?void 0:v.$el}),i=Q(null),s=lr(r),l=se(()=>{const{width:v,height:x}=s,k=n.isLongStrip?n.isVertical?v.value:x.value:Math.min(v.value,x.value);return Math.min(4,Math.max(1,Math.ceil(k/400-1)))*n.gap}),a=yd({pageIndex:se(()=>n.pageIndex),isLongStrip:se(()=>n.isLongStrip)}),c=se(()=>{const{width:{value:v},height:{value:x}}=s;return n.pages.map(k=>{var S;const A=k.some(L=>{var te;return(te=L.img)==null?void 0:te.isLoading}),q=k.map(L=>L.index),$={isLoading:A,indexes:q};if(A||q[q.length-1]<a.min.value-1||q[0]>a.max.value+2)return $;const F=k.map(({img:L})=>L).filter(Boolean);if(!F.length||($.srcs=F.map(({src:L})=>L),F.every(L=>L.hasError)))return $;const T=(S=F.find(L=>!L.hasError))==null?void 0:S.size,P=F.reduce((L,te)=>{var ue;return L+(((ue=te.size)==null?void 0:ue.width)??T.width)},0),B=F.reduce((L,te)=>{var ue;return L+(((ue=te.size)==null?void 0:ue.height)??T.height)},0)/F.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&v/P<x/B?($.width=Math.min(v,P),$.height=B*$.width/P):$.height=Math.min(x,B),$})}),u=se(()=>{const v=n.isVertical?"width":"height";return c.value.map(x=>x[v]).filter(Boolean).sort((x,k)=>k-x)[0]});function p({indexes:v}){const x=v[v.length-1];x!==void 0&&a.onPageVisible(x)}function h(v){if(!n.isLongStrip){const x=n.isVertical?s.height.value:s.width.value,A=(n.isVertical?v.clientY:n.isRTL?x-v.clientX:v.clientX)/x;if(A<=.2){t("prev");return}else if(A>=.8&&n.pageIndex<n.totalImgs){t("next");return}}t("click")}return(v,x)=>{const k=er,A=Ns,q=Rs;return j(),ke(q,{ref_key:"root",ref:o,"model-value":v.zoom,"page-index":v.pageIndex,class:Oe(["reader-body",{"reader-body--long-strip":v.isLongStrip,"reader-body--pages":!v.isLongStrip,"reader-body--vertical":v.isVertical,"reader-body--rtl":v.isRTL,"reader-body--idle":v.idle}]),"play-controller":v.playController,horizontal:!v.isVertical,rtl:v.isRTL,"touch-device":v.touchDevice,busy:v.busy,"long-strip":v.isLongStrip,style:Be({"--gap":`${l.value}em`,"--space-top":(v.spaceTop||0)+"px","--screen-width-em":G(s).width.value+"em","--screen-height-em":G(s).height.value+"em",...v.isLongStrip?{"--max-size-em":u.value+"em"}:{}}),"onUpdate:modelValue":x[0]||(x[0]=$=>t("update:zoom",$)),onDragEnd:x[1]||(x[1]=()=>t("dragEnd")),onClick:h,onScroll:G(a).onScroll},{default:ae(()=>[(j(!0),X(Ie,null,pn(c.value,$=>(j(),ke(A,to({key:v.direction+"_"+$.indexes[0],"data-index":$.indexes[0]},$.indexes.length>1?{"data-index2":$.indexes[1]}:{},{onVisible:()=>p($)}),{default:ae(({visible:F})=>{var g;return[!((g=$.srcs)!=null&&g.length)||$.isLoading?(j(),X("div",wd,[mt(J(k,null,null,512),[[Ji,F]])])):$.srcs.length==1?(j(),X("img",{key:1,src:$.srcs[0],style:Be({height:$.height!==void 0?$.height+"em":""})},null,12,xd)):(j(),X("div",{key:2,class:Oe(["page--double",{"flex-row-reverse":v.isRTL}]),style:Be({width:$.width!==void 0?$.width+"em":"",height:$.height!==void 0?$.height+"em":""})},[(j(!0),X(Ie,null,pn($.srcs,T=>(j(),X("div",{key:T},[Y("img",{src:T},null,8,kd)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),Y("div",{ref_key:"autoNextEl",ref:i,class:"last","data-index":v.totalImgs},[Pe(v.$slots,"end")],8,Cd)]),_:3},8,["model-value","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style","onScroll"])}}}),[["styles",[`.reader-body{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width:1024px){.reader-body{transform:none}}.reader-body--rtl{flex-direction:row-reverse}.reader-body.reader-body--vertical>div{padding:calc(var(--gap)/2) 0}.reader-body:not(.reader-body--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.reader-body:not(.reader-body--vertical)>div{padding:0 calc(var(--gap)/2)}.reader-body--long-strip.reader-body--vertical>div:first-child{margin-top:var(--space-top);padding-top:0}.reader-body--long-strip.reader-body--vertical>div:last-child{padding-bottom:0}.reader-body--long-strip.reader-body--vertical>div{width:var(--max-size-em)}.reader-body--long-strip.reader-body--vertical .page--loading{height:75vh;max-width:100%;width:100vw}.reader-body--long-strip.reader-body--vertical .last{height:100vh}.reader-body--long-strip:not(.reader-body--vertical)>div{align-items:center;display:flex;height:var(--max-size-em)}.reader-body--long-strip:not(.reader-body--vertical) .page--loading{height:100vh;max-height:100%;max-width:100vw;width:680px}.reader-body--long-strip:not(.reader-body--vertical) .last{width:100vw}.reader-body--long-strip>div>img{flex-shrink:0;margin:auto}.reader-body--pages:after,.reader-body--pages:before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.reader-body--pages.reader-body--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
- `]]]),Sd=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),Id={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},Td={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},$d={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},Vs=xe(Ee({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=Q(null),o=Q(null),r=Q(!1),i=Q(!1),s=Q(3);return et(()=>{let l;ar(o,a=>{i.value=a.some(c=>c.isIntersecting),s.value=5,l&&(clearInterval(l),l=void 0),i.value&&(l=setInterval(()=>{s.value-=1,s.value<=0&&(clearInterval(l),l=void 0,t("next"))},1e3))}),ar(n,a=>{r.value=a.some(c=>c.isIntersecting)}),at(()=>l&&clearInterval(l))}),(l,a)=>(j(),X("div",{ref_key:"root",ref:n,class:"h-full w-full flex justify-center items-center"},[mt(Y("div",Id,[l.hasNext?(j(),X("div",Td,[i.value?(j(),X("div",$d)):Me("",!0),mt((j(),X("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:a[0]||(a[0]=nt(()=>t("next"),["stop"]))},[St(" Next in "+Qe(s.value),1)])),[[G(on)]])])):Me("",!0),mt((j(),X("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:a[1]||(a[1]=nt(()=>t("hide"),["stop"]))},[St(" Hide ")])),[[G(on)]])],512),[[Ji,r.value||!l.hasNext]])],512))}}),[["styles",[`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
7
- `]]]),Ed=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"}));async function Cn(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(r=>{setTimeout(async()=>{const i=await Cn(e-1,t,n);r(i)},t)})}function rn(e=0){return new Promise(t=>setTimeout(t,e))}const Hs=3;function Pd(e){var H,ce,re,ye;const t=((ce=(H=e.raw.value)==null?void 0:H.imgs)==null?void 0:ce.filter(Boolean))??[];let n=!!t.length,o=t.map(R=>({src:R}));const r=an({}),i=[],s=Q((re=e.raw.value)==null?void 0:re.isWebtoon),l=Q((ye=e.raw.value)==null?void 0:ye.isWebtoon),a=Date.now(),c=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android");let u=!0,p=!1,h=!1,v=0,x=0,k,A=e.isAutoShow!==!1?e.page.value:n?zd(t):void 0;const q=Ke(b,100);let $=!1;const F=Ke(B,50),g=()=>{$?F():($=!0,B())};n?g():ue(),ve(()=>{var R;return(R=e.raw.value)==null?void 0:R.imgs},R=>{R!=null&&R.length&&R.length!==o.length&&(n=!0,P(R.map(W=>({src:W}))))}),at(()=>{u=!1,i.forEach(R=>URL.revokeObjectURL(R))}),Yn(()=>{p&&ao({contentEl:k,images:o,page:e.page.value})});function T(){var oe,_e,pe,de;if(p||s.value===void 0||A===void 0)return;const R=Math.max(0,Math.min(A,o.length)),W=o.length-1,z=Math.min(Math.floor(R),W);if(z>=1){const Ae=(oe=o[z])==null?void 0:oe.src;if(!Ae){e.isAutoShow&&ao({contentEl:k,images:o,page:z});return}const Re=(_e=o[z-1])==null?void 0:_e.src;if(Re&&!((pe=r[Re])!=null&&pe.size)||!((de=r[Ae])!=null&&de.size))return}if(p)return;p=!0,e.onReady(R);let V=!0;ve(()=>Math.floor(e.page.value),async(Ae,Re)=>{ao({images:o,page:Ae,smooth:c,skipIfVisible:V}),V=!1,Re??(Re=-1),Ae!==Re&&(v=Math.max(0,v-Math.abs(Ae-Re))),g()},{immediate:!0})}function P(R){(R.length!==o.length||R.some((z,V)=>{const oe=o[V];return(oe==null?void 0:oe.el)!==(z==null?void 0:z.el)||(oe==null?void 0:oe.src)!==(z==null?void 0:z.src)}))&&(o=R,e.isAutoShow===!1&&A===void 0&&(A=Us(R)),g())}async function B(){if(!u)return;const R=async z=>{v++,S(o[z],z).then(()=>{v--,F()}),await rn()},W=Math.max(0,Math.min(o.length-1,Math.floor(e.page.value-1)));for(let z=W;z<o.length;z++){if(v>=Hs)return;await R(z)}for(let z=W-1;z>=0;z--){if(v>=Hs)return;await R(z)}}async function S(R,W){const z=R.el;let V=R.src;if(!z&&!V||V&&r[V])return;const oe=z instanceof HTMLImageElement,_e=z instanceof HTMLCanvasElement;if(z){if(z._tkLoadId_===a)return;if(z._tkLoadId_=a,oe){const de=()=>L(z);z.addEventListener("load",de),at(()=>z.removeEventListener("load",de))}}if(oe&&!V){if(V=lo(z),!V)return;R.src=V}else _e&&!V&&(V=await Ws(z),V&&i.push(V));if(!V)return;const pe=oe&&V.startsWith("blob");pe&&!z.complete||(r[V]={src:V,isLoading:!0,hasError:!1},pe&&c&&await rn(300),te({imgEl:oe?z:void 0,src:V,index:W}))}async function L(R){if(!u)return;const W=o.findIndex(V=>V.el===R);if(W===-1)return;const z=lo(R);z&&(!z.startsWith("blob")&&o[W].src===z||(o[W].src=z,r[z]??(r[z]={src:z,isLoading:!0,hasError:!1}),te({imgEl:R,src:z,index:W})))}async function te({imgEl:R,src:W,index:z}){const V=R?await Md(R,W):W;if(!V)return;R&&V!==W&&i.push(V);const oe=await Ld(V,R),_e=!!oe&&(oe.width<200||oe.height<200);if(r[W]={src:V,size:oe,isLoading:!1,hasError:!oe,invalid:_e},oe&&!s.value&&z>Math.min(1,o.length-2)&&z<Math.max(o.length-2,2)){const pe=oe.height/oe.width,de=pe>2||pe<.5,Ae=pe>1.6||pe<.6;s.value!==de&&(s.value=de),l.value!==Ae&&(l.value=Ae)}T()}function ue(){let R=!1;const W=new MutationObserver(()=>{k&&q(k)});Yn(async()=>{W.disconnect()}),y(z=>{k!==z&&(k=z,W.disconnect(),W.observe(k,{childList:!0,subtree:!0}),R?q(k):(R=!0,b(k)))})}async function y(R){var pe;const W=(pe=e.spec)==null?void 0:pe.content;if(!W){R(document.body);return}const z=await Od(e.spec);let V=W?await Cn(z?100:1,10,()=>document.querySelector(W)):void 0;if(!V)return;R(V);let oe=0;const _e=async()=>{if(u&&!(V!=null&&V.isConnected)&&!n){if(oe=0,V=await Cn(50,20,()=>{const de=document.querySelector(W);return de!=null&&de.isConnected&&de!==V?de:void 0}),!V)return;R(V)}!u||n||++oe>=10||setTimeout(_e,200)};setTimeout(_e,200)}async function b(R){var oe;if(!u||!R.isConnected||n)return;const W=Date.now();x=W;const z=(oe=e.spec)==null?void 0:oe.imgDivs,V=z?await K(R,z):ne(R);if(!(x!==W||!R.isConnected||!u||n)){if(!e.raw.value&&!V.length){e.onError("no_img");return}P(V)}}async function K(R,W){const z=Array.from(R.querySelectorAll(W)),V=new Map,oe=z.map(_e=>{const pe=_e.querySelectorAll("img,canvas");for(const de of pe)if(cr(de,V)){if(de instanceof HTMLCanvasElement){if(Ks(de))return{el:de,parentEl:_e}}else if(de instanceof HTMLImageElement&&Ys(de)){const Ae=lo(de);return{el:de,src:Ae,parentEl:_e}}}return{parentEl:_e}});return!h&&e.isAutoShow!==!1&&e.page.value&&(h=!0,ao({contentEl:R,images:oe,page:e.page.value,skipIfVisible:!0}),await rn(1)),oe}function ne(R){const W=[],z={},V=new Map;return Array.from(R.querySelectorAll("img,canvas")).forEach(_e=>{if(cr(_e,V)){if(_e instanceof HTMLCanvasElement)Ks(_e)&&W.push({el:_e});else if(_e instanceof HTMLImageElement&&Ys(_e)){const pe=lo(_e);if(pe){const de=z[pe];if(de!==void 0&&de!==-1){W.splice(de,1);return}z[pe]=W.length}W.push({el:_e,src:pe})}}}),W}return{asyncImgs:se(()=>{Object.values(r);const R=[];return o.forEach(({src:W,parentEl:z})=>{const V=W?r[W]:void 0;(W&&!(V!=null&&V.invalid)||z)&&R.push(V)}),R}),isWebtoon:se(()=>s.value??!1),maybeWebtoon:se(()=>l.value??!1)}}async function Od(e){const{lstrip:t,lstripBtn:n}=e||{};if(!n||!!t&&!!document.querySelector(t))return!1;const r=await Cn(50,30,()=>document.querySelector(n));if(!r)return!1;if(r.tagName.toLowerCase()==="a"&&!r._tkDirty_){r._tkDirty_=!0;const i=s=>s.preventDefault();r.addEventListener("click",i),at(()=>{delete r._tkDirty_,r.removeEventListener("click",i)})}return r.click(),await rn(),!0}function Ws(e){return new Promise(t=>{const n=o=>{if(!o)return t(void 0);const r=URL.createObjectURL(o);t(r)};e.toBlob(n,"image/jpeg",1)})}async function Md(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),r=o.getContext("2d"),i=e.naturalWidth,s=e.naturalHeight;return o.width=i,o.height=s,r==null||r.drawImage(e,0,0,i,s),await Ws(o)}async function Ld(e,t){return(t==null?void 0:t.src)===e&&t.naturalWidth&&t.naturalHeight?{width:t.naturalWidth,height:t.naturalHeight}:await new Promise(n=>{const o=new Image,r=setInterval(()=>{const{naturalWidth:i,naturalHeight:s}=o;s&&i&&(n({width:i,height:s}),clearInterval(r))},20);o.onerror=()=>{n(void 0),clearInterval(r)},o.src=e})}function zd(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src)).map(o=>({el:o}));return Us(n)}function Us(e){var t,n;for(let o=0;o<e.length;o++){const r=((t=e[o])==null?void 0:t.el)??((n=e[o])==null?void 0:n.parentEl),i=r==null?void 0:r.getBoundingClientRect();if(!i||i.bottom<=0)continue;const s=i.top;return o+(s>=0?0:-s/i.height)}return 0}function Ks(e){return e.isConnected&&e.width>=200&&e.height>=200}function Ys(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||t.width>=200&&t.height>=200}function lo(e){const t=e.getAttributeNames(),n=t.indexOf("src");n!==-1&&(t.splice(n,1),t.push("src"));for(const o of t){if(o!=="data-url"&&o!=="data-original"&&!o.includes("src"))continue;const r=e.getAttribute(o);if(r)return o==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:r.replace(/(\n|\t)/g," ").trim()}}function cr(e,t){if(!e||e===document.body)return!0;const n=t.get(e);if(n!==void 0)return n;const o=getComputedStyle(e);if(!(o.display!=="none"&&o.visibility!=="hidden"&&+(o.opacity??"1")>.1))return t.set(e,!1),!1;const i=cr(e.parentElement,t);return t.set(e,i),i}function ao({contentEl:e,images:t,page:n,smooth:o,skipIfVisible:r}){const i=Math.floor(n),s=t[Math.min(t.length-1,i)];if(!s)return;const l=s.el??s.parentEl??document.querySelector(`img[src^="${s.src}"]`);if(!l)return;const a=o?"smooth":"instant";if(n>=t.length){l==null||l.scrollIntoView({block:"end",behavior:a});return}const u=l.getBoundingClientRect();if(r&&u.top<=0&&u.top+u.height>0)return;l.scrollIntoView({block:"start",behavior:a});const p=n%1;if(p){const h=p*u.height,v=ur(e??document.documentElement);setTimeout(()=>v==null?void 0:v.scrollBy({top:h}))}}function ur(e){if(e)return e.scrollHeight>e.clientHeight?e===document.body?ur(document.documentElement)??e:e:ur(e.parentElement??void 0)}function Ad(e,t){return se(()=>t.value?Xs(e.value):e.value.map((n,o)=>[{img:n,index:o}]))}function Xs(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(i=>(i==null?void 0:i.size)&&i.size.width>i.size.height)?[n[0]]:n;return[r.map((i,s)=>({img:i,index:t+s})),...Xs(e.slice(r.length),t+r.length)]}function jd(e,t){const n=sessionStorage.getItem("tk:page:path");n!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),n&&sessionStorage.removeItem("tk:page"));const o=Q(t&&e>0?Math.max(0,e):+(sessionStorage.getItem("tk:page")??"0")||e);return se({get:()=>o.value,set:r=>{o.value=r,sessionStorage.setItem("tk:page",r+"")}})}function Bd(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const fr=40;function Dd({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:i,spaceTop:s,scrollEl:l,interferePlayer:a,onChangedPage:c,onInitialized:u}){let p=!1,h=!1,v;const x=Ke(P,300),k=Cs(()=>{P(),x()},300),A=Ke(F,50);async function q(){g(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function $(){var y;h=!0,u(),(y=l.value)==null||y.addEventListener("scroll",k),setTimeout(()=>{const{width:b,height:K}=rd();ve(b,()=>{r.value&&A()}),ve(K,()=>{r.value||A()}),ve(n,F),ve(t,F)},300)}async function F(){if(!h||p)return;p=!0,await gt();const y=e.value;if(B()===y){p=!1;return}g(y)}function g(y,{smooth:b,ensureLastImgVisibility:K=!1}={smooth:!1}){const ne=l.value;if(!ne)return;p=!0;const H=async()=>{await gt(),p=!1,h||$()},ce=Math.floor(y),re=ne.querySelector(`[data-index="${ce}"],[data-index2="${ce}"]`);if(!re){H();return}a(async()=>{await T(ne,!o.value&&b,async()=>{await ue(ne,re,{smooth:b,page:y,ensureLastImgVisibility:K})}),await H()})}async function T(y,b,K){b&&y.style.setProperty("scroll-snap-type","none"),await K(),b&&y.style.removeProperty("scroll-snap-type")}function P(){if(p)return;const y=B();y!==void 0&&y!==e.value&&c(y)}function B(){const y=S();return y?(+y.getAttribute("data-index")||0)+(o.value?L(y):0):void 0}function S(){var b;if(v??(v=l.value.getRootNode()),!v)return;const y=(b=v.elementsFromPoint)==null?void 0:b.call(v,r.value||!o.value?window.innerWidth/2:i.value?window.innerWidth-fr:fr,r.value&&o.value?s.value||fr:window.innerHeight/2);if(y)for(let K=0;K<y.length;K++){const ne=y[K];if(ne.hasAttribute("data-index"))return ne;if(ne===l.value)break}}function L(y){const b=y.getBoundingClientRect();return r.value?Math.abs(b.top-s.value)/b.height:i.value?Math.max(0,b.right-l.value.clientWidth)/b.width:Math.abs(b.left)/b.width}let te=!1;async function ue(y,b,K){if(te)return;const ne=b.getBoundingClientRect();if(!o.value){if(r.value){if(ne.top<=0&&ne.bottom>=y.clientHeight)return}else if(ne.left<=0&&ne.right>=y.clientWidth)return}te=!0;const H=r.value?y.scrollTop:y.scrollLeft,ce=K.page,re=o.value?ce%1:0,ye=await Cn(30,10,async()=>{await rn();let oe;if(!(b.offsetHeight<10))return o.value?r.value?oe=b.offsetTop+re*b.offsetHeight-s.value:i.value?oe=b.offsetLeft-y.clientWidth+b.offsetWidth-re*b.offsetWidth:oe=b.offsetLeft+re*b.offsetWidth:r.value?oe=b.offsetTop+(ne.top>0?0:ne.height-y.clientHeight):oe=b.offsetLeft+(ne.left>0?0:ne.width-y.clientWidth),ce>.5&&Math.abs(oe)<100?void 0:oe})??0,R=K.ensureLastImgVisibility?r.value?Math.min(ye,y.scrollHeight-y.clientHeight*2):i.value?Math.max(ye,-(y.scrollWidth-y.clientWidth*2)):Math.min(ye,y.scrollWidth-y.clientWidth*2):ye;if(!K.smooth){r.value?y.scrollTop=R:y.scrollLeft=R,te=!1;return}const W=R-H,z=30;let V=0;return new Promise(oe=>{(function _e(){const pe=Rd(V,H,W,z);r.value?y.scrollTop=pe:y.scrollLeft=pe,V++,V<=z?requestAnimationFrame(_e):(oe(),te=!1)})()})}return{init:q,goToPage:g}}function Rd(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function Nd({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:i,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=Q(typeof l=="string"?l==="true":e),c=se({get:()=>a.value,set:S=>{a.value=S,sessionStorage.setItem("tk:playing",S?"true":"false")}}),u=Q(!1);let p,h;const v=Ke(P,100),x=Ke(()=>{u.value=!0},t?2e3:1e3),k=()=>setTimeout(()=>{u.value=!1,x()},30);k(),t||Pt(window,"mousemove",k);const A=Es();et(()=>{ve(A,S=>{c.value&&(S==="visible"?P():h==null||h())}),ve(s,()=>q()),ve(i,S=>{S||F()})});async function q(S){c.value&&(h==null||h()),S&&(await gt(),await S()),c.value&&v()}function $(){c.value?F():g()}function F(){c.value&&(c.value=!1,h==null||h(),k())}function g(){!c.value&&i.value&&(c.value=!0,P(),k())}function T(){h==null||h()}function P(){const S=n.value;if(!c.value||!S)return;const L=o.value?S.scrollHeight-S.clientHeight:S.scrollWidth-S.clientWidth,te=B();if(L<=te){F();return}h=()=>{p=Date.now(),h=void 0};const ue=Date.now();p=ue;const y=.05*s.value,b=o.value?"scrollTop":"scrollLeft";let K=Date.now(),ne=0;const H=()=>{if(p!==ue)return;const ce=Date.now(),re=ce-K;K=ce;const ye=y*re+ne;ye>=1?(ne=ye%1,S[b]+=(ye-ne)*(r.value?-1:1)):ne=ye,setTimeout(H,1)};H()}function B(){const S=n.value;return o.value?S.scrollTop:r.value?-S.scrollLeft:S.scrollLeft}return{isPlaying:c,isIdle:u,toggle:$,play:g,pause:T,resume:P,stop:F,interfere:q,awake:k}}function Fd(e){var v,x,k,A,q;let t=-1,n=(v=e.prev)==null?void 0:v.slug,o=(x=e.next)==null?void 0:x.slug;const{vol:r,inferVol:i,chap:s,title:l,slug:a,basePath:c}=e,u=r??i,p=l.chapters??[],h=(p==null?void 0:p.length)>1?p:[];if(h.length){if(t=h.findIndex($=>$.slug===e.slug),t===-1&&(t=h.findIndex($=>($.vol??$.inferVol)===u&&$.chap===s)),t===-1&&(t=h.findIndex($=>a.startsWith(`${$.slug}-`)&&a.length-$.slug.length>3)),t!==-1)n??(n=(k=h[t+1])==null?void 0:k.slug),o??(o=(A=h[t-1])==null?void 0:A.slug);else if(!n&&!o){const $=h.findIndex(F=>{const g=F.vol??F.inferVol;return u===void 0||g===void 0||u===g?F.chap<s:g<u});$!==-1?(n=h[$].slug,o=(q=h[$-1])==null?void 0:q.slug):o=h[h.length-1].slug}}return{activeIndex:t,activeLabel:qs({vol:r,chap:s}),chapters:h.map($=>({label:qs($),path:dr(c,$.slug)})),prevPath:dr(c,n),nextPath:dr(c,o)}}function dr(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function qs({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const Vd={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},Hd=Ee({...{inheritAttrs:!1},__name:"TrackkunReader",props:{immediate:{type:Boolean},raw:{},spec:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},readerStyle:{},direction:{},isGuest:{type:Boolean},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean}},emits:["error","ready","pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","finished"],setup(e,{emit:t}){const n=e;let o=!1,r=!1,i;const s=Q(!1),l=Q(!1),a=nu({touchDevice:n.touchDevice}),c=jd(n.page,n.isAutoShow),u=se(()=>n.spaceTop??0),{asyncImgs:p,isWebtoon:h,maybeWebtoon:v}=Pd({raw:se(()=>n.raw),spec:n.spec,page:c,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:u,async onReady(m){V(m),s.value=!0},onError:()=>{t("error"),C()}}),{direction:x,style:k,isRTL:A,isDouble:q,isVertical:$,isLongStrip:F,gap:g,speed:T,zoom:P}=Hu({titleName:se(()=>{var m;return(m=n.raw)==null?void 0:m.title.name}),isWebtoon:h,maybeWebtoon:v,defaultStyle:n.readerStyle,defaultDirection:n.direction}),B=Ad(p,q),S=se(()=>c.value>=p.value.length),L=se(()=>n.raw?Fd(n.raw):void 0),te=se(()=>{var m,w;return A.value?(m=L.value)==null?void 0:m.nextPath:(w=L.value)==null?void 0:w.prevPath}),ue=se(()=>{var m,w;return A.value?(m=L.value)==null?void 0:m.prevPath:(w=L.value)==null?void 0:w.nextPath}),y=Q(null),b=Q(null),K=Q(!1),ne=Q(!1),H=Nd({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:se(()=>{var m;return(m=y.value)==null?void 0:m.$el}),speed:T,isRTL:A,isVertical:$,isLongStrip:F}),ce=se(()=>!n.touchDevice&&H.isIdle.value&&!a.value),re=se({get(){return P.value},set(m){H.interfere(()=>{P.value=m})}}),ye=Dd({page:c,style:k,direction:x,isLongStrip:F,isVertical:$,isRTL:A,spaceTop:u,scrollEl:se(()=>{var m;return(m=y.value)==null?void 0:m.$el}),interferePlayer:m=>H.interfere(m),onChangedPage:V,onInitialized(){t("ready"),l.value=!0,n.touchDevice&&(i=oe())}}),R=se(()=>Math.floor(c.value)),W=()=>H.interfere(()=>rn(100));du().addListener({onKeyDown:m=>{if(n.tourEnabled)return;const w=F.value&&$.value,U=F.value&&!$.value,ie=!F.value&&$.value,he=!F.value&&!$.value;switch(m.key){case" ":m.preventDefault(),F.value?(Z(!1),H.toggle()):_();break;case"ArrowUp":case"PageUp":w?W():ie&&R.value!==0&&(m.preventDefault(),d());break;case"ArrowDown":case"PageDown":w?W():ie&&!S.value&&(m.preventDefault(),_());break;case"ArrowLeft":U?W():he?(m.preventDefault(),In()):$.value&&Ae();break;case"ArrowRight":U?W():he?(m.preventDefault(),f()):$.value&&de();break}},onKeyUp:m=>{switch(m.key){case"f":M();break;case"t":N();break;case"h":Z();break}}}),Pt("fullscreenchange",()=>{K.value=!!document.fullscreenElement}),ve(H.isPlaying,m=>{m||O(!1),t("playingChanged",m)}),ve(H.isIdle,m=>{H.isPlaying.value&&O(m)}),ve(a,m=>{!m&&H.isIdle.value?H.awake():m&&n.fullScreen&&O()});function V(m){if(c.value===m)return;const w=p.value.length;if(m<0||m>=w+1)return;const U=c.value;c.value=m,t("pageChanged",Math.floor(m*100)/100),m>=w?(O(!1),H.stop()):m<.01?O(!1):n.touchDevice&&!r&&(F.value?i!==void 0&&oe()-i>300&&O(!0):Math.abs(U-m)===1&&O(!0)),!o&&m>=w-2&&(o=!0,t("finished"))}function oe(){var w;const m=(w=y.value)==null?void 0:w.$el;return m?$.value?m.scrollTop:A.value?-m.scrollLeft:m.scrollLeft:0}function _e(){!n.touchDevice&&!F.value&&ye.goToPage(R.value,{smooth:!0})}function pe(){if(H.isPlaying.value){!n.fullScreen||!n.touchDevice?H.stop():H.awake();return}O()}function de(){var m;Ut((m=L.value)==null?void 0:m.nextPath)}function Ae(){var m;Ut((m=L.value)==null?void 0:m.prevPath)}function Re(m){var U,ie,he;const w=(he=(ie=(U=L.value)==null?void 0:U.chapters)==null?void 0:ie[m])==null?void 0:he.path;w&&Ut(w)}function Ut(m){m&&(location.href=m.includes("://")?m:location.origin+m)}function In(){A.value?_():d()}function f(){A.value?d():_()}function d(){var U;const m=B.value,w=S.value?m[m.length-1][0].index:(U=m[I()-1])==null?void 0:U[0].index;w!==void 0?ye.goToPage(w):Ae()}function _(){var m,w;if(S.value)de();else{const U=((w=(m=B.value[I()+1])==null?void 0:m[0])==null?void 0:w.index)??p.value.length;ye.goToPage(U)}}function I(){const m=R.value,w=B.value.findIndex(U=>U.some(({index:ie})=>ie===m));return w===-1?B.value.length-1:w}function C(){Bd(),H.stop(),t("dispose")}async function O(m){if(a.value&&!n.fullScreen)return;r=!0;const w=typeof m=="boolean"?m:!n.fullScreen;t("fullScreenChanged",w),w&&setTimeout(()=>{n.fullScreen&&a.value&&t("fullScreenChanged",!1)},100)}function N(){n.entryId?E():D()}function M(){var m,w;document.fullscreenElement?document.exitFullscreen():(w=(m=b.value)==null?void 0:m.$el)==null||w.requestFullscreen()}function D(){H.stop(),t("addEntry")}function E(){H.stop(),t("openEntry",n.entryId)}function Z(m){ne.value!==m&&(ne.value=!ne.value,ne.value&&H.isPlaying&&H.stop())}return(m,w)=>{const U=Vs,ie=Fs,he=Ds,be=js,Ce=As,Xe=zs,Ot=ws,dt=oo,Kt=ys,co=rr,Ne=_s,ot=bs,uo=vs,ep=gs,tp=hs,np=ps,op=ds,rp=fs,ip=nr,sp=tr,lp=os,ap=ts;return m.immediate||s.value?(j(),ke(ap,{key:0,ref_key:"root",ref:b,loading:!l.value,immediate:!!m.immediate,"full-screen":!!m.fullScreen,idle:ce.value,"space-top":u.value,rtl:G(A),onClick:w[10]||(w[10]=nt(()=>{},["stop"]))},ci({settings:ae(()=>{var bt;return[J(rp,{"reader-style":G(k),"onUpdate:readerStyle":w[3]||(w[3]=_t=>$e(k)?k.value=_t:null),direction:G(x),"onUpdate:direction":w[4]||(w[4]=_t=>$e(x)?x.value=_t:null),gap:G(g),"onUpdate:gap":w[5]||(w[5]=_t=>$e(g)?g.value=_t:null),speed:G(T),"onUpdate:speed":w[6]||(w[6]=_t=>$e(T)?T.value=_t:null),zoom:re.value,"onUpdate:zoom":w[7]||(w[7]=_t=>re.value=_t),name:(bt=m.raw)==null?void 0:bt.title.name,webtoon:G(h),disabled:!s.value,onHelp:Z},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":ae(()=>[J(nn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ae(()=>[J(lp,{zoom:re.value,onClick:w[9]||(w[9]=nt(()=>re.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:ae(()=>[Y("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Be({width:`${G(c)/(G(p).length-1)*100}%`})},null,4)]),default:ae(()=>[s.value?(j(),ke(ie,{key:0,ref_key:"body",ref:y,zoom:re.value,"onUpdate:zoom":w[0]||(w[0]=bt=>re.value=bt),"page-index":R.value,pages:G(B),"total-imgs":G(p).length,direction:G(x),gap:G(g),"is-long-strip":G(F),isRTL:G(A),"is-vertical":G($),"space-top":u.value,busy:G(a),idle:ce.value,"play-controller":G(H),"touch-device":m.touchDevice,onVnodeMounted:G(ye).init,onPrev:d,onNext:_,onClick:pe,onDragEnd:_e,onWheelPassive:w[1]||(w[1]=()=>G(H).interfere())},ci({_:2},[s.value&&G(p).length?{name:"end",fn:ae(()=>{var bt;return[J(U,{"has-next":!!((bt=L.value)!=null&&bt.nextPath),onNext:de,onHide:C},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","onVnodeMounted"])):Me("",!0),l.value&&!S.value&&!m.tourEnabled?(j(),ke(he,{key:1,direction:G(x)},null,8,["direction"])):Me("",!0),l.value&&!S.value?(j(),ke(be,{key:2,playing:!!G(H).isPlaying.value},null,8,["playing"])):Me("",!0),ne.value?(j(),ke(Ce,{key:3,"touch-device":m.touchDevice,onHide:Z},null,8,["touch-device"])):Me("",!0),m.tourEnabled?(j(),ke(Xe,{key:4,onHide:w[2]||(w[2]=()=>t("tourEnabledChanged",!1))})):Me("",!0)]),_:2},[m.raw?{name:"back",fn:ae(()=>[J(dt,{href:m.raw.title.url,title:"Back to manga"},{default:ae(()=>[J(Ot)]),_:1},8,["href"])]),key:"0"}:void 0,m.touchDevice?void 0:{name:"exit",fn:ae(()=>[J(dt,{title:"Hide reader","data-tour":"You have entered Trackkun reader mode, press here to return to the original page",onClick:C},{default:ae(()=>[J(Kt)]),_:1})]),key:"1"},L.value?{name:"chapter-nav",fn:ae(()=>[J(co,{modelValue:L.value.activeIndex,label:L.value.activeLabel,title:"Select chapter",items:L.value.chapters,"onUpdate:modelValue":Re},{item:ae(({item:bt})=>[St(Qe(bt.label),1)]),_:1},8,["modelValue","label","items"]),te.value||ue.value?(j(),X("div",Vd,[J(dt,{title:`${G(A)?"Next":"Prev"} chapter (←)`,href:te.value,disabled:!te.value,class:"!rounded-r-none"},{default:ae(()=>[J(Ne)]),_:1},8,["title","href","disabled"]),J(dt,{title:`${G(A)?"Prev":"Next"} chapter (→)`,href:ue.value,disabled:!ue.value,class:"!rounded-l-none"},{default:ae(()=>[J(ot)]),_:1},8,["title","href","disabled"])])):Me("",!0)]),key:"2"}:void 0,G(B).length?{name:"page-nav",fn:ae(()=>[J(uo,{"model-value":R.value,disabled:!l.value,pages:G(B),"total-imgs":G(p).length,"onUpdate:modelValue":G(ye).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,m.raw?{name:"entry",fn:ae(()=>[J(dt,{title:m.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:N},{default:ae(()=>[m.entryId?(j(),ke(ep,{key:0})):(j(),ke(tp,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,m.touchDevice?void 0:{name:"full-screen",fn:ae(()=>[J(dt,{title:`${K.value?"Exit":"Enter"} fullscreen (F)`,onClick:M},{default:ae(()=>[K.value?(j(),ke(np,{key:0})):(j(),ke(op,{key:1}))]),_:1},8,["title"])]),key:"5"},G(F)?{name:"play",fn:ae(()=>[J(dt,{"data-tour":"Press here to play like a video",title:`${G(H).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!l.value,onClick:w[8]||(w[8]=()=>G(H).toggle())},{default:ae(()=>[G(H).isPlaying.value?(j(),ke(ip,{key:0})):(j(),ke(sp,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0]),1032,["loading","immediate","full-screen","idle","space-top","rtl"])):Me("",!0)}}}),Zs=xe(Hd,[["styles",[`/*! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Helvetica,sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:300px){.container{max-width:300px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-full{top:100%}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.-ml-20{margin-left:-80px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.ml-1{margin-left:4px}.ml-auto{margin-left:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-0\\.5{height:2px}.h-1{height:4px}.h-1\\.5{height:6px}.h-10{height:40px}.h-12{height:48px}.h-16{height:64px}.h-20{height:80px}.h-24{height:96px}.h-4{height:16px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-9{height:36px}.h-\\[101\\%\\]{height:101%}.h-\\[27rem\\]{height:432px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-full{max-height:100%}.w-1{width:4px}.w-1\\/3{width:33.333333%}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-28{width:112px}.w-4{width:16px}.w-40{width:160px}.w-\\[4\\.5rem\\]{width:72px}.w-full{width:100%}.w-screen{width:100vw}.max-w-full{max-width:100%}.max-w-xs{max-width:320px}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-right{transform-origin:right}.origin-top{transform-origin:top}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1{--tw-translate-y:-4px}.-translate-y-1\\.5{--tw-translate-y:-6px}.-translate-y-1\\.5,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--tw-translate-y:4px}.translate-y-1\\.5{--tw-translate-y:6px}.translate-y-1\\.5,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y:100%}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-grabbing{cursor:grabbing}.cursor-none{cursor:none}.cursor-pointer{cursor:pointer}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.\\!snap-none{scroll-snap-type:none!important}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.gap-6{gap:24px}.gap-\\[1px\\]{gap:1px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-2xl{border-radius:16px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-sm{border-radius:2px}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.rounded-t-sm{border-top-left-radius:2px;border-top-right-radius:2px}.rounded-t-xl{border-top-left-radius:12px;border-top-right-radius:12px}.border{border-width:1px}.border-2{border-width:2px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-opacity-40{--tw-bg-opacity:.4}.bg-opacity-50{--tw-bg-opacity:.5}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-90{--tw-bg-opacity:.9}.bg-none{background-image:none}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:4px}.p-2{padding:8px}.p-4{padding:16px}.p-6{padding:24px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-6{padding-left:24px;padding-right:24px}.py-1{padding-bottom:4px;padding-top:4px}.py-2{padding-bottom:8px;padding-top:8px}.pb-12{padding-bottom:48px}.pb-6{padding-bottom:24px}.pl-1{padding-left:4px}.pt-3{padding-top:12px}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-90{opacity:.9}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.fixed-screen{height:100vh;left:0;position:fixed;top:0;width:100vw}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:4px;width:4px}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:300px){.\\32xs\\:gap-3{gap:12px}}@media (min-width:640px){.sm\\:w-\\[32rem\\]{width:512px}.sm\\:p-3{padding:12px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-5{padding-bottom:20px}.md\\:text-lg{font-size:18px;line-height:28px}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}.lg\\:pb-3{padding-bottom:12px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
8
- `]]]),Wd=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),Ud={},Kd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Yd=[Y("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 Xd(e,t){return j(),X("svg",Kd,Yd)}const qd=Object.freeze(Object.defineProperty({__proto__:null,default:xe(Ud,[["render",Xd]])},Symbol.toStringTag,{value:"Module"})),Zd=`gear-second{display:block!important;inset:0!important;opacity:0!important;pointer-events:none!important;position:fixed!important;z-index:-10!important}html.gear-second,html.gear-second *{pointer-events:none!important;scroll-behavior:auto!important;scrollbar-width:none!important}html.gear-second ::-webkit-scrollbar,html.gear-second::-webkit-scrollbar{display:none!important}html.gear-second body gear-second+*,html.gear-second body gear-second+*+*,html.gear-second body gear-second+*+*+*,html.gear-second body gear-second+*+*+*+*,html.gear-second>:not(body):not(head){--tw-translate-x:100%!important;--tw-translate-y:-100%!important;display:none!important;height:0!important;min-height:0!important;min-width:0!important;opacity:0!important;pointer-events:none!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important;visibility:hidden!important;width:0!important}html.gear-second body{touch-action:pan-x pan-y!important}html.gear-second body gear-second{--tw-bg-opacity:1!important;background-color:rgb(0 0 0/var(--tw-bg-opacity))!important;filter:none!important;opacity:1!important;pointer-events:auto!important;transform:none!important;visibility:visible!important;z-index:10000000000000000!important}html.gear-second body .m-content #progress-bar{display:none!important}
9
- `,Sn="gear-second",pr={immediate:void 0,raw:void 0,spec:void 0,page:0,spaceTop:void 0,fullScreen:void 0,touchDevice:void 0,entryId:void 0,autoPlay:void 0,readerStyle:void 0,direction:void 0,isAutoShow:void 0,isGuest:void 0,tourEnabled:void 0,onError:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPlayingChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onFinished:void 0},Ye={promise:void 0,data:an({...pr})};async function Qd(e){return Ye.promise?(Ye.data.raw=e.raw,await Ye.promise):(Ye.promise=new Promise(t=>{let n=!1,o=!1,r;const i=!!e.spaceTop||!!e.isAutoShow&&!!e.page,s=()=>{n||(n=!0,r&&document.body.removeChild(r),document.documentElement.classList.remove(Sn),Object.assign(Ye.data,pr),Ye.promise=void 0)};Object.assign(Ye.data,pr,e,{immediate:i,onReady(){i||(l(),setTimeout(()=>r.setAttribute("style","")))},onError(){var c,u;s(),o?((c=e.onDispose)==null||c.call(e),(u=e.onError)==null||u.call(e)):a()},onDispose:()=>{var c;s(),(c=e==null?void 0:e.onDispose)==null||c.call(e)},onFullScreenChanged:c=>{var u;Ye.data.fullScreen=c,(u=e.onFullScreenChanged)==null||u.call(e,c)},onPageChanged:c=>{var u;Ye.data.page=c,(u=e.onPageChanged)==null||u.call(e,c)},onTourEnabledChanged:c=>{Ye.data.tourEnabled=c}}),Jd().then(()=>{if(n){a();return}r=document.createElement(Sn),document.documentElement.classList.add(Sn),i?(document.body.appendChild(r),setTimeout(l)):(r.setAttribute("style","background-color: transparent !important"),document.body.appendChild(r))});function l(){o||(o=!0,t({triggerDoubleTap:(c,u)=>md(c,u),updateArgs(c){Object.assign(Ye.data,c)},dispose:s}))}function a(){o||t(void 0)}}),await Ye.promise)}async function Jd(){if(window.customElements.get(Sn))return;const e=document.createElement("style");e.appendChild(document.createTextNode(Zd)),document.head.appendChild(e);const t=fc({styles:[await Gd()],data:()=>({readerData:Ye.data}),render(){return ji(Zs,this.readerData)}});window.customElements.define(Sn,t)}async function Gd(){const e=Object.assign({"./TrackkunReader.vue":Wd,"./components/AutoNext.vue":Ed,"./components/BottomSheet.vue":mu,"./components/ButtonDropdown.vue":kf,"./components/ButtonIcon.vue":iu,"./components/ButtonReaderSettings.vue":Uu,"./components/ButtonResetZoom.vue":Uc,"./components/DirectionToast.vue":hd,"./components/HelpScreen.vue":ld,"./components/InputPercentage.vue":_u,"./components/InputSelect.vue":Cu,"./components/IntersectionWrapper.vue":_d,"./components/LoadingIndicator.vue":Ec,"./components/PageNav.vue":Cf,"./components/PauseToast.vue":ad,"./components/ReaderBody.vue":Sd,"./components/ReaderLayout.vue":jc,"./components/ReaderTour.vue":id,"./components/TableField.vue":xu,"./components/ZoomWrapper.vue":bd,"./components/icons/IconBack.vue":Wf,"./components/icons/IconBookmarkNew.vue":lf,"./components/icons/IconBookmarked.vue":df,"./components/icons/IconChevronLeft.vue":zf,"./components/icons/IconChevronRight.vue":Ef,"./components/icons/IconClose.vue":uu,"./components/icons/IconExclamationCircle.vue":qd,"./components/icons/IconFullscreen.vue":Zu,"./components/icons/IconFullscreenExit.vue":tf,"./components/icons/IconHelp.vue":Eu,"./components/icons/IconNext.vue":pd,"./components/icons/IconPause.vue":tu,"./components/icons/IconPlay.vue":Zc,"./components/icons/IconReaderExit.vue":Rf,"./components/icons/IconSettings.vue":zu,"./components/icons/IconTriangle.vue":vf,"./components/icons/IconZoom.vue":Fc}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return Qd});
1
+ (function(Fe,fe){typeof exports=="object"&&typeof module<"u"?module.exports=fe():typeof define=="function"&&define.amd?define(fe):(Fe=typeof globalThis<"u"?globalThis:Fe||self,Fe._gearSecond_=fe())})(this,function(){"use strict";var kp=Object.defineProperty;var Ip=(Fe,fe,Ze)=>fe in Fe?kp(Fe,fe,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Fe[fe]=Ze;var pl=(Fe,fe,Ze)=>(Ip(Fe,typeof fe!="symbol"?fe+"":fe,Ze),Ze);/**
2
+ * @vue/shared v3.4.15
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/function Fe(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const fe={},Ze=[],We=()=>{},hl=()=>!1,Pn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),bo=e=>e.startsWith("onUpdate:"),Ce=Object.assign,yo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},gl=Object.prototype.hasOwnProperty,me=(e,t)=>gl.call(e,t),te=Array.isArray,Gt=e=>On(e)==="[object Map]",Tr=e=>On(e)==="[object Set]",ae=e=>typeof e=="function",ke=e=>typeof e=="string",Jt=e=>typeof e=="symbol",we=e=>e!==null&&typeof e=="object",$r=e=>(we(e)||ae(e))&&ae(e.then)&&ae(e.catch),Er=Object.prototype.toString,On=e=>Er.call(e),ml=e=>On(e).slice(8,-1),Pr=e=>On(e)==="[object Object]",wo=e=>ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Mn=Fe(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ln=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},vl=/-(\w)/g,Ve=Ln(e=>e.replace(vl,(t,n)=>n?n.toUpperCase():"")),_l=/\B([A-Z])/g,Ke=Ln(e=>e.replace(_l,"-$1").toLowerCase()),An=Ln(e=>e.charAt(0).toUpperCase()+e.slice(1)),xo=Ln(e=>e?`on${An(e)}`:""),st=(e,t)=>!Object.is(e,t),zn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},jn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},So=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Co=e=>{const t=ke(e)?Number(e):NaN;return isNaN(t)?e:t};let Or;const ko=()=>Or||(Or=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Be(e){if(te(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=ke(o)?xl(o):Be(o);if(r)for(const i in r)t[i]=r[i]}return t}else if(ke(e)||we(e))return e}const bl=/;(?![^(]*\))/g,yl=/:([^]+)/,wl=/\/\*[^]*?\*\//g;function xl(e){const t={};return e.replace(wl,"").split(bl).forEach(n=>{if(n){const o=n.split(yl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Pe(e){let t="";if(ke(e))t=e;else if(te(e))for(let n=0;n<e.length;n++){const o=Pe(e[n]);o&&(t+=o+" ")}else if(we(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Sl=Fe("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Mr(e){return!!e||e===""}const Ge=e=>ke(e)?e:e==null?"":te(e)||we(e)&&(e.toString===Er||!ae(e.toString))?JSON.stringify(e,Lr,2):String(e),Lr=(e,t)=>t&&t.__v_isRef?Lr(e,t.value):Gt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],i)=>(n[Io(o,i)+" =>"]=r,n),{})}:Tr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Io(n))}:Jt(t)?Io(t):we(t)&&!te(t)&&!Pr(t)?String(t):t,Io=(e,t="")=>{var n;return Jt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
+ * @vue/reactivity v3.4.15
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/let Ue;class Cl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ue,!t&&Ue&&(this.index=(Ue.scopes||(Ue.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ue;try{return Ue=this,t()}finally{Ue=n}}}on(){Ue=this}off(){Ue=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function kl(e,t=Ue){t&&t.active&&t.effects.push(e)}function Ar(){return Ue}function Il(e){Ue&&Ue.cleanups.push(e)}let jt;class To{constructor(t,n,o,r){this.fn=t,this.trigger=n,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,kl(this,r)}get dirty(){if(this._dirtyLevel===1){wt();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Tl(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),xt()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=yt,n=jt;try{return yt=!0,jt=this,this._runnings++,zr(this),this.fn()}finally{jr(this),this._runnings--,jt=n,yt=t}}stop(){var t;this.active&&(zr(this),jr(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Tl(e){return e.value}function zr(e){e._trackId++,e._depsLength=0}function jr(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Br(e.deps[t],e);e.deps.length=e._depsLength}}function Br(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let yt=!0,$o=0;const Dr=[];function wt(){Dr.push(yt),yt=!1}function xt(){const e=Dr.pop();yt=e===void 0?!0:e}function Eo(){$o++}function Po(){for($o--;!$o&&Oo.length;)Oo.shift()()}function Rr(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&Br(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Oo=[];function Vr(e,t,n){Eo();for(const o of e.keys())if(o._dirtyLevel<t&&e.get(o)===o._trackId){const r=o._dirtyLevel;o._dirtyLevel=t,r===0&&(o._shouldSchedule=!0,o.trigger())}Nr(e),Po()}function Nr(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,Oo.push(t.scheduler))}const Hr=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Mo=new WeakMap,Bt=Symbol(""),Lo=Symbol("");function Ne(e,t,n){if(yt&&jt){let o=Mo.get(e);o||Mo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=Hr(()=>o.delete(n))),Rr(jt,r)}}function pt(e,t,n,o,r,i){const s=Mo.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&te(e)){const a=Number(o);s.forEach((c,u)=>{(u==="length"||!Jt(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":te(e)?wo(n)&&l.push(s.get("length")):(l.push(s.get(Bt)),Gt(e)&&l.push(s.get(Lo)));break;case"delete":te(e)||(l.push(s.get(Bt)),Gt(e)&&l.push(s.get(Lo)));break;case"set":Gt(e)&&l.push(s.get(Bt));break}Eo();for(const a of l)a&&Vr(a,2);Po()}const $l=Fe("__proto__,__v_isRef,__isVue"),Fr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Jt)),Wr=El();function El(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=he(this);for(let i=0,s=this.length;i<s;i++)Ne(o,"get",i+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(he)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){wt(),Eo();const o=he(this)[t].apply(this,n);return Po(),xt(),o}}),e}function Pl(e){const t=he(this);return Ne(t,"has",e),t.hasOwnProperty(e)}class Kr{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,o){const r=this._isReadonly,i=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return o===(r?i?Fl:Qr:i?Jr:Gr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=te(t);if(!r){if(s&&me(Wr,n))return Reflect.get(Wr,n,o);if(n==="hasOwnProperty")return Pl}const l=Reflect.get(t,n,o);return(Jt(n)?Fr.has(n):$l(n))||(r||Ne(t,"get",n),i)?l:Oe(l)?s&&wo(n)?l:l.value:we(l)?r?ei(l):an(l):l}}class Ur extends Kr{constructor(t=!1){super(!1,t)}set(t,n,o,r){let i=t[n];if(!this._shallow){const a=en(i);if(!Fn(o)&&!en(o)&&(i=he(i),o=he(o)),!te(t)&&Oe(i)&&!Oe(o))return a?!1:(i.value=o,!0)}const s=te(t)&&wo(n)?Number(n)<t.length:me(t,n),l=Reflect.set(t,n,o,r);return t===he(r)&&(s?st(o,i)&&pt(t,"set",n,o):pt(t,"add",n,o)),l}deleteProperty(t,n){const o=me(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&o&&pt(t,"delete",n,void 0),r}has(t,n){const o=Reflect.has(t,n);return(!Jt(n)||!Fr.has(n))&&Ne(t,"has",n),o}ownKeys(t){return Ne(t,"iterate",te(t)?"length":Bt),Reflect.ownKeys(t)}}class Ol extends Kr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ml=new Ur,Ll=new Ol,Al=new Ur(!0),Ao=e=>e,Bn=e=>Reflect.getPrototypeOf(e);function Dn(e,t,n=!1,o=!1){e=e.__v_raw;const r=he(e),i=he(t);n||(st(t,i)&&Ne(r,"get",t),Ne(r,"get",i));const{has:s}=Bn(r),l=o?Ao:n?Bo:cn;if(s.call(r,t))return l(e.get(t));if(s.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function Rn(e,t=!1){const n=this.__v_raw,o=he(n),r=he(e);return t||(st(e,r)&&Ne(o,"has",e),Ne(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Vn(e,t=!1){return e=e.__v_raw,!t&&Ne(he(e),"iterate",Bt),Reflect.get(e,"size",e)}function Yr(e){e=he(e);const t=he(this);return Bn(t).has.call(t,e)||(t.add(e),pt(t,"add",e,e)),this}function qr(e,t){t=he(t);const n=he(this),{has:o,get:r}=Bn(n);let i=o.call(n,e);i||(e=he(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?st(t,s)&&pt(n,"set",e,t):pt(n,"add",e,t),this}function Xr(e){const t=he(this),{has:n,get:o}=Bn(t);let r=n.call(t,e);r||(e=he(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&pt(t,"delete",e,void 0),i}function Zr(){const e=he(this),t=e.size!==0,n=e.clear();return t&&pt(e,"clear",void 0,void 0),n}function Nn(e,t){return function(o,r){const i=this,s=i.__v_raw,l=he(s),a=t?Ao:e?Bo:cn;return!e&&Ne(l,"iterate",Bt),s.forEach((c,u)=>o.call(r,a(c),a(u),i))}}function Hn(e,t,n){return function(...o){const r=this.__v_raw,i=he(r),s=Gt(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...o),u=n?Ao:t?Bo:cn;return!t&&Ne(i,"iterate",a?Lo:Bt),{next(){const{value:d,done:h}=c.next();return h?{value:d,done:h}:{value:l?[u(d[0]),u(d[1])]:u(d),done:h}},[Symbol.iterator](){return this}}}}function St(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function zl(){const e={get(i){return Dn(this,i)},get size(){return Vn(this)},has:Rn,add:Yr,set:qr,delete:Xr,clear:Zr,forEach:Nn(!1,!1)},t={get(i){return Dn(this,i,!1,!0)},get size(){return Vn(this)},has:Rn,add:Yr,set:qr,delete:Xr,clear:Zr,forEach:Nn(!1,!0)},n={get(i){return Dn(this,i,!0)},get size(){return Vn(this,!0)},has(i){return Rn.call(this,i,!0)},add:St("add"),set:St("set"),delete:St("delete"),clear:St("clear"),forEach:Nn(!0,!1)},o={get(i){return Dn(this,i,!0,!0)},get size(){return Vn(this,!0)},has(i){return Rn.call(this,i,!0)},add:St("add"),set:St("set"),delete:St("delete"),clear:St("clear"),forEach:Nn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Hn(i,!1,!1),n[i]=Hn(i,!0,!1),t[i]=Hn(i,!1,!0),o[i]=Hn(i,!0,!0)}),[e,n,t,o]}const[jl,Bl,Dl,Rl]=zl();function zo(e,t){const n=t?e?Rl:Dl:e?Bl:jl;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(me(n,r)&&r in o?n:o,r,i)}const Vl={get:zo(!1,!1)},Nl={get:zo(!1,!0)},Hl={get:zo(!0,!1)},Gr=new WeakMap,Jr=new WeakMap,Qr=new WeakMap,Fl=new WeakMap;function Wl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Kl(e){return e.__v_skip||!Object.isExtensible(e)?0:Wl(ml(e))}function an(e){return en(e)?e:jo(e,!1,Ml,Vl,Gr)}function Ul(e){return jo(e,!1,Al,Nl,Jr)}function ei(e){return jo(e,!0,Ll,Hl,Qr)}function jo(e,t,n,o,r){if(!we(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Kl(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return r.set(e,l),l}function Qt(e){return en(e)?Qt(e.__v_raw):!!(e&&e.__v_isReactive)}function en(e){return!!(e&&e.__v_isReadonly)}function Fn(e){return!!(e&&e.__v_isShallow)}function ti(e){return Qt(e)||en(e)}function he(e){const t=e&&e.__v_raw;return t?he(t):e}function ni(e){return jn(e,"__v_skip",!0),e}const cn=e=>we(e)?an(e):e,Bo=e=>we(e)?ei(e):e;class oi{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new To(()=>t(this._value),()=>un(this,1),()=>this.dep&&Nr(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=he(this);return(!t._cacheable||t.effect.dirty)&&st(t._value,t._value=t.effect.run())&&un(t,2),Do(t),t.effect._dirtyLevel>=1&&un(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Yl(e,t,n=!1){let o,r;const i=ae(e);return i?(o=e,r=We):(o=e.get,r=e.set),new oi(o,r,i||!r,n)}function Do(e){yt&&jt&&(e=he(e),Rr(jt,e.dep||(e.dep=Hr(()=>e.dep=void 0,e instanceof oi?e:void 0))))}function un(e,t=2,n){e=he(e);const o=e.dep;o&&Vr(o,t)}function Oe(e){return!!(e&&e.__v_isRef===!0)}function Q(e){return ql(e,!1)}function ql(e,t){return Oe(e)?e:new Xl(e,t)}class Xl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:he(t),this._value=n?t:cn(t)}get value(){return Do(this),this._value}set value(t){const n=this.__v_isShallow||Fn(t)||en(t);t=n?t:he(t),st(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:cn(t),un(this,2))}}function ne(e){return Oe(e)?e.value:e}const Zl={get:(e,t,n)=>ne(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Oe(r)&&!Oe(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function ri(e){return Qt(e)?e:new Proxy(e,Zl)}class Gl{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>Do(this),()=>un(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function Jl(e){return new Gl(e)}/**
10
+ * @vue/runtime-core v3.4.15
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/const fn=[];function $p(e,...t){wt();const n=fn.length?fn[fn.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=Ql();if(o)ht(o,n,11,[e+t.join(""),n&&n.proxy,r.map(({vnode:i})=>`at <${Zi(n,i.type)}>`).join(`
14
+ `),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(`
15
+ `,...ea(r)),console.warn(...i)}xt()}function Ql(){let e=fn[fn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function ea(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
16
+ `],...ta(n))}),t}function ta({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,r=` at <${Zi(e.component,e.type,o)}`,i=">"+n;return e.props?[r,...na(e.props),i]:[r+i]}function na(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...ii(o,e[o]))}),n.length>3&&t.push(" ..."),t}function ii(e,t,n){return ke(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Oe(t)?(t=ii(e,he(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ae(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=he(t),n?t:[`${e}=`,t])}function ht(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){Wn(i,t,n)}return r}function Je(e,t,n,o){if(ae(e)){const i=ht(e,t,n,o);return i&&$r(i)&&i.catch(s=>{Wn(s,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(Je(e[i],t,n,o));return r}function Wn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,l)===!1)return}i=i.parent}const a=t.appContext.config.errorHandler;if(a){ht(a,null,10,[e,s,l]);return}}oa(e,n,r,o)}function oa(e,t,n,o=!0){console.error(e)}let dn=!1,Ro=!1;const je=[];let lt=0;const tn=[];let Ct=null,Dt=0;const si=Promise.resolve();let Vo=null;function gt(e){const t=Vo||si;return e?t.then(this?e.bind(this):e):t}function ra(e){let t=lt+1,n=je.length;for(;t<n;){const o=t+n>>>1,r=je[o],i=pn(r);i<e||i===e&&r.pre?t=o+1:n=o}return t}function No(e){(!je.length||!je.includes(e,dn&&e.allowRecurse?lt+1:lt))&&(e.id==null?je.push(e):je.splice(ra(e.id),0,e),li())}function li(){!dn&&!Ro&&(Ro=!0,Vo=si.then(ui))}function ia(e){const t=je.indexOf(e);t>lt&&je.splice(t,1)}function sa(e){te(e)?tn.push(...e):(!Ct||!Ct.includes(e,e.allowRecurse?Dt+1:Dt))&&tn.push(e),li()}function ai(e,t,n=dn?lt+1:0){for(;n<je.length;n++){const o=je[n];if(o&&o.pre){if(e&&o.id!==e.uid)continue;je.splice(n,1),n--,o()}}}function ci(e){if(tn.length){const t=[...new Set(tn)].sort((n,o)=>pn(n)-pn(o));if(tn.length=0,Ct){Ct.push(...t);return}for(Ct=t,Dt=0;Dt<Ct.length;Dt++)Ct[Dt]();Ct=null,Dt=0}}const pn=e=>e.id==null?1/0:e.id,la=(e,t)=>{const n=pn(e)-pn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ui(e){Ro=!1,dn=!0,je.sort(la);const t=We;try{for(lt=0;lt<je.length;lt++){const n=je[lt];n&&n.active!==!1&&ht(n,null,14)}}finally{lt=0,je.length=0,ci(),dn=!1,Vo=null,(je.length||tn.length)&&ui()}}function aa(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||fe;let r=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in o){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:d,trim:h}=o[u]||fe;h&&(r=n.map(y=>ke(y)?y.trim():y)),d&&(r=n.map(So))}let l,a=o[l=xo(t)]||o[l=xo(Ve(t))];!a&&i&&(a=o[l=xo(Ke(t))]),a&&Je(a,e,6,r);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Je(c,e,6,r)}}function fi(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let s={},l=!1;if(!ae(e)){const a=c=>{const u=fi(c,t,!0);u&&(l=!0,Ce(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(we(e)&&o.set(e,null),null):(te(i)?i.forEach(a=>s[a]=null):Ce(s,i),we(e)&&o.set(e,s),s)}function Kn(e,t){return!e||!Pn(t)?!1:(t=t.slice(2).replace(/Once$/,""),me(e,t[0].toLowerCase()+t.slice(1))||me(e,Ke(t))||me(e,t))}let Me=null,di=null;function Un(e){const t=Me;return Me=e,di=e&&e.type.__scopeId||null,t}function ue(e,t=Me,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Ni(-1);const i=Un(t);let s;try{s=e(...r)}finally{Un(i),o._d&&Ni(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function Ep(){}function Ho(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:d,data:h,setupState:y,ctx:S,inheritAttrs:v}=e;let A,j;const X=Un(e);try{if(n.shapeFlag&4){const $=r||o,x=$;A=ct(u.call(x,$,d,i,y,h,S)),j=a}else{const $=t;A=ct($.length>1?$(i,{attrs:a,slots:l,emit:c}):$(i,null)),j=t.props?a:ca(a)}}catch($){_n.length=0,Wn($,e,1),A=ee(tt)}let E=A;if(j&&v!==!1){const $=Object.keys(j),{shapeFlag:x}=E;$.length&&x&7&&(s&&$.some(bo)&&(j=ua(j,s)),E=It(E,j))}return n.dirs&&(E=It(E),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),A=E,Un(X),A}const ca=e=>{let t;for(const n in e)(n==="class"||n==="style"||Pn(n))&&((t||(t={}))[n]=e[n]);return t},ua=(e,t)=>{const n={};for(const o in e)(!bo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function fa(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?pi(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const h=u[d];if(s[h]!==o[h]&&!Kn(c,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?pi(o,s,c):!0:!!s;return!1}function pi(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const i=o[r];if(t[i]!==e[i]&&!Kn(n,i))return!0}return!1}function da({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=n,t=t.parent;else break}}const hi="components",gi=Symbol.for("v-ndc");function pa(e){return ke(e)?ha(hi,e,!1)||e:e||gi}function ha(e,t,n=!0,o=!1){const r=Me||ze;if(r){const i=r.type;if(e===hi){const l=Xi(i,!1);if(l&&(l===t||l===Ve(t)||l===An(Ve(t))))return i}const s=mi(r[e]||i[e],t)||mi(r.appContext[e],t);return!s&&o?i:s}}function mi(e,t){return e&&(e[t]||e[Ve(t)]||e[An(Ve(t))])}const ga=e=>e.__isSuspense;function ma(e,t){t&&t.pendingBranch?te(e)?t.effects.push(...e):t.effects.push(e):sa(e)}const va=Symbol.for("v-scx"),_a=()=>Ht(va);function ba(e,t){return Fo(e,null,{flush:"sync"})}const Yn={};function _e(e,t,n){return Fo(e,t,n)}function Fo(e,t,{immediate:n,deep:o,flush:r,once:i,onTrack:s,onTrigger:l}=fe){if(t&&i){const m=t;t=(...N)=>{m(...N),x()}}const a=ze,c=m=>o===!0?m:Rt(m,o===!1?1:void 0);let u,d=!1,h=!1;if(Oe(e)?(u=()=>e.value,d=Fn(e)):Qt(e)?(u=()=>c(e),d=!0):te(e)?(h=!0,d=e.some(m=>Qt(m)||Fn(m)),u=()=>e.map(m=>{if(Oe(m))return m.value;if(Qt(m))return c(m);if(ae(m))return ht(m,a,2)})):ae(e)?t?u=()=>ht(e,a,2):u=()=>(y&&y(),Je(e,a,3,[S])):u=We,t&&o){const m=u;u=()=>Rt(m())}let y,S=m=>{y=E.onStop=()=>{ht(m,a,4),y=E.onStop=void 0}},v;if(ao)if(S=We,t?n&&Je(t,a,3,[u(),h?[]:void 0,S]):u(),r==="sync"){const m=_a();v=m.__watcherHandles||(m.__watcherHandles=[])}else return We;let A=h?new Array(e.length).fill(Yn):Yn;const j=()=>{if(!(!E.active||!E.dirty))if(t){const m=E.run();(o||d||(h?m.some((N,_)=>st(N,A[_])):st(m,A)))&&(y&&y(),Je(t,a,3,[m,A===Yn?void 0:h&&A[0]===Yn?[]:A,S]),A=m)}else E.run()};j.allowRecurse=!!t;let X;r==="sync"?X=j:r==="post"?X=()=>He(j,a&&a.suspense):(j.pre=!0,a&&(j.id=a.uid),X=()=>No(j));const E=new To(u,We,X),$=Ar(),x=()=>{E.stop(),$&&yo($.effects,E)};return t?n?j():A=E.run():r==="post"?He(E.run.bind(E),a&&a.suspense):E.run(),v&&v.push(x),x}function ya(e,t,n){const o=this.proxy,r=ke(e)?e.includes(".")?vi(o,e):()=>o[e]:e.bind(o,o);let i;ae(t)?i=t:(i=t.handler,n=t);const s=yn(this),l=Fo(r,i.bind(o),n);return s(),l}function vi(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 Rt(e,t,n=0,o){if(!we(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(o=o||new Set,o.has(e))return e;if(o.add(e),Oe(e))Rt(e.value,t,n,o);else if(te(e))for(let r=0;r<e.length;r++)Rt(e[r],t,n,o);else if(Tr(e)||Gt(e))e.forEach(r=>{Rt(r,t,n,o)});else if(Pr(e))for(const r in e)Rt(e[r],t,n,o);return e}function mt(e,t){if(Me===null)return e;const n=co(Me)||Me.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,s,l,a=fe]=t[r];i&&(ae(i)&&(i={mounted:i,updated:i}),i.deep&&Rt(s),o.push({dir:i,instance:n,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Vt(e,t,n,o){const r=e.dirs,i=t&&t.dirs;for(let s=0;s<r.length;s++){const l=r[s];i&&(l.oldValue=i[s].value);let a=l.dir[o];a&&(wt(),Je(a,n,8,[e.el,l,e,t]),xt())}}const kt=Symbol("_leaveCb"),qn=Symbol("_enterCb");function wa(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return et(()=>{e.isMounted=!0}),Gn(()=>{e.isUnmounting=!0}),e}const Qe=[Function,Array],_i={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qe,onEnter:Qe,onAfterEnter:Qe,onEnterCancelled:Qe,onBeforeLeave:Qe,onLeave:Qe,onAfterLeave:Qe,onLeaveCancelled:Qe,onBeforeAppear:Qe,onAppear:Qe,onAfterAppear:Qe,onAppearCancelled:Qe},xa={name:"BaseTransition",props:_i,setup(e,{slots:t}){const n=rr(),o=wa();let r;return()=>{const i=t.default&&wi(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const v of i)if(v.type!==tt){s=v;break}}const l=he(e),{mode:a}=l;if(o.isLeaving)return Ko(s);const c=yi(s);if(!c)return Ko(s);const u=Wo(c,l,o,n);Uo(c,u);const d=n.subTree,h=d&&yi(d);let y=!1;const{getTransitionKey:S}=c.type;if(S){const v=S();r===void 0?r=v:v!==r&&(r=v,y=!0)}if(h&&h.type!==tt&&(!Wt(c,h)||y)){const v=Wo(h,l,o,n);if(Uo(h,v),a==="out-in")return o.isLeaving=!0,v.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Ko(s);a==="in-out"&&c.type!==tt&&(v.delayLeave=(A,j,X)=>{const E=bi(o,h);E[String(h.key)]=h,A[kt]=()=>{j(),A[kt]=void 0,delete u.delayedLeave},u.delayedLeave=X})}return s}}};function bi(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 Wo(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:h,onAfterLeave:y,onLeaveCancelled:S,onBeforeAppear:v,onAppear:A,onAfterAppear:j,onAppearCancelled:X}=t,E=String(e.key),$=bi(n,e),x=(_,U)=>{_&&Je(_,o,9,U)},m=(_,U)=>{const z=U[1];x(_,U),te(_)?_.every(le=>le.length<=1)&&z():_.length<=1&&z()},N={mode:i,persisted:s,beforeEnter(_){let U=l;if(!n.isMounted)if(r)U=v||l;else return;_[kt]&&_[kt](!0);const z=$[E];z&&Wt(e,z)&&z.el[kt]&&z.el[kt](),x(U,[_])},enter(_){let U=a,z=c,le=u;if(!n.isMounted)if(r)U=A||a,z=j||c,le=X||u;else return;let w=!1;const H=_[qn]=re=>{w||(w=!0,re?x(le,[_]):x(z,[_]),N.delayedLeave&&N.delayedLeave(),_[qn]=void 0)};U?m(U,[_,H]):H()},leave(_,U){const z=String(e.key);if(_[qn]&&_[qn](!0),n.isUnmounting)return U();x(d,[_]);let le=!1;const w=_[kt]=H=>{le||(le=!0,U(),H?x(S,[_]):x(y,[_]),_[kt]=void 0,$[z]===e&&delete $[z])};$[z]=e,h?m(h,[_,w]):w()},clone(_){return Wo(_,t,n,o)}};return N}function Ko(e){if(Xn(e))return e=It(e),e.children=null,e}function yi(e){return Xn(e)?e.children?e.children[0]:void 0:e}function Uo(e,t){e.shapeFlag&6&&e.component?Uo(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 wi(e,t=!1,n){let o=[],r=0;for(let i=0;i<e.length;i++){let s=e[i];const l=n==null?s.key:String(n)+String(s.key!=null?s.key:i);s.type===Ie?(s.patchFlag&128&&r++,o=o.concat(wi(s.children,t,l))):(t||s.type!==tt)&&o.push(l!=null?It(s,{key:l}):s)}if(r>1)for(let i=0;i<o.length;i++)o[i].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function Te(e,t){return ae(e)?(()=>Ce({name:e.name},t,{setup:e}))():e}const hn=e=>!!e.type.__asyncLoader,Xn=e=>e.type.__isKeepAlive;function Sa(e,t){xi(e,"a",t)}function Ca(e,t){xi(e,"da",t)}function xi(e,t,n=ze){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Zn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Xn(r.parent.vnode)&&ka(o,t,n,r),r=r.parent}}function ka(e,t,n,o){const r=Zn(t,e,o,!0);at(()=>{yo(o[t],r)},n)}function Zn(e,t,n=ze,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;wt();const l=yn(n),a=Je(t,n,e,s);return l(),xt(),a});return o?r.unshift(i):r.push(i),i}}const vt=e=>(t,n=ze)=>(!ao||e==="sp")&&Zn(e,(...o)=>t(...o),n),Ia=vt("bm"),et=vt("m"),Ta=vt("bu"),$a=vt("u"),Gn=vt("bum"),at=vt("um"),Ea=vt("sp"),Pa=vt("rtg"),Oa=vt("rtc");function Ma(e,t=ze){Zn("ec",e,t)}function gn(e,t,n,o){let r;const i=n&&n[o];if(te(e)||ke(e)){r=new Array(e.length);for(let s=0,l=e.length;s<l;s++)r[s]=t(e[s],s,void 0,i&&i[s])}else if(typeof e=="number"){r=new Array(e);for(let s=0;s<e;s++)r[s]=t(s+1,s,void 0,i&&i[s])}else if(we(e))if(e[Symbol.iterator])r=Array.from(e,(s,l)=>t(s,l,void 0,i&&i[l]));else{const s=Object.keys(e);r=new Array(s.length);for(let l=0,a=s.length;l<a;l++){const c=s[l];r[l]=t(e[c],c,l,i&&i[l])}}else r=[];return n&&(n[o]=r),r}function Si(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(te(o))for(let r=0;r<o.length;r++)e[o[r].name]=o[r].fn;else o&&(e[o.name]=o.key?(...r)=>{const i=o.fn(...r);return i&&(i.key=o.key),i}:o.fn)}return e}function $e(e,t,n={},o,r){if(Me.isCE||Me.parent&&hn(Me.parent)&&Me.parent.isCE)return t!=="default"&&(n.name=t),ee("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),B();const s=i&&Ci(i(n)),l=Se(Ie,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Ci(e){return e.some(t=>oo(t)?!(t.type===tt||t.type===Ie&&!Ci(t.children)):!0)?e:null}const Yo=e=>e?Ki(e)?co(e)||e.proxy:Yo(e.parent):null,mn=Ce(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=>Yo(e.parent),$root:e=>Yo(e.root),$emit:e=>e.emit,$options:e=>Zo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,No(e.update)}),$nextTick:e=>e.n||(e.n=gt.bind(e.proxy)),$watch:e=>ya.bind(e)}),qo=(e,t)=>e!==fe&&!e.__isScriptSetup&&me(e,t),La={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const y=s[t];if(y!==void 0)switch(y){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(qo(o,t))return s[t]=1,o[t];if(r!==fe&&me(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&me(c,t))return s[t]=3,i[t];if(n!==fe&&me(n,t))return s[t]=4,n[t];Xo&&(s[t]=0)}}const u=mn[t];let d,h;if(u)return t==="$attrs"&&Ne(e,"get",t),u(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==fe&&me(n,t))return s[t]=4,n[t];if(h=a.config.globalProperties,me(h,t))return h[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return qo(r,t)?(r[t]=n,!0):o!==fe&&me(o,t)?(o[t]=n,!0):me(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let l;return!!n[s]||e!==fe&&me(e,s)||qo(t,s)||(l=i[0])&&me(l,s)||me(o,s)||me(mn,s)||me(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:me(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Jn(e){return te(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Nt(e,t){return!e||!t?e||t:te(e)&&te(t)?e.concat(t):Ce({},Jn(e),Jn(t))}let Xo=!0;function Aa(e){const t=Zo(e),n=e.proxy,o=e.ctx;Xo=!1,t.beforeCreate&&ki(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:y,updated:S,activated:v,deactivated:A,beforeDestroy:j,beforeUnmount:X,destroyed:E,unmounted:$,render:x,renderTracked:m,renderTriggered:N,errorCaptured:_,serverPrefetch:U,expose:z,inheritAttrs:le,components:w,directives:H,filters:re}=t;if(c&&za(c,o,null),s)for(const R in s){const ie=s[R];ae(ie)&&(o[R]=ie.bind(n))}if(r){const R=r.call(n,n);we(R)&&(e.data=an(R))}if(Xo=!0,i)for(const R in i){const ie=i[R],be=ae(ie)?ie.bind(n,n):ae(ie.get)?ie.get.bind(n,n):We,F=!ae(ie)&&ae(ie.set)?ie.set.bind(n):We,Y=ce({get:be,set:F});Object.defineProperty(o,R,{enumerable:!0,configurable:!0,get:()=>Y.value,set:M=>Y.value=M})}if(l)for(const R in l)Ii(l[R],o,n,R);if(a){const R=ae(a)?a.call(n):a;Reflect.ownKeys(R).forEach(ie=>{to(ie,R[ie])})}u&&ki(u,e,"c");function Z(R,ie){te(ie)?ie.forEach(be=>R(be.bind(n))):ie&&R(ie.bind(n))}if(Z(Ia,d),Z(et,h),Z(Ta,y),Z($a,S),Z(Sa,v),Z(Ca,A),Z(Ma,_),Z(Oa,m),Z(Pa,N),Z(Gn,X),Z(at,$),Z(Ea,U),te(z))if(z.length){const R=e.exposed||(e.exposed={});z.forEach(ie=>{Object.defineProperty(R,ie,{get:()=>n[ie],set:be=>n[ie]=be})})}else e.exposed||(e.exposed={});x&&e.render===We&&(e.render=x),le!=null&&(e.inheritAttrs=le),w&&(e.components=w),H&&(e.directives=H)}function za(e,t,n=We){te(e)&&(e=Go(e));for(const o in e){const r=e[o];let i;we(r)?"default"in r?i=Ht(r.from||o,r.default,!0):i=Ht(r.from||o):i=Ht(r),Oe(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function ki(e,t,n){Je(te(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ii(e,t,n,o){const r=o.includes(".")?vi(n,o):()=>n[o];if(ke(e)){const i=t[e];ae(i)&&_e(r,i)}else if(ae(e))_e(r,e.bind(n));else if(we(e))if(te(e))e.forEach(i=>Ii(i,t,n,o));else{const i=ae(e.handler)?e.handler.bind(n):t[e.handler];ae(i)&&_e(r,i,e)}}function Zo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let a;return l?a=l:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(c=>Qn(a,c,s,!0)),Qn(a,t,s)),we(t)&&i.set(t,a),a}function Qn(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Qn(e,i,n,!0),r&&r.forEach(s=>Qn(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=ja[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const ja={data:Ti,props:$i,emits:$i,methods:vn,computed:vn,beforeCreate:De,created:De,beforeMount:De,mounted:De,beforeUpdate:De,updated:De,beforeDestroy:De,beforeUnmount:De,destroyed:De,unmounted:De,activated:De,deactivated:De,errorCaptured:De,serverPrefetch:De,components:vn,directives:vn,watch:Da,provide:Ti,inject:Ba};function Ti(e,t){return t?e?function(){return Ce(ae(e)?e.call(this,this):e,ae(t)?t.call(this,this):t)}:t:e}function Ba(e,t){return vn(Go(e),Go(t))}function Go(e){if(te(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function De(e,t){return e?[...new Set([].concat(e,t))]:t}function vn(e,t){return e?Ce(Object.create(null),e,t):t}function $i(e,t){return e?te(e)&&te(t)?[...new Set([...e,...t])]:Ce(Object.create(null),Jn(e),Jn(t??{})):t}function Da(e,t){if(!e)return t;if(!t)return e;const n=Ce(Object.create(null),e);for(const o in t)n[o]=De(e[o],t[o]);return n}function Ei(){return{app:null,config:{isNativeTag:hl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ra=0;function Va(e,t){return function(o,r=null){ae(o)||(o=Ce({},o)),r!=null&&!we(r)&&(r=null);const i=Ei(),s=new WeakSet;let l=!1;const a=i.app={_uid:Ra++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:fc,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&ae(c.install)?(s.add(c),c.install(a,...u)):ae(c)&&(s.add(c),c(a,...u))),a},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),a},component(c,u){return u?(i.components[c]=u,a):i.components[c]},directive(c,u){return u?(i.directives[c]=u,a):i.directives[c]},mount(c,u,d){if(!l){const h=ee(o,r);return h.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),u&&t?t(h,c):e(h,c,d),l=!0,a._container=c,c.__vue_app__=a,co(h.component)||h.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return i.provides[c]=u,a},runWithContext(c){eo=a;try{return c()}finally{eo=null}}};return a}}let eo=null;function to(e,t){if(ze){let n=ze.provides;const o=ze.parent&&ze.parent.provides;o===n&&(n=ze.provides=Object.create(o)),n[e]=t}}function Ht(e,t,n=!1){const o=ze||Me;if(o||eo){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:eo._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&ae(t)?t.call(o&&o.proxy):t}}function Na(e,t,n,o=!1){const r={},i={};jn(i,ro,1),e.propsDefaults=Object.create(null),Pi(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:Ul(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Ha(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=he(r),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let h=u[d];if(Kn(e.emitsOptions,h))continue;const y=t[h];if(a)if(me(i,h))y!==i[h]&&(i[h]=y,c=!0);else{const S=Ve(h);r[S]=Jo(a,l,S,y,e,!1)}else y!==i[h]&&(i[h]=y,c=!0)}}}else{Pi(e,t,r,i)&&(c=!0);let u;for(const d in l)(!t||!me(t,d)&&((u=Ke(d))===d||!me(t,u)))&&(a?n&&(n[d]!==void 0||n[u]!==void 0)&&(r[d]=Jo(a,l,d,void 0,e,!0)):delete r[d]);if(i!==l)for(const d in i)(!t||!me(t,d))&&(delete i[d],c=!0)}c&&pt(e,"set","$attrs")}function Pi(e,t,n,o){const[r,i]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(Mn(a))continue;const c=t[a];let u;r&&me(r,u=Ve(a))?!i||!i.includes(u)?n[u]=c:(l||(l={}))[u]=c:Kn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(i){const a=he(n),c=l||fe;for(let u=0;u<i.length;u++){const d=i[u];n[d]=Jo(r,a,d,c[d],e,!me(c,d))}}return s}function Jo(e,t,n,o,r,i){const s=e[n];if(s!=null){const l=me(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&ae(a)){const{propsDefaults:c}=r;if(n in c)o=c[n];else{const u=yn(r);o=c[n]=a.call(null,t),u()}}else o=a}s[0]&&(i&&!l?o=!1:s[1]&&(o===""||o===Ke(n))&&(o=!0))}return o}function Oi(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const i=e.props,s={},l=[];let a=!1;if(!ae(e)){const u=d=>{a=!0;const[h,y]=Oi(d,t,!0);Ce(s,h),y&&l.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return we(e)&&o.set(e,Ze),Ze;if(te(i))for(let u=0;u<i.length;u++){const d=Ve(i[u]);Mi(d)&&(s[d]=fe)}else if(i)for(const u in i){const d=Ve(u);if(Mi(d)){const h=i[u],y=s[d]=te(h)||ae(h)?{type:h}:Ce({},h);if(y){const S=zi(Boolean,y.type),v=zi(String,y.type);y[0]=S>-1,y[1]=v<0||S<v,(S>-1||me(y,"default"))&&l.push(d)}}}const c=[s,l];return we(e)&&o.set(e,c),c}function Mi(e){return e[0]!=="$"}function Li(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ai(e,t){return Li(e)===Li(t)}function zi(e,t){return te(t)?t.findIndex(n=>Ai(n,e)):ae(t)&&Ai(t,e)?0:-1}const ji=e=>e[0]==="_"||e==="$stable",Qo=e=>te(e)?e.map(ct):[ct(e)],Fa=(e,t,n)=>{if(t._n)return t;const o=ue((...r)=>Qo(t(...r)),n);return o._c=!1,o},Bi=(e,t,n)=>{const o=e._ctx;for(const r in e){if(ji(r))continue;const i=e[r];if(ae(i))t[r]=Fa(r,i,o);else if(i!=null){const s=Qo(i);t[r]=()=>s}}},Di=(e,t)=>{const n=Qo(t);e.slots.default=()=>n},Wa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=he(t),jn(t,"_",n)):Bi(t,e.slots={})}else e.slots={},t&&Di(e,t);jn(e.slots,ro,1)},Ka=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=fe;if(o.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(Ce(r,t),!n&&l===1&&delete r._):(i=!t.$stable,Bi(t,r)),s=t}else t&&(Di(e,t),s={default:1});if(i)for(const l in r)!ji(l)&&s[l]==null&&delete r[l]};function er(e,t,n,o,r=!1){if(te(e)){e.forEach((h,y)=>er(h,t&&(te(t)?t[y]:t),n,o,r));return}if(hn(o)&&!r)return;const i=o.shapeFlag&4?co(o.component)||o.component.proxy:o.el,s=r?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===fe?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(ke(c)?(u[c]=null,me(d,c)&&(d[c]=null)):Oe(c)&&(c.value=null)),ae(a))ht(a,l,12,[s,u]);else{const h=ke(a),y=Oe(a),S=e.f;if(h||y){const v=()=>{if(S){const A=h?me(d,a)?d[a]:u[a]:a.value;r?te(A)&&yo(A,i):te(A)?A.includes(i)||A.push(i):h?(u[a]=[i],me(d,a)&&(d[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else h?(u[a]=s,me(d,a)&&(d[a]=s)):y&&(a.value=s,e.k&&(u[e.k]=s))};r||S?v():(v.id=-1,He(v,n))}}}function Ua(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(ko().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const He=ma;function Ya(e){return qa(e)}function qa(e,t){Ua();const n=ko();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:h,setScopeId:y=We,insertStaticContent:S}=e,v=(f,p,b,I=null,T=null,O=null,V=void 0,L=null,D=!!p.dynamicChildren)=>{if(f===p)return;f&&!Wt(f,p)&&(I=ge(f),M(f,T,O,!0),f=null),p.patchFlag===-2&&(D=!1,p.dynamicChildren=null);const{type:P,ref:W,shapeFlag:g}=p;switch(P){case no:A(f,p,b,I);break;case tt:j(f,p,b,I);break;case nr:f==null&&X(p,b,I,V);break;case Ie:w(f,p,b,I,T,O,V,L,D);break;default:g&1?x(f,p,b,I,T,O,V,L,D):g&6?H(f,p,b,I,T,O,V,L,D):(g&64||g&128)&&P.process(f,p,b,I,T,O,V,L,D,At)}W!=null&&T&&er(W,f&&f.ref,O,p||f,!p)},A=(f,p,b,I)=>{if(f==null)o(p.el=l(p.children),b,I);else{const T=p.el=f.el;p.children!==f.children&&c(T,p.children)}},j=(f,p,b,I)=>{f==null?o(p.el=a(p.children||""),b,I):p.el=f.el},X=(f,p,b,I)=>{[f.el,f.anchor]=S(f.children,p,b,I,f.el,f.anchor)},E=({el:f,anchor:p},b,I)=>{let T;for(;f&&f!==p;)T=h(f),o(f,b,I),f=T;o(p,b,I)},$=({el:f,anchor:p})=>{let b;for(;f&&f!==p;)b=h(f),r(f),f=b;r(p)},x=(f,p,b,I,T,O,V,L,D)=>{p.type==="svg"?V="svg":p.type==="math"&&(V="mathml"),f==null?m(p,b,I,T,O,V,L,D):U(f,p,T,O,V,L,D)},m=(f,p,b,I,T,O,V,L)=>{let D,P;const{props:W,shapeFlag:g,transition:C,dirs:q}=f;if(D=f.el=s(f.type,O,W&&W.is,W),g&8?u(D,f.children):g&16&&_(f.children,D,null,I,T,tr(f,O),V,L),q&&Vt(f,null,I,"created"),N(D,f,f.scopeId,V,I),W){for(const de in W)de!=="value"&&!Mn(de)&&i(D,de,null,W[de],O,f.children,I,T,pe);"value"in W&&i(D,"value",null,W.value,O),(P=W.onVnodeBeforeMount)&&ut(P,I,f)}q&&Vt(f,null,I,"beforeMount");const se=Xa(T,C);se&&C.beforeEnter(D),o(D,p,b),((P=W&&W.onVnodeMounted)||se||q)&&He(()=>{P&&ut(P,I,f),se&&C.enter(D),q&&Vt(f,null,I,"mounted")},T)},N=(f,p,b,I,T)=>{if(b&&y(f,b),I)for(let O=0;O<I.length;O++)y(f,I[O]);if(T){let O=T.subTree;if(p===O){const V=T.vnode;N(f,V,V.scopeId,V.slotScopeIds,T.parent)}}},_=(f,p,b,I,T,O,V,L,D=0)=>{for(let P=D;P<f.length;P++){const W=f[P]=L?$t(f[P]):ct(f[P]);v(null,W,p,b,I,T,O,V,L)}},U=(f,p,b,I,T,O,V)=>{const L=p.el=f.el;let{patchFlag:D,dynamicChildren:P,dirs:W}=p;D|=f.patchFlag&16;const g=f.props||fe,C=p.props||fe;let q;if(b&&Ft(b,!1),(q=C.onVnodeBeforeUpdate)&&ut(q,b,p,f),W&&Vt(p,f,b,"beforeUpdate"),b&&Ft(b,!0),P?z(f.dynamicChildren,P,L,b,I,tr(p,T),O):V||ie(f,p,L,null,b,I,tr(p,T),O,!1),D>0){if(D&16)le(L,p,g,C,b,I,T);else if(D&2&&g.class!==C.class&&i(L,"class",null,C.class,T),D&4&&i(L,"style",g.style,C.style,T),D&8){const se=p.dynamicProps;for(let de=0;de<se.length;de++){const ye=se[de],Ee=g[ye],Xe=C[ye];(Xe!==Ee||ye==="value")&&i(L,ye,Ee,Xe,T,f.children,b,I,pe)}}D&1&&f.children!==p.children&&u(L,p.children)}else!V&&P==null&&le(L,p,g,C,b,I,T);((q=C.onVnodeUpdated)||W)&&He(()=>{q&&ut(q,b,p,f),W&&Vt(p,f,b,"updated")},I)},z=(f,p,b,I,T,O,V)=>{for(let L=0;L<p.length;L++){const D=f[L],P=p[L],W=D.el&&(D.type===Ie||!Wt(D,P)||D.shapeFlag&70)?d(D.el):b;v(D,P,W,null,I,T,O,V,!0)}},le=(f,p,b,I,T,O,V)=>{if(b!==I){if(b!==fe)for(const L in b)!Mn(L)&&!(L in I)&&i(f,L,b[L],null,V,p.children,T,O,pe);for(const L in I){if(Mn(L))continue;const D=I[L],P=b[L];D!==P&&L!=="value"&&i(f,L,P,D,V,p.children,T,O,pe)}"value"in I&&i(f,"value",b.value,I.value,V)}},w=(f,p,b,I,T,O,V,L,D)=>{const P=p.el=f?f.el:l(""),W=p.anchor=f?f.anchor:l("");let{patchFlag:g,dynamicChildren:C,slotScopeIds:q}=p;q&&(L=L?L.concat(q):q),f==null?(o(P,b,I),o(W,b,I),_(p.children||[],b,W,T,O,V,L,D)):g>0&&g&64&&C&&f.dynamicChildren?(z(f.dynamicChildren,C,b,T,O,V,L),(p.key!=null||T&&p===T.subTree)&&Ri(f,p,!0)):ie(f,p,b,W,T,O,V,L,D)},H=(f,p,b,I,T,O,V,L,D)=>{p.slotScopeIds=L,f==null?p.shapeFlag&512?T.ctx.activate(p,b,I,V,D):re(p,b,I,T,O,V,D):k(f,p,D)},re=(f,p,b,I,T,O,V)=>{const L=f.component=oc(f,I,T);if(Xn(f)&&(L.ctx.renderer=At),rc(L),L.asyncDep){if(T&&T.registerDep(L,Z),!f.el){const D=L.subTree=ee(tt);j(null,D,p,b)}}else Z(L,f,p,b,T,O,V)},k=(f,p,b)=>{const I=p.component=f.component;if(fa(f,p,b))if(I.asyncDep&&!I.asyncResolved){R(I,p,b);return}else I.next=p,ia(I.update),I.effect.dirty=!0,I.update();else p.el=f.el,I.vnode=p},Z=(f,p,b,I,T,O,V)=>{const L=()=>{if(f.isMounted){let{next:W,bu:g,u:C,parent:q,vnode:se}=f;{const zt=Vi(f);if(zt){W&&(W.el=se.el,R(f,W,V)),zt.asyncDep.then(()=>{f.isUnmounted||L()});return}}let de=W,ye;Ft(f,!1),W?(W.el=se.el,R(f,W,V)):W=se,g&&zn(g),(ye=W.props&&W.props.onVnodeBeforeUpdate)&&ut(ye,q,W,se),Ft(f,!0);const Ee=Ho(f),Xe=f.subTree;f.subTree=Ee,v(Xe,Ee,d(Xe.el),ge(Xe),f,T,O),W.el=Ee.el,de===null&&da(f,Ee.el),C&&He(C,T),(ye=W.props&&W.props.onVnodeUpdated)&&He(()=>ut(ye,q,W,se),T)}else{let W;const{el:g,props:C}=p,{bm:q,m:se,parent:de}=f,ye=hn(p);if(Ft(f,!1),q&&zn(q),!ye&&(W=C&&C.onVnodeBeforeMount)&&ut(W,de,p),Ft(f,!0),g&&En){const Ee=()=>{f.subTree=Ho(f),En(g,f.subTree,f,T,null)};ye?p.type.__asyncLoader().then(()=>!f.isUnmounted&&Ee()):Ee()}else{const Ee=f.subTree=Ho(f);v(null,Ee,b,I,f,T,O),p.el=Ee.el}if(se&&He(se,T),!ye&&(W=C&&C.onVnodeMounted)){const Ee=p;He(()=>ut(W,de,Ee),T)}(p.shapeFlag&256||de&&hn(de.vnode)&&de.vnode.shapeFlag&256)&&f.a&&He(f.a,T),f.isMounted=!0,p=b=I=null}},D=f.effect=new To(L,We,()=>No(P),f.scope),P=f.update=()=>{D.dirty&&D.run()};P.id=f.uid,Ft(f,!0),P()},R=(f,p,b)=>{p.component=f;const I=f.vnode.props;f.vnode=p,f.next=null,Ha(f,p.props,I,b),Ka(f,p.children,b),wt(),ai(f),xt()},ie=(f,p,b,I,T,O,V,L,D=!1)=>{const P=f&&f.children,W=f?f.shapeFlag:0,g=p.children,{patchFlag:C,shapeFlag:q}=p;if(C>0){if(C&128){F(P,g,b,I,T,O,V,L,D);return}else if(C&256){be(P,g,b,I,T,O,V,L,D);return}}q&8?(W&16&&pe(P,T,O),g!==P&&u(b,g)):W&16?q&16?F(P,g,b,I,T,O,V,L,D):pe(P,T,O,!0):(W&8&&u(b,""),q&16&&_(g,b,I,T,O,V,L,D))},be=(f,p,b,I,T,O,V,L,D)=>{f=f||Ze,p=p||Ze;const P=f.length,W=p.length,g=Math.min(P,W);let C;for(C=0;C<g;C++){const q=p[C]=D?$t(p[C]):ct(p[C]);v(f[C],q,b,null,T,O,V,L,D)}P>W?pe(f,T,O,!0,!1,g):_(p,b,I,T,O,V,L,D,g)},F=(f,p,b,I,T,O,V,L,D)=>{let P=0;const W=p.length;let g=f.length-1,C=W-1;for(;P<=g&&P<=C;){const q=f[P],se=p[P]=D?$t(p[P]):ct(p[P]);if(Wt(q,se))v(q,se,b,null,T,O,V,L,D);else break;P++}for(;P<=g&&P<=C;){const q=f[g],se=p[C]=D?$t(p[C]):ct(p[C]);if(Wt(q,se))v(q,se,b,null,T,O,V,L,D);else break;g--,C--}if(P>g){if(P<=C){const q=C+1,se=q<W?p[q].el:I;for(;P<=C;)v(null,p[P]=D?$t(p[P]):ct(p[P]),b,se,T,O,V,L,D),P++}}else if(P>C)for(;P<=g;)M(f[P],T,O,!0),P++;else{const q=P,se=P,de=new Map;for(P=se;P<=C;P++){const Re=p[P]=D?$t(p[P]):ct(p[P]);Re.key!=null&&de.set(Re.key,P)}let ye,Ee=0;const Xe=C-se+1;let zt=!1,dt=0;const Zt=new Array(Xe);for(P=0;P<Xe;P++)Zt[P]=0;for(P=q;P<=g;P++){const Re=f[P];if(Ee>=Xe){M(Re,T,O,!0);continue}let rt;if(Re.key!=null)rt=de.get(Re.key);else for(ye=se;ye<=C;ye++)if(Zt[ye-se]===0&&Wt(Re,p[ye])){rt=ye;break}rt===void 0?M(Re,T,O,!0):(Zt[rt-se]=P+1,rt>=dt?dt=rt:zt=!0,v(Re,p[rt],b,null,T,O,V,L,D),Ee++)}const vo=zt?Za(Zt):Ze;for(ye=vo.length-1,P=Xe-1;P>=0;P--){const Re=se+P,rt=p[Re],_o=Re+1<W?p[Re+1].el:I;Zt[P]===0?v(null,rt,b,_o,T,O,V,L,D):zt&&(ye<0||P!==vo[ye]?Y(rt,b,_o,2):ye--)}}},Y=(f,p,b,I,T=null)=>{const{el:O,type:V,transition:L,children:D,shapeFlag:P}=f;if(P&6){Y(f.component.subTree,p,b,I);return}if(P&128){f.suspense.move(p,b,I);return}if(P&64){V.move(f,p,b,At);return}if(V===Ie){o(O,p,b);for(let g=0;g<D.length;g++)Y(D[g],p,b,I);o(f.anchor,p,b);return}if(V===nr){E(f,p,b);return}if(I!==2&&P&1&&L)if(I===0)L.beforeEnter(O),o(O,p,b),He(()=>L.enter(O),T);else{const{leave:g,delayLeave:C,afterLeave:q}=L,se=()=>o(O,p,b),de=()=>{g(O,()=>{se(),q&&q()})};C?C(O,se,de):de()}else o(O,p,b)},M=(f,p,b,I=!1,T=!1)=>{const{type:O,props:V,ref:L,children:D,dynamicChildren:P,shapeFlag:W,patchFlag:g,dirs:C}=f;if(L!=null&&er(L,null,b,f,!0),W&256){p.ctx.deactivate(f);return}const q=W&1&&C,se=!hn(f);let de;if(se&&(de=V&&V.onVnodeBeforeUnmount)&&ut(de,p,f),W&6)ve(f.component,b,I);else{if(W&128){f.suspense.unmount(b,I);return}q&&Vt(f,null,p,"beforeUnmount"),W&64?f.type.remove(f,p,b,T,At,I):P&&(O!==Ie||g>0&&g&64)?pe(P,p,b,!1,!0):(O===Ie&&g&384||!T&&W&16)&&pe(D,p,b),I&&K(f)}(se&&(de=V&&V.onVnodeUnmounted)||q)&&He(()=>{de&&ut(de,p,f),q&&Vt(f,null,p,"unmounted")},b)},K=f=>{const{type:p,el:b,anchor:I,transition:T}=f;if(p===Ie){oe(b,I);return}if(p===nr){$(f);return}const O=()=>{r(b),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(f.shapeFlag&1&&T&&!T.persisted){const{leave:V,delayLeave:L}=T,D=()=>V(b,O);L?L(f.el,O,D):D()}else O()},oe=(f,p)=>{let b;for(;f!==p;)b=h(f),r(f),f=b;r(p)},ve=(f,p,b)=>{const{bum:I,scope:T,update:O,subTree:V,um:L}=f;I&&zn(I),T.stop(),O&&(O.active=!1,M(V,f,p,b)),L&&He(L,p),He(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},pe=(f,p,b,I=!1,T=!1,O=0)=>{for(let V=O;V<f.length;V++)M(f[V],p,b,I,T)},ge=f=>f.shapeFlag&6?ge(f.component.subTree):f.shapeFlag&128?f.suspense.next():h(f.anchor||f.el);let Ae=!1;const ot=(f,p,b)=>{f==null?p._vnode&&M(p._vnode,null,null,!0):v(p._vnode||null,f,p,null,null,null,b),Ae||(Ae=!0,ai(),ci(),Ae=!1),p._vnode=f},At={p:v,um:M,m:Y,r:K,mt:re,mc:_,pc:ie,pbc:z,n:ge,o:e};let Xt,En;return t&&([Xt,En]=t(At)),{render:ot,hydrate:Xt,createApp:Va(ot,Xt)}}function tr({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ft({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Xa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ri(e,t,n=!1){const o=e.children,r=t.children;if(te(o)&&te(r))for(let i=0;i<o.length;i++){const s=o[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=$t(r[i]),l.el=s.el),n||Ri(s,l)),l.type===no&&(l.el=s.el)}}function Za(e){const t=e.slice(),n=[0];let o,r,i,s,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(r=n[n.length-1],e[r]<c){t[o]=r,n.push(o);continue}for(i=0,s=n.length-1;i<s;)l=i+s>>1,e[n[l]]<c?i=l+1:s=l;c<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}function Vi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vi(t)}const Ga=e=>e.__isTeleport,Ie=Symbol.for("v-fgt"),no=Symbol.for("v-txt"),tt=Symbol.for("v-cmt"),nr=Symbol.for("v-stc"),_n=[];let it=null;function B(e=!1){_n.push(it=e?null:[])}function Ja(){_n.pop(),it=_n[_n.length-1]||null}let bn=1;function Ni(e){bn+=e}function Hi(e){return e.dynamicChildren=bn>0?it||Ze:null,Ja(),bn>0&&it&&it.push(e),e}function J(e,t,n,o,r,i){return Hi(G(e,t,n,o,r,i,!0))}function Se(e,t,n,o,r){return Hi(ee(e,t,n,o,r,!0))}function oo(e){return e?e.__v_isVNode===!0:!1}function Wt(e,t){return e.type===t.type&&e.key===t.key}const ro="__vInternal",Fi=({key:e})=>e??null,io=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ke(e)||Oe(e)||ae(e)?{i:Me,r:e,k:t,f:!!n}:e:null);function G(e,t=null,n=null,o=0,r=null,i=e===Ie?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Fi(t),ref:t&&io(t),scopeId:di,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Me};return l?(or(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=ke(n)?8:16),bn>0&&!s&&it&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&it.push(a),a}const ee=Qa;function Qa(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===gi)&&(e=tt),oo(e)){const l=It(e,t,!0);return n&&or(l,n),bn>0&&!i&&it&&(l.shapeFlag&6?it[it.indexOf(e)]=l:it.push(l)),l.patchFlag|=-2,l}if(uc(e)&&(e=e.__vccOpts),t){t=ec(t);let{class:l,style:a}=t;l&&!ke(l)&&(t.class=Pe(l)),we(a)&&(ti(a)&&!te(a)&&(a=Ce({},a)),t.style=Be(a))}const s=ke(e)?1:ga(e)?128:Ga(e)?64:we(e)?4:ae(e)?2:0;return G(e,t,n,o,r,s,i,!0)}function ec(e){return e?ti(e)||ro in e?Ce({},e):e:null}function It(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,l=t?so(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Fi(l),ref:t&&t.ref?n&&r?te(r)?r.concat(io(t)):[r,io(t)]:io(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ie?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&It(e.ssContent),ssFallback:e.ssFallback&&It(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Tt(e=" ",t=0){return ee(no,null,e,t)}function Le(e="",t=!1){return t?(B(),Se(tt,null,e)):ee(tt,null,e)}function ct(e){return e==null||typeof e=="boolean"?ee(tt):te(e)?ee(Ie,null,e.slice()):typeof e=="object"?$t(e):ee(no,null,String(e))}function $t(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:It(e)}function or(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(te(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),or(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(ro in t)?t._ctx=Me:r===3&&Me&&(Me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ae(t)?(t={default:t,_ctx:Me},n=32):(t=String(t),o&64?(n=16,t=[Tt(t)]):n=8);e.children=t,e.shapeFlag|=n}function so(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=Pe([t.class,o.class]));else if(r==="style")t.style=Be([t.style,o.style]);else if(Pn(r)){const i=t[r],s=o[r];s&&i!==s&&!(te(i)&&i.includes(s))&&(t[r]=i?[].concat(i,s):s)}else r!==""&&(t[r]=o[r])}return t}function ut(e,t,n,o=null){Je(e,t,7,[n,o])}const tc=Ei();let nc=0;function oc(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||tc,i={uid:nc++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Cl(!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:Oi(o,r),emitsOptions:fi(o,r),emit:null,emitted:null,propsDefaults:fe,inheritAttrs:o.inheritAttrs,ctx:fe,data:fe,props:fe,attrs:fe,slots:fe,refs:fe,setupState:fe,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=aa.bind(null,i),e.ce&&e.ce(i),i}let ze=null;const rr=()=>ze||Me;let lo,ir;{const e=ko(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),i=>{r.length>1?r.forEach(s=>s(i)):r[0](i)}};lo=t("__VUE_INSTANCE_SETTERS__",n=>ze=n),ir=t("__VUE_SSR_SETTERS__",n=>ao=n)}const yn=e=>{const t=ze;return lo(e),e.scope.on(),()=>{e.scope.off(),lo(t)}},Wi=()=>{ze&&ze.scope.off(),lo(null)};function Ki(e){return e.vnode.shapeFlag&4}let ao=!1;function rc(e,t=!1){t&&ir(t);const{props:n,children:o}=e.vnode,r=Ki(e);Na(e,n,r,t),Wa(e,o);const i=r?ic(e,t):void 0;return t&&ir(!1),i}function ic(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ni(new Proxy(e.ctx,La));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?lc(e):null,i=yn(e);wt();const s=ht(o,e,0,[e.props,r]);if(xt(),i(),$r(s)){if(s.then(Wi,Wi),t)return s.then(l=>{Ui(e,l,t)}).catch(l=>{Wn(l,e,0)});e.asyncDep=s}else Ui(e,s,t)}else qi(e,t)}function Ui(e,t,n){ae(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:we(t)&&(e.setupState=ri(t)),qi(e,n)}let Yi;function qi(e,t,n){const o=e.type;if(!e.render){if(!t&&Yi&&!o.render){const r=o.template||Zo(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=Ce(Ce({isCustomElement:i,delimiters:l},s),a);o.render=Yi(r,c)}}e.render=o.render||We}{const r=yn(e);wt();try{Aa(e)}finally{xt(),r()}}}function sc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ne(e,"get","$attrs"),t[n]}}))}function lc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return sc(e)},slots:e.slots,emit:e.emit,expose:t}}function co(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ri(ni(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mn)return mn[n](e)},has(t,n){return n in t||n in mn}}))}const ac=/(?:^|[-_])(\w)/g,cc=e=>e.replace(ac,t=>t.toUpperCase()).replace(/[-_]/g,"");function Xi(e,t=!0){return ae(e)?e.displayName||e.name:e.name||t&&e.__name}function Zi(e,t,n=!1){let o=Xi(t);if(!o&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(o=r[1])}if(!o&&e&&e.parent){const r=i=>{for(const s in i)if(i[s]===t)return s};o=r(e.components||e.parent.type.components)||r(e.appContext.components)}return o?cc(o):n?"App":"Anonymous"}function uc(e){return ae(e)&&"__vccOpts"in e}const ce=(e,t)=>Yl(e,t,ao);function nn(e,t,n=fe){const o=rr(),r=Ve(t),i=Ke(t),s=Jl((a,c)=>{let u;return ba(()=>{const d=e[t];st(u,d)&&(u=d,c())}),{get(){return a(),n.get?n.get(u):u},set(d){const h=o.vnode.props;!(h&&(t in h||r in h||i in h)&&(`onUpdate:${t}`in h||`onUpdate:${r}`in h||`onUpdate:${i}`in h))&&st(d,u)&&(u=d,c()),o.emit(`update:${t}`,n.set?n.set(d):d)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return s[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?e[l]||{}:s,done:!1}:{done:!0}}}},s}function Gi(e,t,n){const o=arguments.length;return o===2?we(t)&&!te(t)?oo(t)?ee(e,null,[t]):ee(e,t):ee(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&oo(n)&&(n=[n]),ee(e,t,n))}const fc="3.4.15";/**
17
+ * @vue/runtime-dom v3.4.15
18
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
19
+ * @license MIT
20
+ **/const dc="http://www.w3.org/2000/svg",pc="http://www.w3.org/1998/Math/MathML",Et=typeof document<"u"?document:null,Ji=Et&&Et.createElement("template"),hc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?Et.createElementNS(dc,e):t==="mathml"?Et.createElementNS(pc,e):Et.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Et.createTextNode(e),createComment:e=>Et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Et.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Ji.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=Ji.content;if(o==="svg"||o==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Pt="transition",wn="animation",xn=Symbol("_vtc"),on=(e,{slots:t})=>Gi(xa,gc(e),t);on.displayName="Transition";const Qi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};on.props=Ce({},_i,Qi);const Kt=(e,t=[])=>{te(e)?e.forEach(n=>n(...t)):e&&e(...t)},es=e=>e?te(e)?e.some(t=>t.length>1):e.length>1:!1;function gc(e){const t={};for(const w in e)w in Qi||(t[w]=e[w]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,S=mc(r),v=S&&S[0],A=S&&S[1],{onBeforeEnter:j,onEnter:X,onEnterCancelled:E,onLeave:$,onLeaveCancelled:x,onBeforeAppear:m=j,onAppear:N=X,onAppearCancelled:_=E}=t,U=(w,H,re)=>{Ut(w,H?u:l),Ut(w,H?c:s),re&&re()},z=(w,H)=>{w._isLeaving=!1,Ut(w,d),Ut(w,y),Ut(w,h),H&&H()},le=w=>(H,re)=>{const k=w?N:X,Z=()=>U(H,w,re);Kt(k,[H,Z]),ts(()=>{Ut(H,w?a:i),Ot(H,w?u:l),es(k)||ns(H,o,v,Z)})};return Ce(t,{onBeforeEnter(w){Kt(j,[w]),Ot(w,i),Ot(w,s)},onBeforeAppear(w){Kt(m,[w]),Ot(w,a),Ot(w,c)},onEnter:le(!1),onAppear:le(!0),onLeave(w,H){w._isLeaving=!0;const re=()=>z(w,H);Ot(w,d),bc(),Ot(w,h),ts(()=>{w._isLeaving&&(Ut(w,d),Ot(w,y),es($)||ns(w,o,A,re))}),Kt($,[w,re])},onEnterCancelled(w){U(w,!1),Kt(E,[w])},onAppearCancelled(w){U(w,!0),Kt(_,[w])},onLeaveCancelled(w){z(w),Kt(x,[w])}})}function mc(e){if(e==null)return null;if(we(e))return[sr(e.enter),sr(e.leave)];{const t=sr(e);return[t,t]}}function sr(e){return Co(e)}function Ot(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[xn]||(e[xn]=new Set)).add(t)}function Ut(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[xn];n&&(n.delete(t),n.size||(e[xn]=void 0))}function ts(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let vc=0;function ns(e,t,n,o){const r=e._endId=++vc,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=_c(e,t);if(!s)return o();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,h),i()},h=y=>{y.target===e&&++u>=a&&d()};setTimeout(()=>{u<a&&d()},l+1),e.addEventListener(c,h)}function _c(e,t){const n=window.getComputedStyle(e),o=S=>(n[S]||"").split(", "),r=o(`${Pt}Delay`),i=o(`${Pt}Duration`),s=os(r,i),l=o(`${wn}Delay`),a=o(`${wn}Duration`),c=os(l,a);let u=null,d=0,h=0;t===Pt?s>0&&(u=Pt,d=s,h=i.length):t===wn?c>0&&(u=wn,d=c,h=a.length):(d=Math.max(s,c),u=d>0?s>c?Pt:wn:null,h=u?u===Pt?i.length:a.length:0);const y=u===Pt&&/\b(transform|all)(,|$)/.test(o(`${Pt}Property`).toString());return{type:u,timeout:d,propCount:h,hasTransform:y}}function os(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>rs(n)+rs(e[o])))}function rs(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function bc(){return document.body.offsetHeight}function yc(e,t,n){const o=e[xn];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const lr=Symbol("_vod"),is={beforeMount(e,{value:t},{transition:n}){e[lr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Sn(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),Sn(e,!0),o.enter(e)):o.leave(e,()=>{Sn(e,!1)}):Sn(e,t))},beforeUnmount(e,{value:t}){Sn(e,t)}};function Sn(e,t){e.style.display=t?e[lr]:"none"}const wc=Symbol("");function xc(e,t,n){const o=e.style,r=o.display,i=ke(n);if(n&&!i){if(t&&!ke(t))for(const s in t)n[s]==null&&ar(o,s,"");for(const s in n)ar(o,s,n[s])}else if(i){if(t!==n){const s=o[wc];s&&(n+=";"+s),o.cssText=n}}else t&&e.removeAttribute("style");lr in e&&(o.display=r)}const ss=/\s*!important$/;function ar(e,t,n){if(te(n))n.forEach(o=>ar(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Sc(e,t);ss.test(n)?e.setProperty(Ke(o),n.replace(ss,""),"important"):e[o]=n}}const ls=["Webkit","Moz","ms"],cr={};function Sc(e,t){const n=cr[t];if(n)return n;let o=Ve(t);if(o!=="filter"&&o in e)return cr[t]=o;o=An(o);for(let r=0;r<ls.length;r++){const i=ls[r]+o;if(i in e)return cr[t]=i}return t}const as="http://www.w3.org/1999/xlink";function Cc(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(as,t.slice(6,t.length)):e.setAttributeNS(as,t,n);else{const i=Sl(t);n==null||i&&!Mr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function kc(e,t,n,o,r,i,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,r,i),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const c=l==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Mr(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function rn(e,t,n,o){e.addEventListener(t,n,o)}function Ic(e,t,n,o){e.removeEventListener(t,n,o)}const cs=Symbol("_vei");function Tc(e,t,n,o,r=null){const i=e[cs]||(e[cs]={}),s=i[t];if(o&&s)s.value=o;else{const[l,a]=$c(t);if(o){const c=i[t]=Oc(o,r);rn(e,l,c,a)}else s&&(Ic(e,l,s,a),i[t]=void 0)}}const us=/(?:Once|Passive|Capture)$/;function $c(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):Ke(e.slice(2)),t]}let ur=0;const Ec=Promise.resolve(),Pc=()=>ur||(Ec.then(()=>ur=0),ur=Date.now());function Oc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Je(Mc(o,n.value),t,5,[o])};return n.value=e,n.attached=Pc(),n}function Mc(e,t){if(te(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Lc=(e,t,n,o,r,i,s,l,a)=>{const c=r==="svg";t==="class"?yc(e,o,c):t==="style"?xc(e,n,o):Pn(t)?bo(t)||Tc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ac(e,t,o,c))?kc(e,t,o,i,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Cc(e,t,o,c))};function Ac(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&fs(t)&&ae(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return fs(t)&&ke(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function zc(e,t){const n=Te(e);class o extends fr{constructor(i){super(n,i,t)}}return o.def=n,o}const jc=typeof HTMLElement<"u"?HTMLElement:class{};class fr extends jc{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&o?o(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),gt(()=>{this._connected||(ms(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);this._ob=new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(o,r=!1)=>{const{props:i,styles:s}=o;let l;if(i&&!te(i))for(const a in i){const c=i[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=Co(this._props[a])),(l||(l=Object.create(null)))[Ve(a)]=!0)}this._numberProps=l,r&&this._resolveProps(o),this._applyStyles(s),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=te(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(Ve))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i)}})}_setAttr(t){let n=this.getAttribute(t);const o=Ve(t);this._numberProps&&this._numberProps[o]&&(n=Co(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(Ke(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ke(t),n+""):n||this.removeAttribute(Ke(t))))}_update(){ms(this._createVNode(),this.shadowRoot)}_createVNode(){const t=ee(this._def,Ce({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(i,s)=>{this.dispatchEvent(new CustomEvent(i,{detail:s}))};n.emit=(i,...s)=>{o(i,s),Ke(i)!==i&&o(Ke(i),s)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof fr){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 ds=e=>{const t=e.props["onUpdate:modelValue"]||!1;return te(t)?n=>zn(t,n):t};function Bc(e){e.target.composing=!0}function ps(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const dr=Symbol("_assign"),Dc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[dr]=ds(r);const i=o||r.props&&r.props.type==="number";rn(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=So(l)),e[dr](l)}),n&&rn(e,"change",()=>{e.value=e.value.trim()}),t||(rn(e,"compositionstart",Bc),rn(e,"compositionend",ps),rn(e,"change",ps))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e[dr]=ds(i),e.composing)return;const s=r||e.type==="number"?So(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Rc=["ctrl","shift","alt","meta"],Vc={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)=>Rc.some(n=>e[`${n}Key`]&&!t.includes(n))},nt=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...i)=>{for(let s=0;s<t.length;s++){const l=Vc[t[s]];if(l&&l(r,t))return}return e(r,...i)})},Nc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},hs=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const i=Ke(r.key);if(t.some(s=>s===i||Nc[s]===i))return e(r)})},Hc=Ce({patchProp:Lc},hc);let gs;function Fc(){return gs||(gs=Ya(Hc))}const ms=(...e)=>{Fc().render(...e)},Wc=`.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}}
21
+ `,xe=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Kc={},Uc={class:"loading-indicator"};function Yc(e,t){return B(),J("div",Uc)}const pr=xe(Kc,[["render",Yc],["styles",[Wc]]]),qc=Object.freeze(Object.defineProperty({__proto__:null,default:pr},Symbol.toStringTag,{value:"Module"})),Xc={key:0,class:"fixed inset-0 h-[101%] overflow-auto scrollbar-none flex justify-center items-center z-10 bg-black"},Zc={class:"flex justify-between items-end"},Gc={class:"inline-block children-pointer-events-auto w-1/3"},Jc={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Qc={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},eu={class:"inline-block z-20 relative"},vs=Te({__name:"ReaderLayout",props:{loading:{type:Boolean},immediate:{type:Boolean},idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){return(t,n)=>{const o=pr;return B(),J("div",{class:Pe(["fixed top-0 left-0 w-screen h-screen text-stone-100 font-sans text-base overflow-auto scrollbar-none overscroll-contain",{"cursor-none":t.idle,"bg-black":t.immediate||!t.loading,"opacity-0":!t.immediate&&t.loading,"duration-200 transition-colors":!t.immediate}])},[t.loading&&t.immediate?(B(),J("div",Xc,[ee(o)])):Le("",!0),$e(t.$slots,"default"),G("div",{id:"controls",class:Pe(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear left-0 top-0 w-screen h-screen flex flex-col justify-between p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3",{"opacity-100 z-20":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}])},[G("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:Be({paddingTop:`${t.spaceTop||0}px`})},[$e(t.$slots,"back"),$e(t.$slots,"exit"),$e(t.$slots,"chapter-nav")],4),G("div",Zc,[G("div",Gc,[$e(t.$slots,"page-nav")]),G("div",Jc,[$e(t.$slots,"reset-zoom")]),G("div",Qc,[$e(t.$slots,"entry"),G("div",eu,[$e(t.$slots,"settings")]),$e(t.$slots,"full-screen"),$e(t.$slots,"play")])]),G("div",{class:Pe(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[$e(t.$slots,"progress")],2)],2)],2)}}}),tu=Object.freeze(Object.defineProperty({__proto__:null,default:vs},Symbol.toStringTag,{value:"Module"})),nu={},ou={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},ru=[G("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[G("circle",{cx:"14",cy:"14",r:"12"}),G("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function iu(e,t){return B(),J("svg",ou,ru)}const _s=xe(nu,[["render",iu]]),su=Object.freeze(Object.defineProperty({__proto__:null,default:_s},Symbol.toStringTag,{value:"Module"})),lu={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"},au={class:"block w-4 h-4"},cu={class:"w-12"},bs=Te({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=_s;return t.zoom!==1?(B(),J("button",lu,[G("div",au,[ee(o)]),G("div",cu,Ge(Math.ceil(t.zoom*100))+"%",1)])):Le("",!0)}}}),uu=Object.freeze(Object.defineProperty({__proto__:null,default:bs},Symbol.toStringTag,{value:"Module"})),fu={},du={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},pu=[G("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function hu(e,t){return B(),J("svg",du,pu)}const hr=xe(fu,[["render",hu]]),gu=Object.freeze(Object.defineProperty({__proto__:null,default:hr},Symbol.toStringTag,{value:"Module"})),mu={},vu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},_u=[G("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),G("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function bu(e,t){return B(),J("svg",vu,_u)}const gr=xe(mu,[["render",bu]]),yu=Object.freeze(Object.defineProperty({__proto__:null,default:gr},Symbol.toStringTag,{value:"Module"}));function wu({touchDevice:e}){const t=Q(!1);let n=0;return to("busy:touchDevice",e),to("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function mr(){const e=Ht("busy:touchDevice"),t=Ht("setBusyState");let n=!1;return at(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const xu=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,i=.65;const s=setInterval(a,20);l();function l(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function a(){const c=+n||50;r<=c?(r++,i-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${i}`):(o.remove(),clearInterval(s))}},sn={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>xu(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},Su={class:"group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200 rounđe-full p-2 w-full h-full inline-flex justify-center items-center"},uo=Te({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=t,r=mr();let i=!1;function s(){i||(i=!0,r(!0,{desktopOnly:!0}))}function l(){i&&(i=!1,r(!1,{desktopOnly:!0}))}function a(c){n.disabled?c.preventDefault():o("click")}return(c,u)=>mt((B(),Se(pa(c.href?"a":"button"),so(c.href?{href:c.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full flex-shrink-0",{"cursor-default text-stone-400 hover:text-stone-400":c.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!c.disabled,"bg-black bg-opacity-50":!c.transparent}],onClick:nt(a,["stop"]),onMouseenter:s,onMouseleave:l}),{default:ue(()=>[G("div",Su,[$e(c.$slots,"default")])]),_:3},16,["class"])),[[ne(sn),c.disabled?0:15]])}}),Cu=Object.freeze(Object.defineProperty({__proto__:null,default:uo},Symbol.toStringTag,{value:"Module"})),ku={},Iu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Tu=[G("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)];function $u(e,t){return B(),J("svg",Iu,Tu)}const ys=xe(ku,[["render",$u]]),Eu=Object.freeze(Object.defineProperty({__proto__:null,default:ys},Symbol.toStringTag,{value:"Module"}));class Pu{constructor(){pl(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 Ou(){const e=new Pu;return at(()=>e.dispose()),to("keyController",e),e}function fo(e){const t=Ht("keyController");et(()=>t.addListener(e)),at(()=>t.removeListener(e))}const Mu={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},Lu={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3"},Au={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},ws=Te({__name:"BottomSheet",props:Nt({name:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=nn(e,"modelValue");fo({onKeyDown:o});const n=mr();_e(t,r=>n(r));function o(r){t.value&&r.key==="Escape"&&(t.value=!1,r.preventDefault())}return(r,i)=>{const s=ys,l=uo;return B(),J("div",{class:Pe(["fixed-screen flex flex-col items-center justify-end select-none",{"!pointer-events-none":!t.value}]),onClick:i[3]||(i[3]=()=>t.value=!1)},[ee(on,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:ue(()=>[t.value?(B(),J("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]=nt(()=>{},["stop"])),onWheelPassive:i[2]||(i[2]=nt(()=>{},["stop"]))},[G("div",Mu,[ee(l,{transparent:"",onClick:i[0]||(i[0]=()=>t.value=!1)},{default:ue(()=>[ee(s)]),_:1}),G("div",Lu,Ge(r.name),1),$e(r.$slots,"actions")]),G("div",Au,[$e(r.$slots,"default")])],32)):Le("",!0)]),_:3})],2)}}}),zu=Object.freeze(Object.defineProperty({__proto__:null,default:ws},Symbol.toStringTag,{value:"Module"})),ju=["min","max","step"],Bu={class:"flex-shrink-0"},xs=xe(Te({__name:"InputPercentage",props:Nt({min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=nn(e,"modelValue"),n=ce({get(){return t.value},set(o){t.value=+o}});return(o,r)=>(B(),J("div",{class:Pe(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":o.disabled}]),style:Be({"--percentage":`${(n.value-o.min)/(o.max-o.min)*100}%`})},[mt(G("input",{"onUpdate:modelValue":r[0]||(r[0]=i=>n.value=i),type:"range",min:o.min,max:o.max,step:o.step??1,class:"flex-grow"},null,8,ju),[[Dc,n.value]]),G("p",Bu,[$e(o.$slots,"suffix")])],6))}}),[["styles",[`input[type=range]{--tw-bg-opacity:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to right,#d6d3d1 var(--percentage),#78716c var(--percentage));background-color:rgb(120 113 108/var(--tw-bg-opacity));border-radius:2px;border-style:none;cursor:pointer;height:6px;opacity:.9;outline:2px solid transparent;outline-offset:2px}input[type=range]::-webkit-slider-thumb{--tw-border-opacity:1;--tw-bg-opacity:1;-webkit-appearance:none!important;background-color:rgb(214 211 209/var(--tw-bg-opacity));border-color:rgb(214 211 209/var(--tw-border-opacity));border-radius:2px;border-style:solid;border-width:2px;cursor:pointer;height:28px;transition-duration:.2s;width:16px}input[type=range]:hover{opacity:1}
22
+ `]]]),Du=Object.freeze(Object.defineProperty({__proto__:null,default:xs},Symbol.toStringTag,{value:"Module"})),Ru={class:"flex items-center mb-8 last:mb-0"},Vu={class:"flex-grow overflow-hidden"},Ss=Te({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(B(),J("div",Ru,[G("div",{class:Pe(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Ge(t.label),3),G("div",Vu,[$e(t.$slots,"default")])]))}}),Nu=Object.freeze(Object.defineProperty({__proto__:null,default:Ss},Symbol.toStringTag,{value:"Module"})),Hu=["onClick","onKeyup"],Cs=Te({__name:"InputSelect",props:Nt({items:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=nn(e,"modelValue"),o=Q(null),r=Q({width:"",left:""});et(()=>{let s=!1;_e(n,l=>{var c;const a=(c=o.value)==null?void 0:c.children[l+1];a&&(r.value={width:a.offsetWidth+"px",left:a.offsetLeft+"px"},a.scrollIntoView({behavior:s?"smooth":"auto",block:"center",inline:"center"}),s=!0)},{immediate:!0})});function i(s){n.value=s}return(s,l)=>(B(),J("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[G("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Be(r.value)},null,4),(B(!0),J(Ie,null,gn(t.items,(a,c)=>mt((B(),J("div",{key:c,tabindex:"0",class:Pe(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.value,"text-stone-400":c!=n.value}]),onClick:()=>i(c),onKeyup:[hs(()=>i(c),["enter"]),hs(()=>i(c),["space"])]},[Tt(Ge(a),1)],42,Hu)),[[ne(sn),30]])),128))],512))}}),Fu=Object.freeze(Object.defineProperty({__proto__:null,default:Cs},Symbol.toStringTag,{value:"Module"})),Wu={},Ku={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Uu=[G("path",{fill:"currentColor",d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"},null,-1)];function Yu(e,t){return B(),J("svg",Ku,Uu)}const ks=xe(Wu,[["render",Yu]]),qu=Object.freeze(Object.defineProperty({__proto__:null,default:ks},Symbol.toStringTag,{value:"Module"})),Xu={},Zu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Gu=[G("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),G("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Ju(e,t){return B(),J("svg",Zu,Gu)}const Is=xe(Xu,[["render",Ju]]),Qu=Object.freeze(Object.defineProperty({__proto__:null,default:Is},Symbol.toStringTag,{value:"Module"}));function ef(e){if(e)try{return JSON.parse(e)}catch{return}}function tf(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var ft=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(ft||{}),Yt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Yt||{});const nf=.25,of=5,rf=.25,Cn=.25,kn=5,sf=.05,lf=0,af=4;function cf(e){var j,X,E,$,x;const{titleName:t,isWebtoon:n}=e,o=ce(()=>t.value?tf(t.value):location.hostname),r=Q(uf(`tkr:${o.value}`)),i=m=>{r.value=m;const N=`tkr:${o.value}`;!m||!Object.keys(m).length?localStorage.removeItem(N):localStorage.setItem(N,JSON.stringify(m))},s=m=>{if(!r.value){i(m);return}const N={...r.value};Object.entries(m).forEach(([_,U])=>{U===void 0?delete N[_]:N[_]=U}),i(N)},l=Q(((j=r.value)==null?void 0:j.style)??e.defaultStyle??Yt.longStrip),a=Q(((X=r.value)==null?void 0:X.direction)??e.defaultDirection??ft.vertical),c=Q((E=r.value)==null?void 0:E.gap),u=Q((($=r.value)==null?void 0:$.speed)??1),d=Q(((x=r.value)==null?void 0:x.zoom)??1),h=ce({get(){return n.value?Yt.longStrip:l.value},set:m=>{l.value=m,s({style:m}),m!==Yt.longStrip&&a.value===ft.vertical&&(y.value=ft.rtl)}}),y=ce({get:()=>n.value?ft.vertical:a.value,set:m=>{a.value=m,s({direction:m})}}),S=ce({get:()=>c.value??(e.maybeWebtoon.value?0:1),set(m){c.value=m,s({gap:m})}}),v=ce({get:()=>u.value,set(m){u.value=m,s({speed:m===1?void 0:m})}}),A=ce({get:()=>d.value,set(m){d.value=m,s({zoom:m===1?void 0:m})}});return{direction:y,style:h,gap:S,speed:v,zoom:A,isLongStrip:ce(()=>h.value===Yt.longStrip),isDouble:ce(()=>h.value===Yt.double),isRTL:ce(()=>y.value===ft.rtl),isVertical:ce(()=>y.value===ft.vertical)}}function uf(e){const t=localStorage.getItem(e),n=ef(t),o={};return n?(n.style!==void 0&&Object.values(Yt).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(ft).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=lf&&n.gap<=af&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=Cn&&n.speed<=kn&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=Cn&&n.zoom<=kn&&(o.zoom=n.zoom),Object.keys(o).length?o:void 0):o}const Ts=Te({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=e,o=t,r=Q(!1),i=ce(()=>n.name??location.hostname);fo({onKeyUp:a=>{a.key==="s"&&!a.metaKey&&!a.ctrlKey&&(r.value=!r.value)}});function s(a){o("update:zoom",Math.round(a)/100)}function l(){r.value=!1,o("help")}return(a,c)=>{const u=Is,d=uo,h=ks,y=Cs,S=Ss,v=xs,A=ws;return B(),J(Ie,null,[ee(d,{title:"Reader settings (S)",disabled:a.disabled,onClick:c[0]||(c[0]=()=>r.value=!0)},{default:ue(()=>[ee(u)]),_:1},8,["disabled"]),ee(A,{modelValue:r.value,"onUpdate:modelValue":c[5]||(c[5]=j=>r.value=j),name:i.value},{actions:ue(()=>[ee(d,{transparent:"",onClick:l},{default:ue(()=>[ee(h)]),_:1})]),default:ue(()=>[ee(S,{label:"Style"},{default:ue(()=>[ee(y,{"model-value":a.readerStyle,items:a.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":c[1]||(c[1]=j=>o("update:reader-style",j))},null,8,["model-value","items"])]),_:1}),ee(S,{label:"Direction"},{default:ue(()=>[ee(y,{"model-value":a.direction,items:a.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":c[2]||(c[2]=j=>o("update:direction",j))},null,8,["model-value","items"])]),_:1}),ee(S,{label:"Gap"},{default:ue(()=>[ee(y,{"model-value":a.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":c[3]||(c[3]=j=>o("update:gap",j))},null,8,["model-value"])]),_:1}),ee(S,{label:"Speed"},{default:ue(()=>[ee(v,{"model-value":a.speed,min:ne(nf),max:ne(of),step:ne(rf),suffix:"x","onUpdate:modelValue":c[4]||(c[4]=j=>o("update:speed",j))},{suffix:ue(()=>[Tt(Ge(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),ee(S,{label:"Zoom"},{default:ue(()=>[ee(v,{"model-value":Math.ceil(a.zoom*100),min:ne(Cn)*100,max:ne(kn)*100,step:ne(sf)*100,"onUpdate:modelValue":s},{suffix:ue(()=>[Tt(Ge(Math.ceil(a.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),ff=Object.freeze(Object.defineProperty({__proto__:null,default:Ts},Symbol.toStringTag,{value:"Module"})),df={},pf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},hf=[G("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function gf(e,t){return B(),J("svg",pf,hf)}const $s=xe(df,[["render",gf]]),mf=Object.freeze(Object.defineProperty({__proto__:null,default:$s},Symbol.toStringTag,{value:"Module"})),vf={},_f={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},bf=[G("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function yf(e,t){return B(),J("svg",_f,bf)}const Es=xe(vf,[["render",yf]]),wf=Object.freeze(Object.defineProperty({__proto__:null,default:Es},Symbol.toStringTag,{value:"Module"})),xf={},Sf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Cf=[G("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),G("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),G("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 kf(e,t){return B(),J("svg",Sf,Cf)}const Ps=xe(xf,[["render",kf]]),If=Object.freeze(Object.defineProperty({__proto__:null,default:Ps},Symbol.toStringTag,{value:"Module"})),Tf={},$f={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ef=[G("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),G("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),G("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 Pf(e,t){return B(),J("svg",$f,Ef)}const Os=xe(Tf,[["render",Pf]]),Of=Object.freeze(Object.defineProperty({__proto__:null,default:Os},Symbol.toStringTag,{value:"Module"})),Mf={},Lf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Af=[G("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function zf(e,t){return B(),J("svg",Lf,Af)}const Ms=xe(Mf,[["render",zf]]),jf=Object.freeze(Object.defineProperty({__proto__:null,default:Ms},Symbol.toStringTag,{value:"Module"})),Bf=["aria-hidden"],Df=["onClick"],Rf={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"},Vf={class:"whitespace-nowrap"},vr=Te({__name:"ButtonDropdown",props:Nt({label:{},title:{},items:{},disabled:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=nn(e,"modelValue"),o=Q(null),r=Q(!1),i=Q(null),s=Q(!1),l=Q(!1),a=Q(!1);fo({onKeyDown:y});const c=mr();function u(){if(!t.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(d(),gt(()=>setTimeout(()=>{var $,x;(x=($=i.value)==null?void 0:$.children[n.value])==null||x.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),v(o.value)):setTimeout(A,250)}function d(){const $=o.value;if($){const x=$.getBoundingClientRect(),m=x.x+x.width/2;s.value=x.y>window.innerHeight/2,l.value=m<window.innerWidth/3,a.value=m>window.innerWidth/3*2}}function h($){$!=n.value&&(n.value=$),u()}function y($){r.value&&$.key==="Escape"&&(u(),$.preventDefault())}let S=[];function v($){const x=window.getComputedStyle($).zIndex,m=$.style.zIndex;(!x||!(+x>0))&&((!$.parentElement||$.parentElement.childElementCount>1)&&($.style.zIndex="1",S.push({el:$,zIndex:m})),$.parentElement&&v($.parentElement))}function A(){S.forEach(({el:$,zIndex:x})=>{$.style.zIndex=x??""}),S=[]}let j=!1;function X(){j||(j=!0,c(!0,{desktopOnly:!0}))}function E(){j&&(j=!1,c(!1,{desktopOnly:!0}))}return($,x)=>{const m=Ms;return B(),J("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(B(),J("div",{key:0,class:"fixed-screen bg-transparent",onClick:u})):Le("",!0),$.items.length?(B(),Se(on,{key:1,name:"slide-fade","enter-from-class":"scale-y-90 opacity-0 pointer-events-none","leave-to-class":"scale-y-90 opacity-0 pointer-events-none"},{default:ue(()=>[r.value?(B(),J("ul",{key:0,ref_key:"list",ref:i,"aria-hidden":!r.value,class:Pe(["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":s.value,"origin-top top-full translate-y-1.5":!s.value,"left-1/2 -ml-20 text-center":!l.value&&!a.value,"right-0 text-right":a.value}]),onWheelPassive:x[0]||(x[0]=nt(()=>{},["stop"]))},[(B(!0),J(Ie,null,gn($.items,(N,_)=>mt((B(),J("li",{key:_,tabindex:"-1",class:Pe(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":_===n.value}]),onClick:()=>h(_)},[G("div",{class:Pe(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":_>0}])},[$e($.$slots,"item",{item:N},()=>[Tt(Ge(N),1)])],2)],10,Df)),[[ne(sn),30]])),128))],42,Bf)):Le("",!0)]),_:3})):Le("",!0),mt((B(),J("button",so({type:"button",tabindex:"-1",class:["w-full h-10 max-h-full rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":$.disabled}]},$.title?{title:$.title}:{},{onClick:nt(u,["stop"]),onMouseenter:X,onMouseleave:E}),[G("div",Rf,[G("span",Vf,Ge($.label),1),$.items.length?(B(),J("span",{key:0,class:Pe(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":s.value}]),"aria-hidden":"true"},[ee(m)],2)):Le("",!0)])],16)),[[ne(sn),30]])],512)}}}),Nf=Object.freeze(Object.defineProperty({__proto__:null,default:vr},Symbol.toStringTag,{value:"Module"})),Ls=Te({__name:"PageNav",props:Nt({disabled:{type:Boolean},pages:{},totalImgs:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=nn(e,"modelValue"),o=ce(()=>t.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),r=ce(()=>{const a=n.value,c=t.pages.findIndex(u=>u.some(({index:d})=>d===a));return c===-1?t.pages.length-1:c}),i=ce(()=>t.pages.length?`${o.value[r.value]}/${t.totalImgs}`:"--");function s(a){const c=t.pages[a][0].index;l(c)}function l(a){n.value=a}return(a,c)=>{const u=vr;return B(),Se(u,{"model-value":r.value,label:i.value,title:"Current page",items:o.value,disabled:a.disabled,"onUpdate:modelValue":s},null,8,["model-value","label","items","disabled"])}}}),Hf=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),Ff={},Wf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Kf=[G("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Uf(e,t){return B(),J("svg",Wf,Kf)}const As=xe(Ff,[["render",Uf]]),Yf=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"})),qf={},Xf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Zf=[G("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Gf(e,t){return B(),J("svg",Xf,Zf)}const zs=xe(qf,[["render",Gf]]),Jf=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),Qf={},ed={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},td=[G("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function nd(e,t){return B(),J("svg",ed,td)}const js=xe(Qf,[["render",nd]]),od=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),rd={},id={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},sd=[G("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function ld(e,t){return B(),J("svg",id,sd)}const Bs=xe(rd,[["render",ld]]),ad=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"}));var Ds;const _r=typeof window<"u",cd=e=>typeof e=="string",Mt=()=>{};_r&&((Ds=window==null?void 0:window.navigator)!=null&&Ds.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function po(e){return typeof e=="function"?e():ne(e)}function Rs(e,t){function n(...o){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(i)})}return n}function ud(e,t={}){let n,o,r=Mt;const i=l=>{clearTimeout(l),r(),r=Mt};return l=>{const a=po(e),c=po(t.maxWait);return n&&i(n),a<=0||c!==void 0&&c<=0?(o&&(i(o),o=null),Promise.resolve(l())):new Promise((u,d)=>{r=t.rejectOnCancel?d:u,c&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&i(o),o=null,u(l())},a)})}}function fd(e,t=!0,n=!0,o=!1){let r=0,i,s=!0,l=Mt,a;const c=()=>{i&&(clearTimeout(i),i=void 0,l(),l=Mt)};return d=>{const h=po(e),y=Date.now()-r,S=()=>a=d();if(c(),h<=0)return r=Date.now(),S();if(y>h&&(n||!s))r=Date.now(),S();else if(t)return new Promise((v,A)=>{l=o?A:v,i=setTimeout(()=>{r=Date.now(),s=!0,v(S()),c()},h-y)});return!n&&!i&&(i=setTimeout(()=>s=!0,h)),s=!1,a}}function dd(e){return e}function br(e){return Ar()?(Il(e),!0):!1}function Ye(e,t=200,n={}){return Rs(ud(t,n),e)}function Vs(e,t=200,n=!1,o=!0,r=!1){return Rs(fd(t,n,o,r),e)}function Ns(e,t=!0){rr()?et(e):t?e():gt(e)}function qt(e){var t;const n=po(e);return(t=n==null?void 0:n.$el)!=null?t:n}const In=_r?window:void 0,pd=_r?window.document:void 0;function Lt(...e){let t,n,o,r;if(cd(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=In):[t,n,o,r]=e,!t)return Mt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,d,h)=>(u.addEventListener(d,h,r),()=>u.removeEventListener(d,h,r)),a=_e(()=>qt(t),u=>{s(),u&&i.push(...n.flatMap(d=>o.map(h=>l(u,d,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return br(c),c}function Hs(e,t=!1){const n=Q(),o=()=>n.value=!!e();return o(),Ns(o,t),n}const Fs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ws="__vueuse_ssr_handlers__";Fs[Ws]=Fs[Ws]||{};function Ks({document:e=pd}={}){if(!e)return Q("visible");const t=Q(e.visibilityState);return Lt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Us=Object.getOwnPropertySymbols,hd=Object.prototype.hasOwnProperty,gd=Object.prototype.propertyIsEnumerable,md=(e,t)=>{var n={};for(var o in e)hd.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Us)for(var o of Us(e))t.indexOf(o)<0&&gd.call(e,o)&&(n[o]=e[o]);return n};function vd(e,t,n={}){const o=n,{window:r=In}=o,i=md(o,["window"]);let s;const l=Hs(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},c=_e(()=>qt(e),d=>{a(),l.value&&r&&d&&(s=new ResizeObserver(t),s.observe(d,i))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return br(u),{isSupported:l,stop:u}}function yr(e,t={width:0,height:0},n={}){const{window:o=In,box:r="content-box"}=n,i=ce(()=>{var a,c;return(c=(a=qt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=Q(t.width),l=Q(t.height);return vd(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&i.value){const u=qt(e);if(u){const d=o.getComputedStyle(u);s.value=parseFloat(d.width),l.value=parseFloat(d.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((d,{inlineSize:h})=>d+h,0),l.value=u.reduce((d,{blockSize:h})=>d+h,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),_e(()=>qt(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function wr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=In}=n,l=Hs(()=>s&&"IntersectionObserver"in s);let a=Mt;const c=l.value?_e(()=>({el:qt(e),root:qt(o)}),({el:d,root:h})=>{if(a(),!d)return;const y=new IntersectionObserver(t,{root:h,rootMargin:r,threshold:i});y.observe(d),a=()=>{y.disconnect(),a=Mt}},{immediate:!0,flush:"post"}):Mt,u=()=>{a(),c()};return br(u),{isSupported:l,stop:u}}var Ys;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ys||(Ys={}));var _d=Object.defineProperty,qs=Object.getOwnPropertySymbols,bd=Object.prototype.hasOwnProperty,yd=Object.prototype.propertyIsEnumerable,Xs=(e,t,n)=>t in e?_d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wd=(e,t)=>{for(var n in t||(t={}))bd.call(t,n)&&Xs(e,n,t[n]);if(qs)for(var n of qs(t))yd.call(t,n)&&Xs(e,n,t[n]);return e};wd({linear:dd},{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 xd(e={}){const{window:t=In,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,s=Q(n),l=Q(o),a=()=>{t&&(i?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),Ns(a),Lt("resize",a,{passive:!0}),r&&Lt("orientationchange",a,{passive:!0}),{width:s,height:l}}const Zs=xe(Te({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=t,o=Q(null),r=Q(0),i=Q([]),s=ce(()=>i.value[r.value]),l=Vs(a,500);et(()=>{const d=yr(o),h=Ye(()=>c({width:d.width.value,height:d.height.value}),50);h(),_e(d.width,h),_e(d.height,h)});function a(){r.value>=i.value.length-1?n("hide"):r.value++}function c(d){const h=u();i.value=h.map(({rect:y,text:S})=>{const v=y.top<d.height-y.bottom,A=y.left<d.width-y.right;return{text:S,style:{left:`${y.left}px`,top:`${y.top}px`,width:`${y.width}px`,height:`${y.height}px`},textStyle:{left:A?`${y.left-12}px`:void 0,right:A?void 0:`${d.width-y.left}px`,top:v?`${y.bottom+12}px`:`${y.top+20}px`,textAlign:v?void 0:"right",transform:v?void 0:"translateY(-50%)"}}}),r.value>=i.value.length&&(r.value=i.value.length-1)}function u(){var y;const d=(y=o.value)==null?void 0:y.parentElement;if(!d)return[];const h=[];return d.querySelectorAll("[data-tour]").forEach(S=>{var j;const v=(j=S.getAttribute("data-tour"))==null?void 0:j.trim();if(!(v!=null&&v.length))return;const A=S.getBoundingClientRect();h.push({rect:A,text:v})}),h}return(d,h)=>{var y,S;return B(),J(Ie,null,[G("div",{class:Pe(["fixed-screen bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),G("div",{ref_key:"root",ref:o,class:"tour",onClick:h[0]||(h[0]=nt((...v)=>ne(l)&&ne(l)(...v),["stop"]))},[s.value?(B(),J("div",{key:r.value,class:"tour__target",style:Be(s.value.style)},null,4)):Le("",!0),(B(),J("div",{key:r.value,class:"tour__text",style:Be((y=s.value)==null?void 0:y.textStyle)},Ge(((S=s.value)==null?void 0:S.text)??""),5))],512)],64)}}}),[["styles",[`.tour{height:100vh;left:0;overflow:hidden;position:fixed;top:0;width:100vw;z-index:20}.tour__target{--tw-border-opacity:1;animation:tour-target-anim .5s forwards;border-color:rgb(120 113 108/var(--tw-border-opacity));border-radius:9999px;border-width:2px;box-shadow:0 0 0 99999px #000000e6}.tour__target,.tour__text{position:absolute}.tour__text{animation:tour-text-anim 1s forwards,tour-text-bounce .75s ease-in-out infinite alternate;max-width:320px;padding-left:12px;padding-right:12px;transition-duration:1s}@keyframes tour-target-anim{0%{--tw-border-opacity:0;opacity:0;transform:scale(3)}to{--tw-border-opacity:1;opacity:.9;transform:scale(1)}}@keyframes tour-text-anim{0%{opacity:0}to{opacity:1}}@keyframes tour-text-bounce{0%{margin-top:0}to{margin-top:10px}}
23
+ `]]]),Sd=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),Cd=G("div",{class:"fixed-screen bg-black bg-opacity-90"},null,-1),Gs=Te({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,r=Q(null),i=Q([]);et(async()=>{const c=yr(r),u=Ye(()=>{s({width:c.width.value,height:c.height.value})},50);u(),_e(c.width,u),_e(c.height,u)});function s(c){var h;const u=(h=r.value)==null?void 0:h.parentElement;if(!u)return;const d=Array.from(u.querySelectorAll("#controls [title]"));d.length&&(i.value=l(d,c))}function l(c,u){const d=[],h=[];let y=0,S=0;const v=50,A=25;c.forEach(x=>{var z;const m=(z=x.getAttribute("title"))==null?void 0:z.trim(),N=x.getBoundingClientRect();if(!m||!N.height||!N.width)return;const _=Math.ceil((N.top-10)/v),U=Math.ceil((N.left-10)/v);h.push({isTour:!1,title:m,rect:N,fromX:U,toX:Math.max(U+1,Math.ceil((N.right+10)/v)),fromY:_,toY:Math.max(_+1,Math.ceil((N.bottom+10)/v))})}),h.forEach(x=>{for(let m=x.fromY;m<x.toY;m++){d[m]??(d[m]=[]);for(let N=x.fromX;N<x.toX;N++)d[m][N]=x;x.toY>y+1&&(y=x.toY-1),x.toX>S+1&&(S=x.toX-1)}});let j=S/2;h.forEach(x=>{x.isAlignRight=x.fromX>j});const X=(x,m)=>{d[m]??(d[m]=[]);const N=m>=x.toY;if(x.isTour)for(let _=x.fromX;_<x.toX;_++)delete d[x.fromY][_],x.fromY=m,x.toY=m+(N?1:-1),d[m][_]=x;else{const _=x.isAlignRight?x.fromX-3:x.fromX,U=_+3;x.helpItem={fromX:_,toX:U,fromY:m,toY:m+1,isTour:!0,isAlignRight:x.isAlignRight};for(let z=_;z<U;z++)d[m][z]=x.helpItem}},E=(x,m)=>{if(m>y||m<0)return!1;const N=m>=x.toY,_=d[m];if(!_)return X(x,m),!0;const U=_[x.fromX];if(U&&!U.isTour)return!1;if(U&&U.isTour)return E(U,N?m+1:m-1)?(X(x,m),!0):!1;if(!U){const z=x.isAlignRight?-1:1;return _[x.fromX+z]||_[x.fromX+z*2]?E(x,N?m+1:m-1):(X(x,m),!0)}return!1};h.forEach(x=>{if(!E(x,x.toY)){if(x.isAlignRight){const m=d[x.fromY]??[];if(!m.slice(x.fromX-3,x.fromX).filter(Boolean).length){const _=x.fromX-3,U=x.fromX;x.helpItem={isTour:!0,isAlignRight:!0,fromX:_,toX:U,fromY:x.fromY,toY:x.toY};for(let z=x.fromX-3;z<x.fromX;z++)m[z]=x.helpItem;return}}E(x,x.fromY-1)}});const $=[];return h.forEach(x=>{const{title:m,helpItem:N,rect:_,isAlignRight:U,fromX:z,fromY:le,toY:w}=x;if(!m||!N||!_)return;const H=N.fromY>=w,re=N.toY<=le;$.push({title:a(m),style:{top:H?`${_.bottom+(N.fromY-w)*v+A}px`:re?void 0:`${_.top+8}px`,bottom:re?`${u.height-_.top+(N.toY-le)*v+A}px`:void 0,left:U?void 0:`${_.left}px`,right:U?H?`${u.width-_.right}px`:`${u.width-_.right+_.width+A}px`:void 0},arrowStyle:{width:re||H?"2px":`${Math.abs(N.toX-z)*v+A-5}px`,height:re||H?`${(H?N.fromY-w:le-N.toY)*v+A}px`:"2px",top:H?`${_.bottom}px`:re?void 0:`${_.top+20}px`,bottom:re?`${u.height-_.top}px`:void 0,left:U?void 0:`${_.left+_.width/2}px`,right:U?H?`${u.width-_.right+_.width/2}px`:`${u.width-_.right+_.width}px`:void 0}})}),$}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(B(),J(Ie,null,[Cd,G("div",{ref_key:"root",ref:r,class:"fixed-screen z-20 overscroll-contain select-none",onClick:u[0]||(u[0]=nt(d=>o("hide"),["stop"]))},[(B(!0),J(Ie,null,gn(i.value,d=>(B(),J(Ie,{key:d.title},[G("div",{class:"absolute",style:Be(d.style)},Ge(d.title),5),G("div",{class:"absolute bg-stone-300 rounded-lg",style:Be(d.arrowStyle)},null,4)],64))),128))],512)],64))}}),kd=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),Js=xe(Te({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=Q(0);return _e(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const i=hr,s=gr;return n.value?(B(),J("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(),Se(i,{key:0})):(B(),Se(s,{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)}}
24
+ `]]]),Id=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),Td={},$d={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ed=[G("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function Pd(e,t){return B(),J("svg",$d,Ed)}const Qs=xe(Td,[["render",Pd]]),Od=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),el=Te({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=Q(typeof n!="string"||+n!==t.direction),r=Ye(()=>o.value=!1,1250);_e(()=>t.direction,()=>{i(),o.value=!0,r()}),et(()=>{i(),r();let s;const l=Ks();_e(l,a=>{a!=="visible"?s=Date.now():Date.now()-s>3e4&&(o.value=!0,r())})});function i(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,l)=>{const a=Qs;return B(),Se(on,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ue(()=>[o.value?(B(),J("div",{key:0,class:Pe(["fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none w-28 h-24 p-4 bg-black bg-opacity-40 rounded-2xl duration-500",{"rotate-90":s.direction===ne(ft).vertical,"rotate-180":s.direction===ne(ft).rtl}])},[ee(a)],2)):Le("",!0)]),_:1})}}}),Md=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),ho=[];function Ld(e){ho.push(e),at(()=>{const t=ho.indexOf(e);t!==-1&&ho.splice(t,1)})}function Ad(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,i=t*o;ho.forEach(s=>s(r,i))}const tl=Te({__name:"ZoomWrapper",props:Nt({pageIndex:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:Nt(["dragEnd","click"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,r=nn(e,"modelValue"),i=Q(null),s=Q(Math.min(kn,Math.max(Cn,r.value))),l=Q(!1),a=Q(!1),c=Q(!1);_e(r,k=>re(k)),et(()=>{n.touchDevice?(Lt(window,"touchstart",j),Ld(z)):(Lt(i,"mousedown",y),Lt(window,"wheel",x))}),fo({onKeyDown:k=>{var Z;if(!n.busy&&((Z=i.value)==null||Z.focus(),!(k.key==="Meta"||k.key==="Control")&&(k.ctrlKey||k.metaKey)))switch(k.key){case"0":re(1);break;case"-":re(s.value-.2),k.preventDefault();break;case"=":case"+":re(s.value+.2),k.preventDefault();break}}});function u(k){a.value!==k&&(a.value=k,k?n.playController.pause():(o("dragEnd"),n.playController.resume()))}let d={x:0,y:0},h={x:0,y:0};function y(k){k.button===0&&(d={x:k.clientX,y:k.clientY},h={x:i.value.scrollLeft,y:i.value.scrollTop},window.addEventListener("mousemove",S),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",S),setTimeout(()=>u(!1))},{once:!0}),k.preventDefault(),k.stopPropagation())}function S(k){u(!0);const Z=k.clientX-d.x,R=k.clientY-d.y,ie=i.value;ie.scrollLeft=h.x-Z,ie.scrollTop=h.y-R}let v=!1,A={distance:0,zoom:s.value,x:0,y:0};function j(k){n.busy||(v=k.touches.length===2,v&&(u(!0),k.stopPropagation(),k.preventDefault(),A={distance:m(k),zoom:s.value,x:(k.touches[0].clientX+k.touches[1].clientX)/2,y:(k.touches[0].clientY+k.touches[1].clientY)/2}),(v||n.playController.isPlaying&&n.longStrip)&&(window.addEventListener("touchmove",E),window.addEventListener("touchend",X,{once:!0})))}function X(){if(window.removeEventListener("touchmove",E),v){u(!1),v=!1;return}if(!a.value)return;const k=Ye(()=>{u(!1),i.value.removeEventListener("scroll",R)},100),Z=setTimeout(k,100);i.value.addEventListener("scroll",R);function R(){clearTimeout(Z),k()}}function E(k){if(u(!0),v){k.stopPropagation(),k.preventDefault();const R=m(k)/A.distance;re(Math.ceil(R*A.zoom*100)/100,A)}}const $=Ye(()=>l.value=!1,100);function x(k){if(!n.busy){if(k.ctrlKey||k.metaKey){k.stopPropagation(),k.preventDefault();const Z=Math.ceil((s.value+k.deltaY*-.01)*100)/100;re(Z,{x:k.clientX,y:k.clientY});return}n.horizontal&&(l.value||(l.value=!0),$(),k.deltaY&&(i.value&&(i.value.scrollLeft+=k.deltaY*(n.rtl?-1:1)),k.stopPropagation(),k.preventDefault()))}}function m(k){return Math.hypot(k.touches[0].clientX-k.touches[1].clientX,k.touches[0].clientY-k.touches[1].clientY)}let N=0,_;function U(k){if(!a.value){if(!n.touchDevice){o("click",k);return}N++,_&&clearTimeout(_),N===2&&z(k.clientX,k.clientY),_=setTimeout(()=>{!a.value&&N===1&&o("click",k),_=void 0,N=0},300)}}function z(k,Z){if(!N)return;N=0;const R=s.value===1?2:1;re(R,{x:k,y:Z})}let le;const w=Ye(()=>{c.value=!1,le=void 0},150);function H(){if(!c.value){const k=i.value;if(!k)return;const Z=k.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;Z&&(le={el:Z,rect:Z.getBoundingClientRect()},c.value=!0)}if(le)return w(),le}async function re(k,Z){const R=i.value,ie=Math.min(kn,Math.max(Cn,k));if(!R||s.value===ie)return;const be=H();if(!be)return;const F=(Z==null?void 0:Z.x)??R.clientWidth/2,Y=(Z==null?void 0:Z.y)??R.clientHeight/2;s.value=ie,r.value=ie,await gt();const{el:M,rect:K}=be,oe=M.offsetWidth/K.width,ve=M.offsetHeight/K.height;R.scrollLeft=M.offsetLeft-K.left*oe+F*(oe-1),R.scrollTop=M.offsetTop-K.top*ve+Y*(ve-1)}return(k,Z)=>(B(),J("div",{ref_key:"root",ref:i,tabindex:"0",class:Pe(["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||l.value||c.value),"cursor-grabbing":a.value,"overflow-hidden":c.value}]),style:Be({"font-size":`${s.value}px`}),onClick:nt(U,["stop"])},[$e(k.$slots,"default")],6))}}),zd=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),nl=Te({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=t,o=Q(null),r=Q(!1);return et(async()=>{await gt();let i=!1;wr(o,s=>{r.value=s.some(l=>l.isIntersecting),r.value&&!i&&n("visible")})}),(i,s)=>(B(),J("div",{ref_key:"root",ref:o},[$e(i.$slots,"default",{visible:r.value})],512))}}),jd=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"}));function Bd({pageIndex:e,isLongStrip:t}){let n=e.value,o=e.value+3;const r=Q(n),i=Q(o),s=Ye(l,50);_e(e,a=>{n>a&&(n=a)});function l(){r.value!==n&&(r.value=n),i.value!==o&&(i.value=o)}return{min:r,max:i,onPageVisible(a){o<a&&(o=a),s()},onScroll(){t.value?l():s()}}}const Dd={key:0,class:"page--loading"},Rd=["src"],Vd=["src"],Nd=["data-index"],ol=xe(Te({__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=t,r=Q(null),i=ce(()=>{var S;return(S=r.value)==null?void 0:S.$el}),s=Q(null),l=yr(i),a=ce(()=>{const{width:S,height:v}=l,A=n.isLongStrip?n.isVertical?S.value:v.value:Math.min(S.value,v.value);return Math.min(4,Math.max(1,Math.ceil(A/400-1)))*n.gap}),c=Bd({pageIndex:ce(()=>n.pageIndex),isLongStrip:ce(()=>n.isLongStrip)}),u=ce(()=>{const{width:{value:S},height:{value:v}}=l;return n.pages.map(A=>{var U;const j=A.some(z=>{var le;return(le=z.img)==null?void 0:le.isLoading}),X=A.map(z=>z.index),E={isLoading:j,indexes:X};if(j||X[X.length-1]<c.min.value-1||X[0]>c.max.value+2)return E;const $=A.map(({img:z})=>z).filter(Boolean);if(!$.length||(E.srcs=$.map(({src:z})=>z),$.every(z=>z.hasError)))return E;const m=(U=$.find(z=>!z.hasError))==null?void 0:U.size,N=$.reduce((z,le)=>{var w;return z+(((w=le.size)==null?void 0:w.width)??m.width)},0),_=$.reduce((z,le)=>{var w;return z+(((w=le.size)==null?void 0:w.height)??m.height)},0)/$.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&S/N<v/_?(E.width=Math.min(S,N),E.height=_*E.width/N):E.height=Math.min(v,_),E})}),d=ce(()=>{const S=n.isVertical?"width":"height";return u.value.map(v=>v[S]).filter(Boolean).sort((v,A)=>A-v)[0]});function h({indexes:S}){const v=S[S.length-1];v!==void 0&&c.onPageVisible(v)}function y(S){if(!n.isLongStrip){const v=n.isVertical?l.height.value:l.width.value,j=(n.isVertical?S.clientY:n.isRTL?v-S.clientX:S.clientX)/v;if(j<=.2){o("prev");return}else if(j>=.8&&n.pageIndex<n.totalImgs){o("next");return}}o("click")}return(S,v)=>{const A=pr,j=nl,X=tl;return B(),Se(X,{ref_key:"root",ref:r,"model-value":S.zoom,"page-index":S.pageIndex,class:Pe(["reader-body",{"reader-body--long-strip":S.isLongStrip,"reader-body--pages":!S.isLongStrip,"reader-body--vertical":S.isVertical,"reader-body--rtl":S.isRTL,"reader-body--idle":S.idle}]),"play-controller":S.playController,horizontal:!S.isVertical,rtl:S.isRTL,"touch-device":S.touchDevice,busy:S.busy,"long-strip":S.isLongStrip,style:Be({"--gap":`${a.value}em`,"--space-top":(S.spaceTop||0)+"px","--screen-width-em":ne(l).width.value+"em","--screen-height-em":ne(l).height.value+"em",...S.isLongStrip?{"--max-size-em":d.value+"em"}:{}}),"onUpdate:modelValue":v[0]||(v[0]=E=>o("update:zoom",E)),onDragEnd:v[1]||(v[1]=()=>o("dragEnd")),onClick:y,onScroll:ne(c).onScroll},{default:ue(()=>[(B(!0),J(Ie,null,gn(u.value,E=>(B(),Se(j,so({key:S.direction+"_"+E.indexes[0],"data-index":E.indexes[0]},E.indexes.length>1?{"data-index2":E.indexes[1]}:{},{onVisible:()=>h(E)}),{default:ue(({visible:$})=>{var x;return[!((x=E.srcs)!=null&&x.length)||E.isLoading?(B(),J("div",Dd,[mt(ee(A,null,null,512),[[is,$]])])):E.srcs.length==1?(B(),J("img",{key:1,src:E.srcs[0],style:Be({height:E.height!==void 0?E.height+"em":""})},null,12,Rd)):(B(),J("div",{key:2,class:Pe(["page--double",{"flex-row-reverse":S.isRTL}]),style:Be({width:E.width!==void 0?E.width+"em":"",height:E.height!==void 0?E.height+"em":""})},[(B(!0),J(Ie,null,gn(E.srcs,m=>(B(),J("div",{key:m},[G("img",{src:m},null,8,Vd)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),G("div",{ref_key:"autoNextEl",ref:s,class:"last","data-index":S.totalImgs},[$e(S.$slots,"end")],8,Nd)]),_:3},8,["model-value","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style","onScroll"])}}}),[["styles",[`.reader-body{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width:1024px){.reader-body{transform:none}}.reader-body--rtl{flex-direction:row-reverse}.reader-body.reader-body--vertical>div{padding:calc(var(--gap)/2) 0}.reader-body:not(.reader-body--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.reader-body:not(.reader-body--vertical)>div{padding:0 calc(var(--gap)/2)}.reader-body--long-strip.reader-body--vertical>div:first-child{margin-top:var(--space-top);padding-top:0}.reader-body--long-strip.reader-body--vertical>div:last-child{padding-bottom:0}.reader-body--long-strip.reader-body--vertical>div{width:var(--max-size-em)}.reader-body--long-strip.reader-body--vertical .page--loading{height:75vh;max-width:100%;width:100vw}.reader-body--long-strip.reader-body--vertical .last{height:100vh}.reader-body--long-strip:not(.reader-body--vertical)>div{align-items:center;display:flex;height:var(--max-size-em)}.reader-body--long-strip:not(.reader-body--vertical) .page--loading{height:100vh;max-height:100%;max-width:100vw;width:680px}.reader-body--long-strip:not(.reader-body--vertical) .last{width:100vw}.reader-body--long-strip>div>img{flex-shrink:0;margin:auto}.reader-body--pages:after,.reader-body--pages:before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.reader-body--pages.reader-body--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}
25
+ `]]]),Hd=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),Fd={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},Wd={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},Kd={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},rl=xe(Te({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=t,o=Q(null),r=Q(null),i=Q(!1),s=Q(!1),l=Q(3);return et(()=>{let a;wr(r,c=>{s.value=c.some(u=>u.isIntersecting),l.value=5,a&&(clearInterval(a),a=void 0),s.value&&(a=setInterval(()=>{l.value-=1,l.value<=0&&(clearInterval(a),a=void 0,n("next"))},1e3))}),wr(o,c=>{i.value=c.some(u=>u.isIntersecting)}),at(()=>a&&clearInterval(a))}),(a,c)=>(B(),J("div",{ref_key:"root",ref:o,class:"h-full w-full flex justify-center items-center"},[mt(G("div",Fd,[a.hasNext?(B(),J("div",Wd,[s.value?(B(),J("div",Kd)):Le("",!0),mt((B(),J("button",{ref_key:"nextButton",ref:r,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:c[0]||(c[0]=nt(()=>n("next"),["stop"]))},[Tt(" Next in "+Ge(l.value),1)])),[[ne(sn)]])])):Le("",!0),mt((B(),J("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:c[1]||(c[1]=nt(()=>n("hide"),["stop"]))},[Tt(" Hide ")])),[[ne(sn)]])],512),[[is,i.value||!a.hasNext]])],512))}}),[["styles",[`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
26
+ `]]]),Ud=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"}));async function Tn(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(r=>{setTimeout(async()=>{const i=await Tn(e-1,t,n);r(i)},t)})}function ln(e=0){return new Promise(t=>setTimeout(t,e))}const il=3;function Yd(e){var Z,R,ie,be;const t=((R=(Z=e.raw.value)==null?void 0:Z.imgs)==null?void 0:R.filter(Boolean))??[];let n=!!t.length,o=t.map(F=>({src:F}));const r=an({}),i=[],s=Q((ie=e.raw.value)==null?void 0:ie.isWebtoon),l=Q((be=e.raw.value)==null?void 0:be.isWebtoon),a=Date.now(),c=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android");let u=!0,d=!1,h=!1,y=0,S=0,v,A=e.isAutoShow!==!1?e.page.value:n?Gd(t):void 0;const j=Ye(H,100);let X=!1;const E=Ye(N,50),$=()=>{X?E():(X=!0,N())};n?$():le(),_e(()=>{var F;return(F=e.raw.value)==null?void 0:F.imgs},F=>{F!=null&&F.length&&F.length!==o.length&&(n=!0,m(F.map(Y=>({src:Y}))))}),at(()=>{u=!1,i.forEach(F=>URL.revokeObjectURL(F))}),Gn(()=>{d&&mo({contentEl:v,images:o,page:e.page.value})});function x(){var oe,ve,pe,ge;if(d||s.value===void 0||A===void 0)return;const F=Math.max(0,Math.min(A,o.length)),Y=o.length-1,M=Math.min(Math.floor(F),Y);if(M>=1){const Ae=(oe=o[M])==null?void 0:oe.src;if(!Ae){e.isAutoShow&&mo({contentEl:v,images:o,page:M});return}const ot=(ve=o[M-1])==null?void 0:ve.src;if(ot&&!((pe=r[ot])!=null&&pe.size)||!((ge=r[Ae])!=null&&ge.size))return}if(d)return;d=!0,e.onReady(F);let K=!0;_e(()=>Math.floor(e.page.value),async(Ae,ot)=>{mo({images:o,page:Ae,smooth:c,skipIfVisible:K}),K=!1,ot??(ot=-1),Ae!==ot&&(y=Math.max(0,y-Math.abs(Ae-ot))),$()},{immediate:!0})}function m(F){(F.length!==o.length||F.some((M,K)=>{const oe=o[K];return(oe==null?void 0:oe.el)!==(M==null?void 0:M.el)||(oe==null?void 0:oe.src)!==(M==null?void 0:M.src)}))&&(o=F,e.isAutoShow===!1&&A===void 0&&(A=ll(F)),$())}async function N(){if(!u)return;const F=async M=>{y++,_(o[M],M).then(()=>{y--,E()}),await ln()},Y=Math.max(0,Math.min(o.length-1,Math.floor(e.page.value-1)));for(let M=Y;M<o.length;M++){if(y>=il)return;await F(M)}for(let M=Y-1;M>=0;M--){if(y>=il)return;await F(M)}}async function _(F,Y){const M=F.el;let K=F.src;if(!M&&!K||K&&r[K])return;const oe=M instanceof HTMLImageElement,ve=M instanceof HTMLCanvasElement;if(M){if(M._tkLoadId_===a)return;if(M._tkLoadId_=a,oe){const ge=()=>U(M);M.addEventListener("load",ge),at(()=>M.removeEventListener("load",ge))}}if(oe&&!K){if(K=go(M),!K)return;F.src=K}else ve&&!K&&(K=await sl(M),K&&i.push(K));if(!K)return;const pe=oe&&K.startsWith("blob");pe&&!M.complete||(r[K]={src:K,isLoading:!0,hasError:!1},pe&&c&&await ln(300),z({imgEl:oe?M:void 0,src:K,index:Y}))}async function U(F){if(!u)return;const Y=o.findIndex(K=>K.el===F);if(Y===-1)return;const M=go(F);M&&(!M.startsWith("blob")&&o[Y].src===M||(o[Y].src=M,r[M]??(r[M]={src:M,isLoading:!0,hasError:!1}),z({imgEl:F,src:M,index:Y})))}async function z({imgEl:F,src:Y,index:M}){const K=F?await Xd(F,Y):Y;if(!K)return;F&&K!==Y&&i.push(K);const oe=await Zd(K,F),ve=!!oe&&(oe.width<200||oe.height<200);if(r[Y]={src:K,size:oe,isLoading:!1,hasError:!oe,invalid:ve},oe&&!s.value&&M>Math.min(1,o.length-3)&&M<Math.max(o.length-2,3)){const pe=oe.height/oe.width,ge=pe>2||pe<.5,Ae=pe>1.6||pe<.6;s.value!==ge&&(s.value=ge),l.value!==Ae&&(l.value=Ae)}x()}function le(){let F=!1;const Y=new MutationObserver(()=>{v&&j(v)});Gn(async()=>{Y.disconnect()}),w(M=>{v!==M&&(v=M,Y.disconnect(),Y.observe(v,{childList:!0,subtree:!0}),F?j(v):(F=!0,H(v)))})}async function w(F){var pe;const Y=(pe=e.spec)==null?void 0:pe.content;if(!Y){F(document.body);return}const M=await qd(e.spec);let K=Y?await Tn(M?100:1,10,()=>document.querySelector(Y)):void 0;if(!K)return;F(K);let oe=0;const ve=async()=>{if(u&&!(K!=null&&K.isConnected)&&!n){if(oe=0,K=await Tn(50,20,()=>{const ge=document.querySelector(Y);return ge!=null&&ge.isConnected&&ge!==K?ge:void 0}),!K)return;F(K)}!u||n||++oe>=10||setTimeout(ve,200)};setTimeout(ve,200)}async function H(F){var oe;if(!u||!F.isConnected||n)return;const Y=Date.now();S=Y;const M=(oe=e.spec)==null?void 0:oe.imgDivs,K=M?await re(F,M):k(F);if(!(S!==Y||!F.isConnected||!u||n)){if(!e.raw.value&&!K.length){e.onError("no_img");return}m(K)}}async function re(F,Y){const M=Array.from(F.querySelectorAll(Y)),K=new Map,oe=M.map(ve=>{const pe=ve.querySelectorAll("img,canvas");for(const ge of pe)if(xr(ge,K)){if(ge instanceof HTMLCanvasElement){if(al(ge))return{el:ge,parentEl:ve}}else if(ge instanceof HTMLImageElement&&cl(ge)){const Ae=go(ge);return{el:ge,src:Ae,parentEl:ve}}}return{parentEl:ve}});return!h&&e.isAutoShow!==!1&&e.page.value&&(h=!0,mo({contentEl:F,images:oe,page:e.page.value,skipIfVisible:!0}),await ln(1)),oe}function k(F){const Y=[],M={},K=new Map;return Array.from(F.querySelectorAll("img,canvas")).forEach(ve=>{if(xr(ve,K)){if(ve instanceof HTMLCanvasElement)al(ve)&&Y.push({el:ve});else if(ve instanceof HTMLImageElement&&cl(ve)){const pe=go(ve);if(pe){const ge=M[pe];if(ge!==void 0&&ge!==-1){Y.splice(ge,1);return}M[pe]=Y.length}Y.push({el:ve,src:pe})}}}),Y}return{asyncImgs:ce(()=>{Object.values(r);const F=[];return o.forEach(({src:Y,parentEl:M})=>{const K=Y?r[Y]:void 0;(Y&&!(K!=null&&K.invalid)||M)&&F.push(K)}),F}),isWebtoon:ce(()=>s.value??!1),maybeWebtoon:ce(()=>l.value??!1)}}async function qd(e){const{lstrip:t,lstripBtn:n}=e||{};if(!n||!!t&&!!document.querySelector(t))return!1;const r=await Tn(50,30,()=>document.querySelector(n));if(!r)return!1;if(r.tagName.toLowerCase()==="a"&&!r._tkDirty_){r._tkDirty_=!0;const i=s=>s.preventDefault();r.addEventListener("click",i),at(()=>{delete r._tkDirty_,r.removeEventListener("click",i)})}return r.click(),await ln(),!0}function sl(e){return new Promise(t=>{const n=o=>{if(!o)return t(void 0);const r=URL.createObjectURL(o);t(r)};e.toBlob(n,"image/jpeg",1)})}async function Xd(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),r=o.getContext("2d"),i=e.naturalWidth,s=e.naturalHeight;return o.width=i,o.height=s,r==null||r.drawImage(e,0,0,i,s),await sl(o)}async function Zd(e,t){return(t==null?void 0:t.src)===e&&t.naturalWidth&&t.naturalHeight?{width:t.naturalWidth,height:t.naturalHeight}:await new Promise(n=>{const o=new Image,r=setInterval(()=>{const{naturalWidth:i,naturalHeight:s}=o;s&&i&&(n({width:i,height:s}),clearInterval(r))},20);o.onerror=()=>{n(void 0),clearInterval(r)},o.src=e})}function Gd(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src)).map(o=>({el:o}));return ll(n)}function ll(e){var t,n;for(let o=0;o<e.length;o++){const r=((t=e[o])==null?void 0:t.el)??((n=e[o])==null?void 0:n.parentEl),i=r==null?void 0:r.getBoundingClientRect();if(!i||i.bottom<=0)continue;const s=i.top;return o+(s>=0?0:-s/i.height)}return 0}function al(e){return e.isConnected&&e.width>=200&&e.height>=200}function cl(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||t.width>=200&&t.height>=200}function go(e){const t=e.getAttributeNames(),n=t.indexOf("src");n!==-1&&(t.splice(n,1),t.push("src"));for(const o of t){if(o!=="data-url"&&o!=="data-original"&&!o.includes("src"))continue;const r=e.getAttribute(o);if(r)return o==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:r.replace(/(\n|\t)/g," ").trim()}}function xr(e,t){if(!e||e===document.body)return!0;const n=t.get(e);if(n!==void 0)return n;const o=getComputedStyle(e);if(!(o.display!=="none"&&o.visibility!=="hidden"&&+(o.opacity??"1")>.1))return t.set(e,!1),!1;const i=xr(e.parentElement,t);return t.set(e,i),i}function mo({contentEl:e,images:t,page:n,smooth:o,skipIfVisible:r}){const i=Math.floor(n),s=t[Math.min(t.length-1,i)];if(!s)return;const l=s.el??s.parentEl??document.querySelector(`img[src^="${s.src}"]`);if(!l)return;const a=o?"smooth":"instant";if(n>=t.length){l==null||l.scrollIntoView({block:"end",behavior:a});return}const u=l.getBoundingClientRect();if(r&&u.top<=0&&u.top+u.height>0)return;l.scrollIntoView({block:"start",behavior:a});const d=n%1;if(d){const h=d*u.height,y=Sr(e??document.documentElement);setTimeout(()=>y==null?void 0:y.scrollBy({top:h}))}}function Sr(e){if(e)return e.scrollHeight>e.clientHeight?e===document.body?Sr(document.documentElement)??e:e:Sr(e.parentElement??void 0)}function Jd(e,t){return ce(()=>t.value?ul(e.value):e.value.map((n,o)=>[{img:n,index:o}]))}function ul(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(i=>(i==null?void 0:i.size)&&i.size.width>i.size.height)?[n[0]]:n;return[r.map((i,s)=>({img:i,index:t+s})),...ul(e.slice(r.length),t+r.length)]}function Qd(e,t){const n=sessionStorage.getItem("tk:page:path");n!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),n&&sessionStorage.removeItem("tk:page"));const o=Q(t&&e>0?Math.max(0,e):+(sessionStorage.getItem("tk:page")??"0")||e);return ce({get:()=>o.value,set:r=>{o.value=r,sessionStorage.setItem("tk:page",r+"")}})}function ep(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const Cr=40;function tp({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:i,spaceTop:s,scrollEl:l,interferePlayer:a,onChangedPage:c,onInitialized:u}){let d=!1,h=!1,y;const S=Ye(m,300),v=Vs(()=>{m(),S()},300),A=Ye(E,50);async function j(){$(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function X(){var w;h=!0,u(),(w=l.value)==null||w.addEventListener("scroll",v),setTimeout(()=>{const{width:H,height:re}=xd();_e(H,()=>{r.value&&A()}),_e(re,()=>{r.value||A()}),_e(n,E),_e(t,E)},300)}async function E(){if(!h||d)return;d=!0,await gt();const w=e.value;if(N()===w){d=!1;return}$(w)}function $(w,{smooth:H,ensureLastImgVisibility:re=!1}={smooth:!1}){const k=l.value;if(!k)return;d=!0;const Z=async()=>{await gt(),d=!1,h||X()},R=Math.floor(w),ie=k.querySelector(`[data-index="${R}"],[data-index2="${R}"]`);if(!ie){Z();return}a(async()=>{await x(k,!o.value&&H,async()=>{await le(k,ie,{smooth:H,page:w,ensureLastImgVisibility:re})}),await Z()})}async function x(w,H,re){H&&w.style.setProperty("scroll-snap-type","none"),await re(),H&&w.style.removeProperty("scroll-snap-type")}function m(){if(d)return;const w=N();w!==void 0&&w!==e.value&&c(w)}function N(){const w=_();return w?(+w.getAttribute("data-index")||0)+(o.value?U(w):0):void 0}function _(){var H;if(y??(y=l.value.getRootNode()),!y)return;const w=(H=y.elementsFromPoint)==null?void 0:H.call(y,r.value||!o.value?window.innerWidth/2:i.value?window.innerWidth-Cr:Cr,r.value&&o.value?s.value||Cr:window.innerHeight/2);if(w)for(let re=0;re<w.length;re++){const k=w[re];if(k.hasAttribute("data-index"))return k;if(k===l.value)break}}function U(w){const H=w.getBoundingClientRect();return r.value?Math.abs(H.top-s.value)/H.height:i.value?Math.max(0,H.right-l.value.clientWidth)/H.width:Math.abs(H.left)/H.width}let z=!1;async function le(w,H,re){if(z)return;const k=H.getBoundingClientRect();if(!o.value){if(r.value){if(k.top<=0&&k.bottom>=w.clientHeight)return}else if(k.left<=0&&k.right>=w.clientWidth)return}z=!0;const Z=r.value?w.scrollTop:w.scrollLeft,R=re.page,ie=o.value?R%1:0,be=await Tn(30,10,async()=>{await ln();let oe;if(!(H.offsetHeight<10))return o.value?r.value?oe=H.offsetTop+ie*H.offsetHeight-s.value:i.value?oe=H.offsetLeft-w.clientWidth+H.offsetWidth-ie*H.offsetWidth:oe=H.offsetLeft+ie*H.offsetWidth:r.value?oe=H.offsetTop+(k.top>0?0:k.height-w.clientHeight):oe=H.offsetLeft+(k.left>0?0:k.width-w.clientWidth),R>.5&&Math.abs(oe)<100?void 0:oe})??0,F=re.ensureLastImgVisibility?r.value?Math.min(be,w.scrollHeight-w.clientHeight*2):i.value?Math.max(be,-(w.scrollWidth-w.clientWidth*2)):Math.min(be,w.scrollWidth-w.clientWidth*2):be;if(!re.smooth){r.value?w.scrollTop=F:w.scrollLeft=F,z=!1;return}const Y=F-Z,M=30;let K=0;return new Promise(oe=>{(function ve(){const pe=np(K,Z,Y,M);r.value?w.scrollTop=pe:w.scrollLeft=pe,K++,K<=M?requestAnimationFrame(ve):(oe(),z=!1)})()})}return{init:j,goToPage:$}}function np(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function op({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:i,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=Q(typeof l=="string"?l==="true":e),c=ce({get:()=>a.value,set:_=>{a.value=_,sessionStorage.setItem("tk:playing",_?"true":"false")}}),u=Q(!1);let d,h;const y=Ye(m,100),S=Ye(()=>{u.value=!0},t?2e3:1e3),v=()=>setTimeout(()=>{u.value=!1,S()},30);v(),t||Lt(window,"mousemove",v);const A=Ks();et(()=>{_e(A,_=>{c.value&&(_==="visible"?m():h==null||h())}),_e(s,()=>j()),_e(i,_=>{_||E()})});async function j(_){c.value&&(h==null||h()),_&&(await gt(),await _()),c.value&&y()}function X(){c.value?E():$()}function E(){c.value&&(c.value=!1,h==null||h(),v())}function $(){!c.value&&i.value&&(c.value=!0,m(),v())}function x(){h==null||h()}function m(){const _=n.value;if(!c.value||!_)return;const U=o.value?_.scrollHeight-_.clientHeight:_.scrollWidth-_.clientWidth,z=N();if(U<=z){E();return}h=()=>{d=Date.now(),h=void 0};const le=Date.now();d=le;const w=.05*s.value,H=o.value?"scrollTop":"scrollLeft";let re=Date.now(),k=0;const Z=()=>{if(d!==le)return;const R=Date.now(),ie=R-re;re=R;const be=w*ie+k;be>=1?(k=be%1,_[H]+=(be-k)*(r.value?-1:1)):k=be,setTimeout(Z,1)};Z()}function N(){const _=n.value;return o.value?_.scrollTop:r.value?-_.scrollLeft:_.scrollLeft}return{isPlaying:c,isIdle:u,toggle:X,play:$,pause:x,resume:m,stop:E,interfere:j,awake:v}}function rp(e){var y,S,v,A,j;let t=-1,n=(y=e.prev)==null?void 0:y.slug,o=(S=e.next)==null?void 0:S.slug;const{vol:r,inferVol:i,chap:s,title:l,slug:a,basePath:c}=e,u=r??i,d=l.chapters??[],h=(d==null?void 0:d.length)>1?d:[];if(h.length){if(t=h.findIndex(X=>X.slug===e.slug),t===-1&&(t=h.findIndex(X=>(X.vol??X.inferVol)===u&&X.chap===s)),t===-1&&(t=h.findIndex(X=>a.startsWith(`${X.slug}-`)&&a.length-X.slug.length>3)),t!==-1)n??(n=(v=h[t+1])==null?void 0:v.slug),o??(o=(A=h[t-1])==null?void 0:A.slug);else if(!n&&!o){const X=h.findIndex(E=>{const $=E.vol??E.inferVol;return u===void 0||$===void 0||u===$?E.chap<s:$<u});X!==-1?(n=h[X].slug,o=(j=h[X-1])==null?void 0:j.slug):o=h[h.length-1].slug}}return{activeIndex:t,activeLabel:fl({vol:r,chap:s}),chapters:h.map(X=>({label:fl(X),path:kr(c,X.slug)})),prevPath:kr(c,n),nextPath:kr(c,o)}}function kr(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function fl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const ip={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},dl=xe(Te({inheritAttrs:!1,__name:"TrackkunReader",props:{immediate:{type:Boolean},raw:{},spec:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},readerStyle:{},direction:{},isGuest:{type:Boolean},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean}},emits:["error","ready","pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","finished"],setup(e,{emit:t}){const n=e,o=t;let r=!1,i=!1,s;const l=Q(!1),a=Q(!1),c=wu({touchDevice:n.touchDevice}),u=Qd(n.page,n.isAutoShow),d=ce(()=>n.spaceTop??0),{asyncImgs:h,isWebtoon:y,maybeWebtoon:S}=Yd({raw:ce(()=>n.raw),spec:n.spec,page:u,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:d,async onReady(g){oe(g),l.value=!0},onError:()=>{o("error"),T()}}),{direction:v,style:A,isRTL:j,isDouble:X,isVertical:E,isLongStrip:$,gap:x,speed:m,zoom:N}=cf({titleName:ce(()=>{var g;return(g=n.raw)==null?void 0:g.title.name}),isWebtoon:y,maybeWebtoon:S,defaultStyle:n.readerStyle,defaultDirection:n.direction}),_=Jd(h,X),U=ce(()=>u.value>=h.value.length),z=ce(()=>n.raw?rp(n.raw):void 0),le=ce(()=>{var g,C;return j.value?(g=z.value)==null?void 0:g.nextPath:(C=z.value)==null?void 0:C.prevPath}),w=ce(()=>{var g,C;return j.value?(g=z.value)==null?void 0:g.prevPath:(C=z.value)==null?void 0:C.nextPath}),H=Q(null),re=Q(null),k=Q(!1),Z=Q(!1),R=op({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:ce(()=>{var g;return(g=H.value)==null?void 0:g.$el}),speed:m,isRTL:j,isVertical:E,isLongStrip:$}),ie=ce(()=>!n.touchDevice&&R.isIdle.value&&!c.value),be=ce({get(){return N.value},set(g){R.interfere(()=>{N.value=g})}}),F=tp({page:u,style:A,direction:v,isLongStrip:$,isVertical:E,isRTL:j,spaceTop:d,scrollEl:ce(()=>{var g;return(g=H.value)==null?void 0:g.$el}),interferePlayer:g=>R.interfere(g),onChangedPage:oe,onInitialized(){o("ready"),a.value=!0,n.touchDevice&&(s=ve())}}),Y=ce(()=>Math.floor(u.value)),M=()=>R.interfere(()=>ln(100));Ou().addListener({onKeyDown:g=>{if(n.tourEnabled)return;const C=$.value&&E.value,q=$.value&&!E.value,se=!$.value&&E.value,de=!$.value&&!E.value;switch(g.key){case" ":g.preventDefault(),$.value?(W(!1),R.toggle()):b();break;case"ArrowUp":case"PageUp":C?M():se&&Y.value!==0&&(g.preventDefault(),p());break;case"ArrowDown":case"PageDown":C?M():se&&!U.value&&(g.preventDefault(),b());break;case"ArrowLeft":q?M():de?(g.preventDefault(),En()):E.value&&ot();break;case"ArrowRight":q?M():de?(g.preventDefault(),f()):E.value&&Ae();break}},onKeyUp:g=>{switch(g.key){case"f":L();break;case"t":V();break;case"h":W();break}}}),Lt("fullscreenchange",()=>{k.value=!!document.fullscreenElement}),_e(R.isPlaying,g=>{g||O(!1),o("playingChanged",g)}),_e(R.isIdle,g=>{R.isPlaying.value&&O(g)}),_e(c,g=>{!g&&R.isIdle.value?R.awake():g&&n.fullScreen&&O()});function oe(g){if(u.value===g)return;const C=h.value.length;if(g<0||g>=C+1)return;const q=u.value;u.value=g,o("pageChanged",Math.floor(g*100)/100),g>=C?(O(!1),R.stop()):g<.01?O(!1):n.touchDevice&&!i&&($.value?s!==void 0&&ve()-s>300&&O(!0):Math.abs(q-g)===1&&O(!0)),!r&&g>=C-2&&(r=!0,o("finished"))}function ve(){var C;const g=(C=H.value)==null?void 0:C.$el;return g?E.value?g.scrollTop:j.value?-g.scrollLeft:g.scrollLeft:0}function pe(){!n.touchDevice&&!$.value&&F.goToPage(Y.value,{smooth:!0})}function ge(){if(R.isPlaying.value){!n.fullScreen||!n.touchDevice?R.stop():R.awake();return}O()}function Ae(){var g;Xt((g=z.value)==null?void 0:g.nextPath)}function ot(){var g;Xt((g=z.value)==null?void 0:g.prevPath)}function At(g){var q,se,de;const C=(de=(se=(q=z.value)==null?void 0:q.chapters)==null?void 0:se[g])==null?void 0:de.path;C&&Xt(C)}function Xt(g){g&&(location.href=g.includes("://")?g:location.origin+g)}function En(){j.value?b():p()}function f(){j.value?p():b()}function p(){var q;const g=_.value,C=U.value?g[g.length-1][0].index:(q=g[I()-1])==null?void 0:q[0].index;C!==void 0?F.goToPage(C):ot()}function b(){var g,C;if(U.value)Ae();else{const q=((C=(g=_.value[I()+1])==null?void 0:g[0])==null?void 0:C.index)??h.value.length;F.goToPage(q)}}function I(){const g=Y.value,C=_.value.findIndex(q=>q.some(({index:se})=>se===g));return C===-1?_.value.length-1:C}function T(){ep(),R.stop(),o("dispose")}async function O(g){if(c.value&&!n.fullScreen)return;i=!0;const C=typeof g=="boolean"?g:!n.fullScreen;o("fullScreenChanged",C),C&&setTimeout(()=>{n.fullScreen&&c.value&&o("fullScreenChanged",!1)},100)}function V(){n.entryId?P():D()}function L(){var g,C;document.fullscreenElement?document.exitFullscreen():(C=(g=re.value)==null?void 0:g.$el)==null||C.requestFullscreen()}function D(){R.stop(),o("addEntry")}function P(){R.stop(),o("openEntry",n.entryId)}function W(g){Z.value!==g&&(Z.value=!Z.value,Z.value&&R.isPlaying&&R.stop())}return(g,C)=>{const q=rl,se=ol,de=el,ye=Js,Ee=Gs,Xe=Zs,zt=Bs,dt=uo,Zt=js,vo=vr,Re=zs,rt=As,_o=Ls,mp=Os,vp=Ps,_p=Es,bp=$s,yp=Ts,wp=gr,xp=hr,Sp=bs,Cp=vs;return g.immediate||l.value?(B(),Se(Cp,{key:0,ref_key:"root",ref:re,loading:!a.value,immediate:!!g.immediate,"full-screen":!!g.fullScreen,idle:ie.value,"space-top":d.value,rtl:ne(j),onClick:C[10]||(C[10]=nt(()=>{},["stop"]))},Si({settings:ue(()=>{var _t;return[ee(yp,{"reader-style":ne(A),"onUpdate:readerStyle":C[3]||(C[3]=bt=>Oe(A)?A.value=bt:null),direction:ne(v),"onUpdate:direction":C[4]||(C[4]=bt=>Oe(v)?v.value=bt:null),gap:ne(x),"onUpdate:gap":C[5]||(C[5]=bt=>Oe(x)?x.value=bt:null),speed:ne(m),"onUpdate:speed":C[6]||(C[6]=bt=>Oe(m)?m.value=bt:null),zoom:be.value,"onUpdate:zoom":C[7]||(C[7]=bt=>be.value=bt),name:(_t=g.raw)==null?void 0:_t.title.name,webtoon:ne(y),disabled:!l.value,onHelp:W},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":ue(()=>[ee(on,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ue(()=>[ee(Sp,{zoom:be.value,onClick:C[9]||(C[9]=nt(()=>be.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:ue(()=>[G("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Be({width:`${ne(u)/(ne(h).length-1)*100}%`})},null,4)]),default:ue(()=>[l.value?(B(),Se(se,{key:0,ref_key:"body",ref:H,zoom:be.value,"onUpdate:zoom":C[0]||(C[0]=_t=>be.value=_t),"page-index":Y.value,pages:ne(_),"total-imgs":ne(h).length,direction:ne(v),gap:ne(x),"is-long-strip":ne($),isRTL:ne(j),"is-vertical":ne(E),"space-top":d.value,busy:ne(c),idle:ie.value,"play-controller":ne(R),"touch-device":g.touchDevice,onVnodeMounted:ne(F).init,onPrev:p,onNext:b,onClick:ge,onDragEnd:pe,onWheelPassive:C[1]||(C[1]=()=>ne(R).interfere())},Si({_:2},[l.value&&ne(h).length?{name:"end",fn:ue(()=>{var _t;return[ee(q,{"has-next":!!((_t=z.value)!=null&&_t.nextPath),onNext:Ae,onHide:T},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","onVnodeMounted"])):Le("",!0),a.value&&!U.value&&!g.tourEnabled?(B(),Se(de,{key:1,direction:ne(v)},null,8,["direction"])):Le("",!0),a.value&&!U.value?(B(),Se(ye,{key:2,playing:!!ne(R).isPlaying.value},null,8,["playing"])):Le("",!0),Z.value?(B(),Se(Ee,{key:3,"touch-device":g.touchDevice,onHide:W},null,8,["touch-device"])):Le("",!0),g.tourEnabled?(B(),Se(Xe,{key:4,onHide:C[2]||(C[2]=()=>o("tourEnabledChanged",!1))})):Le("",!0)]),_:2},[g.raw?{name:"back",fn:ue(()=>[ee(dt,{href:g.raw.title.url,title:"Back to manga"},{default:ue(()=>[ee(zt)]),_:1},8,["href"])]),key:"0"}:void 0,g.touchDevice?void 0:{name:"exit",fn:ue(()=>[ee(dt,{title:"Hide reader","data-tour":"You have entered Trackkun reader mode, press here to return to the original page",onClick:T},{default:ue(()=>[ee(Zt)]),_:1})]),key:"1"},z.value?{name:"chapter-nav",fn:ue(()=>[ee(vo,{modelValue:z.value.activeIndex,label:z.value.activeLabel,title:"Select chapter",items:z.value.chapters,"onUpdate:modelValue":At},{item:ue(({item:_t})=>[Tt(Ge(_t.label),1)]),_:1},8,["modelValue","label","items"]),le.value||w.value?(B(),J("div",ip,[ee(dt,{title:`${ne(j)?"Next":"Prev"} chapter (←)`,href:le.value,disabled:!le.value,class:"!rounded-r-none"},{default:ue(()=>[ee(Re)]),_:1},8,["title","href","disabled"]),ee(dt,{title:`${ne(j)?"Prev":"Next"} chapter (→)`,href:w.value,disabled:!w.value,class:"!rounded-l-none"},{default:ue(()=>[ee(rt)]),_:1},8,["title","href","disabled"])])):Le("",!0)]),key:"2"}:void 0,ne(_).length?{name:"page-nav",fn:ue(()=>[ee(_o,{"model-value":Y.value,disabled:!a.value,pages:ne(_),"total-imgs":ne(h).length,"onUpdate:modelValue":ne(F).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,g.raw?{name:"entry",fn:ue(()=>[ee(dt,{title:g.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:V},{default:ue(()=>[g.entryId?(B(),Se(mp,{key:0})):(B(),Se(vp,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,g.touchDevice?void 0:{name:"full-screen",fn:ue(()=>[ee(dt,{title:`${k.value?"Exit":"Enter"} fullscreen (F)`,onClick:L},{default:ue(()=>[k.value?(B(),Se(_p,{key:0})):(B(),Se(bp,{key:1}))]),_:1},8,["title"])]),key:"5"},ne($)?{name:"play",fn:ue(()=>[ee(dt,{"data-tour":"Press here to play like a video",title:`${ne(R).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!a.value,onClick:C[8]||(C[8]=()=>ne(R).toggle())},{default:ue(()=>[ne(R).isPlaying.value?(B(),Se(wp,{key:0})):(B(),Se(xp,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0]),1032,["loading","immediate","full-screen","idle","space-top","rtl"])):Le("",!0)}}}),[["styles",[`/*! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Helvetica,sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:300px){.container{max-width:300px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-full{top:100%}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.-ml-20{margin-left:-80px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.ml-1{margin-left:4px}.ml-auto{margin-left:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-0\\.5{height:2px}.h-1{height:4px}.h-1\\.5{height:6px}.h-10{height:40px}.h-12{height:48px}.h-16{height:64px}.h-20{height:80px}.h-24{height:96px}.h-4{height:16px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-9{height:36px}.h-\\[101\\%\\]{height:101%}.h-\\[27rem\\]{height:432px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-full{max-height:100%}.w-1{width:4px}.w-1\\/3{width:33.333333%}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-28{width:112px}.w-4{width:16px}.w-40{width:160px}.w-\\[4\\.5rem\\]{width:72px}.w-full{width:100%}.w-screen{width:100vw}.max-w-full{max-width:100%}.max-w-xs{max-width:320px}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-right{transform-origin:right}.origin-top{transform-origin:top}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1{--tw-translate-y:-4px}.-translate-y-1\\.5{--tw-translate-y:-6px}.-translate-y-1\\.5,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--tw-translate-y:4px}.translate-y-1\\.5{--tw-translate-y:6px}.translate-y-1\\.5,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y:100%}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-grabbing{cursor:grabbing}.cursor-none{cursor:none}.cursor-pointer{cursor:pointer}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.\\!snap-none{scroll-snap-type:none!important}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.gap-6{gap:24px}.gap-\\[1px\\]{gap:1px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-2xl{border-radius:16px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-sm{border-radius:2px}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.rounded-t-sm{border-top-left-radius:2px;border-top-right-radius:2px}.rounded-t-xl{border-top-left-radius:12px;border-top-right-radius:12px}.border{border-width:1px}.border-2{border-width:2px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-opacity-40{--tw-bg-opacity:.4}.bg-opacity-50{--tw-bg-opacity:.5}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-90{--tw-bg-opacity:.9}.bg-none{background-image:none}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:4px}.p-2{padding:8px}.p-4{padding:16px}.p-6{padding:24px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-6{padding-left:24px;padding-right:24px}.py-1{padding-bottom:4px;padding-top:4px}.py-2{padding-bottom:8px;padding-top:8px}.pb-12{padding-bottom:48px}.pb-6{padding-bottom:24px}.pl-1{padding-left:4px}.pt-3{padding-top:12px}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-90{opacity:.9}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.fixed-screen{height:100vh;left:0;position:fixed;top:0;width:100vw}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:4px;width:4px}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:300px){.\\32xs\\:gap-3{gap:12px}}@media (min-width:640px){.sm\\:w-\\[32rem\\]{width:512px}.sm\\:p-3{padding:12px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-5{padding-bottom:20px}.md\\:text-lg{font-size:18px;line-height:28px}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}.lg\\:pb-3{padding-bottom:12px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
27
+ `]]]),sp=Object.freeze(Object.defineProperty({__proto__:null,default:dl},Symbol.toStringTag,{value:"Module"})),lp={},ap={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},cp=[G("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46s46-20.595 46-46s-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];function up(e,t){return B(),J("svg",ap,cp)}const fp=Object.freeze(Object.defineProperty({__proto__:null,default:xe(lp,[["render",up]])},Symbol.toStringTag,{value:"Module"})),dp=`gear-second{display:block!important;inset:0!important;opacity:0!important;pointer-events:none!important;position:fixed!important;z-index:-10!important}html.gear-second,html.gear-second *{pointer-events:none!important;scroll-behavior:auto!important;scrollbar-width:none!important}html.gear-second ::-webkit-scrollbar,html.gear-second::-webkit-scrollbar{display:none!important}html.gear-second body gear-second+*,html.gear-second body gear-second+*+*,html.gear-second body gear-second+*+*+*,html.gear-second body gear-second+*+*+*+*,html.gear-second>:not(body):not(head){--tw-translate-x:100%!important;--tw-translate-y:-100%!important;display:none!important;height:0!important;min-height:0!important;min-width:0!important;opacity:0!important;pointer-events:none!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important;visibility:hidden!important;width:0!important}html.gear-second body{touch-action:pan-x pan-y!important}html.gear-second body gear-second{--tw-bg-opacity:1!important;background-color:rgb(0 0 0/var(--tw-bg-opacity))!important;filter:none!important;opacity:1!important;pointer-events:auto!important;transform:none!important;visibility:visible!important;z-index:10000000000000000!important}html.gear-second body .m-content #progress-bar{display:none!important}
28
+ `,$n="gear-second",Ir={immediate:void 0,raw:void 0,spec:void 0,page:0,spaceTop:void 0,fullScreen:void 0,touchDevice:void 0,entryId:void 0,autoPlay:void 0,readerStyle:void 0,direction:void 0,isAutoShow:void 0,isGuest:void 0,tourEnabled:void 0,onError:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPlayingChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onFinished:void 0},qe={promise:void 0,data:an({...Ir})};async function pp(e){return qe.promise?(qe.data.raw=e.raw,await qe.promise):(qe.promise=new Promise(t=>{let n=!1,o=!1,r;const i=!!e.spaceTop||!!e.isAutoShow&&!!e.page,s=()=>{n||(n=!0,r&&document.body.removeChild(r),document.documentElement.classList.remove($n),Object.assign(qe.data,Ir),qe.promise=void 0)};Object.assign(qe.data,Ir,e,{immediate:i,onReady(){i||(l(),setTimeout(()=>r.setAttribute("style","")))},onError(){var c,u;s(),o?((c=e.onDispose)==null||c.call(e),(u=e.onError)==null||u.call(e)):a()},onDispose:()=>{var c;s(),(c=e==null?void 0:e.onDispose)==null||c.call(e)},onFullScreenChanged:c=>{var u;qe.data.fullScreen=c,(u=e.onFullScreenChanged)==null||u.call(e,c)},onPageChanged:c=>{var u;qe.data.page=c,(u=e.onPageChanged)==null||u.call(e,c)},onTourEnabledChanged:c=>{qe.data.tourEnabled=c}}),hp().then(()=>{if(n){a();return}r=document.createElement($n),document.documentElement.classList.add($n),i?(document.body.appendChild(r),setTimeout(l)):(r.setAttribute("style","background-color: transparent !important"),document.body.appendChild(r))});function l(){o||(o=!0,t({triggerDoubleTap:(c,u)=>Ad(c,u),updateArgs(c){Object.assign(qe.data,c)},dispose:s}))}function a(){o||t(void 0)}}),await qe.promise)}async function hp(){if(window.customElements.get($n))return;const e=document.createElement("style");e.appendChild(document.createTextNode(dp)),document.head.appendChild(e);const t=zc({styles:[await gp()],data:()=>({readerData:qe.data}),render(){return Gi(dl,this.readerData)}});window.customElements.define($n,t)}async function gp(){const e=Object.assign({"./TrackkunReader.vue":sp,"./components/AutoNext.vue":Ud,"./components/BottomSheet.vue":zu,"./components/ButtonDropdown.vue":Nf,"./components/ButtonIcon.vue":Cu,"./components/ButtonReaderSettings.vue":ff,"./components/ButtonResetZoom.vue":uu,"./components/DirectionToast.vue":Md,"./components/HelpScreen.vue":kd,"./components/InputPercentage.vue":Du,"./components/InputSelect.vue":Fu,"./components/IntersectionWrapper.vue":jd,"./components/LoadingIndicator.vue":qc,"./components/PageNav.vue":Hf,"./components/PauseToast.vue":Id,"./components/ReaderBody.vue":Hd,"./components/ReaderLayout.vue":tu,"./components/ReaderTour.vue":Sd,"./components/TableField.vue":Nu,"./components/ZoomWrapper.vue":zd,"./components/icons/IconBack.vue":ad,"./components/icons/IconBookmarkNew.vue":If,"./components/icons/IconBookmarked.vue":Of,"./components/icons/IconChevronLeft.vue":Jf,"./components/icons/IconChevronRight.vue":Yf,"./components/icons/IconClose.vue":Eu,"./components/icons/IconExclamationCircle.vue":fp,"./components/icons/IconFullscreen.vue":mf,"./components/icons/IconFullscreenExit.vue":wf,"./components/icons/IconHelp.vue":qu,"./components/icons/IconNext.vue":Od,"./components/icons/IconPause.vue":yu,"./components/icons/IconPlay.vue":gu,"./components/icons/IconReaderExit.vue":od,"./components/icons/IconSettings.vue":Qu,"./components/icons/IconTriangle.vue":jf,"./components/icons/IconZoom.vue":su}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return pp});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gear-second",
3
3
  "author": "endyquang",
4
- "version": "1.5.1",
4
+ "version": "1.5.2",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Trkun manga reader",
7
7
  "main": "index.js",