gear-second 1.4.2 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +9 -9
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(He,ce){typeof exports=="object"&&typeof module<"u"?module.exports=ce():typeof define=="function"&&define.amd?define(ce):(He=typeof globalThis<"u"?globalThis:He||self,He._gearSecond_=ce())})(this,function(){"use strict";var Dp=Object.defineProperty;var Rp=(He,ce,qe)=>ce in He?Dp(He,ce,{enumerable:!0,configurable:!0,writable:!0,value:qe}):He[ce]=qe;var ol=(He,ce,qe)=>(Rp(He,typeof ce!="symbol"?ce+"":ce,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 ce={},qe=[],rt=()=>{},rl=()=>!1,il=/^on[^a-z]/,$n=e=>il.test(e),fo=e=>e.startsWith("onUpdate:"),ke=Object.assign,po=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},sl=Object.prototype.hasOwnProperty,fe=(e,t)=>sl.call(e,t),Q=Array.isArray,Kt=e=>Tn(e)==="[object Map]",vr=e=>Tn(e)==="[object Set]",se=e=>typeof e=="function",Ie=e=>typeof e=="string",ho=e=>typeof e=="symbol",_e=e=>e!==null&&typeof e=="object",_r=e=>_e(e)&&se(e.then)&&se(e.catch),br=Object.prototype.toString,Tn=e=>br.call(e),ll=e=>Tn(e).slice(8,-1),yr=e=>Tn(e)==="[object Object]",go=e=>Ie(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Pn=He(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),En=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},al=/-(\w)/g,We=En(e=>e.replace(al,(t,n)=>n?n.toUpperCase():"")),cl=/\B([A-Z])/g,Ze=En(e=>e.replace(cl,"-$1").toLowerCase()),On=En(e=>e.charAt(0).toUpperCase()+e.slice(1)),mo=En(e=>e?`on${On(e)}`:""),on=(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},_o=e=>{const t=Ie(e)?Number(e):NaN;return isNaN(t)?e:t};let wr;const bo=()=>wr||(wr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Be(e){if(Q(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=Ie(o)?pl(o):Be(o);if(r)for(const i in r)t[i]=r[i]}return t}else{if(Ie(e))return e;if(_e(e))return e}}const ul=/;(?![^(]*\))/g,fl=/:([^]+)/,dl=/\/\*[^]*?\*\//g;function pl(e){const t={};return e.replace(dl,"").split(ul).forEach(n=>{if(n){const o=n.split(fl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Oe(e){let t="";if(Ie(e))t=e;else if(Q(e))for(let n=0;n<e.length;n++){const o=Oe(e[n]);o&&(t+=o+" ")}else if(_e(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const hl=He("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function xr(e){return!!e||e===""}const Je=e=>Ie(e)?e:e==null?"":Q(e)||_e(e)&&(e.toString===br||!se(e.toString))?JSON.stringify(e,kr,2):String(e),kr=(e,t)=>t&&t.__v_isRef?kr(e,t.value):Kt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:vr(t)?{[`Set(${t.size})`]:[...t.values()]}:_e(t)&&!Q(t)&&!yr(t)?String(t):t;let Ue;class gl{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 ml(e,t=Ue){t&&t.active&&t.effects.push(e)}function Cr(){return Ue}function vl(e){Ue&&Ue.cleanups.push(e)}const yo=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Sr=e=>(e.w&wt)>0,Ir=e=>(e.n&wt)>0,_l=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=wt},bl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];Sr(r)&&!Ir(r)?r.delete(e):t[n++]=r,r.w&=~wt,r.n&=~wt}t.length=n}},wo=new WeakMap;let rn=0,wt=1;const xo=30;let it;const Lt=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,ml(this,o)}run(){if(!this.active)return this.fn();let t=it,n=xt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=it,it=this,xt=!0,wt=1<<++rn,rn<=xo?_l(this):$r(this),this.fn()}finally{rn<=xo&&bl(this),wt=1<<--rn,it=this.parent,xt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){it===this?this.deferStop=!0:this.active&&($r(this),this.onStop&&this.onStop(),this.active=!1)}}function $r(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let xt=!0;const Tr=[];function Yt(){Tr.push(xt),xt=!1}function Xt(){const e=Tr.pop();xt=e===void 0?!0:e}function Ne(e,t,n){if(xt&&it){let o=wo.get(e);o||wo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=yo()),Pr(r)}}function Pr(e,t){let n=!1;rn<=xo?Ir(e)||(e.n|=wt,n=!Sr(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"&&Q(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":Q(e)?go(n)&&l.push(s.get("length")):(l.push(s.get(Lt)),Kt(e)&&l.push(s.get(ko)));break;case"delete":Q(e)||(l.push(s.get(Lt)),Kt(e)&&l.push(s.get(ko)));break;case"set":Kt(e)&&l.push(s.get(Lt));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=Q(e)?e:[...e];for(const o of n)o.computed&&Er(o);for(const o of n)o.computed||Er(o)}function Er(e,t){(e!==it||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const yl=He("__proto__,__v_isRef,__isVue"),Or=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ho)),wl=Io(),xl=Io(!1,!0),kl=Io(!0),Mr=Cl();function Cl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=de(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(de)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Yt();const o=de(this)[t].apply(this,n);return Xt(),o}}),e}function Sl(e){const t=de(this);return Ne(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?Fl:Fr:t?Nr:Rr).get(o))return o;const s=Q(o);if(!e){if(s&&fe(Mr,r))return Reflect.get(Mr,r,i);if(r==="hasOwnProperty")return Sl}const l=Reflect.get(o,r,i);return(ho(r)?Or.has(r):yl(r))||(e||Ne(o,"get",r),t)?l:$e(l)?s&&go(r)?l:l.value:_e(l)?e?Po(l):sn(l):l}}const Il=Lr(),$l=Lr(!0);function Lr(e=!1){return function(n,o,r,i){let s=n[o];if(Zt(s)&&$e(s)&&!$e(r))return!1;if(!e&&(!Nn(r)&&!Zt(r)&&(s=de(s),r=de(r)),!Q(n)&&$e(s)&&!$e(r)))return s.value=r,!0;const l=Q(n)&&go(o)?Number(o)<n.length:fe(n,o),a=Reflect.set(n,o,r,i);return n===de(i)&&(l?on(r,s)&&pt(n,"set",o,r):pt(n,"add",o,r)),a}}function Tl(e,t){const n=fe(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&pt(e,"delete",t,void 0),o}function Pl(e,t){const n=Reflect.has(e,t);return(!ho(t)||!Or.has(t))&&Ne(e,"has",t),n}function El(e){return Ne(e,"iterate",Q(e)?"length":Lt),Reflect.ownKeys(e)}const zr={get:wl,set:Il,deleteProperty:Tl,has:Pl,ownKeys:El},Ol={get:kl,set(e,t){return!0},deleteProperty(e,t){return!0}},Ml=ke({},zr,{get:xl,set:$l}),$o=e=>e,zn=e=>Reflect.getPrototypeOf(e);function jn(e,t,n=!1,o=!1){e=e.__v_raw;const r=de(e),i=de(t);n||(t!==i&&Ne(r,"get",t),Ne(r,"get",i));const{has:s}=zn(r),l=o?$o:n?Oo:ln;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 An(e,t=!1){const n=this.__v_raw,o=de(n),r=de(e);return t||(e!==r&&Ne(o,"has",e),Ne(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&&Ne(de(e),"iterate",Lt),Reflect.get(e,"size",e)}function jr(e){e=de(e);const t=de(this);return zn(t).has.call(t,e)||(t.add(e),pt(t,"add",e,e)),this}function Ar(e,t){t=de(t);const n=de(this),{has:o,get:r}=zn(n);let i=o.call(n,e);i||(e=de(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?on(t,s)&&pt(n,"set",e,t):pt(n,"add",e,t),this}function Br(e){const t=de(this),{has:n,get:o}=zn(t);let r=n.call(t,e);r||(e=de(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 Dr(){const e=de(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=de(s),a=t?$o:e?Oo:ln;return!e&&Ne(l,"iterate",Lt),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=de(r),s=Kt(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...o),u=n?$o:t?Oo:ln;return!t&&Ne(i,"iterate",a?ko:Lt),{next(){const{value:h,done:g}=c.next();return g?{value:h,done:g}:{value:l?[u(h[0]),u(h[1])]:u(h),done:g}},[Symbol.iterator](){return this}}}}function kt(e){return function(...t){return e==="delete"?!1:this}}function Ll(){const e={get(i){return jn(this,i)},get size(){return Bn(this)},has:An,add:jr,set:Ar,delete:Br,clear:Dr,forEach:Dn(!1,!1)},t={get(i){return jn(this,i,!1,!0)},get size(){return Bn(this)},has:An,add:jr,set:Ar,delete:Br,clear:Dr,forEach:Dn(!1,!0)},n={get(i){return jn(this,i,!0)},get size(){return Bn(this,!0)},has(i){return An.call(this,i,!0)},add:kt("add"),set:kt("set"),delete:kt("delete"),clear:kt("clear"),forEach:Dn(!0,!1)},o={get(i){return jn(this,i,!0,!0)},get size(){return Bn(this,!0)},has(i){return An.call(this,i,!0)},add:kt("add"),set:kt("set"),delete:kt("delete"),clear:kt("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[zl,jl,Al,Bl]=Ll();function To(e,t){const n=t?e?Bl:Al:e?jl:zl;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(fe(n,r)&&r in o?n:o,r,i)}const Dl={get:To(!1,!1)},Rl={get:To(!1,!0)},Nl={get:To(!0,!1)},Rr=new WeakMap,Nr=new WeakMap,Fr=new WeakMap,Fl=new WeakMap;function Vl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Hl(e){return e.__v_skip||!Object.isExtensible(e)?0:Vl(ll(e))}function sn(e){return Zt(e)?e:Eo(e,!1,zr,Dl,Rr)}function Wl(e){return Eo(e,!1,Ml,Rl,Nr)}function Po(e){return Eo(e,!0,Ol,Nl,Fr)}function Eo(e,t,n,o,r){if(!_e(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Hl(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 Zt(e)?qt(e.__v_raw):!!(e&&e.__v_isReactive)}function Zt(e){return!!(e&&e.__v_isReadonly)}function Nn(e){return!!(e&&e.__v_isShallow)}function Vr(e){return qt(e)||Zt(e)}function de(e){const t=e&&e.__v_raw;return t?de(t):e}function Hr(e){return Ln(e,"__v_skip",!0),e}const ln=e=>_e(e)?sn(e):e,Oo=e=>_e(e)?Po(e):e;function Wr(e){xt&&it&&(e=de(e),Pr(e.dep||(e.dep=yo())))}function Ur(e,t){e=de(e);const n=e.dep;n&&So(n)}function $e(e){return!!(e&&e.__v_isRef===!0)}function Y(e){return Kr(e,!1)}function Ul(e){return Kr(e,!0)}function Kr(e,t){return $e(e)?e:new Kl(e,t)}class Kl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:de(t),this._value=n?t:ln(t)}get value(){return Wr(this),this._value}set value(t){const n=this.__v_isShallow||Nn(t)||Zt(t);t=n?t:de(t),on(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ln(t),Ur(this))}}function G(e){return $e(e)?e.value:e}const Yl={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 Yr(e){return qt(e)?e:new Proxy(e,Yl)}class Xl{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,Ur(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=de(this);return Wr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function ql(e,t,n=!1){let o,r;const i=se(e);return i?(o=e,r=rt):(o=e.get,r=e.set),new Xl(o,r,i||!r,n)}function Fp(e,...t){}function Ct(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){Fn(i,t,n)}return r}function Qe(e,t,n,o){if(se(e)){const i=Ct(e,t,n,o);return i&&_r(i)&&i.catch(s=>{Fn(s,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(Qe(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){Ct(a,null,10,[e,s,l]);return}}Zl(e,n,r,o)}function Zl(e,t,n,o=!0){console.error(e)}let an=!1,Mo=!1;const Ae=[];let ct=0;const Jt=[];let ht=null,zt=0;const Xr=Promise.resolve();let Lo=null;function gt(e){const t=Lo||Xr;return e?t.then(this?e.bind(this):e):t}function Jl(e){let t=ct+1,n=Ae.length;for(;t<n;){const o=t+n>>>1;cn(Ae[o])<e?t=o+1:n=o}return t}function zo(e){(!Ae.length||!Ae.includes(e,an&&e.allowRecurse?ct+1:ct))&&(e.id==null?Ae.push(e):Ae.splice(Jl(e.id),0,e),qr())}function qr(){!an&&!Mo&&(Mo=!0,Lo=Xr.then(Qr))}function Ql(e){const t=Ae.indexOf(e);t>ct&&Ae.splice(t,1)}function Gl(e){Q(e)?Jt.push(...e):(!ht||!ht.includes(e,e.allowRecurse?zt+1:zt))&&Jt.push(e),qr()}function Zr(e,t=an?ct+1:0){for(;t<Ae.length;t++){const n=Ae[t];n&&n.pre&&(Ae.splice(t,1),t--,n())}}function Jr(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)=>cn(n)-cn(o)),zt=0;zt<ht.length;zt++)ht[zt]();ht=null,zt=0}}const cn=e=>e.id==null?1/0:e.id,ea=(e,t)=>{const n=cn(e)-cn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Qr(e){Mo=!1,an=!0,Ae.sort(ea);const t=rt;try{for(ct=0;ct<Ae.length;ct++){const n=Ae[ct];n&&n.active!==!1&&Ct(n,null,14)}}finally{ct=0,Ae.length=0,Jr(),an=!1,Lo=null,(Ae.length||Jt.length)&&Qr()}}function ta(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ce;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:h,trim:g}=o[u]||ce;g&&(r=n.map(y=>Ie(y)?y.trim():y)),h&&(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&&Qe(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,Qe(c,e,6,r)}}function Gr(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let s={},l=!1;if(!se(e)){const a=c=>{const u=Gr(c,t,!0);u&&(l=!0,ke(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(_e(e)&&o.set(e,null),null):(Q(i)?i.forEach(a=>s[a]=null):ke(s,i),_e(e)&&o.set(e,s),s)}function Vn(e,t){return!e||!$n(t)?!1:(t=t.slice(2).replace(/Once$/,""),fe(e,t[0].toLowerCase()+t.slice(1))||fe(e,Ze(t))||fe(e,t))}let je=null,ei=null;function Hn(e){const t=je;return je=e,ei=e&&e.type.__scopeId||null,t}function le(e,t=je,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Ei(-1);const i=Hn(t);let s;try{s=e(...r)}finally{Hn(i),o._d&&Ei(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function Vp(){}function jo(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:h,data:g,setupState:y,ctx:M,inheritAttrs:x}=e;let B,W;const N=Hn(e);try{if(n.shapeFlag&4){const d=r||o;B=ut(u.call(d,d,h,i,y,g,M)),W=a}else{const d=t;B=ut(d.length>1?d(i,{attrs:a,slots:l,emit:c}):d(i,null)),W=t.props?a:na(a)}}catch(d){hn.length=0,Fn(d,e,1),B=Z(tt)}let L=B;if(W&&x!==!1){const d=Object.keys(W),{shapeFlag:E}=L;d.length&&E&7&&(s&&d.some(fo)&&(W=oa(W,s)),L=St(L,W))}return n.dirs&&(L=St(L),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition&&(L.transition=n.transition),B=L,Hn(N),B}const na=e=>{let t;for(const n in e)(n==="class"||n==="style"||$n(n))&&((t||(t={}))[n]=e[n]);return t},oa=(e,t)=>{const n={};for(const o in e)(!fo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function ra(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?ti(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const g=u[h];if(s[g]!==o[g]&&!Vn(c,g))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?ti(o,s,c):!0:!!s;return!1}function ti(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 ia({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const sa=e=>e.__isSuspense;function la(e,t){t&&t.pendingBranch?Q(e)?t.effects.push(...e):t.effects.push(e):Gl(e)}const Wn={};function pe(e,t,n){return ni(e,t,n)}function ni(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:s}=ce){var l;const a=Cr()===((l=ze)==null?void 0:l.scope)?ze:null;let c,u=!1,h=!1;if($e(e)?(c=()=>e.value,u=Nn(e)):qt(e)?(c=()=>e,o=!0):Q(e)?(h=!0,u=e.some(d=>qt(d)||Nn(d)),c=()=>e.map(d=>{if($e(d))return d.value;if(qt(d))return jt(d);if(se(d))return Ct(d,a,2)})):se(e)?t?c=()=>Ct(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return g&&g(),Qe(e,a,3,[y])}:c=rt,t&&o){const d=c;c=()=>jt(d())}let g,y=d=>{g=N.onStop=()=>{Ct(d,a,4)}},M;if(mn)if(y=rt,t?n&&Qe(t,a,3,[c(),h?[]:void 0,y]):c(),r==="sync"){const d=Ga();M=d.__watcherHandles||(d.__watcherHandles=[])}else return rt;let x=h?new Array(e.length).fill(Wn):Wn;const B=()=>{if(N.active)if(t){const d=N.run();(o||u||(h?d.some((E,I)=>on(E,x[I])):on(d,x)))&&(g&&g(),Qe(t,a,3,[d,x===Wn?void 0:h&&x[0]===Wn?[]:x,y]),x=d)}else N.run()};B.allowRecurse=!!t;let W;r==="sync"?W=B:r==="post"?W=()=>Fe(B,a&&a.suspense):(B.pre=!0,a&&(B.id=a.uid),W=()=>zo(B));const N=new Co(c,W);t?n?B():x=N.run():r==="post"?Fe(N.run.bind(N),a&&a.suspense):N.run();const L=()=>{N.stop(),a&&a.scope&&po(a.scope.effects,N)};return M&&M.push(L),L}function aa(e,t,n){const o=this.proxy,r=Ie(e)?e.includes(".")?oi(o,e):()=>o[e]:e.bind(o,o);let i;se(t)?i=t:(i=t.handler,n=t);const s=ze;Gt(this);const l=ni(r,i.bind(o),n);return s?Gt(s):Nt(),l}function oi(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 jt(e,t){if(!_e(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),$e(e))jt(e.value,t);else if(Q(e))for(let n=0;n<e.length;n++)jt(e[n],t);else if(vr(e)||Kt(e))e.forEach(n=>{jt(n,t)});else if(yr(e))for(const n in e)jt(e[n],t);return e}function mt(e,t){const n=je;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=ce]=t[i];s&&(se(s)&&(s={mounted:s,updated:s}),s.deep&&jt(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&&(Yt(),Qe(a,n,8,[e.el,l,e,t]),Xt())}}function ca(){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],ri={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},ua={name:"BaseTransition",props:ri,setup(e,{slots:t}){const n=Li(),o=ca();let r;return()=>{const i=t.default&&li(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const x of i)if(x.type!==tt){s=x;break}}const l=de(e),{mode:a}=l;if(o.isLeaving)return Bo(s);const c=si(s);if(!c)return Bo(s);const u=Ao(c,l,o,n);Do(c,u);const h=n.subTree,g=h&&si(h);let y=!1;const{getTransitionKey:M}=c.type;if(M){const x=M();r===void 0?r=x:x!==r&&(r=x,y=!0)}if(g&&g.type!==tt&&(!Rt(c,g)||y)){const x=Ao(g,l,o,n);if(Do(g,x),a==="out-in")return o.isLeaving=!0,x.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},Bo(s);a==="in-out"&&c.type!==tt&&(x.delayLeave=(B,W,N)=>{const L=ii(o,g);L[String(g.key)]=g,B._leaveCb=()=>{W(),B._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=N})}return s}}};function ii(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:h,onLeave:g,onAfterLeave:y,onLeaveCancelled:M,onBeforeAppear:x,onAppear:B,onAfterAppear:W,onAppearCancelled:N}=t,L=String(e.key),d=ii(n,e),E=(m,V)=>{m&&Qe(m,o,9,V)},I=(m,V)=>{const ee=V[1];E(m,V),Q(m)?m.every(ie=>ie.length<=1)&&ee():m.length<=1&&ee()},$={mode:i,persisted:s,beforeEnter(m){let V=l;if(!n.isMounted)if(r)V=x||l;else return;m._leaveCb&&m._leaveCb(!0);const ee=d[L];ee&&Rt(e,ee)&&ee.el._leaveCb&&ee.el._leaveCb(),E(V,[m])},enter(m){let V=a,ee=c,ie=u;if(!n.isMounted)if(r)V=B||a,ee=W||c,ie=N||u;else return;let b=!1;const F=m._enterCb=oe=>{b||(b=!0,oe?E(ie,[m]):E(ee,[m]),$.delayedLeave&&$.delayedLeave(),m._enterCb=void 0)};V?I(V,[m,F]):F()},leave(m,V){const ee=String(e.key);if(m._enterCb&&m._enterCb(!0),n.isUnmounting)return V();E(h,[m]);let ie=!1;const b=m._leaveCb=F=>{ie||(ie=!0,V(),F?E(M,[m]):E(y,[m]),m._leaveCb=void 0,d[ee]===e&&delete d[ee])};d[ee]=e,g?I(g,[m,b]):b()},clone(m){return Ao(m,t,n,o)}};return $}function Bo(e){if(Un(e))return e=St(e),e.children=null,e}function si(e){return Un(e)?e.children?e.children[0]:void 0:e}function Do(e,t){e.shapeFlag&6&&e.component?Do(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 li(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===Ce?(s.patchFlag&128&&r++,o=o.concat(li(s.children,t,l))):(t||s.type!==tt)&&o.push(l!=null?St(s,{key:l}):s)}if(r>1)for(let i=0;i<o.length;i++)o[i].patchFlag=-2;return o}function Te(e,t){return se(e)?(()=>ke({name:e.name},t,{setup:e}))():e}const un=e=>!!e.type.__asyncLoader,Un=e=>e.type.__isKeepAlive;function fa(e,t){ai(e,"a",t)}function da(e,t){ai(e,"da",t)}function ai(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(Kn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Un(r.parent.vnode)&&pa(o,t,n,r),r=r.parent}}function pa(e,t,n,o){const r=Kn(t,e,o,!0);st(()=>{po(o[t],r)},n)}function Kn(e,t,n=ze,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Yt(),Gt(n);const l=Qe(t,n,e,s);return Nt(),Xt(),l});return o?r.unshift(i):r.push(i),i}}const vt=e=>(t,n=ze)=>(!mn||e==="sp")&&Kn(e,(...o)=>t(...o),n),ha=vt("bm"),et=vt("m"),ga=vt("bu"),ma=vt("u"),Yn=vt("bum"),st=vt("um"),va=vt("sp"),_a=vt("rtg"),ba=vt("rtc");function ya(e,t=ze){Kn("ec",e,t)}const ci="components",ui=Symbol.for("v-ndc");function wa(e){return Ie(e)?xa(ci,e,!1)||e:e||ui}function xa(e,t,n=!0,o=!1){const r=je||ze;if(r){const i=r.type;if(e===ci){const l=Za(i,!1);if(l&&(l===t||l===We(t)||l===On(We(t))))return i}const s=fi(r[e]||i[e],t)||fi(r.appContext[e],t);return!s&&o?i:s}}function fi(e,t){return e&&(e[t]||e[We(t)]||e[On(We(t))])}function fn(e,t,n,o){let r;const i=n&&n[o];if(Q(e)||Ie(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(_e(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 di(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(Q(o))for(let r=0;r<o.length;r++)e[o[r].name]=o[r].fn;else o&&(e[o.name]=o.key?(...r)=>{const i=o.fn(...r);return i&&(i.key=o.key),i}:o.fn)}return e}function Pe(e,t,n={},o,r){if(je.isCE||je.parent&&un(je.parent)&&je.parent.isCE)return t!=="default"&&(n.name=t),Z("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),A();const s=i&&pi(i(n)),l=we(Ce,{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 pi(e){return e.some(t=>Qn(t)?!(t.type===tt||t.type===Ce&&!pi(t.children)):!0)?e:null}const Ro=e=>e?ji(e)?no(e)||e.proxy:Ro(e.parent):null,dn=ke(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=>Ro(e.parent),$root:e=>Ro(e.root),$emit:e=>e.emit,$options:e=>Vo(e),$forceUpdate:e=>e.f||(e.f=()=>zo(e.update)),$nextTick:e=>e.n||(e.n=gt.bind(e.proxy)),$watch:e=>aa.bind(e)}),No=(e,t)=>e!==ce&&!e.__isScriptSetup&&fe(e,t),ka={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(No(o,t))return s[t]=1,o[t];if(r!==ce&&fe(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&fe(c,t))return s[t]=3,i[t];if(n!==ce&&fe(n,t))return s[t]=4,n[t];Fo&&(s[t]=0)}}const u=dn[t];let h,g;if(u)return t==="$attrs"&&Ne(e,"get",t),u(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==ce&&fe(n,t))return s[t]=4,n[t];if(g=a.config.globalProperties,fe(g,t))return g[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return No(r,t)?(r[t]=n,!0):o!==ce&&fe(o,t)?(o[t]=n,!0):fe(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!==ce&&fe(e,s)||No(t,s)||(l=i[0])&&fe(l,s)||fe(o,s)||fe(dn,s)||fe(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:fe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hi(e){return Q(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Fo=!0;function Ca(e){const t=Vo(e),n=e.proxy,o=e.ctx;Fo=!1,t.beforeCreate&&gi(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:h,mounted:g,beforeUpdate:y,updated:M,activated:x,deactivated:B,beforeDestroy:W,beforeUnmount:N,destroyed:L,unmounted:d,render:E,renderTracked:I,renderTriggered:$,errorCaptured:m,serverPrefetch:V,expose:ee,inheritAttrs:ie,components:b,directives:F,filters:oe}=t;if(c&&Sa(c,o,null),s)for(const k in s){const P=s[k];se(P)&&(o[k]=P.bind(n))}if(r){const k=r.call(n,n);_e(k)&&(e.data=sn(k))}if(Fo=!0,i)for(const k in i){const P=i[k],U=se(P)?P.bind(n,n):se(P.get)?P.get.bind(n,n):rt,ne=!se(P)&&se(P.set)?P.set.bind(n):rt,ye=ae({get:U,set:ne});Object.defineProperty(o,k,{enumerable:!0,configurable:!0,get:()=>ye.value,set:he=>ye.value=he})}if(l)for(const k in l)mi(l[k],o,n,k);if(a){const k=se(a)?a.call(n):a;Reflect.ownKeys(k).forEach(P=>{Zn(P,k[P])})}u&&gi(u,e,"c");function C(k,P){Q(P)?P.forEach(U=>k(U.bind(n))):P&&k(P.bind(n))}if(C(ha,h),C(et,g),C(ga,y),C(ma,M),C(fa,x),C(da,B),C(ya,m),C(ba,I),C(_a,$),C(Yn,N),C(st,d),C(va,V),Q(ee))if(ee.length){const k=e.exposed||(e.exposed={});ee.forEach(P=>{Object.defineProperty(k,P,{get:()=>n[P],set:U=>n[P]=U})})}else e.exposed||(e.exposed={});E&&e.render===rt&&(e.render=E),ie!=null&&(e.inheritAttrs=ie),b&&(e.components=b),F&&(e.directives=F)}function Sa(e,t,n=rt){Q(e)&&(e=Ho(e));for(const o in e){const r=e[o];let i;_e(r)?"default"in r?i=Bt(r.from||o,r.default,!0):i=Bt(r.from||o):i=Bt(r),$e(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function gi(e,t,n){Qe(Q(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function mi(e,t,n,o){const r=o.includes(".")?oi(n,o):()=>n[o];if(Ie(e)){const i=t[e];se(i)&&pe(r,i)}else if(se(e))pe(r,e.bind(n));else if(_e(e))if(Q(e))e.forEach(i=>mi(i,t,n,o));else{const i=se(e.handler)?e.handler.bind(n):t[e.handler];se(i)&&pe(r,i,e)}}function Vo(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)),_e(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=Ia[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Ia={data:vi,props:_i,emits:_i,methods:pn,computed:pn,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:pn,directives:pn,watch:Ta,provide:vi,inject:$a};function vi(e,t){return t?e?function(){return ke(se(e)?e.call(this,this):e,se(t)?t.call(this,this):t)}:t:e}function $a(e,t){return pn(Ho(e),Ho(t))}function Ho(e){if(Q(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 pn(e,t){return e?ke(Object.create(null),e,t):t}function _i(e,t){return e?Q(e)&&Q(t)?[...new Set([...e,...t])]:ke(Object.create(null),hi(e),hi(t??{})):t}function Ta(e,t){if(!e)return t;if(!t)return e;const n=ke(Object.create(null),e);for(const o in t)n[o]=De(e[o],t[o]);return n}function bi(){return{app:null,config:{isNativeTag:rl,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 Pa=0;function Ea(e,t){return function(o,r=null){se(o)||(o=ke({},o)),r!=null&&!_e(r)&&(r=null);const i=bi(),s=new Set;let l=!1;const a=i.app={_uid:Pa++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:ec,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&se(c.install)?(s.add(c),c.install(a,...u)):se(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,h){if(!l){const g=Z(o,r);return g.appContext=i,u&&t?t(g,c):e(g,c,h),l=!0,a._container=c,c.__vue_app__=a,no(g.component)||g.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(ze){let n=ze.provides;const o=ze.parent&&ze.parent.provides;o===n&&(n=ze.provides=Object.create(o)),n[e]=t}}function Bt(e,t,n=!1){const o=ze||je;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&&se(t)?t.call(o&&o.proxy):t}}function Oa(e,t,n,o=!1){const r={},i={};Ln(i,Gn,1),e.propsDefaults=Object.create(null),yi(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:Wl(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Ma(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=de(r),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let h=0;h<u.length;h++){let g=u[h];if(Vn(e.emitsOptions,g))continue;const y=t[g];if(a)if(fe(i,g))y!==i[g]&&(i[g]=y,c=!0);else{const M=We(g);r[M]=Wo(a,l,M,y,e,!1)}else y!==i[g]&&(i[g]=y,c=!0)}}}else{yi(e,t,r,i)&&(c=!0);let u;for(const h in l)(!t||!fe(t,h)&&((u=Ze(h))===h||!fe(t,u)))&&(a?n&&(n[h]!==void 0||n[u]!==void 0)&&(r[h]=Wo(a,l,h,void 0,e,!0)):delete r[h]);if(i!==l)for(const h in i)(!t||!fe(t,h))&&(delete i[h],c=!0)}c&&pt(e,"set","$attrs")}function yi(e,t,n,o){const[r,i]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(Pn(a))continue;const c=t[a];let u;r&&fe(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=de(n),c=l||ce;for(let u=0;u<i.length;u++){const h=i[u];n[h]=Wo(r,a,h,c[h],e,!fe(c,h))}}return s}function Wo(e,t,n,o,r,i){const s=e[n];if(s!=null){const l=fe(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&se(a)){const{propsDefaults:c}=r;n in c?o=c[n]:(Gt(r),o=c[n]=a.call(null,t),Nt())}else o=a}s[0]&&(i&&!l?o=!1:s[1]&&(o===""||o===Ze(n))&&(o=!0))}return o}function wi(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(!se(e)){const u=h=>{a=!0;const[g,y]=wi(h,t,!0);ke(s,g),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 _e(e)&&o.set(e,qe),qe;if(Q(i))for(let u=0;u<i.length;u++){const h=We(i[u]);xi(h)&&(s[h]=ce)}else if(i)for(const u in i){const h=We(u);if(xi(h)){const g=i[u],y=s[h]=Q(g)||se(g)?{type:g}:ke({},g);if(y){const M=Si(Boolean,y.type),x=Si(String,y.type);y[0]=M>-1,y[1]=x<0||M<x,(M>-1||fe(y,"default"))&&l.push(h)}}}const c=[s,l];return _e(e)&&o.set(e,c),c}function xi(e){return e[0]!=="$"}function ki(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ci(e,t){return ki(e)===ki(t)}function Si(e,t){return Q(t)?t.findIndex(n=>Ci(n,e)):se(t)&&Ci(t,e)?0:-1}const Ii=e=>e[0]==="_"||e==="$stable",Uo=e=>Q(e)?e.map(ut):[ut(e)],La=(e,t,n)=>{if(t._n)return t;const o=le((...r)=>Uo(t(...r)),n);return o._c=!1,o},$i=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Ii(r))continue;const i=e[r];if(se(i))t[r]=La(r,i,o);else if(i!=null){const s=Uo(i);t[r]=()=>s}}},Ti=(e,t)=>{const n=Uo(t);e.slots.default=()=>n},za=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=de(t),Ln(t,"_",n)):$i(t,e.slots={})}else e.slots={},t&&Ti(e,t);Ln(e.slots,Gn,1)},ja=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=ce;if(o.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(ke(r,t),!n&&l===1&&delete r._):(i=!t.$stable,$i(t,r)),s=t}else t&&(Ti(e,t),s={default:1});if(i)for(const l in r)!Ii(l)&&!(l in s)&&delete r[l]};function Ko(e,t,n,o,r=!1){if(Q(e)){e.forEach((g,y)=>Ko(g,t&&(Q(t)?t[y]:t),n,o,r));return}if(un(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===ce?l.refs={}:l.refs,h=l.setupState;if(c!=null&&c!==a&&(Ie(c)?(u[c]=null,fe(h,c)&&(h[c]=null)):$e(c)&&(c.value=null)),se(a))Ct(a,l,12,[s,u]);else{const g=Ie(a),y=$e(a);if(g||y){const M=()=>{if(e.f){const x=g?fe(h,a)?h[a]:u[a]:a.value;r?Q(x)&&po(x,i):Q(x)?x.includes(i)||x.push(i):g?(u[a]=[i],fe(h,a)&&(h[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else g?(u[a]=s,fe(h,a)&&(h[a]=s)):y&&(a.value=s,e.k&&(u[e.k]=s))};s?(M.id=-1,Fe(M,n)):M()}}}const Fe=la;function Aa(e){return Ba(e)}function Ba(e,t){const n=bo();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:h,nextSibling:g,setScopeId:y=rt,insertStaticContent:M}=e,x=(f,p,_,T=null,S=null,j=null,H=!1,z=null,R=!!p.dynamicChildren)=>{if(f===p)return;f&&!Rt(f,p)&&(T=Ee(f),he(f,S,j,!0),f=null),p.patchFlag===-2&&(R=!1,p.dynamicChildren=null);const{type:O,ref:v,shapeFlag:w}=p;switch(O){case Jn:B(f,p,_,T);break;case tt:W(f,p,_,T);break;case Yo:f==null&&N(p,_,T,H);break;case Ce:b(f,p,_,T,S,j,H,z,R);break;default:w&1?E(f,p,_,T,S,j,H,z,R):w&6?F(f,p,_,T,S,j,H,z,R):(w&64||w&128)&&O.process(f,p,_,T,S,j,H,z,R,dt)}v!=null&&S&&Ko(v,f&&f.ref,j,p||f,!p)},B=(f,p,_,T)=>{if(f==null)o(p.el=l(p.children),_,T);else{const S=p.el=f.el;p.children!==f.children&&c(S,p.children)}},W=(f,p,_,T)=>{f==null?o(p.el=a(p.children||""),_,T):p.el=f.el},N=(f,p,_,T)=>{[f.el,f.anchor]=M(f.children,p,_,T,f.el,f.anchor)},L=({el:f,anchor:p},_,T)=>{let S;for(;f&&f!==p;)S=g(f),o(f,_,T),f=S;o(p,_,T)},d=({el:f,anchor:p})=>{let _;for(;f&&f!==p;)_=g(f),r(f),f=_;r(p)},E=(f,p,_,T,S,j,H,z,R)=>{H=H||p.type==="svg",f==null?I(p,_,T,S,j,H,z,R):V(f,p,S,j,H,z,R)},I=(f,p,_,T,S,j,H,z)=>{let R,O;const{type:v,props:w,shapeFlag:K,transition:J,dirs:re}=f;if(R=f.el=s(f.type,j,w&&w.is,w),K&8?u(R,f.children):K&16&&m(f.children,R,null,T,S,j&&v!=="foreignObject",H,z),re&&At(f,null,T,"created"),$(R,f,f.scopeId,H,T),w){for(const ge in w)ge!=="value"&&!Pn(ge)&&i(R,ge,null,w[ge],j,f.children,T,S,ve);"value"in w&&i(R,"value",null,w.value),(O=w.onVnodeBeforeMount)&&ft(O,T,f)}re&&At(f,null,T,"beforeMount");const me=(!S||S&&!S.pendingBranch)&&J&&!J.persisted;me&&J.beforeEnter(R),o(R,p,_),((O=w&&w.onVnodeMounted)||me||re)&&Fe(()=>{O&&ft(O,T,f),me&&J.enter(R),re&&At(f,null,T,"mounted")},S)},$=(f,p,_,T,S)=>{if(_&&y(f,_),T)for(let j=0;j<T.length;j++)y(f,T[j]);if(S){let j=S.subTree;if(p===j){const H=S.vnode;$(f,H,H.scopeId,H.slotScopeIds,S.parent)}}},m=(f,p,_,T,S,j,H,z,R=0)=>{for(let O=R;O<f.length;O++){const v=f[O]=z?$t(f[O]):ut(f[O]);x(null,v,p,_,T,S,j,H,z)}},V=(f,p,_,T,S,j,H)=>{const z=p.el=f.el;let{patchFlag:R,dynamicChildren:O,dirs:v}=p;R|=f.patchFlag&16;const w=f.props||ce,K=p.props||ce;let J;_&&Dt(_,!1),(J=K.onVnodeBeforeUpdate)&&ft(J,_,p,f),v&&At(p,f,_,"beforeUpdate"),_&&Dt(_,!0);const re=S&&p.type!=="foreignObject";if(O?ee(f.dynamicChildren,O,z,_,T,re,j):H||P(f,p,z,null,_,T,re,j,!1),R>0){if(R&16)ie(z,p,w,K,_,T,S);else if(R&2&&w.class!==K.class&&i(z,"class",null,K.class,S),R&4&&i(z,"style",w.style,K.style,S),R&8){const me=p.dynamicProps;for(let ge=0;ge<me.length;ge++){const xe=me[ge],Xe=w[xe],Ve=K[xe];(Ve!==Xe||xe==="value")&&i(z,xe,Xe,Ve,S,f.children,_,T,ve)}}R&1&&f.children!==p.children&&u(z,p.children)}else!H&&O==null&&ie(z,p,w,K,_,T,S);((J=K.onVnodeUpdated)||v)&&Fe(()=>{J&&ft(J,_,p,f),v&&At(p,f,_,"updated")},T)},ee=(f,p,_,T,S,j,H)=>{for(let z=0;z<p.length;z++){const R=f[z],O=p[z],v=R.el&&(R.type===Ce||!Rt(R,O)||R.shapeFlag&70)?h(R.el):_;x(R,O,v,null,T,S,j,H,!0)}},ie=(f,p,_,T,S,j,H)=>{if(_!==T){if(_!==ce)for(const z in _)!Pn(z)&&!(z in T)&&i(f,z,_[z],null,H,p.children,S,j,ve);for(const z in T){if(Pn(z))continue;const R=T[z],O=_[z];R!==O&&z!=="value"&&i(f,z,O,R,H,p.children,S,j,ve)}"value"in T&&i(f,"value",_.value,T.value)}},b=(f,p,_,T,S,j,H,z,R)=>{const O=p.el=f?f.el:l(""),v=p.anchor=f?f.anchor:l("");let{patchFlag:w,dynamicChildren:K,slotScopeIds:J}=p;J&&(z=z?z.concat(J):J),f==null?(o(O,_,T),o(v,_,T),m(p.children,_,v,S,j,H,z,R)):w>0&&w&64&&K&&f.dynamicChildren?(ee(f.dynamicChildren,K,_,S,j,H,z),(p.key!=null||S&&p===S.subTree)&&Pi(f,p,!0)):P(f,p,_,v,S,j,H,z,R)},F=(f,p,_,T,S,j,H,z,R)=>{p.slotScopeIds=z,f==null?p.shapeFlag&512?S.ctx.activate(p,_,T,H,R):oe(p,_,T,S,j,H,R):D(f,p,R)},oe=(f,p,_,T,S,j,H)=>{const z=f.component=Ua(f,T,S);if(Un(f)&&(z.ctx.renderer=dt),Ka(z),z.asyncDep){if(S&&S.registerDep(z,C),!f.el){const R=z.subTree=Z(tt);W(null,R,p,_)}return}C(z,f,p,_,S,j,H)},D=(f,p,_)=>{const T=p.component=f.component;if(ra(f,p,_))if(T.asyncDep&&!T.asyncResolved){k(T,p,_);return}else T.next=p,Ql(T.update),T.update();else p.el=f.el,T.vnode=p},C=(f,p,_,T,S,j,H)=>{const z=()=>{if(f.isMounted){let{next:v,bu:w,u:K,parent:J,vnode:re}=f,me=v,ge;Dt(f,!1),v?(v.el=re.el,k(f,v,H)):v=re,w&&Mn(w),(ge=v.props&&v.props.onVnodeBeforeUpdate)&&ft(ge,J,v,re),Dt(f,!0);const xe=jo(f),Xe=f.subTree;f.subTree=xe,x(Xe,xe,h(Xe.el),Ee(Xe),f,S,j),v.el=xe.el,me===null&&ia(f,xe.el),K&&Fe(K,S),(ge=v.props&&v.props.onVnodeUpdated)&&Fe(()=>ft(ge,J,v,re),S)}else{let v;const{el:w,props:K}=p,{bm:J,m:re,parent:me}=f,ge=un(p);if(Dt(f,!1),J&&Mn(J),!ge&&(v=K&&K.onVnodeBeforeMount)&&ft(v,me,p),Dt(f,!0),w&&In){const xe=()=>{f.subTree=jo(f),In(w,f.subTree,f,S,null)};ge?p.type.__asyncLoader().then(()=>!f.isUnmounted&&xe()):xe()}else{const xe=f.subTree=jo(f);x(null,xe,_,T,f,S,j),p.el=xe.el}if(re&&Fe(re,S),!ge&&(v=K&&K.onVnodeMounted)){const xe=p;Fe(()=>ft(v,me,xe),S)}(p.shapeFlag&256||me&&un(me.vnode)&&me.vnode.shapeFlag&256)&&f.a&&Fe(f.a,S),f.isMounted=!0,p=_=T=null}},R=f.effect=new Co(z,()=>zo(O),f.scope),O=f.update=()=>R.run();O.id=f.uid,Dt(f,!0),O()},k=(f,p,_)=>{p.component=f;const T=f.vnode.props;f.vnode=p,f.next=null,Ma(f,p.props,T,_),ja(f,p.children,_),Yt(),Zr(),Xt()},P=(f,p,_,T,S,j,H,z,R=!1)=>{const O=f&&f.children,v=f?f.shapeFlag:0,w=p.children,{patchFlag:K,shapeFlag:J}=p;if(K>0){if(K&128){ne(O,w,_,T,S,j,H,z,R);return}else if(K&256){U(O,w,_,T,S,j,H,z,R);return}}J&8?(v&16&&ve(O,S,j),w!==O&&u(_,w)):v&16?J&16?ne(O,w,_,T,S,j,H,z,R):ve(O,S,j,!0):(v&8&&u(_,""),J&16&&m(w,_,T,S,j,H,z,R))},U=(f,p,_,T,S,j,H,z,R)=>{f=f||qe,p=p||qe;const O=f.length,v=p.length,w=Math.min(O,v);let K;for(K=0;K<w;K++){const J=p[K]=R?$t(p[K]):ut(p[K]);x(f[K],J,_,null,S,j,H,z,R)}O>v?ve(f,S,j,!0,!1,w):m(p,_,T,S,j,H,z,R,w)},ne=(f,p,_,T,S,j,H,z,R)=>{let O=0;const v=p.length;let w=f.length-1,K=v-1;for(;O<=w&&O<=K;){const J=f[O],re=p[O]=R?$t(p[O]):ut(p[O]);if(Rt(J,re))x(J,re,_,null,S,j,H,z,R);else break;O++}for(;O<=w&&O<=K;){const J=f[w],re=p[K]=R?$t(p[K]):ut(p[K]);if(Rt(J,re))x(J,re,_,null,S,j,H,z,R);else break;w--,K--}if(O>w){if(O<=K){const J=K+1,re=J<v?p[J].el:T;for(;O<=K;)x(null,p[O]=R?$t(p[O]):ut(p[O]),_,re,S,j,H,z,R),O++}}else if(O>K)for(;O<=w;)he(f[O],S,j,!0),O++;else{const J=O,re=O,me=new Map;for(O=re;O<=K;O++){const Re=p[O]=R?$t(p[O]):ut(p[O]);Re.key!=null&&me.set(Re.key,O)}let ge,xe=0;const Xe=K-re+1;let Ve=!1,ao=0;const Ut=new Array(Xe);for(O=0;O<Xe;O++)Ut[O]=0;for(O=J;O<=w;O++){const Re=f[O];if(xe>=Xe){he(Re,S,j,!0);continue}let ot;if(Re.key!=null)ot=me.get(Re.key);else for(ge=re;ge<=K;ge++)if(Ut[ge-re]===0&&Rt(Re,p[ge])){ot=ge;break}ot===void 0?he(Re,S,j,!0):(Ut[ot-re]=O+1,ot>=ao?ao=ot:Ve=!0,x(Re,p[ot],_,null,S,j,H,z,R),xe++)}const co=Ve?Da(Ut):qe;for(ge=co.length-1,O=Xe-1;O>=0;O--){const Re=re+O,ot=p[Re],uo=Re+1<v?p[Re+1].el:T;Ut[O]===0?x(null,ot,_,uo,S,j,H,z,R):Ve&&(ge<0||O!==co[ge]?ye(ot,_,uo,2):ge--)}}},ye=(f,p,_,T,S=null)=>{const{el:j,type:H,transition:z,children:R,shapeFlag:O}=f;if(O&6){ye(f.component.subTree,p,_,T);return}if(O&128){f.suspense.move(p,_,T);return}if(O&64){H.move(f,p,_,dt);return}if(H===Ce){o(j,p,_);for(let w=0;w<R.length;w++)ye(R[w],p,_,T);o(f.anchor,p,_);return}if(H===Yo){L(f,p,_);return}if(T!==2&&O&1&&z)if(T===0)z.beforeEnter(j),o(j,p,_),Fe(()=>z.enter(j),S);else{const{leave:w,delayLeave:K,afterLeave:J}=z,re=()=>o(j,p,_),me=()=>{w(j,()=>{re(),J&&J()})};K?K(j,re,me):me()}else o(j,p,_)},he=(f,p,_,T=!1,S=!1)=>{const{type:j,props:H,ref:z,children:R,dynamicChildren:O,shapeFlag:v,patchFlag:w,dirs:K}=f;if(z!=null&&Ko(z,null,_,f,!0),v&256){p.ctx.deactivate(f);return}const J=v&1&&K,re=!un(f);let me;if(re&&(me=H&&H.onVnodeBeforeUnmount)&&ft(me,p,f),v&6)Le(f.component,_,T);else{if(v&128){f.suspense.unmount(_,T);return}J&&At(f,null,p,"beforeUnmount"),v&64?f.type.remove(f,p,_,S,dt,T):O&&(j!==Ce||w>0&&w&64)?ve(O,p,_,!1,!0):(j===Ce&&w&384||!S&&v&16)&&ve(R,p,_),T&&ue(f)}(re&&(me=H&&H.onVnodeUnmounted)||J)&&Fe(()=>{me&&ft(me,p,f),J&&At(f,null,p,"unmounted")},_)},ue=f=>{const{type:p,el:_,anchor:T,transition:S}=f;if(p===Ce){te(_,T);return}if(p===Yo){d(f);return}const j=()=>{r(_),S&&!S.persisted&&S.afterLeave&&S.afterLeave()};if(f.shapeFlag&1&&S&&!S.persisted){const{leave:H,delayLeave:z}=S,R=()=>H(_,j);z?z(f.el,j,R):R()}else j()},te=(f,p)=>{let _;for(;f!==p;)_=g(f),r(f),f=_;r(p)},Le=(f,p,_)=>{const{bum:T,scope:S,update:j,subTree:H,um:z}=f;T&&Mn(T),S.stop(),j&&(j.active=!1,he(H,f,p,_)),z&&Fe(z,p),Fe(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},ve=(f,p,_,T=!1,S=!1,j=0)=>{for(let H=j;H<f.length;H++)he(f[H],p,_,T,S)},Ee=f=>f.shapeFlag&6?Ee(f.component.subTree):f.shapeFlag&128?f.suspense.next():g(f.anchor||f.el),Se=(f,p,_)=>{f==null?p._vnode&&he(p._vnode,null,null,!0):x(p._vnode||null,f,p,null,null,null,_),Zr(),Jr(),p._vnode=f},dt={p:x,um:he,m:ye,r:ue,mt:oe,mc:m,pc:P,pbc:ee,n:Ee,o:e};let Sn,In;return t&&([Sn,In]=t(dt)),{render:Se,hydrate:Sn,createApp:Ea(Se,Sn)}}function Dt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Pi(e,t,n=!1){const o=e.children,r=t.children;if(Q(o)&&Q(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||Pi(s,l)),l.type===Jn&&(l.el=s.el)}}function Da(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 Ra=e=>e.__isTeleport,Ce=Symbol.for("v-fgt"),Jn=Symbol.for("v-txt"),tt=Symbol.for("v-cmt"),Yo=Symbol.for("v-stc"),hn=[];let lt=null;function A(e=!1){hn.push(lt=e?null:[])}function Na(){hn.pop(),lt=hn[hn.length-1]||null}let gn=1;function Ei(e){gn+=e}function Oi(e){return e.dynamicChildren=gn>0?lt||qe:null,Na(),gn>0&<&<.push(e),e}function q(e,t,n,o,r,i){return Oi(X(e,t,n,o,r,i,!0))}function we(e,t,n,o,r){return Oi(Z(e,t,n,o,r,!0))}function Qn(e){return e?e.__v_isVNode===!0:!1}function Rt(e,t){return e.type===t.type&&e.key===t.key}const Gn="__vInternal",Mi=({key:e})=>e??null,eo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ie(e)||$e(e)||se(e)?{i:je,r:e,k:t,f:!!n}:e:null);function X(e,t=null,n=null,o=0,r=null,i=e===Ce?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Mi(t),ref:t&&eo(t),scopeId:ei,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:je};return l?(Xo(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=Ie(n)?8:16),gn>0&&!s&<&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&<.push(a),a}const Z=Fa;function Fa(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===ui)&&(e=tt),Qn(e)){const l=St(e,t,!0);return n&&Xo(l,n),gn>0&&!i&<&&(l.shapeFlag&6?lt[lt.indexOf(e)]=l:lt.push(l)),l.patchFlag|=-2,l}if(Ja(e)&&(e=e.__vccOpts),t){t=Va(t);let{class:l,style:a}=t;l&&!Ie(l)&&(t.class=Oe(l)),_e(a)&&(Vr(a)&&!Q(a)&&(a=ke({},a)),t.style=Be(a))}const s=Ie(e)?1:sa(e)?128:Ra(e)?64:_e(e)?4:se(e)?2:0;return X(e,t,n,o,r,s,i,!0)}function Va(e){return e?Vr(e)||Gn in e?ke({},e):e:null}function St(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&&Mi(l),ref:t&&t.ref?n&&r?Q(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!==Ce?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&&St(e.ssContent),ssFallback:e.ssFallback&&St(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function It(e=" ",t=0){return Z(Jn,null,e,t)}function Me(e="",t=!1){return t?(A(),we(tt,null,e)):Z(tt,null,e)}function ut(e){return e==null||typeof e=="boolean"?Z(tt):Q(e)?Z(Ce,null,e.slice()):typeof e=="object"?$t(e):Z(Jn,null,String(e))}function $t(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:St(e)}function Xo(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Q(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Xo(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Gn in t)?t._ctx=je:r===3&&je&&(je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else se(t)?(t={default:t,_ctx:je},n=32):(t=String(t),o&64?(n=16,t=[It(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($n(r)){const i=t[r],s=o[r];s&&i!==s&&!(Q(i)&&i.includes(s))&&(t[r]=i?[].concat(i,s):s)}else r!==""&&(t[r]=o[r])}return t}function ft(e,t,n,o=null){Qe(e,t,7,[n,o])}const Ha=bi();let Wa=0;function Ua(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Ha,i={uid:Wa++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new gl(!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:wi(o,r),emitsOptions:Gr(o,r),emit:null,emitted:null,propsDefaults:ce,inheritAttrs:o.inheritAttrs,ctx:ce,data:ce,props:ce,attrs:ce,slots:ce,refs:ce,setupState:ce,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=ta.bind(null,i),e.ce&&e.ce(i),i}let ze=null;const Li=()=>ze||je;let qo,Qt,zi="__VUE_INSTANCE_SETTERS__";(Qt=bo()[zi])||(Qt=bo()[zi]=[]),Qt.push(e=>ze=e),qo=e=>{Qt.length>1?Qt.forEach(t=>t(e)):Qt[0](e)};const Gt=e=>{qo(e),e.scope.on()},Nt=()=>{ze&&ze.scope.off(),qo(null)};function ji(e){return e.vnode.shapeFlag&4}let mn=!1;function Ka(e,t=!1){mn=t;const{props:n,children:o}=e.vnode,r=ji(e);Oa(e,n,r,t),za(e,o);const i=r?Ya(e,t):void 0;return mn=!1,i}function Ya(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Hr(new Proxy(e.ctx,ka));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?qa(e):null;Gt(e),Yt();const i=Ct(o,e,0,[e.props,r]);if(Xt(),Nt(),_r(i)){if(i.then(Nt,Nt),t)return i.then(s=>{Ai(e,s,t)}).catch(s=>{Fn(s,e,0)});e.asyncDep=i}else Ai(e,i,t)}else Di(e,t)}function Ai(e,t,n){se(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_e(t)&&(e.setupState=Yr(t)),Di(e,n)}let Bi;function Di(e,t,n){const o=e.type;if(!e.render){if(!t&&Bi&&!o.render){const r=o.template||Vo(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=ke(ke({isCustomElement:i,delimiters:l},s),a);o.render=Bi(r,c)}}e.render=o.render||rt}Gt(e),Yt(),Ca(e),Xt(),Nt()}function Xa(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ne(e,"get","$attrs"),t[n]}}))}function qa(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Xa(e)},slots:e.slots,emit:e.emit,expose:t}}function no(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Yr(Hr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in dn)return dn[n](e)},has(t,n){return n in t||n in dn}}))}function Za(e,t=!0){return se(e)?e.displayName||e.name:e.name||t&&e.__name}function Ja(e){return se(e)&&"__vccOpts"in e}const ae=(e,t)=>ql(e,t,mn);function Ri(e,t,n){const o=arguments.length;return o===2?_e(t)&&!Q(t)?Qn(t)?Z(e,null,[t]):Z(e,t):Z(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Qn(n)&&(n=[n]),Z(e,t,n))}const Qa=Symbol.for("v-scx"),Ga=()=>Bt(Qa),ec="3.3.4",tc="http://www.w3.org/2000/svg",Ft=typeof document<"u"?document:null,Ni=Ft&&Ft.createElement("template"),nc={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?Ft.createElementNS(tc,e):Ft.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Ft.createTextNode(e),createComment:e=>Ft.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ft.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{Ni.innerHTML=o?`<svg>${e}</svg>`:e;const l=Ni.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 oc(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 rc(e,t,n){const o=e.style,r=Ie(n);if(n&&!r){if(t&&!Ie(t))for(const i in t)n[i]==null&&Zo(o,i,"");for(const i in n)Zo(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 Fi=/\s*!important$/;function Zo(e,t,n){if(Q(n))n.forEach(o=>Zo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=ic(e,t);Fi.test(n)?e.setProperty(Ze(o),n.replace(Fi,""),"important"):e[o]=n}}const Vi=["Webkit","Moz","ms"],Jo={};function ic(e,t){const n=Jo[t];if(n)return n;let o=We(t);if(o!=="filter"&&o in e)return Jo[t]=o;o=On(o);for(let r=0;r<Vi.length;r++){const i=Vi[r]+o;if(i in e)return Jo[t]=i}return t}const Hi="http://www.w3.org/1999/xlink";function sc(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Hi,t.slice(6,t.length)):e.setAttributeNS(Hi,t,n);else{const i=hl(t);n==null||i&&!xr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function lc(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=xr(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function en(e,t,n,o){e.addEventListener(t,n,o)}function ac(e,t,n,o){e.removeEventListener(t,n,o)}function cc(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]=uc(t);if(o){const c=i[t]=pc(o,r);en(e,l,c,a)}else s&&(ac(e,l,s,a),i[t]=void 0)}}const Wi=/(?:Once|Passive|Capture)$/;function uc(e){let t;if(Wi.test(e)){t={};let o;for(;o=e.match(Wi);)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 fc=Promise.resolve(),dc=()=>Qo||(fc.then(()=>Qo=0),Qo=Date.now());function pc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Qe(hc(o,n.value),t,5,[o])};return n.value=e,n.attached=dc(),n}function hc(e,t){if(Q(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const Ui=/^on[a-z]/,gc=(e,t,n,o,r=!1,i,s,l,a)=>{t==="class"?oc(e,o,r):t==="style"?rc(e,n,o):$n(t)?fo(t)||cc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):mc(e,t,o,r))?lc(e,t,o,i,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),sc(e,t,o,r))};function mc(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Ui.test(t)&&se(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ui.test(t)&&Ie(n)?!1:t in e}function vc(e,t){const n=Te(e);class o extends Go{constructor(i){super(n,i,t)}}return o.def=n,o}const _c=typeof HTMLElement<"u"?HTMLElement:class{};class Go extends _c{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||(os(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&&!Q(i))for(const a in i){const c=i[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=_o(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=Q(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(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=_o(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(){os(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Z(this._def,ke({},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 Go){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",vn="animation",tn=(e,{slots:t})=>Ri(ua,bc(e),t);tn.displayName="Transition";const Ki={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};tn.props=ke({},ri,Ki);const Vt=(e,t=[])=>{Q(e)?e.forEach(n=>n(...t)):e&&e(...t)},Yi=e=>e?Q(e)?e.some(t=>t.length>1):e.length>1:!1;function bc(e){const t={};for(const b in e)b in Ki||(t[b]=e[b]);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:h=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,M=yc(r),x=M&&M[0],B=M&&M[1],{onBeforeEnter:W,onEnter:N,onEnterCancelled:L,onLeave:d,onLeaveCancelled:E,onBeforeAppear:I=W,onAppear:$=N,onAppearCancelled:m=L}=t,V=(b,F,oe)=>{Ht(b,F?u:l),Ht(b,F?c:s),oe&&oe()},ee=(b,F)=>{b._isLeaving=!1,Ht(b,h),Ht(b,y),Ht(b,g),F&&F()},ie=b=>(F,oe)=>{const D=b?$:N,C=()=>V(F,b,oe);Vt(D,[F,C]),Xi(()=>{Ht(F,b?a:i),Pt(F,b?u:l),Yi(D)||qi(F,o,x,C)})};return ke(t,{onBeforeEnter(b){Vt(W,[b]),Pt(b,i),Pt(b,s)},onBeforeAppear(b){Vt(I,[b]),Pt(b,a),Pt(b,c)},onEnter:ie(!1),onAppear:ie(!0),onLeave(b,F){b._isLeaving=!0;const oe=()=>ee(b,F);Pt(b,h),kc(),Pt(b,g),Xi(()=>{b._isLeaving&&(Ht(b,h),Pt(b,y),Yi(d)||qi(b,o,B,oe))}),Vt(d,[b,oe])},onEnterCancelled(b){V(b,!1),Vt(L,[b])},onAppearCancelled(b){V(b,!0),Vt(m,[b])},onLeaveCancelled(b){ee(b),Vt(E,[b])}})}function yc(e){if(e==null)return null;if(_e(e))return[er(e.enter),er(e.leave)];{const t=er(e);return[t,t]}}function er(e){return _o(e)}function Pt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Ht(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 Xi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let wc=0;function qi(e,t,n,o){const r=e._endId=++wc,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=xc(e,t);if(!s)return o();const c=s+"end";let u=0;const h=()=>{e.removeEventListener(c,g),i()},g=y=>{y.target===e&&++u>=a&&h()};setTimeout(()=>{u<a&&h()},l+1),e.addEventListener(c,g)}function xc(e,t){const n=window.getComputedStyle(e),o=M=>(n[M]||"").split(", "),r=o(`${Tt}Delay`),i=o(`${Tt}Duration`),s=Zi(r,i),l=o(`${vn}Delay`),a=o(`${vn}Duration`),c=Zi(l,a);let u=null,h=0,g=0;t===Tt?s>0&&(u=Tt,h=s,g=i.length):t===vn?c>0&&(u=vn,h=c,g=a.length):(h=Math.max(s,c),u=h>0?s>c?Tt:vn:null,g=u?u===Tt?i.length:a.length:0);const y=u===Tt&&/\b(transform|all)(,|$)/.test(o(`${Tt}Property`).toString());return{type:u,timeout:h,propCount:g,hasTransform:y}}function Zi(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Ji(n)+Ji(e[o])))}function Ji(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function kc(){return document.body.offsetHeight}const Qi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Q(t)?n=>Mn(t,n):t};function Cc(e){e.target.composing=!0}function Gi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Sc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=Qi(r);const i=o||r.props&&r.props.type==="number";en(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&&en(e,"change",()=>{e.value=e.value.trim()}),t||(en(e,"compositionstart",Cc),en(e,"compositionend",Gi),en(e,"change",Gi))},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)}},Ic=["ctrl","shift","alt","meta"],$c={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Ic.some(n=>e[`${n}Key`]&&!t.includes(n))},nt=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const i=$c[t[r]];if(i&&i(n,t))return}return e(n,...o)},Tc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},es=(e,t)=>n=>{if(!("key"in n))return;const o=Ze(n.key);if(t.some(r=>r===o||Tc[r]===o))return e(n)},ts={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):_n(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),_n(e,!0),o.enter(e)):o.leave(e,()=>{_n(e,!1)}):_n(e,t))},beforeUnmount(e,{value:t}){_n(e,t)}};function _n(e,t){e.style.display=t?e._vod:"none"}const Pc=ke({patchProp:gc},nc);let ns;function Ec(){return ns||(ns=Aa(Pc))}const os=(...e)=>{Ec().render(...e)},Oc=`.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
|
-
`,be=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Mc={},Lc={class:"loading-indicator"};function zc(e,t){return A(),q("div",Lc)}const tr=be(Mc,[["render",zc],["styles",[Oc]]]),jc=Object.freeze(Object.defineProperty({__proto__:null,default:tr},Symbol.toStringTag,{value:"Module"})),Ac=["onTouchmove"],Bc={key:0,class:"fixed inset-0 h-[101%] overflow-auto scrollbar-none flex justify-center items-center z-10 bg-black"},Dc={class:"flex justify-between items-end"},Rc={class:"inline-block children-pointer-events-auto w-1/3"},Nc={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Fc={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},Vc={class:"inline-block z-20 relative"},rs=Te({__name:"ReaderLayout",props:{loading:{type:Boolean},immediate:{type:Boolean},idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){const t=e;function n(o){t.loading&&o.preventDefault()}return(o,r)=>{const i=tr;return A(),q("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":o.idle,"bg-black":o.immediate||!o.loading,"opacity-0":!o.immediate&&o.loading,"duration-200 transition-colors":!o.immediate}]),onTouchmove:nt(n,["stop"])},[o.loading&&o.immediate?(A(),q("div",Bc,[Z(i)])):Me("",!0),Pe(o.$slots,"default"),X("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":!o.fullScreen,"opacity-0 -z-10":o.fullScreen}])},[X("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:Be({paddingTop:`${o.spaceTop||0}px`})},[Pe(o.$slots,"back"),Pe(o.$slots,"exit"),Pe(o.$slots,"chapter-nav")],4),X("div",Dc,[X("div",Rc,[Pe(o.$slots,"page-nav")]),X("div",Nc,[Pe(o.$slots,"reset-zoom")]),X("div",Fc,[Pe(o.$slots,"entry"),X("div",Vc,[Pe(o.$slots,"settings")]),Pe(o.$slots,"full-screen"),Pe(o.$slots,"play")])]),X("div",{class:Oe(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":o.rtl}])},[Pe(o.$slots,"progress")],2)],2)],42,Ac)}}}),Hc=Object.freeze(Object.defineProperty({__proto__:null,default:rs},Symbol.toStringTag,{value:"Module"})),Wc={},Uc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Kc=[X("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[X("circle",{cx:"14",cy:"14",r:"12"}),X("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function Yc(e,t){return A(),q("svg",Uc,Kc)}const is=be(Wc,[["render",Yc]]),Xc=Object.freeze(Object.defineProperty({__proto__:null,default:is},Symbol.toStringTag,{value:"Module"})),qc={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"},Zc={class:"block w-4 h-4"},Jc={class:"w-12"},ss=Te({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=is;return t.zoom!==1?(A(),q("button",qc,[X("div",Zc,[Z(o)]),X("div",Jc,Je(Math.ceil(t.zoom*100))+"%",1)])):Me("",!0)}}}),Qc=Object.freeze(Object.defineProperty({__proto__:null,default:ss},Symbol.toStringTag,{value:"Module"})),Gc={},eu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},tu=[X("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function nu(e,t){return A(),q("svg",eu,tu)}const nr=be(Gc,[["render",nu]]),ou=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"})),ru={},iu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},su=[X("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),X("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function lu(e,t){return A(),q("svg",iu,su)}const or=be(ru,[["render",lu]]),au=Object.freeze(Object.defineProperty({__proto__:null,default:or},Symbol.toStringTag,{value:"Module"}));function cu({touchDevice:e}){const t=Y(!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 rr(){const e=Bt("busy:touchDevice"),t=Bt("setBusyState");let n=!1;return st(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const uu=(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))}},nn={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>uu(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},fu={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=Te({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=rr();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((A(),we(wa(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:le(()=>[X("div",fu,[Pe(a.$slots,"default")])]),_:3},16,["class","onClick"])),[[G(nn),a.disabled?0:15]])}}),du=Object.freeze(Object.defineProperty({__proto__:null,default:oo},Symbol.toStringTag,{value:"Module"})),pu={},hu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},gu=[X("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)];function mu(e,t){return A(),q("svg",hu,gu)}const ls=be(pu,[["render",mu]]),vu=Object.freeze(Object.defineProperty({__proto__:null,default:ls},Symbol.toStringTag,{value:"Module"}));class _u{constructor(){ol(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 bu(){const e=new _u;return st(()=>e.dispose()),Zn("keyController",e),e}function ro(e){const t=Bt("keyController");et(()=>t.addListener(e)),st(()=>t.removeListener(e))}const yu={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},wu={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3"},xu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},as=Te({__name:"BottomSheet",props:{modelValue:{type:Boolean},name:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;ro({onKeyDown:r});const o=rr();pe(()=>n.modelValue,i=>o(i));function r(i){n.modelValue&&i.key==="Escape"&&(t("update:modelValue",!1),i.preventDefault())}return(i,s)=>{const l=ls,a=oo;return A(),q("div",{class:Oe(["fixed-screen flex flex-col items-center justify-end select-none",{"!pointer-events-none":!n.modelValue}]),onClick:s[2]||(s[2]=()=>t("update:modelValue",!1))},[Z(tn,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:le(()=>[n.modelValue?(A(),q("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"]))},[X("div",yu,[Z(a,{transparent:"",onClick:s[0]||(s[0]=()=>t("update:modelValue",!1))},{default:le(()=>[Z(l)]),_:1}),X("div",wu,Je(i.name),1),Pe(i.$slots,"actions")]),X("div",xu,[Pe(i.$slots,"default")])])):Me("",!0)]),_:3})],2)}}}),ku=Object.freeze(Object.defineProperty({__proto__:null,default:as},Symbol.toStringTag,{value:"Module"})),Cu=["min","max","step"],Su={class:"flex-shrink-0"},cs=be(Te({__name:"InputPercentage",props:{modelValue:{},min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ae({get(){return n.modelValue},set(r){t("update:modelValue",+r)}});return(r,i)=>(A(),q("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(X("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,Cu),[[Sc,o.value]]),X("p",Su,[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
|
-
`]]]),Iu=Object.freeze(Object.defineProperty({__proto__:null,default:cs},Symbol.toStringTag,{value:"Module"})),$u={class:"flex items-center mb-8 last:mb-0"},Tu={class:"flex-grow overflow-hidden"},us=Te({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(A(),q("div",$u,[X("div",{class:Oe(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Je(t.label),3),X("div",Tu,[Pe(t.$slots,"default")])]))}}),Pu=Object.freeze(Object.defineProperty({__proto__:null,default:us},Symbol.toStringTag,{value:"Module"})),Eu=["onClick","onKeyup"],fs=Te({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Y(null),r=Y({width:"",left:""});et(()=>{let s=!1;pe(()=>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)=>(A(),q("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[X("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Be(r.value)},null,4),(A(!0),q(Ce,null,fn(n.items,(a,c)=>mt((A(),q("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:[es(()=>i(c),["enter"]),es(()=>i(c),["space"])]},[It(Je(a),1)],42,Eu)),[[G(nn),30]])),128))],512))}}),Ou=Object.freeze(Object.defineProperty({__proto__:null,default:fs},Symbol.toStringTag,{value:"Module"})),Mu={},Lu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},zu=[X("path",{fill:"currentColor",d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"},null,-1)];function ju(e,t){return A(),q("svg",Lu,zu)}const ds=be(Mu,[["render",ju]]),Au=Object.freeze(Object.defineProperty({__proto__:null,default:ds},Symbol.toStringTag,{value:"Module"})),Bu={},Du={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Ru=[X("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),X("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Nu(e,t){return A(),q("svg",Du,Ru)}const ps=be(Bu,[["render",Nu]]),Fu=Object.freeze(Object.defineProperty({__proto__:null,default:ps},Symbol.toStringTag,{value:"Module"}));function Vu(e){if(e)try{return JSON.parse(e)}catch{return}}function Hu(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var at=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(at||{}),_t=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(_t||{});const Wu=.25,Uu=5,Ku=.25,bn=.25,yn=5,Yu=.05,Xu=0,qu=4;function Zu(e){var W,N,L,d,E;const{titleName:t,isWebtoon:n}=e,o=ae(()=>t.value?Hu(t.value):location.hostname),r=Y(Ju(`tkr:${o.value}`)),i=I=>{r.value=I;const $=`tkr:${o.value}`;!I||!Object.keys(I).length?localStorage.removeItem($):localStorage.setItem($,JSON.stringify(I))},s=I=>{if(!r.value){i(I);return}const $={...r.value};Object.entries(I).forEach(([m,V])=>{V===void 0?delete $[m]:$[m]=V}),i($)},l=Y(((W=r.value)==null?void 0:W.style)??_t.longStrip),a=Y(((N=r.value)==null?void 0:N.direction)??at.vertical),c=Y((L=r.value)==null?void 0:L.gap),u=Y(((d=r.value)==null?void 0:d.speed)??1),h=Y(((E=r.value)==null?void 0:E.zoom)??1),g=ae({get(){return n.value?_t.longStrip:l.value??_t.longStrip},set:I=>{l.value=I,s({style:I===_t.longStrip?void 0:I}),I!==_t.longStrip&&a.value===at.vertical&&(y.value=at.rtl)}}),y=ae({get:()=>n.value?at.vertical:a.value,set:I=>{a.value=I,s({direction:I===at.vertical?void 0:I})}}),M=ae({get:()=>c.value??(n.value?0:1),set(I){c.value=I,s({gap:I})}}),x=ae({get:()=>u.value,set(I){u.value=I,s({speed:I===1?void 0:I})}}),B=ae({get:()=>h.value,set(I){h.value=I,s({zoom:I===1?void 0:I})}});return{direction:y,style:g,gap:M,speed:x,zoom:B,isLongStrip:ae(()=>g.value===_t.longStrip),isDouble:ae(()=>g.value===_t.double),isRTL:ae(()=>y.value===at.rtl),isVertical:ae(()=>y.value===at.vertical)}}function Ju(e){const t=localStorage.getItem(e),n=Vu(t),o={};return n?(n.style!==void 0&&Object.values(_t).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(at).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=Xu&&n.gap<=qu&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=bn&&n.speed<=yn&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=bn&&n.zoom<=yn&&(o.zoom=n.zoom),Object.keys(o).length?o:void 0):o}const hs=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=Y(!1),r=ae(()=>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=ps,u=oo,h=ds,g=fs,y=us,M=cs,x=as;return A(),q(Ce,null,[Z(u,{title:"Reader settings (S)",disabled:l.disabled,onClick:a[0]||(a[0]=()=>o.value=!0)},{default:le(()=>[Z(c)]),_:1},8,["disabled"]),Z(x,{modelValue:o.value,"onUpdate:modelValue":a[5]||(a[5]=B=>o.value=B),name:r.value},{actions:le(()=>[Z(u,{transparent:"",onClick:s},{default:le(()=>[Z(h)]),_:1})]),default:le(()=>[Z(y,{label:"Style"},{default:le(()=>[Z(g,{"model-value":l.readerStyle,items:l.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":a[1]||(a[1]=B=>t("update:reader-style",B))},null,8,["model-value","items"])]),_:1}),Z(y,{label:"Direction"},{default:le(()=>[Z(g,{"model-value":l.direction,items:l.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":a[2]||(a[2]=B=>t("update:direction",B))},null,8,["model-value","items"])]),_:1}),Z(y,{label:"Gap"},{default:le(()=>[Z(g,{"model-value":l.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":a[3]||(a[3]=B=>t("update:gap",B))},null,8,["model-value"])]),_:1}),Z(y,{label:"Speed"},{default:le(()=>[Z(M,{"model-value":l.speed,min:G(Wu),max:G(Uu),step:G(Ku),suffix:"x","onUpdate:modelValue":a[4]||(a[4]=B=>t("update:speed",B))},{suffix:le(()=>[It(Je(l.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),Z(y,{label:"Zoom"},{default:le(()=>[Z(M,{"model-value":Math.ceil(l.zoom*100),min:G(bn)*100,max:G(yn)*100,step:G(Yu)*100,"onUpdate:modelValue":i},{suffix:le(()=>[It(Je(Math.ceil(l.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),Qu=Object.freeze(Object.defineProperty({__proto__:null,default:hs},Symbol.toStringTag,{value:"Module"})),Gu={},ef={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},tf=[X("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function nf(e,t){return A(),q("svg",ef,tf)}const gs=be(Gu,[["render",nf]]),of=Object.freeze(Object.defineProperty({__proto__:null,default:gs},Symbol.toStringTag,{value:"Module"})),rf={},sf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},lf=[X("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function af(e,t){return A(),q("svg",sf,lf)}const ms=be(rf,[["render",af]]),cf=Object.freeze(Object.defineProperty({__proto__:null,default:ms},Symbol.toStringTag,{value:"Module"})),uf={},ff={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},df=[X("path",{d:"M18.652 3C18.0277 3 17.5216 3.5061 17.5216 4.13042V5.26083H16.3912C15.7669 5.26083 15.2608 5.76693 15.2608 6.39125C15.2608 7.01556 15.7669 7.52166 16.3912 7.52166H17.5216V8.65208C17.5216 9.27639 18.0277 9.78249 18.652 9.78249C19.2764 9.78249 19.7825 9.27639 19.7825 8.65208V7.52166H20.9129C21.5372 7.52166 22.0433 7.01556 22.0433 6.39125C22.0433 5.76693 21.5372 5.26083 20.9129 5.26083H19.7825V4.13042C19.7825 3.5061 19.2764 3 18.652 3Z",fill:"currentColor"},null,-1),X("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.0183 5.92413L8.24658 7.18954C7.65717 7.34584 7.24677 7.87926 7.24677 8.48905V18.0483C7.24677 18.4887 7.72075 18.7663 8.10482 18.5509L11.4937 16.65C11.7272 16.519 12.012 16.519 12.2454 16.65L18.6384 20.2363C19.1505 20.5235 19.7825 20.1534 19.7825 19.5663L19.7825 12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 6.23454 13.0067 6.07783 13.0183 5.92413Z",fill:"currentColor"},null,-1),X("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.49315 4.13042C4.64457 4.13042 3.95667 4.81833 3.95667 5.6669V19.5663C3.95667 20.1535 4.58867 20.5236 5.10077 20.2363L11.4937 16.6501C11.7272 16.5191 12.012 16.5191 12.2454 16.6501L18.6384 20.2363C19.1505 20.5236 19.7825 20.1535 19.7825 19.5663V12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 5.26083 13.3507 4.13042 13.3507 4.13042H5.49315Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function pf(e,t){return A(),q("svg",ff,df)}const vs=be(uf,[["render",pf]]),hf=Object.freeze(Object.defineProperty({__proto__:null,default:vs},Symbol.toStringTag,{value:"Module"})),gf={},mf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},vf=[X("path",{d:"M17.1026 8.89862C17.1114 8.90798 17.1203 8.91723 17.1295 8.92636C17.5709 9.36781 18.2866 9.36781 18.7281 8.92636L22.7247 4.92974C23.1662 4.48828 23.1662 3.77255 22.7247 3.33109C22.2833 2.88964 21.5675 2.88964 21.1261 3.33109L17.9292 6.52793L17.1286 5.72729C16.6871 5.28583 15.9714 5.28583 15.5299 5.72729C15.0885 6.16874 15.0885 6.88448 15.5299 7.32593L17.1026 8.89862Z",fill:"currentColor"},null,-1),X("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9564 5.92413L8.18463 7.18954C7.59522 7.34584 7.18481 7.87926 7.18481 8.48905V18.0483C7.18481 18.4887 7.65879 18.7663 8.04287 18.5509L11.4318 16.65C11.6652 16.519 11.95 16.519 12.1835 16.65L18.5764 20.2363C19.0885 20.5235 19.7205 20.1534 19.7205 19.5663L19.7205 12.0433H18.5901C15.4686 12.0433 12.938 9.5128 12.938 6.39125C12.938 6.23454 12.9448 6.07783 12.9564 5.92413Z",fill:"currentColor"},null,-1),X("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.4312 4.13042C4.58262 4.13042 3.89471 4.81833 3.89471 5.6669V19.5663C3.89471 20.1535 4.52672 20.5236 5.03882 20.2363L11.4318 16.6501C11.6652 16.5191 11.95 16.5191 12.1835 16.6501L18.5764 20.2363C19.0885 20.5236 19.7205 20.1535 19.7205 19.5663V5.6669C19.7205 5.6646 19.7205 5.66229 19.7205 5.65998V12.0433H18.5901C15.4685 12.0433 12.938 9.5128 12.938 6.39125C12.938 5.26083 13.2887 4.13042 13.2887 4.13042H5.4312Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function _f(e,t){return A(),q("svg",mf,vf)}const _s=be(gf,[["render",_f]]),bf=Object.freeze(Object.defineProperty({__proto__:null,default:_s},Symbol.toStringTag,{value:"Module"})),yf={},wf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},xf=[X("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function kf(e,t){return A(),q("svg",wf,xf)}const bs=be(yf,[["render",kf]]),Cf=Object.freeze(Object.defineProperty({__proto__:null,default:bs},Symbol.toStringTag,{value:"Module"})),Sf=["aria-hidden"],If=["onClick"],$f=["onClick"],Tf={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"},Pf={class:"whitespace-nowrap"},ir=Te({__name:"ButtonDropdown",props:{modelValue:{},label:{},title:{},items:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Y(null),r=Y(!1),i=Y(null),s=Y(!1),l=Y(!1),a=Y(!1);ro({onKeyDown:y});const c=rr();function u(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(h(),gt(()=>setTimeout(()=>{var d,E;(E=(d=i.value)==null?void 0:d.children[n.modelValue])==null||E.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),x(o.value)):setTimeout(B,250)}function h(){const d=o.value;if(d){const E=d.getBoundingClientRect(),I=E.x+E.width/2;s.value=E.y>window.innerHeight/2,l.value=I<window.innerWidth/3,a.value=I>window.innerWidth/3*2}}function g(d){d!=n.modelValue&&t("update:modelValue",d),u()}function y(d){r.value&&d.key==="Escape"&&(u(),d.preventDefault())}let M=[];function x(d){const E=window.getComputedStyle(d).zIndex,I=d.style.zIndex;(!E||!(+E>0))&&((!d.parentElement||d.parentElement.childElementCount>1)&&(d.style.zIndex="1",M.push({el:d,zIndex:I})),d.parentElement&&x(d.parentElement))}function B(){M.forEach(({el:d,zIndex:E})=>{d.style.zIndex=E??""}),M=[]}let W=!1;function N(){W||(W=!0,c(!0,{desktopOnly:!0}))}function L(){W&&(W=!1,c(!1,{desktopOnly:!0}))}return(d,E)=>{const I=bs;return A(),q("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(A(),q("div",{key:0,class:"fixed-screen bg-transparent",onClick:u})):Me("",!0),d.items.length?(A(),we(tn,{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:le(()=>[r.value?(A(),q("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:E[0]||(E[0]=nt(()=>{},["stop"]))},[(A(!0),q(Ce,null,fn(d.items,($,m)=>mt((A(),q("li",{key:m,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":m===d.modelValue}]),onClick:()=>g(m)},[X("div",{class:Oe(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":m>0}])},[Pe(d.$slots,"item",{item:$},()=>[It(Je($),1)])],2)],10,If)),[[G(nn),30]])),128))],42,Sf)):Me("",!0)]),_:3})):Me("",!0),mt((A(),q("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":d.disabled}]},d.title?{title:d.title}:{},{onClick:nt(u,["stop"]),onMouseenter:N,onMouseleave:L}),[X("div",Tf,[X("span",Pf,Je(d.label),1),d.items.length?(A(),q("span",{key:0,class:Oe(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":s.value}]),"aria-hidden":"true"},[Z(I)],2)):Me("",!0)])],16,$f)),[[G(nn),30]])],512)}}}),Ef=Object.freeze(Object.defineProperty({__proto__:null,default:ir},Symbol.toStringTag,{value:"Module"})),ys=Te({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ae(()=>n.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),r=ae(()=>{const a=n.modelValue,c=n.pages.findIndex(u=>u.some(({index:h})=>h===a));return c===-1?n.pages.length-1:c}),i=ae(()=>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=ir;return A(),we(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"])}}}),Of=Object.freeze(Object.defineProperty({__proto__:null,default:ys},Symbol.toStringTag,{value:"Module"})),Mf={},Lf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},zf=[X("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function jf(e,t){return A(),q("svg",Lf,zf)}const ws=be(Mf,[["render",jf]]),Af=Object.freeze(Object.defineProperty({__proto__:null,default:ws},Symbol.toStringTag,{value:"Module"})),Bf={},Df={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Rf=[X("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Nf(e,t){return A(),q("svg",Df,Rf)}const xs=be(Bf,[["render",Nf]]),Ff=Object.freeze(Object.defineProperty({__proto__:null,default:xs},Symbol.toStringTag,{value:"Module"})),Vf={},Hf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Wf=[X("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function Uf(e,t){return A(),q("svg",Hf,Wf)}const ks=be(Vf,[["render",Uf]]),Kf=Object.freeze(Object.defineProperty({__proto__:null,default:ks},Symbol.toStringTag,{value:"Module"})),Yf={},Xf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},qf=[X("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function Zf(e,t){return A(),q("svg",Xf,qf)}const Cs=be(Yf,[["render",Zf]]),Jf=Object.freeze(Object.defineProperty({__proto__:null,default:Cs},Symbol.toStringTag,{value:"Module"}));var Ss;const sr=typeof window<"u",Qf=e=>typeof e=="function",Gf=e=>typeof e=="string",Et=()=>{};sr&&((Ss=window==null?void 0:window.navigator)!=null&&Ss.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function wn(e){return typeof e=="function"?e():G(e)}function lr(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}const Is=e=>e();function ed(e,t={}){let n,o,r=Et;const i=l=>{clearTimeout(l),r(),r=Et};return l=>{const a=wn(e),c=wn(t.maxWait);return n&&i(n),a<=0||c!==void 0&&c<=0?(o&&(i(o),o=null),Promise.resolve(l())):new Promise((u,h)=>{r=t.rejectOnCancel?h:u,c&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&i(o),o=null,u(l())},a)})}}function td(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 h=>{const g=wn(e),y=Date.now()-r,M=()=>a=h();if(c(),g<=0)return r=Date.now(),M();if(y>g&&(n||!s))r=Date.now(),M();else if(t)return new Promise((x,B)=>{l=o?B:x,i=setTimeout(()=>{r=Date.now(),s=!0,x(M()),c()},g-y)});return!n&&!i&&(i=setTimeout(()=>s=!0,g)),s=!1,a}}function nd(e=Is){const t=Y(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...i)=>{t.value&&e(...i)};return{isActive:Po(t),pause:n,resume:o,eventFilter:r}}function od(e){return e}function ar(e){return Cr()?(vl(e),!0):!1}function Ke(e,t=200,n={}){return lr(ed(t,n),e)}function $s(e,t=200,n=!1,o=!0,r=!1){return lr(td(t,n,o,r),e)}function Ts(e,t=!0){Li()?et(e):t?e():gt(e)}var Ps=Object.getOwnPropertySymbols,rd=Object.prototype.hasOwnProperty,id=Object.prototype.propertyIsEnumerable,sd=(e,t)=>{var n={};for(var o in e)rd.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&&id.call(e,o)&&(n[o]=e[o]);return n};function ld(e,t,n={}){const o=n,{eventFilter:r=Is}=o,i=sd(o,["eventFilter"]);return pe(e,lr(r,t),i)}var ad=Object.defineProperty,cd=Object.defineProperties,ud=Object.getOwnPropertyDescriptors,io=Object.getOwnPropertySymbols,Es=Object.prototype.hasOwnProperty,Os=Object.prototype.propertyIsEnumerable,Ms=(e,t,n)=>t in e?ad(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fd=(e,t)=>{for(var n in t||(t={}))Es.call(t,n)&&Ms(e,n,t[n]);if(io)for(var n of io(t))Os.call(t,n)&&Ms(e,n,t[n]);return e},dd=(e,t)=>cd(e,ud(t)),pd=(e,t)=>{var n={};for(var o in e)Es.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&io)for(var o of io(e))t.indexOf(o)<0&&Os.call(e,o)&&(n[o]=e[o]);return n};function hd(e,t,n={}){const o=n,{eventFilter:r}=o,i=pd(o,["eventFilter"]),{eventFilter:s,pause:l,resume:a,isActive:c}=nd(r);return{stop:ld(e,t,dd(fd({},i),{eventFilter:s})),pause:l,resume:a,isActive:c}}function Wt(e){var t;const n=wn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ot=sr?window:void 0,gd=sr?window.document:void 0;function Mt(...e){let t,n,o,r;if(Gf(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=Ot):[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,h,g)=>(u.addEventListener(h,g,r),()=>u.removeEventListener(h,g,r)),a=pe(()=>Wt(t),u=>{s(),u&&i.push(...n.flatMap(h=>o.map(g=>l(u,h,g))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return ar(c),c}function Ls(e,t=!1){const n=Y(),o=()=>n.value=!!e();return o(),Ts(o,t),n}const cr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ur="__vueuse_ssr_handlers__";cr[ur]=cr[ur]||{};const md=cr[ur];function vd(e,t){return md[e]||t}function _d(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var bd=Object.defineProperty,zs=Object.getOwnPropertySymbols,yd=Object.prototype.hasOwnProperty,wd=Object.prototype.propertyIsEnumerable,js=(e,t,n)=>t in e?bd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,As=(e,t)=>{for(var n in t||(t={}))yd.call(t,n)&&js(e,n,t[n]);if(zs)for(var n of zs(t))wd.call(t,n)&&js(e,n,t[n]);return e};const xd={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function kd(e,t,n,o={}){var r;const{flush:i="pre",deep:s=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:h=Ot,eventFilter:g,onError:y=$=>{console.error($)}}=o,M=(u?Ul:Y)(t);if(!n)try{n=vd("getDefaultStorage",()=>{var $;return($=Ot)==null?void 0:$.localStorage})()}catch($){y($)}if(!n)return M;const x=wn(t),B=_d(x),W=(r=o.serializer)!=null?r:xd[B],{pause:N,resume:L}=hd(M,()=>d(M.value),{flush:i,deep:s,eventFilter:g});return h&&l&&Mt(h,"storage",I),I(),M;function d($){try{if($==null)n.removeItem(e);else{const m=W.write($),V=n.getItem(e);V!==m&&(n.setItem(e,m),h&&(h==null||h.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:V,newValue:m,storageArea:n}))))}}catch(m){y(m)}}function E($){const m=$?$.newValue:n.getItem(e);if(m==null)return a&&x!==null&&n.setItem(e,W.write(x)),x;if(!$&&c){const V=W.read(m);return Qf(c)?c(V,x):B==="object"&&!Array.isArray(V)?As(As({},x),V):V}else return typeof m!="string"?m:W.read(m)}function I($){if(!($&&$.storageArea!==n)){if($&&$.key==null){M.value=x;return}if(!($&&$.key!==e)){N();try{M.value=E($)}catch(m){y(m)}finally{$?gt(L):L()}}}}}function Bs({document:e=gd}={}){if(!e)return Y("visible");const t=Y(e.visibilityState);return Mt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Ds=Object.getOwnPropertySymbols,Cd=Object.prototype.hasOwnProperty,Sd=Object.prototype.propertyIsEnumerable,Id=(e,t)=>{var n={};for(var o in e)Cd.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Ds)for(var o of Ds(e))t.indexOf(o)<0&&Sd.call(e,o)&&(n[o]=e[o]);return n};function $d(e,t,n={}){const o=n,{window:r=Ot}=o,i=Id(o,["window"]);let s;const l=Ls(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},c=pe(()=>Wt(e),h=>{a(),l.value&&r&&h&&(s=new ResizeObserver(t),s.observe(h,i))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return ar(u),{isSupported:l,stop:u}}function fr(e,t={width:0,height:0},n={}){const{window:o=Ot,box:r="content-box"}=n,i=ae(()=>{var a,c;return(c=(a=Wt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=Y(t.width),l=Y(t.height);return $d(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 h=o.getComputedStyle(u);s.value=parseFloat(h.width),l.value=parseFloat(h.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((h,{inlineSize:g})=>h+g,0),l.value=u.reduce((h,{blockSize:g})=>h+g,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),pe(()=>Wt(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function dr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=Ot}=n,l=Ls(()=>s&&"IntersectionObserver"in s);let a=Et;const c=l.value?pe(()=>({el:Wt(e),root:Wt(o)}),({el:h,root:g})=>{if(a(),!h)return;const y=new IntersectionObserver(t,{root:g,rootMargin:r,threshold:i});y.observe(h),a=()=>{y.disconnect(),a=Et}},{immediate:!0,flush:"post"}):Et,u=()=>{a(),c()};return ar(u),{isSupported:l,stop:u}}var Rs;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Rs||(Rs={}));function Td(e,t,n={}){const{window:o=Ot}=n;return kd(e,t,o==null?void 0:o.sessionStorage,n)}var Pd=Object.defineProperty,Ns=Object.getOwnPropertySymbols,Ed=Object.prototype.hasOwnProperty,Od=Object.prototype.propertyIsEnumerable,Fs=(e,t,n)=>t in e?Pd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Md=(e,t)=>{for(var n in t||(t={}))Ed.call(t,n)&&Fs(e,n,t[n]);if(Ns)for(var n of Ns(t))Od.call(t,n)&&Fs(e,n,t[n]);return e};Md({linear:od},{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 Ld(e={}){const{window:t=Ot,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,s=Y(n),l=Y(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(),Ts(a),Mt("resize",a,{passive:!0}),r&&Mt("orientationchange",a,{passive:!0}),{width:s,height:l}}const Vs=be(Te({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=Y(null),o=Y(0),r=Y([]),i=ae(()=>r.value[o.value]),s=$s(l,500);et(()=>{const u=fr(n),h=Ke(()=>a({width:u.width.value,height:u.height.value}),50);h(),pe(u.width,h),pe(u.height,h)});function l(){o.value>=r.value.length-1?t("hide"):o.value++}function a(u){const h=c();r.value=h.map(({rect:g,text:y})=>{const M=g.top<u.height-g.bottom,x=g.left<u.width-g.right;return{text:y,style:{left:`${g.left}px`,top:`${g.top}px`,width:`${g.width}px`,height:`${g.height}px`},textStyle:{left:x?`${g.left-12}px`:void 0,right:x?void 0:`${u.width-g.left}px`,top:M?`${g.bottom+12}px`:`${g.top+20}px`,textAlign:M?void 0:"right",transform:M?void 0:"translateY(-50%)"}}}),o.value>=r.value.length&&(o.value=r.value.length-1)}function c(){var g;const u=(g=n.value)==null?void 0:g.parentElement;if(!u)return[];const h=[];return u.querySelectorAll("[data-tour]").forEach(y=>{var B;const M=(B=y.getAttribute("data-tour"))==null?void 0:B.trim();if(!(M!=null&&M.length))return;const x=y.getBoundingClientRect();h.push({rect:x,text:M})}),h}return(u,h)=>{var g,y;return A(),q(Ce,null,[X("div",{class:Oe(["fixed-screen bg-black bg-opacity-50 duration-500",{"opacity-0":!i.value,"opacity-100":!!i.value}])},null,2),X("div",{ref_key:"root",ref:n,class:"tour",onClick:h[0]||(h[0]=nt((...M)=>G(s)&&G(s)(...M),["stop"]))},[i.value?(A(),q("div",{key:o.value,class:"tour__target",style:Be(i.value.style)},null,4)):Me("",!0),(A(),q("div",{key:o.value,class:"tour__text",style:Be((g=i.value)==null?void 0:g.textStyle)},Je(((y=i.value)==null?void 0:y.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
|
-
`]]]),
|
|
5
|
-
`]]]),Bd=Object.freeze(Object.defineProperty({__proto__:null,default:Ws},Symbol.toStringTag,{value:"Module"})),Dd={},Rd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Nd=[X("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function Fd(e,t){return A(),q("svg",Rd,Nd)}const Us=be(Dd,[["render",Fd]]),Vd=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"})),Ks=Te({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=Y(typeof n!="string"||+n!==t.direction),r=Ke(()=>o.value=!1,1250);pe(()=>t.direction,()=>{i(),o.value=!0,r()}),et(()=>{i(),r();let s;const l=Bs();pe(l,a=>{a!=="visible"?s=Date.now():Date.now()-s>3e4&&(o.value=!0,r())})});function i(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,l)=>{const a=Us;return A(),we(tn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:le(()=>[o.value?(A(),q("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(at).vertical,"rotate-180":s.direction===G(at).rtl}])},[Z(a)],2)):Me("",!0)]),_:1})}}}),Hd=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),so=[];function Wd(e){so.push(e),st(()=>{const t=so.indexOf(e);t!==-1&&so.splice(t,1)})}function Ud(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,i=t*o;so.forEach(s=>s(r,i))}const Kd=["onClick"],Ys=Te({__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=Y(null),r=Y(Math.min(yn,Math.max(bn,n.modelValue))),i=Y(!1),s=Y(!1),l=Y(!1),a=Y(!1);pe(()=>n.modelValue,C=>D(C)),et(()=>{n.touchDevice?(Mt(window,"touchstart",N),Wd(ie)):(Mt(o,"mousedown",M),pe(()=>n.horizontal,C=>{C?window.addEventListener("wheel",I,{passive:!1}):window.removeEventListener("wheel",I)},{immediate:!0}))}),st(()=>{window.removeEventListener("wheel",I)});let c;ro({onKeyDown:C=>{var U;if(n.busy)return;(U=o.value)==null||U.focus();const k=C.key==="Meta",P=C.key==="Control";if(k||P)i.value=!0,window.addEventListener("wheel",h,{passive:!1}),c=()=>{i.value=!1,window.removeEventListener("wheel",h),window.removeEventListener("blur",c),c=void 0},window.addEventListener("blur",c);else if(C.ctrlKey||C.metaKey)switch(C.key){case"0":D(1);break;case"-":D(r.value-.2),C.preventDefault();break;case"=":case"+":D(r.value+.2),C.preventDefault();break}},onKeyUp:()=>{i.value==!0&&(c==null||c())}});function u(C){l.value!==C&&(l.value=C,C?n.playController.pause():(t("dragEnd"),n.playController.resume()))}function h(C){C.stopPropagation(),C.preventDefault();const k=Math.ceil((r.value+C.deltaY*-.01)*100)/100;D(k,{x:C.clientX,y:C.clientY})}let g={x:0,y:0},y={x:0,y:0};function M(C){C.button===0&&(g={x:C.clientX,y:C.clientY},y={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",x),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",x),setTimeout(()=>u(!1))},{once:!0}),C.preventDefault(),C.stopPropagation())}function x(C){u(!0);const k=C.clientX-g.x,P=C.clientY-g.y,U=o.value;U.scrollLeft=y.x-k,U.scrollTop=y.y-P}let B=!1,W={distance:0,zoom:r.value,x:0,y:0};function N(C){n.busy||(B=C.touches.length===2,B&&(u(!0),C.stopPropagation(),C.preventDefault(),W={distance:$(C),zoom:r.value,x:(C.touches[0].clientX+C.touches[1].clientX)/2,y:(C.touches[0].clientY+C.touches[1].clientY)/2}),(B||n.playController.isPlaying&&n.longStrip)&&(window.addEventListener("touchmove",d),window.addEventListener("touchend",L,{once:!0})))}function L(){if(window.removeEventListener("touchmove",d),B){u(!1),B=!1;return}if(!l.value)return;const C=Ke(()=>{u(!1),o.value.removeEventListener("scroll",P)},100),k=setTimeout(C,100);o.value.addEventListener("scroll",P);function P(){clearTimeout(k),C()}}function d(C){if(u(!0),B){C.stopPropagation(),C.preventDefault();const P=$(C)/W.distance;D(Math.ceil(P*W.zoom*100)/100,W)}}const E=Ke(()=>s.value=!1,100);function I(C){n.busy||(s.value||(s.value=!0),E(),C.deltaY&&(!i.value&&o.value&&(o.value.scrollLeft+=C.deltaY*(n.rtl?-1:1)),C.preventDefault()))}function $(C){return Math.hypot(C.touches[0].clientX-C.touches[1].clientX,C.touches[0].clientY-C.touches[1].clientY)}let m=0,V;function ee(C){if(!l.value){if(!n.touchDevice){t("click",C);return}m++,V&&clearTimeout(V),m===2&&ie(C.clientX,C.clientY),V=setTimeout(()=>{!l.value&&m===1&&t("click",C),V=void 0,m=0},300)}}function ie(C,k){if(!m)return;m=0;const P=r.value===1?2:1;D(P,{x:C,y:k})}let b;const F=Ke(()=>{a.value=!1,b=void 0},150);function oe(){if(!a.value){const C=o.value;if(!C)return;const k=C.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;k&&(b={el:k,rect:k.getBoundingClientRect()},a.value=!0)}if(b)return F(),b}async function D(C,k){const P=o.value,U=Math.min(yn,Math.max(bn,C));if(!P||r.value===U)return;const ne=oe();if(!ne)return;const ye=(k==null?void 0:k.x)??P.clientWidth/2,he=(k==null?void 0:k.y)??P.clientHeight/2;r.value=U,t("update:modelValue",U),await gt();const{el:ue,rect:te}=ne,Le=ue.offsetWidth/te.width,ve=ue.offsetHeight/te.height;P.scrollLeft=ue.offsetLeft-te.left*Le+ye*(Le-1),P.scrollTop=ue.offsetTop-te.top*ve+he*(ve-1)}return(C,k)=>(A(),q("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":!C.longStrip&&(l.value||s.value||a.value),"cursor-grabbing":l.value,"overflow-hidden":a.value}]),style:Be({"font-size":`${r.value}px`}),onClick:nt(ee,["stop"])},[Pe(C.$slots,"default")],14,Kd))}}),Yd=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),Xs=Te({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=Y(null),o=Y(!1);return et(async()=>{await gt();let r=!1;dr(n,i=>{o.value=i.some(s=>s.isIntersecting),o.value&&!r&&t("visible")})}),(r,i)=>(A(),q("div",{ref_key:"root",ref:n},[Pe(r.$slots,"default",{visible:o.value})],512))}}),Xd=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),qd={key:0,class:"page--loading"},Zd=["src"],Jd=["src"],Qd=["data-index"],qs=be(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=Y(null),r=ae(()=>{var L;return(L=o.value)==null?void 0:L.$el}),i=Y(null),s=fr(r),l=ae(()=>{const{width:L,height:d}=s,E=n.isLongStrip?n.isVertical?L.value:d.value:Math.min(L.value,d.value);return Math.min(4,Math.max(1,Math.ceil(E/400-1)))*n.gap}),a=Y(n.pageIndex),c=Y(n.pageIndex+3);let u=n.pageIndex,h=n.pageIndex;const g=Ke(B,50);pe(()=>n.pageIndex,()=>{u>n.pageIndex&&(u=n.pageIndex)});const y=ae(()=>{const{width:{value:L},height:{value:d}}=s;return n.pages.map(E=>{var oe;const I=E.some(D=>{var C;return(C=D.img)==null?void 0:C.isLoading}),$=E.map(D=>D.index),m={isLoading:I,indexes:$};if(I||$[$.length-1]<a.value-1||$[0]>c.value+2)return m;const V=E.map(({img:D})=>D).filter(Boolean);if(!V.length||(m.srcs=V.map(({src:D})=>D),V.every(D=>D.hasError)))return m;const ie=(oe=V.find(D=>!D.hasError))==null?void 0:oe.size,b=V.reduce((D,C)=>{var k;return D+(((k=C.size)==null?void 0:k.width)??ie.width)},0),F=V.reduce((D,C)=>{var k;return D+(((k=C.size)==null?void 0:k.height)??ie.height)},0)/V.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&L/b<d/F?(m.width=Math.min(L,b),m.height=F*m.width/b):m.height=Math.min(d,F),m})}),M=ae(()=>{const L=n.isVertical?"width":"height";return y.value.map(d=>d[L]).filter(Boolean).sort((d,E)=>E-d)[0]});function x(L){const d=L.indexes[L.indexes.length-1];d!==void 0&&h<d&&(h=d),g()}function B(){a.value!==u&&(a.value=u),c.value!==h&&(c.value=h)}function W(){n.isLongStrip?B():g()}function N(L){if(!n.isLongStrip){const d=n.isVertical?s.height.value:s.width.value,I=(n.isVertical?L.clientY:n.isRTL?d-L.clientX:L.clientX)/d;if(I<=.2){t("prev");return}else if(I>=.8&&n.pageIndex<n.totalImgs){t("next");return}}t("click")}return(L,d)=>{const E=tr,I=Xs,$=Ys;return A(),we($,{ref_key:"root",ref:o,"model-value":L.zoom,"page-index":L.pageIndex,class:Oe(["reader-body",{"reader-body--long-strip":L.isLongStrip,"reader-body--pages":!L.isLongStrip,"reader-body--vertical":L.isVertical,"reader-body--rtl":L.isRTL,"reader-body--idle":L.idle}]),"play-controller":L.playController,horizontal:!L.isVertical,rtl:L.isRTL,"touch-device":L.touchDevice,busy:L.busy,"long-strip":L.isLongStrip,style:Be({"--gap":`${l.value}em`,"--space-top":(L.spaceTop||0)+"px","--screen-width-em":G(s).width.value+"em","--screen-height-em":G(s).height.value+"em",...L.isLongStrip?{"--max-size-em":M.value+"em"}:{}}),"onUpdate:modelValue":d[0]||(d[0]=m=>t("update:zoom",m)),onDragEnd:d[1]||(d[1]=()=>t("dragEnd")),onClick:N,onScroll:W},{default:le(()=>[(A(!0),q(Ce,null,fn(y.value,m=>(A(),we(I,to({key:L.direction+"_"+m.indexes[0],"data-index":m.indexes[0]},m.indexes.length>1?{"data-index2":m.indexes[1]}:{},{onVisible:()=>x(m)}),{default:le(({visible:V})=>{var ee;return[!((ee=m.srcs)!=null&&ee.length)||m.isLoading?(A(),q("div",qd,[mt(Z(E,null,null,512),[[ts,V]])])):m.srcs.length==1?(A(),q("img",{key:1,src:m.srcs[0],style:Be({height:m.height!==void 0?m.height+"em":""})},null,12,Zd)):(A(),q("div",{key:2,class:Oe(["page--double",{"flex-row-reverse":L.isRTL}]),style:Be({width:m.width!==void 0?m.width+"em":"",height:m.height!==void 0?m.height+"em":""})},[(A(!0),q(Ce,null,fn(m.srcs,ie=>(A(),q("div",{key:ie},[X("img",{src:ie},null,8,Jd)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),X("div",{ref_key:"autoNextEl",ref:i,class:"last","data-index":L.totalImgs},[Pe(L.$slots,"end")],8,Qd)]),_:3},8,["model-value","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style"])}}}),[["styles",[`.reader-body{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width:1024px){.reader-body{transform:none}}.reader-body--rtl{flex-direction:row-reverse}.reader-body.reader-body--vertical>div{padding:calc(var(--gap)/2) 0}.reader-body:not(.reader-body--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.reader-body:not(.reader-body--vertical)>div{padding:0 calc(var(--gap)/2)}.reader-body--long-strip.reader-body--vertical>div:first-child{margin-top:var(--space-top);padding-top:0}.reader-body--long-strip.reader-body--vertical>div:last-child{padding-bottom:0}.reader-body--long-strip.reader-body--vertical>div{width:var(--max-size-em)}.reader-body--long-strip.reader-body--vertical .page--loading{height:75vh;max-width:100%;width:100vw}.reader-body--long-strip.reader-body--vertical .last{height:var(--screen-height-em)}.reader-body--long-strip:not(.reader-body--vertical)>div{align-items:center;display:flex;height:var(--max-size-em)}.reader-body--long-strip:not(.reader-body--vertical) .page--loading{height:100vh;max-height:100%;max-width:100vw;width:680px}.reader-body--long-strip:not(.reader-body--vertical) .last{width:var(--screen-width-em)}.reader-body--long-strip>div>img{flex-shrink:0;margin:auto}.reader-body--pages:after,.reader-body--pages:before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.reader-body--pages.reader-body--idle:after,.reader-body--pages.reader-body--idle:before{cursor:none}.reader-body--pages>div{align-items:center;display:grid;justify-content:center;min-height:100vh;min-width:100vw;scroll-snap-align:center}.reader-body--pages.reader-body--vertical{--tw-scroll-snap-strictness:mandatory;scroll-snap-type:y var(--tw-scroll-snap-strictness)}.reader-body--pages.reader-body--vertical:after,.reader-body--pages.reader-body--vertical:before{height:20vw;left:0;right:0}.reader-body--pages.reader-body--vertical:before{top:0}.reader-body--pages.reader-body--vertical:after{bottom:0}.reader-body--pages.reader-body--vertical>div{width:var(--screen-width-em)}.reader-body--pages:not(.reader-body--vertical){--tw-scroll-snap-strictness:mandatory;scroll-snap-type:x var(--tw-scroll-snap-strictness)}.reader-body--pages:not(.reader-body--vertical):after,.reader-body--pages:not(.reader-body--vertical):before{bottom:0;top:0;width:20vw}.reader-body--pages:not(.reader-body--vertical):before{left:0}.reader-body--pages:not(.reader-body--vertical):after{right:0}.reader-body--pages:not(.reader-body--vertical)>div{height:var(--screen-height-em)}.reader-body--pages .page--loading{height:100vh;width:100vw}.reader-body--pages .page--double{align-items:center;display:flex;gap:var(--gap);justify-content:center}.reader-body--pages .page--double div{display:flex;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body--pages .page--double div img{flex-shrink:0;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.reader-body>div{flex-shrink:0;margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body .page--loading{align-items:center;display:flex;justify-content:center}.reader-body img{--tw-bg-opacity:1!important;background-color:rgb(41 37 36/var(--tw-bg-opacity))!important;-o-object-fit:contain!important;object-fit:contain!important;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}
|
|
6
|
-
`]]]),
|
|
7
|
-
`]]]),op=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"}));async function xn(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(r=>{setTimeout(async()=>{const i=await xn(e-1,t,n);r(i)},t)})}function lo(e=0){return new Promise(t=>setTimeout(t,e))}const rp=3;function ip(e){var oe,D,C;const t=((D=(oe=e.raw.value)==null?void 0:oe.imgs)==null?void 0:D.filter(Boolean))??[];let n=!!t.length;const o=Y(t),r=sn({}),i=[],s=new WeakMap,l=Y((C=e.raw.value)==null?void 0:C.isWebtoon),a=Date.now(),c=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android");let u=!0,h=!1,g=!1,y=0,M=0,x,B=[],W=e.isAutoShow!==!1?e.page.value:n?cp(t):void 0;const N=Ke(b,100);let L=!1;const d=Ke(m,50),E=()=>{L?d():(L=!0,m())};n?m():ee(),pe(()=>{var k;return(k=e.raw.value)==null?void 0:k.imgs},k=>{k&&k!==o.value&&(n=!0,$(k))}),st(()=>{u=!1,i.forEach(k=>URL.revokeObjectURL(k))}),Yn(()=>{if(!h)return;const k=B.length?void 0:document.querySelector(`img[src^="${t[Math.floor(e.page.value)]}"]`)??void 0;kn({contentEl:x,imgEl:k,imgEls:B,page:e.page.value})});function I(){var ye,he;if(h||l.value===void 0||W===void 0)return;const k=Math.max(0,Math.min(W,o.value.length)),P=o.value.length-1,U=Math.min(Math.floor(k),P);if(U>=1){const ue=o.value[U];if(!ue){e.isAutoShow&&kn({contentEl:x,imgEls:B,page:U});return}const te=o.value[U-1];if(te&&!((ye=r[te])!=null&&ye.size)||!((he=r[ue])!=null&&he.size))return}if(h)return;h=!0,e.onReady(k);let ne=!0;pe(()=>Math.floor(e.page.value),async(ue,te)=>{kn({imgEls:B,page:ue,smooth:c,skipIfVisible:ne}),ne=!1,te??(te=-1),ue!==te&&(y=Math.max(0,y-Math.abs(ue-te))),E()},{immediate:!0})}function $(k,P){(k.length!==o.value.length||k.some((U,ne)=>o.value[ne]!==U))&&(P&&(B=P,e.isAutoShow===!1&&W===void 0&&(W=Qs(B))),o.value=k,E())}function m(){const k=Math.max(0,Math.floor(e.page.value-1)),P=U=>{y>rp||V(U)};for(let U=k;U<o.value.length;U++)P(U);for(let U=k-1;U>=0;U--)P(U)}async function V(k){const P=o.value[k];if(!(!u||!P||r[P])){if(!r[P]){r[P]={src:P,isLoading:!0,hasError:!1},y++;const U=await ap(P);if(r[P]={src:P,size:U,isLoading:!1,hasError:!U},y=Math.max(0,y-1),U&&!l.value&&k>Math.min(1,o.value.length-2)){const ne=U.height/U.width>2.5;l.value!==ne&&(l.value=ne)}I()}d()}}function ee(){let k=!1;const P=new MutationObserver(()=>{x&&N(x)});Yn(async()=>{P.disconnect()}),ie(U=>{x!==U&&(x=U,P.disconnect(),P.observe(x,{childList:!0,subtree:!0}),k?N(x):(k=!0,b(x)))})}async function ie(k){var ue;const P=(ue=e.spec)==null?void 0:ue.content;if(!P){k(document.body);return}const U=await sp(e.spec);let ne=P?await xn(U?100:1,10,()=>document.querySelector(P)):void 0;if(!ne)return;k(ne);let ye=0;const he=async()=>{if(u&&!(ne!=null&&ne.isConnected)&&!n){if(ye=0,ne=await xn(50,20,()=>{const te=document.querySelector(P);return te!=null&&te.isConnected&&te!==ne?te:void 0}),!ne)return;k(ne)}!u||n||++ye>=10||setTimeout(he,200)};setTimeout(he,200)}async function b(k){var ue;if(!u||!k.isConnected||n)return;const P=Date.now();M=P;let U,ne;const ye=new Map,he=(ue=e.spec)==null?void 0:ue.imgDivs;if(he){if(ne=Array.from(k.querySelectorAll(he)),!g&&e.isAutoShow!==!1&&e.page.value&&(g=!0,kn({contentEl:k,imgEls:ne,page:Math.floor(e.page.value),skipIfVisible:!0}),await lo(1),!u||!k.isConnected||M!==P||n)||(U=await Promise.all(ne.map(async(te,Le)=>{const ve=Array.from(te.querySelectorAll("img,canvas"));for(const Ee of ve){const Se=await F({ts:P,el:Ee,index:Le,total:ne.length,elsPool:ye,onImgLoad:()=>N(k)});if(Se)return Se}})),!u||!k.isConnected||M!==P||n))return}else{const te=Array.from(k.querySelectorAll("img,canvas")),Le=await Promise.all(te.map((Ee,Se)=>F({ts:P,el:Ee,index:Se,total:te.length,elsPool:ye,onImgLoad:()=>N(k)})));if(!u||!k.isConnected||M!==P||n)return;ne=te.filter((Ee,Se)=>Le[Se]),U=Le.filter(Boolean);const ve={};U.forEach((Ee,Se)=>{Ee&&Se!==U.lastIndexOf(Ee)&&(ve[Se]=!0)}),Object.keys(ve).length&&(ne=ne.filter((Ee,Se)=>!ve[Se]),U=U.filter((Ee,Se)=>!ve[Se])),!B.length&&ne.length<te.length&&ne.length<=5&&setTimeout(()=>{kn({imgEls:te,page:te.length,smooth:c})},50)}!e.raw.value&&!U.some(Boolean)&&e.onError("no_img"),$(U,ne)}async function F({ts:k,el:P,index:U,total:ne,elsPool:ye,onImgLoad:he}){const ue=s.get(P);let te,Le;if(P.tagName.toLowerCase()==="canvas"){if(ue)return ue.src;te=await Js(P)}else{if(P._tkLoadId_!==a&&(P._tkLoadId_=a,P.addEventListener("load",he),st(()=>{P._tkLoadId_===a&&delete P._tkLoadId_,P.removeEventListener("load",he)})),Le=up(P,ye),!Le)return;if(Le===(ue==null?void 0:ue.originalSrc))return ue.src;if(te=await lp(P,Le),!u||M!==k)return;if(l.value===void 0&&U>Math.min(1,ne-2)){const Ee=+(P.getAttribute("width")??0),Se=+(P.getAttribute("height")??0);Ee&&Se&&(l.value=Se/Ee>2.5)}}return te&&(s.set(P,{src:te,originalSrc:Le}),te.startsWith("blob:")&&i.push(te)),te}return{asyncImgs:ae(()=>o.value.map(k=>k?r[k]:void 0)),isWebtoon:ae(()=>l.value??!1)}}async function sp(e){const{lstrip:t,lstripBtn:n}=e||{};if(!n||!!t&&!!document.querySelector(t))return!1;const r=await xn(50,30,()=>document.querySelector(n));if(!r)return!1;if(r.tagName.toLowerCase()==="a"&&!r._tkDirty_){r._tkDirty_=!0;const i=s=>s.preventDefault();r.addEventListener("click",i),st(()=>{delete r._tkDirty_,r.removeEventListener("click",i)})}return r.click(),await lo(),!0}function Js(e){return new Promise(t=>{if(e.isConnected&&(e.width<200||e.height<200))return t(void 0);const n=o=>{if(!o)return t(void 0);const r=URL.createObjectURL(o);t(r)};e.toBlob(n,"image/png",1)})}async function lp(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),r=o.getContext("2d"),i=e.naturalWidth,s=e.naturalHeight;return o.width=i,o.height=s,r==null||r.drawImage(e,0,0,i,s),await Js(o)}function ap(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{const{naturalWidth:r,naturalHeight:i}=n;i&&r&&(t({width:r,height:i}),clearInterval(o))},20);n.onerror=()=>{t(void 0),clearInterval(o)},n.src=e})}function cp(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src));return Qs(n)}function Qs(e){for(let t=0;t<e.length;t++){const n=e[t].getBoundingClientRect();if(n.bottom<=0)continue;const o=n.top;return t+(o>=0?0:-o/n.height)}return 0}function up(e,t){if(!Gs(e,t))return;const n=e.getBoundingClientRect();if(n.width&&n.height&&(n.width<200||n.height<200))return;const o=e.getAttributeNames(),r=o.indexOf("src");r!==-1&&(o.splice(r,1),o.push("src"));for(const i of o){if(i!=="data-url"&&i!=="data-original"&&!i.includes("src"))continue;const s=e.getAttribute(i);if(s)return i==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:s.replace(/(\n|\t)/g," ").trim()}}function Gs(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=Gs(e.parentElement,t);return t.set(e,i),i}function kn({contentEl:e,imgEls:t,page:n,smooth:o,skipIfVisible:r,imgEl:i}){var u;const s=n>=t.length,l=o?"smooth":"instant";if(s){(u=t[t.length-1])==null||u.scrollIntoView({block:"end",behavior:l});return}if(i??(i=t[Math.floor(n)]),!i)return;const a=i.getBoundingClientRect();if(r&&a.top<=0&&a.top+a.height>0)return;i.scrollIntoView({block:"start",behavior:l});const c=n%1;if(c){const h=c*a.height,g=pr(e??document.documentElement);setTimeout(()=>g==null?void 0:g.scrollBy({top:h}))}}function pr(e){if(e)return e.scrollHeight>e.clientHeight?e===document.body?pr(document.documentElement)??e:e:pr(e.parentElement??void 0)}function fp(e,t){return ae(()=>t.value?el(e.value):e.value.map((n,o)=>[{img:n,index:o}]))}function el(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})),...el(e.slice(r.length),t+r.length)]}function dp(e){const t=typeof e=="number"?Math.max(0,e):0,n=sessionStorage.getItem("tk:page:path");return n!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),n&&sessionStorage.removeItem("tk:page")),Td("tk:page",t,{writeDefaults:!1,mergeDefaults(o){return typeof o=="number"?Math.max(0,o):t}})}function pp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const hr=40;function hp({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:i,spaceTop:s,scrollEl:l,interferePlayer:a,onChangedPage:c,onInitialized:u}){let h=!1,g=!1,y;const M=Ke(I,300),x=$s(()=>{I(),M()},300),B=Ke(L,50);async function W(){d(e.value)}function N(){var b;g=!0,u(),(b=l.value)==null||b.addEventListener("scroll",x),setTimeout(()=>{const{width:F,height:oe}=Ld();pe(F,()=>{r.value&&B()}),pe(oe,()=>{r.value||B()}),pe(n,B),pe(t,B)},300)}function L(){if(!g||h)return;const b=e.value;$()!==b&&d(b)}function d(b,{smooth:F}={smooth:!1}){const oe=l.value;if(!oe)return;h=!0;const D=async()=>{await gt(),h=!1,g||N()},C=Math.floor(b),k=oe.querySelector(`[data-index="${C}"],[data-index2="${C}"]`);if(!k){D();return}a(async()=>{await E(oe,!o.value&&F,async()=>{await ie(oe,k,{smooth:F,page:b})}),await D()})}async function E(b,F,oe){F&&b.style.setProperty("scroll-snap-type","none"),await oe(),F&&b.style.removeProperty("scroll-snap-type")}function I(){if(h)return;const b=$();b!==void 0&&b!==e.value&&c(b)}function $(){const b=m();return b?(+b.getAttribute("data-index")||0)+(o.value?V(b):0):void 0}function m(){var F;if(y??(y=l.value.getRootNode()),!y)return;const b=(F=y.elementsFromPoint)==null?void 0:F.call(y,r.value||!o.value?window.innerWidth/2:i.value?window.innerWidth-hr:hr,r.value&&o.value?s.value||hr:window.innerHeight/2);if(b)for(let oe=0;oe<b.length;oe++){const D=b[oe];if(D.hasAttribute("data-index"))return D;if(D===l.value)break}}function V(b){const F=b.getBoundingClientRect();return r.value?Math.abs(F.top-s.value)/F.height:i.value?Math.max(0,F.right-l.value.clientWidth)/F.width:Math.abs(F.left)/F.width}let ee=!1;async function ie(b,F,oe){if(ee)return;const D=F.getBoundingClientRect();if(!o.value){if(r.value){if(D.top<=0&&D.bottom>=b.clientHeight)return}else if(D.left<=0&&D.right>=b.clientWidth)return}ee=!0;const C=r.value?b.scrollTop:b.scrollLeft,k=oe.page,P=o.value?k%1:0,U=await xn(30,10,async()=>{await lo();let te;if(!(F.offsetHeight<10))return o.value?r.value?te=F.offsetTop+P*F.offsetHeight-s.value:i.value?te=F.offsetLeft-b.clientWidth+F.offsetWidth-P*F.offsetWidth:te=F.offsetLeft+P*F.offsetWidth:r.value?te=F.offsetTop+(D.top>0?0:D.height-b.clientHeight):te=F.offsetLeft+(D.left>0?0:D.width-b.clientWidth),k>.5&&Math.abs(te)<100?void 0:te})??0,ne=r.value?Math.min(U,b.scrollHeight-b.clientHeight*2):i.value?Math.max(U,-(b.scrollWidth-b.clientWidth*2)):Math.min(U,b.scrollWidth-b.clientWidth*2);if(!oe.smooth){r.value?b.scrollTop=ne:b.scrollLeft=ne,ee=!1;return}const ye=ne-C,he=30;let ue=0;return new Promise(te=>{(function Le(){const ve=gp(ue,C,ye,he);r.value?b.scrollTop=ve:b.scrollLeft=ve,ue++,ue<=he?requestAnimationFrame(Le):(te(),ee=!1)})()})}return{init:W,goToPage:d}}function gp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function mp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:i,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=Y(typeof l=="string"?l==="true":e),c=ae({get:()=>a.value,set:m=>{a.value=m,sessionStorage.setItem("tk:playing",m?"true":"false")}}),u=Y(!1);let h,g;const y=Ke(I,100),M=Ke(()=>{u.value=!0},t?2e3:1e3),x=()=>setTimeout(()=>{u.value=!1,M()},30);x(),t||Mt(window,"mousemove",x);const B=Bs();et(()=>{pe(B,m=>{c.value&&(m==="visible"?I():g==null||g())}),pe(s,()=>W()),pe(i,m=>{m||L()})});async function W(m){c.value&&(g==null||g()),m&&(await gt(),await m()),c.value&&y()}function N(){c.value?L():d()}function L(){c.value&&(c.value=!1,g==null||g(),x())}function d(){!c.value&&i.value&&(c.value=!0,I(),x())}function E(){g==null||g()}function I(){const m=n.value;if(!c.value||!m)return;const V=o.value?m.scrollHeight-m.clientHeight:m.scrollWidth-m.clientWidth,ee=$();if(V<=ee){L();return}g=()=>{h=Date.now(),g=void 0};const ie=Date.now();h=ie;const b=.05*s.value,F=o.value?"scrollTop":"scrollLeft";let oe=Date.now(),D=0;const C=()=>{if(h!==ie)return;const k=Date.now(),P=k-oe;oe=k;const U=b*P+D;U>=1?(D=U%1,m[F]+=(U-D)*(r.value?-1:1)):D=U,setTimeout(C,1)};C()}function $(){const m=n.value;return o.value?m.scrollTop:r.value?-m.scrollLeft:m.scrollLeft}return{isPlaying:c,isIdle:u,toggle:N,play:d,pause:E,resume:I,stop:L,interfere:W,awake:x}}function vp(e){var y,M,x,B,W;let t=-1,n=(y=e.prev)==null?void 0:y.slug,o=(M=e.next)==null?void 0:M.slug;const{vol:r,inferVol:i,chap:s,title:l,slug:a,basePath:c}=e,u=r??i,h=l.chapters??[],g=(h==null?void 0:h.length)>1?h:[];if(g.length){if(t=g.findIndex(N=>N.slug===e.slug),t===-1&&(t=g.findIndex(N=>(N.vol??N.inferVol)===u&&N.chap===s)),t===-1&&(t=g.findIndex(N=>a.startsWith(`${N.slug}-`)&&a.length-N.slug.length>3)),t!==-1)n??(n=(x=g[t+1])==null?void 0:x.slug),o??(o=(B=g[t-1])==null?void 0:B.slug);else if(!n&&!o){const N=g.findIndex(L=>{const d=L.vol??L.inferVol;return u===void 0||d===void 0||u===d?L.chap<s:d<u});N!==-1?(n=g[N].slug,o=(W=g[N-1])==null?void 0:W.slug):o=g[g.length-1].slug}}return{activeIndex:t,activeLabel:tl({vol:r,chap:s}),chapters:g.map(N=>({label:tl(N),path:gr(c,N.slug)})),prevPath:gr(c,n),nextPath:gr(c,o)}}function gr(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function tl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const _p={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},bp=Te({...{inheritAttrs:!1},__name:"TrackkunReader",props:{immediate:{type:Boolean},raw:{},spec:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},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=Y(!1),l=Y(!1),a=cu({touchDevice:n.touchDevice}),c=dp(n.page),u=ae(()=>n.spaceTop??0),{asyncImgs:h,isWebtoon:g}=ip({raw:ae(()=>n.raw),spec:n.spec,page:c,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:u,async onReady(v){he(v),s.value=!0},onError:()=>{t("error"),T()}}),{direction:y,style:M,isRTL:x,isDouble:B,isVertical:W,isLongStrip:N,gap:L,speed:d,zoom:E}=Zu({titleName:ae(()=>{var v;return(v=n.raw)==null?void 0:v.title.name}),isWebtoon:g}),I=fp(h,B),$=ae(()=>c.value>=h.value.length),m=ae(()=>n.raw?vp(n.raw):void 0),V=ae(()=>{var v,w;return x.value?(v=m.value)==null?void 0:v.nextPath:(w=m.value)==null?void 0:w.prevPath}),ee=ae(()=>{var v,w;return x.value?(v=m.value)==null?void 0:v.prevPath:(w=m.value)==null?void 0:w.nextPath}),ie=Y(null),b=Y(null),F=Y(!1),oe=Y(!1),D=mp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:ae(()=>{var v;return(v=ie.value)==null?void 0:v.$el}),speed:d,isRTL:x,isVertical:W,isLongStrip:N}),C=ae(()=>!n.touchDevice&&D.isIdle.value&&!a.value),k=ae({get(){return E.value},set(v){D.interfere(()=>{E.value=v})}}),P=hp({page:c,style:M,direction:y,isLongStrip:N,isVertical:W,isRTL:x,spaceTop:u,scrollEl:ae(()=>{var v;return(v=ie.value)==null?void 0:v.$el}),interferePlayer:v=>D.interfere(v),onChangedPage:he,onInitialized(){t("ready"),l.value=!0,n.touchDevice&&(i=ue())}}),U=ae(()=>Math.floor(c.value)),ne=()=>D.interfere(()=>lo(100));bu().addListener({onKeyDown:v=>{if(n.tourEnabled)return;const w=N.value&&W.value,K=N.value&&!W.value,J=!N.value&&W.value,re=!N.value&&!W.value;switch(v.key){case" ":v.preventDefault(),N.value?(O(!1),D.toggle()):p();break;case"ArrowUp":case"PageUp":w?ne():J&&U.value!==0&&(v.preventDefault(),f());break;case"ArrowDown":case"PageDown":w?ne():J&&!$.value&&(v.preventDefault(),p());break;case"ArrowLeft":K?ne():re?(v.preventDefault(),Sn()):W.value&&Ee();break;case"ArrowRight":K?ne():re?(v.preventDefault(),In()):W.value&&ve();break}},onKeyUp:v=>{switch(v.key){case"f":H();break;case"t":j();break;case"h":O();break}}}),Mt("fullscreenchange",()=>{F.value=!!document.fullscreenElement}),pe(D.isPlaying,v=>{v||S(!1),t("playingChanged",v)}),pe(D.isIdle,v=>{D.isPlaying.value&&S(v)}),pe(a,v=>{!v&&D.isIdle.value?D.awake():v&&n.fullScreen&&S()});function he(v){if(c.value===v)return;const w=h.value.length;if(v<0||v>=w+1)return;const K=c.value;c.value=v,t("pageChanged",Math.floor(v*100)/100),v>=w?(S(!1),D.stop()):v===0?S(!1):n.touchDevice&&!r&&(N.value?i!==void 0&&ue()-i>300&&S(!0):Math.abs(K-v)===1&&S(!0)),!o&&v>=w-2&&(o=!0,t("finished"))}function ue(){var w;const v=(w=ie.value)==null?void 0:w.$el;return v?W.value?v.scrollTop:x.value?-v.scrollLeft:v.scrollLeft:0}function te(){!n.touchDevice&&!N.value&&P.goToPage(U.value,{smooth:!0})}function Le(){if(D.isPlaying.value){!n.fullScreen||!n.touchDevice?D.stop():D.awake();return}S()}function ve(){var v;dt((v=m.value)==null?void 0:v.nextPath)}function Ee(){var v;dt((v=m.value)==null?void 0:v.prevPath)}function Se(v){var K,J,re;const w=(re=(J=(K=m.value)==null?void 0:K.chapters)==null?void 0:J[v])==null?void 0:re.path;w&&dt(w)}function dt(v){v&&(location.href=v.includes("://")?v:location.origin+v)}function Sn(){x.value?p():f()}function In(){x.value?f():p()}function f(){var K;const v=I.value,w=$.value?v[v.length-1][0].index:(K=v[_()-1])==null?void 0:K[0].index;w!==void 0?P.goToPage(w):Ee()}function p(){var v,w;if($.value)ve();else{const K=((w=(v=I.value[_()+1])==null?void 0:v[0])==null?void 0:w.index)??h.value.length;P.goToPage(K)}}function _(){const v=U.value,w=I.value.findIndex(K=>K.some(({index:J})=>J===v));return w===-1?I.value.length-1:w}function T(){pp(),D.stop(),t("dispose")}async function S(v){if(a.value&&!n.fullScreen)return;r=!0;const w=typeof v=="boolean"?v:!n.fullScreen;t("fullScreenChanged",w),w&&setTimeout(()=>{n.fullScreen&&a.value&&t("fullScreenChanged",!1)},100)}function j(){n.entryId?R():z()}function H(){var v,w;document.fullscreenElement?document.exitFullscreen():(w=(v=b.value)==null?void 0:v.$el)==null||w.requestFullscreen()}function z(){D.stop(),t("addEntry")}function R(){D.stop(),t("openEntry",n.entryId)}function O(v){oe.value!==v&&(oe.value=!oe.value,oe.value&&D.isPlaying&&D.stop())}return(v,w)=>{const K=Zs,J=qs,re=Ks,me=Ws,ge=Hs,xe=Vs,Xe=Cs,Ve=oo,ao=ks,Ut=ir,co=xs,Re=ws,ot=ys,uo=_s,Ep=vs,Op=ms,Mp=gs,Lp=hs,zp=or,jp=nr,Ap=ss,Bp=rs;return v.immediate||s.value?(A(),we(Bp,{key:0,ref_key:"root",ref:b,loading:!l.value,immediate:!!v.immediate,"full-screen":!!v.fullScreen,idle:C.value,"space-top":u.value,rtl:G(x),onClick:w[10]||(w[10]=nt(()=>{},["stop"]))},di({settings:le(()=>{var bt;return[Z(Lp,{"reader-style":G(M),"onUpdate:readerStyle":w[3]||(w[3]=yt=>$e(M)?M.value=yt:null),direction:G(y),"onUpdate:direction":w[4]||(w[4]=yt=>$e(y)?y.value=yt:null),gap:G(L),"onUpdate:gap":w[5]||(w[5]=yt=>$e(L)?L.value=yt:null),speed:G(d),"onUpdate:speed":w[6]||(w[6]=yt=>$e(d)?d.value=yt:null),zoom:k.value,"onUpdate:zoom":w[7]||(w[7]=yt=>k.value=yt),name:(bt=v.raw)==null?void 0:bt.title.name,webtoon:G(g),disabled:!s.value,onHelp:O},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":le(()=>[Z(tn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:le(()=>[Z(Ap,{zoom:k.value,onClick:w[9]||(w[9]=nt(()=>k.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:le(()=>[X("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Be({width:`${G(c)/(G(h).length-1)*100}%`})},null,4)]),default:le(()=>[s.value?(A(),we(J,{key:0,ref_key:"body",ref:ie,zoom:k.value,"onUpdate:zoom":w[0]||(w[0]=bt=>k.value=bt),"page-index":U.value,pages:G(I),"total-imgs":G(h).length,direction:G(y),gap:G(L),"is-long-strip":G(N),isRTL:G(x),"is-vertical":G(W),"space-top":u.value,busy:G(a),idle:C.value,"play-controller":G(D),"touch-device":v.touchDevice,onVnodeMounted:G(P).init,onPrev:f,onNext:p,onClick:Le,onDragEnd:te,onWheelPassive:w[1]||(w[1]=()=>G(D).interfere())},di({_:2},[s.value&&G(h).length?{name:"end",fn:le(()=>{var bt;return[Z(K,{"has-next":!!((bt=m.value)!=null&&bt.nextPath),onNext:ve,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"])):Me("",!0),l.value&&!$.value&&!v.tourEnabled?(A(),we(re,{key:1,direction:G(y)},null,8,["direction"])):Me("",!0),l.value&&!$.value?(A(),we(me,{key:2,playing:!!G(D).isPlaying.value},null,8,["playing"])):Me("",!0),oe.value?(A(),we(ge,{key:3,"touch-device":v.touchDevice,onHide:O},null,8,["touch-device"])):Me("",!0),v.tourEnabled?(A(),we(xe,{key:4,onHide:w[2]||(w[2]=()=>t("tourEnabledChanged",!1))})):Me("",!0)]),_:2},[v.raw?{name:"back",fn:le(()=>[Z(Ve,{href:v.raw.title.url,title:"Back to manga"},{default:le(()=>[Z(Xe)]),_:1},8,["href"])]),key:"0"}:void 0,v.touchDevice?void 0:{name:"exit",fn:le(()=>[Z(Ve,{title:"Hide reader","data-tour":"You have entered Trackkun reader mode, press here to return to the original page",onClick:T},{default:le(()=>[Z(ao)]),_:1})]),key:"1"},m.value?{name:"chapter-nav",fn:le(()=>[Z(Ut,{modelValue:m.value.activeIndex,label:m.value.activeLabel,title:"Select chapter",items:m.value.chapters,"onUpdate:modelValue":Se},{item:le(({item:bt})=>[It(Je(bt.label),1)]),_:1},8,["modelValue","label","items"]),V.value||ee.value?(A(),q("div",_p,[Z(Ve,{title:`${G(x)?"Next":"Prev"} chapter (←)`,href:V.value,disabled:!V.value,class:"!rounded-r-none"},{default:le(()=>[Z(co)]),_:1},8,["title","href","disabled"]),Z(Ve,{title:`${G(x)?"Prev":"Next"} chapter (→)`,href:ee.value,disabled:!ee.value,class:"!rounded-l-none"},{default:le(()=>[Z(Re)]),_:1},8,["title","href","disabled"])])):Me("",!0)]),key:"2"}:void 0,G(I).length?{name:"page-nav",fn:le(()=>[Z(ot,{"model-value":U.value,disabled:!l.value,pages:G(I),"total-imgs":G(h).length,"onUpdate:modelValue":G(P).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,v.raw?{name:"entry",fn:le(()=>[Z(Ve,{title:v.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:j},{default:le(()=>[v.entryId?(A(),we(uo,{key:0})):(A(),we(Ep,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,v.touchDevice?void 0:{name:"full-screen",fn:le(()=>[Z(Ve,{title:`${F.value?"Exit":"Enter"} fullscreen (F)`,onClick:H},{default:le(()=>[F.value?(A(),we(Op,{key:0})):(A(),we(Mp,{key:1}))]),_:1},8,["title"])]),key:"5"},G(N)?{name:"play",fn:le(()=>[Z(Ve,{"data-tour":"Press here to play like a video",title:`${G(D).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!l.value,onClick:w[8]||(w[8]=()=>G(D).toggle())},{default:le(()=>[G(D).isPlaying.value?(A(),we(zp,{key:0})):(A(),we(jp,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0]),1032,["loading","immediate","full-screen","idle","space-top","rtl"])):Me("",!0)}}}),nl=be(bp,[["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}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-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
|
-
`]]]),
|
|
9
|
-
`,Cn="gear-second",
|
|
1
|
+
(function(We,fe){typeof exports=="object"&&typeof module<"u"?module.exports=fe():typeof define=="function"&&define.amd?define(fe):(We=typeof globalThis<"u"?globalThis:We||self,We._gearSecond_=fe())})(this,function(){"use strict";var sp=Object.defineProperty;var lp=(We,fe,Ze)=>fe in We?sp(We,fe,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):We[fe]=Ze;var Ys=(We,fe,Ze)=>(lp(We,typeof fe!="symbol"?fe+"":fe,Ze),Ze);function We(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={},Ze=[],it=()=>{},Xs=()=>!1,qs=/^on[^a-z]/,In=e=>qs.test(e),uo=e=>e.startsWith("onUpdate:"),Se=Object.assign,fo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Zs=Object.prototype.hasOwnProperty,de=(e,t)=>Zs.call(e,t),G=Array.isArray,Kt=e=>Tn(e)==="[object Map]",dr=e=>Tn(e)==="[object Set]",le=e=>typeof e=="function",Te=e=>typeof e=="string",po=e=>typeof e=="symbol",ye=e=>e!==null&&typeof e=="object",pr=e=>ye(e)&&le(e.then)&&le(e.catch),hr=Object.prototype.toString,Tn=e=>hr.call(e),Qs=e=>Tn(e).slice(8,-1),gr=e=>Tn(e)==="[object Object]",ho=e=>Te(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$n=We(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),En=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Js=/-(\w)/g,Ue=En(e=>e.replace(Js,(t,n)=>n?n.toUpperCase():"")),Gs=/\B([A-Z])/g,Qe=En(e=>e.replace(Gs,"-$1").toLowerCase()),Pn=En(e=>e.charAt(0).toUpperCase()+e.slice(1)),go=En(e=>e?`on${Pn(e)}`:""),on=(e,t)=>!Object.is(e,t),On=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Mn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},mo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},vo=e=>{const t=Te(e)?Number(e):NaN;return isNaN(t)?e:t};let mr;const _o=()=>mr||(mr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function De(e){if(G(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=Te(o)?ol(o):De(o);if(r)for(const i in r)t[i]=r[i]}return t}else{if(Te(e))return e;if(ye(e))return e}}const el=/;(?![^(]*\))/g,tl=/:([^]+)/,nl=/\/\*[^]*?\*\//g;function ol(e){const t={};return e.replace(nl,"").split(el).forEach(n=>{if(n){const o=n.split(tl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Oe(e){let t="";if(Te(e))t=e;else if(G(e))for(let n=0;n<e.length;n++){const o=Oe(e[n]);o&&(t+=o+" ")}else if(ye(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const rl=We("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function vr(e){return!!e||e===""}const Je=e=>Te(e)?e:e==null?"":G(e)||ye(e)&&(e.toString===hr||!le(e.toString))?JSON.stringify(e,_r,2):String(e),_r=(e,t)=>t&&t.__v_isRef?_r(e,t.value):Kt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:dr(t)?{[`Set(${t.size})`]:[...t.values()]}:ye(t)&&!G(t)&&!gr(t)?String(t):t;let Ke;class il{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ke,!t&&Ke&&(this.index=(Ke.scopes||(Ke.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ke;try{return Ke=this,t()}finally{Ke=n}}}on(){Ke=this}off(){Ke=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 sl(e,t=Ke){t&&t.active&&t.effects.push(e)}function br(){return Ke}function ll(e){Ke&&Ke.cleanups.push(e)}const bo=e=>{const t=new Set(e);return t.w=0,t.n=0,t},yr=e=>(e.w&wt)>0,wr=e=>(e.n&wt)>0,al=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=wt},cl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];yr(r)&&!wr(r)?r.delete(e):t[n++]=r,r.w&=~wt,r.n&=~wt}t.length=n}},yo=new WeakMap;let rn=0,wt=1;const wo=30;let st;const Lt=Symbol(""),xo=Symbol("");class ko{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,sl(this,o)}run(){if(!this.active)return this.fn();let t=st,n=xt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=st,st=this,xt=!0,wt=1<<++rn,rn<=wo?al(this):xr(this),this.fn()}finally{rn<=wo&&cl(this),wt=1<<--rn,st=this.parent,xt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){st===this?this.deferStop=!0:this.active&&(xr(this),this.onStop&&this.onStop(),this.active=!1)}}function xr(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let xt=!0;const kr=[];function Yt(){kr.push(xt),xt=!1}function Xt(){const e=kr.pop();xt=e===void 0?!0:e}function Fe(e,t,n){if(xt&&st){let o=yo.get(e);o||yo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=bo()),Cr(r)}}function Cr(e,t){let n=!1;rn<=wo?wr(e)||(e.n|=wt,n=!yr(e)):n=!e.has(st),n&&(e.add(st),st.deps.push(e))}function pt(e,t,n,o,r,i){const s=yo.get(e);if(!s)return;let a=[];if(t==="clear")a=[...s.values()];else if(n==="length"&&G(e)){const l=Number(o);s.forEach((c,u)=>{(u==="length"||u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(s.get(n)),t){case"add":G(e)?ho(n)&&a.push(s.get("length")):(a.push(s.get(Lt)),Kt(e)&&a.push(s.get(xo)));break;case"delete":G(e)||(a.push(s.get(Lt)),Kt(e)&&a.push(s.get(xo)));break;case"set":Kt(e)&&a.push(s.get(Lt));break}if(a.length===1)a[0]&&Co(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);Co(bo(l))}}function Co(e,t){const n=G(e)?e:[...e];for(const o of n)o.computed&&Sr(o);for(const o of n)o.computed||Sr(o)}function Sr(e,t){(e!==st||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const ul=We("__proto__,__v_isRef,__isVue"),Ir=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(po)),fl=So(),dl=So(!1,!0),pl=So(!0),Tr=hl();function hl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=pe(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(pe)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Yt();const o=pe(this)[t].apply(this,n);return Xt(),o}}),e}function gl(e){const t=pe(this);return Fe(t,"has",e),t.hasOwnProperty(e)}function So(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?Ol:jr:t?Ar:zr).get(o))return o;const s=G(o);if(!e){if(s&&de(Tr,r))return Reflect.get(Tr,r,i);if(r==="hasOwnProperty")return gl}const a=Reflect.get(o,r,i);return(po(r)?Ir.has(r):ul(r))||(e||Fe(o,"get",r),t)?a:$e(a)?s&&ho(r)?a:a.value:ye(a)?e?Br(a):sn(a):a}}const ml=$r(),vl=$r(!0);function $r(e=!1){return function(n,o,r,i){let s=n[o];if(Zt(s)&&$e(s)&&!$e(r))return!1;if(!e&&(!Rn(r)&&!Zt(r)&&(s=pe(s),r=pe(r)),!G(n)&&$e(s)&&!$e(r)))return s.value=r,!0;const a=G(n)&&ho(o)?Number(o)<n.length:de(n,o),l=Reflect.set(n,o,r,i);return n===pe(i)&&(a?on(r,s)&&pt(n,"set",o,r):pt(n,"add",o,r)),l}}function _l(e,t){const n=de(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&pt(e,"delete",t,void 0),o}function bl(e,t){const n=Reflect.has(e,t);return(!po(t)||!Ir.has(t))&&Fe(e,"has",t),n}function yl(e){return Fe(e,"iterate",G(e)?"length":Lt),Reflect.ownKeys(e)}const Er={get:fl,set:ml,deleteProperty:_l,has:bl,ownKeys:yl},wl={get:pl,set(e,t){return!0},deleteProperty(e,t){return!0}},xl=Se({},Er,{get:dl,set:vl}),Io=e=>e,Ln=e=>Reflect.getPrototypeOf(e);function zn(e,t,n=!1,o=!1){e=e.__v_raw;const r=pe(e),i=pe(t);n||(t!==i&&Fe(r,"get",t),Fe(r,"get",i));const{has:s}=Ln(r),a=o?Io:n?Eo:ln;if(s.call(r,t))return a(e.get(t));if(s.call(r,i))return a(e.get(i));e!==r&&e.get(t)}function An(e,t=!1){const n=this.__v_raw,o=pe(n),r=pe(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 jn(e,t=!1){return e=e.__v_raw,!t&&Fe(pe(e),"iterate",Lt),Reflect.get(e,"size",e)}function Pr(e){e=pe(e);const t=pe(this);return Ln(t).has.call(t,e)||(t.add(e),pt(t,"add",e,e)),this}function Or(e,t){t=pe(t);const n=pe(this),{has:o,get:r}=Ln(n);let i=o.call(n,e);i||(e=pe(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?on(t,s)&&pt(n,"set",e,t):pt(n,"add",e,t),this}function Mr(e){const t=pe(this),{has:n,get:o}=Ln(t);let r=n.call(t,e);r||(e=pe(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 Lr(){const e=pe(this),t=e.size!==0,n=e.clear();return t&&pt(e,"clear",void 0,void 0),n}function Bn(e,t){return function(o,r){const i=this,s=i.__v_raw,a=pe(s),l=t?Io:e?Eo:ln;return!e&&Fe(a,"iterate",Lt),s.forEach((c,u)=>o.call(r,l(c),l(u),i))}}function Dn(e,t,n){return function(...o){const r=this.__v_raw,i=pe(r),s=Kt(i),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,c=r[e](...o),u=n?Io:t?Eo:ln;return!t&&Fe(i,"iterate",l?xo:Lt),{next(){const{value:h,done:p}=c.next();return p?{value:h,done:p}:{value:a?[u(h[0]),u(h[1])]:u(h),done:p}},[Symbol.iterator](){return this}}}}function kt(e){return function(...t){return e==="delete"?!1:this}}function kl(){const e={get(i){return zn(this,i)},get size(){return jn(this)},has:An,add:Pr,set:Or,delete:Mr,clear:Lr,forEach:Bn(!1,!1)},t={get(i){return zn(this,i,!1,!0)},get size(){return jn(this)},has:An,add:Pr,set:Or,delete:Mr,clear:Lr,forEach:Bn(!1,!0)},n={get(i){return zn(this,i,!0)},get size(){return jn(this,!0)},has(i){return An.call(this,i,!0)},add:kt("add"),set:kt("set"),delete:kt("delete"),clear:kt("clear"),forEach:Bn(!0,!1)},o={get(i){return zn(this,i,!0,!0)},get size(){return jn(this,!0)},has(i){return An.call(this,i,!0)},add:kt("add"),set:kt("set"),delete:kt("delete"),clear:kt("clear"),forEach:Bn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Dn(i,!1,!1),n[i]=Dn(i,!0,!1),t[i]=Dn(i,!1,!0),o[i]=Dn(i,!0,!0)}),[e,n,t,o]}const[Cl,Sl,Il,Tl]=kl();function To(e,t){const n=t?e?Tl:Il:e?Sl:Cl;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(de(n,r)&&r in o?n:o,r,i)}const $l={get:To(!1,!1)},El={get:To(!1,!0)},Pl={get:To(!0,!1)},zr=new WeakMap,Ar=new WeakMap,jr=new WeakMap,Ol=new WeakMap;function Ml(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ll(e){return e.__v_skip||!Object.isExtensible(e)?0:Ml(Qs(e))}function sn(e){return Zt(e)?e:$o(e,!1,Er,$l,zr)}function zl(e){return $o(e,!1,xl,El,Ar)}function Br(e){return $o(e,!0,wl,Pl,jr)}function $o(e,t,n,o,r){if(!ye(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Ll(e);if(s===0)return e;const a=new Proxy(e,s===2?o:n);return r.set(e,a),a}function qt(e){return Zt(e)?qt(e.__v_raw):!!(e&&e.__v_isReactive)}function Zt(e){return!!(e&&e.__v_isReadonly)}function Rn(e){return!!(e&&e.__v_isShallow)}function Dr(e){return qt(e)||Zt(e)}function pe(e){const t=e&&e.__v_raw;return t?pe(t):e}function Rr(e){return Mn(e,"__v_skip",!0),e}const ln=e=>ye(e)?sn(e):e,Eo=e=>ye(e)?Br(e):e;function Nr(e){xt&&st&&(e=pe(e),Cr(e.dep||(e.dep=bo())))}function Fr(e,t){e=pe(e);const n=e.dep;n&&Co(n)}function $e(e){return!!(e&&e.__v_isRef===!0)}function q(e){return Al(e,!1)}function Al(e,t){return $e(e)?e:new jl(e,t)}class jl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:pe(t),this._value=n?t:ln(t)}get value(){return Nr(this),this._value}set value(t){const n=this.__v_isShallow||Rn(t)||Zt(t);t=n?t:pe(t),on(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ln(t),Fr(this))}}function J(e){return $e(e)?e.value:e}const Bl={get:(e,t,n)=>J(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 Vr(e){return qt(e)?e:new Proxy(e,Bl)}class Dl{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 ko(t,()=>{this._dirty||(this._dirty=!0,Fr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=pe(this);return Nr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Rl(e,t,n=!1){let o,r;const i=le(e);return i?(o=e,r=it):(o=e.get,r=e.set),new Dl(o,r,i||!r,n)}function cp(e,...t){}function Ct(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){Nn(i,t,n)}return r}function Ge(e,t,n,o){if(le(e)){const i=Ct(e,t,n,o);return i&&pr(i)&&i.catch(s=>{Nn(s,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(Ge(e[i],t,n,o));return r}function Nn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,a=n;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,a)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){Ct(l,null,10,[e,s,a]);return}}Nl(e,n,r,o)}function Nl(e,t,n,o=!0){console.error(e)}let an=!1,Po=!1;const je=[];let ct=0;const Qt=[];let ht=null,zt=0;const Hr=Promise.resolve();let Oo=null;function gt(e){const t=Oo||Hr;return e?t.then(this?e.bind(this):e):t}function Fl(e){let t=ct+1,n=je.length;for(;t<n;){const o=t+n>>>1;cn(je[o])<e?t=o+1:n=o}return t}function Mo(e){(!je.length||!je.includes(e,an&&e.allowRecurse?ct+1:ct))&&(e.id==null?je.push(e):je.splice(Fl(e.id),0,e),Wr())}function Wr(){!an&&!Po&&(Po=!0,Oo=Hr.then(Yr))}function Vl(e){const t=je.indexOf(e);t>ct&&je.splice(t,1)}function Hl(e){G(e)?Qt.push(...e):(!ht||!ht.includes(e,e.allowRecurse?zt+1:zt))&&Qt.push(e),Wr()}function Ur(e,t=an?ct+1:0){for(;t<je.length;t++){const n=je[t];n&&n.pre&&(je.splice(t,1),t--,n())}}function Kr(e){if(Qt.length){const t=[...new Set(Qt)];if(Qt.length=0,ht){ht.push(...t);return}for(ht=t,ht.sort((n,o)=>cn(n)-cn(o)),zt=0;zt<ht.length;zt++)ht[zt]();ht=null,zt=0}}const cn=e=>e.id==null?1/0:e.id,Wl=(e,t)=>{const n=cn(e)-cn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Yr(e){Po=!1,an=!0,je.sort(Wl);const t=it;try{for(ct=0;ct<je.length;ct++){const n=je[ct];n&&n.active!==!1&&Ct(n,null,14)}}finally{ct=0,je.length=0,Kr(),an=!1,Oo=null,(je.length||Qt.length)&&Yr()}}function Ul(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:h,trim:p}=o[u]||fe;p&&(r=n.map(m=>Te(m)?m.trim():m)),h&&(r=n.map(mo))}let a,l=o[a=go(t)]||o[a=go(Ue(t))];!l&&i&&(l=o[a=go(Qe(t))]),l&&Ge(l,e,6,r);const c=o[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Ge(c,e,6,r)}}function Xr(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let s={},a=!1;if(!le(e)){const l=c=>{const u=Xr(c,t,!0);u&&(a=!0,Se(s,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(ye(e)&&o.set(e,null),null):(G(i)?i.forEach(l=>s[l]=null):Se(s,i),ye(e)&&o.set(e,s),s)}function Fn(e,t){return!e||!In(t)?!1:(t=t.slice(2).replace(/Once$/,""),de(e,t[0].toLowerCase()+t.slice(1))||de(e,Qe(t))||de(e,t))}let Ae=null,qr=null;function Vn(e){const t=Ae;return Ae=e,qr=e&&e.type.__scopeId||null,t}function ae(e,t=Ae,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Si(-1);const i=Vn(t);let s;try{s=e(...r)}finally{Vn(i),o._d&&Si(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function up(){}function Lo(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:a,attrs:l,emit:c,render:u,renderCache:h,data:p,setupState:m,ctx:S,inheritAttrs:x}=e;let j,V;const T=Vn(e);try{if(n.shapeFlag&4){const g=r||o;j=ft(u.call(g,g,h,i,m,p,S)),V=l}else{const g=t;j=ft(g.length>1?g(i,{attrs:l,slots:a,emit:c}):g(i,null)),V=t.props?l:Kl(l)}}catch(g){hn.length=0,Nn(g,e,1),j=Z(nt)}let W=j;if(V&&x!==!1){const g=Object.keys(V),{shapeFlag:P}=W;g.length&&P&7&&(s&&g.some(uo)&&(V=Yl(V,s)),W=St(W,V))}return n.dirs&&(W=St(W),W.dirs=W.dirs?W.dirs.concat(n.dirs):n.dirs),n.transition&&(W.transition=n.transition),j=W,Vn(T),j}const Kl=e=>{let t;for(const n in e)(n==="class"||n==="style"||In(n))&&((t||(t={}))[n]=e[n]);return t},Yl=(e,t)=>{const n={};for(const o in e)(!uo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Xl(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?Zr(o,s,c):!!s;if(l&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const p=u[h];if(s[p]!==o[p]&&!Fn(c,p))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:o===s?!1:o?s?Zr(o,s,c):!0:!!s;return!1}function Zr(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]&&!Fn(n,i))return!0}return!1}function ql({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Zl=e=>e.__isSuspense;function Ql(e,t){t&&t.pendingBranch?G(e)?t.effects.push(...e):t.effects.push(e):Hl(e)}const Hn={};function he(e,t,n){return Qr(e,t,n)}function Qr(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:s}=fe){var a;const l=br()===((a=Le)==null?void 0:a.scope)?Le:null;let c,u=!1,h=!1;if($e(e)?(c=()=>e.value,u=Rn(e)):qt(e)?(c=()=>e,o=!0):G(e)?(h=!0,u=e.some(g=>qt(g)||Rn(g)),c=()=>e.map(g=>{if($e(g))return g.value;if(qt(g))return At(g);if(le(g))return Ct(g,l,2)})):le(e)?t?c=()=>Ct(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return p&&p(),Ge(e,l,3,[m])}:c=it,t&&o){const g=c;c=()=>At(g())}let p,m=g=>{p=T.onStop=()=>{Ct(g,l,4)}},S;if(mn)if(m=it,t?n&&Ge(t,l,3,[c(),h?[]:void 0,m]):c(),r==="sync"){const g=Ha();S=g.__watcherHandles||(g.__watcherHandles=[])}else return it;let x=h?new Array(e.length).fill(Hn):Hn;const j=()=>{if(T.active)if(t){const g=T.run();(o||u||(h?g.some((P,$)=>on(P,x[$])):on(g,x)))&&(p&&p(),Ge(t,l,3,[g,x===Hn?void 0:h&&x[0]===Hn?[]:x,m]),x=g)}else T.run()};j.allowRecurse=!!t;let V;r==="sync"?V=j:r==="post"?V=()=>Ve(j,l&&l.suspense):(j.pre=!0,l&&(j.id=l.uid),V=()=>Mo(j));const T=new ko(c,V);t?n?j():x=T.run():r==="post"?Ve(T.run.bind(T),l&&l.suspense):T.run();const W=()=>{T.stop(),l&&l.scope&&fo(l.scope.effects,T)};return S&&S.push(W),W}function Jl(e,t,n){const o=this.proxy,r=Te(e)?e.includes(".")?Jr(o,e):()=>o[e]:e.bind(o,o);let i;le(t)?i=t:(i=t.handler,n=t);const s=Le;Gt(this);const a=Qr(r,i.bind(o),n);return s?Gt(s):Nt(),a}function Jr(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 At(e,t){if(!ye(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),$e(e))At(e.value,t);else if(G(e))for(let n=0;n<e.length;n++)At(e[n],t);else if(dr(e)||Kt(e))e.forEach(n=>{At(n,t)});else if(gr(e))for(const n in e)At(e[n],t);return e}function mt(e,t){const n=Ae;if(n===null)return e;const o=to(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,a,l,c=fe]=t[i];s&&(le(s)&&(s={mounted:s,updated:s}),s.deep&&At(a),r.push({dir:s,instance:o,value:a,oldValue:void 0,arg:l,modifiers:c}))}return e}function jt(e,t,n,o){const r=e.dirs,i=t&&t.dirs;for(let s=0;s<r.length;s++){const a=r[s];i&&(a.oldValue=i[s].value);let l=a.dir[o];l&&(Yt(),Ge(l,n,8,[e.el,a,e,t]),Xt())}}function Gl(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return tt(()=>{e.isMounted=!0}),Kn(()=>{e.isUnmounting=!0}),e}const et=[Function,Array],Gr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:et,onEnter:et,onAfterEnter:et,onEnterCancelled:et,onBeforeLeave:et,onLeave:et,onAfterLeave:et,onLeaveCancelled:et,onBeforeAppear:et,onAppear:et,onAfterAppear:et,onAppearCancelled:et},ea={name:"BaseTransition",props:Gr,setup(e,{slots:t}){const n=$i(),o=Gl();let r;return()=>{const i=t.default&&ni(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const x of i)if(x.type!==nt){s=x;break}}const a=pe(e),{mode:l}=a;if(o.isLeaving)return Ao(s);const c=ti(s);if(!c)return Ao(s);const u=zo(c,a,o,n);jo(c,u);const h=n.subTree,p=h&&ti(h);let m=!1;const{getTransitionKey:S}=c.type;if(S){const x=S();r===void 0?r=x:x!==r&&(r=x,m=!0)}if(p&&p.type!==nt&&(!Rt(c,p)||m)){const x=zo(p,a,o,n);if(jo(p,x),l==="out-in")return o.isLeaving=!0,x.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},Ao(s);l==="in-out"&&c.type!==nt&&(x.delayLeave=(j,V,T)=>{const W=ei(o,p);W[String(p.key)]=p,j._leaveCb=()=>{V(),j._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=T})}return s}}};function ei(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function zo(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:h,onLeave:p,onAfterLeave:m,onLeaveCancelled:S,onBeforeAppear:x,onAppear:j,onAfterAppear:V,onAppearCancelled:T}=t,W=String(e.key),g=ei(n,e),P=(k,D)=>{k&&Ge(k,o,9,D)},$=(k,D)=>{const ee=D[1];P(k,D),G(k)?k.every(ce=>ce.length<=1)&&ee():k.length<=1&&ee()},A={mode:i,persisted:s,beforeEnter(k){let D=a;if(!n.isMounted)if(r)D=x||a;else return;k._leaveCb&&k._leaveCb(!0);const ee=g[W];ee&&Rt(e,ee)&&ee.el._leaveCb&&ee.el._leaveCb(),P(D,[k])},enter(k){let D=l,ee=c,ce=u;if(!n.isMounted)if(r)D=j||l,ee=V||c,ce=T||u;else return;let y=!1;const _=k._enterCb=U=>{y||(y=!0,U?P(ce,[k]):P(ee,[k]),A.delayedLeave&&A.delayedLeave(),k._enterCb=void 0)};D?$(D,[k,_]):_()},leave(k,D){const ee=String(e.key);if(k._enterCb&&k._enterCb(!0),n.isUnmounting)return D();P(h,[k]);let ce=!1;const y=k._leaveCb=_=>{ce||(ce=!0,D(),_?P(S,[k]):P(m,[k]),k._leaveCb=void 0,g[ee]===e&&delete g[ee])};g[ee]=e,p?$(p,[k,y]):y()},clone(k){return zo(k,t,n,o)}};return A}function Ao(e){if(Wn(e))return e=St(e),e.children=null,e}function ti(e){return Wn(e)?e.children?e.children[0]:void 0:e}function jo(e,t){e.shapeFlag&6&&e.component?jo(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 ni(e,t=!1,n){let o=[],r=0;for(let i=0;i<e.length;i++){let s=e[i];const a=n==null?s.key:String(n)+String(s.key!=null?s.key:i);s.type===Ie?(s.patchFlag&128&&r++,o=o.concat(ni(s.children,t,a))):(t||s.type!==nt)&&o.push(a!=null?St(s,{key:a}):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 un=e=>!!e.type.__asyncLoader,Wn=e=>e.type.__isKeepAlive;function ta(e,t){oi(e,"a",t)}function na(e,t){oi(e,"da",t)}function oi(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(Un(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Wn(r.parent.vnode)&&oa(o,t,n,r),r=r.parent}}function oa(e,t,n,o){const r=Un(t,e,o,!0);ut(()=>{fo(o[t],r)},n)}function Un(e,t,n=Le,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Yt(),Gt(n);const a=Ge(t,n,e,s);return Nt(),Xt(),a});return o?r.unshift(i):r.push(i),i}}const vt=e=>(t,n=Le)=>(!mn||e==="sp")&&Un(e,(...o)=>t(...o),n),ra=vt("bm"),tt=vt("m"),ia=vt("bu"),sa=vt("u"),Kn=vt("bum"),ut=vt("um"),la=vt("sp"),aa=vt("rtg"),ca=vt("rtc");function ua(e,t=Le){Un("ec",e,t)}const ri="components",ii=Symbol.for("v-ndc");function fa(e){return Te(e)?da(ri,e,!1)||e:e||ii}function da(e,t,n=!0,o=!1){const r=Ae||Le;if(r){const i=r.type;if(e===ri){const a=Na(i,!1);if(a&&(a===t||a===Ue(t)||a===Pn(Ue(t))))return i}const s=si(r[e]||i[e],t)||si(r.appContext[e],t);return!s&&o?i:s}}function si(e,t){return e&&(e[t]||e[Ue(t)]||e[Pn(Ue(t))])}function fn(e,t,n,o){let r;const i=n&&n[o];if(G(e)||Te(e)){r=new Array(e.length);for(let s=0,a=e.length;s<a;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(ye(e))if(e[Symbol.iterator])r=Array.from(e,(s,a)=>t(s,a,void 0,i&&i[a]));else{const s=Object.keys(e);r=new Array(s.length);for(let a=0,l=s.length;a<l;a++){const c=s[a];r[a]=t(e[c],c,a,i&&i[a])}}else r=[];return n&&(n[o]=r),r}function li(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(G(o))for(let r=0;r<o.length;r++)e[o[r].name]=o[r].fn;else o&&(e[o.name]=o.key?(...r)=>{const i=o.fn(...r);return i&&(i.key=o.key),i}:o.fn)}return e}function Pe(e,t,n={},o,r){if(Ae.isCE||Ae.parent&&un(Ae.parent)&&Ae.parent.isCE)return t!=="default"&&(n.name=t),Z("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),L();const s=i&&ai(i(n)),a=ke(Ie,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&e._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function ai(e){return e.some(t=>Qn(t)?!(t.type===nt||t.type===Ie&&!ai(t.children)):!0)?e:null}const Bo=e=>e?Pi(e)?to(e)||e.proxy:Bo(e.parent):null,dn=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=>Bo(e.parent),$root:e=>Bo(e.root),$emit:e=>e.emit,$options:e=>No(e),$forceUpdate:e=>e.f||(e.f=()=>Mo(e.update)),$nextTick:e=>e.n||(e.n=gt.bind(e.proxy)),$watch:e=>Jl.bind(e)}),Do=(e,t)=>e!==fe&&!e.__isScriptSetup&&de(e,t),pa={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const m=s[t];if(m!==void 0)switch(m){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Do(o,t))return s[t]=1,o[t];if(r!==fe&&de(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&de(c,t))return s[t]=3,i[t];if(n!==fe&&de(n,t))return s[t]=4,n[t];Ro&&(s[t]=0)}}const u=dn[t];let h,p;if(u)return t==="$attrs"&&Fe(e,"get",t),u(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==fe&&de(n,t))return s[t]=4,n[t];if(p=l.config.globalProperties,de(p,t))return p[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return Do(r,t)?(r[t]=n,!0):o!==fe&&de(o,t)?(o[t]=n,!0):de(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 a;return!!n[s]||e!==fe&&de(e,s)||Do(t,s)||(a=i[0])&&de(a,s)||de(o,s)||de(dn,s)||de(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:de(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ci(e){return G(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ro=!0;function ha(e){const t=No(e),n=e.proxy,o=e.ctx;Ro=!1,t.beforeCreate&&ui(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:p,beforeUpdate:m,updated:S,activated:x,deactivated:j,beforeDestroy:V,beforeUnmount:T,destroyed:W,unmounted:g,render:P,renderTracked:$,renderTriggered:A,errorCaptured:k,serverPrefetch:D,expose:ee,inheritAttrs:ce,components:y,directives:_,filters:U}=t;if(c&&ga(c,o,null),s)for(const ne in s){const ie=s[ne];le(ie)&&(o[ne]=ie.bind(n))}if(r){const ne=r.call(n,n);ye(ne)&&(e.data=sn(ne))}if(Ro=!0,i)for(const ne in i){const ie=i[ne],B=le(ie)?ie.bind(n,n):le(ie.get)?ie.get.bind(n,n):it,H=!le(ie)&&le(ie.set)?ie.set.bind(n):it,X=se({get:B,set:H});Object.defineProperty(o,ne,{enumerable:!0,configurable:!0,get:()=>X.value,set:te=>X.value=te})}if(a)for(const ne in a)fi(a[ne],o,n,ne);if(l){const ne=le(l)?l.call(n):l;Reflect.ownKeys(ne).forEach(ie=>{qn(ie,ne[ie])})}u&&ui(u,e,"c");function ue(ne,ie){G(ie)?ie.forEach(B=>ne(B.bind(n))):ie&&ne(ie.bind(n))}if(ue(ra,h),ue(tt,p),ue(ia,m),ue(sa,S),ue(ta,x),ue(na,j),ue(ua,k),ue(ca,$),ue(aa,A),ue(Kn,T),ue(ut,g),ue(la,D),G(ee))if(ee.length){const ne=e.exposed||(e.exposed={});ee.forEach(ie=>{Object.defineProperty(ne,ie,{get:()=>n[ie],set:B=>n[ie]=B})})}else e.exposed||(e.exposed={});P&&e.render===it&&(e.render=P),ce!=null&&(e.inheritAttrs=ce),y&&(e.components=y),_&&(e.directives=_)}function ga(e,t,n=it){G(e)&&(e=Fo(e));for(const o in e){const r=e[o];let i;ye(r)?"default"in r?i=Bt(r.from||o,r.default,!0):i=Bt(r.from||o):i=Bt(r),$e(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function ui(e,t,n){Ge(G(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function fi(e,t,n,o){const r=o.includes(".")?Jr(n,o):()=>n[o];if(Te(e)){const i=t[e];le(i)&&he(r,i)}else if(le(e))he(r,e.bind(n));else if(ye(e))if(G(e))e.forEach(i=>fi(i,t,n,o));else{const i=le(e.handler)?e.handler.bind(n):t[e.handler];le(i)&&he(r,i,e)}}function No(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let l;return a?l=a:!r.length&&!n&&!o?l=t:(l={},r.length&&r.forEach(c=>Yn(l,c,s,!0)),Yn(l,t,s)),ye(t)&&i.set(t,l),l}function Yn(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Yn(e,i,n,!0),r&&r.forEach(s=>Yn(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const a=ma[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const ma={data:di,props:pi,emits:pi,methods:pn,computed:pn,beforeCreate:Re,created:Re,beforeMount:Re,mounted:Re,beforeUpdate:Re,updated:Re,beforeDestroy:Re,beforeUnmount:Re,destroyed:Re,unmounted:Re,activated:Re,deactivated:Re,errorCaptured:Re,serverPrefetch:Re,components:pn,directives:pn,watch:_a,provide:di,inject:va};function di(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 va(e,t){return pn(Fo(e),Fo(t))}function Fo(e){if(G(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Re(e,t){return e?[...new Set([].concat(e,t))]:t}function pn(e,t){return e?Se(Object.create(null),e,t):t}function pi(e,t){return e?G(e)&&G(t)?[...new Set([...e,...t])]:Se(Object.create(null),ci(e),ci(t??{})):t}function _a(e,t){if(!e)return t;if(!t)return e;const n=Se(Object.create(null),e);for(const o in t)n[o]=Re(e[o],t[o]);return n}function hi(){return{app:null,config:{isNativeTag:Xs,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ba=0;function ya(e,t){return function(o,r=null){le(o)||(o=Se({},o)),r!=null&&!ye(r)&&(r=null);const i=hi(),s=new Set;let a=!1;const l=i.app={_uid:ba++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:Wa,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&le(c.install)?(s.add(c),c.install(l,...u)):le(c)&&(s.add(c),c(l,...u))),l},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),l},component(c,u){return u?(i.components[c]=u,l):i.components[c]},directive(c,u){return u?(i.directives[c]=u,l):i.directives[c]},mount(c,u,h){if(!a){const p=Z(o,r);return p.appContext=i,u&&t?t(p,c):e(p,c,h),a=!0,l._container=c,c.__vue_app__=l,to(p.component)||p.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(c,u){return i.provides[c]=u,l},runWithContext(c){Xn=l;try{return c()}finally{Xn=null}}};return l}}let Xn=null;function qn(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 Bt(e,t,n=!1){const o=Le||Ae;if(o||Xn){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Xn._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 wa(e,t,n,o=!1){const r={},i={};Mn(i,Jn,1),e.propsDefaults=Object.create(null),gi(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:zl(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function xa(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,a=pe(r),[l]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let h=0;h<u.length;h++){let p=u[h];if(Fn(e.emitsOptions,p))continue;const m=t[p];if(l)if(de(i,p))m!==i[p]&&(i[p]=m,c=!0);else{const S=Ue(p);r[S]=Vo(l,a,S,m,e,!1)}else m!==i[p]&&(i[p]=m,c=!0)}}}else{gi(e,t,r,i)&&(c=!0);let u;for(const h in a)(!t||!de(t,h)&&((u=Qe(h))===h||!de(t,u)))&&(l?n&&(n[h]!==void 0||n[u]!==void 0)&&(r[h]=Vo(l,a,h,void 0,e,!0)):delete r[h]);if(i!==a)for(const h in i)(!t||!de(t,h))&&(delete i[h],c=!0)}c&&pt(e,"set","$attrs")}function gi(e,t,n,o){const[r,i]=e.propsOptions;let s=!1,a;if(t)for(let l in t){if($n(l))continue;const c=t[l];let u;r&&de(r,u=Ue(l))?!i||!i.includes(u)?n[u]=c:(a||(a={}))[u]=c:Fn(e.emitsOptions,l)||(!(l in o)||c!==o[l])&&(o[l]=c,s=!0)}if(i){const l=pe(n),c=a||fe;for(let u=0;u<i.length;u++){const h=i[u];n[h]=Vo(r,l,h,c[h],e,!de(c,h))}}return s}function Vo(e,t,n,o,r,i){const s=e[n];if(s!=null){const a=de(s,"default");if(a&&o===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&le(l)){const{propsDefaults:c}=r;n in c?o=c[n]:(Gt(r),o=c[n]=l.call(null,t),Nt())}else o=l}s[0]&&(i&&!a?o=!1:s[1]&&(o===""||o===Qe(n))&&(o=!0))}return o}function mi(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const i=e.props,s={},a=[];let l=!1;if(!le(e)){const u=h=>{l=!0;const[p,m]=mi(h,t,!0);Se(s,p),m&&a.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return ye(e)&&o.set(e,Ze),Ze;if(G(i))for(let u=0;u<i.length;u++){const h=Ue(i[u]);vi(h)&&(s[h]=fe)}else if(i)for(const u in i){const h=Ue(u);if(vi(h)){const p=i[u],m=s[h]=G(p)||le(p)?{type:p}:Se({},p);if(m){const S=yi(Boolean,m.type),x=yi(String,m.type);m[0]=S>-1,m[1]=x<0||S<x,(S>-1||de(m,"default"))&&a.push(h)}}}const c=[s,a];return ye(e)&&o.set(e,c),c}function vi(e){return e[0]!=="$"}function _i(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function bi(e,t){return _i(e)===_i(t)}function yi(e,t){return G(t)?t.findIndex(n=>bi(n,e)):le(t)&&bi(t,e)?0:-1}const wi=e=>e[0]==="_"||e==="$stable",Ho=e=>G(e)?e.map(ft):[ft(e)],ka=(e,t,n)=>{if(t._n)return t;const o=ae((...r)=>Ho(t(...r)),n);return o._c=!1,o},xi=(e,t,n)=>{const o=e._ctx;for(const r in e){if(wi(r))continue;const i=e[r];if(le(i))t[r]=ka(r,i,o);else if(i!=null){const s=Ho(i);t[r]=()=>s}}},ki=(e,t)=>{const n=Ho(t);e.slots.default=()=>n},Ca=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=pe(t),Mn(t,"_",n)):xi(t,e.slots={})}else e.slots={},t&&ki(e,t);Mn(e.slots,Jn,1)},Sa=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=fe;if(o.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(Se(r,t),!n&&a===1&&delete r._):(i=!t.$stable,xi(t,r)),s=t}else t&&(ki(e,t),s={default:1});if(i)for(const a in r)!wi(a)&&!(a in s)&&delete r[a]};function Wo(e,t,n,o,r=!1){if(G(e)){e.forEach((p,m)=>Wo(p,t&&(G(t)?t[m]:t),n,o,r));return}if(un(o)&&!r)return;const i=o.shapeFlag&4?to(o.component)||o.component.proxy:o.el,s=r?null:i,{i:a,r:l}=e,c=t&&t.r,u=a.refs===fe?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(Te(c)?(u[c]=null,de(h,c)&&(h[c]=null)):$e(c)&&(c.value=null)),le(l))Ct(l,a,12,[s,u]);else{const p=Te(l),m=$e(l);if(p||m){const S=()=>{if(e.f){const x=p?de(h,l)?h[l]:u[l]:l.value;r?G(x)&&fo(x,i):G(x)?x.includes(i)||x.push(i):p?(u[l]=[i],de(h,l)&&(h[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value))}else p?(u[l]=s,de(h,l)&&(h[l]=s)):m&&(l.value=s,e.k&&(u[e.k]=s))};s?(S.id=-1,Ve(S,n)):S()}}}const Ve=Ql;function Ia(e){return Ta(e)}function Ta(e,t){const n=_o();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:s,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:p,setScopeId:m=it,insertStaticContent:S}=e,x=(f,d,b,I=null,C=null,M=null,R=!1,O=null,z=!!d.dynamicChildren)=>{if(f===d)return;f&&!Rt(f,d)&&(I=xe(f),te(f,C,M,!0),f=null),d.patchFlag===-2&&(z=!1,d.dynamicChildren=null);const{type:E,ref:v,shapeFlag:w}=d;switch(E){case Zn:j(f,d,b,I);break;case nt:V(f,d,b,I);break;case Uo:f==null&&T(d,b,I,R);break;case Ie:y(f,d,b,I,C,M,R,O,z);break;default:w&1?P(f,d,b,I,C,M,R,O,z):w&6?_(f,d,b,I,C,M,R,O,z):(w&64||w&128)&&E.process(f,d,b,I,C,M,R,O,z,Be)}v!=null&&C&&Wo(v,f&&f.ref,M,d||f,!d)},j=(f,d,b,I)=>{if(f==null)o(d.el=a(d.children),b,I);else{const C=d.el=f.el;d.children!==f.children&&c(C,d.children)}},V=(f,d,b,I)=>{f==null?o(d.el=l(d.children||""),b,I):d.el=f.el},T=(f,d,b,I)=>{[f.el,f.anchor]=S(f.children,d,b,I,f.el,f.anchor)},W=({el:f,anchor:d},b,I)=>{let C;for(;f&&f!==d;)C=p(f),o(f,b,I),f=C;o(d,b,I)},g=({el:f,anchor:d})=>{let b;for(;f&&f!==d;)b=p(f),r(f),f=b;r(d)},P=(f,d,b,I,C,M,R,O,z)=>{R=R||d.type==="svg",f==null?$(d,b,I,C,M,R,O,z):D(f,d,C,M,R,O,z)},$=(f,d,b,I,C,M,R,O)=>{let z,E;const{type:v,props:w,shapeFlag:F,transition:Q,dirs:re}=f;if(z=f.el=s(f.type,M,w&&w.is,w),F&8?u(z,f.children):F&16&&k(f.children,z,null,I,C,M&&v!=="foreignObject",R,O),re&&jt(f,null,I,"created"),A(z,f,f.scopeId,R,I),w){for(const me in w)me!=="value"&&!$n(me)&&i(z,me,null,w[me],M,f.children,I,C,oe);"value"in w&&i(z,"value",null,w.value),(E=w.onVnodeBeforeMount)&&dt(E,I,f)}re&&jt(f,null,I,"beforeMount");const be=(!C||C&&!C.pendingBranch)&&Q&&!Q.persisted;be&&Q.beforeEnter(z),o(z,d,b),((E=w&&w.onVnodeMounted)||be||re)&&Ve(()=>{E&&dt(E,I,f),be&&Q.enter(z),re&&jt(f,null,I,"mounted")},C)},A=(f,d,b,I,C)=>{if(b&&m(f,b),I)for(let M=0;M<I.length;M++)m(f,I[M]);if(C){let M=C.subTree;if(d===M){const R=C.vnode;A(f,R,R.scopeId,R.slotScopeIds,C.parent)}}},k=(f,d,b,I,C,M,R,O,z=0)=>{for(let E=z;E<f.length;E++){const v=f[E]=O?Tt(f[E]):ft(f[E]);x(null,v,d,b,I,C,M,R,O)}},D=(f,d,b,I,C,M,R)=>{const O=d.el=f.el;let{patchFlag:z,dynamicChildren:E,dirs:v}=d;z|=f.patchFlag&16;const w=f.props||fe,F=d.props||fe;let Q;b&&Dt(b,!1),(Q=F.onVnodeBeforeUpdate)&&dt(Q,b,d,f),v&&jt(d,f,b,"beforeUpdate"),b&&Dt(b,!0);const re=C&&d.type!=="foreignObject";if(E?ee(f.dynamicChildren,E,O,b,I,re,M):R||ie(f,d,O,null,b,I,re,M,!1),z>0){if(z&16)ce(O,d,w,F,b,I,C);else if(z&2&&w.class!==F.class&&i(O,"class",null,F.class,C),z&4&&i(O,"style",w.style,F.style,C),z&8){const be=d.dynamicProps;for(let me=0;me<be.length;me++){const Ce=be[me],qe=w[Ce],He=F[Ce];(He!==qe||Ce==="value")&&i(O,Ce,qe,He,C,f.children,b,I,oe)}}z&1&&f.children!==d.children&&u(O,d.children)}else!R&&E==null&&ce(O,d,w,F,b,I,C);((Q=F.onVnodeUpdated)||v)&&Ve(()=>{Q&&dt(Q,b,d,f),v&&jt(d,f,b,"updated")},I)},ee=(f,d,b,I,C,M,R)=>{for(let O=0;O<d.length;O++){const z=f[O],E=d[O],v=z.el&&(z.type===Ie||!Rt(z,E)||z.shapeFlag&70)?h(z.el):b;x(z,E,v,null,I,C,M,R,!0)}},ce=(f,d,b,I,C,M,R)=>{if(b!==I){if(b!==fe)for(const O in b)!$n(O)&&!(O in I)&&i(f,O,b[O],null,R,d.children,C,M,oe);for(const O in I){if($n(O))continue;const z=I[O],E=b[O];z!==E&&O!=="value"&&i(f,O,E,z,R,d.children,C,M,oe)}"value"in I&&i(f,"value",b.value,I.value)}},y=(f,d,b,I,C,M,R,O,z)=>{const E=d.el=f?f.el:a(""),v=d.anchor=f?f.anchor:a("");let{patchFlag:w,dynamicChildren:F,slotScopeIds:Q}=d;Q&&(O=O?O.concat(Q):Q),f==null?(o(E,b,I),o(v,b,I),k(d.children,b,v,C,M,R,O,z)):w>0&&w&64&&F&&f.dynamicChildren?(ee(f.dynamicChildren,F,b,C,M,R,O),(d.key!=null||C&&d===C.subTree)&&Ci(f,d,!0)):ie(f,d,b,v,C,M,R,O,z)},_=(f,d,b,I,C,M,R,O,z)=>{d.slotScopeIds=O,f==null?d.shapeFlag&512?C.ctx.activate(d,b,I,R,z):U(d,b,I,C,M,R,z):N(f,d,z)},U=(f,d,b,I,C,M,R)=>{const O=f.component=Aa(f,I,C);if(Wn(f)&&(O.ctx.renderer=Be),ja(O),O.asyncDep){if(C&&C.registerDep(O,ue),!f.el){const z=O.subTree=Z(nt);V(null,z,d,b)}return}ue(O,f,d,b,C,M,R)},N=(f,d,b)=>{const I=d.component=f.component;if(Xl(f,d,b))if(I.asyncDep&&!I.asyncResolved){ne(I,d,b);return}else I.next=d,Vl(I.update),I.update();else d.el=f.el,I.vnode=d},ue=(f,d,b,I,C,M,R)=>{const O=()=>{if(f.isMounted){let{next:v,bu:w,u:F,parent:Q,vnode:re}=f,be=v,me;Dt(f,!1),v?(v.el=re.el,ne(f,v,R)):v=re,w&&On(w),(me=v.props&&v.props.onVnodeBeforeUpdate)&&dt(me,Q,v,re),Dt(f,!0);const Ce=Lo(f),qe=f.subTree;f.subTree=Ce,x(qe,Ce,h(qe.el),xe(qe),f,C,M),v.el=Ce.el,be===null&&ql(f,Ce.el),F&&Ve(F,C),(me=v.props&&v.props.onVnodeUpdated)&&Ve(()=>dt(me,Q,v,re),C)}else{let v;const{el:w,props:F}=d,{bm:Q,m:re,parent:be}=f,me=un(d);if(Dt(f,!1),Q&&On(Q),!me&&(v=F&&F.onVnodeBeforeMount)&&dt(v,be,d),Dt(f,!0),w&&Sn){const Ce=()=>{f.subTree=Lo(f),Sn(w,f.subTree,f,C,null)};me?d.type.__asyncLoader().then(()=>!f.isUnmounted&&Ce()):Ce()}else{const Ce=f.subTree=Lo(f);x(null,Ce,b,I,f,C,M),d.el=Ce.el}if(re&&Ve(re,C),!me&&(v=F&&F.onVnodeMounted)){const Ce=d;Ve(()=>dt(v,be,Ce),C)}(d.shapeFlag&256||be&&un(be.vnode)&&be.vnode.shapeFlag&256)&&f.a&&Ve(f.a,C),f.isMounted=!0,d=b=I=null}},z=f.effect=new ko(O,()=>Mo(E),f.scope),E=f.update=()=>z.run();E.id=f.uid,Dt(f,!0),E()},ne=(f,d,b)=>{d.component=f;const I=f.vnode.props;f.vnode=d,f.next=null,xa(f,d.props,I,b),Sa(f,d.children,b),Yt(),Ur(),Xt()},ie=(f,d,b,I,C,M,R,O,z=!1)=>{const E=f&&f.children,v=f?f.shapeFlag:0,w=d.children,{patchFlag:F,shapeFlag:Q}=d;if(F>0){if(F&128){H(E,w,b,I,C,M,R,O,z);return}else if(F&256){B(E,w,b,I,C,M,R,O,z);return}}Q&8?(v&16&&oe(E,C,M),w!==E&&u(b,w)):v&16?Q&16?H(E,w,b,I,C,M,R,O,z):oe(E,C,M,!0):(v&8&&u(b,""),Q&16&&k(w,b,I,C,M,R,O,z))},B=(f,d,b,I,C,M,R,O,z)=>{f=f||Ze,d=d||Ze;const E=f.length,v=d.length,w=Math.min(E,v);let F;for(F=0;F<w;F++){const Q=d[F]=z?Tt(d[F]):ft(d[F]);x(f[F],Q,b,null,C,M,R,O,z)}E>v?oe(f,C,M,!0,!1,w):k(d,b,I,C,M,R,O,z,w)},H=(f,d,b,I,C,M,R,O,z)=>{let E=0;const v=d.length;let w=f.length-1,F=v-1;for(;E<=w&&E<=F;){const Q=f[E],re=d[E]=z?Tt(d[E]):ft(d[E]);if(Rt(Q,re))x(Q,re,b,null,C,M,R,O,z);else break;E++}for(;E<=w&&E<=F;){const Q=f[w],re=d[F]=z?Tt(d[F]):ft(d[F]);if(Rt(Q,re))x(Q,re,b,null,C,M,R,O,z);else break;w--,F--}if(E>w){if(E<=F){const Q=F+1,re=Q<v?d[Q].el:I;for(;E<=F;)x(null,d[E]=z?Tt(d[E]):ft(d[E]),b,re,C,M,R,O,z),E++}}else if(E>F)for(;E<=w;)te(f[E],C,M,!0),E++;else{const Q=E,re=E,be=new Map;for(E=re;E<=F;E++){const Ne=d[E]=z?Tt(d[E]):ft(d[E]);Ne.key!=null&&be.set(Ne.key,E)}let me,Ce=0;const qe=F-re+1;let He=!1,lo=0;const Ut=new Array(qe);for(E=0;E<qe;E++)Ut[E]=0;for(E=Q;E<=w;E++){const Ne=f[E];if(Ce>=qe){te(Ne,C,M,!0);continue}let rt;if(Ne.key!=null)rt=be.get(Ne.key);else for(me=re;me<=F;me++)if(Ut[me-re]===0&&Rt(Ne,d[me])){rt=me;break}rt===void 0?te(Ne,C,M,!0):(Ut[rt-re]=E+1,rt>=lo?lo=rt:He=!0,x(Ne,d[rt],b,null,C,M,R,O,z),Ce++)}const ao=He?$a(Ut):Ze;for(me=ao.length-1,E=qe-1;E>=0;E--){const Ne=re+E,rt=d[Ne],co=Ne+1<v?d[Ne+1].el:I;Ut[E]===0?x(null,rt,b,co,C,M,R,O,z):He&&(me<0||E!==ao[me]?X(rt,b,co,2):me--)}}},X=(f,d,b,I,C=null)=>{const{el:M,type:R,transition:O,children:z,shapeFlag:E}=f;if(E&6){X(f.component.subTree,d,b,I);return}if(E&128){f.suspense.move(d,b,I);return}if(E&64){R.move(f,d,b,Be);return}if(R===Ie){o(M,d,b);for(let w=0;w<z.length;w++)X(z[w],d,b,I);o(f.anchor,d,b);return}if(R===Uo){W(f,d,b);return}if(I!==2&&E&1&&O)if(I===0)O.beforeEnter(M),o(M,d,b),Ve(()=>O.enter(M),C);else{const{leave:w,delayLeave:F,afterLeave:Q}=O,re=()=>o(M,d,b),be=()=>{w(M,()=>{re(),Q&&Q()})};F?F(M,re,be):be()}else o(M,d,b)},te=(f,d,b,I=!1,C=!1)=>{const{type:M,props:R,ref:O,children:z,dynamicChildren:E,shapeFlag:v,patchFlag:w,dirs:F}=f;if(O!=null&&Wo(O,null,b,f,!0),v&256){d.ctx.deactivate(f);return}const Q=v&1&&F,re=!un(f);let be;if(re&&(be=R&&R.onVnodeBeforeUnmount)&&dt(be,d,f),v&6)ge(f.component,b,I);else{if(v&128){f.suspense.unmount(b,I);return}Q&&jt(f,null,d,"beforeUnmount"),v&64?f.type.remove(f,d,b,C,Be,I):E&&(M!==Ie||w>0&&w&64)?oe(E,d,b,!1,!0):(M===Ie&&w&384||!C&&v&16)&&oe(z,d,b),I&&_e(f)}(re&&(be=R&&R.onVnodeUnmounted)||Q)&&Ve(()=>{be&&dt(be,d,f),Q&&jt(f,null,d,"unmounted")},b)},_e=f=>{const{type:d,el:b,anchor:I,transition:C}=f;if(d===Ie){ve(b,I);return}if(d===Uo){g(f);return}const M=()=>{r(b),C&&!C.persisted&&C.afterLeave&&C.afterLeave()};if(f.shapeFlag&1&&C&&!C.persisted){const{leave:R,delayLeave:O}=C,z=()=>R(b,M);O?O(f.el,M,z):z()}else M()},ve=(f,d)=>{let b;for(;f!==d;)b=p(f),r(f),f=b;r(d)},ge=(f,d,b)=>{const{bum:I,scope:C,update:M,subTree:R,um:O}=f;I&&On(I),C.stop(),M&&(M.active=!1,te(R,f,d,b)),O&&Ve(O,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())},oe=(f,d,b,I=!1,C=!1,M=0)=>{for(let R=M;R<f.length;R++)te(f[R],d,b,I,C)},xe=f=>f.shapeFlag&6?xe(f.component.subTree):f.shapeFlag&128?f.suspense.next():p(f.anchor||f.el),ze=(f,d,b)=>{f==null?d._vnode&&te(d._vnode,null,null,!0):x(d._vnode||null,f,d,null,null,null,b),Ur(),Kr(),d._vnode=f},Be={p:x,um:te,m:X,r:_e,mt:U,mc:k,pc:ie,pbc:ee,n:xe,o:e};let Mt,Sn;return t&&([Mt,Sn]=t(Be)),{render:ze,hydrate:Mt,createApp:ya(ze,Mt)}}function Dt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ci(e,t,n=!1){const o=e.children,r=t.children;if(G(o)&&G(r))for(let i=0;i<o.length;i++){const s=o[i];let a=r[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[i]=Tt(r[i]),a.el=s.el),n||Ci(s,a)),a.type===Zn&&(a.el=s.el)}}function $a(e){const t=e.slice(),n=[0];let o,r,i,s,a;const l=e.length;for(o=0;o<l;o++){const c=e[o];if(c!==0){if(r=n[n.length-1],e[r]<c){t[o]=r,n.push(o);continue}for(i=0,s=n.length-1;i<s;)a=i+s>>1,e[n[a]]<c?i=a+1:s=a;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 Ea=e=>e.__isTeleport,Ie=Symbol.for("v-fgt"),Zn=Symbol.for("v-txt"),nt=Symbol.for("v-cmt"),Uo=Symbol.for("v-stc"),hn=[];let lt=null;function L(e=!1){hn.push(lt=e?null:[])}function Pa(){hn.pop(),lt=hn[hn.length-1]||null}let gn=1;function Si(e){gn+=e}function Ii(e){return e.dynamicChildren=gn>0?lt||Ze:null,Pa(),gn>0&<&<.push(e),e}function Y(e,t,n,o,r,i){return Ii(K(e,t,n,o,r,i,!0))}function ke(e,t,n,o,r){return Ii(Z(e,t,n,o,r,!0))}function Qn(e){return e?e.__v_isVNode===!0:!1}function Rt(e,t){return e.type===t.type&&e.key===t.key}const Jn="__vInternal",Ti=({key:e})=>e??null,Gn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Te(e)||$e(e)||le(e)?{i:Ae,r:e,k:t,f:!!n}:e:null);function K(e,t=null,n=null,o=0,r=null,i=e===Ie?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ti(t),ref:t&&Gn(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:Ae};return a?(Ko(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Te(n)?8:16),gn>0&&!s&<&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&<.push(l),l}const Z=Oa;function Oa(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===ii)&&(e=nt),Qn(e)){const a=St(e,t,!0);return n&&Ko(a,n),gn>0&&!i&<&&(a.shapeFlag&6?lt[lt.indexOf(e)]=a:lt.push(a)),a.patchFlag|=-2,a}if(Fa(e)&&(e=e.__vccOpts),t){t=Ma(t);let{class:a,style:l}=t;a&&!Te(a)&&(t.class=Oe(a)),ye(l)&&(Dr(l)&&!G(l)&&(l=Se({},l)),t.style=De(l))}const s=Te(e)?1:Zl(e)?128:Ea(e)?64:ye(e)?4:le(e)?2:0;return K(e,t,n,o,r,s,i,!0)}function Ma(e){return e?Dr(e)||Jn in e?Se({},e):e:null}function St(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,a=t?eo(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Ti(a),ref:t&&t.ref?n&&r?G(r)?r.concat(Gn(t)):[r,Gn(t)]:Gn(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&&St(e.ssContent),ssFallback:e.ssFallback&&St(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function It(e=" ",t=0){return Z(Zn,null,e,t)}function Me(e="",t=!1){return t?(L(),ke(nt,null,e)):Z(nt,null,e)}function ft(e){return e==null||typeof e=="boolean"?Z(nt):G(e)?Z(Ie,null,e.slice()):typeof e=="object"?Tt(e):Z(Zn,null,String(e))}function Tt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:St(e)}function Ko(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(G(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Ko(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Jn in t)?t._ctx=Ae:r===3&&Ae&&(Ae.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else le(t)?(t={default:t,_ctx:Ae},n=32):(t=String(t),o&64?(n=16,t=[It(t)]):n=8);e.children=t,e.shapeFlag|=n}function eo(...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=De([t.style,o.style]);else if(In(r)){const i=t[r],s=o[r];s&&i!==s&&!(G(i)&&i.includes(s))&&(t[r]=i?[].concat(i,s):s)}else r!==""&&(t[r]=o[r])}return t}function dt(e,t,n,o=null){Ge(e,t,7,[n,o])}const La=hi();let za=0;function Aa(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||La,i={uid:za++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new il(!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:mi(o,r),emitsOptions:Xr(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=Ul.bind(null,i),e.ce&&e.ce(i),i}let Le=null;const $i=()=>Le||Ae;let Yo,Jt,Ei="__VUE_INSTANCE_SETTERS__";(Jt=_o()[Ei])||(Jt=_o()[Ei]=[]),Jt.push(e=>Le=e),Yo=e=>{Jt.length>1?Jt.forEach(t=>t(e)):Jt[0](e)};const Gt=e=>{Yo(e),e.scope.on()},Nt=()=>{Le&&Le.scope.off(),Yo(null)};function Pi(e){return e.vnode.shapeFlag&4}let mn=!1;function ja(e,t=!1){mn=t;const{props:n,children:o}=e.vnode,r=Pi(e);wa(e,n,r,t),Ca(e,o);const i=r?Ba(e,t):void 0;return mn=!1,i}function Ba(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Rr(new Proxy(e.ctx,pa));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?Ra(e):null;Gt(e),Yt();const i=Ct(o,e,0,[e.props,r]);if(Xt(),Nt(),pr(i)){if(i.then(Nt,Nt),t)return i.then(s=>{Oi(e,s,t)}).catch(s=>{Nn(s,e,0)});e.asyncDep=i}else Oi(e,i,t)}else Li(e,t)}function Oi(e,t,n){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ye(t)&&(e.setupState=Vr(t)),Li(e,n)}let Mi;function Li(e,t,n){const o=e.type;if(!e.render){if(!t&&Mi&&!o.render){const r=o.template||No(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:l}=o,c=Se(Se({isCustomElement:i,delimiters:a},s),l);o.render=Mi(r,c)}}e.render=o.render||it}Gt(e),Yt(),ha(e),Xt(),Nt()}function Da(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Fe(e,"get","$attrs"),t[n]}}))}function Ra(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Da(e)},slots:e.slots,emit:e.emit,expose:t}}function to(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Vr(Rr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in dn)return dn[n](e)},has(t,n){return n in t||n in dn}}))}function Na(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}function Fa(e){return le(e)&&"__vccOpts"in e}const se=(e,t)=>Rl(e,t,mn);function zi(e,t,n){const o=arguments.length;return o===2?ye(t)&&!G(t)?Qn(t)?Z(e,null,[t]):Z(e,t):Z(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Qn(n)&&(n=[n]),Z(e,t,n))}const Va=Symbol.for("v-scx"),Ha=()=>Bt(Va),Wa="3.3.4",Ua="http://www.w3.org/2000/svg",Ft=typeof document<"u"?document:null,Ai=Ft&&Ft.createElement("template"),Ka={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?Ft.createElementNS(Ua,e):Ft.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Ft.createTextNode(e),createComment:e=>Ft.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ft.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{Ai.innerHTML=o?`<svg>${e}</svg>`:e;const a=Ai.content;if(o){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Ya(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 Xa(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&&Xo(o,i,"");for(const i in n)Xo(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 ji=/\s*!important$/;function Xo(e,t,n){if(G(n))n.forEach(o=>Xo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=qa(e,t);ji.test(n)?e.setProperty(Qe(o),n.replace(ji,""),"important"):e[o]=n}}const Bi=["Webkit","Moz","ms"],qo={};function qa(e,t){const n=qo[t];if(n)return n;let o=Ue(t);if(o!=="filter"&&o in e)return qo[t]=o;o=Pn(o);for(let r=0;r<Bi.length;r++){const i=Bi[r]+o;if(i in e)return qo[t]=i}return t}const Di="http://www.w3.org/1999/xlink";function Za(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Di,t.slice(6,t.length)):e.setAttributeNS(Di,t,n);else{const i=rl(t);n==null||i&&!vr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function Qa(e,t,n,o,r,i,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,r,i),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){e._value=n;const c=a==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=vr(n):n==null&&c==="string"?(n="",l=!0):c==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function en(e,t,n,o){e.addEventListener(t,n,o)}function Ja(e,t,n,o){e.removeEventListener(t,n,o)}function Ga(e,t,n,o,r=null){const i=e._vei||(e._vei={}),s=i[t];if(o&&s)s.value=o;else{const[a,l]=ec(t);if(o){const c=i[t]=oc(o,r);en(e,a,c,l)}else s&&(Ja(e,a,s,l),i[t]=void 0)}}const Ri=/(?:Once|Passive|Capture)$/;function ec(e){let t;if(Ri.test(e)){t={};let o;for(;o=e.match(Ri);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Qe(e.slice(2)),t]}let Zo=0;const tc=Promise.resolve(),nc=()=>Zo||(tc.then(()=>Zo=0),Zo=Date.now());function oc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Ge(rc(o,n.value),t,5,[o])};return n.value=e,n.attached=nc(),n}function rc(e,t){if(G(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const Ni=/^on[a-z]/,ic=(e,t,n,o,r=!1,i,s,a,l)=>{t==="class"?Ya(e,o,r):t==="style"?Xa(e,n,o):In(t)?uo(t)||Ga(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):sc(e,t,o,r))?Qa(e,t,o,i,s,a,l):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Za(e,t,o,r))};function sc(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Ni.test(t)&&le(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ni.test(t)&&Te(n)?!1:t in e}function lc(e,t){const n=Ee(e);class o extends Qo{constructor(i){super(n,i,t)}}return o.def=n,o}const ac=typeof HTMLElement<"u"?HTMLElement:class{};class Qo extends ac{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||(Ji(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 a;if(i&&!G(i))for(const l in i){const c=i[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=vo(this._props[l])),(a||(a=Object.create(null)))[Ue(l)]=!0)}this._numberProps=a,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=G(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(Ue))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i)}})}_setAttr(t){let n=this.getAttribute(t);const o=Ue(t);this._numberProps&&this._numberProps[o]&&(n=vo(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(Qe(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Qe(t),n+""):n||this.removeAttribute(Qe(t))))}_update(){Ji(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Z(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),Qe(i)!==i&&o(Qe(i),s)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Qo){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 $t="transition",vn="animation",tn=(e,{slots:t})=>zi(ea,cc(e),t);tn.displayName="Transition";const Fi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};tn.props=Se({},Gr,Fi);const Vt=(e,t=[])=>{G(e)?e.forEach(n=>n(...t)):e&&e(...t)},Vi=e=>e?G(e)?e.some(t=>t.length>1):e.length>1:!1;function cc(e){const t={};for(const y in e)y in Fi||(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:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=s,appearToClass:u=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,S=uc(r),x=S&&S[0],j=S&&S[1],{onBeforeEnter:V,onEnter:T,onEnterCancelled:W,onLeave:g,onLeaveCancelled:P,onBeforeAppear:$=V,onAppear:A=T,onAppearCancelled:k=W}=t,D=(y,_,U)=>{Ht(y,_?u:a),Ht(y,_?c:s),U&&U()},ee=(y,_)=>{y._isLeaving=!1,Ht(y,h),Ht(y,m),Ht(y,p),_&&_()},ce=y=>(_,U)=>{const N=y?A:T,ue=()=>D(_,y,U);Vt(N,[_,ue]),Hi(()=>{Ht(_,y?l:i),Et(_,y?u:a),Vi(N)||Wi(_,o,x,ue)})};return Se(t,{onBeforeEnter(y){Vt(V,[y]),Et(y,i),Et(y,s)},onBeforeAppear(y){Vt($,[y]),Et(y,l),Et(y,c)},onEnter:ce(!1),onAppear:ce(!0),onLeave(y,_){y._isLeaving=!0;const U=()=>ee(y,_);Et(y,h),pc(),Et(y,p),Hi(()=>{y._isLeaving&&(Ht(y,h),Et(y,m),Vi(g)||Wi(y,o,j,U))}),Vt(g,[y,U])},onEnterCancelled(y){D(y,!1),Vt(W,[y])},onAppearCancelled(y){D(y,!0),Vt(k,[y])},onLeaveCancelled(y){ee(y),Vt(P,[y])}})}function uc(e){if(e==null)return null;if(ye(e))return[Jo(e.enter),Jo(e.leave)];{const t=Jo(e);return[t,t]}}function Jo(e){return vo(e)}function Et(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Ht(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 Hi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let fc=0;function Wi(e,t,n,o){const r=e._endId=++fc,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:a,propCount:l}=dc(e,t);if(!s)return o();const c=s+"end";let u=0;const h=()=>{e.removeEventListener(c,p),i()},p=m=>{m.target===e&&++u>=l&&h()};setTimeout(()=>{u<l&&h()},a+1),e.addEventListener(c,p)}function dc(e,t){const n=window.getComputedStyle(e),o=S=>(n[S]||"").split(", "),r=o(`${$t}Delay`),i=o(`${$t}Duration`),s=Ui(r,i),a=o(`${vn}Delay`),l=o(`${vn}Duration`),c=Ui(a,l);let u=null,h=0,p=0;t===$t?s>0&&(u=$t,h=s,p=i.length):t===vn?c>0&&(u=vn,h=c,p=l.length):(h=Math.max(s,c),u=h>0?s>c?$t:vn:null,p=u?u===$t?i.length:l.length:0);const m=u===$t&&/\b(transform|all)(,|$)/.test(o(`${$t}Property`).toString());return{type:u,timeout:h,propCount:p,hasTransform:m}}function Ui(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Ki(n)+Ki(e[o])))}function Ki(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function pc(){return document.body.offsetHeight}const Yi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return G(t)?n=>On(t,n):t};function hc(e){e.target.composing=!0}function Xi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const gc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=Yi(r);const i=o||r.props&&r.props.type==="number";en(e,t?"change":"input",s=>{if(s.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=mo(a)),e._assign(a)}),n&&en(e,"change",()=>{e.value=e.value.trim()}),t||(en(e,"compositionstart",hc),en(e,"compositionend",Xi),en(e,"change",Xi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e._assign=Yi(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&mo(e.value)===t))return;const s=t??"";e.value!==s&&(e.value=s)}},mc=["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)=>mc.some(n=>e[`${n}Key`]&&!t.includes(n))},ot=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const i=vc[t[r]];if(i&&i(n,t))return}return e(n,...o)},_c={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=Qe(n.key);if(t.some(r=>r===o||_c[r]===o))return e(n)},Zi={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):_n(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),_n(e,!0),o.enter(e)):o.leave(e,()=>{_n(e,!1)}):_n(e,t))},beforeUnmount(e,{value:t}){_n(e,t)}};function _n(e,t){e.style.display=t?e._vod:"none"}const bc=Se({patchProp:ic},Ka);let Qi;function yc(){return Qi||(Qi=Ia(bc))}const Ji=(...e)=>{yc().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}}
|
|
2
|
+
`,we=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},xc={},kc={class:"loading-indicator"};function Cc(e,t){return L(),Y("div",kc)}const Go=we(xc,[["render",Cc],["styles",[wc]]]),Sc=Object.freeze(Object.defineProperty({__proto__:null,default:Go},Symbol.toStringTag,{value:"Module"})),Ic={key:0,class:"fixed inset-0 h-[101%] overflow-auto scrollbar-none flex justify-center items-center z-10 bg-black"},Tc={class:"flex justify-between items-end"},$c={class:"inline-block children-pointer-events-auto w-1/3"},Ec={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Pc={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},Oc={class:"inline-block z-20 relative"},Gi=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=Go;return L(),Y("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?(L(),Y("div",Ic,[Z(o)])):Me("",!0),Pe(t.$slots,"default"),K("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}])},[K("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:De({paddingTop:`${t.spaceTop||0}px`})},[Pe(t.$slots,"back"),Pe(t.$slots,"exit"),Pe(t.$slots,"chapter-nav")],4),K("div",Tc,[K("div",$c,[Pe(t.$slots,"page-nav")]),K("div",Ec,[Pe(t.$slots,"reset-zoom")]),K("div",Pc,[Pe(t.$slots,"entry"),K("div",Oc,[Pe(t.$slots,"settings")]),Pe(t.$slots,"full-screen"),Pe(t.$slots,"play")])]),K("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)}}}),Mc=Object.freeze(Object.defineProperty({__proto__:null,default:Gi},Symbol.toStringTag,{value:"Module"})),Lc={},zc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Ac=[K("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[K("circle",{cx:"14",cy:"14",r:"12"}),K("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function jc(e,t){return L(),Y("svg",zc,Ac)}const es=we(Lc,[["render",jc]]),Bc=Object.freeze(Object.defineProperty({__proto__:null,default:es},Symbol.toStringTag,{value:"Module"})),Dc={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"},Rc={class:"block w-4 h-4"},Nc={class:"w-12"},ts=Ee({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=es;return t.zoom!==1?(L(),Y("button",Dc,[K("div",Rc,[Z(o)]),K("div",Nc,Je(Math.ceil(t.zoom*100))+"%",1)])):Me("",!0)}}}),Fc=Object.freeze(Object.defineProperty({__proto__:null,default:ts},Symbol.toStringTag,{value:"Module"})),Vc={},Hc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Wc=[K("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 Uc(e,t){return L(),Y("svg",Hc,Wc)}const er=we(Vc,[["render",Uc]]),Kc=Object.freeze(Object.defineProperty({__proto__:null,default:er},Symbol.toStringTag,{value:"Module"})),Yc={},Xc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},qc=[K("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),K("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 Zc(e,t){return L(),Y("svg",Xc,qc)}const tr=we(Yc,[["render",Zc]]),Qc=Object.freeze(Object.defineProperty({__proto__:null,default:tr},Symbol.toStringTag,{value:"Module"}));function Jc({touchDevice:e}){const t=q(!1);let n=0;return qn("busy:touchDevice",e),qn("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function nr(){const e=Bt("busy:touchDevice"),t=Bt("setBusyState");let n=!1;return ut(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const Gc=(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(l,20);a();function a(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function l(){const c=+n||50;r<=c?(r++,i-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${i}`):(o.remove(),clearInterval(s))}},nn={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>Gc(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},eu={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"},no=Ee({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=nr();let r=!1;function i(){r||(r=!0,o(!0,{desktopOnly:!0}))}function s(){r&&(r=!1,o(!1,{desktopOnly:!0}))}function a(l){n.disabled?l.preventDefault():t("click")}return(l,c)=>mt((L(),ke(fa(l.href?"a":"button"),eo(l.href?{href:l.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full flex-shrink-0",{"cursor-default text-stone-400 hover:text-stone-400":l.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!l.disabled,"bg-black bg-opacity-50":!l.transparent}],onClick:ot(a,["stop"]),onMouseenter:i,onMouseleave:s}),{default:ae(()=>[K("div",eu,[Pe(l.$slots,"default")])]),_:3},16,["class","onClick"])),[[J(nn),l.disabled?0:15]])}}),tu=Object.freeze(Object.defineProperty({__proto__:null,default:no},Symbol.toStringTag,{value:"Module"})),nu={},ou={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ru=[K("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 iu(e,t){return L(),Y("svg",ou,ru)}const ns=we(nu,[["render",iu]]),su=Object.freeze(Object.defineProperty({__proto__:null,default:ns},Symbol.toStringTag,{value:"Module"}));class lu{constructor(){Ys(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 au(){const e=new lu;return ut(()=>e.dispose()),qn("keyController",e),e}function oo(e){const t=Bt("keyController");tt(()=>t.addListener(e)),ut(()=>t.removeListener(e))}const cu={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},uu={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3"},fu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},os=Ee({__name:"BottomSheet",props:{modelValue:{type:Boolean},name:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;oo({onKeyDown:r});const o=nr();he(()=>n.modelValue,i=>o(i));function r(i){n.modelValue&&i.key==="Escape"&&(t("update:modelValue",!1),i.preventDefault())}return(i,s)=>{const a=ns,l=no;return L(),Y("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))},[Z(tn,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:ae(()=>[n.modelValue?(L(),Y("div",{key:0,class:"inline-flex flex-col h-[27rem] w-full sm:w-[32rem] max-h-[80vh] bg-stone-800 bg-opacity-90 backdrop-blur-md rounded-t-xl max-w-full overflow-hidden duration-200",onClick:s[1]||(s[1]=ot(()=>{},["stop"])),onWheelPassive:s[2]||(s[2]=ot(()=>{},["stop"]))},[K("div",cu,[Z(l,{transparent:"",onClick:s[0]||(s[0]=()=>t("update:modelValue",!1))},{default:ae(()=>[Z(a)]),_:1}),K("div",uu,Je(i.name),1),Pe(i.$slots,"actions")]),K("div",fu,[Pe(i.$slots,"default")])],32)):Me("",!0)]),_:3})],2)}}}),du=Object.freeze(Object.defineProperty({__proto__:null,default:os},Symbol.toStringTag,{value:"Module"})),pu=["min","max","step"],hu={class:"flex-shrink-0"},rs=we(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)=>(L(),Y("div",{class:Oe(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:De({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[mt(K("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,pu),[[gc,o.value]]),K("p",hu,[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
|
+
`]]]),gu=Object.freeze(Object.defineProperty({__proto__:null,default:rs},Symbol.toStringTag,{value:"Module"})),mu={class:"flex items-center mb-8 last:mb-0"},vu={class:"flex-grow overflow-hidden"},is=Ee({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(L(),Y("div",mu,[K("div",{class:Oe(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Je(t.label),3),K("div",vu,[Pe(t.$slots,"default")])]))}}),_u=Object.freeze(Object.defineProperty({__proto__:null,default:is},Symbol.toStringTag,{value:"Module"})),bu=["onClick","onKeyup"],ss=Ee({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=q(null),r=q({width:"",left:""});tt(()=>{let s=!1;he(()=>n.modelValue,a=>{var c;const l=(c=o.value)==null?void 0:c.children[a+1];l&&(r.value={width:l.offsetWidth+"px",left:l.offsetLeft+"px"},l.scrollIntoView({behavior:s?"smooth":"auto",block:"center",inline:"center"}),s=!0)},{immediate:!0})});function i(s){t("update:modelValue",s)}return(s,a)=>(L(),Y("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[K("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:De(r.value)},null,4),(L(!0),Y(Ie,null,fn(n.items,(l,c)=>mt((L(),Y("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"])]},[It(Je(l),1)],42,bu)),[[J(nn),30]])),128))],512))}}),yu=Object.freeze(Object.defineProperty({__proto__:null,default:ss},Symbol.toStringTag,{value:"Module"})),wu={},xu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ku=[K("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 Cu(e,t){return L(),Y("svg",xu,ku)}const ls=we(wu,[["render",Cu]]),Su=Object.freeze(Object.defineProperty({__proto__:null,default:ls},Symbol.toStringTag,{value:"Module"})),Iu={},Tu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},$u=[K("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),K("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Eu(e,t){return L(),Y("svg",Tu,$u)}const as=we(Iu,[["render",Eu]]),Pu=Object.freeze(Object.defineProperty({__proto__:null,default:as},Symbol.toStringTag,{value:"Module"}));function Ou(e){if(e)try{return JSON.parse(e)}catch{return}}function Mu(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var at=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(at||{}),_t=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(_t||{});const Lu=.25,zu=5,Au=.25,bn=.25,yn=5,ju=.05,Bu=0,Du=4;function Ru(e){var V,T,W,g,P;const{titleName:t,isWebtoon:n}=e,o=se(()=>t.value?Mu(t.value):location.hostname),r=q(Nu(`tkr:${o.value}`)),i=$=>{r.value=$;const A=`tkr:${o.value}`;!$||!Object.keys($).length?localStorage.removeItem(A):localStorage.setItem(A,JSON.stringify($))},s=$=>{if(!r.value){i($);return}const A={...r.value};Object.entries($).forEach(([k,D])=>{D===void 0?delete A[k]:A[k]=D}),i(A)},a=q(((V=r.value)==null?void 0:V.style)??_t.longStrip),l=q(((T=r.value)==null?void 0:T.direction)??at.vertical),c=q((W=r.value)==null?void 0:W.gap),u=q(((g=r.value)==null?void 0:g.speed)??1),h=q(((P=r.value)==null?void 0:P.zoom)??1),p=se({get(){return n.value?_t.longStrip:a.value??_t.longStrip},set:$=>{a.value=$,s({style:$===_t.longStrip?void 0:$}),$!==_t.longStrip&&l.value===at.vertical&&(m.value=at.rtl)}}),m=se({get:()=>n.value?at.vertical:l.value,set:$=>{l.value=$,s({direction:$===at.vertical?void 0:$})}}),S=se({get:()=>c.value??(n.value?0:1),set($){c.value=$,s({gap:$})}}),x=se({get:()=>u.value,set($){u.value=$,s({speed:$===1?void 0:$})}}),j=se({get:()=>h.value,set($){h.value=$,s({zoom:$===1?void 0:$})}});return{direction:m,style:p,gap:S,speed:x,zoom:j,isLongStrip:se(()=>p.value===_t.longStrip),isDouble:se(()=>p.value===_t.double),isRTL:se(()=>m.value===at.rtl),isVertical:se(()=>m.value===at.vertical)}}function Nu(e){const t=localStorage.getItem(e),n=Ou(t),o={};return n?(n.style!==void 0&&Object.values(_t).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(at).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=Bu&&n.gap<=Du&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=bn&&n.speed<=yn&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=bn&&n.zoom<=yn&&(o.zoom=n.zoom),Object.keys(o).length?o:void 0):o}const cs=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);oo({onKeyUp:a=>{a.key==="s"&&!a.metaKey&&!a.ctrlKey&&(o.value=!o.value)}});function i(a){t("update:zoom",Math.round(a)/100)}function s(){o.value=!1,t("help")}return(a,l)=>{const c=as,u=no,h=ls,p=ss,m=is,S=rs,x=os;return L(),Y(Ie,null,[Z(u,{title:"Reader settings (S)",disabled:a.disabled,onClick:l[0]||(l[0]=()=>o.value=!0)},{default:ae(()=>[Z(c)]),_:1},8,["disabled"]),Z(x,{modelValue:o.value,"onUpdate:modelValue":l[5]||(l[5]=j=>o.value=j),name:r.value},{actions:ae(()=>[Z(u,{transparent:"",onClick:s},{default:ae(()=>[Z(h)]),_:1})]),default:ae(()=>[Z(m,{label:"Style"},{default:ae(()=>[Z(p,{"model-value":a.readerStyle,items:a.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":l[1]||(l[1]=j=>t("update:reader-style",j))},null,8,["model-value","items"])]),_:1}),Z(m,{label:"Direction"},{default:ae(()=>[Z(p,{"model-value":a.direction,items:a.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":l[2]||(l[2]=j=>t("update:direction",j))},null,8,["model-value","items"])]),_:1}),Z(m,{label:"Gap"},{default:ae(()=>[Z(p,{"model-value":a.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":l[3]||(l[3]=j=>t("update:gap",j))},null,8,["model-value"])]),_:1}),Z(m,{label:"Speed"},{default:ae(()=>[Z(S,{"model-value":a.speed,min:J(Lu),max:J(zu),step:J(Au),suffix:"x","onUpdate:modelValue":l[4]||(l[4]=j=>t("update:speed",j))},{suffix:ae(()=>[It(Je(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),Z(m,{label:"Zoom"},{default:ae(()=>[Z(S,{"model-value":Math.ceil(a.zoom*100),min:J(bn)*100,max:J(yn)*100,step:J(ju)*100,"onUpdate:modelValue":i},{suffix:ae(()=>[It(Je(Math.ceil(a.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),Fu=Object.freeze(Object.defineProperty({__proto__:null,default:cs},Symbol.toStringTag,{value:"Module"})),Vu={},Hu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Wu=[K("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function Uu(e,t){return L(),Y("svg",Hu,Wu)}const us=we(Vu,[["render",Uu]]),Ku=Object.freeze(Object.defineProperty({__proto__:null,default:us},Symbol.toStringTag,{value:"Module"})),Yu={},Xu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},qu=[K("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function Zu(e,t){return L(),Y("svg",Xu,qu)}const fs=we(Yu,[["render",Zu]]),Qu=Object.freeze(Object.defineProperty({__proto__:null,default:fs},Symbol.toStringTag,{value:"Module"})),Ju={},Gu={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ef=[K("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),K("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),K("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 tf(e,t){return L(),Y("svg",Gu,ef)}const ds=we(Ju,[["render",tf]]),nf=Object.freeze(Object.defineProperty({__proto__:null,default:ds},Symbol.toStringTag,{value:"Module"})),of={},rf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sf=[K("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),K("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),K("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 lf(e,t){return L(),Y("svg",rf,sf)}const ps=we(of,[["render",lf]]),af=Object.freeze(Object.defineProperty({__proto__:null,default:ps},Symbol.toStringTag,{value:"Module"})),cf={},uf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ff=[K("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function df(e,t){return L(),Y("svg",uf,ff)}const hs=we(cf,[["render",df]]),pf=Object.freeze(Object.defineProperty({__proto__:null,default:hs},Symbol.toStringTag,{value:"Module"})),hf=["aria-hidden"],gf=["onClick"],mf=["onClick"],vf={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"},_f={class:"whitespace-nowrap"},or=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),a=q(!1),l=q(!1);oo({onKeyDown:m});const c=nr();function u(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(h(),gt(()=>setTimeout(()=>{var g,P;(P=(g=i.value)==null?void 0:g.children[n.modelValue])==null||P.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),x(o.value)):setTimeout(j,250)}function h(){const g=o.value;if(g){const P=g.getBoundingClientRect(),$=P.x+P.width/2;s.value=P.y>window.innerHeight/2,a.value=$<window.innerWidth/3,l.value=$>window.innerWidth/3*2}}function p(g){g!=n.modelValue&&t("update:modelValue",g),u()}function m(g){r.value&&g.key==="Escape"&&(u(),g.preventDefault())}let S=[];function x(g){const P=window.getComputedStyle(g).zIndex,$=g.style.zIndex;(!P||!(+P>0))&&((!g.parentElement||g.parentElement.childElementCount>1)&&(g.style.zIndex="1",S.push({el:g,zIndex:$})),g.parentElement&&x(g.parentElement))}function j(){S.forEach(({el:g,zIndex:P})=>{g.style.zIndex=P??""}),S=[]}let V=!1;function T(){V||(V=!0,c(!0,{desktopOnly:!0}))}function W(){V&&(V=!1,c(!1,{desktopOnly:!0}))}return(g,P)=>{const $=hs;return L(),Y("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(L(),Y("div",{key:0,class:"fixed-screen bg-transparent",onClick:u})):Me("",!0),g.items.length?(L(),ke(tn,{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?(L(),Y("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":!a.value&&!l.value,"right-0 text-right":l.value}]),onWheelPassive:P[0]||(P[0]=ot(()=>{},["stop"]))},[(L(!0),Y(Ie,null,fn(g.items,(A,k)=>mt((L(),Y("li",{key:k,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":k===g.modelValue}]),onClick:()=>p(k)},[K("div",{class:Oe(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":k>0}])},[Pe(g.$slots,"item",{item:A},()=>[It(Je(A),1)])],2)],10,gf)),[[J(nn),30]])),128))],42,hf)):Me("",!0)]),_:3})):Me("",!0),mt((L(),Y("button",eo({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:ot(u,["stop"]),onMouseenter:T,onMouseleave:W}),[K("div",vf,[K("span",_f,Je(g.label),1),g.items.length?(L(),Y("span",{key:0,class:Oe(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":s.value}]),"aria-hidden":"true"},[Z($)],2)):Me("",!0)])],16,mf)),[[J(nn),30]])],512)}}}),bf=Object.freeze(Object.defineProperty({__proto__:null,default:or},Symbol.toStringTag,{value:"Module"})),gs=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(l=>l.map(({index:c})=>`${c+1}`).join("-"))),r=se(()=>{const l=n.modelValue,c=n.pages.findIndex(u=>u.some(({index:h})=>h===l));return c===-1?n.pages.length-1:c}),i=se(()=>n.pages.length?`${o.value[r.value]}/${n.totalImgs}`:"--");function s(l){const c=n.pages[l][0].index;a(c)}function a(l){t("update:modelValue",l)}return(l,c)=>{const u=or;return L(),ke(u,{"model-value":r.value,label:i.value,title:"Current page",items:o.value,disabled:l.disabled,"onUpdate:modelValue":s},null,8,["model-value","label","items","disabled"])}}}),yf=Object.freeze(Object.defineProperty({__proto__:null,default:gs},Symbol.toStringTag,{value:"Module"})),wf={},xf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},kf=[K("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Cf(e,t){return L(),Y("svg",xf,kf)}const ms=we(wf,[["render",Cf]]),Sf=Object.freeze(Object.defineProperty({__proto__:null,default:ms},Symbol.toStringTag,{value:"Module"})),If={},Tf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},$f=[K("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Ef(e,t){return L(),Y("svg",Tf,$f)}const vs=we(If,[["render",Ef]]),Pf=Object.freeze(Object.defineProperty({__proto__:null,default:vs},Symbol.toStringTag,{value:"Module"})),Of={},Mf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Lf=[K("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 zf(e,t){return L(),Y("svg",Mf,Lf)}const _s=we(Of,[["render",zf]]),Af=Object.freeze(Object.defineProperty({__proto__:null,default:_s},Symbol.toStringTag,{value:"Module"})),jf={},Bf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Df=[K("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 Rf(e,t){return L(),Y("svg",Bf,Df)}const bs=we(jf,[["render",Rf]]),Nf=Object.freeze(Object.defineProperty({__proto__:null,default:bs},Symbol.toStringTag,{value:"Module"}));var ys;const rr=typeof window<"u",Ff=e=>typeof e=="string",Pt=()=>{};rr&&((ys=window==null?void 0:window.navigator)!=null&&ys.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ro(e){return typeof e=="function"?e():J(e)}function ws(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 Vf(e,t={}){let n,o,r=Pt;const i=a=>{clearTimeout(a),r(),r=Pt};return a=>{const l=ro(e),c=ro(t.maxWait);return n&&i(n),l<=0||c!==void 0&&c<=0?(o&&(i(o),o=null),Promise.resolve(a())):new Promise((u,h)=>{r=t.rejectOnCancel?h:u,c&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,u(a())},c)),n=setTimeout(()=>{o&&i(o),o=null,u(a())},l)})}}function Hf(e,t=!0,n=!0,o=!1){let r=0,i,s=!0,a=Pt,l;const c=()=>{i&&(clearTimeout(i),i=void 0,a(),a=Pt)};return h=>{const p=ro(e),m=Date.now()-r,S=()=>l=h();if(c(),p<=0)return r=Date.now(),S();if(m>p&&(n||!s))r=Date.now(),S();else if(t)return new Promise((x,j)=>{a=o?j:x,i=setTimeout(()=>{r=Date.now(),s=!0,x(S()),c()},p-m)});return!n&&!i&&(i=setTimeout(()=>s=!0,p)),s=!1,l}}function Wf(e){return e}function ir(e){return br()?(ll(e),!0):!1}function Ye(e,t=200,n={}){return ws(Vf(t,n),e)}function xs(e,t=200,n=!1,o=!0,r=!1){return ws(Hf(t,n,o,r),e)}function ks(e,t=!0){$i()?tt(e):t?e():gt(e)}function Wt(e){var t;const n=ro(e);return(t=n==null?void 0:n.$el)!=null?t:n}const wn=rr?window:void 0,Uf=rr?window.document:void 0;function Ot(...e){let t,n,o,r;if(Ff(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=wn):[t,n,o,r]=e,!t)return Pt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},a=(u,h,p)=>(u.addEventListener(h,p,r),()=>u.removeEventListener(h,p,r)),l=he(()=>Wt(t),u=>{s(),u&&i.push(...n.flatMap(h=>o.map(p=>a(u,h,p))))},{immediate:!0,flush:"post"}),c=()=>{l(),s()};return ir(c),c}function Cs(e,t=!1){const n=q(),o=()=>n.value=!!e();return o(),ks(o,t),n}const Ss=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Is="__vueuse_ssr_handlers__";Ss[Is]=Ss[Is]||{};function Ts({document:e=Uf}={}){if(!e)return q("visible");const t=q(e.visibilityState);return Ot(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var $s=Object.getOwnPropertySymbols,Kf=Object.prototype.hasOwnProperty,Yf=Object.prototype.propertyIsEnumerable,Xf=(e,t)=>{var n={};for(var o in e)Kf.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&$s)for(var o of $s(e))t.indexOf(o)<0&&Yf.call(e,o)&&(n[o]=e[o]);return n};function qf(e,t,n={}){const o=n,{window:r=wn}=o,i=Xf(o,["window"]);let s;const a=Cs(()=>r&&"ResizeObserver"in r),l=()=>{s&&(s.disconnect(),s=void 0)},c=he(()=>Wt(e),h=>{l(),a.value&&r&&h&&(s=new ResizeObserver(t),s.observe(h,i))},{immediate:!0,flush:"post"}),u=()=>{l(),c()};return ir(u),{isSupported:a,stop:u}}function sr(e,t={width:0,height:0},n={}){const{window:o=wn,box:r="content-box"}=n,i=se(()=>{var l,c;return(c=(l=Wt(e))==null?void 0:l.namespaceURI)==null?void 0:c.includes("svg")}),s=q(t.width),a=q(t.height);return qf(e,([l])=>{const c=r==="border-box"?l.borderBoxSize:r==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(o&&i.value){const u=Wt(e);if(u){const h=o.getComputedStyle(u);s.value=parseFloat(h.width),a.value=parseFloat(h.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((h,{inlineSize:p})=>h+p,0),a.value=u.reduce((h,{blockSize:p})=>h+p,0)}else s.value=l.contentRect.width,a.value=l.contentRect.height},n),he(()=>Wt(e),l=>{s.value=l?t.width:0,a.value=l?t.height:0}),{width:s,height:a}}function lr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=wn}=n,a=Cs(()=>s&&"IntersectionObserver"in s);let l=Pt;const c=a.value?he(()=>({el:Wt(e),root:Wt(o)}),({el:h,root:p})=>{if(l(),!h)return;const m=new IntersectionObserver(t,{root:p,rootMargin:r,threshold:i});m.observe(h),l=()=>{m.disconnect(),l=Pt}},{immediate:!0,flush:"post"}):Pt,u=()=>{l(),c()};return ir(u),{isSupported:a,stop:u}}var Es;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Es||(Es={}));var Zf=Object.defineProperty,Ps=Object.getOwnPropertySymbols,Qf=Object.prototype.hasOwnProperty,Jf=Object.prototype.propertyIsEnumerable,Os=(e,t,n)=>t in e?Zf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gf=(e,t)=>{for(var n in t||(t={}))Qf.call(t,n)&&Os(e,n,t[n]);if(Ps)for(var n of Ps(t))Jf.call(t,n)&&Os(e,n,t[n]);return e};Gf({linear:Wf},{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 ed(e={}){const{window:t=wn,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,s=q(n),a=q(o),l=()=>{t&&(i?(s.value=t.innerWidth,a.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,a.value=t.document.documentElement.clientHeight))};return l(),ks(l),Ot("resize",l,{passive:!0}),r&&Ot("orientationchange",l,{passive:!0}),{width:s,height:a}}const Ms=we(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=xs(a,500);tt(()=>{const u=sr(n),h=Ye(()=>l({width:u.width.value,height:u.height.value}),50);h(),he(u.width,h),he(u.height,h)});function a(){o.value>=r.value.length-1?t("hide"):o.value++}function l(u){const h=c();r.value=h.map(({rect:p,text:m})=>{const S=p.top<u.height-p.bottom,x=p.left<u.width-p.right;return{text:m,style:{left:`${p.left}px`,top:`${p.top}px`,width:`${p.width}px`,height:`${p.height}px`},textStyle:{left:x?`${p.left-12}px`:void 0,right:x?void 0:`${u.width-p.left}px`,top:S?`${p.bottom+12}px`:`${p.top+20}px`,textAlign:S?void 0:"right",transform:S?void 0:"translateY(-50%)"}}}),o.value>=r.value.length&&(o.value=r.value.length-1)}function c(){var p;const u=(p=n.value)==null?void 0:p.parentElement;if(!u)return[];const h=[];return u.querySelectorAll("[data-tour]").forEach(m=>{var j;const S=(j=m.getAttribute("data-tour"))==null?void 0:j.trim();if(!(S!=null&&S.length))return;const x=m.getBoundingClientRect();h.push({rect:x,text:S})}),h}return(u,h)=>{var p,m;return L(),Y(Ie,null,[K("div",{class:Oe(["fixed-screen bg-black bg-opacity-50 duration-500",{"opacity-0":!i.value,"opacity-100":!!i.value}])},null,2),K("div",{ref_key:"root",ref:n,class:"tour",onClick:h[0]||(h[0]=ot((...S)=>J(s)&&J(s)(...S),["stop"]))},[i.value?(L(),Y("div",{key:o.value,class:"tour__target",style:De(i.value.style)},null,4)):Me("",!0),(L(),Y("div",{key:o.value,class:"tour__text",style:De((p=i.value)==null?void 0:p.textStyle)},Je(((m=i.value)==null?void 0:m.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
|
+
`]]]),td=Object.freeze(Object.defineProperty({__proto__:null,default:Ms},Symbol.toStringTag,{value:"Module"})),nd=K("div",{class:"fixed-screen bg-black bg-opacity-90"},null,-1),Ls=Ee({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=q(null),r=q([]);tt(async()=>{const l=sr(o),c=Ye(()=>{i({width:l.width.value,height:l.height.value})},50);c(),he(l.width,c),he(l.height,c)});function i(l){var h;const c=(h=o.value)==null?void 0:h.parentElement;if(!c)return;const u=Array.from(c.querySelectorAll("#controls [title]"));u.length&&(r.value=s(u,l))}function s(l,c){const u=[],h=[];let p=0,m=0;const S=50,x=25;l.forEach(g=>{var D;const P=(D=g.getAttribute("title"))==null?void 0:D.trim(),$=g.getBoundingClientRect();if(!P||!$.height||!$.width)return;const A=Math.ceil(($.top-10)/S),k=Math.ceil(($.left-10)/S);h.push({isTour:!1,title:P,rect:$,fromX:k,toX:Math.max(k+1,Math.ceil(($.right+10)/S)),fromY:A,toY:Math.max(A+1,Math.ceil(($.bottom+10)/S))})}),h.forEach(g=>{for(let P=g.fromY;P<g.toY;P++){u[P]??(u[P]=[]);for(let $=g.fromX;$<g.toX;$++)u[P][$]=g;g.toY>p+1&&(p=g.toY-1),g.toX>m+1&&(m=g.toX-1)}});let j=m/2;h.forEach(g=>{g.isAlignRight=g.fromX>j});const V=(g,P)=>{u[P]??(u[P]=[]);const $=P>=g.toY;if(g.isTour)for(let A=g.fromX;A<g.toX;A++)delete u[g.fromY][A],g.fromY=P,g.toY=P+($?1:-1),u[P][A]=g;else{const A=g.isAlignRight?g.fromX-3:g.fromX,k=A+3;g.helpItem={fromX:A,toX:k,fromY:P,toY:P+1,isTour:!0,isAlignRight:g.isAlignRight};for(let D=A;D<k;D++)u[P][D]=g.helpItem}},T=(g,P)=>{if(P>p||P<0)return!1;const $=P>=g.toY,A=u[P];if(!A)return V(g,P),!0;const k=A[g.fromX];if(k&&!k.isTour)return!1;if(k&&k.isTour)return T(k,$?P+1:P-1)?(V(g,P),!0):!1;if(!k){const D=g.isAlignRight?-1:1;return A[g.fromX+D]||A[g.fromX+D*2]?T(g,$?P+1:P-1):(V(g,P),!0)}return!1};h.forEach(g=>{if(!T(g,g.toY)){if(g.isAlignRight){const P=u[g.fromY]??[];if(!P.slice(g.fromX-3,g.fromX).filter(Boolean).length){const A=g.fromX-3,k=g.fromX;g.helpItem={isTour:!0,isAlignRight:!0,fromX:A,toX:k,fromY:g.fromY,toY:g.toY};for(let D=g.fromX-3;D<g.fromX;D++)P[D]=g.helpItem;return}}T(g,g.fromY-1)}});const W=[];return h.forEach(g=>{const{title:P,helpItem:$,rect:A,isAlignRight:k,fromX:D,fromY:ee,toY:ce}=g;if(!P||!$||!A)return;const y=$.fromY>=ce,_=$.toY<=ee;W.push({title:a(P),style:{top:y?`${A.bottom+($.fromY-ce)*S+x}px`:_?void 0:`${A.top+8}px`,bottom:_?`${c.height-A.top+($.toY-ee)*S+x}px`:void 0,left:k?void 0:`${A.left}px`,right:k?y?`${c.width-A.right}px`:`${c.width-A.right+A.width+x}px`:void 0},arrowStyle:{width:_||y?"2px":`${Math.abs($.toX-D)*S+x-5}px`,height:_||y?`${(y?$.fromY-ce:ee-$.toY)*S+x}px`:"2px",top:y?`${A.bottom}px`:_?void 0:`${A.top+20}px`,bottom:_?`${c.height-A.top}px`:void 0,left:k?void 0:`${A.left+A.width/2}px`,right:k?y?`${c.width-A.right+A.width/2}px`:`${c.width-A.right+A.width}px`:void 0}})}),W}function a(l){return n.touchDevice?l.split("(")[0].trim():l}return(l,c)=>(L(),Y(Ie,null,[nd,K("div",{ref_key:"root",ref:o,class:"fixed-screen z-20 overscroll-contain select-none",onClick:c[0]||(c[0]=ot(u=>t("hide"),["stop"]))},[(L(!0),Y(Ie,null,fn(r.value,u=>(L(),Y(Ie,{key:u.title},[K("div",{class:"absolute",style:De(u.style)},Je(u.title),5),K("div",{class:"absolute bg-stone-300 rounded-lg",style:De(u.arrowStyle)},null,4)],64))),128))],512)],64))}}),od=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),zs=we(Ee({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=q(0);return he(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const i=er,s=tr;return n.value?(L(),Y("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(L(),ke(i,{key:0})):(L(),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
|
+
`]]]),rd=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),id={},sd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ld=[K("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function ad(e,t){return L(),Y("svg",sd,ld)}const As=we(id,[["render",ad]]),cd=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"})),js=Ee({__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);he(()=>t.direction,()=>{i(),o.value=!0,r()}),tt(()=>{i(),r();let s;const a=Ts();he(a,l=>{l!=="visible"?s=Date.now():Date.now()-s>3e4&&(o.value=!0,r())})});function i(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,a)=>{const l=As;return L(),ke(tn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ae(()=>[o.value?(L(),Y("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===J(at).vertical,"rotate-180":s.direction===J(at).rtl}])},[Z(l)],2)):Me("",!0)]),_:1})}}}),ud=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),io=[];function fd(e){io.push(e),ut(()=>{const t=io.indexOf(e);t!==-1&&io.splice(t,1)})}function dd(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,i=t*o;io.forEach(s=>s(r,i))}const pd=["onClick"],Bs=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(yn,Math.max(bn,n.modelValue))),i=q(!1),s=q(!1),a=q(!1);he(()=>n.modelValue,_=>y(_)),tt(()=>{n.touchDevice?(Ot(window,"touchstart",x),fd(k)):(Ot(o,"mousedown",h),Ot(window,"wheel",W))}),oo({onKeyDown:_=>{var U;if(!n.busy&&((U=o.value)==null||U.focus(),!(_.key==="Meta"||_.key==="Control")&&(_.ctrlKey||_.metaKey)))switch(_.key){case"0":y(1);break;case"-":y(r.value-.2),_.preventDefault();break;case"=":case"+":y(r.value+.2),_.preventDefault();break}}});function l(_){s.value!==_&&(s.value=_,_?n.playController.pause():(t("dragEnd"),n.playController.resume()))}let c={x:0,y:0},u={x:0,y:0};function h(_){_.button===0&&(c={x:_.clientX,y:_.clientY},u={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",p),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",p),setTimeout(()=>l(!1))},{once:!0}),_.preventDefault(),_.stopPropagation())}function p(_){l(!0);const U=_.clientX-c.x,N=_.clientY-c.y,ue=o.value;ue.scrollLeft=u.x-U,ue.scrollTop=u.y-N}let m=!1,S={distance:0,zoom:r.value,x:0,y:0};function x(_){n.busy||(m=_.touches.length===2,m&&(l(!0),_.stopPropagation(),_.preventDefault(),S={distance:g(_),zoom:r.value,x:(_.touches[0].clientX+_.touches[1].clientX)/2,y:(_.touches[0].clientY+_.touches[1].clientY)/2}),(m||n.playController.isPlaying&&n.longStrip)&&(window.addEventListener("touchmove",V),window.addEventListener("touchend",j,{once:!0})))}function j(){if(window.removeEventListener("touchmove",V),m){l(!1),m=!1;return}if(!s.value)return;const _=Ye(()=>{l(!1),o.value.removeEventListener("scroll",N)},100),U=setTimeout(_,100);o.value.addEventListener("scroll",N);function N(){clearTimeout(U),_()}}function V(_){if(l(!0),m){_.stopPropagation(),_.preventDefault();const N=g(_)/S.distance;y(Math.ceil(N*S.zoom*100)/100,S)}}const T=Ye(()=>i.value=!1,100);function W(_){if(!n.busy){if(_.ctrlKey||_.metaKey){_.stopPropagation(),_.preventDefault();const U=Math.ceil((r.value+_.deltaY*-.01)*100)/100;y(U,{x:_.clientX,y:_.clientY});return}n.horizontal&&(i.value||(i.value=!0),T(),_.deltaY&&(o.value&&(o.value.scrollLeft+=_.deltaY*(n.rtl?-1:1)),_.stopPropagation(),_.preventDefault()))}}function g(_){return Math.hypot(_.touches[0].clientX-_.touches[1].clientX,_.touches[0].clientY-_.touches[1].clientY)}let P=0,$;function A(_){if(!s.value){if(!n.touchDevice){t("click",_);return}P++,$&&clearTimeout($),P===2&&k(_.clientX,_.clientY),$=setTimeout(()=>{!s.value&&P===1&&t("click",_),$=void 0,P=0},300)}}function k(_,U){if(!P)return;P=0;const N=r.value===1?2:1;y(N,{x:_,y:U})}let D;const ee=Ye(()=>{a.value=!1,D=void 0},150);function ce(){if(!a.value){const _=o.value;if(!_)return;const U=_.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;U&&(D={el:U,rect:U.getBoundingClientRect()},a.value=!0)}if(D)return ee(),D}async function y(_,U){const N=o.value,ue=Math.min(yn,Math.max(bn,_));if(!N||r.value===ue)return;const ne=ce();if(!ne)return;const ie=(U==null?void 0:U.x)??N.clientWidth/2,B=(U==null?void 0:U.y)??N.clientHeight/2;r.value=ue,t("update:modelValue",ue),await gt();const{el:H,rect:X}=ne,te=H.offsetWidth/X.width,_e=H.offsetHeight/X.height;N.scrollLeft=H.offsetLeft-X.left*te+ie*(te-1),N.scrollTop=H.offsetTop-X.top*_e+B*(_e-1)}return(_,U)=>(L(),Y("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":!_.longStrip&&(s.value||i.value||a.value),"cursor-grabbing":s.value,"overflow-hidden":a.value}]),style:De({"font-size":`${r.value}px`}),onClick:ot(A,["stop"])},[Pe(_.$slots,"default")],14,pd))}}),hd=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"})),Ds=Ee({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=q(null),o=q(!1);return tt(async()=>{await gt();let r=!1;lr(n,i=>{o.value=i.some(s=>s.isIntersecting),o.value&&!r&&t("visible")})}),(r,i)=>(L(),Y("div",{ref_key:"root",ref:n},[Pe(r.$slots,"default",{visible:o.value})],512))}}),gd=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"}));function md({pageIndex:e,isLongStrip:t}){let n=e.value,o=e.value+3;const r=q(n),i=q(o),s=Ye(a,50);he(e,l=>{n>l&&(n=l)});function a(){r.value!==n&&(r.value=n),i.value!==o&&(i.value=o)}return{min:r,max:i,onPageVisible(l){o<l&&(o=l),s()},onScroll(){t.value?a():s()}}}const vd={key:0,class:"page--loading"},_d=["src"],bd=["src"],yd=["data-index"],Rs=we(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 m;return(m=o.value)==null?void 0:m.$el}),i=q(null),s=sr(r),a=se(()=>{const{width:m,height:S}=s,x=n.isLongStrip?n.isVertical?m.value:S.value:Math.min(m.value,S.value);return Math.min(4,Math.max(1,Math.ceil(x/400-1)))*n.gap}),l=md({pageIndex:se(()=>n.pageIndex),isLongStrip:se(()=>n.isLongStrip)}),c=se(()=>{const{width:{value:m},height:{value:S}}=s;return n.pages.map(x=>{var k;const j=x.some(D=>{var ee;return(ee=D.img)==null?void 0:ee.isLoading}),V=x.map(D=>D.index),T={isLoading:j,indexes:V};if(j||V[V.length-1]<l.min.value-1||V[0]>l.max.value+2)return T;const W=x.map(({img:D})=>D).filter(Boolean);if(!W.length||(T.srcs=W.map(({src:D})=>D),W.every(D=>D.hasError)))return T;const P=(k=W.find(D=>!D.hasError))==null?void 0:k.size,$=W.reduce((D,ee)=>{var ce;return D+(((ce=ee.size)==null?void 0:ce.width)??P.width)},0),A=W.reduce((D,ee)=>{var ce;return D+(((ce=ee.size)==null?void 0:ce.height)??P.height)},0)/W.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&m/$<S/A?(T.width=Math.min(m,$),T.height=A*T.width/$):T.height=Math.min(S,A),T})}),u=se(()=>{const m=n.isVertical?"width":"height";return c.value.map(S=>S[m]).filter(Boolean).sort((S,x)=>x-S)[0]});function h({indexes:m}){const S=m[m.length-1];S!==void 0&&l.onPageVisible(S)}function p(m){if(!n.isLongStrip){const S=n.isVertical?s.height.value:s.width.value,j=(n.isVertical?m.clientY:n.isRTL?S-m.clientX:m.clientX)/S;if(j<=.2){t("prev");return}else if(j>=.8&&n.pageIndex<n.totalImgs){t("next");return}}t("click")}return(m,S)=>{const x=Go,j=Ds,V=Bs;return L(),ke(V,{ref_key:"root",ref:o,"model-value":m.zoom,"page-index":m.pageIndex,class:Oe(["reader-body",{"reader-body--long-strip":m.isLongStrip,"reader-body--pages":!m.isLongStrip,"reader-body--vertical":m.isVertical,"reader-body--rtl":m.isRTL,"reader-body--idle":m.idle}]),"play-controller":m.playController,horizontal:!m.isVertical,rtl:m.isRTL,"touch-device":m.touchDevice,busy:m.busy,"long-strip":m.isLongStrip,style:De({"--gap":`${a.value}em`,"--space-top":(m.spaceTop||0)+"px","--screen-width-em":J(s).width.value+"em","--screen-height-em":J(s).height.value+"em",...m.isLongStrip?{"--max-size-em":u.value+"em"}:{}}),"onUpdate:modelValue":S[0]||(S[0]=T=>t("update:zoom",T)),onDragEnd:S[1]||(S[1]=()=>t("dragEnd")),onClick:p,onScroll:J(l).onScroll},{default:ae(()=>[(L(!0),Y(Ie,null,fn(c.value,T=>(L(),ke(j,eo({key:m.direction+"_"+T.indexes[0],"data-index":T.indexes[0]},T.indexes.length>1?{"data-index2":T.indexes[1]}:{},{onVisible:()=>h(T)}),{default:ae(({visible:W})=>{var g;return[!((g=T.srcs)!=null&&g.length)||T.isLoading?(L(),Y("div",vd,[mt(Z(x,null,null,512),[[Zi,W]])])):T.srcs.length==1?(L(),Y("img",{key:1,src:T.srcs[0],style:De({height:T.height!==void 0?T.height+"em":""})},null,12,_d)):(L(),Y("div",{key:2,class:Oe(["page--double",{"flex-row-reverse":m.isRTL}]),style:De({width:T.width!==void 0?T.width+"em":"",height:T.height!==void 0?T.height+"em":""})},[(L(!0),Y(Ie,null,fn(T.srcs,P=>(L(),Y("div",{key:P},[K("img",{src:P},null,8,bd)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),K("div",{ref_key:"autoNextEl",ref:i,class:"last","data-index":m.totalImgs},[Pe(m.$slots,"end")],8,yd)]),_:3},8,["model-value","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style","onScroll"])}}}),[["styles",[`.reader-body{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width:1024px){.reader-body{transform:none}}.reader-body--rtl{flex-direction:row-reverse}.reader-body.reader-body--vertical>div{padding:calc(var(--gap)/2) 0}.reader-body:not(.reader-body--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.reader-body:not(.reader-body--vertical)>div{padding:0 calc(var(--gap)/2)}.reader-body--long-strip.reader-body--vertical>div:first-child{margin-top:var(--space-top);padding-top:0}.reader-body--long-strip.reader-body--vertical>div:last-child{padding-bottom:0}.reader-body--long-strip.reader-body--vertical>div{width:var(--max-size-em)}.reader-body--long-strip.reader-body--vertical .page--loading{height:75vh;max-width:100%;width:100vw}.reader-body--long-strip.reader-body--vertical .last{height:var(--screen-height-em)}.reader-body--long-strip:not(.reader-body--vertical)>div{align-items:center;display:flex;height:var(--max-size-em)}.reader-body--long-strip:not(.reader-body--vertical) .page--loading{height:100vh;max-height:100%;max-width:100vw;width:680px}.reader-body--long-strip:not(.reader-body--vertical) .last{width:var(--screen-width-em)}.reader-body--long-strip>div>img{flex-shrink:0;margin:auto}.reader-body--pages:after,.reader-body--pages:before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.reader-body--pages.reader-body--idle:after,.reader-body--pages.reader-body--idle:before{cursor:none}.reader-body--pages>div{align-items:center;display:grid;justify-content:center;min-height:100vh;min-width:100vw;scroll-snap-align:center}.reader-body--pages.reader-body--vertical{--tw-scroll-snap-strictness:mandatory;scroll-snap-type:y var(--tw-scroll-snap-strictness)}.reader-body--pages.reader-body--vertical:after,.reader-body--pages.reader-body--vertical:before{height:20vw;left:0;right:0}.reader-body--pages.reader-body--vertical:before{top:0}.reader-body--pages.reader-body--vertical:after{bottom:0}.reader-body--pages.reader-body--vertical>div{width:var(--screen-width-em)}.reader-body--pages:not(.reader-body--vertical){--tw-scroll-snap-strictness:mandatory;scroll-snap-type:x var(--tw-scroll-snap-strictness)}.reader-body--pages:not(.reader-body--vertical):after,.reader-body--pages:not(.reader-body--vertical):before{bottom:0;top:0;width:20vw}.reader-body--pages:not(.reader-body--vertical):before{left:0}.reader-body--pages:not(.reader-body--vertical):after{right:0}.reader-body--pages:not(.reader-body--vertical)>div{height:var(--screen-height-em)}.reader-body--pages .page--loading{height:100vh;width:100vw}.reader-body--pages .page--double{align-items:center;display:flex;gap:var(--gap);justify-content:center}.reader-body--pages .page--double div{display:flex;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body--pages .page--double div img{flex-shrink:0;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.reader-body>div{flex-shrink:0;margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body .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
|
+
`]]]),wd=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"})),xd={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},kd={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},Cd={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},Ns=we(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 tt(()=>{let a;lr(o,l=>{i.value=l.some(c=>c.isIntersecting),s.value=5,a&&(clearInterval(a),a=void 0),i.value&&(a=setInterval(()=>{s.value-=1,s.value<=0&&(clearInterval(a),a=void 0,t("next"))},1e3))}),lr(n,l=>{r.value=l.some(c=>c.isIntersecting)}),ut(()=>a&&clearInterval(a))}),(a,l)=>(L(),Y("div",{ref_key:"root",ref:n,class:"h-full w-full flex justify-center items-center"},[mt(K("div",xd,[a.hasNext?(L(),Y("div",kd,[i.value?(L(),Y("div",Cd)):Me("",!0),mt((L(),Y("button",{ref_key:"nextButton",ref:o,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:l[0]||(l[0]=ot(()=>t("next"),["stop"]))},[It(" Next in "+Je(s.value),1)])),[[J(nn)]])])):Me("",!0),mt((L(),Y("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:l[1]||(l[1]=ot(()=>t("hide"),["stop"]))},[It(" Hide ")])),[[J(nn)]])],512),[[Zi,r.value||!a.hasNext]])],512))}}),[["styles",[`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
|
|
7
|
+
`]]]),Sd=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"}));async function xn(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(r=>{setTimeout(async()=>{const i=await xn(e-1,t,n);r(i)},t)})}function so(e=0){return new Promise(t=>setTimeout(t,e))}const Id=3;function Td(e){var ue,ne,ie;const t=((ne=(ue=e.raw.value)==null?void 0:ue.imgs)==null?void 0:ne.filter(Boolean))??[];let n=!!t.length;const o=q(t),r=sn({}),i=[],s=new WeakMap,a=q((ie=e.raw.value)==null?void 0:ie.isWebtoon),l=Date.now(),c=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android");let u=!0,h=!1,p=!1,m=0,S=0,x,j=[],V=e.isAutoShow!==!1?e.page.value:n?Od(t):void 0;const T=Ye(y,100);let W=!1;const g=Ye(k,50),P=()=>{W?g():(W=!0,k())};n?k():ee(),he(()=>{var B;return(B=e.raw.value)==null?void 0:B.imgs},B=>{B!=null&&B.length&&B!==o.value&&(n=!0,A(B))}),ut(()=>{u=!1,i.forEach(B=>URL.revokeObjectURL(B))}),Kn(()=>{if(!h)return;const B=j.length?void 0:document.querySelector(`img[src^="${t[Math.floor(e.page.value)]}"]`)??void 0;kn({contentEl:x,imgEl:B,imgEls:j,page:e.page.value})});function $(){var _e,ve;if(h||a.value===void 0||V===void 0)return;const B=Math.max(0,Math.min(V,o.value.length)),H=o.value.length-1,X=Math.min(Math.floor(B),H);if(X>=1){const ge=o.value[X];if(!ge){e.isAutoShow&&kn({contentEl:x,imgEls:j,page:X});return}const oe=o.value[X-1];if(oe&&!((_e=r[oe])!=null&&_e.size)||!((ve=r[ge])!=null&&ve.size))return}if(h)return;h=!0,e.onReady(B);let te=!0;he(()=>Math.floor(e.page.value),async(ge,oe)=>{kn({imgEls:j,page:ge,smooth:c,skipIfVisible:te}),te=!1,oe??(oe=-1),ge!==oe&&(m=Math.max(0,m-Math.abs(ge-oe))),P()},{immediate:!0})}function A(B,H){(B.length!==o.value.length||B.some((X,te)=>o.value[te]!==X))&&(H&&(j=H,e.isAutoShow===!1&&V===void 0&&(V=Vs(j))),o.value=B,P())}function k(){const B=Math.max(0,Math.floor(e.page.value-1)),H=X=>{m>Id||D(X)};for(let X=B;X<o.value.length;X++)H(X);for(let X=B-1;X>=0;X--)H(X)}async function D(B){const H=o.value[B];if(!(!u||!H||r[H])){if(!r[H]){r[H]={src:H,isLoading:!0,hasError:!1},m++;const X=await Pd(H);if(r[H]={src:H,size:X,isLoading:!1,hasError:!X},m=Math.max(0,m-1),X&&!a.value&&B>Math.min(1,o.value.length-2)){const te=X.height/X.width>2.5;a.value!==te&&(a.value=te)}$()}g()}}function ee(){let B=!1;const H=new MutationObserver(()=>{x&&T(x)});Kn(async()=>{H.disconnect()}),ce(X=>{x!==X&&(x=X,H.disconnect(),H.observe(x,{childList:!0,subtree:!0}),B?T(x):(B=!0,y(x)))})}async function ce(B){var ge;const H=(ge=e.spec)==null?void 0:ge.content;if(!H){B(document.body);return}const X=await $d(e.spec);let te=H?await xn(X?100:1,10,()=>document.querySelector(H)):void 0;if(!te)return;B(te);let _e=0;const ve=async()=>{if(u&&!(te!=null&&te.isConnected)&&!n){if(_e=0,te=await xn(50,20,()=>{const oe=document.querySelector(H);return oe!=null&&oe.isConnected&&oe!==te?oe:void 0}),!te)return;B(te)}!u||n||++_e>=10||setTimeout(ve,200)};setTimeout(ve,200)}async function y(B){var _e;if(!u||!B.isConnected||n)return;const H=Date.now();S=H;const X=(_e=e.spec)==null?void 0:_e.imgDivs,te=X?await _({contentEl:B,imgDivsSel:X,ts:H}):await U({contentEl:B,ts:H});!te||S!==H||!B.isConnected||!u||n||(!e.raw.value&&!te.srcs.some(Boolean)&&e.onError("no_img"),A(te.srcs,te.imgEls))}async function _({contentEl:B,imgDivsSel:H,ts:X}){const te=Array.from(B.querySelectorAll(H));if(!p&&e.isAutoShow!==!1&&e.page.value&&(p=!0,kn({contentEl:B,imgEls:te,page:Math.floor(e.page.value),skipIfVisible:!0}),await so(1),S!==X))return;const _e=new Map;return{srcs:await Promise.all(te.map(async(ge,oe)=>{const xe=Array.from(ge.querySelectorAll("img,canvas"));for(const ze of xe){const Be=await N({ts:X,el:ze,index:oe,total:te.length,elsPool:_e,onImgLoad:()=>T(B)});if(Be)return Be}})),imgEls:te}}async function U({contentEl:B,ts:H}){const X=Array.from(B.querySelectorAll("img,canvas")),te=new Map,_e=await Promise.all(X.map((xe,ze)=>N({ts:H,el:xe,index:ze,total:X.length,elsPool:te,onImgLoad:()=>T(B)})));if(S!==H)return;let ve=X.filter((xe,ze)=>_e[ze]),ge=_e.filter(Boolean);const oe={};return ge.forEach((xe,ze)=>{xe&&ze!==ge.lastIndexOf(xe)&&(oe[ze]=!0)}),Object.keys(oe).length&&(ve=ve.filter((xe,ze)=>!oe[ze]),ge=ge.filter((xe,ze)=>!oe[ze])),!j.length&&ve.length<X.length&&ve.length<=5&&setTimeout(()=>{kn({imgEls:X,page:X.length,smooth:c})},50),{srcs:ge,imgEls:ve}}async function N({ts:B,el:H,index:X,total:te,elsPool:_e,onImgLoad:ve}){const ge=s.get(H);let oe,xe;if(H.tagName.toLowerCase()==="canvas"){if(ge)return ge.src;oe=await Fs(H)}else{if(H._tkLoadId_!==l&&(H._tkLoadId_=l,H.addEventListener("load",ve),ut(()=>{H._tkLoadId_===l&&delete H._tkLoadId_,H.removeEventListener("load",ve)})),xe=Md(H,_e),!xe)return;if(xe===(ge==null?void 0:ge.originalSrc))return ge.src;if(oe=await Ed(H,xe),!u||S!==B)return;if(a.value===void 0&&X>Math.min(1,te-2)){const Be=+(H.getAttribute("width")??0),Mt=+(H.getAttribute("height")??0);Be&&Mt&&(a.value=Mt/Be>2.5)}}return oe&&(s.set(H,{src:oe,originalSrc:xe}),oe.startsWith("blob:")&&i.push(oe)),oe}return{asyncImgs:se(()=>o.value.map(B=>B?r[B]:void 0)),isWebtoon:se(()=>a.value??!1)}}async function $d(e){const{lstrip:t,lstripBtn:n}=e||{};if(!n||!!t&&!!document.querySelector(t))return!1;const r=await xn(50,30,()=>document.querySelector(n));if(!r)return!1;if(r.tagName.toLowerCase()==="a"&&!r._tkDirty_){r._tkDirty_=!0;const i=s=>s.preventDefault();r.addEventListener("click",i),ut(()=>{delete r._tkDirty_,r.removeEventListener("click",i)})}return r.click(),await so(),!0}function Fs(e){return new Promise(t=>{if(e.isConnected&&(e.width<200||e.height<200))return t(void 0);const n=o=>{if(!o)return t(void 0);const r=URL.createObjectURL(o);t(r)};e.toBlob(n,"image/png",1)})}async function Ed(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 Fs(o)}function Pd(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{const{naturalWidth:r,naturalHeight:i}=n;i&&r&&(t({width:r,height:i}),clearInterval(o))},20);n.onerror=()=>{t(void 0),clearInterval(o)},n.src=e})}function Od(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src));return Vs(n)}function Vs(e){for(let t=0;t<e.length;t++){const n=e[t].getBoundingClientRect();if(n.bottom<=0)continue;const o=n.top;return t+(o>=0?0:-o/n.height)}return 0}function Md(e,t){if(!Hs(e,t))return;const n=e.getBoundingClientRect();if(n.width&&n.height&&(n.width<200||n.height<200))return;const o=e.getAttributeNames(),r=o.indexOf("src");r!==-1&&(o.splice(r,1),o.push("src"));for(const i of o){if(i!=="data-url"&&i!=="data-original"&&!i.includes("src"))continue;const s=e.getAttribute(i);if(s)return i==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:s.replace(/(\n|\t)/g," ").trim()}}function Hs(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=Hs(e.parentElement,t);return t.set(e,i),i}function kn({contentEl:e,imgEls:t,page:n,smooth:o,skipIfVisible:r,imgEl:i}){var u;const s=n>=t.length,a=o?"smooth":"instant";if(s){(u=t[t.length-1])==null||u.scrollIntoView({block:"end",behavior:a});return}if(i??(i=t[Math.floor(n)]),!i)return;const l=i.getBoundingClientRect();if(r&&l.top<=0&&l.top+l.height>0)return;i.scrollIntoView({block:"start",behavior:a});const c=n%1;if(c){const h=c*l.height,p=ar(e??document.documentElement);setTimeout(()=>p==null?void 0:p.scrollBy({top:h}))}}function ar(e){if(e)return e.scrollHeight>e.clientHeight?e===document.body?ar(document.documentElement)??e:e:ar(e.parentElement??void 0)}function Ld(e,t){return se(()=>t.value?Ws(e.value):e.value.map((n,o)=>[{img:n,index:o}]))}function Ws(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})),...Ws(e.slice(r.length),t+r.length)]}function zd(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 Ad(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const cr=40;function jd({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:i,spaceTop:s,scrollEl:a,interferePlayer:l,onChangedPage:c,onInitialized:u}){let h=!1,p=!1,m;const S=Ye($,300),x=xs(()=>{$(),S()},300),j=Ye(W,50);async function V(){g(e.value)}function T(){var y;p=!0,u(),(y=a.value)==null||y.addEventListener("scroll",x),setTimeout(()=>{const{width:_,height:U}=ed();he(_,()=>{r.value&&j()}),he(U,()=>{r.value||j()}),he(n,W),he(t,W)},300)}async function W(){if(!p||h)return;h=!0,await gt();const y=e.value;if(A()===y){h=!1;return}g(y)}function g(y,{smooth:_}={smooth:!1}){const U=a.value;if(!U)return;h=!0;const N=async()=>{await gt(),h=!1,p||T()},ue=Math.floor(y),ne=U.querySelector(`[data-index="${ue}"],[data-index2="${ue}"]`);if(!ne){N();return}l(async()=>{await P(U,!o.value&&_,async()=>{await ce(U,ne,{smooth:_,page:y})}),await N()})}async function P(y,_,U){_&&y.style.setProperty("scroll-snap-type","none"),await U(),_&&y.style.removeProperty("scroll-snap-type")}function $(){if(h)return;const y=A();y!==void 0&&y!==e.value&&c(y)}function A(){const y=k();return y?(+y.getAttribute("data-index")||0)+(o.value?D(y):0):void 0}function k(){var _;if(m??(m=a.value.getRootNode()),!m)return;const y=(_=m.elementsFromPoint)==null?void 0:_.call(m,r.value||!o.value?window.innerWidth/2:i.value?window.innerWidth-cr:cr,r.value&&o.value?s.value||cr:window.innerHeight/2);if(y)for(let U=0;U<y.length;U++){const N=y[U];if(N.hasAttribute("data-index"))return N;if(N===a.value)break}}function D(y){const _=y.getBoundingClientRect();return r.value?Math.abs(_.top-s.value)/_.height:i.value?Math.max(0,_.right-a.value.clientWidth)/_.width:Math.abs(_.left)/_.width}let ee=!1;async function ce(y,_,U){if(ee)return;const N=_.getBoundingClientRect();if(!o.value){if(r.value){if(N.top<=0&&N.bottom>=y.clientHeight)return}else if(N.left<=0&&N.right>=y.clientWidth)return}ee=!0;const ue=r.value?y.scrollTop:y.scrollLeft,ne=U.page,ie=o.value?ne%1:0,B=await xn(30,10,async()=>{await so();let ve;if(!(_.offsetHeight<10))return o.value?r.value?ve=_.offsetTop+ie*_.offsetHeight-s.value:i.value?ve=_.offsetLeft-y.clientWidth+_.offsetWidth-ie*_.offsetWidth:ve=_.offsetLeft+ie*_.offsetWidth:r.value?ve=_.offsetTop+(N.top>0?0:N.height-y.clientHeight):ve=_.offsetLeft+(N.left>0?0:N.width-y.clientWidth),ne>.5&&Math.abs(ve)<100?void 0:ve})??0,H=r.value?Math.min(B,y.scrollHeight-y.clientHeight*2):i.value?Math.max(B,-(y.scrollWidth-y.clientWidth*2)):Math.min(B,y.scrollWidth-y.clientWidth*2);if(!U.smooth){r.value?y.scrollTop=H:y.scrollLeft=H,ee=!1;return}const X=H-ue,te=30;let _e=0;return new Promise(ve=>{(function ge(){const oe=Bd(_e,ue,X,te);r.value?y.scrollTop=oe:y.scrollLeft=oe,_e++,_e<=te?requestAnimationFrame(ge):(ve(),ee=!1)})()})}return{init:V,goToPage:g}}function Bd(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function Dd({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:i,speed:s}){const a=sessionStorage.getItem("tk:playing"),l=q(typeof a=="string"?a==="true":e),c=se({get:()=>l.value,set:k=>{l.value=k,sessionStorage.setItem("tk:playing",k?"true":"false")}}),u=q(!1);let h,p;const m=Ye($,100),S=Ye(()=>{u.value=!0},t?2e3:1e3),x=()=>setTimeout(()=>{u.value=!1,S()},30);x(),t||Ot(window,"mousemove",x);const j=Ts();tt(()=>{he(j,k=>{c.value&&(k==="visible"?$():p==null||p())}),he(s,()=>V()),he(i,k=>{k||W()})});async function V(k){c.value&&(p==null||p()),k&&(await gt(),await k()),c.value&&m()}function T(){c.value?W():g()}function W(){c.value&&(c.value=!1,p==null||p(),x())}function g(){!c.value&&i.value&&(c.value=!0,$(),x())}function P(){p==null||p()}function $(){const k=n.value;if(!c.value||!k)return;const D=o.value?k.scrollHeight-k.clientHeight:k.scrollWidth-k.clientWidth,ee=A();if(D<=ee){W();return}p=()=>{h=Date.now(),p=void 0};const ce=Date.now();h=ce;const y=.05*s.value,_=o.value?"scrollTop":"scrollLeft";let U=Date.now(),N=0;const ue=()=>{if(h!==ce)return;const ne=Date.now(),ie=ne-U;U=ne;const B=y*ie+N;B>=1?(N=B%1,k[_]+=(B-N)*(r.value?-1:1)):N=B,setTimeout(ue,1)};ue()}function A(){const k=n.value;return o.value?k.scrollTop:r.value?-k.scrollLeft:k.scrollLeft}return{isPlaying:c,isIdle:u,toggle:T,play:g,pause:P,resume:$,stop:W,interfere:V,awake:x}}function Rd(e){var m,S,x,j,V;let t=-1,n=(m=e.prev)==null?void 0:m.slug,o=(S=e.next)==null?void 0:S.slug;const{vol:r,inferVol:i,chap:s,title:a,slug:l,basePath:c}=e,u=r??i,h=a.chapters??[],p=(h==null?void 0:h.length)>1?h:[];if(p.length){if(t=p.findIndex(T=>T.slug===e.slug),t===-1&&(t=p.findIndex(T=>(T.vol??T.inferVol)===u&&T.chap===s)),t===-1&&(t=p.findIndex(T=>l.startsWith(`${T.slug}-`)&&l.length-T.slug.length>3)),t!==-1)n??(n=(x=p[t+1])==null?void 0:x.slug),o??(o=(j=p[t-1])==null?void 0:j.slug);else if(!n&&!o){const T=p.findIndex(W=>{const g=W.vol??W.inferVol;return u===void 0||g===void 0||u===g?W.chap<s:g<u});T!==-1?(n=p[T].slug,o=(V=p[T-1])==null?void 0:V.slug):o=p[p.length-1].slug}}return{activeIndex:t,activeLabel:Us({vol:r,chap:s}),chapters:p.map(T=>({label:Us(T),path:ur(c,T.slug)})),prevPath:ur(c,n),nextPath:ur(c,o)}}function ur(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function Us({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const Nd={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},Fd=Ee({...{inheritAttrs:!1},__name:"TrackkunReader",props:{immediate:{type:Boolean},raw:{},spec:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},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),a=q(!1),l=Jc({touchDevice:n.touchDevice}),c=zd(n.page,n.isAutoShow),u=se(()=>n.spaceTop??0),{asyncImgs:h,isWebtoon:p}=Td({raw:se(()=>n.raw),spec:n.spec,page:c,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:u,async onReady(v){te(v),s.value=!0},onError:()=>{t("error"),I()}}),{direction:m,style:S,isRTL:x,isDouble:j,isVertical:V,isLongStrip:T,gap:W,speed:g,zoom:P}=Ru({titleName:se(()=>{var v;return(v=n.raw)==null?void 0:v.title.name}),isWebtoon:p}),$=Ld(h,j),A=se(()=>c.value>=h.value.length),k=se(()=>n.raw?Rd(n.raw):void 0),D=se(()=>{var v,w;return x.value?(v=k.value)==null?void 0:v.nextPath:(w=k.value)==null?void 0:w.prevPath}),ee=se(()=>{var v,w;return x.value?(v=k.value)==null?void 0:v.prevPath:(w=k.value)==null?void 0:w.nextPath}),ce=q(null),y=q(null),_=q(!1),U=q(!1),N=Dd({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:se(()=>{var v;return(v=ce.value)==null?void 0:v.$el}),speed:g,isRTL:x,isVertical:V,isLongStrip:T}),ue=se(()=>!n.touchDevice&&N.isIdle.value&&!l.value),ne=se({get(){return P.value},set(v){N.interfere(()=>{P.value=v})}}),ie=jd({page:c,style:S,direction:m,isLongStrip:T,isVertical:V,isRTL:x,spaceTop:u,scrollEl:se(()=>{var v;return(v=ce.value)==null?void 0:v.$el}),interferePlayer:v=>N.interfere(v),onChangedPage:te,onInitialized(){t("ready"),a.value=!0,n.touchDevice&&(i=_e())}}),B=se(()=>Math.floor(c.value)),H=()=>N.interfere(()=>so(100));au().addListener({onKeyDown:v=>{if(n.tourEnabled)return;const w=T.value&&V.value,F=T.value&&!V.value,Q=!T.value&&V.value,re=!T.value&&!V.value;switch(v.key){case" ":v.preventDefault(),T.value?(E(!1),N.toggle()):d();break;case"ArrowUp":case"PageUp":w?H():Q&&B.value!==0&&(v.preventDefault(),f());break;case"ArrowDown":case"PageDown":w?H():Q&&!A.value&&(v.preventDefault(),d());break;case"ArrowLeft":F?H():re?(v.preventDefault(),Mt()):V.value&&xe();break;case"ArrowRight":F?H():re?(v.preventDefault(),Sn()):V.value&&oe();break}},onKeyUp:v=>{switch(v.key){case"f":R();break;case"t":M();break;case"h":E();break}}}),Ot("fullscreenchange",()=>{_.value=!!document.fullscreenElement}),he(N.isPlaying,v=>{v||C(!1),t("playingChanged",v)}),he(N.isIdle,v=>{N.isPlaying.value&&C(v)}),he(l,v=>{!v&&N.isIdle.value?N.awake():v&&n.fullScreen&&C()});function te(v){if(c.value===v)return;const w=h.value.length;if(v<0||v>=w+1)return;const F=c.value;c.value=v,t("pageChanged",Math.floor(v*100)/100),v>=w?(C(!1),N.stop()):v===0?C(!1):n.touchDevice&&!r&&(T.value?i!==void 0&&_e()-i>300&&C(!0):Math.abs(F-v)===1&&C(!0)),!o&&v>=w-2&&(o=!0,t("finished"))}function _e(){var w;const v=(w=ce.value)==null?void 0:w.$el;return v?V.value?v.scrollTop:x.value?-v.scrollLeft:v.scrollLeft:0}function ve(){!n.touchDevice&&!T.value&&ie.goToPage(B.value,{smooth:!0})}function ge(){if(N.isPlaying.value){!n.fullScreen||!n.touchDevice?N.stop():N.awake();return}C()}function oe(){var v;Be((v=k.value)==null?void 0:v.nextPath)}function xe(){var v;Be((v=k.value)==null?void 0:v.prevPath)}function ze(v){var F,Q,re;const w=(re=(Q=(F=k.value)==null?void 0:F.chapters)==null?void 0:Q[v])==null?void 0:re.path;w&&Be(w)}function Be(v){v&&(location.href=v.includes("://")?v:location.origin+v)}function Mt(){x.value?d():f()}function Sn(){x.value?f():d()}function f(){var F;const v=$.value,w=A.value?v[v.length-1][0].index:(F=v[b()-1])==null?void 0:F[0].index;w!==void 0?ie.goToPage(w):xe()}function d(){var v,w;if(A.value)oe();else{const F=((w=(v=$.value[b()+1])==null?void 0:v[0])==null?void 0:w.index)??h.value.length;ie.goToPage(F)}}function b(){const v=B.value,w=$.value.findIndex(F=>F.some(({index:Q})=>Q===v));return w===-1?$.value.length-1:w}function I(){Ad(),N.stop(),t("dispose")}async function C(v){if(l.value&&!n.fullScreen)return;r=!0;const w=typeof v=="boolean"?v:!n.fullScreen;t("fullScreenChanged",w),w&&setTimeout(()=>{n.fullScreen&&l.value&&t("fullScreenChanged",!1)},100)}function M(){n.entryId?z():O()}function R(){var v,w;document.fullscreenElement?document.exitFullscreen():(w=(v=y.value)==null?void 0:v.$el)==null||w.requestFullscreen()}function O(){N.stop(),t("addEntry")}function z(){N.stop(),t("openEntry",n.entryId)}function E(v){U.value!==v&&(U.value=!U.value,U.value&&N.isPlaying&&N.stop())}return(v,w)=>{const F=Ns,Q=Rs,re=js,be=zs,me=Ls,Ce=Ms,qe=bs,He=no,lo=_s,Ut=or,ao=vs,Ne=ms,rt=gs,co=ps,Jd=ds,Gd=fs,ep=us,tp=cs,np=tr,op=er,rp=ts,ip=Gi;return v.immediate||s.value?(L(),ke(ip,{key:0,ref_key:"root",ref:y,loading:!a.value,immediate:!!v.immediate,"full-screen":!!v.fullScreen,idle:ue.value,"space-top":u.value,rtl:J(x),onClick:w[10]||(w[10]=ot(()=>{},["stop"]))},li({settings:ae(()=>{var bt;return[Z(tp,{"reader-style":J(S),"onUpdate:readerStyle":w[3]||(w[3]=yt=>$e(S)?S.value=yt:null),direction:J(m),"onUpdate:direction":w[4]||(w[4]=yt=>$e(m)?m.value=yt:null),gap:J(W),"onUpdate:gap":w[5]||(w[5]=yt=>$e(W)?W.value=yt:null),speed:J(g),"onUpdate:speed":w[6]||(w[6]=yt=>$e(g)?g.value=yt:null),zoom:ne.value,"onUpdate:zoom":w[7]||(w[7]=yt=>ne.value=yt),name:(bt=v.raw)==null?void 0:bt.title.name,webtoon:J(p),disabled:!s.value,onHelp:E},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":ae(()=>[Z(tn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ae(()=>[Z(rp,{zoom:ne.value,onClick:w[9]||(w[9]=ot(()=>ne.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:ae(()=>[K("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:De({width:`${J(c)/(J(h).length-1)*100}%`})},null,4)]),default:ae(()=>[s.value?(L(),ke(Q,{key:0,ref_key:"body",ref:ce,zoom:ne.value,"onUpdate:zoom":w[0]||(w[0]=bt=>ne.value=bt),"page-index":B.value,pages:J($),"total-imgs":J(h).length,direction:J(m),gap:J(W),"is-long-strip":J(T),isRTL:J(x),"is-vertical":J(V),"space-top":u.value,busy:J(l),idle:ue.value,"play-controller":J(N),"touch-device":v.touchDevice,onVnodeMounted:J(ie).init,onPrev:f,onNext:d,onClick:ge,onDragEnd:ve,onWheelPassive:w[1]||(w[1]=()=>J(N).interfere())},li({_:2},[s.value&&J(h).length?{name:"end",fn:ae(()=>{var bt;return[Z(F,{"has-next":!!((bt=k.value)!=null&&bt.nextPath),onNext:oe,onHide:I},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),a.value&&!A.value&&!v.tourEnabled?(L(),ke(re,{key:1,direction:J(m)},null,8,["direction"])):Me("",!0),a.value&&!A.value?(L(),ke(be,{key:2,playing:!!J(N).isPlaying.value},null,8,["playing"])):Me("",!0),U.value?(L(),ke(me,{key:3,"touch-device":v.touchDevice,onHide:E},null,8,["touch-device"])):Me("",!0),v.tourEnabled?(L(),ke(Ce,{key:4,onHide:w[2]||(w[2]=()=>t("tourEnabledChanged",!1))})):Me("",!0)]),_:2},[v.raw?{name:"back",fn:ae(()=>[Z(He,{href:v.raw.title.url,title:"Back to manga"},{default:ae(()=>[Z(qe)]),_:1},8,["href"])]),key:"0"}:void 0,v.touchDevice?void 0:{name:"exit",fn:ae(()=>[Z(He,{title:"Hide reader","data-tour":"You have entered Trackkun reader mode, press here to return to the original page",onClick:I},{default:ae(()=>[Z(lo)]),_:1})]),key:"1"},k.value?{name:"chapter-nav",fn:ae(()=>[Z(Ut,{modelValue:k.value.activeIndex,label:k.value.activeLabel,title:"Select chapter",items:k.value.chapters,"onUpdate:modelValue":ze},{item:ae(({item:bt})=>[It(Je(bt.label),1)]),_:1},8,["modelValue","label","items"]),D.value||ee.value?(L(),Y("div",Nd,[Z(He,{title:`${J(x)?"Next":"Prev"} chapter (←)`,href:D.value,disabled:!D.value,class:"!rounded-r-none"},{default:ae(()=>[Z(ao)]),_:1},8,["title","href","disabled"]),Z(He,{title:`${J(x)?"Prev":"Next"} chapter (→)`,href:ee.value,disabled:!ee.value,class:"!rounded-l-none"},{default:ae(()=>[Z(Ne)]),_:1},8,["title","href","disabled"])])):Me("",!0)]),key:"2"}:void 0,J($).length?{name:"page-nav",fn:ae(()=>[Z(rt,{"model-value":B.value,disabled:!a.value,pages:J($),"total-imgs":J(h).length,"onUpdate:modelValue":J(ie).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,v.raw?{name:"entry",fn:ae(()=>[Z(He,{title:v.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:M},{default:ae(()=>[v.entryId?(L(),ke(co,{key:0})):(L(),ke(Jd,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,v.touchDevice?void 0:{name:"full-screen",fn:ae(()=>[Z(He,{title:`${_.value?"Exit":"Enter"} fullscreen (F)`,onClick:R},{default:ae(()=>[_.value?(L(),ke(Gd,{key:0})):(L(),ke(ep,{key:1}))]),_:1},8,["title"])]),key:"5"},J(T)?{name:"play",fn:ae(()=>[Z(He,{"data-tour":"Press here to play like a video",title:`${J(N).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!a.value,onClick:w[8]||(w[8]=()=>J(N).toggle())},{default:ae(()=>[J(N).isPlaying.value?(L(),ke(np,{key:0})):(L(),ke(op,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0]),1032,["loading","immediate","full-screen","idle","space-top","rtl"])):Me("",!0)}}}),Ks=we(Fd,[["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
|
+
`]]]),Vd=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),Hd={},Wd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Ud=[K("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 Kd(e,t){return L(),Y("svg",Wd,Ud)}const Yd=Object.freeze(Object.defineProperty({__proto__:null,default:we(Hd,[["render",Kd]])},Symbol.toStringTag,{value:"Module"})),Xd=`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>: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
|
+
`,Cn="gear-second",fr={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,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},Xe={promise:void 0,data:sn({...fr})};async function qd(e){return Xe.promise?(Xe.data.raw=e.raw,await Xe.promise):(Xe.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(Cn),Object.assign(Xe.data,fr),Xe.promise=void 0)};Object.assign(Xe.data,fr,e,{immediate:i,onReady(){i||(a(),setTimeout(()=>r.setAttribute("style","")))},onError(){var c,u;s(),o?((c=e.onDispose)==null||c.call(e),(u=e.onError)==null||u.call(e)):l()},onDispose:()=>{var c;s(),(c=e==null?void 0:e.onDispose)==null||c.call(e)},onFullScreenChanged:c=>{var u;Xe.data.fullScreen=c,(u=e.onFullScreenChanged)==null||u.call(e,c)},onPageChanged:c=>{var u;Xe.data.page=c,(u=e.onPageChanged)==null||u.call(e,c)},onTourEnabledChanged:c=>{Xe.data.tourEnabled=c}}),Zd().then(()=>{if(n){l();return}r=document.createElement(Cn),document.documentElement.classList.add(Cn),i?(document.body.appendChild(r),setTimeout(a)):(r.setAttribute("style","background-color: transparent !important"),document.body.appendChild(r))});function a(){o||(o=!0,t({triggerDoubleTap:(c,u)=>dd(c,u),updateArgs(c){Object.assign(Xe.data,c)},dispose:s}))}function l(){o||t(void 0)}}),await Xe.promise)}async function Zd(){if(window.customElements.get(Cn))return;const e=document.createElement("style");e.appendChild(document.createTextNode(Xd)),document.head.appendChild(e);const t=lc({styles:[await Qd()],data:()=>({readerData:Xe.data}),render(){return zi(Ks,this.readerData)}});window.customElements.define(Cn,t)}async function Qd(){const e=Object.assign({"./TrackkunReader.vue":Vd,"./components/AutoNext.vue":Sd,"./components/BottomSheet.vue":du,"./components/ButtonDropdown.vue":bf,"./components/ButtonIcon.vue":tu,"./components/ButtonReaderSettings.vue":Fu,"./components/ButtonResetZoom.vue":Fc,"./components/DirectionToast.vue":ud,"./components/HelpScreen.vue":od,"./components/InputPercentage.vue":gu,"./components/InputSelect.vue":yu,"./components/IntersectionWrapper.vue":gd,"./components/LoadingIndicator.vue":Sc,"./components/PageNav.vue":yf,"./components/PauseToast.vue":rd,"./components/ReaderBody.vue":wd,"./components/ReaderLayout.vue":Mc,"./components/ReaderTour.vue":td,"./components/TableField.vue":_u,"./components/ZoomWrapper.vue":hd,"./components/icons/IconBack.vue":Nf,"./components/icons/IconBookmarkNew.vue":nf,"./components/icons/IconBookmarked.vue":af,"./components/icons/IconChevronLeft.vue":Pf,"./components/icons/IconChevronRight.vue":Sf,"./components/icons/IconClose.vue":su,"./components/icons/IconExclamationCircle.vue":Yd,"./components/icons/IconFullscreen.vue":Ku,"./components/icons/IconFullscreenExit.vue":Qu,"./components/icons/IconHelp.vue":Su,"./components/icons/IconNext.vue":cd,"./components/icons/IconPause.vue":Qc,"./components/icons/IconPlay.vue":Kc,"./components/icons/IconReaderExit.vue":Af,"./components/icons/IconSettings.vue":Pu,"./components/icons/IconTriangle.vue":pf,"./components/icons/IconZoom.vue":Bc}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return qd});
|