gear-second 1.1.1 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +9 -9
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(Ne,ie){typeof exports=="object"&&typeof module<"u"?module.exports=ie():typeof define=="function"&&define.amd?define(ie):(Ne=typeof globalThis<"u"?globalThis:Ne||self,Ne._gearSecond_=ie())})(this,function(){"use strict";var Mp=Object.defineProperty;var Lp=(Ne,ie,We)=>ie in Ne?Mp(Ne,ie,{enumerable:!0,configurable:!0,writable:!0,value:We}):Ne[ie]=We;var nl=(Ne,ie,We)=>(Lp(Ne,typeof ie!="symbol"?ie+"":ie,We),We);function Ne(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 ie={},We=[],Qe=()=>{},ol=()=>!1,rl=/^on[^a-z]/,Tn=e=>rl.test(e),ao=e=>e.startsWith("onUpdate:"),ve=Object.assign,co=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},sl=Object.prototype.hasOwnProperty,ae=(e,t)=>sl.call(e,t),Z=Array.isArray,Vt=e=>$n(e)==="[object Map]",mr=e=>$n(e)==="[object Set]",te=e=>typeof e=="function",_e=e=>typeof e=="string",uo=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",vr=e=>pe(e)&&te(e.then)&&te(e.catch),_r=Object.prototype.toString,$n=e=>_r.call(e),il=e=>$n(e).slice(8,-1),br=e=>$n(e)==="[object Object]",fo=e=>_e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Sn=Ne(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ll=/-(\w)/g,Re=Pn(e=>e.replace(ll,(t,n)=>n?n.toUpperCase():"")),al=/\B([A-Z])/g,Ue=Pn(e=>e.replace(al,"-$1").toLowerCase()),En=Pn(e=>e.charAt(0).toUpperCase()+e.slice(1)),po=Pn(e=>e?`on${En(e)}`:""),on=(e,t)=>!Object.is(e,t),In=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},On=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ho=e=>{const t=parseFloat(e);return isNaN(t)?e:t},go=e=>{const t=_e(e)?Number(e):NaN;return isNaN(t)?e:t};let yr;const mo=()=>yr||(yr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ee(e){if(Z(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=_e(o)?dl(o):Ee(o);if(r)for(const s in r)t[s]=r[s]}return t}else{if(_e(e))return e;if(pe(e))return e}}const cl=/;(?![^(]*\))/g,ul=/:([^]+)/,fl=/\/\*[^]*?\*\//g;function dl(e){const t={};return e.replace(fl,"").split(cl).forEach(n=>{if(n){const o=n.split(ul);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function xe(e){let t="";if(_e(e))t=e;else if(Z(e))for(let n=0;n<e.length;n++){const o=xe(e[n]);o&&(t+=o+" ")}else if(pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const pl=Ne("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function wr(e){return!!e||e===""}const Ke=e=>_e(e)?e:e==null?"":Z(e)||pe(e)&&(e.toString===_r||!te(e.toString))?JSON.stringify(e,xr,2):String(e),xr=(e,t)=>t&&t.__v_isRef?xr(e,t.value):Vt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:mr(t)?{[`Set(${t.size})`]:[...t.values()]}:pe(t)&&!Z(t)&&!br(t)?String(t):t;let Fe;class hl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Fe,!t&&Fe&&(this.index=(Fe.scopes||(Fe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Fe;try{return Fe=this,t()}finally{Fe=n}}}on(){Fe=this}off(){Fe=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function gl(e,t=Fe){t&&t.active&&t.effects.push(e)}function Cr(){return Fe}function ml(e){Fe&&Fe.cleanups.push(e)}const vo=e=>{const t=new Set(e);return t.w=0,t.n=0,t},kr=e=>(e.w&vt)>0,Tr=e=>(e.n&vt)>0,vl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=vt},_l=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];kr(r)&&!Tr(r)?r.delete(e):t[n++]=r,r.w&=~vt,r.n&=~vt}t.length=n}},_o=new WeakMap;let rn=0,vt=1;const bo=30;let Ge;const It=Symbol(""),yo=Symbol("");class wo{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,gl(this,o)}run(){if(!this.active)return this.fn();let t=Ge,n=_t;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Ge,Ge=this,_t=!0,vt=1<<++rn,rn<=bo?vl(this):$r(this),this.fn()}finally{rn<=bo&&_l(this),vt=1<<--rn,Ge=this.parent,_t=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ge===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 _t=!0;const Sr=[];function Wt(){Sr.push(_t),_t=!1}function Ut(){const e=Sr.pop();_t=e===void 0?!0:e}function Be(e,t,n){if(_t&&Ge){let o=_o.get(e);o||_o.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=vo()),Pr(r)}}function Pr(e,t){let n=!1;rn<=bo?Tr(e)||(e.n|=vt,n=!kr(e)):n=!e.has(Ge),n&&(e.add(Ge),Ge.deps.push(e))}function ct(e,t,n,o,r,s){const i=_o.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&Z(e)){const l=Number(o);i.forEach((c,f)=>{(f==="length"||f>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":Z(e)?fo(n)&&a.push(i.get("length")):(a.push(i.get(It)),Vt(e)&&a.push(i.get(yo)));break;case"delete":Z(e)||(a.push(i.get(It)),Vt(e)&&a.push(i.get(yo)));break;case"set":Vt(e)&&a.push(i.get(It));break}if(a.length===1)a[0]&&xo(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);xo(vo(l))}}function xo(e,t){const n=Z(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!==Ge||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const bl=Ne("__proto__,__v_isRef,__isVue"),Ir=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(uo)),yl=Co(),wl=Co(!1,!0),xl=Co(!0),Or=Cl();function Cl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ce(this);for(let s=0,i=this.length;s<i;s++)Be(o,"get",s+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(ce)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Wt();const o=ce(this)[t].apply(this,n);return Ut(),o}}),e}function kl(e){const t=ce(this);return Be(t,"has",e),t.hasOwnProperty(e)}function Co(e=!1,t=!1){return function(o,r,s){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&s===(e?t?Rl:Rr:t?Nr:Dr).get(o))return o;const i=Z(o);if(!e){if(i&&ae(Or,r))return Reflect.get(Or,r,s);if(r==="hasOwnProperty")return kl}const a=Reflect.get(o,r,s);return(uo(r)?Ir.has(r):bl(r))||(e||Be(o,"get",r),t)?a:be(a)?i&&fo(r)?a:a.value:pe(a)?e?$o(a):sn(a):a}}const Tl=Mr(),$l=Mr(!0);function Mr(e=!1){return function(n,o,r,s){let i=n[o];if(Yt(i)&&be(i)&&!be(r))return!1;if(!e&&(!Dn(r)&&!Yt(r)&&(i=ce(i),r=ce(r)),!Z(n)&&be(i)&&!be(r)))return i.value=r,!0;const a=Z(n)&&fo(o)?Number(o)<n.length:ae(n,o),l=Reflect.set(n,o,r,s);return n===ce(s)&&(a?on(r,i)&&ct(n,"set",o,r):ct(n,"add",o,r)),l}}function Sl(e,t){const n=ae(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&ct(e,"delete",t,void 0),o}function Pl(e,t){const n=Reflect.has(e,t);return(!uo(t)||!Ir.has(t))&&Be(e,"has",t),n}function El(e){return Be(e,"iterate",Z(e)?"length":It),Reflect.ownKeys(e)}const Lr={get:yl,set:Tl,deleteProperty:Sl,has:Pl,ownKeys:El},Il={get:xl,set(e,t){return!0},deleteProperty(e,t){return!0}},Ol=ve({},Lr,{get:wl,set:$l}),ko=e=>e,Mn=e=>Reflect.getPrototypeOf(e);function Ln(e,t,n=!1,o=!1){e=e.__v_raw;const r=ce(e),s=ce(t);n||(t!==s&&Be(r,"get",t),Be(r,"get",s));const{has:i}=Mn(r),a=o?ko:n?Po:ln;if(i.call(r,t))return a(e.get(t));if(i.call(r,s))return a(e.get(s));e!==r&&e.get(t)}function zn(e,t=!1){const n=this.__v_raw,o=ce(n),r=ce(e);return t||(e!==r&&Be(o,"has",e),Be(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&&Be(ce(e),"iterate",It),Reflect.get(e,"size",e)}function zr(e){e=ce(e);const t=ce(this);return Mn(t).has.call(t,e)||(t.add(e),ct(t,"add",e,e)),this}function jr(e,t){t=ce(t);const n=ce(this),{has:o,get:r}=Mn(n);let s=o.call(n,e);s||(e=ce(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?on(t,i)&&ct(n,"set",e,t):ct(n,"add",e,t),this}function Ar(e){const t=ce(this),{has:n,get:o}=Mn(t);let r=n.call(t,e);r||(e=ce(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&ct(t,"delete",e,void 0),s}function Br(){const e=ce(this),t=e.size!==0,n=e.clear();return t&&ct(e,"clear",void 0,void 0),n}function An(e,t){return function(o,r){const s=this,i=s.__v_raw,a=ce(i),l=t?ko:e?Po:ln;return!e&&Be(a,"iterate",It),i.forEach((c,f)=>o.call(r,l(c),l(f),s))}}function Bn(e,t,n){return function(...o){const r=this.__v_raw,s=ce(r),i=Vt(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=r[e](...o),f=n?ko:t?Po:ln;return!t&&Be(s,"iterate",l?yo:It),{next(){const{value:u,done:g}=c.next();return g?{value:u,done:g}:{value:a?[f(u[0]),f(u[1])]:f(u),done:g}},[Symbol.iterator](){return this}}}}function bt(e){return function(...t){return e==="delete"?!1:this}}function Ml(){const e={get(s){return Ln(this,s)},get size(){return jn(this)},has:zn,add:zr,set:jr,delete:Ar,clear:Br,forEach:An(!1,!1)},t={get(s){return Ln(this,s,!1,!0)},get size(){return jn(this)},has:zn,add:zr,set:jr,delete:Ar,clear:Br,forEach:An(!1,!0)},n={get(s){return Ln(this,s,!0)},get size(){return jn(this,!0)},has(s){return zn.call(this,s,!0)},add:bt("add"),set:bt("set"),delete:bt("delete"),clear:bt("clear"),forEach:An(!0,!1)},o={get(s){return Ln(this,s,!0,!0)},get size(){return jn(this,!0)},has(s){return zn.call(this,s,!0)},add:bt("add"),set:bt("set"),delete:bt("delete"),clear:bt("clear"),forEach:An(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Bn(s,!1,!1),n[s]=Bn(s,!0,!1),t[s]=Bn(s,!1,!0),o[s]=Bn(s,!0,!0)}),[e,n,t,o]}const[Ll,zl,jl,Al]=Ml();function To(e,t){const n=t?e?Al:jl:e?zl:Ll;return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ae(n,r)&&r in o?n:o,r,s)}const Bl={get:To(!1,!1)},Dl={get:To(!1,!0)},Nl={get:To(!0,!1)},Dr=new WeakMap,Nr=new WeakMap,Rr=new WeakMap,Rl=new WeakMap;function Fl(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:Fl(il(e))}function sn(e){return Yt(e)?e:So(e,!1,Lr,Bl,Dr)}function Vl(e){return So(e,!1,Ol,Dl,Nr)}function $o(e){return So(e,!0,Il,Nl,Rr)}function So(e,t,n,o,r){if(!pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=Hl(e);if(i===0)return e;const a=new Proxy(e,i===2?o:n);return r.set(e,a),a}function Kt(e){return Yt(e)?Kt(e.__v_raw):!!(e&&e.__v_isReactive)}function Yt(e){return!!(e&&e.__v_isReadonly)}function Dn(e){return!!(e&&e.__v_isShallow)}function Fr(e){return Kt(e)||Yt(e)}function ce(e){const t=e&&e.__v_raw;return t?ce(t):e}function Hr(e){return On(e,"__v_skip",!0),e}const ln=e=>pe(e)?sn(e):e,Po=e=>pe(e)?$o(e):e;function Vr(e){_t&&Ge&&(e=ce(e),Pr(e.dep||(e.dep=vo())))}function Wr(e,t){e=ce(e);const n=e.dep;n&&xo(n)}function be(e){return!!(e&&e.__v_isRef===!0)}function J(e){return Ur(e,!1)}function Wl(e){return Ur(e,!0)}function Ur(e,t){return be(e)?e:new Ul(e,t)}class Ul{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ce(t),this._value=n?t:ln(t)}get value(){return Vr(this),this._value}set value(t){const n=this.__v_isShallow||Dn(t)||Yt(t);t=n?t:ce(t),on(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ln(t),Wr(this))}}function F(e){return be(e)?e.value:e}const Kl={get:(e,t,n)=>F(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return be(r)&&!be(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Kr(e){return Kt(e)?e:new Proxy(e,Kl)}class Yl{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new wo(t,()=>{this._dirty||(this._dirty=!0,Wr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=ce(this);return Vr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Xl(e,t,n=!1){let o,r;const s=te(e);return s?(o=e,r=Qe):(o=e.get,r=e.set),new Yl(o,r,s||!r,n)}function jp(e,...t){}function yt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){Nn(s,t,n)}return r}function Ye(e,t,n,o){if(te(e)){const s=yt(e,t,n,o);return s&&vr(s)&&s.catch(i=>{Nn(i,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(Ye(e[s],t,n,o));return r}function Nn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const i=t.proxy,a=n;for(;s;){const c=s.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,i,a)===!1)return}s=s.parent}const l=t.appContext.config.errorHandler;if(l){yt(l,null,10,[e,i,a]);return}}ql(e,n,r,o)}function ql(e,t,n,o=!0){console.error(e)}let an=!1,Eo=!1;const Ie=[];let st=0;const Xt=[];let ut=null,Ot=0;const Yr=Promise.resolve();let Io=null;function et(e){const t=Io||Yr;return e?t.then(this?e.bind(this):e):t}function Zl(e){let t=st+1,n=Ie.length;for(;t<n;){const o=t+n>>>1;cn(Ie[o])<e?t=o+1:n=o}return t}function Oo(e){(!Ie.length||!Ie.includes(e,an&&e.allowRecurse?st+1:st))&&(e.id==null?Ie.push(e):Ie.splice(Zl(e.id),0,e),Xr())}function Xr(){!an&&!Eo&&(Eo=!0,Io=Yr.then(Jr))}function Jl(e){const t=Ie.indexOf(e);t>st&&Ie.splice(t,1)}function Ql(e){Z(e)?Xt.push(...e):(!ut||!ut.includes(e,e.allowRecurse?Ot+1:Ot))&&Xt.push(e),Xr()}function qr(e,t=an?st+1:0){for(;t<Ie.length;t++){const n=Ie[t];n&&n.pre&&(Ie.splice(t,1),t--,n())}}function Zr(e){if(Xt.length){const t=[...new Set(Xt)];if(Xt.length=0,ut){ut.push(...t);return}for(ut=t,ut.sort((n,o)=>cn(n)-cn(o)),Ot=0;Ot<ut.length;Ot++)ut[Ot]();ut=null,Ot=0}}const cn=e=>e.id==null?1/0:e.id,Gl=(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 Jr(e){Eo=!1,an=!0,Ie.sort(Gl);const t=Qe;try{for(st=0;st<Ie.length;st++){const n=Ie[st];n&&n.active!==!1&&yt(n,null,14)}}finally{st=0,Ie.length=0,Zr(),an=!1,Io=null,(Ie.length||Xt.length)&&Jr()}}function ea(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ie;let r=n;const s=t.startsWith("update:"),i=s&&t.slice(7);if(i&&i in o){const f=`${i==="modelValue"?"model":i}Modifiers`,{number:u,trim:g}=o[f]||ie;g&&(r=n.map(x=>_e(x)?x.trim():x)),u&&(r=n.map(ho))}let a,l=o[a=po(t)]||o[a=po(Re(t))];!l&&s&&(l=o[a=po(Ue(t))]),l&&Ye(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,Ye(c,e,6,r)}}function Qr(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const s=e.emits;let i={},a=!1;if(!te(e)){const l=c=>{const f=Qr(c,t,!0);f&&(a=!0,ve(i,f))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(pe(e)&&o.set(e,null),null):(Z(s)?s.forEach(l=>i[l]=null):ve(i,s),pe(e)&&o.set(e,i),i)}function Rn(e,t){return!e||!Tn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ae(e,t[0].toLowerCase()+t.slice(1))||ae(e,Ue(t))||ae(e,t))}let Se=null,Gr=null;function Fn(e){const t=Se;return Se=e,Gr=e&&e.type.__scopeId||null,t}function ne(e,t=Se,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Es(-1);const s=Fn(t);let i;try{i=e(...r)}finally{Fn(s),o._d&&Es(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function Ap(){}function Mo(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:a,attrs:l,emit:c,render:f,renderCache:u,data:g,setupState:x,ctx:T,inheritAttrs:y}=e;let W,D;const Y=Fn(e);try{if(n.shapeFlag&4){const v=r||o;W=it(f.call(v,v,u,s,x,g,T)),D=l}else{const v=t;W=it(v.length>1?v(s,{attrs:l,slots:a,emit:c}):v(s,null)),D=t.props?l:ta(l)}}catch(v){hn.length=0,Nn(v,e,1),W=K(Ze)}let N=W;if(D&&y!==!1){const v=Object.keys(D),{shapeFlag:S}=N;v.length&&S&7&&(i&&v.some(ao)&&(D=na(D,i)),N=wt(N,D))}return n.dirs&&(N=wt(N),N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition&&(N.transition=n.transition),W=N,Fn(Y),W}const ta=e=>{let t;for(const n in e)(n==="class"||n==="style"||Tn(n))&&((t||(t={}))[n]=e[n]);return t},na=(e,t)=>{const n={};for(const o in e)(!ao(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function oa(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?es(o,i,c):!!i;if(l&8){const f=t.dynamicProps;for(let u=0;u<f.length;u++){const g=f[u];if(i[g]!==o[g]&&!Rn(c,g))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:o===i?!1:o?i?es(o,i,c):!0:!!i;return!1}function es(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const s=o[r];if(t[s]!==e[s]&&!Rn(n,s))return!0}return!1}function ra({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const sa=e=>e.__isSuspense;function ia(e,t){t&&t.pendingBranch?Z(e)?t.effects.push(...e):t.effects.push(e):Ql(e)}function la(e,t){return Lo(e,null,t)}const Hn={};function ue(e,t,n){return Lo(e,t,n)}function Lo(e,t,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:i}=ie){var a;const l=Cr()===((a=Te)==null?void 0:a.scope)?Te:null;let c,f=!1,u=!1;if(be(e)?(c=()=>e.value,f=Dn(e)):Kt(e)?(c=()=>e,o=!0):Z(e)?(u=!0,f=e.some(v=>Kt(v)||Dn(v)),c=()=>e.map(v=>{if(be(v))return v.value;if(Kt(v))return Mt(v);if(te(v))return yt(v,l,2)})):te(e)?t?c=()=>yt(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return g&&g(),Ye(e,l,3,[x])}:c=Qe,t&&o){const v=c;c=()=>Mt(v())}let g,x=v=>{g=Y.onStop=()=>{yt(v,l,4)}},T;if(mn)if(x=Qe,t?n&&Ye(t,l,3,[c(),u?[]:void 0,x]):c(),r==="sync"){const v=Ga();T=v.__watcherHandles||(v.__watcherHandles=[])}else return Qe;let y=u?new Array(e.length).fill(Hn):Hn;const W=()=>{if(Y.active)if(t){const v=Y.run();(o||f||(u?v.some((S,k)=>on(S,y[k])):on(v,y)))&&(g&&g(),Ye(t,l,3,[v,y===Hn?void 0:u&&y[0]===Hn?[]:y,x]),y=v)}else Y.run()};W.allowRecurse=!!t;let D;r==="sync"?D=W:r==="post"?D=()=>De(W,l&&l.suspense):(W.pre=!0,l&&(W.id=l.uid),D=()=>Oo(W));const Y=new wo(c,D);t?n?W():y=Y.run():r==="post"?De(Y.run.bind(Y),l&&l.suspense):Y.run();const N=()=>{Y.stop(),l&&l.scope&&co(l.scope.effects,Y)};return T&&T.push(N),N}function aa(e,t,n){const o=this.proxy,r=_e(e)?e.includes(".")?ts(o,e):()=>o[e]:e.bind(o,o);let s;te(t)?s=t:(s=t.handler,n=t);const i=Te;Zt(this);const a=Lo(r,s.bind(o),n);return i?Zt(i):Bt(),a}function ts(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r<n.length&&o;r++)o=o[n[r]];return o}}function Mt(e,t){if(!pe(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),be(e))Mt(e.value,t);else if(Z(e))for(let n=0;n<e.length;n++)Mt(e[n],t);else if(mr(e)||Vt(e))e.forEach(n=>{Mt(n,t)});else if(br(e))for(const n in e)Mt(e[n],t);return e}function ft(e,t){const n=Se;if(n===null)return e;const o=Gn(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,a,l,c=ie]=t[s];i&&(te(i)&&(i={mounted:i,updated:i}),i.deep&&Mt(a),r.push({dir:i,instance:o,value:a,oldValue:void 0,arg:l,modifiers:c}))}return e}function Lt(e,t,n,o){const r=e.dirs,s=t&&t.dirs;for(let i=0;i<r.length;i++){const a=r[i];s&&(a.oldValue=s[i].value);let l=a.dir[o];l&&(Wt(),Ye(l,n,8,[e.el,a,e,t]),Ut())}}function ca(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return qe(()=>{e.isMounted=!0}),ls(()=>{e.isUnmounting=!0}),e}const Xe=[Function,Array],ns={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Xe,onEnter:Xe,onAfterEnter:Xe,onEnterCancelled:Xe,onBeforeLeave:Xe,onLeave:Xe,onAfterLeave:Xe,onLeaveCancelled:Xe,onBeforeAppear:Xe,onAppear:Xe,onAfterAppear:Xe,onAppearCancelled:Xe},ua={name:"BaseTransition",props:ns,setup(e,{slots:t}){const n=Ms(),o=ca();let r;return()=>{const s=t.default&&ss(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const y of s)if(y.type!==Ze){i=y;break}}const a=ce(e),{mode:l}=a;if(o.isLeaving)return jo(i);const c=rs(i);if(!c)return jo(i);const f=zo(c,a,o,n);Ao(c,f);const u=n.subTree,g=u&&rs(u);let x=!1;const{getTransitionKey:T}=c.type;if(T){const y=T();r===void 0?r=y:y!==r&&(r=y,x=!0)}if(g&&g.type!==Ze&&(!At(c,g)||x)){const y=zo(g,a,o,n);if(Ao(g,y),l==="out-in")return o.isLeaving=!0,y.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},jo(i);l==="in-out"&&c.type!==Ze&&(y.delayLeave=(W,D,Y)=>{const N=os(o,g);N[String(g.key)]=g,W._leaveCb=()=>{D(),W._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=Y})}return i}}};function os(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function zo(e,t,n,o){const{appear:r,mode:s,persisted:i=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:u,onLeave:g,onAfterLeave:x,onLeaveCancelled:T,onBeforeAppear:y,onAppear:W,onAfterAppear:D,onAppearCancelled:Y}=t,N=String(e.key),v=os(n,e),S=(m,b)=>{m&&Ye(m,o,9,b)},k=(m,b)=>{const C=b[1];S(m,b),Z(m)?m.every(U=>U.length<=1)&&C():m.length<=1&&C()},P={mode:s,persisted:i,beforeEnter(m){let b=a;if(!n.isMounted)if(r)b=y||a;else return;m._leaveCb&&m._leaveCb(!0);const C=v[N];C&&At(e,C)&&C.el._leaveCb&&C.el._leaveCb(),S(b,[m])},enter(m){let b=l,C=c,U=f;if(!n.isMounted)if(r)b=W||l,C=D||c,U=Y||f;else return;let O=!1;const R=m._enterCb=Q=>{O||(O=!0,Q?S(U,[m]):S(C,[m]),P.delayedLeave&&P.delayedLeave(),m._enterCb=void 0)};b?k(b,[m,R]):R()},leave(m,b){const C=String(e.key);if(m._enterCb&&m._enterCb(!0),n.isUnmounting)return b();S(u,[m]);let U=!1;const O=m._leaveCb=R=>{U||(U=!0,b(),R?S(T,[m]):S(x,[m]),m._leaveCb=void 0,v[C]===e&&delete v[C])};v[C]=e,g?k(g,[m,O]):O()},clone(m){return zo(m,t,n,o)}};return P}function jo(e){if(Vn(e))return e=wt(e),e.children=null,e}function rs(e){return Vn(e)?e.children?e.children[0]:void 0:e}function Ao(e,t){e.shapeFlag&6&&e.component?Ao(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ss(e,t=!1,n){let o=[],r=0;for(let s=0;s<e.length;s++){let i=e[s];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===ge?(i.patchFlag&128&&r++,o=o.concat(ss(i.children,t,a))):(t||i.type!==Ze)&&o.push(a!=null?wt(i,{key:a}):i)}if(r>1)for(let s=0;s<o.length;s++)o[s].patchFlag=-2;return o}function Ce(e,t){return te(e)?(()=>ve({name:e.name},t,{setup:e}))():e}const un=e=>!!e.type.__asyncLoader,Vn=e=>e.type.__isKeepAlive;function fa(e,t){is(e,"a",t)}function da(e,t){is(e,"da",t)}function is(e,t,n=Te){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Wn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Vn(r.parent.vnode)&&pa(o,t,n,r),r=r.parent}}function pa(e,t,n,o){const r=Wn(t,e,o,!0);He(()=>{co(o[t],r)},n)}function Wn(e,t,n=Te,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Wt(),Zt(n);const a=Ye(t,n,e,i);return Bt(),Ut(),a});return o?r.unshift(s):r.push(s),s}}const dt=e=>(t,n=Te)=>(!mn||e==="sp")&&Wn(e,(...o)=>t(...o),n),ha=dt("bm"),qe=dt("m"),ga=dt("bu"),ma=dt("u"),ls=dt("bum"),He=dt("um"),va=dt("sp"),_a=dt("rtg"),ba=dt("rtc");function ya(e,t=Te){Wn("ec",e,t)}const as="components",cs=Symbol.for("v-ndc");function wa(e){return _e(e)?xa(as,e,!1)||e:e||cs}function xa(e,t,n=!0,o=!1){const r=Se||Te;if(r){const s=r.type;if(e===as){const a=Za(s,!1);if(a&&(a===t||a===Re(t)||a===En(Re(t))))return s}const i=us(r[e]||s[e],t)||us(r.appContext[e],t);return!i&&o?s:i}}function us(e,t){return e&&(e[t]||e[Re(t)]||e[En(Re(t))])}function fn(e,t,n,o){let r;const s=n&&n[o];if(Z(e)||_e(e)){r=new Array(e.length);for(let i=0,a=e.length;i<a;i++)r[i]=t(e[i],i,void 0,s&&s[i])}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,s&&s[i])}else if(pe(e))if(e[Symbol.iterator])r=Array.from(e,(i,a)=>t(i,a,void 0,s&&s[a]));else{const i=Object.keys(e);r=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const c=i[a];r[a]=t(e[c],c,a,s&&s[a])}}else r=[];return n&&(n[o]=r),r}function fs(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(Z(o))for(let r=0;r<o.length;r++)e[o[r].name]=o[r].fn;else o&&(e[o.name]=o.key?(...r)=>{const s=o.fn(...r);return s&&(s.key=o.key),s}:o.fn)}return e}function ke(e,t,n={},o,r){if(Se.isCE||Se.parent&&un(Se.parent)&&Se.parent.isCE)return t!=="default"&&(n.name=t),K("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),A();const i=s&&ds(s(n)),a=ye(ge,{key:n.key||i&&i.key||`_${t}`},i||(o?o():[]),i&&e._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function ds(e){return e.some(t=>qn(t)?!(t.type===Ze||t.type===ge&&!ds(t.children)):!0)?e:null}const Bo=e=>e?zs(e)?Gn(e)||e.proxy:Bo(e.parent):null,dn=ve(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Bo(e.parent),$root:e=>Bo(e.root),$emit:e=>e.emit,$options:e=>Ro(e),$forceUpdate:e=>e.f||(e.f=()=>Oo(e.update)),$nextTick:e=>e.n||(e.n=et.bind(e.proxy)),$watch:e=>aa.bind(e)}),Do=(e,t)=>e!==ie&&!e.__isScriptSetup&&ae(e,t),Ca={get({_:e},t){const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const x=i[t];if(x!==void 0)switch(x){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(Do(o,t))return i[t]=1,o[t];if(r!==ie&&ae(r,t))return i[t]=2,r[t];if((c=e.propsOptions[0])&&ae(c,t))return i[t]=3,s[t];if(n!==ie&&ae(n,t))return i[t]=4,n[t];No&&(i[t]=0)}}const f=dn[t];let u,g;if(f)return t==="$attrs"&&Be(e,"get",t),f(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(n!==ie&&ae(n,t))return i[t]=4,n[t];if(g=l.config.globalProperties,ae(g,t))return g[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return Do(r,t)?(r[t]=n,!0):o!==ie&&ae(o,t)?(o[t]=n,!0):ae(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:s}},i){let a;return!!n[i]||e!==ie&&ae(e,i)||Do(t,i)||(a=s[0])&&ae(a,i)||ae(o,i)||ae(dn,i)||ae(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ae(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ps(e){return Z(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let No=!0;function ka(e){const t=Ro(e),n=e.proxy,o=e.ctx;No=!1,t.beforeCreate&&hs(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:a,provide:l,inject:c,created:f,beforeMount:u,mounted:g,beforeUpdate:x,updated:T,activated:y,deactivated:W,beforeDestroy:D,beforeUnmount:Y,destroyed:N,unmounted:v,render:S,renderTracked:k,renderTriggered:P,errorCaptured:m,serverPrefetch:b,expose:C,inheritAttrs:U,components:O,directives:R,filters:Q}=t;if(c&&Ta(c,o,null),i)for(const $ in i){const L=i[$];te(L)&&(o[$]=L.bind(n))}if(r){const $=r.call(n,n);pe($)&&(e.data=sn($))}if(No=!0,s)for(const $ in s){const L=s[$],ee=te(L)?L.bind(n,n):te(L.get)?L.get.bind(n,n):Qe,we=!te(L)&&te(L.set)?L.set.bind(n):Qe,rt=le({get:ee,set:we});Object.defineProperty(o,$,{enumerable:!0,configurable:!0,get:()=>rt.value,set:Oe=>rt.value=Oe})}if(a)for(const $ in a)gs(a[$],o,n,$);if(l){const $=te(l)?l.call(n):l;Reflect.ownKeys($).forEach(L=>{Yn(L,$[L])})}f&&hs(f,e,"c");function re($,L){Z(L)?L.forEach(ee=>$(ee.bind(n))):L&&$(L.bind(n))}if(re(ha,u),re(qe,g),re(ga,x),re(ma,T),re(fa,y),re(da,W),re(ya,m),re(ba,k),re(_a,P),re(ls,Y),re(He,v),re(va,b),Z(C))if(C.length){const $=e.exposed||(e.exposed={});C.forEach(L=>{Object.defineProperty($,L,{get:()=>n[L],set:ee=>n[L]=ee})})}else e.exposed||(e.exposed={});S&&e.render===Qe&&(e.render=S),U!=null&&(e.inheritAttrs=U),O&&(e.components=O),R&&(e.directives=R)}function Ta(e,t,n=Qe){Z(e)&&(e=Fo(e));for(const o in e){const r=e[o];let s;pe(r)?"default"in r?s=zt(r.from||o,r.default,!0):s=zt(r.from||o):s=zt(r),be(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[o]=s}}function hs(e,t,n){Ye(Z(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function gs(e,t,n,o){const r=o.includes(".")?ts(n,o):()=>n[o];if(_e(e)){const s=t[e];te(s)&&ue(r,s)}else if(te(e))ue(r,e.bind(n));else if(pe(e))if(Z(e))e.forEach(s=>gs(s,t,n,o));else{const s=te(e.handler)?e.handler.bind(n):t[e.handler];te(s)&&ue(r,s,e)}}function Ro(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!r.length&&!n&&!o?l=t:(l={},r.length&&r.forEach(c=>Un(l,c,i,!0)),Un(l,t,i)),pe(t)&&s.set(t,l),l}function Un(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&Un(e,s,n,!0),r&&r.forEach(i=>Un(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const a=$a[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const $a={data:ms,props:vs,emits:vs,methods:pn,computed:pn,beforeCreate:Me,created:Me,beforeMount:Me,mounted:Me,beforeUpdate:Me,updated:Me,beforeDestroy:Me,beforeUnmount:Me,destroyed:Me,unmounted:Me,activated:Me,deactivated:Me,errorCaptured:Me,serverPrefetch:Me,components:pn,directives:pn,watch:Pa,provide:ms,inject:Sa};function ms(e,t){return t?e?function(){return ve(te(e)?e.call(this,this):e,te(t)?t.call(this,this):t)}:t:e}function Sa(e,t){return pn(Fo(e),Fo(t))}function Fo(e){if(Z(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Me(e,t){return e?[...new Set([].concat(e,t))]:t}function pn(e,t){return e?ve(Object.create(null),e,t):t}function vs(e,t){return e?Z(e)&&Z(t)?[...new Set([...e,...t])]:ve(Object.create(null),ps(e),ps(t??{})):t}function Pa(e,t){if(!e)return t;if(!t)return e;const n=ve(Object.create(null),e);for(const o in t)n[o]=Me(e[o],t[o]);return n}function _s(){return{app:null,config:{isNativeTag:ol,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 Ea=0;function Ia(e,t){return function(o,r=null){te(o)||(o=ve({},o)),r!=null&&!pe(r)&&(r=null);const s=_s(),i=new Set;let a=!1;const l=s.app={_uid:Ea++,_component:o,_props:r,_container:null,_context:s,_instance:null,version:ec,get config(){return s.config},set config(c){},use(c,...f){return i.has(c)||(c&&te(c.install)?(i.add(c),c.install(l,...f)):te(c)&&(i.add(c),c(l,...f))),l},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),l},component(c,f){return f?(s.components[c]=f,l):s.components[c]},directive(c,f){return f?(s.directives[c]=f,l):s.directives[c]},mount(c,f,u){if(!a){const g=K(o,r);return g.appContext=s,f&&t?t(g,c):e(g,c,u),a=!0,l._container=c,c.__vue_app__=l,Gn(g.component)||g.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(c,f){return s.provides[c]=f,l},runWithContext(c){Kn=l;try{return c()}finally{Kn=null}}};return l}}let Kn=null;function Yn(e,t){if(Te){let n=Te.provides;const o=Te.parent&&Te.parent.provides;o===n&&(n=Te.provides=Object.create(o)),n[e]=t}}function zt(e,t,n=!1){const o=Te||Se;if(o||Kn){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Kn._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&te(t)?t.call(o&&o.proxy):t}}function Oa(e,t,n,o=!1){const r={},s={};On(s,Zn,1),e.propsDefaults=Object.create(null),bs(e,t,r,s);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:Vl(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function Ma(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,a=ce(r),[l]=e.propsOptions;let c=!1;if((o||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let u=0;u<f.length;u++){let g=f[u];if(Rn(e.emitsOptions,g))continue;const x=t[g];if(l)if(ae(s,g))x!==s[g]&&(s[g]=x,c=!0);else{const T=Re(g);r[T]=Ho(l,a,T,x,e,!1)}else x!==s[g]&&(s[g]=x,c=!0)}}}else{bs(e,t,r,s)&&(c=!0);let f;for(const u in a)(!t||!ae(t,u)&&((f=Ue(u))===u||!ae(t,f)))&&(l?n&&(n[u]!==void 0||n[f]!==void 0)&&(r[u]=Ho(l,a,u,void 0,e,!0)):delete r[u]);if(s!==a)for(const u in s)(!t||!ae(t,u))&&(delete s[u],c=!0)}c&&ct(e,"set","$attrs")}function bs(e,t,n,o){const[r,s]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Sn(l))continue;const c=t[l];let f;r&&ae(r,f=Re(l))?!s||!s.includes(f)?n[f]=c:(a||(a={}))[f]=c:Rn(e.emitsOptions,l)||(!(l in o)||c!==o[l])&&(o[l]=c,i=!0)}if(s){const l=ce(n),c=a||ie;for(let f=0;f<s.length;f++){const u=s[f];n[u]=Ho(r,l,u,c[u],e,!ae(c,u))}}return i}function Ho(e,t,n,o,r,s){const i=e[n];if(i!=null){const a=ae(i,"default");if(a&&o===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&te(l)){const{propsDefaults:c}=r;n in c?o=c[n]:(Zt(r),o=c[n]=l.call(null,t),Bt())}else o=l}i[0]&&(s&&!a?o=!1:i[1]&&(o===""||o===Ue(n))&&(o=!0))}return o}function ys(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const s=e.props,i={},a=[];let l=!1;if(!te(e)){const f=u=>{l=!0;const[g,x]=ys(u,t,!0);ve(i,g),x&&a.push(...x)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!s&&!l)return pe(e)&&o.set(e,We),We;if(Z(s))for(let f=0;f<s.length;f++){const u=Re(s[f]);ws(u)&&(i[u]=ie)}else if(s)for(const f in s){const u=Re(f);if(ws(u)){const g=s[f],x=i[u]=Z(g)||te(g)?{type:g}:ve({},g);if(x){const T=ks(Boolean,x.type),y=ks(String,x.type);x[0]=T>-1,x[1]=y<0||T<y,(T>-1||ae(x,"default"))&&a.push(u)}}}const c=[i,a];return pe(e)&&o.set(e,c),c}function ws(e){return e[0]!=="$"}function xs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Cs(e,t){return xs(e)===xs(t)}function ks(e,t){return Z(t)?t.findIndex(n=>Cs(n,e)):te(t)&&Cs(t,e)?0:-1}const Ts=e=>e[0]==="_"||e==="$stable",Vo=e=>Z(e)?e.map(it):[it(e)],La=(e,t,n)=>{if(t._n)return t;const o=ne((...r)=>Vo(t(...r)),n);return o._c=!1,o},$s=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Ts(r))continue;const s=e[r];if(te(s))t[r]=La(r,s,o);else if(s!=null){const i=Vo(s);t[r]=()=>i}}},Ss=(e,t)=>{const n=Vo(t);e.slots.default=()=>n},za=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ce(t),On(t,"_",n)):$s(t,e.slots={})}else e.slots={},t&&Ss(e,t);On(e.slots,Zn,1)},ja=(e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,i=ie;if(o.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:(ve(r,t),!n&&a===1&&delete r._):(s=!t.$stable,$s(t,r)),i=t}else t&&(Ss(e,t),i={default:1});if(s)for(const a in r)!Ts(a)&&!(a in i)&&delete r[a]};function Wo(e,t,n,o,r=!1){if(Z(e)){e.forEach((g,x)=>Wo(g,t&&(Z(t)?t[x]:t),n,o,r));return}if(un(o)&&!r)return;const s=o.shapeFlag&4?Gn(o.component)||o.component.proxy:o.el,i=r?null:s,{i:a,r:l}=e,c=t&&t.r,f=a.refs===ie?a.refs={}:a.refs,u=a.setupState;if(c!=null&&c!==l&&(_e(c)?(f[c]=null,ae(u,c)&&(u[c]=null)):be(c)&&(c.value=null)),te(l))yt(l,a,12,[i,f]);else{const g=_e(l),x=be(l);if(g||x){const T=()=>{if(e.f){const y=g?ae(u,l)?u[l]:f[l]:l.value;r?Z(y)&&co(y,s):Z(y)?y.includes(s)||y.push(s):g?(f[l]=[s],ae(u,l)&&(u[l]=f[l])):(l.value=[s],e.k&&(f[e.k]=l.value))}else g?(f[l]=i,ae(u,l)&&(u[l]=i)):x&&(l.value=i,e.k&&(f[e.k]=i))};i?(T.id=-1,De(T,n)):T()}}}const De=ia;function Aa(e){return Ba(e)}function Ba(e,t){const n=mo();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:a,createComment:l,setText:c,setElementText:f,parentNode:u,nextSibling:g,setScopeId:x=Qe,insertStaticContent:T}=e,y=(d,h,w,p=null,_=null,I=null,z=!1,M=null,j=!!h.dynamicChildren)=>{if(d===h)return;d&&!At(d,h)&&(p=mt(d),Oe(d,_,I,!0),d=null),h.patchFlag===-2&&(j=!1,h.dynamicChildren=null);const{type:E,ref:X,shapeFlag:B}=h;switch(E){case Xn:W(d,h,w,p);break;case Ze:D(d,h,w,p);break;case Uo:d==null&&Y(h,w,p,z);break;case ge:O(d,h,w,p,_,I,z,M,j);break;default:B&1?S(d,h,w,p,_,I,z,M,j):B&6?R(d,h,w,p,_,I,z,M,j):(B&64||B&128)&&E.process(d,h,w,p,_,I,z,M,j,ze)}X!=null&&_&&Wo(X,d&&d.ref,I,h||d,!h)},W=(d,h,w,p)=>{if(d==null)o(h.el=a(h.children),w,p);else{const _=h.el=d.el;h.children!==d.children&&c(_,h.children)}},D=(d,h,w,p)=>{d==null?o(h.el=l(h.children||""),w,p):h.el=d.el},Y=(d,h,w,p)=>{[d.el,d.anchor]=T(d.children,h,w,p,d.el,d.anchor)},N=({el:d,anchor:h},w,p)=>{let _;for(;d&&d!==h;)_=g(d),o(d,w,p),d=_;o(h,w,p)},v=({el:d,anchor:h})=>{let w;for(;d&&d!==h;)w=g(d),r(d),d=w;r(h)},S=(d,h,w,p,_,I,z,M,j)=>{z=z||h.type==="svg",d==null?k(h,w,p,_,I,z,M,j):b(d,h,_,I,z,M,j)},k=(d,h,w,p,_,I,z,M)=>{let j,E;const{type:X,props:B,shapeFlag:q,transition:G,dirs:se}=d;if(j=d.el=i(d.type,I,B&&B.is,B),q&8?f(j,d.children):q&16&&m(d.children,j,null,p,_,I&&X!=="foreignObject",z,M),se&&Lt(d,null,p,"created"),P(j,d,d.scopeId,z,p),B){for(const fe in B)fe!=="value"&&!Sn(fe)&&s(j,fe,null,B[fe],I,d.children,p,_,Pe);"value"in B&&s(j,"value",null,B.value),(E=B.onVnodeBeforeMount)&<(E,p,d)}se&&Lt(d,null,p,"beforeMount");const de=(!_||_&&!_.pendingBranch)&&G&&!G.persisted;de&&G.beforeEnter(j),o(j,h,w),((E=B&&B.onVnodeMounted)||de||se)&&De(()=>{E&<(E,p,d),de&&G.enter(j),se&&Lt(d,null,p,"mounted")},_)},P=(d,h,w,p,_)=>{if(w&&x(d,w),p)for(let I=0;I<p.length;I++)x(d,p[I]);if(_){let I=_.subTree;if(h===I){const z=_.vnode;P(d,z,z.scopeId,z.slotScopeIds,_.parent)}}},m=(d,h,w,p,_,I,z,M,j=0)=>{for(let E=j;E<d.length;E++){const X=d[E]=M?Ct(d[E]):it(d[E]);y(null,X,h,w,p,_,I,z,M)}},b=(d,h,w,p,_,I,z)=>{const M=h.el=d.el;let{patchFlag:j,dynamicChildren:E,dirs:X}=h;j|=d.patchFlag&16;const B=d.props||ie,q=h.props||ie;let G;w&&jt(w,!1),(G=q.onVnodeBeforeUpdate)&<(G,w,h,d),X&&Lt(h,d,w,"beforeUpdate"),w&&jt(w,!0);const se=_&&h.type!=="foreignObject";if(E?C(d.dynamicChildren,E,M,w,p,se,I):z||L(d,h,M,null,w,p,se,I,!1),j>0){if(j&16)U(M,h,B,q,w,p,_);else if(j&2&&B.class!==q.class&&s(M,"class",null,q.class,_),j&4&&s(M,"style",B.style,q.style,_),j&8){const de=h.dynamicProps;for(let fe=0;fe<de.length;fe++){const me=de[fe],Ve=B[me],Et=q[me];(Et!==Ve||me==="value")&&s(M,me,Ve,Et,_,d.children,w,p,Pe)}}j&1&&d.children!==h.children&&f(M,h.children)}else!z&&E==null&&U(M,h,B,q,w,p,_);((G=q.onVnodeUpdated)||X)&&De(()=>{G&<(G,w,h,d),X&&Lt(h,d,w,"updated")},p)},C=(d,h,w,p,_,I,z)=>{for(let M=0;M<h.length;M++){const j=d[M],E=h[M],X=j.el&&(j.type===ge||!At(j,E)||j.shapeFlag&70)?u(j.el):w;y(j,E,X,null,p,_,I,z,!0)}},U=(d,h,w,p,_,I,z)=>{if(w!==p){if(w!==ie)for(const M in w)!Sn(M)&&!(M in p)&&s(d,M,w[M],null,z,h.children,_,I,Pe);for(const M in p){if(Sn(M))continue;const j=p[M],E=w[M];j!==E&&M!=="value"&&s(d,M,E,j,z,h.children,_,I,Pe)}"value"in p&&s(d,"value",w.value,p.value)}},O=(d,h,w,p,_,I,z,M,j)=>{const E=h.el=d?d.el:a(""),X=h.anchor=d?d.anchor:a("");let{patchFlag:B,dynamicChildren:q,slotScopeIds:G}=h;G&&(M=M?M.concat(G):G),d==null?(o(E,w,p),o(X,w,p),m(h.children,w,X,_,I,z,M,j)):B>0&&B&64&&q&&d.dynamicChildren?(C(d.dynamicChildren,q,w,_,I,z,M),(h.key!=null||_&&h===_.subTree)&&Ps(d,h,!0)):L(d,h,w,X,_,I,z,M,j)},R=(d,h,w,p,_,I,z,M,j)=>{h.slotScopeIds=M,d==null?h.shapeFlag&512?_.ctx.activate(h,w,p,z,j):Q(h,w,p,_,I,z,j):oe(d,h,j)},Q=(d,h,w,p,_,I,z)=>{const M=d.component=Ua(d,p,_);if(Vn(d)&&(M.ctx.renderer=ze),Ka(M),M.asyncDep){if(_&&_.registerDep(M,re),!d.el){const j=M.subTree=K(Ze);D(null,j,h,w)}return}re(M,d,h,w,_,I,z)},oe=(d,h,w)=>{const p=h.component=d.component;if(oa(d,h,w))if(p.asyncDep&&!p.asyncResolved){$(p,h,w);return}else p.next=h,Jl(p.update),p.update();else h.el=d.el,p.vnode=h},re=(d,h,w,p,_,I,z)=>{const M=()=>{if(d.isMounted){let{next:X,bu:B,u:q,parent:G,vnode:se}=d,de=X,fe;jt(d,!1),X?(X.el=se.el,$(d,X,z)):X=se,B&&In(B),(fe=X.props&&X.props.onVnodeBeforeUpdate)&<(fe,G,X,se),jt(d,!0);const me=Mo(d),Ve=d.subTree;d.subTree=me,y(Ve,me,u(Ve.el),mt(Ve),d,_,I),X.el=me.el,de===null&&ra(d,me.el),q&&De(q,_),(fe=X.props&&X.props.onVnodeUpdated)&&De(()=>lt(fe,G,X,se),_)}else{let X;const{el:B,props:q}=h,{bm:G,m:se,parent:de}=d,fe=un(h);if(jt(d,!1),G&&In(G),!fe&&(X=q&&q.onVnodeBeforeMount)&<(X,de,h),jt(d,!0),B&&nn){const me=()=>{d.subTree=Mo(d),nn(B,d.subTree,d,_,null)};fe?h.type.__asyncLoader().then(()=>!d.isUnmounted&&me()):me()}else{const me=d.subTree=Mo(d);y(null,me,w,p,d,_,I),h.el=me.el}if(se&&De(se,_),!fe&&(X=q&&q.onVnodeMounted)){const me=h;De(()=>lt(X,de,me),_)}(h.shapeFlag&256||de&&un(de.vnode)&&de.vnode.shapeFlag&256)&&d.a&&De(d.a,_),d.isMounted=!0,h=w=p=null}},j=d.effect=new wo(M,()=>Oo(E),d.scope),E=d.update=()=>j.run();E.id=d.uid,jt(d,!0),E()},$=(d,h,w)=>{h.component=d;const p=d.vnode.props;d.vnode=h,d.next=null,Ma(d,h.props,p,w),ja(d,h.children,w),Wt(),qr(),Ut()},L=(d,h,w,p,_,I,z,M,j=!1)=>{const E=d&&d.children,X=d?d.shapeFlag:0,B=h.children,{patchFlag:q,shapeFlag:G}=h;if(q>0){if(q&128){we(E,B,w,p,_,I,z,M,j);return}else if(q&256){ee(E,B,w,p,_,I,z,M,j);return}}G&8?(X&16&&Pe(E,_,I),B!==E&&f(w,B)):X&16?G&16?we(E,B,w,p,_,I,z,M,j):Pe(E,_,I,!0):(X&8&&f(w,""),G&16&&m(B,w,p,_,I,z,M,j))},ee=(d,h,w,p,_,I,z,M,j)=>{d=d||We,h=h||We;const E=d.length,X=h.length,B=Math.min(E,X);let q;for(q=0;q<B;q++){const G=h[q]=j?Ct(h[q]):it(h[q]);y(d[q],G,w,null,_,I,z,M,j)}E>X?Pe(d,_,I,!0,!1,B):m(h,w,p,_,I,z,M,j,B)},we=(d,h,w,p,_,I,z,M,j)=>{let E=0;const X=h.length;let B=d.length-1,q=X-1;for(;E<=B&&E<=q;){const G=d[E],se=h[E]=j?Ct(h[E]):it(h[E]);if(At(G,se))y(G,se,w,null,_,I,z,M,j);else break;E++}for(;E<=B&&E<=q;){const G=d[B],se=h[q]=j?Ct(h[q]):it(h[q]);if(At(G,se))y(G,se,w,null,_,I,z,M,j);else break;B--,q--}if(E>B){if(E<=q){const G=q+1,se=G<X?h[G].el:p;for(;E<=q;)y(null,h[E]=j?Ct(h[E]):it(h[E]),w,se,_,I,z,M,j),E++}}else if(E>q)for(;E<=B;)Oe(d[E],_,I,!0),E++;else{const G=E,se=E,de=new Map;for(E=se;E<=q;E++){const je=h[E]=j?Ct(h[E]):it(h[E]);je.key!=null&&de.set(je.key,E)}let fe,me=0;const Ve=q-se+1;let Et=!1,so=0;const Ht=new Array(Ve);for(E=0;E<Ve;E++)Ht[E]=0;for(E=G;E<=B;E++){const je=d[E];if(me>=Ve){Oe(je,_,I,!0);continue}let Je;if(je.key!=null)Je=de.get(je.key);else for(fe=se;fe<=q;fe++)if(Ht[fe-se]===0&&At(je,h[fe])){Je=fe;break}Je===void 0?Oe(je,_,I,!0):(Ht[Je-se]=E+1,Je>=so?so=Je:Et=!0,y(je,h[Je],w,null,_,I,z,M,j),me++)}const io=Et?Da(Ht):We;for(fe=io.length-1,E=Ve-1;E>=0;E--){const je=se+E,Je=h[je],lo=je+1<X?h[je+1].el:p;Ht[E]===0?y(null,Je,w,lo,_,I,z,M,j):Et&&(fe<0||E!==io[fe]?rt(Je,w,lo,2):fe--)}}},rt=(d,h,w,p,_=null)=>{const{el:I,type:z,transition:M,children:j,shapeFlag:E}=d;if(E&6){rt(d.component.subTree,h,w,p);return}if(E&128){d.suspense.move(h,w,p);return}if(E&64){z.move(d,h,w,ze);return}if(z===ge){o(I,h,w);for(let B=0;B<j.length;B++)rt(j[B],h,w,p);o(d.anchor,h,w);return}if(z===Uo){N(d,h,w);return}if(p!==2&&E&1&&M)if(p===0)M.beforeEnter(I),o(I,h,w),De(()=>M.enter(I),_);else{const{leave:B,delayLeave:q,afterLeave:G}=M,se=()=>o(I,h,w),de=()=>{B(I,()=>{se(),G&&G()})};q?q(I,se,de):de()}else o(I,h,w)},Oe=(d,h,w,p=!1,_=!1)=>{const{type:I,props:z,ref:M,children:j,dynamicChildren:E,shapeFlag:X,patchFlag:B,dirs:q}=d;if(M!=null&&Wo(M,null,w,d,!0),X&256){h.ctx.deactivate(d);return}const G=X&1&&q,se=!un(d);let de;if(se&&(de=z&&z.onVnodeBeforeUnmount)&<(de,h,d),X&6)gt(d.component,w,p);else{if(X&128){d.suspense.unmount(w,p);return}G&&Lt(d,null,h,"beforeUnmount"),X&64?d.type.remove(d,h,w,_,ze,p):E&&(I!==ge||B>0&&B&64)?Pe(E,h,w,!1,!0):(I===ge&&B&384||!_&&X&16)&&Pe(j,h,w),p&&en(d)}(se&&(de=z&&z.onVnodeUnmounted)||G)&&De(()=>{de&<(de,h,d),G&&Lt(d,null,h,"unmounted")},w)},en=d=>{const{type:h,el:w,anchor:p,transition:_}=d;if(h===ge){kn(w,p);return}if(h===Uo){v(d);return}const I=()=>{r(w),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(d.shapeFlag&1&&_&&!_.persisted){const{leave:z,delayLeave:M}=_,j=()=>z(w,I);M?M(d.el,I,j):j()}else I()},kn=(d,h)=>{let w;for(;d!==h;)w=g(d),r(d),d=w;r(h)},gt=(d,h,w)=>{const{bum:p,scope:_,update:I,subTree:z,um:M}=d;p&&In(p),_.stop(),I&&(I.active=!1,Oe(z,d,h,w)),M&&De(M,h),De(()=>{d.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},Pe=(d,h,w,p=!1,_=!1,I=0)=>{for(let z=I;z<d.length;z++)Oe(d[z],h,w,p,_)},mt=d=>d.shapeFlag&6?mt(d.component.subTree):d.shapeFlag&128?d.suspense.next():g(d.anchor||d.el),Pt=(d,h,w)=>{d==null?h._vnode&&Oe(h._vnode,null,null,!0):y(h._vnode||null,d,h,null,null,null,w),qr(),Zr(),h._vnode=d},ze={p:y,um:Oe,m:rt,r:en,mt:Q,mc:m,pc:L,pbc:C,n:mt,o:e};let tn,nn;return t&&([tn,nn]=t(ze)),{render:Pt,hydrate:tn,createApp:Ia(Pt,tn)}}function jt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ps(e,t,n=!1){const o=e.children,r=t.children;if(Z(o)&&Z(r))for(let s=0;s<o.length;s++){const i=o[s];let a=r[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[s]=Ct(r[s]),a.el=i.el),n||Ps(i,a)),a.type===Xn&&(a.el=i.el)}}function Da(e){const t=e.slice(),n=[0];let o,r,s,i,a;const l=e.length;for(o=0;o<l;o++){const c=e[o];if(c!==0){if(r=n[n.length-1],e[r]<c){t[o]=r,n.push(o);continue}for(s=0,i=n.length-1;s<i;)a=s+i>>1,e[n[a]]<c?s=a+1:i=a;c<e[n[s]]&&(s>0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}const Na=e=>e.__isTeleport,ge=Symbol.for("v-fgt"),Xn=Symbol.for("v-txt"),Ze=Symbol.for("v-cmt"),Uo=Symbol.for("v-stc"),hn=[];let tt=null;function A(e=!1){hn.push(tt=e?null:[])}function Ra(){hn.pop(),tt=hn[hn.length-1]||null}let gn=1;function Es(e){gn+=e}function Is(e){return e.dynamicChildren=gn>0?tt||We:null,Ra(),gn>0&&tt&&tt.push(e),e}function V(e,t,n,o,r,s){return Is(H(e,t,n,o,r,s,!0))}function ye(e,t,n,o,r){return Is(K(e,t,n,o,r,!0))}function qn(e){return e?e.__v_isVNode===!0:!1}function At(e,t){return e.type===t.type&&e.key===t.key}const Zn="__vInternal",Os=({key:e})=>e??null,Jn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?_e(e)||be(e)||te(e)?{i:Se,r:e,k:t,f:!!n}:e:null);function H(e,t=null,n=null,o=0,r=null,s=e===ge?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Os(t),ref:t&&Jn(t),scopeId:Gr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Se};return a?(Ko(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=_e(n)?8:16),gn>0&&!i&&tt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&tt.push(l),l}const K=Fa;function Fa(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===cs)&&(e=Ze),qn(e)){const a=wt(e,t,!0);return n&&Ko(a,n),gn>0&&!s&&tt&&(a.shapeFlag&6?tt[tt.indexOf(e)]=a:tt.push(a)),a.patchFlag|=-2,a}if(Ja(e)&&(e=e.__vccOpts),t){t=Ha(t);let{class:a,style:l}=t;a&&!_e(a)&&(t.class=xe(a)),pe(l)&&(Fr(l)&&!Z(l)&&(l=ve({},l)),t.style=Ee(l))}const i=_e(e)?1:sa(e)?128:Na(e)?64:pe(e)?4:te(e)?2:0;return H(e,t,n,o,r,i,s,!0)}function Ha(e){return e?Fr(e)||Zn in e?ve({},e):e:null}function wt(e,t,n=!1){const{props:o,ref:r,patchFlag:s,children:i}=e,a=t?Qn(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Os(a),ref:t&&t.ref?n&&r?Z(r)?r.concat(Jn(t)):[r,Jn(t)]:Jn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ge?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&wt(e.ssContent),ssFallback:e.ssFallback&&wt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function xt(e=" ",t=0){return K(Xn,null,e,t)}function Le(e="",t=!1){return t?(A(),ye(Ze,null,e)):K(Ze,null,e)}function it(e){return e==null||typeof e=="boolean"?K(Ze):Z(e)?K(ge,null,e.slice()):typeof e=="object"?Ct(e):K(Xn,null,String(e))}function Ct(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:wt(e)}function Ko(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Z(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&&!(Zn in t)?t._ctx=Se:r===3&&Se&&(Se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else te(t)?(t={default:t,_ctx:Se},n=32):(t=String(t),o&64?(n=16,t=[xt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Qn(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=xe([t.class,o.class]));else if(r==="style")t.style=Ee([t.style,o.style]);else if(Tn(r)){const s=t[r],i=o[r];i&&s!==i&&!(Z(s)&&s.includes(i))&&(t[r]=s?[].concat(s,i):i)}else r!==""&&(t[r]=o[r])}return t}function lt(e,t,n,o=null){Ye(e,t,7,[n,o])}const Va=_s();let Wa=0;function Ua(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Va,s={uid:Wa++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new hl(!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:ys(o,r),emitsOptions:Qr(o,r),emit:null,emitted:null,propsDefaults:ie,inheritAttrs:o.inheritAttrs,ctx:ie,data:ie,props:ie,attrs:ie,slots:ie,refs:ie,setupState:ie,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=ea.bind(null,s),e.ce&&e.ce(s),s}let Te=null;const Ms=()=>Te||Se;let Yo,qt,Ls="__VUE_INSTANCE_SETTERS__";(qt=mo()[Ls])||(qt=mo()[Ls]=[]),qt.push(e=>Te=e),Yo=e=>{qt.length>1?qt.forEach(t=>t(e)):qt[0](e)};const Zt=e=>{Yo(e),e.scope.on()},Bt=()=>{Te&&Te.scope.off(),Yo(null)};function zs(e){return e.vnode.shapeFlag&4}let mn=!1;function Ka(e,t=!1){mn=t;const{props:n,children:o}=e.vnode,r=zs(e);Oa(e,n,r,t),za(e,o);const s=r?Ya(e,t):void 0;return mn=!1,s}function Ya(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Hr(new Proxy(e.ctx,Ca));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?qa(e):null;Zt(e),Wt();const s=yt(o,e,0,[e.props,r]);if(Ut(),Bt(),vr(s)){if(s.then(Bt,Bt),t)return s.then(i=>{js(e,i,t)}).catch(i=>{Nn(i,e,0)});e.asyncDep=s}else js(e,s,t)}else Bs(e,t)}function js(e,t,n){te(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=Kr(t)),Bs(e,n)}let As;function Bs(e,t,n){const o=e.type;if(!e.render){if(!t&&As&&!o.render){const r=o.template||Ro(e).template;if(r){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=o,c=ve(ve({isCustomElement:s,delimiters:a},i),l);o.render=As(r,c)}}e.render=o.render||Qe}Zt(e),Wt(),ka(e),Ut(),Bt()}function Xa(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Be(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 Gn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Kr(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 te(e)?e.displayName||e.name:e.name||t&&e.__name}function Ja(e){return te(e)&&"__vccOpts"in e}const le=(e,t)=>Xl(e,t,mn);function Ds(e,t,n){const o=arguments.length;return o===2?pe(t)&&!Z(t)?qn(t)?K(e,null,[t]):K(e,t):K(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&qn(n)&&(n=[n]),K(e,t,n))}const Qa=Symbol.for("v-scx"),Ga=()=>zt(Qa),ec="3.3.4",tc="http://www.w3.org/2000/svg",Dt=typeof document<"u"?document:null,Ns=Dt&&Dt.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?Dt.createElementNS(tc,e):Dt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Dt.createTextNode(e),createComment:e=>Dt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Dt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,s){const i=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{Ns.innerHTML=o?`<svg>${e}</svg>`:e;const a=Ns.content;if(o){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function 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=_e(n);if(n&&!r){if(t&&!_e(t))for(const s in t)n[s]==null&&Xo(o,s,"");for(const s in n)Xo(o,s,n[s])}else{const s=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=s)}}const Rs=/\s*!important$/;function Xo(e,t,n){if(Z(n))n.forEach(o=>Xo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=sc(e,t);Rs.test(n)?e.setProperty(Ue(o),n.replace(Rs,""),"important"):e[o]=n}}const Fs=["Webkit","Moz","ms"],qo={};function sc(e,t){const n=qo[t];if(n)return n;let o=Re(t);if(o!=="filter"&&o in e)return qo[t]=o;o=En(o);for(let r=0;r<Fs.length;r++){const s=Fs[r]+o;if(s in e)return qo[t]=s}return t}const Hs="http://www.w3.org/1999/xlink";function ic(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Hs,t.slice(6,t.length)):e.setAttributeNS(Hs,t,n);else{const s=pl(t);n==null||s&&!wr(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function lc(e,t,n,o,r,s,i){if(t==="innerHTML"||t==="textContent"){o&&i(o,r,s),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){e._value=n;const c=a==="OPTION"?e.getAttribute("value"):e.value,f=n??"";c!==f&&(e.value=f),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=wr(n):n==null&&c==="string"?(n="",l=!0):c==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function Jt(e,t,n,o){e.addEventListener(t,n,o)}function ac(e,t,n,o){e.removeEventListener(t,n,o)}function cc(e,t,n,o,r=null){const s=e._vei||(e._vei={}),i=s[t];if(o&&i)i.value=o;else{const[a,l]=uc(t);if(o){const c=s[t]=pc(o,r);Jt(e,a,c,l)}else i&&(ac(e,a,i,l),s[t]=void 0)}}const Vs=/(?:Once|Passive|Capture)$/;function uc(e){let t;if(Vs.test(e)){t={};let o;for(;o=e.match(Vs);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ue(e.slice(2)),t]}let Zo=0;const fc=Promise.resolve(),dc=()=>Zo||(fc.then(()=>Zo=0),Zo=Date.now());function pc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Ye(hc(o,n.value),t,5,[o])};return n.value=e,n.attached=dc(),n}function hc(e,t){if(Z(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 Ws=/^on[a-z]/,gc=(e,t,n,o,r=!1,s,i,a,l)=>{t==="class"?oc(e,o,r):t==="style"?rc(e,n,o):Tn(t)?ao(t)||cc(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):mc(e,t,o,r))?lc(e,t,o,s,i,a,l):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),ic(e,t,o,r))};function mc(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Ws.test(t)&&te(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ws.test(t)&&_e(n)?!1:t in e}function vc(e,t){const n=Ce(e);class o extends Jo{constructor(s){super(n,s,t)}}return o.def=n,o}const _c=typeof HTMLElement<"u"?HTMLElement:class{};class Jo 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,et(()=>{this._connected||(ni(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}).observe(this,{attributes:!0});const t=(o,r=!1)=>{const{props:s,styles:i}=o;let a;if(s&&!Z(s))for(const l in s){const c=s[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=go(this._props[l])),(a||(a=Object.create(null)))[Re(l)]=!0)}this._numberProps=a,r&&this._resolveProps(o),this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=Z(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(Re))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(s){this._setProp(r,s)}})}_setAttr(t){let n=this.getAttribute(t);const o=Re(t);this._numberProps&&this._numberProps[o]&&(n=go(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(Ue(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ue(t),n+""):n||this.removeAttribute(Ue(t))))}_update(){ni(this._createVNode(),this.shadowRoot)}_createVNode(){const t=K(this._def,ve({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(s,i)=>{this.dispatchEvent(new CustomEvent(s,{detail:i}))};n.emit=(s,...i)=>{o(s,i),Ue(s)!==s&&o(Ue(s),i)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Jo){n.parent=r._instance,n.provides=r._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}const kt="transition",vn="animation",Qt=(e,{slots:t})=>Ds(ua,bc(e),t);Qt.displayName="Transition";const Us={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Qt.props=ve({},ns,Us);const Nt=(e,t=[])=>{Z(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ks=e=>e?Z(e)?e.some(t=>t.length>1):e.length>1:!1;function bc(e){const t={};for(const O in e)O in Us||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:c=i,appearToClass:f=a,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:x=`${n}-leave-to`}=e,T=yc(r),y=T&&T[0],W=T&&T[1],{onBeforeEnter:D,onEnter:Y,onEnterCancelled:N,onLeave:v,onLeaveCancelled:S,onBeforeAppear:k=D,onAppear:P=Y,onAppearCancelled:m=N}=t,b=(O,R,Q)=>{Rt(O,R?f:a),Rt(O,R?c:i),Q&&Q()},C=(O,R)=>{O._isLeaving=!1,Rt(O,u),Rt(O,x),Rt(O,g),R&&R()},U=O=>(R,Q)=>{const oe=O?P:Y,re=()=>b(R,O,Q);Nt(oe,[R,re]),Ys(()=>{Rt(R,O?l:s),Tt(R,O?f:a),Ks(oe)||Xs(R,o,y,re)})};return ve(t,{onBeforeEnter(O){Nt(D,[O]),Tt(O,s),Tt(O,i)},onBeforeAppear(O){Nt(k,[O]),Tt(O,l),Tt(O,c)},onEnter:U(!1),onAppear:U(!0),onLeave(O,R){O._isLeaving=!0;const Q=()=>C(O,R);Tt(O,u),Cc(),Tt(O,g),Ys(()=>{O._isLeaving&&(Rt(O,u),Tt(O,x),Ks(v)||Xs(O,o,W,Q))}),Nt(v,[O,Q])},onEnterCancelled(O){b(O,!1),Nt(N,[O])},onAppearCancelled(O){b(O,!0),Nt(m,[O])},onLeaveCancelled(O){C(O),Nt(S,[O])}})}function yc(e){if(e==null)return null;if(pe(e))return[Qo(e.enter),Qo(e.leave)];{const t=Qo(e);return[t,t]}}function Qo(e){return go(e)}function Tt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Rt(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 Ys(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let wc=0;function Xs(e,t,n,o){const r=e._endId=++wc,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=xc(e,t);if(!i)return o();const c=i+"end";let f=0;const u=()=>{e.removeEventListener(c,g),s()},g=x=>{x.target===e&&++f>=l&&u()};setTimeout(()=>{f<l&&u()},a+1),e.addEventListener(c,g)}function xc(e,t){const n=window.getComputedStyle(e),o=T=>(n[T]||"").split(", "),r=o(`${kt}Delay`),s=o(`${kt}Duration`),i=qs(r,s),a=o(`${vn}Delay`),l=o(`${vn}Duration`),c=qs(a,l);let f=null,u=0,g=0;t===kt?i>0&&(f=kt,u=i,g=s.length):t===vn?c>0&&(f=vn,u=c,g=l.length):(u=Math.max(i,c),f=u>0?i>c?kt:vn:null,g=f?f===kt?s.length:l.length:0);const x=f===kt&&/\b(transform|all)(,|$)/.test(o(`${kt}Property`).toString());return{type:f,timeout:u,propCount:g,hasTransform:x}}function qs(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Zs(n)+Zs(e[o])))}function Zs(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Cc(){return document.body.offsetHeight}const Js=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Z(t)?n=>In(t,n):t};function kc(e){e.target.composing=!0}function Qs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Tc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=Js(r);const s=o||r.props&&r.props.type==="number";Jt(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=ho(a)),e._assign(a)}),n&&Jt(e,"change",()=>{e.value=e.value.trim()}),t||(Jt(e,"compositionstart",kc),Jt(e,"compositionend",Qs),Jt(e,"change",Qs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},s){if(e._assign=Js(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&ho(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},$c=["ctrl","shift","alt","meta"],Sc={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)=>$c.some(n=>e[`${n}Key`]&&!t.includes(n))},at=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const s=Sc[t[r]];if(s&&s(n,t))return}return e(n,...o)},Pc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Gs=(e,t)=>n=>{if(!("key"in n))return;const o=Ue(n.key);if(t.some(r=>r===o||Pc[r]===o))return e(n)},ei={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 Ec=ve({patchProp:gc},nc);let ti;function Ic(){return ti||(ti=Aa(Ec))}const ni=(...e)=>{Ic().render(...e)},Oc={class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3"},Mc={class:"flex justify-between items-end"},Lc={class:"inline-block children-pointer-events-auto w-1/3"},zc={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},jc={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},Ac={class:"inline-block z-20 relative"},oi=Ce({__name:"ReaderLayout",props:{idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{},spaceBottom:{}},setup(e){return(t,n)=>(A(),V("div",{class:xe(["fixed inset-0 bg-black visible z-[9999999999] text-stone-100 font-sans text-base",{"cursor-none":t.idle}])},[ke(t.$slots,"default"),H("div",{id:"controls",class:xe(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear inset-2 sm:inset-3 flex flex-col justify-between pb-4 sm:pb-2 md:pb-0",{"opacity-100 z-10":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}]),style:Ee({paddingTop:`${t.spaceTop||0}px`,paddingBottom:t.spaceBottom?`${t.spaceBottom}px`:""})},[H("div",Oc,[ke(t.$slots,"back"),ke(t.$slots,"exit"),ke(t.$slots,"chapter-nav")]),H("div",Mc,[H("div",Lc,[ke(t.$slots,"page-nav")]),H("div",zc,[ke(t.$slots,"reset-zoom")]),H("div",jc,[ke(t.$slots,"entry"),H("div",Ac,[ke(t.$slots,"settings")]),ke(t.$slots,"full-screen"),ke(t.$slots,"play")])]),H("div",{class:xe(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[ke(t.$slots,"progress")],2)],6)],2))}}),Bc=Object.freeze(Object.defineProperty({__proto__:null,default:oi},Symbol.toStringTag,{value:"Module"}));var ri;const Go=typeof window<"u",Dc=e=>typeof e=="function",Nc=e=>typeof e=="string",$t=()=>{};Go&&((ri=window==null?void 0:window.navigator)!=null&&ri.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function bn(e){return typeof e=="function"?e():F(e)}function er(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}const si=e=>e();function Rc(e,t={}){let n,o,r=$t;const s=a=>{clearTimeout(a),r(),r=$t};return a=>{const l=bn(e),c=bn(t.maxWait);return n&&s(n),l<=0||c!==void 0&&c<=0?(o&&(s(o),o=null),Promise.resolve(a())):new Promise((f,u)=>{r=t.rejectOnCancel?u:f,c&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,f(a())},c)),n=setTimeout(()=>{o&&s(o),o=null,f(a())},l)})}}function Fc(e,t=!0,n=!0,o=!1){let r=0,s,i=!0,a=$t,l;const c=()=>{s&&(clearTimeout(s),s=void 0,a(),a=$t)};return u=>{const g=bn(e),x=Date.now()-r,T=()=>l=u();if(c(),g<=0)return r=Date.now(),T();if(x>g&&(n||!i))r=Date.now(),T();else if(t)return new Promise((y,W)=>{a=o?W:y,s=setTimeout(()=>{r=Date.now(),i=!0,y(T()),c()},g-x)});return!n&&!s&&(s=setTimeout(()=>i=!0,g)),i=!1,l}}function Hc(e=si){const t=J(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...s)=>{t.value&&e(...s)};return{isActive:$o(t),pause:n,resume:o,eventFilter:r}}function Vc(e){return e}function tr(e){return Cr()?(ml(e),!0):!1}function nt(e,t=200,n={}){return er(Rc(t,n),e)}function Wc(e,t=200,n=!1,o=!0,r=!1){return er(Fc(t,n,o,r),e)}function ii(e,t=!0){Ms()?qe(e):t?e():et(e)}var li=Object.getOwnPropertySymbols,Uc=Object.prototype.hasOwnProperty,Kc=Object.prototype.propertyIsEnumerable,Yc=(e,t)=>{var n={};for(var o in e)Uc.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&li)for(var o of li(e))t.indexOf(o)<0&&Kc.call(e,o)&&(n[o]=e[o]);return n};function Xc(e,t,n={}){const o=n,{eventFilter:r=si}=o,s=Yc(o,["eventFilter"]);return ue(e,er(r,t),s)}var qc=Object.defineProperty,Zc=Object.defineProperties,Jc=Object.getOwnPropertyDescriptors,eo=Object.getOwnPropertySymbols,ai=Object.prototype.hasOwnProperty,ci=Object.prototype.propertyIsEnumerable,ui=(e,t,n)=>t in e?qc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qc=(e,t)=>{for(var n in t||(t={}))ai.call(t,n)&&ui(e,n,t[n]);if(eo)for(var n of eo(t))ci.call(t,n)&&ui(e,n,t[n]);return e},Gc=(e,t)=>Zc(e,Jc(t)),eu=(e,t)=>{var n={};for(var o in e)ai.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&eo)for(var o of eo(e))t.indexOf(o)<0&&ci.call(e,o)&&(n[o]=e[o]);return n};function tu(e,t,n={}){const o=n,{eventFilter:r}=o,s=eu(o,["eventFilter"]),{eventFilter:i,pause:a,resume:l,isActive:c}=Hc(r);return{stop:Xc(e,t,Gc(Qc({},s),{eventFilter:i})),pause:a,resume:l,isActive:c}}function Ft(e){var t;const n=bn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const pt=Go?window:void 0,nu=Go?window.document:void 0;function St(...e){let t,n,o,r;if(Nc(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=pt):[t,n,o,r]=e,!t)return $t;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(f=>f()),s.length=0},a=(f,u,g)=>(f.addEventListener(u,g,r),()=>f.removeEventListener(u,g,r)),l=ue(()=>Ft(t),f=>{i(),f&&s.push(...n.flatMap(u=>o.map(g=>a(f,u,g))))},{immediate:!0,flush:"post"}),c=()=>{l(),i()};return tr(c),c}function fi(e,t=!1){const n=J(),o=()=>n.value=!!e();return o(),ii(o,t),n}const nr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},or="__vueuse_ssr_handlers__";nr[or]=nr[or]||{};const ou=nr[or];function ru(e,t){return ou[e]||t}function su(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 iu=Object.defineProperty,di=Object.getOwnPropertySymbols,lu=Object.prototype.hasOwnProperty,au=Object.prototype.propertyIsEnumerable,pi=(e,t,n)=>t in e?iu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hi=(e,t)=>{for(var n in t||(t={}))lu.call(t,n)&&pi(e,n,t[n]);if(di)for(var n of di(t))au.call(t,n)&&pi(e,n,t[n]);return e};const cu={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 gi(e,t,n,o={}){var r;const{flush:s="pre",deep:i=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:f,window:u=pt,eventFilter:g,onError:x=P=>{console.error(P)}}=o,T=(f?Wl:J)(t);if(!n)try{n=ru("getDefaultStorage",()=>{var P;return(P=pt)==null?void 0:P.localStorage})()}catch(P){x(P)}if(!n)return T;const y=bn(t),W=su(y),D=(r=o.serializer)!=null?r:cu[W],{pause:Y,resume:N}=tu(T,()=>v(T.value),{flush:s,deep:i,eventFilter:g});return u&&a&&St(u,"storage",k),k(),T;function v(P){try{if(P==null)n.removeItem(e);else{const m=D.write(P),b=n.getItem(e);b!==m&&(n.setItem(e,m),u&&(u==null||u.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:b,newValue:m,storageArea:n}))))}}catch(m){x(m)}}function S(P){const m=P?P.newValue:n.getItem(e);if(m==null)return l&&y!==null&&n.setItem(e,D.write(y)),y;if(!P&&c){const b=D.read(m);return Dc(c)?c(b,y):W==="object"&&!Array.isArray(b)?hi(hi({},y),b):b}else return typeof m!="string"?m:D.read(m)}function k(P){if(!(P&&P.storageArea!==n)){if(P&&P.key==null){T.value=y;return}if(!(P&&P.key!==e)){Y();try{T.value=S(P)}catch(m){x(m)}finally{P?et(N):N()}}}}}function mi({document:e=nu}={}){if(!e)return J("visible");const t=J(e.visibilityState);return St(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var vi=Object.getOwnPropertySymbols,uu=Object.prototype.hasOwnProperty,fu=Object.prototype.propertyIsEnumerable,du=(e,t)=>{var n={};for(var o in e)uu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&vi)for(var o of vi(e))t.indexOf(o)<0&&fu.call(e,o)&&(n[o]=e[o]);return n};function pu(e,t,n={}){const o=n,{window:r=pt}=o,s=du(o,["window"]);let i;const a=fi(()=>r&&"ResizeObserver"in r),l=()=>{i&&(i.disconnect(),i=void 0)},c=ue(()=>Ft(e),u=>{l(),a.value&&r&&u&&(i=new ResizeObserver(t),i.observe(u,s))},{immediate:!0,flush:"post"}),f=()=>{l(),c()};return tr(f),{isSupported:a,stop:f}}function rr(e,t={width:0,height:0},n={}){const{window:o=pt,box:r="content-box"}=n,s=le(()=>{var l,c;return(c=(l=Ft(e))==null?void 0:l.namespaceURI)==null?void 0:c.includes("svg")}),i=J(t.width),a=J(t.height);return pu(e,([l])=>{const c=r==="border-box"?l.borderBoxSize:r==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(o&&s.value){const f=Ft(e);if(f){const u=o.getComputedStyle(f);i.value=parseFloat(u.width),a.value=parseFloat(u.height)}}else if(c){const f=Array.isArray(c)?c:[c];i.value=f.reduce((u,{inlineSize:g})=>u+g,0),a.value=f.reduce((u,{blockSize:g})=>u+g,0)}else i.value=l.contentRect.width,a.value=l.contentRect.height},n),ue(()=>Ft(e),l=>{i.value=l?t.width:0,a.value=l?t.height:0}),{width:i,height:a}}function _i(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:i=pt}=n,a=fi(()=>i&&"IntersectionObserver"in i);let l=$t;const c=a.value?ue(()=>({el:Ft(e),root:Ft(o)}),({el:u,root:g})=>{if(l(),!u)return;const x=new IntersectionObserver(t,{root:g,rootMargin:r,threshold:s});x.observe(u),l=()=>{x.disconnect(),l=$t}},{immediate:!0,flush:"post"}):$t,f=()=>{l(),c()};return tr(f),{isSupported:a,stop:f}}function hu(e,t,n={}){const{window:o=pt}=n;return gi(e,t,o==null?void 0:o.localStorage,n)}var bi;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(bi||(bi={}));function sr(e,t,n={}){const{window:o=pt}=n;return gi(e,t,o==null?void 0:o.sessionStorage,n)}var gu=Object.defineProperty,yi=Object.getOwnPropertySymbols,mu=Object.prototype.hasOwnProperty,vu=Object.prototype.propertyIsEnumerable,wi=(e,t,n)=>t in e?gu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_u=(e,t)=>{for(var n in t||(t={}))mu.call(t,n)&&wi(e,n,t[n]);if(yi)for(var n of yi(t))vu.call(t,n)&&wi(e,n,t[n]);return e};_u({linear:Vc},{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 bu(e={}){const{window:t=pt,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:s=!0}=e,i=J(n),a=J(o),l=()=>{t&&(s?(i.value=t.innerWidth,a.value=t.innerHeight):(i.value=t.document.documentElement.clientWidth,a.value=t.document.documentElement.clientHeight))};return l(),ii(l),St("resize",l,{passive:!0}),r&&St("orientationchange",l,{passive:!0}),{width:i,height:a}}const yu=Ce({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=J(null),o=J(0),r=J([]),s=le(()=>r.value[o.value]),i=Wc(a,500);qe(()=>{const f=rr(n),u=nt(()=>l({width:f.width.value,height:f.height.value}),50);u(),ue(f.width,u),ue(f.height,u)});function a(){o.value>=r.value.length-1?t("hide"):o.value++}function l(f){const u=c();r.value=u.map(({rect:g,text:x})=>{const T=g.top<f.height-g.bottom,y=g.left<f.width-g.right;return{text:x,style:{left:`${g.left}px`,top:`${g.top}px`,width:`${g.width}px`,height:`${g.height}px`},textStyle:{left:y?`${g.left-12}px`:void 0,right:y?void 0:`${f.width-g.left}px`,top:T?`${g.bottom+12}px`:`${g.top+20}px`,textAlign:T?void 0:"right",transform:T?void 0:"translateY(-50%)"}}}),o.value>=r.value.length&&(o.value=r.value.length-1)}function c(){var g;const f=(g=n.value)==null?void 0:g.parentElement;if(!f)return[];const u=[];return f.querySelectorAll("[data-tour]").forEach(x=>{var W;const T=(W=x.getAttribute("data-tour"))==null?void 0:W.trim();if(!(T!=null&&T.length))return;const y=x.getBoundingClientRect();u.push({rect:y,text:T})}),u}return(f,u)=>{var g,x;return A(),V(ge,null,[H("div",{class:xe(["fixed inset-0 bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),H("div",{ref_key:"root",ref:n,class:"tour",onClick:u[0]||(u[0]=at((...T)=>F(i)&&F(i)(...T),["stop"]))},[s.value?(A(),V("div",{key:o.value,class:"tour__target",style:Ee(s.value.style)},null,4)):Le("",!0),(A(),V("div",{key:o.value,class:"tour__text",style:Ee((g=s.value)==null?void 0:g.textStyle)},Ke(((x=s.value)==null?void 0:x.text)??""),5))],512)],64)}}}),wu=`.tour{bottom:0;left:0;overflow:hidden;position:fixed;right:0;top:0;z-index:20}.tour__target{--tw-border-opacity:1;animation:tour-target-anim .5s forwards;border-color:rgb(214 211 209/var(--tw-border-opacity));border-radius:9999px;border-width:1px;box-shadow:0 0 0 99999px #000000e6}.tour__target,.tour__text{position:absolute}.tour__text{animation:tour-text-anim 1s forwards;max-width:320px;padding-left:12px;padding-right:12px}@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}}
|
|
2
|
-
`,he=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},xi=he(yu,[["styles",[wu]]]),xu=Object.freeze(Object.defineProperty({__proto__:null,default:xi},Symbol.toStringTag,{value:"Module"})),Cu=H("div",{class:"fixed inset-0 bg-black bg-opacity-90"},null,-1),Ci=Ce({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=J(null),r=J([]);qe(async()=>{const l=rr(o),c=nt(()=>{s({width:l.width.value,height:l.height.value})},50);c(),ue(l.width,c),ue(l.height,c)});function s(l){var u;const c=(u=o.value)==null?void 0:u.parentElement;if(!c)return;const f=Array.from(c.querySelectorAll("#controls [title]"));f.length&&(r.value=i(f,l))}function i(l,c){const f=[],u=[];let g=0,x=0;const T=50,y=25;l.forEach(v=>{var b;const S=(b=v.getAttribute("title"))==null?void 0:b.trim(),k=v.getBoundingClientRect();if(!S||!k.height||!k.width)return;const P=Math.ceil((k.top-10)/T),m=Math.ceil((k.left-10)/T);u.push({isTour:!1,title:S,rect:k,fromX:m,toX:Math.max(m+1,Math.ceil((k.right+10)/T)),fromY:P,toY:Math.max(P+1,Math.ceil((k.bottom+10)/T))})}),u.forEach(v=>{for(let S=v.fromY;S<v.toY;S++){f[S]??(f[S]=[]);for(let k=v.fromX;k<v.toX;k++)f[S][k]=v;v.toY>g+1&&(g=v.toY-1),v.toX>x+1&&(x=v.toX-1)}});let W=x/2;u.forEach(v=>{v.isAlignRight=v.fromX>W});const D=(v,S)=>{f[S]??(f[S]=[]);const k=S>=v.toY;if(v.isTour)for(let P=v.fromX;P<v.toX;P++)delete f[v.fromY][P],v.fromY=S,v.toY=S+(k?1:-1),f[S][P]=v;else{const P=v.isAlignRight?v.fromX-3:v.fromX,m=P+3;v.helpItem={fromX:P,toX:m,fromY:S,toY:S+1,isTour:!0,isAlignRight:v.isAlignRight};for(let b=P;b<m;b++)f[S][b]=v.helpItem}},Y=(v,S)=>{if(S>g||S<0)return!1;const k=S>=v.toY,P=f[S];if(!P)return D(v,S),!0;const m=P[v.fromX];if(m&&!m.isTour)return!1;if(m&&m.isTour)return Y(m,k?S+1:S-1)?(D(v,S),!0):!1;if(!m){const b=v.isAlignRight?-1:1;return P[v.fromX+b]||P[v.fromX+b*2]?Y(v,k?S+1:S-1):(D(v,S),!0)}return!1};u.forEach(v=>{if(!Y(v,v.toY)){if(v.isAlignRight){const S=f[v.fromY]??[];if(!S.slice(v.fromX-3,v.fromX).filter(Boolean).length){const P=v.fromX-3,m=v.fromX;v.helpItem={isTour:!0,isAlignRight:!0,fromX:P,toX:m,fromY:v.fromY,toY:v.toY};for(let b=v.fromX-3;b<v.fromX;b++)S[b]=v.helpItem;return}}Y(v,v.fromY-1)}});const N=[];return u.forEach(v=>{const{title:S,helpItem:k,rect:P,isAlignRight:m,fromX:b,fromY:C,toY:U}=v;if(!S||!k||!P)return;const O=k.fromY>=U,R=k.toY<=C;N.push({title:a(S),style:{top:O?`${P.bottom+(k.fromY-U)*T+y}px`:R?void 0:`${P.top+10}px`,bottom:R?`${c.height-P.top+(k.toY-C)*T+y}px`:void 0,left:m?void 0:`${P.left}px`,right:m?O?`${c.width-P.right}px`:`${c.width-P.right+P.width+y}px`:void 0},arrowStyle:{width:R||O?"2px":`${Math.abs(k.toX-b)*T+y-5}px`,height:R||O?`${(O?k.fromY-U:C-k.toY)*T+y}px`:"2px",top:O?`${P.bottom}px`:R?void 0:`${P.top+20}px`,bottom:R?`${c.height-P.top}px`:void 0,left:m?void 0:`${P.left+P.width/2}px`,right:m?O?`${c.width-P.right+P.width/2}px`:`${c.width-P.right+P.width}px`:void 0}})}),N}function a(l){return n.touchDevice?l.split("(")[0].trim():l}return(l,c)=>(A(),V(ge,null,[Cu,H("div",{ref_key:"root",ref:o,class:"fixed inset-0 z-20 overscroll-contain select-none",onClick:c[0]||(c[0]=at(f=>t("hide"),["stop"]))},[(A(!0),V(ge,null,fn(r.value,f=>(A(),V(ge,{key:f.title},[H("div",{class:"absolute",style:Ee(f.style)},Ke(f.title),5),H("div",{class:"absolute bg-stone-300 rounded-lg",style:Ee(f.arrowStyle)},null,4)],64))),128))],512)],64))}}),ku=Object.freeze(Object.defineProperty({__proto__:null,default:Ci},Symbol.toStringTag,{value:"Module"})),Tu={},$u={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Su=[H("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[H("circle",{cx:"14",cy:"14",r:"12"}),H("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function Pu(e,t){return A(),V("svg",$u,Su)}const ki=he(Tu,[["render",Pu]]),Eu=Object.freeze(Object.defineProperty({__proto__:null,default:ki},Symbol.toStringTag,{value:"Module"})),Iu={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"},Ou={class:"block w-4 h-4"},Mu={class:"w-12"},Ti=Ce({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=ki;return t.zoom!==1?(A(),V("button",Iu,[H("div",Ou,[K(o)]),H("div",Mu,Ke(Math.ceil(t.zoom*100))+"%",1)])):Le("",!0)}}}),Lu=Object.freeze(Object.defineProperty({__proto__:null,default:Ti},Symbol.toStringTag,{value:"Module"})),zu={},ju={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Au=[H("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 Bu(e,t){return A(),V("svg",ju,Au)}const ir=he(zu,[["render",Bu]]),Du=Object.freeze(Object.defineProperty({__proto__:null,default:ir},Symbol.toStringTag,{value:"Module"})),Nu={},Ru={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Fu=[H("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),H("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function Hu(e,t){return A(),V("svg",Ru,Fu)}const lr=he(Nu,[["render",Hu]]),Vu=Object.freeze(Object.defineProperty({__proto__:null,default:lr},Symbol.toStringTag,{value:"Module"}));function Wu({touchDevice:e}){const t=J(!1);let n=0;return Yn("busy:touchDevice",e),Yn("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function ar(){const e=zt("busy:touchDevice"),t=zt("setBusyState");let n=!1;return He(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const Uu=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,s=.65;const i=setInterval(l,20);a();function a(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function l(){const c=+n||50;r<=c?(r++,s-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${s}`):(o.remove(),clearInterval(i))}},Gt={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>Uu(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},Ku={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"},to=Ce({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=ar();let r=!1;function s(){r||(r=!0,o(!0,{desktopOnly:!0}))}function i(){r&&(r=!1,o(!1,{desktopOnly:!0}))}function a(l){n.disabled?l.preventDefault():t("click")}return(l,c)=>ft((A(),ye(wa(l.href?"a":"button"),Qn(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:at(a,["stop"]),onMouseenter:s,onMouseleave:i}),{default:ne(()=>[H("div",Ku,[ke(l.$slots,"default")])]),_:3},16,["class","onClick"])),[[F(Gt),l.disabled?0:15]])}}),Yu=Object.freeze(Object.defineProperty({__proto__:null,default:to},Symbol.toStringTag,{value:"Module"})),Xu={},qu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Zu=[H("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 Ju(e,t){return A(),V("svg",qu,Zu)}const $i=he(Xu,[["render",Ju]]),Qu=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"}));class Gu{constructor(){nl(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 ef(){const e=new Gu;return He(()=>e.dispose()),Yn("keyController",e),e}function no(e){const t=zt("keyController");qe(()=>t.addListener(e)),He(()=>t.removeListener(e))}const tf={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},nf={class:"text-xl font-medium text-ellipsis overflow-hidden whitespace-nowrap px-3"},of={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},Si=Ce({__name:"BottomSheet",props:{modelValue:{type:Boolean},name:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;no({onKeyDown:r});const o=ar();ue(()=>n.modelValue,s=>o(s));function r(s){n.modelValue&&s.key==="Escape"&&(t("update:modelValue",!1),s.preventDefault())}return(s,i)=>{const a=$i,l=to;return A(),V("div",{class:xe(["fixed inset-0 flex flex-col items-center justify-end select-none",{"!pointer-events-none":!n.modelValue}]),onClick:i[2]||(i[2]=()=>t("update:modelValue",!1))},[K(Qt,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:ne(()=>[n.modelValue?(A(),V("div",{key:0,class:"inline-flex flex-col h-[27rem] w-full sm:w-[32rem] max-h-[80vh] bg-stone-800 bg-opacity-90 backdrop-blur-md rounded-t-xl max-w-full overflow-hidden duration-200",onClick:i[1]||(i[1]=at(()=>{},["stop"]))},[H("div",tf,[K(l,{transparent:"",onClick:i[0]||(i[0]=()=>t("update:modelValue",!1))},{default:ne(()=>[K(a)]),_:1}),H("div",nf,Ke(s.name),1),ke(s.$slots,"actions")]),H("div",of,[ke(s.$slots,"default")])])):Le("",!0)]),_:3})],2)}}}),rf=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"})),sf=["min","max","step"],lf={class:"flex-shrink-0"},Pi=he(Ce({__name:"InputPercentage",props:{modelValue:{},min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=le({get(){return n.modelValue},set(r){t("update:modelValue",+r)}});return(r,s)=>(A(),V("div",{class:xe(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:Ee({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[ft(H("input",{"onUpdate:modelValue":s[0]||(s[0]=i=>o.value=i),type:"range",min:r.min,max:r.max,step:r.step??1,class:"flex-grow"},null,8,sf),[[Tc,o.value]]),H("p",lf,[ke(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
|
-
`]]]),af=Object.freeze(Object.defineProperty({__proto__:null,default:Pi},Symbol.toStringTag,{value:"Module"})),cf={class:"flex items-center mb-8 last:mb-0"},uf={class:"flex-grow overflow-hidden"},Ei=Ce({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(A(),V("div",cf,[H("div",{class:xe(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Ke(t.label),3),H("div",uf,[ke(t.$slots,"default")])]))}}),ff=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),df=["onClick","onKeyup"],Ii=Ce({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=J(null),r=J({width:"",left:""});qe(()=>{let i=!1;ue(()=>n.modelValue,a=>{var c;const l=(c=o.value)==null?void 0:c.children[a+1];l&&(r.value={width:l.offsetWidth+"px",left:l.offsetLeft+"px"},l.scrollIntoView({behavior:i?"smooth":"auto",block:"center",inline:"center"}),i=!0)},{immediate:!0})});function s(i){t("update:modelValue",i)}return(i,a)=>(A(),V("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:{}},[H("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Ee(r.value)},null,4),(A(!0),V(ge,null,fn(n.items,(l,c)=>ft((A(),V("div",{key:c,tabindex:"0",class:xe(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.modelValue,"text-stone-400":c!=n.modelValue}]),onClick:()=>s(c),onKeyup:[Gs(()=>s(c),["enter"]),Gs(()=>s(c),["space"])]},[xt(Ke(l),1)],42,df)),[[F(Gt),30]])),128))],512))}}),pf=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"})),hf={},gf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},mf=[H("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 vf(e,t){return A(),V("svg",gf,mf)}const Oi=he(hf,[["render",vf]]),_f=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),bf={},yf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},wf=[H("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),H("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function xf(e,t){return A(),V("svg",yf,wf)}const Mi=he(bf,[["render",xf]]),Cf=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"}));function kf(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var ot=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(ot||{}),ht=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(ht||{});const Tf=.25,$f=5,Sf=.25,yn=.25,wn=5,Pf=.05,Ef=0,If=4;function Of(e){var D,Y,N,v,S;const{titleName:t,isWebtoon:n}=e,r=`tkr:${t?kf(t):location.pathname}`,s=hu(r,{},{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(k){const P={};return k?(k.style!==void 0&&Object.values(ht).includes(k.style)&&(P.style=k.style),k.direction!==void 0&&Object.values(ot).includes(k.direction)&&(P.direction=k.direction),k.gap!==void 0&&k.gap>=Ef&&k.gap<=If&&(P.gap=k.gap),k.speed!==void 0&&k.speed>=yn&&k.speed<=wn&&(P.speed=k.speed),k.zoom!==void 0&&k.zoom>=yn&&k.zoom<=wn&&(P.zoom=k.zoom),Object.keys(P).length?P:void 0):P}}),i=k=>{if(!s.value){s.value=k;return}const P={...s.value};Object.entries(k).forEach(([m,b])=>{b===void 0?delete P[m]:P[m]=b}),Object.keys(P).length?s.value=P:(s.value=void 0,localStorage.removeItem(r))},a=J(((D=s.value)==null?void 0:D.style)??ht.longStrip),l=J(((Y=s.value)==null?void 0:Y.direction)??ot.vertical),c=J((N=s.value)==null?void 0:N.gap),f=J(((v=s.value)==null?void 0:v.speed)??1),u=J(((S=s.value)==null?void 0:S.zoom)??1),g=le({get(){return n.value?ht.longStrip:a.value??ht.longStrip},set:k=>{a.value=k,i({style:k===ht.longStrip?void 0:k}),k!==ht.longStrip&&l.value===ot.vertical&&(x.value=ot.rtl)}}),x=le({get:()=>n.value?ot.vertical:l.value,set:k=>{l.value=k,i({direction:k===ot.vertical?void 0:k})}}),T=le({get:()=>c.value??(n.value?0:1),set(k){c.value=k,i({gap:k})}}),y=le({get:()=>f.value,set(k){f.value=k,i({speed:k===1?void 0:k})}}),W=le({get:()=>u.value,set(k){u.value=k,i({zoom:k===1?void 0:k})}});return{direction:x,style:g,gap:T,speed:y,zoom:W,isLongStrip:le(()=>g.value===ht.longStrip),isDouble:le(()=>g.value===ht.double),isRTL:le(()=>x.value===ot.rtl),isVertical:le(()=>x.value===ot.vertical)}}const Li=Ce({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=J(!1);no({onKeyUp:s=>{s.key==="s"&&!s.metaKey&&!s.ctrlKey&&(n.value=!n.value)}});function o(s){t("update:zoom",Math.round(s)/100)}function r(){n.value=!1,t("help")}return(s,i)=>{const a=Mi,l=to,c=Oi,f=Ii,u=Ei,g=Pi,x=Si;return A(),V(ge,null,[K(l,{title:"Reader settings (S)",disabled:s.disabled,onClick:i[0]||(i[0]=()=>n.value=!0)},{default:ne(()=>[K(a)]),_:1},8,["disabled"]),K(x,{modelValue:n.value,"onUpdate:modelValue":i[5]||(i[5]=T=>n.value=T),name:s.name},{actions:ne(()=>[K(l,{transparent:"",onClick:r},{default:ne(()=>[K(c)]),_:1})]),default:ne(()=>[K(u,{label:"Style"},{default:ne(()=>[K(f,{"model-value":s.readerStyle,items:s.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":i[1]||(i[1]=T=>t("update:reader-style",T))},null,8,["model-value","items"])]),_:1}),K(u,{label:"Direction"},{default:ne(()=>[K(f,{"model-value":s.direction,items:s.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":i[2]||(i[2]=T=>t("update:direction",T))},null,8,["model-value","items"])]),_:1}),K(u,{label:"Gap"},{default:ne(()=>[K(f,{"model-value":s.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":i[3]||(i[3]=T=>t("update:gap",T))},null,8,["model-value"])]),_:1}),K(u,{label:"Speed"},{default:ne(()=>[K(g,{"model-value":s.speed,min:F(Tf),max:F($f),step:F(Sf),suffix:"x","onUpdate:modelValue":i[4]||(i[4]=T=>t("update:speed",T))},{suffix:ne(()=>[xt(Ke(s.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),K(u,{label:"Zoom"},{default:ne(()=>[K(g,{"model-value":Math.ceil(s.zoom*100),min:F(yn)*100,max:F(wn)*100,step:F(Pf)*100,"onUpdate:modelValue":o},{suffix:ne(()=>[xt(Ke(Math.ceil(s.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),Mf=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"})),Lf={},zf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},jf=[H("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function Af(e,t){return A(),V("svg",zf,jf)}const zi=he(Lf,[["render",Af]]),Bf=Object.freeze(Object.defineProperty({__proto__:null,default:zi},Symbol.toStringTag,{value:"Module"})),Df={},Nf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Rf=[H("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function Ff(e,t){return A(),V("svg",Nf,Rf)}const ji=he(Df,[["render",Ff]]),Hf=Object.freeze(Object.defineProperty({__proto__:null,default:ji},Symbol.toStringTag,{value:"Module"})),Vf={},Wf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Uf=[H("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),H("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),H("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.49315 4.13042C4.64457 4.13042 3.95667 4.81833 3.95667 5.6669V19.5663C3.95667 20.1535 4.58867 20.5236 5.10077 20.2363L11.4937 16.6501C11.7272 16.5191 12.012 16.5191 12.2454 16.6501L18.6384 20.2363C19.1505 20.5236 19.7825 20.1535 19.7825 19.5663V12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 5.26083 13.3507 4.13042 13.3507 4.13042H5.49315Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function Kf(e,t){return A(),V("svg",Wf,Uf)}const Ai=he(Vf,[["render",Kf]]),Yf=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),Xf={},qf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zf=[H("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),H("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),H("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 Jf(e,t){return A(),V("svg",qf,Zf)}const Bi=he(Xf,[["render",Jf]]),Qf=Object.freeze(Object.defineProperty({__proto__:null,default:Bi},Symbol.toStringTag,{value:"Module"})),Gf={},ed={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},td=[H("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function nd(e,t){return A(),V("svg",ed,td)}const Di=he(Gf,[["render",nd]]),od=Object.freeze(Object.defineProperty({__proto__:null,default:Di},Symbol.toStringTag,{value:"Module"})),rd=["aria-hidden"],sd=["onClick"],id=["onClick"],ld={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"},ad={class:"whitespace-nowrap"},cr=Ce({__name:"ButtonDropdown",props:{modelValue:{},label:{},title:{},items:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=J(null),r=J(!1),s=J(null),i=J(!1),a=J(!1),l=J(!1);no({onKeyDown:x});const c=ar();function f(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(u(),et(()=>setTimeout(()=>{var v,S;(S=(v=s.value)==null?void 0:v.children[n.modelValue])==null||S.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),y(o.value)):setTimeout(W,250)}function u(){const v=o.value;if(v){const S=v.getBoundingClientRect(),k=S.x+S.width/2;i.value=S.y>window.innerHeight/2,a.value=k<window.innerWidth/3,l.value=k>window.innerWidth/3*2}}function g(v){v!=n.modelValue&&t("update:modelValue",v),f()}function x(v){r.value&&v.key==="Escape"&&(f(),v.preventDefault())}let T=[];function y(v){const S=window.getComputedStyle(v).zIndex,k=v.style.zIndex;(!S||!(+S>0))&&((!v.parentElement||v.parentElement.childElementCount>1)&&(v.style.zIndex="1",T.push({el:v,zIndex:k})),v.parentElement&&y(v.parentElement))}function W(){T.forEach(({el:v,zIndex:S})=>{v.style.zIndex=S??""}),T=[]}let D=!1;function Y(){D||(D=!0,c(!0,{desktopOnly:!0}))}function N(){D&&(D=!1,c(!1,{desktopOnly:!0}))}return(v,S)=>{const k=Di;return A(),V("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(A(),V("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:f})):Le("",!0),v.items.length?(A(),ye(Qt,{key:1,name:"slide-fade","enter-from-class":"scale-y-90 opacity-0 pointer-events-none","leave-to-class":"scale-y-90 opacity-0 pointer-events-none"},{default:ne(()=>[r.value?(A(),V("ul",{key:0,ref_key:"list",ref:s,"aria-hidden":!r.value,class:xe(["scrollbar-sm duration-150 delay-50 absolute w-40 max-h-[70vh] list-none bg-stone-800 bg-opacity-80 backdrop-blur-md rounded-lg overflow-auto",{"origin-bottom bottom-full -translate-y-1.5":i.value,"origin-top top-full translate-y-1.5":!i.value,"left-1/2 -ml-20 text-center":!a.value&&!l.value,"right-0 text-right":l.value}]),onWheelPassive:S[0]||(S[0]=at(()=>{},["stop"]))},[(A(!0),V(ge,null,fn(v.items,(P,m)=>ft((A(),V("li",{key:m,tabindex:"-1",class:xe(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":m===v.modelValue}]),onClick:()=>g(m)},[H("div",{class:xe(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":m>0}])},[ke(v.$slots,"item",{item:P},()=>[xt(Ke(P),1)])],2)],10,sd)),[[F(Gt),30]])),128))],42,rd)):Le("",!0)]),_:3})):Le("",!0),ft((A(),V("button",Qn({type:"button",tabindex:"-1",class:["w-full h-10 max-h-full bg-transparent rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":v.disabled}]},v.title?{title:v.title}:{},{onClick:at(f,["stop"]),onMouseenter:Y,onMouseleave:N}),[H("div",ld,[H("span",ad,Ke(v.label),1),v.items.length?(A(),V("span",{key:0,class:xe(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":i.value}]),"aria-hidden":"true"},[K(k)],2)):Le("",!0)])],16,id)),[[F(Gt),30]])],512)}}}),cd=Object.freeze(Object.defineProperty({__proto__:null,default:cr},Symbol.toStringTag,{value:"Module"})),Ni=Ce({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=le(()=>Math.floor(n.modelValue)),r=le(()=>n.pages.map(c=>c.map(({index:f})=>`${f+1}`).join("-"))),s=le(()=>{const c=o.value,f=n.pages.findIndex(u=>u.some(({index:g})=>g===c));return f===-1?n.pages.length-1:f}),i=le(()=>n.pages.length?`${r.value[s.value]}/${n.totalImgs}`:"--");function a(c){const f=n.pages[c][0].index;l(f)}function l(c){t("update:modelValue",c)}return(c,f)=>{const u=cr;return A(),ye(u,{"model-value":s.value,label:i.value,title:"Current page",items:r.value,disabled:c.disabled,"onUpdate:modelValue":a},null,8,["model-value","label","items","disabled"])}}}),ud=Object.freeze(Object.defineProperty({__proto__:null,default:Ni},Symbol.toStringTag,{value:"Module"})),fd={},dd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},pd=[H("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function hd(e,t){return A(),V("svg",dd,pd)}const Ri=he(fd,[["render",hd]]),gd=Object.freeze(Object.defineProperty({__proto__:null,default:Ri},Symbol.toStringTag,{value:"Module"})),md={},vd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},_d=[H("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function bd(e,t){return A(),V("svg",vd,_d)}const Fi=he(md,[["render",bd]]),yd=Object.freeze(Object.defineProperty({__proto__:null,default:Fi},Symbol.toStringTag,{value:"Module"})),wd={},xd={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Cd=[H("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 kd(e,t){return A(),V("svg",xd,Cd)}const Hi=he(wd,[["render",kd]]),Td=Object.freeze(Object.defineProperty({__proto__:null,default:Hi},Symbol.toStringTag,{value:"Module"})),$d={},Sd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Pd=[H("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function Ed(e,t){return A(),V("svg",Sd,Pd)}const Vi=he($d,[["render",Ed]]),Id=Object.freeze(Object.defineProperty({__proto__:null,default:Vi},Symbol.toStringTag,{value:"Module"})),Wi=he(Ce({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=J(0);return ue(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const s=ir,i=lr;return n.value?(A(),V("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(A(),ye(s,{key:0})):(A(),ye(i,{key:1}))])):Le("",!0)}}}),[["styles",[`.animate-pause-fade{animation:pause-fade .4s linear forwards;transform-origin:center}@keyframes pause-fade{0%{opacity:0;transform:scale(.3)}10%{opacity:1;transform:scale(.35)}55%{opacity:1;transform:scale(.65)}to{opacity:0;transform:scale(1)}}
|
|
4
|
-
`]]]),
|
|
5
|
-
`,
|
|
6
|
-
`]]]),
|
|
7
|
-
`]]]),np=Object.freeze(Object.defineProperty({__proto__:null,default:qi},Symbol.toStringTag,{value:"Module"}));async function xn(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(r=>{setTimeout(async()=>{const s=await xn(e-1,t,n);r(s)},t)})}function ro(e=0){return new Promise(t=>setTimeout(t,e))}const op=3;function rp(e){var P;let t=[];const n=J(((P=e.raw.imgs)==null?void 0:P.filter(Boolean))??[]),o=sn({}),r=[],s=new WeakMap;let i=!0,a=0,l,c=n.value.length?ap(n.value):void 0;const f=J(e.raw.isWebtoon),u=J(f.value===void 0||c===void 0),g=nt(v,100),x=nt(y,50);u.value?n.value.length?y():D():et(()=>setTimeout(()=>T(c),10)),He(()=>{i=!1,r.forEach(m=>URL.revokeObjectURL(m))});async function T(m){u.value=!1,await et(),e.onReady(m),ue(()=>Math.floor(e.page.value),async(b,C)=>{Qi({contentEl:l,imgEls:t,page:b,smooth:!0}),C??(C=-1),b!==C&&(a=Math.max(0,a-Math.abs(b-C))),x()},{immediate:!0})}function y(){const m=Math.floor(e.page.value),b=C=>{a>op||W(C)};for(let C=m;C<n.value.length;C++)b(C);for(let C=m-1;C>=0;C--)b(C)}async function W(m){const b=n.value[m];if(!(!i||!b||o[b])){if(!o[b]){o[b]={src:b,isLoading:!0,hasError:!1},a++;const C=await lp(b);if(o[b]={src:b,size:C,isLoading:!1,hasError:!C},a=Math.max(0,a-1),C&&!f.value&&m>Math.min(1,n.value.length-2)){const U=C.height/C.width>2.5;f.value!==U&&(f.value=U)}u.value&&f.value!==void 0&&c!==void 0&&T(c)}x()}}function D(){let m=!1;const b=new MutationObserver(()=>{l&&g(l)});He(async()=>{b.disconnect();const C=e.page.value;await ro(),Qi({contentEl:l,imgEls:t,page:C})}),Y(C=>{l!==C&&(l=C,b.disconnect(),b.observe(l,{childList:!0,subtree:!0}),m?g(l):(m=!0,v(l)))})}async function Y(m){var Q;const b=(Q=e.spec)==null?void 0:Q.content;if(!b)return;const C=await sp(e.spec);let U=b?await xn(C?100:1,10,()=>document.querySelector(b)):void 0;if(!U)return;m(U);let O=0;const R=async()=>{if(i&&!(U!=null&&U.isConnected)){if(O=0,U=await xn(50,20,()=>{const oe=document.querySelector(b);return oe!=null&&oe.isConnected&&oe!==U?oe:void 0}),!U)return;m(U)}!i||++O>=10||setTimeout(R,200)};setTimeout(R,200)}let N=0;async function v(m){var R;if(!i||!m.isConnected)return;const b=Date.now();N=b;let C,U;const O=(R=e.spec)==null?void 0:R.imgDivs;if(O){if(U=Array.from(m.querySelectorAll(O)),C=await Promise.all(U.map(async(Q,oe)=>{const re=Array.from(Q.querySelectorAll("img,canvas"));for(const $ of re){const L=await k({ts:b,el:$,index:oe,total:U.length,onImgLoad:()=>g(m)});if(L)return L}})),!i||!m.isConnected||N!==b)return}else{const Q=Array.from(m.querySelectorAll("img,canvas")),oe=await Promise.all(Q.map(($,L)=>k({ts:b,el:$,index:L,total:Q.length,onImgLoad:()=>g(m)})));if(!i||!m.isConnected||N!==b)return;U=Q.filter(($,L)=>oe[L]),C=oe.filter(Boolean);const re=C.filter(($,L)=>$&&L!==C.lastIndexOf($));re.length&&(C=C.filter($=>$&&!re.includes($)))}c??(c=Ji(U)),(C.length!==n.value.length||C.some((Q,oe)=>n.value[oe]!==Q))&&(t=U,n.value=C,x(),c!==void 0&&u.value&&f.value!==void 0&&n.value.some(Boolean)&&T(c))}const S=Date.now();async function k({ts:m,el:b,index:C,total:U,onImgLoad:O}){const R=s.get(b);let Q,oe;if(b.tagName.toLowerCase()==="canvas"){if(R)return R.src;Q=await Zi(b)}else{if(b._tkLoadId_!==S&&(b._tkLoadId_=S,b.addEventListener("load",O),He(()=>{b._tkLoadId_===S&&delete b._tkLoadId_,b.removeEventListener("load",O)})),oe=cp(b),!oe)return;if(oe===(R==null?void 0:R.originalSrc))return R.src;if(Q=await ip(b,oe),!i||N!==m)return;if(f.value===void 0&&C>Math.min(1,U-2)){const $=+(b.getAttribute("width")??0),L=+(b.getAttribute("height")??0);$&&L&&(f.value=L/$>2.5)}}return Q&&(s.set(b,{src:Q,originalSrc:oe}),Q.startsWith("blob:")&&r.push(Q)),Q}return{isLoading:le(()=>u.value),asyncImgs:le(()=>n.value.map(m=>m?o[m]:void 0)),isWebtoon:le(()=>f.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 s=i=>i.preventDefault();r.addEventListener("click",s),He(()=>{delete r._tkDirty_,r.removeEventListener("click",s)})}return r.click(),await ro(),!0}function Zi(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 ip(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),r=o.getContext("2d"),s=e.naturalWidth,i=e.naturalHeight;return o.width=s,o.height=i,r==null||r.drawImage(e,0,0,s,i),await Zi(o)}function lp(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{const{naturalWidth:r,naturalHeight:s}=n;s&&r&&(t({width:r,height:s}),clearInterval(o))},20);n.onerror=()=>{t(void 0),clearInterval(o)},n.src=e})}function ap(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src));return Ji(n)}function Ji(e){for(let t=0;t<e.length;t++){const n=e[t].getBoundingClientRect();if(n.bottom<=0)continue;const o=n.top;return t+(o>=0?0:Math.floor(-o/n.height*100)/100)}return 0}function cp(e){const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden")return;const n=e.getBoundingClientRect();if(n.width&&n.height&&(n.width<200||n.height<200))return;const o=e.getAttributeNames(),r=o.indexOf("src");r!==-1&&(o.splice(r,1),o.push("src"));for(const s of o){if(s!=="data-url"&&s!=="data-original"&&!s.includes("src"))continue;const i=e.getAttribute(s);if(i)return s==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:i.replace(/(\n|\t)/g," ").trim()}}function Qi({contentEl:e,imgEls:t,page:n,smooth:o}){var a;const r=n>=t.length,s=o?"smooth":"instant";if(r){(a=t[t.length-1])==null||a.scrollIntoView({block:"end",behavior:s});return}const i=t[Math.floor(n)];i&&setTimeout(()=>{const l=fr(e??document.documentElement),c=i.offsetTop+(r?1:n%1)*i.getBoundingClientRect().height;l==null||l.scrollTo({top:c,behavior:s})})}function fr(e){if(e)return e.scrollHeight>e.clientHeight?e===document.body?fr(document.documentElement)??e:e:fr(e.parentElement??void 0)}function up(e,t){return le(()=>t.value?Gi(e.value):e.value.map((n,o)=>[{img:n,index:o}]))}function Gi(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height)?[n[0]]:n;return[r.map((s,i)=>({img:s,index:t+i})),...Gi(e.slice(r.length),t+r.length)]}function fp(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")),sr("tk:page",t,{writeDefaults:!1,mergeDefaults(o){return typeof o=="number"?Math.max(0,o):t}})}function dp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const dr=40;function pp({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:s,spaceTop:i,scrollEl:a,interferePlayer:l,onChangedPage:c}){let f=!1,u=!1,g;const x=gp(Y,300),T=nt(()=>u=!0,100);function y(){let m=null;la(async()=>{a.value&&a.value!==m&&(m=a.value,D(e.value),m==null||m.removeEventListener("scroll",x),a.value.addEventListener("scroll",x))});const{width:b,height:C}=bu();ue(b,W),ue(C,W),ue(n,W),ue(t,W)}async function W(){f=!0;const m=e.value;if(await et(),N()===m){f=!1;return}D(m)}function D(m,{smooth:b}={smooth:!1}){const C=a.value;if(!C)return;f=!0;const U=async()=>{await et(),f=!1,T()},O=Math.floor(m),R=C.querySelector(`[data-index="${O}"],[data-index2="${O}"]`);if(!R){U();return}l(async()=>{u?o.value?(await P(C,R,{smooth:b,page:m}),Y()):(C.style.setProperty("scroll-snap-type","none"),await P(C,R,{smooth:b,page:m}),C.style.setProperty("scroll-snap-type",""),Y()):o.value?await P(C,R,{smooth:b,page:m}):await P(C,R,{smooth:b,page:m}),await U()})}function Y(){if(!a.value||f||!u)return;const m=N();m!==void 0&&m!==e.value&&c(m)}function N(){const m=v();if(!m)return;const b=+m.getAttribute("data-index")||0;return o.value?Math.floor((b+S(m))*100)/100:b}function v(){g??(g=a.value.getRootNode());const m=g.elementsFromPoint(r.value||!o.value?window.innerWidth/2:s.value?window.innerWidth-dr:dr,r.value&&o.value?i.value||dr:window.innerHeight/2);for(let b=0;b<m.length;b++){const C=m[b];if(C.hasAttribute("data-index"))return C;if(C===a.value)break}}function S(m){const b=m.getBoundingClientRect();return r.value?Math.abs(b.top-(i.value||0))/b.height:s.value?Math.max(0,b.right-a.value.clientWidth)/b.width:Math.abs(b.left)/b.width}let k=!1;async function P(m,b,C){if(k)return;k=!0;const U=r.value?m.scrollTop:m.scrollLeft,O=C.page,R=o.value?O%1:0,Q=await xn(30,10,async()=>{await ro();const L=r.value?b.offsetTop+R*b.offsetHeight-(o.value?i.value??0:0):s.value?b.offsetLeft-m.clientWidth+b.offsetWidth-R*b.offsetWidth:b.offsetLeft+R*b.offsetWidth;return O>.5&&Math.abs(L)<100?void 0:L})??0;if(!C.smooth){r.value?m.scrollTop=Q:m.scrollLeft=Q,k=!1;return}const oe=Q-U,re=30;let $=0;return new Promise(L=>{(function ee(){const we=hp($,U,oe,re);r.value?m.scrollTop=we:m.scrollLeft=we,$++,$<=re?requestAnimationFrame(ee):(L(),k=!1)})()})}return{init:y,goToPage:D}}function hp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function gp(e,t){let n;return()=>{n||(n=setTimeout(()=>{n=void 0,e()},t))}}function mp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:s,speed:i,onLongIdle:a}){const l=sr("tk:isPlaying",e,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults:(m,b)=>m===void 0?b:m===!0||m==="true"}),c=J(!1);let f,u;const g=nt(k,100);let x;const T=nt(()=>{c.value=!0,clearTimeout(x),x=l.value?void 0:setTimeout(a,s.value?3e4:6e4)},t?2e3:1e3),y=()=>setTimeout(()=>{c.value=!1,T(),x&&(clearTimeout(x),x=void 0)},30);y(),t||St(window,"mousemove",y);const W=mi();qe(()=>{ue(W,m=>{l.value&&(m==="visible"?k():u==null||u())}),ue(i,()=>D()),ue(s,m=>{m||N()})}),He(()=>{clearTimeout(x),x=void 0});async function D(m){l.value&&(u==null||u()),m&&(await et(),await m()),l.value&&g()}function Y(){l.value?N():v()}function N(){l.value&&(l.value=!1,u==null||u(),y())}function v(){!l.value&&s.value&&(l.value=!0,k(),y())}function S(){u==null||u()}function k(){const m=n.value;if(!l.value||!m)return;const b=o.value?m.scrollHeight-m.clientHeight:m.scrollWidth-m.clientWidth,C=P();if(b<=C){N();return}u=()=>{f=Date.now(),u=void 0};const U=Date.now();f=U;const O=.05*i.value,R=o.value?"scrollTop":"scrollLeft";let Q=Date.now(),oe=0;const re=()=>{if(f!==U)return;const $=Date.now(),L=$-Q;Q=$;const ee=O*L+oe;ee>=1?(oe=ee%1,m[R]+=(ee-oe)*(r.value?-1:1)):oe=ee,setTimeout(re,1)};re()}function P(){const m=n.value;return o.value?m.scrollTop:r.value?-m.scrollLeft:m.scrollLeft}return{isPlaying:l,isIdle:c,toggle:Y,play:v,pause:S,resume:k,stop:N,interfere:D,awake:y}}function vp(e){var u,g,x,T;let t=-1;const{vol:n,chap:o,title:r,slug:s,basePath:i}=e,a=r.chapters??[],l=(a==null?void 0:a.length)>1?a:[];l.length&&(t=l.findIndex(y=>y.slug===e.slug),t===-1&&(t=l.findIndex(y=>y.vol===n&&y.chap===o)),t===-1&&(t=l.findIndex(y=>s.startsWith(`${y.slug}-`)&&s.length-y.slug.length>3)));const c=((u=e.prev)==null?void 0:u.slug)??((g=l[t+1])==null?void 0:g.slug),f=((x=e.next)==null?void 0:x.slug)??((T=l[t-1])==null?void 0:T.slug);return{activeIndex:t,activeLabel:el({vol:n,chap:o}),chapters:l.map(y=>({label:el(y),path:pr(i,y.slug)})),prevPath:pr(i,c),nextPath:pr(i,f)}}function pr(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function el({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=Ce({...{inheritAttrs:!1},__name:"TrackkunReader",props:{raw:{},spec:{},page:{},spaceTop:{},spaceBottom:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},isGuest:{type:Boolean},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean}},emits:["pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","longIdle","finished"],setup(e,{emit:t}){const n=e,o=Wu({touchDevice:n.touchDevice}),r=fp(n.page),{asyncImgs:s,isLoading:i,isWebtoon:a}=rp({raw:n.raw,spec:n.spec,page:r,onReady(p){n.isAutoShow===!1?r.value=p:r.value>s.value.length&&(r.value=Math.max(0,s.value.length-1)),Q.init()},onError:()=>{}}),{direction:l,style:c,isRTL:f,isDouble:u,isVertical:g,isLongStrip:x,gap:T,speed:y,zoom:W}=Of({titleName:n.raw.title.name,isWebtoon:a}),D=up(s,u),Y=le(()=>r.value>=s.value.length),N=le(()=>vp(n.raw)),v=le(()=>{var p,_;return f.value?(p=N.value)==null?void 0:p.nextPath:(_=N.value)==null?void 0:_.prevPath}),S=le(()=>{var p,_;return f.value?(p=N.value)==null?void 0:p.prevPath:(_=N.value)==null?void 0:_.nextPath}),k=J(null),P=J(null),m=J(!1),b=J(!1),C=mp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:le(()=>{var p;return(p=k.value)==null?void 0:p.$el}),speed:y,isRTL:f,isVertical:g,isLongStrip:x,onLongIdle:()=>t("longIdle")});ue(C.isPlaying,p=>{p||ze(!1),t("playingChanged",p)}),ue(C.isIdle,p=>{C.isPlaying.value&&ze(p)}),ue(o,p=>{!p&&C.isIdle.value?C.awake():p&&n.fullScreen&&ze()});const U=le(()=>!n.touchDevice&&C.isIdle.value&&!o.value),O=le({get(){return W.value},set(p){C.interfere(()=>{W.value=p})}});let R=!1;const Q=pp({page:r,style:c,direction:l,isLongStrip:x,isVertical:g,isRTL:f,spaceTop:le(()=>n.spaceTop),scrollEl:le(()=>{var p;return(p=k.value)==null?void 0:p.$el}),interferePlayer:p=>C.interfere(p),onChangedPage(p){if(p<0||p>=s.value.length+1)return;r.value=p,t("pageChanged",p),p>=s.value.length&&(ze(!1),C.stop()),!R&&p>=s.value.length-2&&(R=!0,t("finished"))}}),oe=()=>C.interfere(()=>ro(100));ef().addListener({onKeyDown:p=>{if(n.tourEnabled)return;const _=x.value&&g.value,I=x.value&&!g.value,z=!x.value&&g.value,M=!x.value&&!g.value;switch(p.key){case" ":p.preventDefault(),x.value?(w(!1),C.toggle()):Pe();break;case"ArrowUp":case"PageUp":_?oe():z&&(p.preventDefault(),gt());break;case"ArrowDown":case"PageDown":_?oe():z&&(p.preventDefault(),Pe());break;case"ArrowLeft":I?oe():M?(p.preventDefault(),en()):g.value&&we();break;case"ArrowRight":I?oe():M?(p.preventDefault(),kn()):g.value&&ee();break}},onKeyUp:p=>{switch(p.key){case"f":nn();break;case"t":tn();break;case"h":w();break}}}),qe(()=>{St("fullscreenchange",()=>{m.value=!!document.fullscreenElement})});function $(){x.value||Q.goToPage(Math.floor(r.value),{smooth:!0})}function L(){if(C.isPlaying.value){!n.fullScreen||!n.touchDevice?C.stop():C.awake();return}ze()}function ee(){var p;Oe((p=N.value)==null?void 0:p.nextPath)}function we(){var p;Oe((p=N.value)==null?void 0:p.prevPath)}function rt(p){var I,z,M;const _=(M=(z=(I=N.value)==null?void 0:I.chapters)==null?void 0:z[p])==null?void 0:M.path;_&&Oe(_)}function Oe(p){p&&(location.href=p.includes("://")?p:location.origin+p)}function en(){f.value?Pe():gt()}function kn(){f.value?gt():Pe()}function gt(){var I;const p=D.value,_=Y.value?p[p.length-1][0].index:(I=p[mt()-1])==null?void 0:I[0].index;_!==void 0?Q.goToPage(_):we()}function Pe(){var _;const p=Y.value?Math.floor(r.value)+1:((_=D.value[mt()+1])==null?void 0:_[0].index)??s.value.length;Q.goToPage(p)}function mt(){const p=Math.floor(r.value),_=D.value.findIndex(I=>I.some(({index:z})=>z===p));return _===-1?D.value.length-1:_}function Pt(){dp(),C.stop(),t("dispose")}async function ze(p){o.value&&!n.fullScreen||t("fullScreenChanged",typeof p=="boolean"?p:!n.fullScreen)}function tn(){n.entryId?h():d()}function nn(){var p,_;document.fullscreenElement?document.exitFullscreen():(_=(p=P.value)==null?void 0:p.$el)==null||_.requestFullscreen()}function d(){C.stop(),t("addEntry")}function h(){C.stop(),t("openEntry",n.entryId)}function w(p){b.value!==p&&(b.value=!b.value,b.value&&C.isPlaying&&C.stop())}return(p,_)=>{const I=ur,z=qi,M=Xi,j=Ki,E=Wi,X=Vi,B=to,q=Hi,G=cr,se=Fi,de=Ri,fe=Ni,me=Bi,Ve=Ai,Et=ji,so=zi,Ht=Li,io=lr,je=ir,Je=Ti,lo=Ci,Ip=xi,Op=oi;return A(),ye(Op,{ref_key:"root",ref:P,"full-screen":!!p.fullScreen,idle:U.value,"space-top":n.spaceTop,"space-bottom":n.spaceBottom,"touch-device":p.touchDevice,rtl:F(f),onClick:_[11]||(_[11]=at(()=>{},["stop"]))},fs({back:ne(()=>[K(B,{href:p.raw.title.url,title:"Back to manga"},{default:ne(()=>[K(X)]),_:1},8,["href"])]),"chapter-nav":ne(()=>[K(G,{modelValue:N.value.activeIndex,label:N.value.activeLabel,title:"Select chapter",items:N.value.chapters,"onUpdate:modelValue":rt},{item:ne(({item:Ae})=>[xt(Ke(Ae.label),1)]),_:1},8,["modelValue","label","items"]),v.value||S.value?(A(),V("div",_p,[K(B,{title:`${F(f)?"Next":"Prev"} chapter (←)`,href:v.value,disabled:!v.value,class:"!rounded-r-none"},{default:ne(()=>[K(se)]),_:1},8,["title","href","disabled"]),K(B,{title:`${F(f)?"Prev":"Next"} chapter (→)`,href:S.value,disabled:!S.value,class:"!rounded-l-none"},{default:ne(()=>[K(de)]),_:1},8,["title","href","disabled"])])):Le("",!0)]),entry:ne(()=>[K(B,{title:p.entryId?"View entry (T)":"Add to Trackkun (T)","data-tour":"Press here to add this manga to your Trackkun collection",onClick:tn},{default:ne(()=>[p.entryId?(A(),ye(me,{key:0})):(A(),ye(Ve,{key:1}))]),_:1},8,["title"])]),settings:ne(()=>[K(Ht,{"reader-style":F(c),"onUpdate:readerStyle":_[3]||(_[3]=Ae=>be(c)?c.value=Ae:null),direction:F(l),"onUpdate:direction":_[4]||(_[4]=Ae=>be(l)?l.value=Ae:null),gap:F(T),"onUpdate:gap":_[5]||(_[5]=Ae=>be(T)?T.value=Ae:null),speed:F(y),"onUpdate:speed":_[6]||(_[6]=Ae=>be(y)?y.value=Ae:null),zoom:O.value,"onUpdate:zoom":_[7]||(_[7]=Ae=>O.value=Ae),name:p.raw.title.name,webtoon:F(a),disabled:F(i),onHelp:w},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]),"reset-zoom":ne(()=>[K(Qt,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ne(()=>[K(Je,{zoom:O.value,onClick:_[9]||(_[9]=at(()=>O.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:ne(()=>[H("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Ee({width:`${F(r)/(F(s).length-1)*100}%`})},null,4)]),default:ne(()=>[F(i)||!F(s).length?(A(),ye(I,{key:0})):(A(),V(ge,{key:1},[K(M,{ref_key:"body",ref:k,zoom:O.value,"onUpdate:zoom":_[0]||(_[0]=Ae=>O.value=Ae),pages:F(D),"total-imgs":F(s).length,direction:F(l),gap:F(T),"is-long-strip":F(x),isRTL:F(f),"is-vertical":F(g),"space-top":p.spaceTop,"space-bottom":n.spaceBottom,busy:F(o),idle:U.value,"play-controller":F(C),"touch-device":p.touchDevice,onPrev:gt,onNext:Pe,onClick:L,onDragEnd:$,onWheelPassive:_[1]||(_[1]=()=>F(C).interfere())},fs({_:2},[!F(i)&&F(s).length?{name:"end",fn:ne(()=>[K(z,{"has-next":!!N.value.nextPath,onNext:ee,onHide:Pt},null,8,["has-next"])]),key:"0"}:void 0]),1032,["zoom","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","space-bottom","busy","idle","play-controller","touch-device"]),ft(K(j,{direction:F(l)},null,8,["direction"]),[[ei,!Y.value&&!p.tourEnabled&&!b.value]]),Y.value?Le("",!0):(A(),ye(E,{key:0,playing:!!F(C).isPlaying.value},null,8,["playing"]))],64)),b.value?(A(),ye(lo,{key:2,"touch-device":p.touchDevice,onHide:w},null,8,["touch-device"])):Le("",!0),p.tourEnabled?(A(),ye(Ip,{key:3,onHide:_[10]||(_[10]=()=>t("tourEnabledChanged",!1))})):Le("",!0)]),_:2},[p.touchDevice?void 0:{name:"exit",fn:ne(()=>[K(B,{title:"Hide reader","data-tour":"You have entered Trackkun reader mode, press here to return to the original page",onClick:Pt},{default:ne(()=>[K(q)]),_:1})]),key:"0"},F(D).length?{name:"page-nav",fn:ne(()=>[K(fe,{"model-value":F(r),disabled:F(i),pages:F(D),"total-imgs":F(s).length,"onUpdate:modelValue":_[2]||(_[2]=Ae=>F(Q).goToPage(Ae))},null,8,["model-value","disabled","pages","total-imgs"])]),key:"1"}:void 0,p.touchDevice?void 0:{name:"full-screen",fn:ne(()=>[K(B,{title:`${m.value?"Exit":"Enter"} fullscreen (F)`,onClick:nn},{default:ne(()=>[m.value?(A(),ye(Et,{key:0})):(A(),ye(so,{key:1}))]),_:1},8,["title"])]),key:"2"},F(x)?{name:"play",fn:ne(()=>[K(B,{"data-tour":"Press here to play like a video",title:`${F(C).isPlaying.value?"Pause":"Play"} (Space)`,disabled:F(i),onClick:_[8]||(_[8]=()=>F(C).toggle())},{default:ne(()=>[F(C).isPlaying.value?(A(),ye(io,{key:0})):(A(),ye(je,{key:1}))]),_:1},8,["title","disabled"])]),key:"3"}:void 0]),1032,["full-screen","idle","space-top","space-bottom","touch-device","rtl"])}}}),tl=he(bp,[["styles",[`/*! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:Helvetica,sans-serif;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:300px){.container{max-width:300px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.inset-2{bottom:8px;left:8px;right:8px;top:8px}.left-0{left:0}.top-0{top:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.top-full{top:100%}.left-1\\/2{left:50%}.right-0{right:0}.top-1\\/2{top:50%}.top-1{top:4px}.z-50{z-index:50}.z-20{z-index:20}.z-10{z-index:10}.z-\\[9999999999\\]{z-index:9999999999}.-z-10{z-index:-10}.z-30{z-index:30}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.ml-auto{margin-left:auto}.-ml-20{margin-left:-80px}.ml-1{margin-left:4px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-0\\.5{height:2px}.h-0{height:0}.h-full{height:100%}.h-12{height:48px}.h-\\[27rem\\]{height:432px}.h-16{height:64px}.h-10{height:40px}.h-4{height:16px}.h-9{height:36px}.h-24{height:96px}.h-1\\.5{height:6px}.h-1{height:4px}.h-7{height:28px}.h-8{height:32px}.h-6{height:24px}.h-20{height:80px}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-full{max-height:100%}.w-full{width:100%}.w-28{width:112px}.w-40{width:160px}.w-4{width:16px}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-1\\/3{width:33.333333%}.w-\\[4\\.5rem\\]{width:72px}.max-w-full{max-width:100%}.max-w-xs{max-width:320px}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-right{transform-origin:right}.origin-bottom{transform-origin:bottom}.origin-top{transform-origin:top}.translate-y-full{--tw-translate-y:100%}.-translate-y-1\\.5,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\.5{--tw-translate-y:-6px}.-translate-y-1{--tw-translate-y:-4px}.-translate-y-1,.translate-y-1\\.5{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\\.5{--tw-translate-y:6px}.translate-y-1{--tw-translate-y:4px}.-translate-x-1\\/2,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.cursor-none{cursor:none}.cursor-auto{cursor:auto}.cursor-grabbing{cursor:grabbing}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.\\!snap-none{scroll-snap-type:none!important}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-\\[1px\\]{gap:1px}.gap-6{gap:24px}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-2xl{border-radius:16px}.rounded-sm{border-radius:2px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-t-sm{border-top-left-radius:2px;border-top-right-radius:2px}.rounded-t-xl{border-top-left-radius:12px;border-top-right-radius:12px}.border-2{border-width:2px}.border{border-width:1px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:.5}.bg-opacity-90{--tw-bg-opacity:.9}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-40{--tw-bg-opacity:.4}.p-6{padding:24px}.p-2{padding:8px}.p-4{padding:16px}.p-1{padding:4px}.px-6{padding-left:24px;padding-right:24px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.py-2{padding-bottom:8px;padding-top:8px}.py-1{padding-bottom:4px;padding-top:4px}.pt-3{padding-top:12px}.pb-12{padding-bottom:48px}.pl-1{padding-left:4px}.pb-4{padding-bottom:16px}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:16px;line-height:24px}.text-xl{font-size:20px;line-height:28px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.opacity-90{opacity:.9}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.duration-150{transition-duration:.15s}.duration-100{transition-duration:.1s}.ease-linear{transition-timing-function:linear}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:4px;width:4px}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:300px){.\\32xs\\:gap-3{gap:12px}}@media (min-width:640px){.sm\\:inset-3{bottom:12px;left:12px;right:12px;top:12px}.sm\\:w-\\[32rem\\]{width:512px}.sm\\:pb-2{padding-bottom:8px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-0{padding-bottom:0}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
|
|
8
|
-
`]]]),
|
|
9
|
-
`,Cn="gear-second",
|
|
1
|
+
(function(De,se){typeof exports=="object"&&typeof module<"u"?module.exports=se():typeof define=="function"&&define.amd?define(se):(De=typeof globalThis<"u"?globalThis:De||self,De._gearSecond_=se())})(this,function(){"use strict";var Bp=Object.defineProperty;var Dp=(De,se,Ue)=>se in De?Bp(De,se,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):De[se]=Ue;var rl=(De,se,Ue)=>(Dp(De,typeof se!="symbol"?se+"":se,Ue),Ue);function De(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const se={},Ue=[],et=()=>{},sl=()=>!1,il=/^on[^a-z]/,kn=e=>il.test(e),ao=e=>e.startsWith("onUpdate:"),ve=Object.assign,co=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ll=Object.prototype.hasOwnProperty,ae=(e,t)=>ll.call(e,t),Q=Array.isArray,Vt=e=>Sn(e)==="[object Map]",vr=e=>Sn(e)==="[object Set]",ne=e=>typeof e=="function",be=e=>typeof e=="string",uo=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",_r=e=>pe(e)&&ne(e.then)&&ne(e.catch),br=Object.prototype.toString,Sn=e=>br.call(e),al=e=>Sn(e).slice(8,-1),yr=e=>Sn(e)==="[object Object]",fo=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Tn=De(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),$n=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},cl=/-(\w)/g,Re=$n(e=>e.replace(cl,(t,n)=>n?n.toUpperCase():"")),ul=/\B([A-Z])/g,Ke=$n(e=>e.replace(ul,"-$1").toLowerCase()),In=$n(e=>e.charAt(0).toUpperCase()+e.slice(1)),po=$n(e=>e?`on${In(e)}`:""),on=(e,t)=>!Object.is(e,t),Pn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},En=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ho=e=>{const t=parseFloat(e);return isNaN(t)?e:t},go=e=>{const t=be(e)?Number(e):NaN;return isNaN(t)?e:t};let wr;const mo=()=>wr||(wr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Me(e){if(Q(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=be(o)?hl(o):Me(o);if(r)for(const s in r)t[s]=r[s]}return t}else{if(be(e))return e;if(pe(e))return e}}const fl=/;(?![^(]*\))/g,dl=/:([^]+)/,pl=/\/\*[^]*?\*\//g;function hl(e){const t={};return e.replace(pl,"").split(fl).forEach(n=>{if(n){const o=n.split(dl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function xe(e){let t="";if(be(e))t=e;else if(Q(e))for(let n=0;n<e.length;n++){const o=xe(e[n]);o&&(t+=o+" ")}else if(pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const gl=De("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function xr(e){return!!e||e===""}const Ye=e=>be(e)?e:e==null?"":Q(e)||pe(e)&&(e.toString===br||!ne(e.toString))?JSON.stringify(e,Cr,2):String(e),Cr=(e,t)=>t&&t.__v_isRef?Cr(e,t.value):Vt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:vr(t)?{[`Set(${t.size})`]:[...t.values()]}:pe(t)&&!Q(t)&&!yr(t)?String(t):t;let Ne;class ml{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ne,!t&&Ne&&(this.index=(Ne.scopes||(Ne.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ne;try{return Ne=this,t()}finally{Ne=n}}}on(){Ne=this}off(){Ne=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function vl(e,t=Ne){t&&t.active&&t.effects.push(e)}function kr(){return Ne}function _l(e){Ne&&Ne.cleanups.push(e)}const vo=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Sr=e=>(e.w&_t)>0,Tr=e=>(e.n&_t)>0,bl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=_t},yl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];Sr(r)&&!Tr(r)?r.delete(e):t[n++]=r,r.w&=~_t,r.n&=~_t}t.length=n}},_o=new WeakMap;let rn=0,_t=1;const bo=30;let tt;const Et=Symbol(""),yo=Symbol("");class wo{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,vl(this,o)}run(){if(!this.active)return this.fn();let t=tt,n=bt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=tt,tt=this,bt=!0,_t=1<<++rn,rn<=bo?bl(this):$r(this),this.fn()}finally{rn<=bo&&yl(this),_t=1<<--rn,tt=this.parent,bt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){tt===this?this.deferStop=!0:this.active&&($r(this),this.onStop&&this.onStop(),this.active=!1)}}function $r(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let bt=!0;const Ir=[];function Wt(){Ir.push(bt),bt=!1}function Ut(){const e=Ir.pop();bt=e===void 0?!0:e}function Ae(e,t,n){if(bt&&tt){let o=_o.get(e);o||_o.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=vo()),Pr(r)}}function Pr(e,t){let n=!1;rn<=bo?Tr(e)||(e.n|=_t,n=!Sr(e)):n=!e.has(tt),n&&(e.add(tt),tt.deps.push(e))}function ut(e,t,n,o,r,s){const i=_o.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&Q(e)){const l=Number(o);i.forEach((c,u)=>{(u==="length"||u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":Q(e)?fo(n)&&a.push(i.get("length")):(a.push(i.get(Et)),Vt(e)&&a.push(i.get(yo)));break;case"delete":Q(e)||(a.push(i.get(Et)),Vt(e)&&a.push(i.get(yo)));break;case"set":Vt(e)&&a.push(i.get(Et));break}if(a.length===1)a[0]&&xo(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);xo(vo(l))}}function xo(e,t){const n=Q(e)?e:[...e];for(const o of n)o.computed&&Er(o);for(const o of n)o.computed||Er(o)}function Er(e,t){(e!==tt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const wl=De("__proto__,__v_isRef,__isVue"),Or=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(uo)),xl=Co(),Cl=Co(!1,!0),kl=Co(!0),Mr=Sl();function Sl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ce(this);for(let s=0,i=this.length;s<i;s++)Ae(o,"get",s+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(ce)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Wt();const o=ce(this)[t].apply(this,n);return Ut(),o}}),e}function Tl(e){const t=ce(this);return Ae(t,"has",e),t.hasOwnProperty(e)}function Co(e=!1,t=!1){return function(o,r,s){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&s===(e?t?Hl:Fr:t?Nr:Rr).get(o))return o;const i=Q(o);if(!e){if(i&&ae(Mr,r))return Reflect.get(Mr,r,s);if(r==="hasOwnProperty")return Tl}const a=Reflect.get(o,r,s);return(uo(r)?Or.has(r):wl(r))||(e||Ae(o,"get",r),t)?a:ye(a)?i&&fo(r)?a:a.value:pe(a)?e?To(a):sn(a):a}}const $l=Lr(),Il=Lr(!0);function Lr(e=!1){return function(n,o,r,s){let i=n[o];if(Yt(i)&&ye(i)&&!ye(r))return!1;if(!e&&(!Bn(r)&&!Yt(r)&&(i=ce(i),r=ce(r)),!Q(n)&&ye(i)&&!ye(r)))return i.value=r,!0;const a=Q(n)&&fo(o)?Number(o)<n.length:ae(n,o),l=Reflect.set(n,o,r,s);return n===ce(s)&&(a?on(r,i)&&ut(n,"set",o,r):ut(n,"add",o,r)),l}}function Pl(e,t){const n=ae(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&ut(e,"delete",t,void 0),o}function El(e,t){const n=Reflect.has(e,t);return(!uo(t)||!Or.has(t))&&Ae(e,"has",t),n}function Ol(e){return Ae(e,"iterate",Q(e)?"length":Et),Reflect.ownKeys(e)}const zr={get:xl,set:$l,deleteProperty:Pl,has:El,ownKeys:Ol},Ml={get:kl,set(e,t){return!0},deleteProperty(e,t){return!0}},Ll=ve({},zr,{get:Cl,set:Il}),ko=e=>e,On=e=>Reflect.getPrototypeOf(e);function Mn(e,t,n=!1,o=!1){e=e.__v_raw;const r=ce(e),s=ce(t);n||(t!==s&&Ae(r,"get",t),Ae(r,"get",s));const{has:i}=On(r),a=o?ko:n?Io:ln;if(i.call(r,t))return a(e.get(t));if(i.call(r,s))return a(e.get(s));e!==r&&e.get(t)}function Ln(e,t=!1){const n=this.__v_raw,o=ce(n),r=ce(e);return t||(e!==r&&Ae(o,"has",e),Ae(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function zn(e,t=!1){return e=e.__v_raw,!t&&Ae(ce(e),"iterate",Et),Reflect.get(e,"size",e)}function jr(e){e=ce(e);const t=ce(this);return On(t).has.call(t,e)||(t.add(e),ut(t,"add",e,e)),this}function Ar(e,t){t=ce(t);const n=ce(this),{has:o,get:r}=On(n);let s=o.call(n,e);s||(e=ce(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?on(t,i)&&ut(n,"set",e,t):ut(n,"add",e,t),this}function Br(e){const t=ce(this),{has:n,get:o}=On(t);let r=n.call(t,e);r||(e=ce(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&ut(t,"delete",e,void 0),s}function Dr(){const e=ce(this),t=e.size!==0,n=e.clear();return t&&ut(e,"clear",void 0,void 0),n}function jn(e,t){return function(o,r){const s=this,i=s.__v_raw,a=ce(i),l=t?ko:e?Io:ln;return!e&&Ae(a,"iterate",Et),i.forEach((c,u)=>o.call(r,l(c),l(u),s))}}function An(e,t,n){return function(...o){const r=this.__v_raw,s=ce(r),i=Vt(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=r[e](...o),u=n?ko:t?Io:ln;return!t&&Ae(s,"iterate",l?yo:Et),{next(){const{value:d,done:m}=c.next();return m?{value:d,done:m}:{value:a?[u(d[0]),u(d[1])]:u(d),done:m}},[Symbol.iterator](){return this}}}}function yt(e){return function(...t){return e==="delete"?!1:this}}function zl(){const e={get(s){return Mn(this,s)},get size(){return zn(this)},has:Ln,add:jr,set:Ar,delete:Br,clear:Dr,forEach:jn(!1,!1)},t={get(s){return Mn(this,s,!1,!0)},get size(){return zn(this)},has:Ln,add:jr,set:Ar,delete:Br,clear:Dr,forEach:jn(!1,!0)},n={get(s){return Mn(this,s,!0)},get size(){return zn(this,!0)},has(s){return Ln.call(this,s,!0)},add:yt("add"),set:yt("set"),delete:yt("delete"),clear:yt("clear"),forEach:jn(!0,!1)},o={get(s){return Mn(this,s,!0,!0)},get size(){return zn(this,!0)},has(s){return Ln.call(this,s,!0)},add:yt("add"),set:yt("set"),delete:yt("delete"),clear:yt("clear"),forEach:jn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=An(s,!1,!1),n[s]=An(s,!0,!1),t[s]=An(s,!1,!0),o[s]=An(s,!0,!0)}),[e,n,t,o]}const[jl,Al,Bl,Dl]=zl();function So(e,t){const n=t?e?Dl:Bl:e?Al:jl;return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ae(n,r)&&r in o?n:o,r,s)}const Rl={get:So(!1,!1)},Nl={get:So(!1,!0)},Fl={get:So(!0,!1)},Rr=new WeakMap,Nr=new WeakMap,Fr=new WeakMap,Hl=new WeakMap;function Vl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wl(e){return e.__v_skip||!Object.isExtensible(e)?0:Vl(al(e))}function sn(e){return Yt(e)?e:$o(e,!1,zr,Rl,Rr)}function Ul(e){return $o(e,!1,Ll,Nl,Nr)}function To(e){return $o(e,!0,Ml,Fl,Fr)}function $o(e,t,n,o,r){if(!pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=Wl(e);if(i===0)return e;const a=new Proxy(e,i===2?o:n);return r.set(e,a),a}function Kt(e){return Yt(e)?Kt(e.__v_raw):!!(e&&e.__v_isReactive)}function Yt(e){return!!(e&&e.__v_isReadonly)}function Bn(e){return!!(e&&e.__v_isShallow)}function Hr(e){return Kt(e)||Yt(e)}function ce(e){const t=e&&e.__v_raw;return t?ce(t):e}function Vr(e){return En(e,"__v_skip",!0),e}const ln=e=>pe(e)?sn(e):e,Io=e=>pe(e)?To(e):e;function Wr(e){bt&&tt&&(e=ce(e),Pr(e.dep||(e.dep=vo())))}function Ur(e,t){e=ce(e);const n=e.dep;n&&xo(n)}function ye(e){return!!(e&&e.__v_isRef===!0)}function Z(e){return Kr(e,!1)}function Kl(e){return Kr(e,!0)}function Kr(e,t){return ye(e)?e:new Yl(e,t)}class Yl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ce(t),this._value=n?t:ln(t)}get value(){return Wr(this),this._value}set value(t){const n=this.__v_isShallow||Bn(t)||Yt(t);t=n?t:ce(t),on(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ln(t),Ur(this))}}function K(e){return ye(e)?e.value:e}const Xl={get:(e,t,n)=>K(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return ye(r)&&!ye(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Yr(e){return Kt(e)?e:new Proxy(e,Xl)}class ql{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new wo(t,()=>{this._dirty||(this._dirty=!0,Ur(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=ce(this);return Wr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Zl(e,t,n=!1){let o,r;const s=ne(e);return s?(o=e,r=et):(o=e.get,r=e.set),new ql(o,r,s||!r,n)}function Np(e,...t){}function wt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){Dn(s,t,n)}return r}function Xe(e,t,n,o){if(ne(e)){const s=wt(e,t,n,o);return s&&_r(s)&&s.catch(i=>{Dn(i,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(Xe(e[s],t,n,o));return r}function Dn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const i=t.proxy,a=n;for(;s;){const c=s.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,i,a)===!1)return}s=s.parent}const l=t.appContext.config.errorHandler;if(l){wt(l,null,10,[e,i,a]);return}}Jl(e,n,r,o)}function Jl(e,t,n,o=!0){console.error(e)}let an=!1,Po=!1;const Pe=[];let it=0;const Xt=[];let ft=null,Ot=0;const Xr=Promise.resolve();let Eo=null;function qe(e){const t=Eo||Xr;return e?t.then(this?e.bind(this):e):t}function Ql(e){let t=it+1,n=Pe.length;for(;t<n;){const o=t+n>>>1;cn(Pe[o])<e?t=o+1:n=o}return t}function Oo(e){(!Pe.length||!Pe.includes(e,an&&e.allowRecurse?it+1:it))&&(e.id==null?Pe.push(e):Pe.splice(Ql(e.id),0,e),qr())}function qr(){!an&&!Po&&(Po=!0,Eo=Xr.then(Qr))}function Gl(e){const t=Pe.indexOf(e);t>it&&Pe.splice(t,1)}function ea(e){Q(e)?Xt.push(...e):(!ft||!ft.includes(e,e.allowRecurse?Ot+1:Ot))&&Xt.push(e),qr()}function Zr(e,t=an?it+1:0){for(;t<Pe.length;t++){const n=Pe[t];n&&n.pre&&(Pe.splice(t,1),t--,n())}}function Jr(e){if(Xt.length){const t=[...new Set(Xt)];if(Xt.length=0,ft){ft.push(...t);return}for(ft=t,ft.sort((n,o)=>cn(n)-cn(o)),Ot=0;Ot<ft.length;Ot++)ft[Ot]();ft=null,Ot=0}}const cn=e=>e.id==null?1/0:e.id,ta=(e,t)=>{const n=cn(e)-cn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Qr(e){Po=!1,an=!0,Pe.sort(ta);const t=et;try{for(it=0;it<Pe.length;it++){const n=Pe[it];n&&n.active!==!1&&wt(n,null,14)}}finally{it=0,Pe.length=0,Jr(),an=!1,Eo=null,(Pe.length||Xt.length)&&Qr()}}function na(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||se;let r=n;const s=t.startsWith("update:"),i=s&&t.slice(7);if(i&&i in o){const u=`${i==="modelValue"?"model":i}Modifiers`,{number:d,trim:m}=o[u]||se;m&&(r=n.map(S=>be(S)?S.trim():S)),d&&(r=n.map(ho))}let a,l=o[a=po(t)]||o[a=po(Re(t))];!l&&s&&(l=o[a=po(Ke(t))]),l&&Xe(l,e,6,r);const c=o[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Xe(c,e,6,r)}}function Gr(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const s=e.emits;let i={},a=!1;if(!ne(e)){const l=c=>{const u=Gr(c,t,!0);u&&(a=!0,ve(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(pe(e)&&o.set(e,null),null):(Q(s)?s.forEach(l=>i[l]=null):ve(i,s),pe(e)&&o.set(e,i),i)}function Rn(e,t){return!e||!kn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ae(e,t[0].toLowerCase()+t.slice(1))||ae(e,Ke(t))||ae(e,t))}let $e=null,es=null;function Nn(e){const t=$e;return $e=e,es=e&&e.type.__scopeId||null,t}function oe(e,t=$e,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Es(-1);const s=Nn(t);let i;try{i=e(...r)}finally{Nn(s),o._d&&Es(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function Fp(){}function Mo(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:a,attrs:l,emit:c,render:u,renderCache:d,data:m,setupState:S,ctx:y,inheritAttrs:C}=e;let j,N;const L=Nn(e);try{if(n.shapeFlag&4){const h=r||o;j=lt(u.call(h,h,d,s,S,m,y)),N=l}else{const h=t;j=lt(h.length>1?h(s,{attrs:l,slots:a,emit:c}):h(s,null)),N=t.props?l:oa(l)}}catch(h){hn.length=0,Dn(h,e,1),j=q(Je)}let H=j;if(N&&C!==!1){const h=Object.keys(N),{shapeFlag:M}=H;h.length&&M&7&&(i&&h.some(ao)&&(N=ra(N,i)),H=xt(H,N))}return n.dirs&&(H=xt(H),H.dirs=H.dirs?H.dirs.concat(n.dirs):n.dirs),n.transition&&(H.transition=n.transition),j=H,Nn(L),j}const oa=e=>{let t;for(const n in e)(n==="class"||n==="style"||kn(n))&&((t||(t={}))[n]=e[n]);return t},ra=(e,t)=>{const n={};for(const o in e)(!ao(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function sa(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?ts(o,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const m=u[d];if(i[m]!==o[m]&&!Rn(c,m))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:o===i?!1:o?i?ts(o,i,c):!0:!!i;return!1}function ts(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const s=o[r];if(t[s]!==e[s]&&!Rn(n,s))return!0}return!1}function ia({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const la=e=>e.__isSuspense;function aa(e,t){t&&t.pendingBranch?Q(e)?t.effects.push(...e):t.effects.push(e):ea(e)}function ca(e,t){return Lo(e,null,t)}const Fn={};function ue(e,t,n){return Lo(e,t,n)}function Lo(e,t,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:i}=se){var a;const l=kr()===((a=ke)==null?void 0:a.scope)?ke:null;let c,u=!1,d=!1;if(ye(e)?(c=()=>e.value,u=Bn(e)):Kt(e)?(c=()=>e,o=!0):Q(e)?(d=!0,u=e.some(h=>Kt(h)||Bn(h)),c=()=>e.map(h=>{if(ye(h))return h.value;if(Kt(h))return Mt(h);if(ne(h))return wt(h,l,2)})):ne(e)?t?c=()=>wt(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return m&&m(),Xe(e,l,3,[S])}:c=et,t&&o){const h=c;c=()=>Mt(h())}let m,S=h=>{m=L.onStop=()=>{wt(h,l,4)}},y;if(mn)if(S=et,t?n&&Xe(t,l,3,[c(),d?[]:void 0,S]):c(),r==="sync"){const h=tc();y=h.__watcherHandles||(h.__watcherHandles=[])}else return et;let C=d?new Array(e.length).fill(Fn):Fn;const j=()=>{if(L.active)if(t){const h=L.run();(o||u||(d?h.some((M,k)=>on(M,C[k])):on(h,C)))&&(m&&m(),Xe(t,l,3,[h,C===Fn?void 0:d&&C[0]===Fn?[]:C,S]),C=h)}else L.run()};j.allowRecurse=!!t;let N;r==="sync"?N=j:r==="post"?N=()=>Be(j,l&&l.suspense):(j.pre=!0,l&&(j.id=l.uid),N=()=>Oo(j));const L=new wo(c,N);t?n?j():C=L.run():r==="post"?Be(L.run.bind(L),l&&l.suspense):L.run();const H=()=>{L.stop(),l&&l.scope&&co(l.scope.effects,L)};return y&&y.push(H),H}function ua(e,t,n){const o=this.proxy,r=be(e)?e.includes(".")?ns(o,e):()=>o[e]:e.bind(o,o);let s;ne(t)?s=t:(s=t.handler,n=t);const i=ke;Zt(this);const a=Lo(r,s.bind(o),n);return i?Zt(i):Bt(),a}function ns(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r<n.length&&o;r++)o=o[n[r]];return o}}function Mt(e,t){if(!pe(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),ye(e))Mt(e.value,t);else if(Q(e))for(let n=0;n<e.length;n++)Mt(e[n],t);else if(vr(e)||Vt(e))e.forEach(n=>{Mt(n,t)});else if(yr(e))for(const n in e)Mt(e[n],t);return e}function dt(e,t){const n=$e;if(n===null)return e;const o=Qn(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,a,l,c=se]=t[s];i&&(ne(i)&&(i={mounted:i,updated:i}),i.deep&&Mt(a),r.push({dir:i,instance:o,value:a,oldValue:void 0,arg:l,modifiers:c}))}return e}function Lt(e,t,n,o){const r=e.dirs,s=t&&t.dirs;for(let i=0;i<r.length;i++){const a=r[i];s&&(a.oldValue=s[i].value);let l=a.dir[o];l&&(Wt(),Xe(l,n,8,[e.el,a,e,t]),Ut())}}function fa(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Fe(()=>{e.isMounted=!0}),as(()=>{e.isUnmounting=!0}),e}const Ze=[Function,Array],os={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ze,onEnter:Ze,onAfterEnter:Ze,onEnterCancelled:Ze,onBeforeLeave:Ze,onLeave:Ze,onAfterLeave:Ze,onLeaveCancelled:Ze,onBeforeAppear:Ze,onAppear:Ze,onAfterAppear:Ze,onAppearCancelled:Ze},da={name:"BaseTransition",props:os,setup(e,{slots:t}){const n=Ls(),o=fa();let r;return()=>{const s=t.default&&is(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const C of s)if(C.type!==Je){i=C;break}}const a=ce(e),{mode:l}=a;if(o.isLeaving)return jo(i);const c=ss(i);if(!c)return jo(i);const u=zo(c,a,o,n);Ao(c,u);const d=n.subTree,m=d&&ss(d);let S=!1;const{getTransitionKey:y}=c.type;if(y){const C=y();r===void 0?r=C:C!==r&&(r=C,S=!0)}if(m&&m.type!==Je&&(!At(c,m)||S)){const C=zo(m,a,o,n);if(Ao(m,C),l==="out-in")return o.isLeaving=!0,C.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},jo(i);l==="in-out"&&c.type!==Je&&(C.delayLeave=(j,N,L)=>{const H=rs(o,m);H[String(m.key)]=m,j._leaveCb=()=>{N(),j._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=L})}return i}}};function rs(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function zo(e,t,n,o){const{appear:r,mode:s,persisted:i=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:m,onAfterLeave:S,onLeaveCancelled:y,onBeforeAppear:C,onAppear:j,onAfterAppear:N,onAppearCancelled:L}=t,H=String(e.key),h=rs(n,e),M=(_,v)=>{_&&Xe(_,o,9,v)},k=(_,v)=>{const x=v[1];M(_,v),Q(_)?_.every(D=>D.length<=1)&&x():_.length<=1&&x()},$={mode:s,persisted:i,beforeEnter(_){let v=a;if(!n.isMounted)if(r)v=C||a;else return;_._leaveCb&&_._leaveCb(!0);const x=h[H];x&&At(e,x)&&x.el._leaveCb&&x.el._leaveCb(),M(v,[_])},enter(_){let v=l,x=c,D=u;if(!n.isMounted)if(r)v=j||l,x=N||c,D=L||u;else return;let P=!1;const B=_._enterCb=ee=>{P||(P=!0,ee?M(D,[_]):M(x,[_]),$.delayedLeave&&$.delayedLeave(),_._enterCb=void 0)};v?k(v,[_,B]):B()},leave(_,v){const x=String(e.key);if(_._enterCb&&_._enterCb(!0),n.isUnmounting)return v();M(d,[_]);let D=!1;const P=_._leaveCb=B=>{D||(D=!0,v(),B?M(y,[_]):M(S,[_]),_._leaveCb=void 0,h[x]===e&&delete h[x])};h[x]=e,m?k(m,[_,P]):P()},clone(_){return zo(_,t,n,o)}};return $}function jo(e){if(Hn(e))return e=xt(e),e.children=null,e}function ss(e){return Hn(e)?e.children?e.children[0]:void 0:e}function Ao(e,t){e.shapeFlag&6&&e.component?Ao(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function is(e,t=!1,n){let o=[],r=0;for(let s=0;s<e.length;s++){let i=e[s];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===ge?(i.patchFlag&128&&r++,o=o.concat(is(i.children,t,a))):(t||i.type!==Je)&&o.push(a!=null?xt(i,{key:a}):i)}if(r>1)for(let s=0;s<o.length;s++)o[s].patchFlag=-2;return o}function we(e,t){return ne(e)?(()=>ve({name:e.name},t,{setup:e}))():e}const un=e=>!!e.type.__asyncLoader,Hn=e=>e.type.__isKeepAlive;function pa(e,t){ls(e,"a",t)}function ha(e,t){ls(e,"da",t)}function ls(e,t,n=ke){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Vn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Hn(r.parent.vnode)&&ga(o,t,n,r),r=r.parent}}function ga(e,t,n,o){const r=Vn(t,e,o,!0);He(()=>{co(o[t],r)},n)}function Vn(e,t,n=ke,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Wt(),Zt(n);const a=Xe(t,n,e,i);return Bt(),Ut(),a});return o?r.unshift(s):r.push(s),s}}const pt=e=>(t,n=ke)=>(!mn||e==="sp")&&Vn(e,(...o)=>t(...o),n),ma=pt("bm"),Fe=pt("m"),va=pt("bu"),_a=pt("u"),as=pt("bum"),He=pt("um"),ba=pt("sp"),ya=pt("rtg"),wa=pt("rtc");function xa(e,t=ke){Vn("ec",e,t)}const cs="components",us=Symbol.for("v-ndc");function Ca(e){return be(e)?ka(cs,e,!1)||e:e||us}function ka(e,t,n=!0,o=!1){const r=$e||ke;if(r){const s=r.type;if(e===cs){const a=Qa(s,!1);if(a&&(a===t||a===Re(t)||a===In(Re(t))))return s}const i=fs(r[e]||s[e],t)||fs(r.appContext[e],t);return!i&&o?s:i}}function fs(e,t){return e&&(e[t]||e[Re(t)]||e[In(Re(t))])}function fn(e,t,n,o){let r;const s=n&&n[o];if(Q(e)||be(e)){r=new Array(e.length);for(let i=0,a=e.length;i<a;i++)r[i]=t(e[i],i,void 0,s&&s[i])}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,s&&s[i])}else if(pe(e))if(e[Symbol.iterator])r=Array.from(e,(i,a)=>t(i,a,void 0,s&&s[a]));else{const i=Object.keys(e);r=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const c=i[a];r[a]=t(e[c],c,a,s&&s[a])}}else r=[];return n&&(n[o]=r),r}function ds(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(Q(o))for(let r=0;r<o.length;r++)e[o[r].name]=o[r].fn;else o&&(e[o.name]=o.key?(...r)=>{const s=o.fn(...r);return s&&(s.key=o.key),s}:o.fn)}return e}function Ce(e,t,n={},o,r){if($e.isCE||$e.parent&&un($e.parent)&&$e.parent.isCE)return t!=="default"&&(n.name=t),q("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),A();const i=s&&ps(s(n)),a=_e(ge,{key:n.key||i&&i.key||`_${t}`},i||(o?o():[]),i&&e._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function ps(e){return e.some(t=>Xn(t)?!(t.type===Je||t.type===ge&&!ps(t.children)):!0)?e:null}const Bo=e=>e?js(e)?Qn(e)||e.proxy:Bo(e.parent):null,dn=ve(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Bo(e.parent),$root:e=>Bo(e.root),$emit:e=>e.emit,$options:e=>No(e),$forceUpdate:e=>e.f||(e.f=()=>Oo(e.update)),$nextTick:e=>e.n||(e.n=qe.bind(e.proxy)),$watch:e=>ua.bind(e)}),Do=(e,t)=>e!==se&&!e.__isScriptSetup&&ae(e,t),Sa={get({_:e},t){const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const S=i[t];if(S!==void 0)switch(S){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(Do(o,t))return i[t]=1,o[t];if(r!==se&&ae(r,t))return i[t]=2,r[t];if((c=e.propsOptions[0])&&ae(c,t))return i[t]=3,s[t];if(n!==se&&ae(n,t))return i[t]=4,n[t];Ro&&(i[t]=0)}}const u=dn[t];let d,m;if(u)return t==="$attrs"&&Ae(e,"get",t),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==se&&ae(n,t))return i[t]=4,n[t];if(m=l.config.globalProperties,ae(m,t))return m[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return Do(r,t)?(r[t]=n,!0):o!==se&&ae(o,t)?(o[t]=n,!0):ae(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:s}},i){let a;return!!n[i]||e!==se&&ae(e,i)||Do(t,i)||(a=s[0])&&ae(a,i)||ae(o,i)||ae(dn,i)||ae(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ae(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hs(e){return Q(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ro=!0;function Ta(e){const t=No(e),n=e.proxy,o=e.ctx;Ro=!1,t.beforeCreate&&gs(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:m,beforeUpdate:S,updated:y,activated:C,deactivated:j,beforeDestroy:N,beforeUnmount:L,destroyed:H,unmounted:h,render:M,renderTracked:k,renderTriggered:$,errorCaptured:_,serverPrefetch:v,expose:x,inheritAttrs:D,components:P,directives:B,filters:ee}=t;if(c&&$a(c,o,null),i)for(const F in i){const U=i[F];ne(U)&&(o[F]=U.bind(n))}if(r){const F=r.call(n,n);pe(F)&&(e.data=sn(F))}if(Ro=!0,s)for(const F in s){const U=s[F],fe=ne(U)?U.bind(n,n):ne(U.get)?U.get.bind(n,n):et,Te=!ne(U)&&ne(U.set)?U.set.bind(n):et,Ve=ie({get:fe,set:Te});Object.defineProperty(o,F,{enumerable:!0,configurable:!0,get:()=>Ve.value,set:Ie=>Ve.value=Ie})}if(a)for(const F in a)ms(a[F],o,n,F);if(l){const F=ne(l)?l.call(n):l;Reflect.ownKeys(F).forEach(U=>{Kn(U,F[U])})}u&&gs(u,e,"c");function I(F,U){Q(U)?U.forEach(fe=>F(fe.bind(n))):U&&F(U.bind(n))}if(I(ma,d),I(Fe,m),I(va,S),I(_a,y),I(pa,C),I(ha,j),I(xa,_),I(wa,k),I(ya,$),I(as,L),I(He,h),I(ba,v),Q(x))if(x.length){const F=e.exposed||(e.exposed={});x.forEach(U=>{Object.defineProperty(F,U,{get:()=>n[U],set:fe=>n[U]=fe})})}else e.exposed||(e.exposed={});M&&e.render===et&&(e.render=M),D!=null&&(e.inheritAttrs=D),P&&(e.components=P),B&&(e.directives=B)}function $a(e,t,n=et){Q(e)&&(e=Fo(e));for(const o in e){const r=e[o];let s;pe(r)?"default"in r?s=zt(r.from||o,r.default,!0):s=zt(r.from||o):s=zt(r),ye(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[o]=s}}function gs(e,t,n){Xe(Q(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function ms(e,t,n,o){const r=o.includes(".")?ns(n,o):()=>n[o];if(be(e)){const s=t[e];ne(s)&&ue(r,s)}else if(ne(e))ue(r,e.bind(n));else if(pe(e))if(Q(e))e.forEach(s=>ms(s,t,n,o));else{const s=ne(e.handler)?e.handler.bind(n):t[e.handler];ne(s)&&ue(r,s,e)}}function No(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!r.length&&!n&&!o?l=t:(l={},r.length&&r.forEach(c=>Wn(l,c,i,!0)),Wn(l,t,i)),pe(t)&&s.set(t,l),l}function Wn(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&Wn(e,s,n,!0),r&&r.forEach(i=>Wn(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const a=Ia[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Ia={data:vs,props:_s,emits:_s,methods:pn,computed:pn,beforeCreate:Le,created:Le,beforeMount:Le,mounted:Le,beforeUpdate:Le,updated:Le,beforeDestroy:Le,beforeUnmount:Le,destroyed:Le,unmounted:Le,activated:Le,deactivated:Le,errorCaptured:Le,serverPrefetch:Le,components:pn,directives:pn,watch:Ea,provide:vs,inject:Pa};function vs(e,t){return t?e?function(){return ve(ne(e)?e.call(this,this):e,ne(t)?t.call(this,this):t)}:t:e}function Pa(e,t){return pn(Fo(e),Fo(t))}function Fo(e){if(Q(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Le(e,t){return e?[...new Set([].concat(e,t))]:t}function pn(e,t){return e?ve(Object.create(null),e,t):t}function _s(e,t){return e?Q(e)&&Q(t)?[...new Set([...e,...t])]:ve(Object.create(null),hs(e),hs(t??{})):t}function Ea(e,t){if(!e)return t;if(!t)return e;const n=ve(Object.create(null),e);for(const o in t)n[o]=Le(e[o],t[o]);return n}function bs(){return{app:null,config:{isNativeTag:sl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Oa=0;function Ma(e,t){return function(o,r=null){ne(o)||(o=ve({},o)),r!=null&&!pe(r)&&(r=null);const s=bs(),i=new Set;let a=!1;const l=s.app={_uid:Oa++,_component:o,_props:r,_container:null,_context:s,_instance:null,version:nc,get config(){return s.config},set config(c){},use(c,...u){return i.has(c)||(c&&ne(c.install)?(i.add(c),c.install(l,...u)):ne(c)&&(i.add(c),c(l,...u))),l},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),l},component(c,u){return u?(s.components[c]=u,l):s.components[c]},directive(c,u){return u?(s.directives[c]=u,l):s.directives[c]},mount(c,u,d){if(!a){const m=q(o,r);return m.appContext=s,u&&t?t(m,c):e(m,c,d),a=!0,l._container=c,c.__vue_app__=l,Qn(m.component)||m.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(c,u){return s.provides[c]=u,l},runWithContext(c){Un=l;try{return c()}finally{Un=null}}};return l}}let Un=null;function Kn(e,t){if(ke){let n=ke.provides;const o=ke.parent&&ke.parent.provides;o===n&&(n=ke.provides=Object.create(o)),n[e]=t}}function zt(e,t,n=!1){const o=ke||$e;if(o||Un){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Un._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&ne(t)?t.call(o&&o.proxy):t}}function La(e,t,n,o=!1){const r={},s={};En(s,qn,1),e.propsDefaults=Object.create(null),ys(e,t,r,s);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:Ul(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function za(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,a=ce(r),[l]=e.propsOptions;let c=!1;if((o||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let m=u[d];if(Rn(e.emitsOptions,m))continue;const S=t[m];if(l)if(ae(s,m))S!==s[m]&&(s[m]=S,c=!0);else{const y=Re(m);r[y]=Ho(l,a,y,S,e,!1)}else S!==s[m]&&(s[m]=S,c=!0)}}}else{ys(e,t,r,s)&&(c=!0);let u;for(const d in a)(!t||!ae(t,d)&&((u=Ke(d))===d||!ae(t,u)))&&(l?n&&(n[d]!==void 0||n[u]!==void 0)&&(r[d]=Ho(l,a,d,void 0,e,!0)):delete r[d]);if(s!==a)for(const d in s)(!t||!ae(t,d))&&(delete s[d],c=!0)}c&&ut(e,"set","$attrs")}function ys(e,t,n,o){const[r,s]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Tn(l))continue;const c=t[l];let u;r&&ae(r,u=Re(l))?!s||!s.includes(u)?n[u]=c:(a||(a={}))[u]=c:Rn(e.emitsOptions,l)||(!(l in o)||c!==o[l])&&(o[l]=c,i=!0)}if(s){const l=ce(n),c=a||se;for(let u=0;u<s.length;u++){const d=s[u];n[d]=Ho(r,l,d,c[d],e,!ae(c,d))}}return i}function Ho(e,t,n,o,r,s){const i=e[n];if(i!=null){const a=ae(i,"default");if(a&&o===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&ne(l)){const{propsDefaults:c}=r;n in c?o=c[n]:(Zt(r),o=c[n]=l.call(null,t),Bt())}else o=l}i[0]&&(s&&!a?o=!1:i[1]&&(o===""||o===Ke(n))&&(o=!0))}return o}function ws(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const s=e.props,i={},a=[];let l=!1;if(!ne(e)){const u=d=>{l=!0;const[m,S]=ws(d,t,!0);ve(i,m),S&&a.push(...S)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!l)return pe(e)&&o.set(e,Ue),Ue;if(Q(s))for(let u=0;u<s.length;u++){const d=Re(s[u]);xs(d)&&(i[d]=se)}else if(s)for(const u in s){const d=Re(u);if(xs(d)){const m=s[u],S=i[d]=Q(m)||ne(m)?{type:m}:ve({},m);if(S){const y=Ss(Boolean,S.type),C=Ss(String,S.type);S[0]=y>-1,S[1]=C<0||y<C,(y>-1||ae(S,"default"))&&a.push(d)}}}const c=[i,a];return pe(e)&&o.set(e,c),c}function xs(e){return e[0]!=="$"}function Cs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ks(e,t){return Cs(e)===Cs(t)}function Ss(e,t){return Q(t)?t.findIndex(n=>ks(n,e)):ne(t)&&ks(t,e)?0:-1}const Ts=e=>e[0]==="_"||e==="$stable",Vo=e=>Q(e)?e.map(lt):[lt(e)],ja=(e,t,n)=>{if(t._n)return t;const o=oe((...r)=>Vo(t(...r)),n);return o._c=!1,o},$s=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Ts(r))continue;const s=e[r];if(ne(s))t[r]=ja(r,s,o);else if(s!=null){const i=Vo(s);t[r]=()=>i}}},Is=(e,t)=>{const n=Vo(t);e.slots.default=()=>n},Aa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ce(t),En(t,"_",n)):$s(t,e.slots={})}else e.slots={},t&&Is(e,t);En(e.slots,qn,1)},Ba=(e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,i=se;if(o.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:(ve(r,t),!n&&a===1&&delete r._):(s=!t.$stable,$s(t,r)),i=t}else t&&(Is(e,t),i={default:1});if(s)for(const a in r)!Ts(a)&&!(a in i)&&delete r[a]};function Wo(e,t,n,o,r=!1){if(Q(e)){e.forEach((m,S)=>Wo(m,t&&(Q(t)?t[S]:t),n,o,r));return}if(un(o)&&!r)return;const s=o.shapeFlag&4?Qn(o.component)||o.component.proxy:o.el,i=r?null:s,{i:a,r:l}=e,c=t&&t.r,u=a.refs===se?a.refs={}:a.refs,d=a.setupState;if(c!=null&&c!==l&&(be(c)?(u[c]=null,ae(d,c)&&(d[c]=null)):ye(c)&&(c.value=null)),ne(l))wt(l,a,12,[i,u]);else{const m=be(l),S=ye(l);if(m||S){const y=()=>{if(e.f){const C=m?ae(d,l)?d[l]:u[l]:l.value;r?Q(C)&&co(C,s):Q(C)?C.includes(s)||C.push(s):m?(u[l]=[s],ae(d,l)&&(d[l]=u[l])):(l.value=[s],e.k&&(u[e.k]=l.value))}else m?(u[l]=i,ae(d,l)&&(d[l]=i)):S&&(l.value=i,e.k&&(u[e.k]=i))};i?(y.id=-1,Be(y,n)):y()}}}const Be=aa;function Da(e){return Ra(e)}function Ra(e,t){const n=mo();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:m,setScopeId:S=et,insertStaticContent:y}=e,C=(f,p,w,E=null,O=null,z=null,R=!1,g=null,b=!!p.dynamicChildren)=>{if(f===p)return;f&&!At(f,p)&&(E=tn(f),Ie(f,O,z,!0),f=null),p.patchFlag===-2&&(b=!1,p.dynamicChildren=null);const{type:T,ref:W,shapeFlag:V}=p;switch(T){case Yn:j(f,p,w,E);break;case Je:N(f,p,w,E);break;case Uo:f==null&&L(p,w,E,R);break;case ge:P(f,p,w,E,O,z,R,g,b);break;default:V&1?M(f,p,w,E,O,z,R,g,b):V&6?B(f,p,w,E,O,z,R,g,b):(V&64||V&128)&&T.process(f,p,w,E,O,z,R,g,b,st)}W!=null&&O&&Wo(W,f&&f.ref,z,p||f,!p)},j=(f,p,w,E)=>{if(f==null)o(p.el=a(p.children),w,E);else{const O=p.el=f.el;p.children!==f.children&&c(O,p.children)}},N=(f,p,w,E)=>{f==null?o(p.el=l(p.children||""),w,E):p.el=f.el},L=(f,p,w,E)=>{[f.el,f.anchor]=y(f.children,p,w,E,f.el,f.anchor)},H=({el:f,anchor:p},w,E)=>{let O;for(;f&&f!==p;)O=m(f),o(f,w,E),f=O;o(p,w,E)},h=({el:f,anchor:p})=>{let w;for(;f&&f!==p;)w=m(f),r(f),f=w;r(p)},M=(f,p,w,E,O,z,R,g,b)=>{R=R||p.type==="svg",f==null?k(p,w,E,O,z,R,g,b):v(f,p,O,z,R,g,b)},k=(f,p,w,E,O,z,R,g)=>{let b,T;const{type:W,props:V,shapeFlag:J,transition:te,dirs:re}=f;if(b=f.el=i(f.type,z,V&&V.is,V),J&8?u(b,f.children):J&16&&_(f.children,b,null,E,O,z&&W!=="foreignObject",R,g),re&&Lt(f,null,E,"created"),$(b,f,f.scopeId,R,E),V){for(const de in V)de!=="value"&&!Tn(de)&&s(b,de,null,V[de],z,f.children,E,O,Oe);"value"in V&&s(b,"value",null,V.value),(T=V.onVnodeBeforeMount)&&at(T,E,f)}re&&Lt(f,null,E,"beforeMount");const le=(!O||O&&!O.pendingBranch)&&te&&!te.persisted;le&&te.beforeEnter(b),o(b,p,w),((T=V&&V.onVnodeMounted)||le||re)&&Be(()=>{T&&at(T,E,f),le&&te.enter(b),re&&Lt(f,null,E,"mounted")},O)},$=(f,p,w,E,O)=>{if(w&&S(f,w),E)for(let z=0;z<E.length;z++)S(f,E[z]);if(O){let z=O.subTree;if(p===z){const R=O.vnode;$(f,R,R.scopeId,R.slotScopeIds,O.parent)}}},_=(f,p,w,E,O,z,R,g,b=0)=>{for(let T=b;T<f.length;T++){const W=f[T]=g?kt(f[T]):lt(f[T]);C(null,W,p,w,E,O,z,R,g)}},v=(f,p,w,E,O,z,R)=>{const g=p.el=f.el;let{patchFlag:b,dynamicChildren:T,dirs:W}=p;b|=f.patchFlag&16;const V=f.props||se,J=p.props||se;let te;w&&jt(w,!1),(te=J.onVnodeBeforeUpdate)&&at(te,w,p,f),W&&Lt(p,f,w,"beforeUpdate"),w&&jt(w,!0);const re=O&&p.type!=="foreignObject";if(T?x(f.dynamicChildren,T,g,w,E,re,z):R||U(f,p,g,null,w,E,re,z,!1),b>0){if(b&16)D(g,p,V,J,w,E,O);else if(b&2&&V.class!==J.class&&s(g,"class",null,J.class,O),b&4&&s(g,"style",V.style,J.style,O),b&8){const le=p.dynamicProps;for(let de=0;de<le.length;de++){const me=le[de],We=V[me],Pt=J[me];(Pt!==We||me==="value")&&s(g,me,We,Pt,O,f.children,w,E,Oe)}}b&1&&f.children!==p.children&&u(g,p.children)}else!R&&T==null&&D(g,p,V,J,w,E,O);((te=J.onVnodeUpdated)||W)&&Be(()=>{te&&at(te,w,p,f),W&&Lt(p,f,w,"updated")},E)},x=(f,p,w,E,O,z,R)=>{for(let g=0;g<p.length;g++){const b=f[g],T=p[g],W=b.el&&(b.type===ge||!At(b,T)||b.shapeFlag&70)?d(b.el):w;C(b,T,W,null,E,O,z,R,!0)}},D=(f,p,w,E,O,z,R)=>{if(w!==E){if(w!==se)for(const g in w)!Tn(g)&&!(g in E)&&s(f,g,w[g],null,R,p.children,O,z,Oe);for(const g in E){if(Tn(g))continue;const b=E[g],T=w[g];b!==T&&g!=="value"&&s(f,g,T,b,R,p.children,O,z,Oe)}"value"in E&&s(f,"value",w.value,E.value)}},P=(f,p,w,E,O,z,R,g,b)=>{const T=p.el=f?f.el:a(""),W=p.anchor=f?f.anchor:a("");let{patchFlag:V,dynamicChildren:J,slotScopeIds:te}=p;te&&(g=g?g.concat(te):te),f==null?(o(T,w,E),o(W,w,E),_(p.children,w,W,O,z,R,g,b)):V>0&&V&64&&J&&f.dynamicChildren?(x(f.dynamicChildren,J,w,O,z,R,g),(p.key!=null||O&&p===O.subTree)&&Ps(f,p,!0)):U(f,p,w,W,O,z,R,g,b)},B=(f,p,w,E,O,z,R,g,b)=>{p.slotScopeIds=g,f==null?p.shapeFlag&512?O.ctx.activate(p,w,E,R,b):ee(p,w,E,O,z,R,b):G(f,p,b)},ee=(f,p,w,E,O,z,R)=>{const g=f.component=Ya(f,E,O);if(Hn(f)&&(g.ctx.renderer=st),Xa(g),g.asyncDep){if(O&&O.registerDep(g,I),!f.el){const b=g.subTree=q(Je);N(null,b,p,w)}return}I(g,f,p,w,O,z,R)},G=(f,p,w)=>{const E=p.component=f.component;if(sa(f,p,w))if(E.asyncDep&&!E.asyncResolved){F(E,p,w);return}else E.next=p,Gl(E.update),E.update();else p.el=f.el,E.vnode=p},I=(f,p,w,E,O,z,R)=>{const g=()=>{if(f.isMounted){let{next:W,bu:V,u:J,parent:te,vnode:re}=f,le=W,de;jt(f,!1),W?(W.el=re.el,F(f,W,R)):W=re,V&&Pn(V),(de=W.props&&W.props.onVnodeBeforeUpdate)&&at(de,te,W,re),jt(f,!0);const me=Mo(f),We=f.subTree;f.subTree=me,C(We,me,d(We.el),tn(We),f,O,z),W.el=me.el,le===null&&ia(f,me.el),J&&Be(J,O),(de=W.props&&W.props.onVnodeUpdated)&&Be(()=>at(de,te,W,re),O)}else{let W;const{el:V,props:J}=p,{bm:te,m:re,parent:le}=f,de=un(p);if(jt(f,!1),te&&Pn(te),!de&&(W=J&&J.onVnodeBeforeMount)&&at(W,le,p),jt(f,!0),V&&nn){const me=()=>{f.subTree=Mo(f),nn(V,f.subTree,f,O,null)};de?p.type.__asyncLoader().then(()=>!f.isUnmounted&&me()):me()}else{const me=f.subTree=Mo(f);C(null,me,w,E,f,O,z),p.el=me.el}if(re&&Be(re,O),!de&&(W=J&&J.onVnodeMounted)){const me=p;Be(()=>at(W,le,me),O)}(p.shapeFlag&256||le&&un(le.vnode)&&le.vnode.shapeFlag&256)&&f.a&&Be(f.a,O),f.isMounted=!0,p=w=E=null}},b=f.effect=new wo(g,()=>Oo(T),f.scope),T=f.update=()=>b.run();T.id=f.uid,jt(f,!0),T()},F=(f,p,w)=>{p.component=f;const E=f.vnode.props;f.vnode=p,f.next=null,za(f,p.props,E,w),Ba(f,p.children,w),Wt(),Zr(),Ut()},U=(f,p,w,E,O,z,R,g,b=!1)=>{const T=f&&f.children,W=f?f.shapeFlag:0,V=p.children,{patchFlag:J,shapeFlag:te}=p;if(J>0){if(J&128){Te(T,V,w,E,O,z,R,g,b);return}else if(J&256){fe(T,V,w,E,O,z,R,g,b);return}}te&8?(W&16&&Oe(T,O,z),V!==T&&u(w,V)):W&16?te&16?Te(T,V,w,E,O,z,R,g,b):Oe(T,O,z,!0):(W&8&&u(w,""),te&16&&_(V,w,E,O,z,R,g,b))},fe=(f,p,w,E,O,z,R,g,b)=>{f=f||Ue,p=p||Ue;const T=f.length,W=p.length,V=Math.min(T,W);let J;for(J=0;J<V;J++){const te=p[J]=b?kt(p[J]):lt(p[J]);C(f[J],te,w,null,O,z,R,g,b)}T>W?Oe(f,O,z,!0,!1,V):_(p,w,E,O,z,R,g,b,V)},Te=(f,p,w,E,O,z,R,g,b)=>{let T=0;const W=p.length;let V=f.length-1,J=W-1;for(;T<=V&&T<=J;){const te=f[T],re=p[T]=b?kt(p[T]):lt(p[T]);if(At(te,re))C(te,re,w,null,O,z,R,g,b);else break;T++}for(;T<=V&&T<=J;){const te=f[V],re=p[J]=b?kt(p[J]):lt(p[J]);if(At(te,re))C(te,re,w,null,O,z,R,g,b);else break;V--,J--}if(T>V){if(T<=J){const te=J+1,re=te<W?p[te].el:E;for(;T<=J;)C(null,p[T]=b?kt(p[T]):lt(p[T]),w,re,O,z,R,g,b),T++}}else if(T>J)for(;T<=V;)Ie(f[T],O,z,!0),T++;else{const te=T,re=T,le=new Map;for(T=re;T<=J;T++){const ze=p[T]=b?kt(p[T]):lt(p[T]);ze.key!=null&&le.set(ze.key,T)}let de,me=0;const We=J-re+1;let Pt=!1,so=0;const Ht=new Array(We);for(T=0;T<We;T++)Ht[T]=0;for(T=te;T<=V;T++){const ze=f[T];if(me>=We){Ie(ze,O,z,!0);continue}let Ge;if(ze.key!=null)Ge=le.get(ze.key);else for(de=re;de<=J;de++)if(Ht[de-re]===0&&At(ze,p[de])){Ge=de;break}Ge===void 0?Ie(ze,O,z,!0):(Ht[Ge-re]=T+1,Ge>=so?so=Ge:Pt=!0,C(ze,p[Ge],w,null,O,z,R,g,b),me++)}const io=Pt?Na(Ht):Ue;for(de=io.length-1,T=We-1;T>=0;T--){const ze=re+T,Ge=p[ze],lo=ze+1<W?p[ze+1].el:E;Ht[T]===0?C(null,Ge,w,lo,O,z,R,g,b):Pt&&(de<0||T!==io[de]?Ve(Ge,w,lo,2):de--)}}},Ve=(f,p,w,E,O=null)=>{const{el:z,type:R,transition:g,children:b,shapeFlag:T}=f;if(T&6){Ve(f.component.subTree,p,w,E);return}if(T&128){f.suspense.move(p,w,E);return}if(T&64){R.move(f,p,w,st);return}if(R===ge){o(z,p,w);for(let V=0;V<b.length;V++)Ve(b[V],p,w,E);o(f.anchor,p,w);return}if(R===Uo){H(f,p,w);return}if(E!==2&&T&1&&g)if(E===0)g.beforeEnter(z),o(z,p,w),Be(()=>g.enter(z),O);else{const{leave:V,delayLeave:J,afterLeave:te}=g,re=()=>o(z,p,w),le=()=>{V(z,()=>{re(),te&&te()})};J?J(z,re,le):le()}else o(z,p,w)},Ie=(f,p,w,E=!1,O=!1)=>{const{type:z,props:R,ref:g,children:b,dynamicChildren:T,shapeFlag:W,patchFlag:V,dirs:J}=f;if(g!=null&&Wo(g,null,w,f,!0),W&256){p.ctx.deactivate(f);return}const te=W&1&&J,re=!un(f);let le;if(re&&(le=R&&R.onVnodeBeforeUnmount)&&at(le,p,f),W&6)en(f.component,w,E);else{if(W&128){f.suspense.unmount(w,E);return}te&&Lt(f,null,p,"beforeUnmount"),W&64?f.type.remove(f,p,w,O,st,E):T&&(z!==ge||V>0&&V&64)?Oe(T,p,w,!1,!0):(z===ge&&V&384||!O&&W&16)&&Oe(b,p,w),E&&ct(f)}(re&&(le=R&&R.onVnodeUnmounted)||te)&&Be(()=>{le&&at(le,p,f),te&&Lt(f,null,p,"unmounted")},w)},ct=f=>{const{type:p,el:w,anchor:E,transition:O}=f;if(p===ge){mt(w,E);return}if(p===Uo){h(f);return}const z=()=>{r(w),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(f.shapeFlag&1&&O&&!O.persisted){const{leave:R,delayLeave:g}=O,b=()=>R(w,z);g?g(f.el,z,b):b()}else z()},mt=(f,p)=>{let w;for(;f!==p;)w=m(f),r(f),f=w;r(p)},en=(f,p,w)=>{const{bum:E,scope:O,update:z,subTree:R,um:g}=f;E&&Pn(E),O.stop(),z&&(z.active=!1,Ie(R,f,p,w)),g&&Be(g,p),Be(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},Oe=(f,p,w,E=!1,O=!1,z=0)=>{for(let R=z;R<f.length;R++)Ie(f[R],p,w,E,O)},tn=f=>f.shapeFlag&6?tn(f.component.subTree):f.shapeFlag&128?f.suspense.next():m(f.anchor||f.el),ro=(f,p,w)=>{f==null?p._vnode&&Ie(p._vnode,null,null,!0):C(p._vnode||null,f,p,null,null,null,w),Zr(),Jr(),p._vnode=f},st={p:C,um:Ie,m:Ve,r:ct,mt:ee,mc:_,pc:U,pbc:x,n:tn,o:e};let vt,nn;return t&&([vt,nn]=t(st)),{render:ro,hydrate:vt,createApp:Ma(ro,vt)}}function jt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ps(e,t,n=!1){const o=e.children,r=t.children;if(Q(o)&&Q(r))for(let s=0;s<o.length;s++){const i=o[s];let a=r[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[s]=kt(r[s]),a.el=i.el),n||Ps(i,a)),a.type===Yn&&(a.el=i.el)}}function Na(e){const t=e.slice(),n=[0];let o,r,s,i,a;const l=e.length;for(o=0;o<l;o++){const c=e[o];if(c!==0){if(r=n[n.length-1],e[r]<c){t[o]=r,n.push(o);continue}for(s=0,i=n.length-1;s<i;)a=s+i>>1,e[n[a]]<c?s=a+1:i=a;c<e[n[s]]&&(s>0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}const Fa=e=>e.__isTeleport,ge=Symbol.for("v-fgt"),Yn=Symbol.for("v-txt"),Je=Symbol.for("v-cmt"),Uo=Symbol.for("v-stc"),hn=[];let nt=null;function A(e=!1){hn.push(nt=e?null:[])}function Ha(){hn.pop(),nt=hn[hn.length-1]||null}let gn=1;function Es(e){gn+=e}function Os(e){return e.dynamicChildren=gn>0?nt||Ue:null,Ha(),gn>0&&nt&&nt.push(e),e}function Y(e,t,n,o,r,s){return Os(X(e,t,n,o,r,s,!0))}function _e(e,t,n,o,r){return Os(q(e,t,n,o,r,!0))}function Xn(e){return e?e.__v_isVNode===!0:!1}function At(e,t){return e.type===t.type&&e.key===t.key}const qn="__vInternal",Ms=({key:e})=>e??null,Zn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||ye(e)||ne(e)?{i:$e,r:e,k:t,f:!!n}:e:null);function X(e,t=null,n=null,o=0,r=null,s=e===ge?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ms(t),ref:t&&Zn(t),scopeId:es,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:$e};return a?(Ko(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=be(n)?8:16),gn>0&&!i&&nt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&nt.push(l),l}const q=Va;function Va(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===us)&&(e=Je),Xn(e)){const a=xt(e,t,!0);return n&&Ko(a,n),gn>0&&!s&&nt&&(a.shapeFlag&6?nt[nt.indexOf(e)]=a:nt.push(a)),a.patchFlag|=-2,a}if(Ga(e)&&(e=e.__vccOpts),t){t=Wa(t);let{class:a,style:l}=t;a&&!be(a)&&(t.class=xe(a)),pe(l)&&(Hr(l)&&!Q(l)&&(l=ve({},l)),t.style=Me(l))}const i=be(e)?1:la(e)?128:Fa(e)?64:pe(e)?4:ne(e)?2:0;return X(e,t,n,o,r,i,s,!0)}function Wa(e){return e?Hr(e)||qn in e?ve({},e):e:null}function xt(e,t,n=!1){const{props:o,ref:r,patchFlag:s,children:i}=e,a=t?Jn(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Ms(a),ref:t&&t.ref?n&&r?Q(r)?r.concat(Zn(t)):[r,Zn(t)]:Zn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ge?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xt(e.ssContent),ssFallback:e.ssFallback&&xt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ct(e=" ",t=0){return q(Yn,null,e,t)}function Ee(e="",t=!1){return t?(A(),_e(Je,null,e)):q(Je,null,e)}function lt(e){return e==null||typeof e=="boolean"?q(Je):Q(e)?q(ge,null,e.slice()):typeof e=="object"?kt(e):q(Yn,null,String(e))}function kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xt(e)}function Ko(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Q(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Ko(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(qn in t)?t._ctx=$e:r===3&&$e&&($e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ne(t)?(t={default:t,_ctx:$e},n=32):(t=String(t),o&64?(n=16,t=[Ct(t)]):n=8);e.children=t,e.shapeFlag|=n}function Jn(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=xe([t.class,o.class]));else if(r==="style")t.style=Me([t.style,o.style]);else if(kn(r)){const s=t[r],i=o[r];i&&s!==i&&!(Q(s)&&s.includes(i))&&(t[r]=s?[].concat(s,i):i)}else r!==""&&(t[r]=o[r])}return t}function at(e,t,n,o=null){Xe(e,t,7,[n,o])}const Ua=bs();let Ka=0;function Ya(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Ua,s={uid:Ka++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new ml(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ws(o,r),emitsOptions:Gr(o,r),emit:null,emitted:null,propsDefaults:se,inheritAttrs:o.inheritAttrs,ctx:se,data:se,props:se,attrs:se,slots:se,refs:se,setupState:se,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=na.bind(null,s),e.ce&&e.ce(s),s}let ke=null;const Ls=()=>ke||$e;let Yo,qt,zs="__VUE_INSTANCE_SETTERS__";(qt=mo()[zs])||(qt=mo()[zs]=[]),qt.push(e=>ke=e),Yo=e=>{qt.length>1?qt.forEach(t=>t(e)):qt[0](e)};const Zt=e=>{Yo(e),e.scope.on()},Bt=()=>{ke&&ke.scope.off(),Yo(null)};function js(e){return e.vnode.shapeFlag&4}let mn=!1;function Xa(e,t=!1){mn=t;const{props:n,children:o}=e.vnode,r=js(e);La(e,n,r,t),Aa(e,o);const s=r?qa(e,t):void 0;return mn=!1,s}function qa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Vr(new Proxy(e.ctx,Sa));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?Ja(e):null;Zt(e),Wt();const s=wt(o,e,0,[e.props,r]);if(Ut(),Bt(),_r(s)){if(s.then(Bt,Bt),t)return s.then(i=>{As(e,i,t)}).catch(i=>{Dn(i,e,0)});e.asyncDep=s}else As(e,s,t)}else Ds(e,t)}function As(e,t,n){ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=Yr(t)),Ds(e,n)}let Bs;function Ds(e,t,n){const o=e.type;if(!e.render){if(!t&&Bs&&!o.render){const r=o.template||No(e).template;if(r){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=o,c=ve(ve({isCustomElement:s,delimiters:a},i),l);o.render=Bs(r,c)}}e.render=o.render||et}Zt(e),Wt(),Ta(e),Ut(),Bt()}function Za(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ae(e,"get","$attrs"),t[n]}}))}function Ja(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Za(e)},slots:e.slots,emit:e.emit,expose:t}}function Qn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Yr(Vr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in dn)return dn[n](e)},has(t,n){return n in t||n in dn}}))}function Qa(e,t=!0){return ne(e)?e.displayName||e.name:e.name||t&&e.__name}function Ga(e){return ne(e)&&"__vccOpts"in e}const ie=(e,t)=>Zl(e,t,mn);function Rs(e,t,n){const o=arguments.length;return o===2?pe(t)&&!Q(t)?Xn(t)?q(e,null,[t]):q(e,t):q(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Xn(n)&&(n=[n]),q(e,t,n))}const ec=Symbol.for("v-scx"),tc=()=>zt(ec),nc="3.3.4",oc="http://www.w3.org/2000/svg",Dt=typeof document<"u"?document:null,Ns=Dt&&Dt.createElement("template"),rc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?Dt.createElementNS(oc,e):Dt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Dt.createTextNode(e),createComment:e=>Dt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Dt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,s){const i=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{Ns.innerHTML=o?`<svg>${e}</svg>`:e;const a=Ns.content;if(o){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function sc(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function ic(e,t,n){const o=e.style,r=be(n);if(n&&!r){if(t&&!be(t))for(const s in t)n[s]==null&&Xo(o,s,"");for(const s in n)Xo(o,s,n[s])}else{const s=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=s)}}const Fs=/\s*!important$/;function Xo(e,t,n){if(Q(n))n.forEach(o=>Xo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=lc(e,t);Fs.test(n)?e.setProperty(Ke(o),n.replace(Fs,""),"important"):e[o]=n}}const Hs=["Webkit","Moz","ms"],qo={};function lc(e,t){const n=qo[t];if(n)return n;let o=Re(t);if(o!=="filter"&&o in e)return qo[t]=o;o=In(o);for(let r=0;r<Hs.length;r++){const s=Hs[r]+o;if(s in e)return qo[t]=s}return t}const Vs="http://www.w3.org/1999/xlink";function ac(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Vs,t.slice(6,t.length)):e.setAttributeNS(Vs,t,n);else{const s=gl(t);n==null||s&&!xr(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function cc(e,t,n,o,r,s,i){if(t==="innerHTML"||t==="textContent"){o&&i(o,r,s),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){e._value=n;const c=a==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=xr(n):n==null&&c==="string"?(n="",l=!0):c==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function Jt(e,t,n,o){e.addEventListener(t,n,o)}function uc(e,t,n,o){e.removeEventListener(t,n,o)}function fc(e,t,n,o,r=null){const s=e._vei||(e._vei={}),i=s[t];if(o&&i)i.value=o;else{const[a,l]=dc(t);if(o){const c=s[t]=gc(o,r);Jt(e,a,c,l)}else i&&(uc(e,a,i,l),s[t]=void 0)}}const Ws=/(?:Once|Passive|Capture)$/;function dc(e){let t;if(Ws.test(e)){t={};let o;for(;o=e.match(Ws);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ke(e.slice(2)),t]}let Zo=0;const pc=Promise.resolve(),hc=()=>Zo||(pc.then(()=>Zo=0),Zo=Date.now());function gc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Xe(mc(o,n.value),t,5,[o])};return n.value=e,n.attached=hc(),n}function mc(e,t){if(Q(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const Us=/^on[a-z]/,vc=(e,t,n,o,r=!1,s,i,a,l)=>{t==="class"?sc(e,o,r):t==="style"?ic(e,n,o):kn(t)?ao(t)||fc(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):_c(e,t,o,r))?cc(e,t,o,s,i,a,l):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),ac(e,t,o,r))};function _c(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Us.test(t)&&ne(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Us.test(t)&&be(n)?!1:t in e}function bc(e,t){const n=we(e);class o extends Jo{constructor(s){super(n,s,t)}}return o.def=n,o}const yc=typeof HTMLElement<"u"?HTMLElement:class{};class Jo extends yc{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&o?o(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,qe(()=>{this._connected||(oi(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}).observe(this,{attributes:!0});const t=(o,r=!1)=>{const{props:s,styles:i}=o;let a;if(s&&!Q(s))for(const l in s){const c=s[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=go(this._props[l])),(a||(a=Object.create(null)))[Re(l)]=!0)}this._numberProps=a,r&&this._resolveProps(o),this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=Q(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(Re))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(s){this._setProp(r,s)}})}_setAttr(t){let n=this.getAttribute(t);const o=Re(t);this._numberProps&&this._numberProps[o]&&(n=go(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(Ke(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ke(t),n+""):n||this.removeAttribute(Ke(t))))}_update(){oi(this._createVNode(),this.shadowRoot)}_createVNode(){const t=q(this._def,ve({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(s,i)=>{this.dispatchEvent(new CustomEvent(s,{detail:i}))};n.emit=(s,...i)=>{o(s,i),Ke(s)!==s&&o(Ke(s),i)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Jo){n.parent=r._instance,n.provides=r._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}const St="transition",vn="animation",Qt=(e,{slots:t})=>Rs(da,wc(e),t);Qt.displayName="Transition";const Ks={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Qt.props=ve({},os,Ks);const Rt=(e,t=[])=>{Q(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ys=e=>e?Q(e)?e.some(t=>t.length>1):e.length>1:!1;function wc(e){const t={};for(const P in e)P in Ks||(t[P]=e[P]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:S=`${n}-leave-to`}=e,y=xc(r),C=y&&y[0],j=y&&y[1],{onBeforeEnter:N,onEnter:L,onEnterCancelled:H,onLeave:h,onLeaveCancelled:M,onBeforeAppear:k=N,onAppear:$=L,onAppearCancelled:_=H}=t,v=(P,B,ee)=>{Nt(P,B?u:a),Nt(P,B?c:i),ee&&ee()},x=(P,B)=>{P._isLeaving=!1,Nt(P,d),Nt(P,S),Nt(P,m),B&&B()},D=P=>(B,ee)=>{const G=P?$:L,I=()=>v(B,P,ee);Rt(G,[B,I]),Xs(()=>{Nt(B,P?l:s),Tt(B,P?u:a),Ys(G)||qs(B,o,C,I)})};return ve(t,{onBeforeEnter(P){Rt(N,[P]),Tt(P,s),Tt(P,i)},onBeforeAppear(P){Rt(k,[P]),Tt(P,l),Tt(P,c)},onEnter:D(!1),onAppear:D(!0),onLeave(P,B){P._isLeaving=!0;const ee=()=>x(P,B);Tt(P,d),Sc(),Tt(P,m),Xs(()=>{P._isLeaving&&(Nt(P,d),Tt(P,S),Ys(h)||qs(P,o,j,ee))}),Rt(h,[P,ee])},onEnterCancelled(P){v(P,!1),Rt(H,[P])},onAppearCancelled(P){v(P,!0),Rt(_,[P])},onLeaveCancelled(P){x(P),Rt(M,[P])}})}function xc(e){if(e==null)return null;if(pe(e))return[Qo(e.enter),Qo(e.leave)];{const t=Qo(e);return[t,t]}}function Qo(e){return go(e)}function Tt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Nt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Xs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Cc=0;function qs(e,t,n,o){const r=e._endId=++Cc,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=kc(e,t);if(!i)return o();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,m),s()},m=S=>{S.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),e.addEventListener(c,m)}function kc(e,t){const n=window.getComputedStyle(e),o=y=>(n[y]||"").split(", "),r=o(`${St}Delay`),s=o(`${St}Duration`),i=Zs(r,s),a=o(`${vn}Delay`),l=o(`${vn}Duration`),c=Zs(a,l);let u=null,d=0,m=0;t===St?i>0&&(u=St,d=i,m=s.length):t===vn?c>0&&(u=vn,d=c,m=l.length):(d=Math.max(i,c),u=d>0?i>c?St:vn:null,m=u?u===St?s.length:l.length:0);const S=u===St&&/\b(transform|all)(,|$)/.test(o(`${St}Property`).toString());return{type:u,timeout:d,propCount:m,hasTransform:S}}function Zs(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Js(n)+Js(e[o])))}function Js(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Sc(){return document.body.offsetHeight}const Qs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Q(t)?n=>Pn(t,n):t};function Tc(e){e.target.composing=!0}function Gs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const $c={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=Qs(r);const s=o||r.props&&r.props.type==="number";Jt(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=ho(a)),e._assign(a)}),n&&Jt(e,"change",()=>{e.value=e.value.trim()}),t||(Jt(e,"compositionstart",Tc),Jt(e,"compositionend",Gs),Jt(e,"change",Gs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},s){if(e._assign=Qs(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&ho(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},Ic=["ctrl","shift","alt","meta"],Pc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Ic.some(n=>e[`${n}Key`]&&!t.includes(n))},ot=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const s=Pc[t[r]];if(s&&s(n,t))return}return e(n,...o)},Ec={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ei=(e,t)=>n=>{if(!("key"in n))return;const o=Ke(n.key);if(t.some(r=>r===o||Ec[r]===o))return e(n)},ti={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):_n(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),_n(e,!0),o.enter(e)):o.leave(e,()=>{_n(e,!1)}):_n(e,t))},beforeUnmount(e,{value:t}){_n(e,t)}};function _n(e,t){e.style.display=t?e._vod:"none"}const Oc=ve({patchProp:vc},rc);let ni;function Mc(){return ni||(ni=Da(Oc))}const oi=(...e)=>{Mc().render(...e)},Lc={class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3"},zc={class:"flex justify-between items-end"},jc={class:"inline-block children-pointer-events-auto w-1/3"},Ac={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Bc={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},Dc={class:"inline-block z-20 relative"},ri=we({__name:"ReaderLayout",props:{idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){return(t,n)=>(A(),Y("div",{class:xe(["fixed inset-0 bg-black visible z-[9999999999] text-stone-100 font-sans text-base",{"cursor-none":t.idle}])},[Ce(t.$slots,"default"),X("div",{id:"controls",class:xe(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear inset-2 sm:inset-3 flex flex-col justify-between pb-4 sm:pb-3 md:pb-2 lg:pb-0",{"opacity-100 z-10":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}]),style:Me({paddingTop:`${t.spaceTop||0}px`})},[X("div",Lc,[Ce(t.$slots,"back"),Ce(t.$slots,"exit"),Ce(t.$slots,"chapter-nav")]),X("div",zc,[X("div",jc,[Ce(t.$slots,"page-nav")]),X("div",Ac,[Ce(t.$slots,"reset-zoom")]),X("div",Bc,[Ce(t.$slots,"entry"),X("div",Dc,[Ce(t.$slots,"settings")]),Ce(t.$slots,"full-screen"),Ce(t.$slots,"play")])]),X("div",{class:xe(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[Ce(t.$slots,"progress")],2)],6)],2))}}),Rc=Object.freeze(Object.defineProperty({__proto__:null,default:ri},Symbol.toStringTag,{value:"Module"}));var si;const Go=typeof window<"u",Nc=e=>typeof e=="function",Fc=e=>typeof e=="string",$t=()=>{};Go&&((si=window==null?void 0:window.navigator)!=null&&si.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function bn(e){return typeof e=="function"?e():K(e)}function er(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}const ii=e=>e();function Hc(e,t={}){let n,o,r=$t;const s=a=>{clearTimeout(a),r(),r=$t};return a=>{const l=bn(e),c=bn(t.maxWait);return n&&s(n),l<=0||c!==void 0&&c<=0?(o&&(s(o),o=null),Promise.resolve(a())):new Promise((u,d)=>{r=t.rejectOnCancel?d:u,c&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,u(a())},c)),n=setTimeout(()=>{o&&s(o),o=null,u(a())},l)})}}function Vc(e,t=!0,n=!0,o=!1){let r=0,s,i=!0,a=$t,l;const c=()=>{s&&(clearTimeout(s),s=void 0,a(),a=$t)};return d=>{const m=bn(e),S=Date.now()-r,y=()=>l=d();if(c(),m<=0)return r=Date.now(),y();if(S>m&&(n||!i))r=Date.now(),y();else if(t)return new Promise((C,j)=>{a=o?j:C,s=setTimeout(()=>{r=Date.now(),i=!0,C(y()),c()},m-S)});return!n&&!s&&(s=setTimeout(()=>i=!0,m)),i=!1,l}}function Wc(e=ii){const t=Z(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...s)=>{t.value&&e(...s)};return{isActive:To(t),pause:n,resume:o,eventFilter:r}}function Uc(e){return e}function tr(e){return kr()?(_l(e),!0):!1}function Qe(e,t=200,n={}){return er(Hc(t,n),e)}function li(e,t=200,n=!1,o=!0,r=!1){return er(Vc(t,n,o,r),e)}function ai(e,t=!0){Ls()?Fe(e):t?e():qe(e)}var ci=Object.getOwnPropertySymbols,Kc=Object.prototype.hasOwnProperty,Yc=Object.prototype.propertyIsEnumerable,Xc=(e,t)=>{var n={};for(var o in e)Kc.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&ci)for(var o of ci(e))t.indexOf(o)<0&&Yc.call(e,o)&&(n[o]=e[o]);return n};function qc(e,t,n={}){const o=n,{eventFilter:r=ii}=o,s=Xc(o,["eventFilter"]);return ue(e,er(r,t),s)}var Zc=Object.defineProperty,Jc=Object.defineProperties,Qc=Object.getOwnPropertyDescriptors,Gn=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,fi=Object.prototype.propertyIsEnumerable,di=(e,t,n)=>t in e?Zc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gc=(e,t)=>{for(var n in t||(t={}))ui.call(t,n)&&di(e,n,t[n]);if(Gn)for(var n of Gn(t))fi.call(t,n)&&di(e,n,t[n]);return e},eu=(e,t)=>Jc(e,Qc(t)),tu=(e,t)=>{var n={};for(var o in e)ui.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Gn)for(var o of Gn(e))t.indexOf(o)<0&&fi.call(e,o)&&(n[o]=e[o]);return n};function nu(e,t,n={}){const o=n,{eventFilter:r}=o,s=tu(o,["eventFilter"]),{eventFilter:i,pause:a,resume:l,isActive:c}=Wc(r);return{stop:qc(e,t,eu(Gc({},s),{eventFilter:i})),pause:a,resume:l,isActive:c}}function Ft(e){var t;const n=bn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ht=Go?window:void 0,ou=Go?window.document:void 0;function It(...e){let t,n,o,r;if(Fc(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=ht):[t,n,o,r]=e,!t)return $t;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},a=(u,d,m)=>(u.addEventListener(d,m,r),()=>u.removeEventListener(d,m,r)),l=ue(()=>Ft(t),u=>{i(),u&&s.push(...n.flatMap(d=>o.map(m=>a(u,d,m))))},{immediate:!0,flush:"post"}),c=()=>{l(),i()};return tr(c),c}function pi(e,t=!1){const n=Z(),o=()=>n.value=!!e();return o(),ai(o,t),n}const nr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},or="__vueuse_ssr_handlers__";nr[or]=nr[or]||{};const ru=nr[or];function su(e,t){return ru[e]||t}function iu(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var lu=Object.defineProperty,hi=Object.getOwnPropertySymbols,au=Object.prototype.hasOwnProperty,cu=Object.prototype.propertyIsEnumerable,gi=(e,t,n)=>t in e?lu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mi=(e,t)=>{for(var n in t||(t={}))au.call(t,n)&&gi(e,n,t[n]);if(hi)for(var n of hi(t))cu.call(t,n)&&gi(e,n,t[n]);return e};const uu={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function vi(e,t,n,o={}){var r;const{flush:s="pre",deep:i=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:d=ht,eventFilter:m,onError:S=$=>{console.error($)}}=o,y=(u?Kl:Z)(t);if(!n)try{n=su("getDefaultStorage",()=>{var $;return($=ht)==null?void 0:$.localStorage})()}catch($){S($)}if(!n)return y;const C=bn(t),j=iu(C),N=(r=o.serializer)!=null?r:uu[j],{pause:L,resume:H}=nu(y,()=>h(y.value),{flush:s,deep:i,eventFilter:m});return d&&a&&It(d,"storage",k),k(),y;function h($){try{if($==null)n.removeItem(e);else{const _=N.write($),v=n.getItem(e);v!==_&&(n.setItem(e,_),d&&(d==null||d.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:v,newValue:_,storageArea:n}))))}}catch(_){S(_)}}function M($){const _=$?$.newValue:n.getItem(e);if(_==null)return l&&C!==null&&n.setItem(e,N.write(C)),C;if(!$&&c){const v=N.read(_);return Nc(c)?c(v,C):j==="object"&&!Array.isArray(v)?mi(mi({},C),v):v}else return typeof _!="string"?_:N.read(_)}function k($){if(!($&&$.storageArea!==n)){if($&&$.key==null){y.value=C;return}if(!($&&$.key!==e)){L();try{y.value=M($)}catch(_){S(_)}finally{$?qe(H):H()}}}}}function _i({document:e=ou}={}){if(!e)return Z("visible");const t=Z(e.visibilityState);return It(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var bi=Object.getOwnPropertySymbols,fu=Object.prototype.hasOwnProperty,du=Object.prototype.propertyIsEnumerable,pu=(e,t)=>{var n={};for(var o in e)fu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&bi)for(var o of bi(e))t.indexOf(o)<0&&du.call(e,o)&&(n[o]=e[o]);return n};function hu(e,t,n={}){const o=n,{window:r=ht}=o,s=pu(o,["window"]);let i;const a=pi(()=>r&&"ResizeObserver"in r),l=()=>{i&&(i.disconnect(),i=void 0)},c=ue(()=>Ft(e),d=>{l(),a.value&&r&&d&&(i=new ResizeObserver(t),i.observe(d,s))},{immediate:!0,flush:"post"}),u=()=>{l(),c()};return tr(u),{isSupported:a,stop:u}}function rr(e,t={width:0,height:0},n={}){const{window:o=ht,box:r="content-box"}=n,s=ie(()=>{var l,c;return(c=(l=Ft(e))==null?void 0:l.namespaceURI)==null?void 0:c.includes("svg")}),i=Z(t.width),a=Z(t.height);return hu(e,([l])=>{const c=r==="border-box"?l.borderBoxSize:r==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(o&&s.value){const u=Ft(e);if(u){const d=o.getComputedStyle(u);i.value=parseFloat(d.width),a.value=parseFloat(d.height)}}else if(c){const u=Array.isArray(c)?c:[c];i.value=u.reduce((d,{inlineSize:m})=>d+m,0),a.value=u.reduce((d,{blockSize:m})=>d+m,0)}else i.value=l.contentRect.width,a.value=l.contentRect.height},n),ue(()=>Ft(e),l=>{i.value=l?t.width:0,a.value=l?t.height:0}),{width:i,height:a}}function sr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:i=ht}=n,a=pi(()=>i&&"IntersectionObserver"in i);let l=$t;const c=a.value?ue(()=>({el:Ft(e),root:Ft(o)}),({el:d,root:m})=>{if(l(),!d)return;const S=new IntersectionObserver(t,{root:m,rootMargin:r,threshold:s});S.observe(d),l=()=>{S.disconnect(),l=$t}},{immediate:!0,flush:"post"}):$t,u=()=>{l(),c()};return tr(u),{isSupported:a,stop:u}}function gu(e,t,n={}){const{window:o=ht}=n;return vi(e,t,o==null?void 0:o.localStorage,n)}var yi;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(yi||(yi={}));function ir(e,t,n={}){const{window:o=ht}=n;return vi(e,t,o==null?void 0:o.sessionStorage,n)}var mu=Object.defineProperty,wi=Object.getOwnPropertySymbols,vu=Object.prototype.hasOwnProperty,_u=Object.prototype.propertyIsEnumerable,xi=(e,t,n)=>t in e?mu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bu=(e,t)=>{for(var n in t||(t={}))vu.call(t,n)&&xi(e,n,t[n]);if(wi)for(var n of wi(t))_u.call(t,n)&&xi(e,n,t[n]);return e};bu({linear:Uc},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function yu(e={}){const{window:t=ht,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:s=!0}=e,i=Z(n),a=Z(o),l=()=>{t&&(s?(i.value=t.innerWidth,a.value=t.innerHeight):(i.value=t.document.documentElement.clientWidth,a.value=t.document.documentElement.clientHeight))};return l(),ai(l),It("resize",l,{passive:!0}),r&&It("orientationchange",l,{passive:!0}),{width:i,height:a}}const wu=we({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=Z(null),o=Z(0),r=Z([]),s=ie(()=>r.value[o.value]),i=li(a,500);Fe(()=>{const u=rr(n),d=Qe(()=>l({width:u.width.value,height:u.height.value}),50);d(),ue(u.width,d),ue(u.height,d)});function a(){o.value>=r.value.length-1?t("hide"):o.value++}function l(u){const d=c();r.value=d.map(({rect:m,text:S})=>{const y=m.top<u.height-m.bottom,C=m.left<u.width-m.right;return{text:S,style:{left:`${m.left}px`,top:`${m.top}px`,width:`${m.width}px`,height:`${m.height}px`},textStyle:{left:C?`${m.left-12}px`:void 0,right:C?void 0:`${u.width-m.left}px`,top:y?`${m.bottom+12}px`:`${m.top+20}px`,textAlign:y?void 0:"right",transform:y?void 0:"translateY(-50%)"}}}),o.value>=r.value.length&&(o.value=r.value.length-1)}function c(){var m;const u=(m=n.value)==null?void 0:m.parentElement;if(!u)return[];const d=[];return u.querySelectorAll("[data-tour]").forEach(S=>{var j;const y=(j=S.getAttribute("data-tour"))==null?void 0:j.trim();if(!(y!=null&&y.length))return;const C=S.getBoundingClientRect();d.push({rect:C,text:y})}),d}return(u,d)=>{var m,S;return A(),Y(ge,null,[X("div",{class:xe(["fixed inset-0 bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),X("div",{ref_key:"root",ref:n,class:"tour",onClick:d[0]||(d[0]=ot((...y)=>K(i)&&K(i)(...y),["stop"]))},[s.value?(A(),Y("div",{key:o.value,class:"tour__target",style:Me(s.value.style)},null,4)):Ee("",!0),(A(),Y("div",{key:o.value,class:"tour__text",style:Me((m=s.value)==null?void 0:m.textStyle)},Ye(((S=s.value)==null?void 0:S.text)??""),5))],512)],64)}}}),xu=`.tour{bottom:0;left:0;overflow:hidden;position:fixed;right:0;top:0;z-index:20}.tour__target{--tw-border-opacity:1;animation:tour-target-anim .5s forwards;border-color:rgb(120 113 108/var(--tw-border-opacity));border-radius:9999px;border-width:2px;box-shadow:0 0 0 99999px #000000e6}.tour__target,.tour__text{position:absolute}.tour__text{animation:tour-text-anim 1s forwards,tour-text-bounce .75s ease-in-out infinite alternate;max-width:320px;padding-left:12px;padding-right:12px;transition-duration:1s}@keyframes tour-target-anim{0%{--tw-border-opacity:0;opacity:0;transform:scale(3)}to{--tw-border-opacity:1;opacity:.9;transform:scale(1)}}@keyframes tour-text-anim{0%{opacity:0}to{opacity:1}}@keyframes tour-text-bounce{0%{margin-top:0}to{margin-top:10px}}
|
|
2
|
+
`,he=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ci=he(wu,[["styles",[xu]]]),Cu=Object.freeze(Object.defineProperty({__proto__:null,default:Ci},Symbol.toStringTag,{value:"Module"})),ku=X("div",{class:"fixed inset-0 bg-black bg-opacity-90"},null,-1),ki=we({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=Z(null),r=Z([]);Fe(async()=>{const l=rr(o),c=Qe(()=>{s({width:l.width.value,height:l.height.value})},50);c(),ue(l.width,c),ue(l.height,c)});function s(l){var d;const c=(d=o.value)==null?void 0:d.parentElement;if(!c)return;const u=Array.from(c.querySelectorAll("#controls [title]"));u.length&&(r.value=i(u,l))}function i(l,c){const u=[],d=[];let m=0,S=0;const y=50,C=25;l.forEach(h=>{var v;const M=(v=h.getAttribute("title"))==null?void 0:v.trim(),k=h.getBoundingClientRect();if(!M||!k.height||!k.width)return;const $=Math.ceil((k.top-10)/y),_=Math.ceil((k.left-10)/y);d.push({isTour:!1,title:M,rect:k,fromX:_,toX:Math.max(_+1,Math.ceil((k.right+10)/y)),fromY:$,toY:Math.max($+1,Math.ceil((k.bottom+10)/y))})}),d.forEach(h=>{for(let M=h.fromY;M<h.toY;M++){u[M]??(u[M]=[]);for(let k=h.fromX;k<h.toX;k++)u[M][k]=h;h.toY>m+1&&(m=h.toY-1),h.toX>S+1&&(S=h.toX-1)}});let j=S/2;d.forEach(h=>{h.isAlignRight=h.fromX>j});const N=(h,M)=>{u[M]??(u[M]=[]);const k=M>=h.toY;if(h.isTour)for(let $=h.fromX;$<h.toX;$++)delete u[h.fromY][$],h.fromY=M,h.toY=M+(k?1:-1),u[M][$]=h;else{const $=h.isAlignRight?h.fromX-3:h.fromX,_=$+3;h.helpItem={fromX:$,toX:_,fromY:M,toY:M+1,isTour:!0,isAlignRight:h.isAlignRight};for(let v=$;v<_;v++)u[M][v]=h.helpItem}},L=(h,M)=>{if(M>m||M<0)return!1;const k=M>=h.toY,$=u[M];if(!$)return N(h,M),!0;const _=$[h.fromX];if(_&&!_.isTour)return!1;if(_&&_.isTour)return L(_,k?M+1:M-1)?(N(h,M),!0):!1;if(!_){const v=h.isAlignRight?-1:1;return $[h.fromX+v]||$[h.fromX+v*2]?L(h,k?M+1:M-1):(N(h,M),!0)}return!1};d.forEach(h=>{if(!L(h,h.toY)){if(h.isAlignRight){const M=u[h.fromY]??[];if(!M.slice(h.fromX-3,h.fromX).filter(Boolean).length){const $=h.fromX-3,_=h.fromX;h.helpItem={isTour:!0,isAlignRight:!0,fromX:$,toX:_,fromY:h.fromY,toY:h.toY};for(let v=h.fromX-3;v<h.fromX;v++)M[v]=h.helpItem;return}}L(h,h.fromY-1)}});const H=[];return d.forEach(h=>{const{title:M,helpItem:k,rect:$,isAlignRight:_,fromX:v,fromY:x,toY:D}=h;if(!M||!k||!$)return;const P=k.fromY>=D,B=k.toY<=x;H.push({title:a(M),style:{top:P?`${$.bottom+(k.fromY-D)*y+C}px`:B?void 0:`${$.top+8}px`,bottom:B?`${c.height-$.top+(k.toY-x)*y+C}px`:void 0,left:_?void 0:`${$.left}px`,right:_?P?`${c.width-$.right}px`:`${c.width-$.right+$.width+C}px`:void 0},arrowStyle:{width:B||P?"2px":`${Math.abs(k.toX-v)*y+C-5}px`,height:B||P?`${(P?k.fromY-D:x-k.toY)*y+C}px`:"2px",top:P?`${$.bottom}px`:B?void 0:`${$.top+20}px`,bottom:B?`${c.height-$.top}px`:void 0,left:_?void 0:`${$.left+$.width/2}px`,right:_?P?`${c.width-$.right+$.width/2}px`:`${c.width-$.right+$.width}px`:void 0}})}),H}function a(l){return n.touchDevice?l.split("(")[0].trim():l}return(l,c)=>(A(),Y(ge,null,[ku,X("div",{ref_key:"root",ref:o,class:"fixed inset-0 z-20 overscroll-contain select-none",onClick:c[0]||(c[0]=ot(u=>t("hide"),["stop"]))},[(A(!0),Y(ge,null,fn(r.value,u=>(A(),Y(ge,{key:u.title},[X("div",{class:"absolute",style:Me(u.style)},Ye(u.title),5),X("div",{class:"absolute bg-stone-300 rounded-lg",style:Me(u.arrowStyle)},null,4)],64))),128))],512)],64))}}),Su=Object.freeze(Object.defineProperty({__proto__:null,default:ki},Symbol.toStringTag,{value:"Module"})),Tu={},$u={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Iu=[X("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[X("circle",{cx:"14",cy:"14",r:"12"}),X("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function Pu(e,t){return A(),Y("svg",$u,Iu)}const Si=he(Tu,[["render",Pu]]),Eu=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"})),Ou={key:0,class:"h-9 rounded-full inline-flex justify-between items-center bg-black bg-opacity-50 gap-1 py-2 px-3 pointer-events-auto hover:bg-stone-900 hover:bg-opacity-50 duration-200",title:"Reset zoom"},Mu={class:"block w-4 h-4"},Lu={class:"w-12"},Ti=we({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=Si;return t.zoom!==1?(A(),Y("button",Ou,[X("div",Mu,[q(o)]),X("div",Lu,Ye(Math.ceil(t.zoom*100))+"%",1)])):Ee("",!0)}}}),zu=Object.freeze(Object.defineProperty({__proto__:null,default:Ti},Symbol.toStringTag,{value:"Module"})),ju={},Au={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Bu=[X("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function Du(e,t){return A(),Y("svg",Au,Bu)}const lr=he(ju,[["render",Du]]),Ru=Object.freeze(Object.defineProperty({__proto__:null,default:lr},Symbol.toStringTag,{value:"Module"})),Nu={},Fu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Hu=[X("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),X("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function Vu(e,t){return A(),Y("svg",Fu,Hu)}const ar=he(Nu,[["render",Vu]]),Wu=Object.freeze(Object.defineProperty({__proto__:null,default:ar},Symbol.toStringTag,{value:"Module"}));function Uu({touchDevice:e}){const t=Z(!1);let n=0;return Kn("busy:touchDevice",e),Kn("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function cr(){const e=zt("busy:touchDevice"),t=zt("setBusyState");let n=!1;return He(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const Ku=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,s=.65;const i=setInterval(l,20);a();function a(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function l(){const c=+n||50;r<=c?(r++,s-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${s}`):(o.remove(),clearInterval(i))}},Gt={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>Ku(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},Yu={class:"group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200 rounđe-full p-2 w-full h-full inline-flex justify-center items-center"},eo=we({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=cr();let r=!1;function s(){r||(r=!0,o(!0,{desktopOnly:!0}))}function i(){r&&(r=!1,o(!1,{desktopOnly:!0}))}function a(l){n.disabled?l.preventDefault():t("click")}return(l,c)=>dt((A(),_e(Ca(l.href?"a":"button"),Jn(l.href?{href:l.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full flex-shrink-0",{"cursor-default text-stone-400 hover:text-stone-400":l.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!l.disabled,"bg-black bg-opacity-50":!l.transparent}],onClick:ot(a,["stop"]),onMouseenter:s,onMouseleave:i}),{default:oe(()=>[X("div",Yu,[Ce(l.$slots,"default")])]),_:3},16,["class","onClick"])),[[K(Gt),l.disabled?0:15]])}}),Xu=Object.freeze(Object.defineProperty({__proto__:null,default:eo},Symbol.toStringTag,{value:"Module"})),qu={},Zu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ju=[X("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)];function Qu(e,t){return A(),Y("svg",Zu,Ju)}const $i=he(qu,[["render",Qu]]),Gu=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"}));class ef{constructor(){rl(this,"listeners");this.listeners=[],this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.init()}init(){window.addEventListener("keydown",this.onKeyDown,{capture:!0}),window.addEventListener("keyup",this.onKeyUp,{capture:!0}),window.addEventListener("keypress",this.onKeyPress,{capture:!0})}dispose(){window.removeEventListener("keydown",this.onKeyDown,{capture:!0}),window.removeEventListener("keyup",this.onKeyUp,{capture:!0}),window.removeEventListener("keypress",this.onKeyPress,{capture:!0})}onKeyPress(t){t.stopImmediatePropagation(),t.stopPropagation()}onKeyDown(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyDown)==null?void 0:o.call(n,t)})}onKeyUp(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyUp)==null?void 0:o.call(n,t)})}addListener(t){this.listeners.push(t)}removeListener(t){const n=this.listeners.indexOf(t);n!==-1&&this.listeners.splice(n,1)}}function tf(){const e=new ef;return He(()=>e.dispose()),Kn("keyController",e),e}function to(e){const t=zt("keyController");Fe(()=>t.addListener(e)),He(()=>t.removeListener(e))}const nf={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},of={class:"text-xl font-medium text-ellipsis overflow-hidden whitespace-nowrap px-3"},rf={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},Ii=we({__name:"BottomSheet",props:{modelValue:{type:Boolean},name:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;to({onKeyDown:r});const o=cr();ue(()=>n.modelValue,s=>o(s));function r(s){n.modelValue&&s.key==="Escape"&&(t("update:modelValue",!1),s.preventDefault())}return(s,i)=>{const a=$i,l=eo;return A(),Y("div",{class:xe(["fixed inset-0 flex flex-col items-center justify-end select-none",{"!pointer-events-none":!n.modelValue}]),onClick:i[2]||(i[2]=()=>t("update:modelValue",!1))},[q(Qt,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:oe(()=>[n.modelValue?(A(),Y("div",{key:0,class:"inline-flex flex-col h-[27rem] w-full sm:w-[32rem] max-h-[80vh] bg-stone-800 bg-opacity-90 backdrop-blur-md rounded-t-xl max-w-full overflow-hidden duration-200",onClick:i[1]||(i[1]=ot(()=>{},["stop"]))},[X("div",nf,[q(l,{transparent:"",onClick:i[0]||(i[0]=()=>t("update:modelValue",!1))},{default:oe(()=>[q(a)]),_:1}),X("div",of,Ye(s.name),1),Ce(s.$slots,"actions")]),X("div",rf,[Ce(s.$slots,"default")])])):Ee("",!0)]),_:3})],2)}}}),sf=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"})),lf=["min","max","step"],af={class:"flex-shrink-0"},Pi=he(we({__name:"InputPercentage",props:{modelValue:{},min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ie({get(){return n.modelValue},set(r){t("update:modelValue",+r)}});return(r,s)=>(A(),Y("div",{class:xe(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:Me({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[dt(X("input",{"onUpdate:modelValue":s[0]||(s[0]=i=>o.value=i),type:"range",min:r.min,max:r.max,step:r.step??1,class:"flex-grow"},null,8,lf),[[$c,o.value]]),X("p",af,[Ce(r.$slots,"suffix")])],6))}}),[["styles",[`input[type=range]{--tw-bg-opacity:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to right,#d6d3d1 var(--percentage),#78716c var(--percentage));background-color:rgb(120 113 108/var(--tw-bg-opacity));border-radius:2px;border-style:none;cursor:pointer;height:6px;opacity:.9;outline:2px solid transparent;outline-offset:2px}input[type=range]::-webkit-slider-thumb{--tw-border-opacity:1;--tw-bg-opacity:1;-webkit-appearance:none!important;background-color:rgb(214 211 209/var(--tw-bg-opacity));border-color:rgb(214 211 209/var(--tw-border-opacity));border-radius:2px;border-style:solid;border-width:2px;cursor:pointer;height:28px;transition-duration:.2s;width:16px}input[type=range]:hover{opacity:1}
|
|
3
|
+
`]]]),cf=Object.freeze(Object.defineProperty({__proto__:null,default:Pi},Symbol.toStringTag,{value:"Module"})),uf={class:"flex items-center mb-8 last:mb-0"},ff={class:"flex-grow overflow-hidden"},Ei=we({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(A(),Y("div",uf,[X("div",{class:xe(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Ye(t.label),3),X("div",ff,[Ce(t.$slots,"default")])]))}}),df=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),pf=["onClick","onKeyup"],Oi=we({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Z(null),r=Z({width:"",left:""});Fe(()=>{let i=!1;ue(()=>n.modelValue,a=>{var c;const l=(c=o.value)==null?void 0:c.children[a+1];l&&(r.value={width:l.offsetWidth+"px",left:l.offsetLeft+"px"},l.scrollIntoView({behavior:i?"smooth":"auto",block:"center",inline:"center"}),i=!0)},{immediate:!0})});function s(i){t("update:modelValue",i)}return(i,a)=>(A(),Y("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[X("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Me(r.value)},null,4),(A(!0),Y(ge,null,fn(n.items,(l,c)=>dt((A(),Y("div",{key:c,tabindex:"0",class:xe(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.modelValue,"text-stone-400":c!=n.modelValue}]),onClick:()=>s(c),onKeyup:[ei(()=>s(c),["enter"]),ei(()=>s(c),["space"])]},[Ct(Ye(l),1)],42,pf)),[[K(Gt),30]])),128))],512))}}),hf=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),gf={},mf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},vf=[X("path",{fill:"currentColor",d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"},null,-1)];function _f(e,t){return A(),Y("svg",mf,vf)}const Mi=he(gf,[["render",_f]]),bf=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"})),yf={},wf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},xf=[X("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),X("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Cf(e,t){return A(),Y("svg",wf,xf)}const Li=he(yf,[["render",Cf]]),kf=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"}));function Sf(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var rt=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(rt||{}),gt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(gt||{});const Tf=.25,$f=5,If=.25,yn=.25,wn=5,Pf=.05,Ef=0,Of=4;function Mf(e){var N,L,H,h,M;const{titleName:t,isWebtoon:n}=e,r=`tkr:${t?Sf(t):location.pathname}`,s=gu(r,{},{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(k){const $={};return k?(k.style!==void 0&&Object.values(gt).includes(k.style)&&($.style=k.style),k.direction!==void 0&&Object.values(rt).includes(k.direction)&&($.direction=k.direction),k.gap!==void 0&&k.gap>=Ef&&k.gap<=Of&&($.gap=k.gap),k.speed!==void 0&&k.speed>=yn&&k.speed<=wn&&($.speed=k.speed),k.zoom!==void 0&&k.zoom>=yn&&k.zoom<=wn&&($.zoom=k.zoom),Object.keys($).length?$:void 0):$}}),i=k=>{if(!s.value){s.value=k;return}const $={...s.value};Object.entries(k).forEach(([_,v])=>{v===void 0?delete $[_]:$[_]=v}),Object.keys($).length?s.value=$:(s.value=void 0,localStorage.removeItem(r))},a=Z(((N=s.value)==null?void 0:N.style)??gt.longStrip),l=Z(((L=s.value)==null?void 0:L.direction)??rt.vertical),c=Z((H=s.value)==null?void 0:H.gap),u=Z(((h=s.value)==null?void 0:h.speed)??1),d=Z(((M=s.value)==null?void 0:M.zoom)??1),m=ie({get(){return n.value?gt.longStrip:a.value??gt.longStrip},set:k=>{a.value=k,i({style:k===gt.longStrip?void 0:k}),k!==gt.longStrip&&l.value===rt.vertical&&(S.value=rt.rtl)}}),S=ie({get:()=>n.value?rt.vertical:l.value,set:k=>{l.value=k,i({direction:k===rt.vertical?void 0:k})}}),y=ie({get:()=>c.value??(n.value?0:1),set(k){c.value=k,i({gap:k})}}),C=ie({get:()=>u.value,set(k){u.value=k,i({speed:k===1?void 0:k})}}),j=ie({get:()=>d.value,set(k){d.value=k,i({zoom:k===1?void 0:k})}});return{direction:S,style:m,gap:y,speed:C,zoom:j,isLongStrip:ie(()=>m.value===gt.longStrip),isDouble:ie(()=>m.value===gt.double),isRTL:ie(()=>S.value===rt.rtl),isVertical:ie(()=>S.value===rt.vertical)}}const zi=we({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=Z(!1);to({onKeyUp:s=>{s.key==="s"&&!s.metaKey&&!s.ctrlKey&&(n.value=!n.value)}});function o(s){t("update:zoom",Math.round(s)/100)}function r(){n.value=!1,t("help")}return(s,i)=>{const a=Li,l=eo,c=Mi,u=Oi,d=Ei,m=Pi,S=Ii;return A(),Y(ge,null,[q(l,{title:"Reader settings (S)",disabled:s.disabled,onClick:i[0]||(i[0]=()=>n.value=!0)},{default:oe(()=>[q(a)]),_:1},8,["disabled"]),q(S,{modelValue:n.value,"onUpdate:modelValue":i[5]||(i[5]=y=>n.value=y),name:s.name},{actions:oe(()=>[q(l,{transparent:"",onClick:r},{default:oe(()=>[q(c)]),_:1})]),default:oe(()=>[q(d,{label:"Style"},{default:oe(()=>[q(u,{"model-value":s.readerStyle,items:s.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":i[1]||(i[1]=y=>t("update:reader-style",y))},null,8,["model-value","items"])]),_:1}),q(d,{label:"Direction"},{default:oe(()=>[q(u,{"model-value":s.direction,items:s.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":i[2]||(i[2]=y=>t("update:direction",y))},null,8,["model-value","items"])]),_:1}),q(d,{label:"Gap"},{default:oe(()=>[q(u,{"model-value":s.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":i[3]||(i[3]=y=>t("update:gap",y))},null,8,["model-value"])]),_:1}),q(d,{label:"Speed"},{default:oe(()=>[q(m,{"model-value":s.speed,min:K(Tf),max:K($f),step:K(If),suffix:"x","onUpdate:modelValue":i[4]||(i[4]=y=>t("update:speed",y))},{suffix:oe(()=>[Ct(Ye(s.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),q(d,{label:"Zoom"},{default:oe(()=>[q(m,{"model-value":Math.ceil(s.zoom*100),min:K(yn)*100,max:K(wn)*100,step:K(Pf)*100,"onUpdate:modelValue":o},{suffix:oe(()=>[Ct(Ye(Math.ceil(s.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),Lf=Object.freeze(Object.defineProperty({__proto__:null,default:zi},Symbol.toStringTag,{value:"Module"})),zf={},jf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Af=[X("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function Bf(e,t){return A(),Y("svg",jf,Af)}const ji=he(zf,[["render",Bf]]),Df=Object.freeze(Object.defineProperty({__proto__:null,default:ji},Symbol.toStringTag,{value:"Module"})),Rf={},Nf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Ff=[X("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function Hf(e,t){return A(),Y("svg",Nf,Ff)}const Ai=he(Rf,[["render",Hf]]),Vf=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),Wf={},Uf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Kf=[X("path",{d:"M18.652 3C18.0277 3 17.5216 3.5061 17.5216 4.13042V5.26083H16.3912C15.7669 5.26083 15.2608 5.76693 15.2608 6.39125C15.2608 7.01556 15.7669 7.52166 16.3912 7.52166H17.5216V8.65208C17.5216 9.27639 18.0277 9.78249 18.652 9.78249C19.2764 9.78249 19.7825 9.27639 19.7825 8.65208V7.52166H20.9129C21.5372 7.52166 22.0433 7.01556 22.0433 6.39125C22.0433 5.76693 21.5372 5.26083 20.9129 5.26083H19.7825V4.13042C19.7825 3.5061 19.2764 3 18.652 3Z",fill:"currentColor"},null,-1),X("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.0183 5.92413L8.24658 7.18954C7.65717 7.34584 7.24677 7.87926 7.24677 8.48905V18.0483C7.24677 18.4887 7.72075 18.7663 8.10482 18.5509L11.4937 16.65C11.7272 16.519 12.012 16.519 12.2454 16.65L18.6384 20.2363C19.1505 20.5235 19.7825 20.1534 19.7825 19.5663L19.7825 12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 6.23454 13.0067 6.07783 13.0183 5.92413Z",fill:"currentColor"},null,-1),X("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.49315 4.13042C4.64457 4.13042 3.95667 4.81833 3.95667 5.6669V19.5663C3.95667 20.1535 4.58867 20.5236 5.10077 20.2363L11.4937 16.6501C11.7272 16.5191 12.012 16.5191 12.2454 16.6501L18.6384 20.2363C19.1505 20.5236 19.7825 20.1535 19.7825 19.5663V12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 5.26083 13.3507 4.13042 13.3507 4.13042H5.49315Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function Yf(e,t){return A(),Y("svg",Uf,Kf)}const Bi=he(Wf,[["render",Yf]]),Xf=Object.freeze(Object.defineProperty({__proto__:null,default:Bi},Symbol.toStringTag,{value:"Module"})),qf={},Zf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Jf=[X("path",{d:"M17.1026 8.89862C17.1114 8.90798 17.1203 8.91723 17.1295 8.92636C17.5709 9.36781 18.2866 9.36781 18.7281 8.92636L22.7247 4.92974C23.1662 4.48828 23.1662 3.77255 22.7247 3.33109C22.2833 2.88964 21.5675 2.88964 21.1261 3.33109L17.9292 6.52793L17.1286 5.72729C16.6871 5.28583 15.9714 5.28583 15.5299 5.72729C15.0885 6.16874 15.0885 6.88448 15.5299 7.32593L17.1026 8.89862Z",fill:"currentColor"},null,-1),X("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9564 5.92413L8.18463 7.18954C7.59522 7.34584 7.18481 7.87926 7.18481 8.48905V18.0483C7.18481 18.4887 7.65879 18.7663 8.04287 18.5509L11.4318 16.65C11.6652 16.519 11.95 16.519 12.1835 16.65L18.5764 20.2363C19.0885 20.5235 19.7205 20.1534 19.7205 19.5663L19.7205 12.0433H18.5901C15.4686 12.0433 12.938 9.5128 12.938 6.39125C12.938 6.23454 12.9448 6.07783 12.9564 5.92413Z",fill:"currentColor"},null,-1),X("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.4312 4.13042C4.58262 4.13042 3.89471 4.81833 3.89471 5.6669V19.5663C3.89471 20.1535 4.52672 20.5236 5.03882 20.2363L11.4318 16.6501C11.6652 16.5191 11.95 16.5191 12.1835 16.6501L18.5764 20.2363C19.0885 20.5236 19.7205 20.1535 19.7205 19.5663V5.6669C19.7205 5.6646 19.7205 5.66229 19.7205 5.65998V12.0433H18.5901C15.4685 12.0433 12.938 9.5128 12.938 6.39125C12.938 5.26083 13.2887 4.13042 13.2887 4.13042H5.4312Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function Qf(e,t){return A(),Y("svg",Zf,Jf)}const Di=he(qf,[["render",Qf]]),Gf=Object.freeze(Object.defineProperty({__proto__:null,default:Di},Symbol.toStringTag,{value:"Module"})),ed={},td={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},nd=[X("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function od(e,t){return A(),Y("svg",td,nd)}const Ri=he(ed,[["render",od]]),rd=Object.freeze(Object.defineProperty({__proto__:null,default:Ri},Symbol.toStringTag,{value:"Module"})),sd=["aria-hidden"],id=["onClick"],ld=["onClick"],ad={class:"inline-flex items-center justify-center w-full h-full px-4 rounded-full group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200"},cd={class:"whitespace-nowrap"},ur=we({__name:"ButtonDropdown",props:{modelValue:{},label:{},title:{},items:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Z(null),r=Z(!1),s=Z(null),i=Z(!1),a=Z(!1),l=Z(!1);to({onKeyDown:S});const c=cr();function u(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(d(),qe(()=>setTimeout(()=>{var h,M;(M=(h=s.value)==null?void 0:h.children[n.modelValue])==null||M.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),C(o.value)):setTimeout(j,250)}function d(){const h=o.value;if(h){const M=h.getBoundingClientRect(),k=M.x+M.width/2;i.value=M.y>window.innerHeight/2,a.value=k<window.innerWidth/3,l.value=k>window.innerWidth/3*2}}function m(h){h!=n.modelValue&&t("update:modelValue",h),u()}function S(h){r.value&&h.key==="Escape"&&(u(),h.preventDefault())}let y=[];function C(h){const M=window.getComputedStyle(h).zIndex,k=h.style.zIndex;(!M||!(+M>0))&&((!h.parentElement||h.parentElement.childElementCount>1)&&(h.style.zIndex="1",y.push({el:h,zIndex:k})),h.parentElement&&C(h.parentElement))}function j(){y.forEach(({el:h,zIndex:M})=>{h.style.zIndex=M??""}),y=[]}let N=!1;function L(){N||(N=!0,c(!0,{desktopOnly:!0}))}function H(){N&&(N=!1,c(!1,{desktopOnly:!0}))}return(h,M)=>{const k=Ri;return A(),Y("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(A(),Y("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:u})):Ee("",!0),h.items.length?(A(),_e(Qt,{key:1,name:"slide-fade","enter-from-class":"scale-y-90 opacity-0 pointer-events-none","leave-to-class":"scale-y-90 opacity-0 pointer-events-none"},{default:oe(()=>[r.value?(A(),Y("ul",{key:0,ref_key:"list",ref:s,"aria-hidden":!r.value,class:xe(["scrollbar-sm duration-150 delay-50 absolute w-40 max-h-[70vh] list-none bg-stone-800 bg-opacity-80 backdrop-blur-md rounded-lg overflow-auto",{"origin-bottom bottom-full -translate-y-1.5":i.value,"origin-top top-full translate-y-1.5":!i.value,"left-1/2 -ml-20 text-center":!a.value&&!l.value,"right-0 text-right":l.value}]),onWheelPassive:M[0]||(M[0]=ot(()=>{},["stop"]))},[(A(!0),Y(ge,null,fn(h.items,($,_)=>dt((A(),Y("li",{key:_,tabindex:"-1",class:xe(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":_===h.modelValue}]),onClick:()=>m(_)},[X("div",{class:xe(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":_>0}])},[Ce(h.$slots,"item",{item:$},()=>[Ct(Ye($),1)])],2)],10,id)),[[K(Gt),30]])),128))],42,sd)):Ee("",!0)]),_:3})):Ee("",!0),dt((A(),Y("button",Jn({type:"button",tabindex:"-1",class:["w-full h-10 max-h-full bg-transparent rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":h.disabled}]},h.title?{title:h.title}:{},{onClick:ot(u,["stop"]),onMouseenter:L,onMouseleave:H}),[X("div",ad,[X("span",cd,Ye(h.label),1),h.items.length?(A(),Y("span",{key:0,class:xe(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":i.value}]),"aria-hidden":"true"},[q(k)],2)):Ee("",!0)])],16,ld)),[[K(Gt),30]])],512)}}}),ud=Object.freeze(Object.defineProperty({__proto__:null,default:ur},Symbol.toStringTag,{value:"Module"})),Ni=we({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ie(()=>Math.floor(n.modelValue)),r=ie(()=>n.pages.map(c=>c.map(({index:u})=>`${u+1}`).join("-"))),s=ie(()=>{const c=o.value,u=n.pages.findIndex(d=>d.some(({index:m})=>m===c));return u===-1?n.pages.length-1:u}),i=ie(()=>n.pages.length?`${r.value[s.value]}/${n.totalImgs}`:"--");function a(c){const u=n.pages[c][0].index;l(u)}function l(c){t("update:modelValue",c)}return(c,u)=>{const d=ur;return A(),_e(d,{"model-value":s.value,label:i.value,title:"Current page",items:r.value,disabled:c.disabled,"onUpdate:modelValue":a},null,8,["model-value","label","items","disabled"])}}}),fd=Object.freeze(Object.defineProperty({__proto__:null,default:Ni},Symbol.toStringTag,{value:"Module"})),dd={},pd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},hd=[X("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function gd(e,t){return A(),Y("svg",pd,hd)}const Fi=he(dd,[["render",gd]]),md=Object.freeze(Object.defineProperty({__proto__:null,default:Fi},Symbol.toStringTag,{value:"Module"})),vd={},_d={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},bd=[X("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function yd(e,t){return A(),Y("svg",_d,bd)}const Hi=he(vd,[["render",yd]]),wd=Object.freeze(Object.defineProperty({__proto__:null,default:Hi},Symbol.toStringTag,{value:"Module"})),xd={},Cd={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},kd=[X("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function Sd(e,t){return A(),Y("svg",Cd,kd)}const Vi=he(xd,[["render",Sd]]),Td=Object.freeze(Object.defineProperty({__proto__:null,default:Vi},Symbol.toStringTag,{value:"Module"})),$d={},Id={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Pd=[X("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function Ed(e,t){return A(),Y("svg",Id,Pd)}const Wi=he($d,[["render",Ed]]),Od=Object.freeze(Object.defineProperty({__proto__:null,default:Wi},Symbol.toStringTag,{value:"Module"})),Ui=he(we({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=Z(0);return ue(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const s=lr,i=ar;return n.value?(A(),Y("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(A(),_e(s,{key:0})):(A(),_e(i,{key:1}))])):Ee("",!0)}}}),[["styles",[`.animate-pause-fade{animation:pause-fade .4s linear forwards;transform-origin:center}@keyframes pause-fade{0%{opacity:0;transform:scale(.3)}10%{opacity:1;transform:scale(.35)}55%{opacity:1;transform:scale(.65)}to{opacity:0;transform:scale(1)}}
|
|
4
|
+
`]]]),Md=Object.freeze(Object.defineProperty({__proto__:null,default:Ui},Symbol.toStringTag,{value:"Module"})),Ld={},zd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},jd=[X("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function Ad(e,t){return A(),Y("svg",zd,jd)}const Ki=he(Ld,[["render",Ad]]),Bd=Object.freeze(Object.defineProperty({__proto__:null,default:Ki},Symbol.toStringTag,{value:"Module"})),Yi=we({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=ir("tk:dir",!0),o=Qe(()=>n.value=!1,1250);return ue(()=>t.direction,()=>{n.value=!0,o()}),Fe(()=>{o();let r;const s=_i();ue(s,i=>{i!=="visible"?r=Date.now():Date.now()-r>3e4&&(n.value=!0,o())})}),(r,s)=>{const i=Ki;return A(),_e(Qt,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:oe(()=>[K(n)?(A(),Y("div",{key:0,class:xe(["fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none w-28 h-24 p-4 bg-black bg-opacity-40 rounded-2xl duration-500",{"rotate-90":r.direction===K(rt).vertical,"rotate-180":r.direction===K(rt).rtl}])},[q(i)],2)):Ee("",!0)]),_:1})}}}),Dd=Object.freeze(Object.defineProperty({__proto__:null,default:Yi},Symbol.toStringTag,{value:"Module"})),no=[];function Rd(e){no.push(e),He(()=>{const t=no.indexOf(e);t!==-1&&no.splice(t,1)})}function Nd(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,s=t*o;no.forEach(i=>i(r,s))}const Fd=["onClick"],Xi=we({__name:"ZoomWrapper",props:{modelValue:{},pageIndex:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},emits:["update:modelValue","dragEnd","click"],setup(e,{emit:t}){const n=e,o=Z(null),r=Z(Math.min(wn,Math.max(yn,n.modelValue))),s=Z(!1),i=Z(!1),a=Z(!1),l=Z(!1);ue(()=>n.modelValue,I=>G(I)),Fe(()=>{n.touchDevice?(It(window,"touchstart",L),Rd(D)):(It(o,"mousedown",y),ue(()=>n.horizontal,I=>{I?window.addEventListener("wheel",k,{passive:!1}):window.removeEventListener("wheel",k)},{immediate:!0}))}),He(()=>{window.removeEventListener("wheel",k)});let c;to({onKeyDown:I=>{var fe;if(n.busy)return;(fe=o.value)==null||fe.focus();const F=I.key==="Meta",U=I.key==="Control";if(F||U)s.value=!0,window.addEventListener("wheel",d,{passive:!1}),c=()=>{s.value=!1,window.removeEventListener("wheel",d),window.removeEventListener("blur",c),c=void 0},window.addEventListener("blur",c);else if(I.ctrlKey||I.metaKey)switch(I.key){case"0":G(1);break;case"-":G(r.value-.2),I.preventDefault();break;case"=":case"+":G(r.value+.2),I.preventDefault();break}},onKeyUp:()=>{s.value==!0&&(c==null||c())}});function u(I){a.value!==I&&(a.value=I,I?n.playController.pause():(t("dragEnd"),n.playController.resume()))}function d(I){I.stopPropagation(),I.preventDefault();const F=Math.ceil((r.value+I.deltaY*-.01)*100)/100;G(F,{x:I.clientX,y:I.clientY})}let m={x:0,y:0},S={x:0,y:0};function y(I){I.button===0&&(m={x:I.clientX,y:I.clientY},S={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",C),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",C),setTimeout(()=>u(!1))},{once:!0}),I.preventDefault(),I.stopPropagation())}function C(I){u(!0);const F=I.clientX-m.x,U=I.clientY-m.y,fe=o.value;fe.scrollLeft=S.x-F,fe.scrollTop=S.y-U}let j=!1,N={distance:0,zoom:r.value,x:0,y:0};function L(I){n.busy||(j=I.touches.length===2,j&&(u(!0),I.stopPropagation(),I.preventDefault(),N={distance:$(I),zoom:r.value,x:(I.touches[0].clientX+I.touches[1].clientX)/2,y:(I.touches[0].clientY+I.touches[1].clientY)/2}),(j||n.playController.isPlaying&&n.longStrip)&&(window.addEventListener("touchmove",h),window.addEventListener("touchend",H,{once:!0})))}function H(){if(window.removeEventListener("touchmove",h),j){u(!1),j=!1;return}if(!a.value)return;const I=Qe(()=>{u(!1),o.value.removeEventListener("scroll",U)},100),F=setTimeout(I,100);o.value.addEventListener("scroll",U);function U(){clearTimeout(F),I()}}function h(I){if(u(!0),j){I.stopPropagation(),I.preventDefault();const U=$(I)/N.distance;G(Math.ceil(U*N.zoom*100)/100,N)}}const M=Qe(()=>i.value=!1,100);function k(I){n.busy||(i.value||(i.value=!0),M(),I.deltaY&&(!s.value&&o.value&&(o.value.scrollLeft+=I.deltaY*(n.rtl?-1:1)),I.preventDefault()))}function $(I){return Math.hypot(I.touches[0].clientX-I.touches[1].clientX,I.touches[0].clientY-I.touches[1].clientY)}let _=0,v;function x(I){if(!a.value){if(!n.touchDevice){t("click",I);return}_++,v&&clearTimeout(v),_===2&&D(I.clientX,I.clientY),v=setTimeout(()=>{!a.value&&_===1&&t("click",I),v=void 0,_=0},300)}}function D(I,F){if(!_)return;_=0;const U=r.value===1?2:1;G(U,{x:I,y:F})}let P;const B=Qe(()=>{l.value=!1,P=void 0},150);function ee(){if(!l.value){const I=o.value;if(!I)return;const F=I.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;F&&(P={el:F,rect:F.getBoundingClientRect()},l.value=!0)}if(P)return B(),P}async function G(I,F){const U=o.value,fe=Math.min(wn,Math.max(yn,I));if(!U||r.value===fe)return;const Te=ee();if(!Te)return;const Ve=(F==null?void 0:F.x)??U.clientWidth/2,Ie=(F==null?void 0:F.y)??U.clientHeight/2;r.value=fe,t("update:modelValue",fe),await qe();const{el:ct,rect:mt}=Te,en=ct.offsetWidth/mt.width,Oe=ct.offsetHeight/mt.height;U.scrollLeft=ct.offsetLeft-mt.left*en+Ve*(en-1),U.scrollTop=ct.offsetTop-mt.top*Oe+Ie*(Oe-1)}return(I,F)=>(A(),Y("div",{ref_key:"root",ref:o,tabindex:"0",class:xe(["w-full h-full overflow-auto overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":a.value||i.value||l.value,"cursor-grabbing":a.value,"overflow-hidden":l.value}]),style:Me({"font-size":`${r.value}px`}),onClick:ot(x,["stop"])},[Ce(I.$slots,"default")],14,Fd))}}),Hd=Object.freeze(Object.defineProperty({__proto__:null,default:Xi},Symbol.toStringTag,{value:"Module"})),Vd=`.loading-indicator{display:inline-block;height:80px;position:relative;width:80px}.loading-indicator:after,.loading-indicator:before{animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite;border:4px solid #b85c38;border-radius:9999px;content:"";display:block;opacity:1;position:absolute}.loading-indicator:after{animation-delay:-.5s}@keyframes lds-ripple{0%{height:0;left:36px;opacity:0;top:36px;width:0}4.9%{height:0;left:36px;opacity:0;top:36px;width:0}5%{height:0;left:36px;opacity:1;top:36px;width:0}to{height:72px;left:0;opacity:0;top:0;width:72px}}
|
|
5
|
+
`,Wd={},Ud={class:"loading-indicator"};function Kd(e,t){return A(),Y("div",Ud)}const fr=he(Wd,[["render",Kd],["styles",[Vd]]]),Yd=Object.freeze(Object.defineProperty({__proto__:null,default:fr},Symbol.toStringTag,{value:"Module"})),qi=we({__name:"LoadingPlaceholder",setup(e){const t=Z(null),n=Z(!1);return Fe(async()=>{await qe(),sr(t,o=>{n.value=o.some(r=>r.isIntersecting)})}),(o,r)=>{const s=fr;return A(),Y("div",{ref_key:"root",ref:t,class:"flex justify-center items-center"},[n.value?(A(),_e(s,{key:0})):Ee("",!0)],512)}}}),Xd=Object.freeze(Object.defineProperty({__proto__:null,default:qi},Symbol.toStringTag,{value:"Module"})),qd=["data-index"],Zd=["src"],Jd=["src"],Qd=["data-index"],Zi=he(we({__name:"ReaderBody",props:{pageIndex:{},direction:{},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isRTL:{type:Boolean},pages:{},totalImgs:{},gap:{},zoom:{},spaceTop:{},touchDevice:{type:Boolean},playController:{},busy:{type:Boolean},idle:{type:Boolean}},emits:["update:zoom","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=Z(null),r=ie(()=>{var y;return(y=o.value)==null?void 0:y.$el}),s=Z(null),i=rr(r),a=ie(()=>{const{width:y,height:C}=i,j=n.isLongStrip?n.isVertical?y.value:C.value:Math.min(y.value,C.value);return Math.min(4,Math.max(1,Math.ceil(j/400-1)))*n.gap}),l=Z(n.pageIndex),c=Z(n.pageIndex),u=Qe(()=>{const y=n.pageIndex;l.value>y&&(l.value=y),c.value<y&&(c.value=y)},50);ue(()=>n.pageIndex,u);const d=ie(()=>{const{width:{value:y},height:{value:C}}=i;return n.pages.map(j=>{var v;const N=j.some(x=>{var D;return(D=x.img)==null?void 0:D.isLoading}),L=j.map(x=>x.index),H={isLoading:N,indexes:L};if(N||L[L.length-1]<l.value-1||L[0]>c.value+3)return H;const h=j.map(({img:x})=>x).filter(Boolean);if(!h.length||(H.srcs=h.map(({src:x})=>x),h.every(x=>x.hasError)))return H;const k=(v=h.find(x=>!x.hasError))==null?void 0:v.size,$=h.reduce((x,D)=>{var P;return x+(((P=D.size)==null?void 0:P.width)??k.width)},0),_=h.reduce((x,D)=>{var P;return x+(((P=D.size)==null?void 0:P.height)??k.height)},0)/h.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&y/$<C/_?(H.width=Math.min(y,$),H.height=_*H.width/$):H.height=Math.min(C,_),H})}),m=ie(()=>{const y=n.isVertical?"width":"height";return d.value.map(C=>C[y]).filter(Boolean).sort((C,j)=>j-C)[0]});function S(y){if(!n.isLongStrip){const C=n.isVertical?i.height.value:i.width.value,N=(n.isVertical?y.clientY:n.isRTL?C-y.clientX:y.clientX)/C;if(N<=.2){t("prev");return}else if(N>=.8){t("next");return}}t("click")}return(y,C)=>{const j=qi,N=Xi;return A(),_e(N,{ref_key:"root",ref:o,"model-value":y.zoom,"page-index":y.pageIndex,class:xe(["reader-body",{"reader-body--long-strip":y.isLongStrip,"reader-body--pages":!y.isLongStrip,"reader-body--vertical":y.isVertical,"reader-body--rtl":y.isRTL,"reader-body--idle":y.idle}]),"play-controller":y.playController,horizontal:!y.isVertical,rtl:y.isRTL,"touch-device":y.touchDevice,busy:y.busy,"long-strip":y.isLongStrip,style:Me({"--gap":`${a.value}em`,"--space-top":(y.spaceTop||0)+"em","--screen-width-em":K(i).width.value+"em","--screen-height-em":K(i).height.value+"em",...y.isLongStrip?{"--max-size-em":m.value+"em"}:{}}),"onUpdate:modelValue":C[0]||(C[0]=L=>t("update:zoom",L)),onDragEnd:C[1]||(C[1]=()=>t("dragEnd")),onClick:S,onScroll:K(u)},{default:oe(()=>[(A(!0),Y(ge,null,fn(d.value,L=>{var H;return A(),Y("div",Jn({key:y.direction+"_"+L.indexes[0],"data-index":L.indexes[0]},L.indexes.length>1?{"data-index2":L.indexes[1]}:{}),[!((H=L.srcs)!=null&&H.length)||L.isLoading?(A(),_e(j,{key:0,class:"page--loading"})):L.srcs.length==1?(A(),Y("img",{key:1,src:L.srcs[0],style:Me({height:L.height!==void 0?L.height+"em":""})},null,12,Zd)):(A(),Y("div",{key:2,class:xe(["page--double",{"flex-row-reverse":y.isRTL}]),style:Me({width:L.width!==void 0?L.width+"em":"",height:L.height!==void 0?L.height+"em":""})},[(A(!0),Y(ge,null,fn(L.srcs,h=>(A(),Y("div",{key:h},[X("img",{src:h},null,8,Jd)]))),128))],6))],16,qd)}),128)),X("div",{ref_key:"autoNextEl",ref:s,class:"last","data-index":y.totalImgs},[Ce(y.$slots,"end")],8,Qd)]),_:3},8,["model-value","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style","onScroll"])}}}),[["styles",[`.reader-body{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width:1024px){.reader-body{transform:none}}.reader-body--rtl{flex-direction:row-reverse}.reader-body.reader-body--vertical>div{padding:calc(var(--gap)/2) 0}.reader-body:not(.reader-body--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.reader-body:not(.reader-body--vertical)>div{padding:0 calc(var(--gap)/2)}.reader-body--long-strip.reader-body--vertical>div:first-child{margin-top:var(--space-top);padding-top:0}.reader-body--long-strip.reader-body--vertical>div:last-child{padding-bottom:0}.reader-body--long-strip.reader-body--vertical>div{width:var(--max-size-em)}.reader-body--long-strip.reader-body--vertical .page--loading{height:75vh;max-width:100%;width:100vw}.reader-body--long-strip.reader-body--vertical .last{height:var(--screen-height-em)}.reader-body--long-strip:not(.reader-body--vertical)>div{align-items:center;display:flex;height:var(--max-size-em)}.reader-body--long-strip:not(.reader-body--vertical) .page--loading{height:100vh;max-height:100%;max-width:100vw;width:680px}.reader-body--long-strip:not(.reader-body--vertical) .last{width:var(--screen-width-em)}.reader-body--long-strip>div>img{flex-shrink:0;margin:auto}.reader-body--pages:after,.reader-body--pages:before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.reader-body--pages.reader-body--idle:after,.reader-body--pages.reader-body--idle:before{cursor:none}.reader-body--pages>div{align-items:center;display:grid;justify-content:center;min-height:100vh;min-width:100vw;scroll-snap-align:center}.reader-body--pages.reader-body--vertical{--tw-scroll-snap-strictness:mandatory;scroll-snap-type:y var(--tw-scroll-snap-strictness)}.reader-body--pages.reader-body--vertical:after,.reader-body--pages.reader-body--vertical:before{height:20vw;left:0;right:0}.reader-body--pages.reader-body--vertical:before{top:0}.reader-body--pages.reader-body--vertical:after{bottom:0}.reader-body--pages.reader-body--vertical>div{width:var(--screen-width-em)}.reader-body--pages:not(.reader-body--vertical){--tw-scroll-snap-strictness:mandatory;scroll-snap-type:x var(--tw-scroll-snap-strictness)}.reader-body--pages:not(.reader-body--vertical):after,.reader-body--pages:not(.reader-body--vertical):before{bottom:0;top:0;width:20vw}.reader-body--pages:not(.reader-body--vertical):before{left:0}.reader-body--pages:not(.reader-body--vertical):after{right:0}.reader-body--pages:not(.reader-body--vertical)>div{height:var(--screen-height-em)}.reader-body--pages .page--loading{height:100vh;width:100vw}.reader-body--pages .page--double{align-items:center;display:flex;gap:var(--gap);justify-content:center}.reader-body--pages .page--double div{display:flex;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body--pages .page--double div img{flex-shrink:0;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.reader-body>div{flex-shrink:0;margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body img{--tw-bg-opacity:1!important;background-color:rgb(41 37 36/var(--tw-bg-opacity))!important;-o-object-fit:contain!important;object-fit:contain!important;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}
|
|
6
|
+
`]]]),Gd=Object.freeze(Object.defineProperty({__proto__:null,default:Zi},Symbol.toStringTag,{value:"Module"})),ep={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},tp={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},np={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},Ji=he(we({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=Z(null),o=Z(null),r=Z(!1),s=Z(!1),i=Z(3);return Fe(()=>{let a;sr(o,l=>{s.value=l.some(c=>c.isIntersecting),i.value=5,a&&(clearInterval(a),a=void 0),s.value&&(a=setInterval(()=>{i.value-=1,i.value<=0&&(clearInterval(a),a=void 0,t("next"))},1e3))}),sr(n,l=>{r.value=l.some(c=>c.isIntersecting)}),He(()=>a&&clearInterval(a))}),(a,l)=>(A(),Y("div",{ref_key:"root",ref:n,class:"h-full w-full flex justify-center items-center"},[dt(X("div",ep,[a.hasNext?(A(),Y("div",tp,[s.value?(A(),Y("div",np)):Ee("",!0),dt((A(),Y("button",{ref_key:"nextButton",ref:o,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:l[0]||(l[0]=ot(()=>t("next"),["stop"]))},[Ct(" Next in "+Ye(i.value),1)])),[[K(Gt)]])])):Ee("",!0),dt((A(),Y("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:l[1]||(l[1]=ot(()=>t("hide"),["stop"]))},[Ct(" Hide ")])),[[K(Gt)]])],512),[[ti,r.value||!a.hasNext]])],512))}}),[["styles",[`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
|
|
7
|
+
`]]]),op=Object.freeze(Object.defineProperty({__proto__:null,default:Ji},Symbol.toStringTag,{value:"Module"}));async function xn(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(r=>{setTimeout(async()=>{const s=await xn(e-1,t,n);r(s)},t)})}function oo(e=0){return new Promise(t=>setTimeout(t,e))}const rp=3;function sp(e){var $;let t=[];const n=Z((($=e.raw.imgs)==null?void 0:$.filter(Boolean))??[]),o=sn({}),r=[],s=new WeakMap;let i=!0,a=0,l,c=n.value.length?cp(n.value):void 0;const u=Z(e.raw.isWebtoon),d=Z(u.value===void 0||c===void 0),m=Qe(h,100),S=Qe(C,50);d.value?n.value.length?C():N():qe(()=>setTimeout(()=>y(c),10)),He(()=>{i=!1,r.forEach(_=>URL.revokeObjectURL(_))});async function y(_){d.value=!1,await qe(),e.onReady(_),ue(()=>Math.floor(e.page.value),async(v,x)=>{el({contentEl:l,imgEls:t,page:v,smooth:!0}),x??(x=-1),v!==x&&(a=Math.max(0,a-Math.abs(v-x))),S()},{immediate:!0})}function C(){const _=Math.floor(e.page.value),v=x=>{a>rp||j(x)};for(let x=_;x<n.value.length;x++)v(x);for(let x=_-1;x>=0;x--)v(x)}async function j(_){const v=n.value[_];if(!(!i||!v||o[v])){if(!o[v]){o[v]={src:v,isLoading:!0,hasError:!1},a++;const x=await ap(v);if(o[v]={src:v,size:x,isLoading:!1,hasError:!x},a=Math.max(0,a-1),x&&!u.value&&_>Math.min(1,n.value.length-2)){const D=x.height/x.width>2.5;u.value!==D&&(u.value=D)}d.value&&u.value!==void 0&&c!==void 0&&y(c)}S()}}function N(){let _=!1;const v=new MutationObserver(()=>{l&&m(l)});He(async()=>{v.disconnect();const x=e.page.value;await oo(),el({contentEl:l,imgEls:t,page:x})}),L(x=>{l!==x&&(l=x,v.disconnect(),v.observe(l,{childList:!0,subtree:!0}),_?m(l):(_=!0,h(l)))})}async function L(_){var ee;const v=(ee=e.spec)==null?void 0:ee.content;if(!v)return;const x=await ip(e.spec);let D=v?await xn(x?100:1,10,()=>document.querySelector(v)):void 0;if(!D)return;_(D);let P=0;const B=async()=>{if(i&&!(D!=null&&D.isConnected)){if(P=0,D=await xn(50,20,()=>{const G=document.querySelector(v);return G!=null&&G.isConnected&&G!==D?G:void 0}),!D)return;_(D)}!i||++P>=10||setTimeout(B,200)};setTimeout(B,200)}let H=0;async function h(_){var B;if(!i||!_.isConnected)return;const v=Date.now();H=v;let x,D;const P=(B=e.spec)==null?void 0:B.imgDivs;if(P){if(D=Array.from(_.querySelectorAll(P)),x=await Promise.all(D.map(async(ee,G)=>{const I=Array.from(ee.querySelectorAll("img,canvas"));for(const F of I){const U=await k({ts:v,el:F,index:G,total:D.length,onImgLoad:()=>m(_)});if(U)return U}})),!i||!_.isConnected||H!==v)return}else{const ee=Array.from(_.querySelectorAll("img,canvas")),G=await Promise.all(ee.map((F,U)=>k({ts:v,el:F,index:U,total:ee.length,onImgLoad:()=>m(_)})));if(!i||!_.isConnected||H!==v)return;D=ee.filter((F,U)=>G[U]),x=G.filter(Boolean);const I=x.filter((F,U)=>F&&U!==x.lastIndexOf(F));I.length&&(x=x.filter(F=>F&&!I.includes(F)))}c??(c=Gi(D)),(x.length!==n.value.length||x.some((ee,G)=>n.value[G]!==ee))&&(t=D,n.value=x,S(),c!==void 0&&d.value&&u.value!==void 0&&n.value.some(Boolean)&&y(c))}const M=Date.now();async function k({ts:_,el:v,index:x,total:D,onImgLoad:P}){const B=s.get(v);let ee,G;if(v.tagName.toLowerCase()==="canvas"){if(B)return B.src;ee=await Qi(v)}else{if(v._tkLoadId_!==M&&(v._tkLoadId_=M,v.addEventListener("load",P),He(()=>{v._tkLoadId_===M&&delete v._tkLoadId_,v.removeEventListener("load",P)})),G=up(v),!G)return;if(G===(B==null?void 0:B.originalSrc))return B.src;if(ee=await lp(v,G),!i||H!==_)return;if(u.value===void 0&&x>Math.min(1,D-2)){const F=+(v.getAttribute("width")??0),U=+(v.getAttribute("height")??0);F&&U&&(u.value=U/F>2.5)}}return ee&&(s.set(v,{src:ee,originalSrc:G}),ee.startsWith("blob:")&&r.push(ee)),ee}return{isLoading:ie(()=>d.value),asyncImgs:ie(()=>n.value.map(_=>_?o[_]:void 0)),isWebtoon:ie(()=>u.value??!1)}}async function ip(e){const{lstrip:t,lstripBtn:n}=e||{};if(!n||!!t&&!!document.querySelector(t))return!1;const r=await xn(50,30,()=>document.querySelector(n));if(!r)return!1;if(r.tagName.toLowerCase()==="a"&&!r._tkDirty_){r._tkDirty_=!0;const s=i=>i.preventDefault();r.addEventListener("click",s),He(()=>{delete r._tkDirty_,r.removeEventListener("click",s)})}return r.click(),await oo(),!0}function Qi(e){return new Promise(t=>{if(e.isConnected&&(e.width<200||e.height<200))return t(void 0);const n=o=>{if(!o)return t(void 0);const r=URL.createObjectURL(o);t(r)};e.toBlob(n,"image/png",1)})}async function lp(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),r=o.getContext("2d"),s=e.naturalWidth,i=e.naturalHeight;return o.width=s,o.height=i,r==null||r.drawImage(e,0,0,s,i),await Qi(o)}function ap(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{const{naturalWidth:r,naturalHeight:s}=n;s&&r&&(t({width:r,height:s}),clearInterval(o))},20);n.onerror=()=>{t(void 0),clearInterval(o)},n.src=e})}function cp(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src));return Gi(n)}function Gi(e){for(let t=0;t<e.length;t++){const n=e[t].getBoundingClientRect();if(n.bottom<=0)continue;const o=n.top;return t+(o>=0?0:Math.floor(-o/n.height*100)/100)}return 0}function up(e){const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden")return;const n=e.getBoundingClientRect();if(n.width&&n.height&&(n.width<200||n.height<200))return;const o=e.getAttributeNames(),r=o.indexOf("src");r!==-1&&(o.splice(r,1),o.push("src"));for(const s of o){if(s!=="data-url"&&s!=="data-original"&&!s.includes("src"))continue;const i=e.getAttribute(s);if(i)return s==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:i.replace(/(\n|\t)/g," ").trim()}}function el({contentEl:e,imgEls:t,page:n,smooth:o}){var a;const r=n>=t.length,s=o?"smooth":"instant";if(r){(a=t[t.length-1])==null||a.scrollIntoView({block:"end",behavior:s});return}const i=t[Math.floor(n)];i&&setTimeout(()=>{const l=dr(e??document.documentElement),c=i.offsetTop+(r?1:n%1)*i.getBoundingClientRect().height;l==null||l.scrollTo({top:c,behavior:s})})}function dr(e){if(e)return e.scrollHeight>e.clientHeight?e===document.body?dr(document.documentElement)??e:e:dr(e.parentElement??void 0)}function fp(e,t){return ie(()=>t.value?tl(e.value):e.value.map((n,o)=>[{img:n,index:o}]))}function tl(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height)?[n[0]]:n;return[r.map((s,i)=>({img:s,index:t+i})),...tl(e.slice(r.length),t+r.length)]}function dp(e){const t=typeof e=="number"?Math.max(0,e):0,n=sessionStorage.getItem("tk:page:path");return n!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),n&&sessionStorage.removeItem("tk:page")),ir("tk:page",t,{writeDefaults:!1,mergeDefaults(o){return typeof o=="number"?Math.max(0,o):t}})}function pp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const pr=40;function hp({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:s,spaceTop:i,scrollEl:a,interferePlayer:l,onChangedPage:c}){let u=!1,d=!1,m;const S=li(H,300),y=Qe(()=>d=!0,100);function C(){let v=null;ca(async()=>{a.value&&a.value!==v&&(v=a.value,N(e.value),v==null||v.removeEventListener("scroll",S),a.value.addEventListener("scroll",S))});const{width:x,height:D}=yu();ue(x,j),ue(D,j),ue(n,j),ue(t,j)}async function j(){u=!0;const v=e.value;if(await qe(),h()===v){u=!1;return}N(v)}function N(v,{smooth:x}={smooth:!1}){const D=a.value;if(!D)return;u=!0;const P=async()=>{await qe(),u=!1,y()},B=Math.floor(v),ee=D.querySelector(`[data-index="${B}"],[data-index2="${B}"]`);if(!ee){P();return}l(async()=>{await L(D,!o.value&&x,async()=>{await _(D,ee,{smooth:x,page:v})}),await P()})}async function L(v,x,D){x&&v.style.setProperty("scroll-snap-type","none"),await D(),x&&v.style.removeProperty("scroll-snap-type")}function H(){if(!a.value||u||!d)return;const v=h();v!==void 0&&v!==e.value&&c(v)}function h(){const v=M();if(!v)return;const x=+v.getAttribute("data-index")||0;return o.value?Math.floor((x+k(v))*100)/100:x}function M(){m??(m=a.value.getRootNode());const v=m.elementsFromPoint(r.value||!o.value?window.innerWidth/2:s.value?window.innerWidth-pr:pr,r.value&&o.value?i.value||pr:window.innerHeight/2);for(let x=0;x<v.length;x++){const D=v[x];if(D.hasAttribute("data-index"))return D;if(D===a.value)break}}function k(v){const x=v.getBoundingClientRect();return r.value?Math.abs(x.top-(i.value||0))/x.height:s.value?Math.max(0,x.right-a.value.clientWidth)/x.width:Math.abs(x.left)/x.width}let $=!1;async function _(v,x,D){if($)return;const P=x.getBoundingClientRect();if(!o.value){if(r.value){if(P.top<=0&&P.bottom>=v.clientHeight)return}else if(P.left<=0&&P.right>=v.clientWidth)return}$=!0;const B=r.value?v.scrollTop:v.scrollLeft,ee=D.page,G=o.value?ee%1:0,I=await xn(30,10,async()=>{await oo();let Te;return o.value?r.value?Te=x.offsetTop+G*x.offsetHeight-(i.value??0):s.value?Te=x.offsetLeft-v.clientWidth+x.offsetWidth-G*x.offsetWidth:Te=x.offsetLeft+G*x.offsetWidth:r.value?Te=x.offsetTop+(P.top>0?0:P.height-v.clientHeight):Te=x.offsetLeft+(P.left>0?0:P.width-v.clientWidth),ee>.5&&Math.abs(Te)<100?void 0:Te})??0;if(!D.smooth){r.value?v.scrollTop=I:v.scrollLeft=I,$=!1;return}const F=I-B,U=30;let fe=0;return new Promise(Te=>{(function Ve(){const Ie=gp(fe,B,F,U);r.value?v.scrollTop=Ie:v.scrollLeft=Ie,fe++,fe<=U?requestAnimationFrame(Ve):(Te(),$=!1)})()})}return{init:C,goToPage:N}}function gp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function mp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:s,speed:i,onLongIdle:a}){const l=ir("tk:isPlaying",e,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults:(_,v)=>_===void 0?v:_===!0||_==="true"}),c=Z(!1);let u,d;const m=Qe(k,100);let S;const y=Qe(()=>{c.value=!0,clearTimeout(S),S=l.value?void 0:setTimeout(a,s.value?3e4:6e4)},t?2e3:1e3),C=()=>setTimeout(()=>{c.value=!1,y(),S&&(clearTimeout(S),S=void 0)},30);C(),t||It(window,"mousemove",C);const j=_i();Fe(()=>{ue(j,_=>{l.value&&(_==="visible"?k():d==null||d())}),ue(i,()=>N()),ue(s,_=>{_||H()})}),He(()=>{clearTimeout(S),S=void 0});async function N(_){l.value&&(d==null||d()),_&&(await qe(),await _()),l.value&&m()}function L(){l.value?H():h()}function H(){l.value&&(l.value=!1,d==null||d(),C())}function h(){!l.value&&s.value&&(l.value=!0,k(),C())}function M(){d==null||d()}function k(){const _=n.value;if(!l.value||!_)return;const v=o.value?_.scrollHeight-_.clientHeight:_.scrollWidth-_.clientWidth,x=$();if(v<=x){H();return}d=()=>{u=Date.now(),d=void 0};const D=Date.now();u=D;const P=.05*i.value,B=o.value?"scrollTop":"scrollLeft";let ee=Date.now(),G=0;const I=()=>{if(u!==D)return;const F=Date.now(),U=F-ee;ee=F;const fe=P*U+G;fe>=1?(G=fe%1,_[B]+=(fe-G)*(r.value?-1:1)):G=fe,setTimeout(I,1)};I()}function $(){const _=n.value;return o.value?_.scrollTop:r.value?-_.scrollLeft:_.scrollLeft}return{isPlaying:l,isIdle:c,toggle:L,play:h,pause:M,resume:k,stop:H,interfere:N,awake:C}}function vp(e){var S,y,C,j,N;let t=-1,n=(S=e.prev)==null?void 0:S.slug,o=(y=e.next)==null?void 0:y.slug;const{vol:r,inferVol:s,chap:i,title:a,slug:l,basePath:c}=e,u=r??s,d=a.chapters??[],m=(d==null?void 0:d.length)>1?d:[];if(m.length){if(t=m.findIndex(L=>L.slug===e.slug),t===-1&&(t=m.findIndex(L=>(L.vol??L.inferVol)===u&&L.chap===i)),t===-1&&(t=m.findIndex(L=>l.startsWith(`${L.slug}-`)&&l.length-L.slug.length>3)),t!==-1)n??(n=(C=m[t+1])==null?void 0:C.slug),o??(o=(j=m[t-1])==null?void 0:j.slug);else if(!n&&!o){const L=m.findIndex(H=>{const h=H.vol??H.inferVol;return u===void 0||h===void 0||u===h?H.chap<i:h<u});L!==-1?(n=m[L].slug,o=(N=m[L-1])==null?void 0:N.slug):o=m[m.length-1].slug}}return{activeIndex:t,activeLabel:nl({vol:r,chap:i}),chapters:m.map(L=>({label:nl(L),path:hr(c,L.slug)})),prevPath:hr(c,n),nextPath:hr(c,o)}}function hr(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function nl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const _p={key:0,class:"flex justify-center items-center w-full h-full"},bp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},yp=we({...{inheritAttrs:!1},__name:"TrackkunReader",props:{raw:{},spec:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},isGuest:{type:Boolean},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean}},emits:["pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","longIdle","finished"],setup(e,{emit:t}){const n=e;let o=!1,r=!1,s;const i=Uu({touchDevice:n.touchDevice}),a=dp(n.page),{asyncImgs:l,isLoading:c,isWebtoon:u}=sp({raw:n.raw,spec:n.spec,page:a,onReady(g){n.isAutoShow===!1?a.value=g:a.value>l.value.length&&(a.value=Math.max(0,l.value.length-1)),I.init(),setTimeout(()=>{s=U()},50)},onError:()=>{}}),{direction:d,style:m,isRTL:S,isDouble:y,isVertical:C,isLongStrip:j,gap:N,speed:L,zoom:H}=Mf({titleName:n.raw.title.name,isWebtoon:u}),h=fp(l,y),M=ie(()=>a.value>=l.value.length),k=ie(()=>vp(n.raw)),$=ie(()=>{var g,b;return S.value?(g=k.value)==null?void 0:g.nextPath:(b=k.value)==null?void 0:b.prevPath}),_=ie(()=>{var g,b;return S.value?(g=k.value)==null?void 0:g.prevPath:(b=k.value)==null?void 0:b.nextPath}),v=Z(null),x=Z(null),D=Z(!1),P=Z(!1),B=mp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:ie(()=>{var g;return(g=v.value)==null?void 0:g.$el}),speed:L,isRTL:S,isVertical:C,isLongStrip:j,onLongIdle:()=>t("longIdle")});ue(B.isPlaying,g=>{g||p(!1),t("playingChanged",g)}),ue(B.isIdle,g=>{B.isPlaying.value&&p(g)}),ue(i,g=>{!g&&B.isIdle.value?B.awake():g&&n.fullScreen&&p()});const ee=ie(()=>!n.touchDevice&&B.isIdle.value&&!i.value),G=ie({get(){return H.value},set(g){B.interfere(()=>{H.value=g})}}),I=hp({page:a,style:m,direction:d,isLongStrip:j,isVertical:C,isRTL:S,spaceTop:ie(()=>n.spaceTop),scrollEl:ie(()=>{var g;return(g=v.value)==null?void 0:g.$el}),interferePlayer:g=>B.interfere(g),onChangedPage(g){const b=l.value.length;if(g<0||g>=b+1)return;const T=a.value;a.value=g,t("pageChanged",g),g>=b?(p(!1),B.stop()):g===0?p(!1):r||(j.value?s!==void 0&&U()-s>300&&p(!0):Math.abs(T-g)===1&&p(!0)),!o&&g>=b-2&&(o=!0,t("finished"))}}),F=ie(()=>Math.floor(a.value));function U(){var b;const g=(b=v.value)==null?void 0:b.$el;return g?C.value?g.scrollTop:S.value?-g.scrollLeft:g.scrollLeft:0}const fe=()=>B.interfere(()=>oo(100));tf().addListener({onKeyDown:g=>{if(n.tourEnabled)return;const b=j.value&&C.value,T=j.value&&!C.value,W=!j.value&&C.value,V=!j.value&&!C.value;switch(g.key){case" ":g.preventDefault(),j.value?(R(!1),B.toggle()):vt();break;case"ArrowUp":case"PageUp":b?fe():W&&(g.preventDefault(),st());break;case"ArrowDown":case"PageDown":b?fe():W&&(g.preventDefault(),vt());break;case"ArrowLeft":T?fe():V?(g.preventDefault(),tn()):C.value&&mt();break;case"ArrowRight":T?fe():V?(g.preventDefault(),ro()):C.value&&ct();break}},onKeyUp:g=>{switch(g.key){case"f":E();break;case"t":w();break;case"h":R();break}}}),Fe(()=>{It("fullscreenchange",()=>{D.value=!!document.fullscreenElement})});function Ve(){!n.touchDevice&&!j.value&&I.goToPage(F.value,{smooth:!0})}function Ie(){if(B.isPlaying.value){!n.fullScreen||!n.touchDevice?B.stop():B.awake();return}p()}function ct(){var g;Oe((g=k.value)==null?void 0:g.nextPath)}function mt(){var g;Oe((g=k.value)==null?void 0:g.prevPath)}function en(g){var T,W,V;const b=(V=(W=(T=k.value)==null?void 0:T.chapters)==null?void 0:W[g])==null?void 0:V.path;b&&Oe(b)}function Oe(g){g&&(location.href=g.includes("://")?g:location.origin+g)}function tn(){S.value?vt():st()}function ro(){S.value?st():vt()}function st(){var T;const g=h.value,b=M.value?g[g.length-1][0].index:(T=g[nn()-1])==null?void 0:T[0].index;b!==void 0?I.goToPage(b):mt()}function vt(){var b;const g=M.value?F.value+1:((b=h.value[nn()+1])==null?void 0:b[0].index)??l.value.length;I.goToPage(g)}function nn(){const g=F.value,b=h.value.findIndex(T=>T.some(({index:W})=>W===g));return b===-1?h.value.length-1:b}function f(){pp(),B.stop(),t("dispose")}async function p(g){if(i.value&&!n.fullScreen)return;r=!0;const b=typeof g=="boolean"?g:!n.fullScreen;t("fullScreenChanged",b),b&&setTimeout(()=>{n.fullScreen&&i.value&&t("fullScreenChanged",!1)},100)}function w(){n.entryId?z():O()}function E(){var g,b;document.fullscreenElement?document.exitFullscreen():(b=(g=x.value)==null?void 0:g.$el)==null||b.requestFullscreen()}function O(){B.stop(),t("addEntry")}function z(){B.stop(),t("openEntry",n.entryId)}function R(g){P.value!==g&&(P.value=!P.value,P.value&&B.isPlaying&&B.stop())}return(g,b)=>{const T=fr,W=Ji,V=Zi,J=Yi,te=Ui,re=Wi,le=eo,de=Vi,me=ur,We=Hi,Pt=Fi,so=Ni,Ht=Di,io=Bi,ze=Ai,Ge=ji,lo=zi,Op=ar,Mp=lr,Lp=Ti,zp=ki,jp=Ci,Ap=ri;return A(),_e(Ap,{ref_key:"root",ref:x,"full-screen":!!g.fullScreen,idle:ee.value,"space-top":n.spaceTop,"touch-device":g.touchDevice,rtl:K(S),onClick:b[11]||(b[11]=ot(()=>{},["stop"]))},ds({back:oe(()=>[q(le,{href:g.raw.title.url,title:"Back to manga"},{default:oe(()=>[q(re)]),_:1},8,["href"])]),"chapter-nav":oe(()=>[q(me,{modelValue:k.value.activeIndex,label:k.value.activeLabel,title:"Select chapter",items:k.value.chapters,"onUpdate:modelValue":en},{item:oe(({item:je})=>[Ct(Ye(je.label),1)]),_:1},8,["modelValue","label","items"]),$.value||_.value?(A(),Y("div",bp,[q(le,{title:`${K(S)?"Next":"Prev"} chapter (←)`,href:$.value,disabled:!$.value,class:"!rounded-r-none"},{default:oe(()=>[q(We)]),_:1},8,["title","href","disabled"]),q(le,{title:`${K(S)?"Prev":"Next"} chapter (→)`,href:_.value,disabled:!_.value,class:"!rounded-l-none"},{default:oe(()=>[q(Pt)]),_:1},8,["title","href","disabled"])])):Ee("",!0)]),entry:oe(()=>[q(le,{title:g.entryId?"View entry (T)":"Add to Trackkun (T)","data-tour":"Press here to add this manga to your Trackkun collection",onClick:w},{default:oe(()=>[g.entryId?(A(),_e(Ht,{key:0})):(A(),_e(io,{key:1}))]),_:1},8,["title"])]),settings:oe(()=>[q(lo,{"reader-style":K(m),"onUpdate:readerStyle":b[3]||(b[3]=je=>ye(m)?m.value=je:null),direction:K(d),"onUpdate:direction":b[4]||(b[4]=je=>ye(d)?d.value=je:null),gap:K(N),"onUpdate:gap":b[5]||(b[5]=je=>ye(N)?N.value=je:null),speed:K(L),"onUpdate:speed":b[6]||(b[6]=je=>ye(L)?L.value=je:null),zoom:G.value,"onUpdate:zoom":b[7]||(b[7]=je=>G.value=je),name:g.raw.title.name,webtoon:K(u),disabled:K(c),onHelp:R},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]),"reset-zoom":oe(()=>[q(Qt,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:oe(()=>[q(Lp,{zoom:G.value,onClick:b[9]||(b[9]=ot(()=>G.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:oe(()=>[X("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Me({width:`${K(a)/(K(l).length-1)*100}%`})},null,4)]),default:oe(()=>[K(c)||!K(l).length?(A(),Y("div",_p,[q(T)])):(A(),Y(ge,{key:1},[q(V,{ref_key:"body",ref:v,zoom:G.value,"onUpdate:zoom":b[0]||(b[0]=je=>G.value=je),"page-index":F.value,pages:K(h),"total-imgs":K(l).length,direction:K(d),gap:K(N),"is-long-strip":K(j),isRTL:K(S),"is-vertical":K(C),"space-top":g.spaceTop,busy:K(i),idle:ee.value,"play-controller":K(B),"touch-device":g.touchDevice,onPrev:st,onNext:vt,onClick:Ie,onDragEnd:Ve,onWheelPassive:b[1]||(b[1]=()=>K(B).interfere())},ds({_:2},[!K(c)&&K(l).length?{name:"end",fn:oe(()=>[q(W,{"has-next":!!k.value.nextPath,onNext:ct,onHide:f},null,8,["has-next"])]),key:"0"}:void 0]),1032,["zoom","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","busy","idle","play-controller","touch-device"]),dt(q(J,{direction:K(d)},null,8,["direction"]),[[ti,!M.value&&!g.tourEnabled&&!P.value]]),M.value?Ee("",!0):(A(),_e(te,{key:0,playing:!!K(B).isPlaying.value},null,8,["playing"]))],64)),P.value?(A(),_e(zp,{key:2,"touch-device":g.touchDevice,onHide:R},null,8,["touch-device"])):Ee("",!0),g.tourEnabled?(A(),_e(jp,{key:3,onHide:b[10]||(b[10]=()=>t("tourEnabledChanged",!1))})):Ee("",!0)]),_:2},[g.touchDevice?void 0:{name:"exit",fn:oe(()=>[q(le,{title:"Hide reader","data-tour":"You have entered Trackkun reader mode, press here to return to the original page",onClick:f},{default:oe(()=>[q(de)]),_:1})]),key:"0"},K(h).length?{name:"page-nav",fn:oe(()=>[q(so,{"model-value":K(a),disabled:K(c),pages:K(h),"total-imgs":K(l).length,"onUpdate:modelValue":b[2]||(b[2]=je=>K(I).goToPage(je))},null,8,["model-value","disabled","pages","total-imgs"])]),key:"1"}:void 0,g.touchDevice?void 0:{name:"full-screen",fn:oe(()=>[q(le,{title:`${D.value?"Exit":"Enter"} fullscreen (F)`,onClick:E},{default:oe(()=>[D.value?(A(),_e(ze,{key:0})):(A(),_e(Ge,{key:1}))]),_:1},8,["title"])]),key:"2"},K(j)?{name:"play",fn:oe(()=>[q(le,{"data-tour":"Press here to play like a video",title:`${K(B).isPlaying.value?"Pause":"Play"} (Space)`,disabled:K(c),onClick:b[8]||(b[8]=()=>K(B).toggle())},{default:oe(()=>[K(B).isPlaying.value?(A(),_e(Op,{key:0})):(A(),_e(Mp,{key:1}))]),_:1},8,["title","disabled"])]),key:"3"}:void 0]),1032,["full-screen","idle","space-top","touch-device","rtl"])}}}),ol=he(yp,[["styles",[`/*! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:Helvetica,sans-serif;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:300px){.container{max-width:300px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.inset-2{bottom:8px;left:8px;right:8px;top:8px}.left-0{left:0}.top-0{top:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.top-full{top:100%}.left-1\\/2{left:50%}.right-0{right:0}.top-1\\/2{top:50%}.top-1{top:4px}.z-50{z-index:50}.z-20{z-index:20}.z-10{z-index:10}.z-\\[9999999999\\]{z-index:9999999999}.-z-10{z-index:-10}.z-30{z-index:30}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.ml-auto{margin-left:auto}.-ml-20{margin-left:-80px}.ml-1{margin-left:4px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-full{height:100%}.h-0\\.5{height:2px}.h-0{height:0}.h-12{height:48px}.h-\\[27rem\\]{height:432px}.h-16{height:64px}.h-10{height:40px}.h-4{height:16px}.h-9{height:36px}.h-24{height:96px}.h-1\\.5{height:6px}.h-1{height:4px}.h-7{height:28px}.h-8{height:32px}.h-6{height:24px}.h-20{height:80px}.h-screen{height:100vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-full{max-height:100%}.w-full{width:100%}.w-28{width:112px}.w-40{width:160px}.w-4{width:16px}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-screen{width:100vw}.w-1\\/3{width:33.333333%}.w-\\[4\\.5rem\\]{width:72px}.max-w-full{max-width:100%}.max-w-xs{max-width:320px}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-right{transform-origin:right}.origin-bottom{transform-origin:bottom}.origin-top{transform-origin:top}.translate-y-full{--tw-translate-y:100%}.-translate-y-1\\.5,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\.5{--tw-translate-y:-6px}.-translate-y-1{--tw-translate-y:-4px}.-translate-y-1,.translate-y-1\\.5{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\\.5{--tw-translate-y:6px}.translate-y-1{--tw-translate-y:4px}.-translate-x-1\\/2,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.cursor-none{cursor:none}.cursor-auto{cursor:auto}.cursor-grabbing{cursor:grabbing}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.\\!snap-none{scroll-snap-type:none!important}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-\\[1px\\]{gap:1px}.gap-6{gap:24px}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-2xl{border-radius:16px}.rounded-sm{border-radius:2px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-t-sm{border-top-left-radius:2px;border-top-right-radius:2px}.rounded-t-xl{border-top-left-radius:12px;border-top-right-radius:12px}.border-2{border-width:2px}.border{border-width:1px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:.5}.bg-opacity-90{--tw-bg-opacity:.9}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-40{--tw-bg-opacity:.4}.object-contain{-o-object-fit:contain;object-fit:contain}.p-6{padding:24px}.p-2{padding:8px}.p-4{padding:16px}.p-1{padding:4px}.px-6{padding-left:24px;padding-right:24px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.py-2{padding-bottom:8px;padding-top:8px}.py-1{padding-bottom:4px;padding-top:4px}.pt-3{padding-top:12px}.pb-12{padding-bottom:48px}.pl-1{padding-left:4px}.pb-4{padding-bottom:16px}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:16px;line-height:24px}.text-xl{font-size:20px;line-height:28px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.opacity-90{opacity:.9}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.duration-150{transition-duration:.15s}.duration-100{transition-duration:.1s}.ease-linear{transition-timing-function:linear}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:4px;width:4px}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:300px){.\\32xs\\:gap-3{gap:12px}}@media (min-width:640px){.sm\\:inset-3{bottom:12px;left:12px;right:12px;top:12px}.sm\\:w-\\[32rem\\]{width:512px}.sm\\:pb-3{padding-bottom:12px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-2{padding-bottom:8px}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}.lg\\:pb-0{padding-bottom:0}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
|
|
8
|
+
`]]]),wp=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),xp={},Cp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},kp=[X("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46s46-20.595 46-46s-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];function Sp(e,t){return A(),Y("svg",Cp,kp)}const Tp=Object.freeze(Object.defineProperty({__proto__:null,default:he(xp,[["render",Sp]])},Symbol.toStringTag,{value:"Module"})),$p=`html.gear-second,html.gear-second *{scrollbar-width:none!important}html.gear-second ::-webkit-scrollbar,html.gear-second::-webkit-scrollbar{display:none!important}html.gear-second>:not(body):not(head){--tw-translate-x:100%!important;--tw-translate-y:-100%!important;display:none!important;height:0!important;min-height:0!important;min-width:0!important;opacity:0!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important;visibility:hidden!important;width:0!important}html.gear-second body{touch-action:pan-x pan-y!important}html.gear-second body iframe,html.gear-second body>footer,html.gear-second body>header,html.gear-second body>nav{display:none!important;height:0!important;min-height:0!important;min-width:0!important;visibility:hidden!important;width:0!important}html.gear-second body :not(gear-second){opacity:0!important;pointer-events:none!important}html.gear-second body gear-second{bottom:0!important;display:block!important;filter:none!important;left:0!important;opacity:1!important;pointer-events:auto!important;position:fixed!important;right:0!important;top:0!important;transform:none!important;visibility:visible!important;z-index:10000000000000000}
|
|
9
|
+
`,Cn="gear-second",gr={raw:{},spec:void 0,page:0,spaceTop:void 0,fullScreen:void 0,touchDevice:void 0,entryId:void 0,autoPlay:void 0,adBlock:void 0,isAutoShow:void 0,textScaleFactor:void 0,isGuest:void 0,tourEnabled:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPlayingChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onLongIdle:void 0,onFinished:void 0},Se={el:void 0,controller:void 0,data:sn({...gr})};async function Ip(e){if(Se.controller)return Se.data.raw=e.raw,Se.controller;const t=()=>{Se.el&&(document.body.removeChild(Se.el),Se.el=void 0),document.documentElement.classList.remove(Cn),Object.assign(Se.data,gr),Se.controller=void 0};return Se.controller={triggerDoubleTap:(n,o)=>Nd(n,o),updateArgs(n){Object.assign(Se.data,n),mr()},dispose:t},document.documentElement.classList.add(Cn),await Pp(),Object.assign(Se.data,gr,e,{onDispose:()=>{var n;t(),(n=e==null?void 0:e.onDispose)==null||n.call(e)}}),mr(),Se.el||(Se.el=document.createElement(Cn),document.body.appendChild(Se.el)),Se.controller}async function Pp(){if(window.customElements.get(Cn))return;const e=document.createElement("style");e.appendChild(document.createTextNode($p)),document.head.appendChild(e);const t=bc({styles:[await Ep()],data:()=>({readerData:Se.data}),render(){return Rs(ol,{...this.readerData,onFullScreenChanged:n=>{var o,r;this.readerData.fullScreen=n,(r=(o=this.readerData).onFullScreenChanged)==null||r.call(o,n),mr()},onPageChanged:n=>{var o,r;this.readerData.page=n,(r=(o=this.readerData).onPageChanged)==null||r.call(o,n)},onTourEnabledChanged:n=>{this.readerData.tourEnabled=n}})}});window.customElements.define(Cn,t)}async function Ep(){const e=Object.assign({"./TrackkunReader.vue":wp,"./components/AutoNext.vue":op,"./components/BottomSheet.vue":sf,"./components/ButtonDropdown.vue":ud,"./components/ButtonIcon.vue":Xu,"./components/ButtonReaderSettings.vue":Lf,"./components/ButtonResetZoom.vue":zu,"./components/DirectionToast.vue":Dd,"./components/HelpScreen.vue":Su,"./components/InputPercentage.vue":cf,"./components/InputSelect.vue":hf,"./components/LoadingIndicator.vue":Yd,"./components/LoadingPlaceholder.vue":Xd,"./components/PageNav.vue":fd,"./components/PauseToast.vue":Md,"./components/ReaderBody.vue":Gd,"./components/ReaderLayout.vue":Rc,"./components/ReaderTour.vue":Cu,"./components/TableField.vue":df,"./components/ZoomWrapper.vue":Hd,"./components/icons/IconBack.vue":Od,"./components/icons/IconBookmarkNew.vue":Xf,"./components/icons/IconBookmarked.vue":Gf,"./components/icons/IconChevronLeft.vue":wd,"./components/icons/IconChevronRight.vue":md,"./components/icons/IconClose.vue":Gu,"./components/icons/IconExclamationCircle.vue":Tp,"./components/icons/IconFullscreen.vue":Df,"./components/icons/IconFullscreenExit.vue":Vf,"./components/icons/IconHelp.vue":bf,"./components/icons/IconNext.vue":Bd,"./components/icons/IconPause.vue":Wu,"./components/icons/IconPlay.vue":Ru,"./components/icons/IconReaderExit.vue":Td,"./components/icons/IconSettings.vue":kf,"./components/icons/IconTriangle.vue":rd,"./components/icons/IconZoom.vue":Eu}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}function mr(){if(Se.data.adBlock)return;const{spaceTop:e,fullScreen:t}=Se.data,n=document.querySelector(":root");n==null||n.style.setProperty("--tk-safe-top",`${t?0:(e||0)+56}px`)}return Ip});
|